freestyle-sandboxes 0.0.76 → 0.0.77

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/dist/ai/inde.d.cts +1 -1
  2. package/dist/ai/inde.d.mts +1 -1
  3. package/dist/ai/index.d.cts +1 -1
  4. package/dist/ai/index.d.mts +1 -1
  5. package/dist/inde.d.cts +34 -12
  6. package/dist/inde.d.mts +34 -12
  7. package/dist/{index-BBXyg0JQ.cjs → index-CGc0kRd_.cjs} +9 -5
  8. package/dist/{index-DCF70Xbq.mjs → index-jh-93svX.mjs} +9 -5
  9. package/dist/index.cjs +17 -6
  10. package/dist/index.d.cts +34 -12
  11. package/dist/index.d.mts +34 -12
  12. package/dist/index.mjs +17 -6
  13. package/dist/langgraph/inde.d.cts +1 -1
  14. package/dist/langgraph/inde.d.mts +1 -1
  15. package/dist/langgraph/index.d.cts +1 -1
  16. package/dist/langgraph/index.d.mts +1 -1
  17. package/dist/mastra/inde.d.cts +1 -1
  18. package/dist/mastra/inde.d.mts +1 -1
  19. package/dist/mastra/index.d.cts +1 -1
  20. package/dist/mastra/index.d.mts +1 -1
  21. package/dist/{types.gen-BVXmFV7d.d.ts → types.gen-0bQ5Wn0o.d.ts} +18 -17
  22. package/dist/{types.gen-CIf3ciN7.d.ts → types.gen-BJArgpto.d.ts} +2 -5
  23. package/dist/{types.gen-DLYohMJT.d.ts → types.gen-CfrGF-JI.d.ts} +1 -1
  24. package/dist/{types.gen-BbekD8Sd.d.ts → types.gen-DkFlXKTr.d.ts} +266 -31
  25. package/dist/{types.gen-CZUnqmzP.d.ts → types.gen-DxZanGNF.d.ts} +9 -6
  26. package/dist/utils/inde.d.cts +1 -1
  27. package/dist/utils/inde.d.mts +1 -1
  28. package/dist/utils/index.d.cts +1 -1
  29. package/dist/utils/index.d.mts +1 -1
  30. package/openapi/sdk.gen.ts +22 -11
  31. package/openapi/types.gen.ts +80 -20
  32. package/openapi.json +1 -1
  33. package/package.json +1 -1
  34. package/src/dev-server.ts +3 -0
  35. package/src/index.ts +86 -55
  36. package/dist/index-BQHqnjZK.mjs +0 -3231
  37. package/dist/index-CEEa9WHp.cjs +0 -3238
  38. package/dist/types.gen-1sd31qLV.d.ts +0 -172
  39. package/dist/types.gen-627pxroW.d.ts +0 -830
  40. package/dist/types.gen-BCdfx7yt.d.ts +0 -760
  41. package/dist/types.gen-BaMKzqxQ.d.ts +0 -233
  42. package/dist/types.gen-BqN1t03N.d.ts +0 -842
  43. package/dist/types.gen-BtK6PMQy.d.ts +0 -195
  44. package/dist/types.gen-C03gaIPq.d.ts +0 -297
  45. package/dist/types.gen-CMuCas4r.d.ts +0 -183
  46. package/dist/types.gen-CnEkmbco.d.ts +0 -314
  47. package/dist/types.gen-DDYpuDzZ.d.ts +0 -764
  48. package/dist/types.gen-DHmdEOOa.d.ts +0 -172
  49. package/dist/types.gen-DbTb_SrD.d.ts +0 -156
  50. package/dist/types.gen-DkQ-Dbs1.d.ts +0 -764
  51. package/dist/types.gen-DyY7Deri.d.ts +0 -138
  52. package/dist/types.gen-MBZCvIhE.d.ts +0 -311
  53. package/dist/types.gen-YhJAHBw8.d.ts +0 -233
  54. package/dist/types.gen-cCnnhnB6.d.ts +0 -182
  55. package/dist/types.gen-mg_JNXrq.d.ts +0 -830
  56. package/dist/types.gen-uDTr6v-7.d.ts +0 -731
@@ -1,4 +1,4 @@
1
- import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, bO as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen-BVXmFV7d.js';
1
+ import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, bQ as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen-DkFlXKTr.js';
2
2
  import { T as Tool, a as ToolExecutionOptions } from '../index.d-9H_wnIbz.js';
3
3
  import { z } from 'zod';
4
4
  import 'node:http';
@@ -1,4 +1,4 @@
1
- import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, bO as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen-BVXmFV7d.js';
1
+ import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, bQ as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen-DkFlXKTr.js';
2
2
  import { T as Tool, a as ToolExecutionOptions } from '../index.d-9H_wnIbz.js';
3
3
  import { z } from 'zod';
4
4
  import 'node:http';
@@ -1,4 +1,4 @@
1
- import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, bO as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen-BVXmFV7d.js';
1
+ import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, bQ as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen-DkFlXKTr.js';
2
2
  import { T as Tool, a as ToolExecutionOptions } from '../index.d-9H_wnIbz.js';
3
3
  import { z } from 'zod';
4
4
  import 'node:http';
@@ -1,4 +1,4 @@
1
- import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, bO as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen-BVXmFV7d.js';
1
+ import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, bQ as HandleExecuteScriptError, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2 } from '../types.gen-DkFlXKTr.js';
2
2
  import { T as Tool, a as ToolExecutionOptions } from '../index.d-9H_wnIbz.js';
3
3
  import { z } from 'zod';
4
4
  import 'node:http';
package/dist/inde.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, D as DeploymentSource, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2, d as FreestyleCloudstateDeployRequest, e as FreestyleCloudstateDeploySuccessResponse, H as HandleBackupCloudstateResponse, f as HandleGetLogsResponse, g as HandleCreateDomainVerificationResponse, h as HandleVerifyDomainResponse, i as HandleVerifyDomainError, j as HandleListDomainsResponse, k as HandleListDomainVerificationRequestsResponse, l as HandleDeleteDomainVerificationResponse, m as HandleListWebDeploysResponse, n as HandleListExecuteRunsResponse, o as HandleGetExecuteRunResponse, p as HandleVerifyWildcardResponse, C as CreateRepositoryResponseSuccess, q as HandleListRepositoriesResponse, r as HandleDeleteRepoResponse, G as GitIdentity, s as HandleDeleteIdentityResponse, A as AccessLevel, t as HandleGrantPermissionResponse, L as ListPermissionResponseSuccess, u as DescribePermissionResponseSuccess, v as CreatedToken, w as ListGitTokensResponseSuccess, x as HandleListGitTriggersResponse, y as GitTrigger, z as GitTriggerAction, B as HandleCreateGitTriggerResponse } from './types.gen-BVXmFV7d.js';
2
- export { J as AccessTokenInfo, I as AccessibleRepository, K as Behavior, M as BlobEncoding, N as BlobObject, O as CommitObject, P as CommitParent, Q as CommitTree, R as CreateDomainMappingRequest, S as CreateRecordParams, T as CreateRepoRequest, V as CreateRepoSource, U as CreateRepositoryRequest, X as CustomBuildOptions, E as DeploymentBuildOptions, Y as DeploymentLogEntry, _ as DeploymentState, $ as DevServer, a1 as DevServerRequest, a2 as DevServerStatusRequest, a3 as DevServerWatchFilesRequest, a4 as DnsRecord, a5 as DnsRecordData, a6 as DnsRecordKind, a7 as DomainVerificationRequest, a8 as ExecRequest, a9 as ExecuteLogEntry, aa as ExecuteRunInfo, ab as ExecuteRunState, ac as FileReadContent, ae as FreestyleCloudstateDeployConfiguration, af as FreestyleCloudstateDeployErrorResponse, ag as FreestyleDeleteDomainVerificationRequest, ah as FreestyleDeployWebErrorResponse, ai as FreestyleDeployWebPayload, aj as FreestyleDeployWebPayloadV2, ak as FreestyleDomainVerificationRequest, al as FreestyleExecuteScriptParams, am as FreestyleFile, an as FreestyleGetLogsResponse, ao as FreestyleJavaScriptLog, ap as FreestyleLogResponseObject, aq as FreestyleNetworkPermission, as as FreestyleVerifyDomainRequest, at as GitCommitPushRequest, au as GitContents, aw as GitContentsDirEntryItem, ax as GitReference, ay as GitRepositoryTrigger, aB as GrantPermissionRequest, aW as HandleBackupCloudstateData, aX as HandleBackupCloudstateError, bg as HandleCreateDomainVerificationData, bh as HandleCreateDomainVerificationError, cb as HandleCreateGitTokenData, cd as HandleCreateGitTokenError, cc as HandleCreateGitTokenResponse, cL as HandleCreateGitTriggerData, cM as HandleCreateGitTriggerError, bT as HandleCreateIdentityError, bS as HandleCreateIdentityResponse, a$ as HandleCreateRecordData, b1 as HandleCreateRecordError, b0 as HandleCreateRecordResponse, cj as HandleCreateRepoData, cl as HandleCreateRepoError, ck as HandleCreateRepoResponse, bb as HandleDeleteDomainMappingData, bd as HandleDeleteDomainMappingError, bc as HandleDeleteDomainMappingResponse, bi as HandleDeleteDomainVerificationData, bj as HandleDeleteDomainVerificationError, cN as HandleDeleteGitTriggerData, cP as HandleDeleteGitTriggerError, cO as HandleDeleteGitTriggerResponse, bU as HandleDeleteIdentityData, bV as HandleDeleteIdentityError, b2 as HandleDeleteRecordData, b4 as HandleDeleteRecordError, b3 as HandleDeleteRecordResponse, cm as HandleDeleteRepoData, cn as HandleDeleteRepoError, aT as HandleDeployCloudstateData, aV as HandleDeployCloudstateError, aU as HandleDeployCloudstateResponse, cV as HandleDeployWebData, cX as HandleDeployWebError, cW as HandleDeployWebResponse, cY as HandleDeployWebV2Data, c_ as HandleDeployWebV2Error, cZ as HandleDeployWebV2Response, bZ as HandleDescribePermissionData, b$ as HandleDescribePermissionError, b_ as HandleDescribePermissionResponse, bC as HandleDevServerStatusData, bE as HandleDevServerStatusError, bD as HandleDevServerStatusResponse, cG as HandleDownloadTarballData, cI as HandleDownloadTarballError, cH as HandleDownloadTarballResponse, bk as HandleEphemeralDevServerData, bm as HandleEphemeralDevServerError, bl as HandleEphemeralDevServerResponse, bn as HandleExecOnEphemeralDevServerData, bp as HandleExecOnEphemeralDevServerError, bo as HandleExecOnEphemeralDevServerResponse, bM as HandleExecuteScriptData, bO as HandleExecuteScriptError, bN as HandleExecuteScriptResponse, cr as HandleGetBlobData, ct as HandleGetBlobError, cs as HandleGetBlobResponse, cu as HandleGetCommitData, cw as HandleGetCommitError, cv as HandleGetCommitResponse, co as HandleGetContentsData, cq as HandleGetContentsError, cp as HandleGetContentsResponse, bK as HandleGetExecuteRunData, bL as HandleGetExecuteRunError, cQ as HandleGetLogsData, cR as HandleGetLogsError, cx as HandleGetRefBranchData, cz as HandleGetRefBranchError, cy as HandleGetRefBranchResponse, cS as HandleGetRefTagData, cU as HandleGetRefTagError, cT as HandleGetRefTagResponse, cA as HandleGetTagData, cC as HandleGetTagError, cB as HandleGetTagResponse, cD as HandleGetTreeData, cF as HandleGetTreeError, cE as HandleGetTreeResponse, d1 as HandleGetWebDeployDetailsData, bw as HandleGitCommitPushData, by as HandleGitCommitPushError, bx as HandleGitCommitPushResponse, c0 as HandleGrantPermissionData, c1 as HandleGrantPermissionError, b8 as HandleInsertDomainMappingData, ba as HandleInsertDomainMappingError, b9 as HandleInsertDomainMappingResponse, be as HandleListDomainVerificationRequestsError, b7 as HandleListDomainsError, bI as HandleListExecuteRunsData, bJ as HandleListExecuteRunsError, c8 as HandleListGitTokensData, ca as HandleListGitTokensError, c9 as HandleListGitTokensResponse, cJ as HandleListGitTriggersData, cK as HandleListGitTriggersError, bP as HandleListIdentitiesData, bR as HandleListIdentitiesError, bQ as HandleListIdentitiesResponse, bW as HandleListPermissionsData, bY as HandleListPermissionsError, bX as HandleListPermissionsResponse, aY as HandleListRecordsData, a_ as HandleListRecordsError, aZ as HandleListRecordsResponse, ch as HandleListRepositoriesData, ci as HandleListRepositoriesError, c$ as HandleListWebDeploysData, d0 as HandleListWebDeploysError, bt as HandleReadFileFromEphemeralDevServerData, bv as HandleReadFileFromEphemeralDevServerError, bu as HandleReadFileFromEphemeralDevServerResponse, ce as HandleRevokeGitTokenData, cg as HandleRevokeGitTokenError, cf as HandleRevokeGitTokenResponse, c2 as HandleRevokePermissionData, c4 as HandleRevokePermissionError, c3 as HandleRevokePermissionResponse, bz as HandleShutdownDevServerData, bB as HandleShutdownDevServerError, bA as HandleShutdownDevServerResponse, c5 as HandleUpdatePermissionData, c7 as HandleUpdatePermissionError, c6 as HandleUpdatePermissionResponse, bf as HandleVerifyDomainData, b5 as HandleVerifyWildcardData, b6 as HandleVerifyWildcardError, bF as HandleWatchDevServerFilesData, bH as HandleWatchDevServerFilesError, bG as HandleWatchDevServerFilesResponse, bq as HandleWriteFileFromEphemeralDevServerData, bs as HandleWriteFileFromEphemeralDevServerError, br as HandleWriteFileFromEphemeralDevServerResponse, aC as InternalServerError, aD as ListRecordsResponse, aE as NetworkPermissionData, aF as ReadFileEphemeralDevServerResponses, aG as ReadFileRequest, aH as RepositoryInfo, aI as RevokeGitTokenRequest, aJ as ShutdownDevServerRequest, aK as Signature, aL as TagObject, aM as TagTarget, aN as TreeEntry, aP as TreeObject, aQ as UpdatePermissionRequest, aR as Visibility, aS as WriteFileRequest, ar as action, aA as action2, az as event, Z as kind, a0 as kind2, ad as kind3, W as type, av as type2, aO as type3 } from './types.gen-BVXmFV7d.js';
1
+ import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, D as DeploymentSource, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2, d as FreestyleCloudstateDeployRequest, e as FreestyleCloudstateDeploySuccessResponse, H as HandleBackupCloudstateResponse, f as HandleGetLogsResponse, g as HandleCreateDomainVerificationResponse, h as HandleVerifyDomainResponse, i as HandleVerifyDomainError, j as HandleListDomainsResponse, k as HandleListDomainVerificationRequestsResponse, l as HandleDeleteDomainVerificationResponse, m as HandleListWebDeploysResponse, n as HandleListExecuteRunsResponse, o as HandleGetExecuteRunResponse, p as HandleVerifyWildcardResponse, C as CreateRepoSource, q as CreateRepoImport, r as CreateRepositoryResponseSuccess, s as HandleListRepositoriesResponse, t as HandleDeleteRepoResponse, G as GitIdentity, u as HandleDeleteIdentityResponse, A as AccessLevel, v as HandleGrantPermissionResponse, L as ListPermissionResponseSuccess, w as DescribePermissionResponseSuccess, x as CreatedToken, y as ListGitTokensResponseSuccess, z as HandleListGitTriggersResponse, B as GitTrigger, E as GitTriggerAction, I as HandleCreateGitTriggerResponse } from './types.gen-DkFlXKTr.js';
2
+ export { M as AccessTokenInfo, K as AccessibleRepository, N as Behavior, O as BlobEncoding, P as BlobObject, Q as CommitObject, R as CommitParent, S as CommitTree, T as CreateDomainMappingRequest, U as CreateRecordParams, W as CreateRepoRequest, X as CreateRepositoryRequest, Z as CustomBuildOptions, J as DeploymentBuildOptions, _ as DeploymentLogEntry, a0 as DeploymentState, a1 as DevServer, a3 as DevServerRequest, a4 as DevServerStatusRequest, a5 as DevServerWatchFilesRequest, a6 as DnsRecord, a7 as DnsRecordData, a8 as DnsRecordKind, a9 as DomainVerificationRequest, aa as ExecRequest, ab as ExecuteLogEntry, ac as ExecuteRunInfo, ad as ExecuteRunState, ae as FileReadContent, ag as FreestyleCloudstateDeployConfiguration, ah as FreestyleCloudstateDeployErrorResponse, ai as FreestyleDeleteDomainVerificationRequest, aj as FreestyleDeployWebErrorResponse, ak as FreestyleDeployWebPayload, al as FreestyleDeployWebPayloadV2, am as FreestyleDomainVerificationRequest, an as FreestyleExecuteScriptParams, ao as FreestyleFile, ap as FreestyleGetLogsResponse, aq as FreestyleJavaScriptLog, ar as FreestyleLogResponseObject, as as FreestyleNetworkPermission, au as FreestyleVerifyDomainRequest, av as GitCommitPushRequest, aw as GitContents, ay as GitContentsDirEntryItem, az as GitReference, aA as GitRepositoryTrigger, aD as GrantPermissionRequest, aY as HandleBackupCloudstateData, aZ as HandleBackupCloudstateError, bi as HandleCreateDomainVerificationData, bj as HandleCreateDomainVerificationError, cd as HandleCreateGitTokenData, cf as HandleCreateGitTokenError, ce as HandleCreateGitTokenResponse, cQ as HandleCreateGitTriggerData, cR as HandleCreateGitTriggerError, bV as HandleCreateIdentityError, bU as HandleCreateIdentityResponse, b1 as HandleCreateRecordData, b3 as HandleCreateRecordError, b2 as HandleCreateRecordResponse, cl as HandleCreateRepoData, cn as HandleCreateRepoError, cm as HandleCreateRepoResponse, bd as HandleDeleteDomainMappingData, bf as HandleDeleteDomainMappingError, be as HandleDeleteDomainMappingResponse, bk as HandleDeleteDomainVerificationData, bl as HandleDeleteDomainVerificationError, cS as HandleDeleteGitTriggerData, cU as HandleDeleteGitTriggerError, cT as HandleDeleteGitTriggerResponse, bW as HandleDeleteIdentityData, bX as HandleDeleteIdentityError, b4 as HandleDeleteRecordData, b6 as HandleDeleteRecordError, b5 as HandleDeleteRecordResponse, co as HandleDeleteRepoData, cp as HandleDeleteRepoError, aV as HandleDeployCloudstateData, aX as HandleDeployCloudstateError, aW as HandleDeployCloudstateResponse, c_ as HandleDeployWebData, d0 as HandleDeployWebError, c$ as HandleDeployWebResponse, d1 as HandleDeployWebV2Data, d3 as HandleDeployWebV2Error, d2 as HandleDeployWebV2Response, b$ as HandleDescribePermissionData, c1 as HandleDescribePermissionError, c0 as HandleDescribePermissionResponse, bE as HandleDevServerStatusData, bG as HandleDevServerStatusError, bF as HandleDevServerStatusResponse, cL as HandleDownloadTarballData, cN as HandleDownloadTarballError, cM as HandleDownloadTarballResponse, cV as HandleDownloadZipData, cX as HandleDownloadZipError, cW as HandleDownloadZipResponse, bm as HandleEphemeralDevServerData, bo as HandleEphemeralDevServerError, bn as HandleEphemeralDevServerResponse, bp as HandleExecOnEphemeralDevServerData, br as HandleExecOnEphemeralDevServerError, bq as HandleExecOnEphemeralDevServerResponse, bO as HandleExecuteScriptData, bQ as HandleExecuteScriptError, bP as HandleExecuteScriptResponse, ct as HandleGetBlobData, cv as HandleGetBlobError, cu as HandleGetBlobResponse, cw as HandleGetCommitData, cy as HandleGetCommitError, cx as HandleGetCommitResponse, cq as HandleGetContentsData, cs as HandleGetContentsError, cr as HandleGetContentsResponse, bM as HandleGetExecuteRunData, bN as HandleGetExecuteRunError, cY as HandleGetLogsData, cZ as HandleGetLogsError, cz as HandleGetRefBranchData, cB as HandleGetRefBranchError, cA as HandleGetRefBranchResponse, cC as HandleGetRefTagData, cE as HandleGetRefTagError, cD as HandleGetRefTagResponse, cF as HandleGetTagData, cH as HandleGetTagError, cG as HandleGetTagResponse, cI as HandleGetTreeData, cK as HandleGetTreeError, cJ as HandleGetTreeResponse, d6 as HandleGetWebDeployDetailsData, by as HandleGitCommitPushData, bA as HandleGitCommitPushError, bz as HandleGitCommitPushResponse, c2 as HandleGrantPermissionData, c3 as HandleGrantPermissionError, ba as HandleInsertDomainMappingData, bc as HandleInsertDomainMappingError, bb as HandleInsertDomainMappingResponse, bg as HandleListDomainVerificationRequestsError, b9 as HandleListDomainsError, bK as HandleListExecuteRunsData, bL as HandleListExecuteRunsError, ca as HandleListGitTokensData, cc as HandleListGitTokensError, cb as HandleListGitTokensResponse, cO as HandleListGitTriggersData, cP as HandleListGitTriggersError, bR as HandleListIdentitiesData, bT as HandleListIdentitiesError, bS as HandleListIdentitiesResponse, bY as HandleListPermissionsData, b_ as HandleListPermissionsError, bZ as HandleListPermissionsResponse, a_ as HandleListRecordsData, b0 as HandleListRecordsError, a$ as HandleListRecordsResponse, cj as HandleListRepositoriesData, ck as HandleListRepositoriesError, d4 as HandleListWebDeploysData, d5 as HandleListWebDeploysError, bv as HandleReadFileFromEphemeralDevServerData, bx as HandleReadFileFromEphemeralDevServerError, bw as HandleReadFileFromEphemeralDevServerResponse, cg as HandleRevokeGitTokenData, ci as HandleRevokeGitTokenError, ch as HandleRevokeGitTokenResponse, c4 as HandleRevokePermissionData, c6 as HandleRevokePermissionError, c5 as HandleRevokePermissionResponse, bB as HandleShutdownDevServerData, bD as HandleShutdownDevServerError, bC as HandleShutdownDevServerResponse, c7 as HandleUpdatePermissionData, c9 as HandleUpdatePermissionError, c8 as HandleUpdatePermissionResponse, bh as HandleVerifyDomainData, b7 as HandleVerifyWildcardData, b8 as HandleVerifyWildcardError, bH as HandleWatchDevServerFilesData, bJ as HandleWatchDevServerFilesError, bI as HandleWatchDevServerFilesResponse, bs as HandleWriteFileFromEphemeralDevServerData, bu as HandleWriteFileFromEphemeralDevServerError, bt as HandleWriteFileFromEphemeralDevServerResponse, aE as InternalServerError, aF as ListRecordsResponse, aG as NetworkPermissionData, aH as ReadFileEphemeralDevServerResponses, aI as ReadFileRequest, aJ as RepositoryInfo, aK as RevokeGitTokenRequest, aL as ShutdownDevServerRequest, aM as Signature, aN as TagObject, aO as TagTarget, aP as TreeEntry, aR as TreeObject, aS as UpdatePermissionRequest, aT as Visibility, aU as WriteFileRequest, at as action, aC as action2, aB as event, $ as kind, a2 as kind2, af as kind3, V as type, Y as type2, ax as type3, aQ as type4 } from './types.gen-DkFlXKTr.js';
3
3
 
4
4
  interface FreestyleDevServer {
5
5
  /**
@@ -20,6 +20,8 @@ interface FreestyleDevServer {
20
20
  isNew: boolean;
21
21
  fs: FreestyleDevServerFilesystem;
22
22
  process: FreestyleDevServerProcess;
23
+ devCommandRunning: boolean;
24
+ installCommandRunning: boolean;
23
25
  /**
24
26
  * Get the status of the dev server
25
27
  */
@@ -77,6 +79,32 @@ interface FreestyleDevServerProcess {
77
79
  }>;
78
80
  }
79
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
+ };
80
108
  type Options = {
81
109
  /**
82
110
  * The base URL for the API.
@@ -144,16 +172,10 @@ declare class FreestyleSandboxes {
144
172
  /**
145
173
  * Create a new git repository.
146
174
  */
147
- createGitRepository({ name, public: pub, source, }: {
148
- name: string;
175
+ createGitRepository({ name, public: pub, source, import: _import, }: {
176
+ name?: string;
149
177
  public?: boolean;
150
- source?: {
151
- type: "git";
152
- url: string;
153
- branch?: string;
154
- depth?: number;
155
- };
156
- }): Promise<CreateRepositoryResponseSuccess>;
178
+ } & (CreateGitRepositorySource | CreateGitRepositoryImport)): Promise<CreateRepositoryResponseSuccess>;
157
179
  /**
158
180
  * List git repositories.
159
181
  */
@@ -278,4 +300,4 @@ declare class FreestyleSandboxes {
278
300
  fetch(path: string, init?: RequestInit): Promise<Response>;
279
301
  }
280
302
 
281
- export { AccessLevel, CreateRepositoryResponseSuccess, CreatedToken, DeploymentSource, DescribePermissionResponseSuccess, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponseV2, type FreestyleDevServer, type FreestyleDevServerFilesystem, FreestyleExecuteScriptParamsConfiguration, FreestyleExecuteScriptResultSuccess, FreestyleSandboxes, GitIdentity, GitTrigger, GitTriggerAction, HandleBackupCloudstateResponse, HandleCreateDomainVerificationResponse, HandleCreateGitTriggerResponse, HandleDeleteDomainVerificationResponse, HandleDeleteIdentityResponse, HandleDeleteRepoResponse, HandleGetExecuteRunResponse, HandleGetLogsResponse, HandleGrantPermissionResponse, HandleListDomainVerificationRequestsResponse, HandleListDomainsResponse, HandleListExecuteRunsResponse, HandleListGitTriggersResponse, HandleListRepositoriesResponse, HandleListWebDeploysResponse, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleVerifyWildcardResponse, ListGitTokensResponseSuccess, ListPermissionResponseSuccess };
303
+ export { AccessLevel, CreateRepoImport, CreateRepoSource, CreateRepositoryResponseSuccess, CreatedToken, DeploymentSource, DescribePermissionResponseSuccess, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponseV2, type FreestyleDevServer, type FreestyleDevServerFilesystem, FreestyleExecuteScriptParamsConfiguration, FreestyleExecuteScriptResultSuccess, FreestyleSandboxes, GitIdentity, GitTrigger, GitTriggerAction, HandleBackupCloudstateResponse, HandleCreateDomainVerificationResponse, HandleCreateGitTriggerResponse, HandleDeleteDomainVerificationResponse, HandleDeleteIdentityResponse, HandleDeleteRepoResponse, HandleGetExecuteRunResponse, HandleGetLogsResponse, HandleGrantPermissionResponse, HandleListDomainVerificationRequestsResponse, HandleListDomainsResponse, HandleListExecuteRunsResponse, HandleListGitTriggersResponse, HandleListRepositoriesResponse, HandleListWebDeploysResponse, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleVerifyWildcardResponse, ListGitTokensResponseSuccess, ListPermissionResponseSuccess };
package/dist/inde.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, D as DeploymentSource, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2, d as FreestyleCloudstateDeployRequest, e as FreestyleCloudstateDeploySuccessResponse, H as HandleBackupCloudstateResponse, f as HandleGetLogsResponse, g as HandleCreateDomainVerificationResponse, h as HandleVerifyDomainResponse, i as HandleVerifyDomainError, j as HandleListDomainsResponse, k as HandleListDomainVerificationRequestsResponse, l as HandleDeleteDomainVerificationResponse, m as HandleListWebDeploysResponse, n as HandleListExecuteRunsResponse, o as HandleGetExecuteRunResponse, p as HandleVerifyWildcardResponse, C as CreateRepositoryResponseSuccess, q as HandleListRepositoriesResponse, r as HandleDeleteRepoResponse, G as GitIdentity, s as HandleDeleteIdentityResponse, A as AccessLevel, t as HandleGrantPermissionResponse, L as ListPermissionResponseSuccess, u as DescribePermissionResponseSuccess, v as CreatedToken, w as ListGitTokensResponseSuccess, x as HandleListGitTriggersResponse, y as GitTrigger, z as GitTriggerAction, B as HandleCreateGitTriggerResponse } from './types.gen-BVXmFV7d.js';
2
- export { J as AccessTokenInfo, I as AccessibleRepository, K as Behavior, M as BlobEncoding, N as BlobObject, O as CommitObject, P as CommitParent, Q as CommitTree, R as CreateDomainMappingRequest, S as CreateRecordParams, T as CreateRepoRequest, V as CreateRepoSource, U as CreateRepositoryRequest, X as CustomBuildOptions, E as DeploymentBuildOptions, Y as DeploymentLogEntry, _ as DeploymentState, $ as DevServer, a1 as DevServerRequest, a2 as DevServerStatusRequest, a3 as DevServerWatchFilesRequest, a4 as DnsRecord, a5 as DnsRecordData, a6 as DnsRecordKind, a7 as DomainVerificationRequest, a8 as ExecRequest, a9 as ExecuteLogEntry, aa as ExecuteRunInfo, ab as ExecuteRunState, ac as FileReadContent, ae as FreestyleCloudstateDeployConfiguration, af as FreestyleCloudstateDeployErrorResponse, ag as FreestyleDeleteDomainVerificationRequest, ah as FreestyleDeployWebErrorResponse, ai as FreestyleDeployWebPayload, aj as FreestyleDeployWebPayloadV2, ak as FreestyleDomainVerificationRequest, al as FreestyleExecuteScriptParams, am as FreestyleFile, an as FreestyleGetLogsResponse, ao as FreestyleJavaScriptLog, ap as FreestyleLogResponseObject, aq as FreestyleNetworkPermission, as as FreestyleVerifyDomainRequest, at as GitCommitPushRequest, au as GitContents, aw as GitContentsDirEntryItem, ax as GitReference, ay as GitRepositoryTrigger, aB as GrantPermissionRequest, aW as HandleBackupCloudstateData, aX as HandleBackupCloudstateError, bg as HandleCreateDomainVerificationData, bh as HandleCreateDomainVerificationError, cb as HandleCreateGitTokenData, cd as HandleCreateGitTokenError, cc as HandleCreateGitTokenResponse, cL as HandleCreateGitTriggerData, cM as HandleCreateGitTriggerError, bT as HandleCreateIdentityError, bS as HandleCreateIdentityResponse, a$ as HandleCreateRecordData, b1 as HandleCreateRecordError, b0 as HandleCreateRecordResponse, cj as HandleCreateRepoData, cl as HandleCreateRepoError, ck as HandleCreateRepoResponse, bb as HandleDeleteDomainMappingData, bd as HandleDeleteDomainMappingError, bc as HandleDeleteDomainMappingResponse, bi as HandleDeleteDomainVerificationData, bj as HandleDeleteDomainVerificationError, cN as HandleDeleteGitTriggerData, cP as HandleDeleteGitTriggerError, cO as HandleDeleteGitTriggerResponse, bU as HandleDeleteIdentityData, bV as HandleDeleteIdentityError, b2 as HandleDeleteRecordData, b4 as HandleDeleteRecordError, b3 as HandleDeleteRecordResponse, cm as HandleDeleteRepoData, cn as HandleDeleteRepoError, aT as HandleDeployCloudstateData, aV as HandleDeployCloudstateError, aU as HandleDeployCloudstateResponse, cV as HandleDeployWebData, cX as HandleDeployWebError, cW as HandleDeployWebResponse, cY as HandleDeployWebV2Data, c_ as HandleDeployWebV2Error, cZ as HandleDeployWebV2Response, bZ as HandleDescribePermissionData, b$ as HandleDescribePermissionError, b_ as HandleDescribePermissionResponse, bC as HandleDevServerStatusData, bE as HandleDevServerStatusError, bD as HandleDevServerStatusResponse, cG as HandleDownloadTarballData, cI as HandleDownloadTarballError, cH as HandleDownloadTarballResponse, bk as HandleEphemeralDevServerData, bm as HandleEphemeralDevServerError, bl as HandleEphemeralDevServerResponse, bn as HandleExecOnEphemeralDevServerData, bp as HandleExecOnEphemeralDevServerError, bo as HandleExecOnEphemeralDevServerResponse, bM as HandleExecuteScriptData, bO as HandleExecuteScriptError, bN as HandleExecuteScriptResponse, cr as HandleGetBlobData, ct as HandleGetBlobError, cs as HandleGetBlobResponse, cu as HandleGetCommitData, cw as HandleGetCommitError, cv as HandleGetCommitResponse, co as HandleGetContentsData, cq as HandleGetContentsError, cp as HandleGetContentsResponse, bK as HandleGetExecuteRunData, bL as HandleGetExecuteRunError, cQ as HandleGetLogsData, cR as HandleGetLogsError, cx as HandleGetRefBranchData, cz as HandleGetRefBranchError, cy as HandleGetRefBranchResponse, cS as HandleGetRefTagData, cU as HandleGetRefTagError, cT as HandleGetRefTagResponse, cA as HandleGetTagData, cC as HandleGetTagError, cB as HandleGetTagResponse, cD as HandleGetTreeData, cF as HandleGetTreeError, cE as HandleGetTreeResponse, d1 as HandleGetWebDeployDetailsData, bw as HandleGitCommitPushData, by as HandleGitCommitPushError, bx as HandleGitCommitPushResponse, c0 as HandleGrantPermissionData, c1 as HandleGrantPermissionError, b8 as HandleInsertDomainMappingData, ba as HandleInsertDomainMappingError, b9 as HandleInsertDomainMappingResponse, be as HandleListDomainVerificationRequestsError, b7 as HandleListDomainsError, bI as HandleListExecuteRunsData, bJ as HandleListExecuteRunsError, c8 as HandleListGitTokensData, ca as HandleListGitTokensError, c9 as HandleListGitTokensResponse, cJ as HandleListGitTriggersData, cK as HandleListGitTriggersError, bP as HandleListIdentitiesData, bR as HandleListIdentitiesError, bQ as HandleListIdentitiesResponse, bW as HandleListPermissionsData, bY as HandleListPermissionsError, bX as HandleListPermissionsResponse, aY as HandleListRecordsData, a_ as HandleListRecordsError, aZ as HandleListRecordsResponse, ch as HandleListRepositoriesData, ci as HandleListRepositoriesError, c$ as HandleListWebDeploysData, d0 as HandleListWebDeploysError, bt as HandleReadFileFromEphemeralDevServerData, bv as HandleReadFileFromEphemeralDevServerError, bu as HandleReadFileFromEphemeralDevServerResponse, ce as HandleRevokeGitTokenData, cg as HandleRevokeGitTokenError, cf as HandleRevokeGitTokenResponse, c2 as HandleRevokePermissionData, c4 as HandleRevokePermissionError, c3 as HandleRevokePermissionResponse, bz as HandleShutdownDevServerData, bB as HandleShutdownDevServerError, bA as HandleShutdownDevServerResponse, c5 as HandleUpdatePermissionData, c7 as HandleUpdatePermissionError, c6 as HandleUpdatePermissionResponse, bf as HandleVerifyDomainData, b5 as HandleVerifyWildcardData, b6 as HandleVerifyWildcardError, bF as HandleWatchDevServerFilesData, bH as HandleWatchDevServerFilesError, bG as HandleWatchDevServerFilesResponse, bq as HandleWriteFileFromEphemeralDevServerData, bs as HandleWriteFileFromEphemeralDevServerError, br as HandleWriteFileFromEphemeralDevServerResponse, aC as InternalServerError, aD as ListRecordsResponse, aE as NetworkPermissionData, aF as ReadFileEphemeralDevServerResponses, aG as ReadFileRequest, aH as RepositoryInfo, aI as RevokeGitTokenRequest, aJ as ShutdownDevServerRequest, aK as Signature, aL as TagObject, aM as TagTarget, aN as TreeEntry, aP as TreeObject, aQ as UpdatePermissionRequest, aR as Visibility, aS as WriteFileRequest, ar as action, aA as action2, az as event, Z as kind, a0 as kind2, ad as kind3, W as type, av as type2, aO as type3 } from './types.gen-BVXmFV7d.js';
1
+ import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, D as DeploymentSource, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2, d as FreestyleCloudstateDeployRequest, e as FreestyleCloudstateDeploySuccessResponse, H as HandleBackupCloudstateResponse, f as HandleGetLogsResponse, g as HandleCreateDomainVerificationResponse, h as HandleVerifyDomainResponse, i as HandleVerifyDomainError, j as HandleListDomainsResponse, k as HandleListDomainVerificationRequestsResponse, l as HandleDeleteDomainVerificationResponse, m as HandleListWebDeploysResponse, n as HandleListExecuteRunsResponse, o as HandleGetExecuteRunResponse, p as HandleVerifyWildcardResponse, C as CreateRepoSource, q as CreateRepoImport, r as CreateRepositoryResponseSuccess, s as HandleListRepositoriesResponse, t as HandleDeleteRepoResponse, G as GitIdentity, u as HandleDeleteIdentityResponse, A as AccessLevel, v as HandleGrantPermissionResponse, L as ListPermissionResponseSuccess, w as DescribePermissionResponseSuccess, x as CreatedToken, y as ListGitTokensResponseSuccess, z as HandleListGitTriggersResponse, B as GitTrigger, E as GitTriggerAction, I as HandleCreateGitTriggerResponse } from './types.gen-DkFlXKTr.js';
2
+ export { M as AccessTokenInfo, K as AccessibleRepository, N as Behavior, O as BlobEncoding, P as BlobObject, Q as CommitObject, R as CommitParent, S as CommitTree, T as CreateDomainMappingRequest, U as CreateRecordParams, W as CreateRepoRequest, X as CreateRepositoryRequest, Z as CustomBuildOptions, J as DeploymentBuildOptions, _ as DeploymentLogEntry, a0 as DeploymentState, a1 as DevServer, a3 as DevServerRequest, a4 as DevServerStatusRequest, a5 as DevServerWatchFilesRequest, a6 as DnsRecord, a7 as DnsRecordData, a8 as DnsRecordKind, a9 as DomainVerificationRequest, aa as ExecRequest, ab as ExecuteLogEntry, ac as ExecuteRunInfo, ad as ExecuteRunState, ae as FileReadContent, ag as FreestyleCloudstateDeployConfiguration, ah as FreestyleCloudstateDeployErrorResponse, ai as FreestyleDeleteDomainVerificationRequest, aj as FreestyleDeployWebErrorResponse, ak as FreestyleDeployWebPayload, al as FreestyleDeployWebPayloadV2, am as FreestyleDomainVerificationRequest, an as FreestyleExecuteScriptParams, ao as FreestyleFile, ap as FreestyleGetLogsResponse, aq as FreestyleJavaScriptLog, ar as FreestyleLogResponseObject, as as FreestyleNetworkPermission, au as FreestyleVerifyDomainRequest, av as GitCommitPushRequest, aw as GitContents, ay as GitContentsDirEntryItem, az as GitReference, aA as GitRepositoryTrigger, aD as GrantPermissionRequest, aY as HandleBackupCloudstateData, aZ as HandleBackupCloudstateError, bi as HandleCreateDomainVerificationData, bj as HandleCreateDomainVerificationError, cd as HandleCreateGitTokenData, cf as HandleCreateGitTokenError, ce as HandleCreateGitTokenResponse, cQ as HandleCreateGitTriggerData, cR as HandleCreateGitTriggerError, bV as HandleCreateIdentityError, bU as HandleCreateIdentityResponse, b1 as HandleCreateRecordData, b3 as HandleCreateRecordError, b2 as HandleCreateRecordResponse, cl as HandleCreateRepoData, cn as HandleCreateRepoError, cm as HandleCreateRepoResponse, bd as HandleDeleteDomainMappingData, bf as HandleDeleteDomainMappingError, be as HandleDeleteDomainMappingResponse, bk as HandleDeleteDomainVerificationData, bl as HandleDeleteDomainVerificationError, cS as HandleDeleteGitTriggerData, cU as HandleDeleteGitTriggerError, cT as HandleDeleteGitTriggerResponse, bW as HandleDeleteIdentityData, bX as HandleDeleteIdentityError, b4 as HandleDeleteRecordData, b6 as HandleDeleteRecordError, b5 as HandleDeleteRecordResponse, co as HandleDeleteRepoData, cp as HandleDeleteRepoError, aV as HandleDeployCloudstateData, aX as HandleDeployCloudstateError, aW as HandleDeployCloudstateResponse, c_ as HandleDeployWebData, d0 as HandleDeployWebError, c$ as HandleDeployWebResponse, d1 as HandleDeployWebV2Data, d3 as HandleDeployWebV2Error, d2 as HandleDeployWebV2Response, b$ as HandleDescribePermissionData, c1 as HandleDescribePermissionError, c0 as HandleDescribePermissionResponse, bE as HandleDevServerStatusData, bG as HandleDevServerStatusError, bF as HandleDevServerStatusResponse, cL as HandleDownloadTarballData, cN as HandleDownloadTarballError, cM as HandleDownloadTarballResponse, cV as HandleDownloadZipData, cX as HandleDownloadZipError, cW as HandleDownloadZipResponse, bm as HandleEphemeralDevServerData, bo as HandleEphemeralDevServerError, bn as HandleEphemeralDevServerResponse, bp as HandleExecOnEphemeralDevServerData, br as HandleExecOnEphemeralDevServerError, bq as HandleExecOnEphemeralDevServerResponse, bO as HandleExecuteScriptData, bQ as HandleExecuteScriptError, bP as HandleExecuteScriptResponse, ct as HandleGetBlobData, cv as HandleGetBlobError, cu as HandleGetBlobResponse, cw as HandleGetCommitData, cy as HandleGetCommitError, cx as HandleGetCommitResponse, cq as HandleGetContentsData, cs as HandleGetContentsError, cr as HandleGetContentsResponse, bM as HandleGetExecuteRunData, bN as HandleGetExecuteRunError, cY as HandleGetLogsData, cZ as HandleGetLogsError, cz as HandleGetRefBranchData, cB as HandleGetRefBranchError, cA as HandleGetRefBranchResponse, cC as HandleGetRefTagData, cE as HandleGetRefTagError, cD as HandleGetRefTagResponse, cF as HandleGetTagData, cH as HandleGetTagError, cG as HandleGetTagResponse, cI as HandleGetTreeData, cK as HandleGetTreeError, cJ as HandleGetTreeResponse, d6 as HandleGetWebDeployDetailsData, by as HandleGitCommitPushData, bA as HandleGitCommitPushError, bz as HandleGitCommitPushResponse, c2 as HandleGrantPermissionData, c3 as HandleGrantPermissionError, ba as HandleInsertDomainMappingData, bc as HandleInsertDomainMappingError, bb as HandleInsertDomainMappingResponse, bg as HandleListDomainVerificationRequestsError, b9 as HandleListDomainsError, bK as HandleListExecuteRunsData, bL as HandleListExecuteRunsError, ca as HandleListGitTokensData, cc as HandleListGitTokensError, cb as HandleListGitTokensResponse, cO as HandleListGitTriggersData, cP as HandleListGitTriggersError, bR as HandleListIdentitiesData, bT as HandleListIdentitiesError, bS as HandleListIdentitiesResponse, bY as HandleListPermissionsData, b_ as HandleListPermissionsError, bZ as HandleListPermissionsResponse, a_ as HandleListRecordsData, b0 as HandleListRecordsError, a$ as HandleListRecordsResponse, cj as HandleListRepositoriesData, ck as HandleListRepositoriesError, d4 as HandleListWebDeploysData, d5 as HandleListWebDeploysError, bv as HandleReadFileFromEphemeralDevServerData, bx as HandleReadFileFromEphemeralDevServerError, bw as HandleReadFileFromEphemeralDevServerResponse, cg as HandleRevokeGitTokenData, ci as HandleRevokeGitTokenError, ch as HandleRevokeGitTokenResponse, c4 as HandleRevokePermissionData, c6 as HandleRevokePermissionError, c5 as HandleRevokePermissionResponse, bB as HandleShutdownDevServerData, bD as HandleShutdownDevServerError, bC as HandleShutdownDevServerResponse, c7 as HandleUpdatePermissionData, c9 as HandleUpdatePermissionError, c8 as HandleUpdatePermissionResponse, bh as HandleVerifyDomainData, b7 as HandleVerifyWildcardData, b8 as HandleVerifyWildcardError, bH as HandleWatchDevServerFilesData, bJ as HandleWatchDevServerFilesError, bI as HandleWatchDevServerFilesResponse, bs as HandleWriteFileFromEphemeralDevServerData, bu as HandleWriteFileFromEphemeralDevServerError, bt as HandleWriteFileFromEphemeralDevServerResponse, aE as InternalServerError, aF as ListRecordsResponse, aG as NetworkPermissionData, aH as ReadFileEphemeralDevServerResponses, aI as ReadFileRequest, aJ as RepositoryInfo, aK as RevokeGitTokenRequest, aL as ShutdownDevServerRequest, aM as Signature, aN as TagObject, aO as TagTarget, aP as TreeEntry, aR as TreeObject, aS as UpdatePermissionRequest, aT as Visibility, aU as WriteFileRequest, at as action, aC as action2, aB as event, $ as kind, a2 as kind2, af as kind3, V as type, Y as type2, ax as type3, aQ as type4 } from './types.gen-DkFlXKTr.js';
3
3
 
4
4
  interface FreestyleDevServer {
5
5
  /**
@@ -20,6 +20,8 @@ interface FreestyleDevServer {
20
20
  isNew: boolean;
21
21
  fs: FreestyleDevServerFilesystem;
22
22
  process: FreestyleDevServerProcess;
23
+ devCommandRunning: boolean;
24
+ installCommandRunning: boolean;
23
25
  /**
24
26
  * Get the status of the dev server
25
27
  */
@@ -77,6 +79,32 @@ interface FreestyleDevServerProcess {
77
79
  }>;
78
80
  }
79
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
+ };
80
108
  type Options = {
81
109
  /**
82
110
  * The base URL for the API.
@@ -144,16 +172,10 @@ declare class FreestyleSandboxes {
144
172
  /**
145
173
  * Create a new git repository.
146
174
  */
147
- createGitRepository({ name, public: pub, source, }: {
148
- name: string;
175
+ createGitRepository({ name, public: pub, source, import: _import, }: {
176
+ name?: string;
149
177
  public?: boolean;
150
- source?: {
151
- type: "git";
152
- url: string;
153
- branch?: string;
154
- depth?: number;
155
- };
156
- }): Promise<CreateRepositoryResponseSuccess>;
178
+ } & (CreateGitRepositorySource | CreateGitRepositoryImport)): Promise<CreateRepositoryResponseSuccess>;
157
179
  /**
158
180
  * List git repositories.
159
181
  */
@@ -278,4 +300,4 @@ declare class FreestyleSandboxes {
278
300
  fetch(path: string, init?: RequestInit): Promise<Response>;
279
301
  }
280
302
 
281
- export { AccessLevel, CreateRepositoryResponseSuccess, CreatedToken, DeploymentSource, DescribePermissionResponseSuccess, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponseV2, type FreestyleDevServer, type FreestyleDevServerFilesystem, FreestyleExecuteScriptParamsConfiguration, FreestyleExecuteScriptResultSuccess, FreestyleSandboxes, GitIdentity, GitTrigger, GitTriggerAction, HandleBackupCloudstateResponse, HandleCreateDomainVerificationResponse, HandleCreateGitTriggerResponse, HandleDeleteDomainVerificationResponse, HandleDeleteIdentityResponse, HandleDeleteRepoResponse, HandleGetExecuteRunResponse, HandleGetLogsResponse, HandleGrantPermissionResponse, HandleListDomainVerificationRequestsResponse, HandleListDomainsResponse, HandleListExecuteRunsResponse, HandleListGitTriggersResponse, HandleListRepositoriesResponse, HandleListWebDeploysResponse, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleVerifyWildcardResponse, ListGitTokensResponseSuccess, ListPermissionResponseSuccess };
303
+ export { AccessLevel, CreateRepoImport, CreateRepoSource, CreateRepositoryResponseSuccess, CreatedToken, DeploymentSource, DescribePermissionResponseSuccess, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponseV2, type FreestyleDevServer, type FreestyleDevServerFilesystem, FreestyleExecuteScriptParamsConfiguration, FreestyleExecuteScriptResultSuccess, FreestyleSandboxes, GitIdentity, GitTrigger, GitTriggerAction, HandleBackupCloudstateResponse, HandleCreateDomainVerificationResponse, HandleCreateGitTriggerResponse, HandleDeleteDomainVerificationResponse, HandleDeleteIdentityResponse, HandleDeleteRepoResponse, HandleGetExecuteRunResponse, HandleGetLogsResponse, HandleGrantPermissionResponse, HandleListDomainVerificationRequestsResponse, HandleListDomainsResponse, HandleListExecuteRunsResponse, HandleListGitTriggersResponse, HandleListRepositoriesResponse, HandleListWebDeploysResponse, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleVerifyWildcardResponse, ListGitTokensResponseSuccess, ListPermissionResponseSuccess };
@@ -3169,11 +3169,12 @@ const executeTool = (config) => {
3169
3169
  return tool({
3170
3170
  description: executeCodeDescription(envVars, nodeModules),
3171
3171
  parameters: executeCodeSchema,
3172
- execute: async ({ script, ...otherParams }) => {
3172
+ execute: async ({ script, ...otherParams }, { toolCallId }) => {
3173
3173
  try {
3174
3174
  const res = await api.executeScript(script, config);
3175
3175
  if (config.onResult) {
3176
3176
  await config.onResult({
3177
+ toolCallId,
3177
3178
  result: res,
3178
3179
  input: {
3179
3180
  script,
@@ -3216,10 +3217,13 @@ ${nodeModules.length > 0 ? `You can use the following node modules: ${nodeModule
3216
3217
  `)
3217
3218
  }),
3218
3219
  execute: async ({ files }) => {
3219
- const new_files = Object.keys(files).reduce((acc, key) => {
3220
- acc[key] = { content: files[key] };
3221
- return acc;
3222
- }, {});
3220
+ const new_files = Object.keys(files).reduce(
3221
+ (acc, key) => {
3222
+ acc[key] = { content: files[key] };
3223
+ return acc;
3224
+ },
3225
+ {}
3226
+ );
3223
3227
  try {
3224
3228
  const res = await api.deployWeb(
3225
3229
  {
@@ -3167,11 +3167,12 @@ const executeTool = (config) => {
3167
3167
  return tool({
3168
3168
  description: executeCodeDescription(envVars, nodeModules),
3169
3169
  parameters: executeCodeSchema,
3170
- execute: async ({ script, ...otherParams }) => {
3170
+ execute: async ({ script, ...otherParams }, { toolCallId }) => {
3171
3171
  try {
3172
3172
  const res = await api.executeScript(script, config);
3173
3173
  if (config.onResult) {
3174
3174
  await config.onResult({
3175
+ toolCallId,
3175
3176
  result: res,
3176
3177
  input: {
3177
3178
  script,
@@ -3214,10 +3215,13 @@ ${nodeModules.length > 0 ? `You can use the following node modules: ${nodeModule
3214
3215
  `)
3215
3216
  }),
3216
3217
  execute: async ({ files }) => {
3217
- const new_files = Object.keys(files).reduce((acc, key) => {
3218
- acc[key] = { content: files[key] };
3219
- return acc;
3220
- }, {});
3218
+ const new_files = Object.keys(files).reduce(
3219
+ (acc, key) => {
3220
+ acc[key] = { content: files[key] };
3221
+ return acc;
3222
+ },
3223
+ {}
3224
+ );
3221
3225
  try {
3222
3226
  const res = await api.deployWeb(
3223
3227
  {
package/dist/index.cjs CHANGED
@@ -63,6 +63,12 @@ const handleExecOnEphemeralDevServer = (options) => {
63
63
  url: "/ephemeral/v1/dev-servers/exec"
64
64
  });
65
65
  };
66
+ const handleWriteFileFromEphemeralDevServer = (options) => {
67
+ return (options?.client ?? client).put({
68
+ ...options,
69
+ url: "/ephemeral/v1/dev-servers/files/{*filepath}"
70
+ });
71
+ };
66
72
  const handleReadFileFromEphemeralDevServer = (options) => {
67
73
  return (options?.client ?? client).post({
68
74
  ...options,
@@ -494,14 +500,16 @@ ${response.error.message}`);
494
500
  async createGitRepository({
495
501
  name,
496
502
  public: pub = false,
497
- source
503
+ source,
504
+ import: _import
498
505
  }) {
499
506
  const response = await handleCreateRepo({
500
507
  client: this.client,
501
508
  body: {
502
509
  name,
503
510
  public: pub,
504
- source
511
+ source,
512
+ import: _import
505
513
  }
506
514
  });
507
515
  if (response.data) {
@@ -995,17 +1003,20 @@ ${response.error.message}`);
995
1003
  },
996
1004
  async writeFile(path, content, encoding = "utf-8") {
997
1005
  const contentStr = typeof content === "string" ? content : Buffer.from(content).toString(encoding);
998
- await client.put({
999
- url: `/ephemeral/v1/dev-servers/files/${path}`,
1006
+ const response2 = await handleWriteFileFromEphemeralDevServer({
1007
+ client,
1008
+ path: {
1009
+ filepath: path
1010
+ },
1000
1011
  body: {
1001
1012
  devServer: devServerInstance,
1002
1013
  content: contentStr,
1003
1014
  encoding
1004
1015
  }
1005
1016
  });
1006
- if (response.error) {
1017
+ if (response2.error) {
1007
1018
  throw new Error(
1008
- `Failed to write file: ${JSON.stringify(response.error)}`
1019
+ `Failed to write file: ${JSON.stringify(response2.error)}`
1009
1020
  );
1010
1021
  }
1011
1022
  }
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 CreateRepositoryResponseSuccess, q as HandleListRepositoriesResponse, r as HandleDeleteRepoResponse, G as GitIdentity, s as HandleDeleteIdentityResponse, A as AccessLevel, t as HandleGrantPermissionResponse, L as ListPermissionResponseSuccess, u as DescribePermissionResponseSuccess, v as CreatedToken, w as ListGitTokensResponseSuccess, x as HandleListGitTriggersResponse, y as GitTrigger, z as GitTriggerAction, B as HandleCreateGitTriggerResponse } from './types.gen-BVXmFV7d.js';
2
- export { J as AccessTokenInfo, I as AccessibleRepository, K as Behavior, M as BlobEncoding, N as BlobObject, O as CommitObject, P as CommitParent, Q as CommitTree, R as CreateDomainMappingRequest, S as CreateRecordParams, T as CreateRepoRequest, V as CreateRepoSource, U as CreateRepositoryRequest, X as CustomBuildOptions, E as DeploymentBuildOptions, Y as DeploymentLogEntry, _ as DeploymentState, $ as DevServer, a1 as DevServerRequest, a2 as DevServerStatusRequest, a3 as DevServerWatchFilesRequest, a4 as DnsRecord, a5 as DnsRecordData, a6 as DnsRecordKind, a7 as DomainVerificationRequest, a8 as ExecRequest, a9 as ExecuteLogEntry, aa as ExecuteRunInfo, ab as ExecuteRunState, ac as FileReadContent, ae as FreestyleCloudstateDeployConfiguration, af as FreestyleCloudstateDeployErrorResponse, ag as FreestyleDeleteDomainVerificationRequest, ah as FreestyleDeployWebErrorResponse, ai as FreestyleDeployWebPayload, aj as FreestyleDeployWebPayloadV2, ak as FreestyleDomainVerificationRequest, al as FreestyleExecuteScriptParams, am as FreestyleFile, an as FreestyleGetLogsResponse, ao as FreestyleJavaScriptLog, ap as FreestyleLogResponseObject, aq as FreestyleNetworkPermission, as as FreestyleVerifyDomainRequest, at as GitCommitPushRequest, au as GitContents, aw as GitContentsDirEntryItem, ax as GitReference, ay as GitRepositoryTrigger, aB as GrantPermissionRequest, aW as HandleBackupCloudstateData, aX as HandleBackupCloudstateError, bg as HandleCreateDomainVerificationData, bh as HandleCreateDomainVerificationError, cb as HandleCreateGitTokenData, cd as HandleCreateGitTokenError, cc as HandleCreateGitTokenResponse, cL as HandleCreateGitTriggerData, cM as HandleCreateGitTriggerError, bT as HandleCreateIdentityError, bS as HandleCreateIdentityResponse, a$ as HandleCreateRecordData, b1 as HandleCreateRecordError, b0 as HandleCreateRecordResponse, cj as HandleCreateRepoData, cl as HandleCreateRepoError, ck as HandleCreateRepoResponse, bb as HandleDeleteDomainMappingData, bd as HandleDeleteDomainMappingError, bc as HandleDeleteDomainMappingResponse, bi as HandleDeleteDomainVerificationData, bj as HandleDeleteDomainVerificationError, cN as HandleDeleteGitTriggerData, cP as HandleDeleteGitTriggerError, cO as HandleDeleteGitTriggerResponse, bU as HandleDeleteIdentityData, bV as HandleDeleteIdentityError, b2 as HandleDeleteRecordData, b4 as HandleDeleteRecordError, b3 as HandleDeleteRecordResponse, cm as HandleDeleteRepoData, cn as HandleDeleteRepoError, aT as HandleDeployCloudstateData, aV as HandleDeployCloudstateError, aU as HandleDeployCloudstateResponse, cV as HandleDeployWebData, cX as HandleDeployWebError, cW as HandleDeployWebResponse, cY as HandleDeployWebV2Data, c_ as HandleDeployWebV2Error, cZ as HandleDeployWebV2Response, bZ as HandleDescribePermissionData, b$ as HandleDescribePermissionError, b_ as HandleDescribePermissionResponse, bC as HandleDevServerStatusData, bE as HandleDevServerStatusError, bD as HandleDevServerStatusResponse, cG as HandleDownloadTarballData, cI as HandleDownloadTarballError, cH as HandleDownloadTarballResponse, bk as HandleEphemeralDevServerData, bm as HandleEphemeralDevServerError, bl as HandleEphemeralDevServerResponse, bn as HandleExecOnEphemeralDevServerData, bp as HandleExecOnEphemeralDevServerError, bo as HandleExecOnEphemeralDevServerResponse, bM as HandleExecuteScriptData, bO as HandleExecuteScriptError, bN as HandleExecuteScriptResponse, cr as HandleGetBlobData, ct as HandleGetBlobError, cs as HandleGetBlobResponse, cu as HandleGetCommitData, cw as HandleGetCommitError, cv as HandleGetCommitResponse, co as HandleGetContentsData, cq as HandleGetContentsError, cp as HandleGetContentsResponse, bK as HandleGetExecuteRunData, bL as HandleGetExecuteRunError, cQ as HandleGetLogsData, cR as HandleGetLogsError, cx as HandleGetRefBranchData, cz as HandleGetRefBranchError, cy as HandleGetRefBranchResponse, cS as HandleGetRefTagData, cU as HandleGetRefTagError, cT as HandleGetRefTagResponse, cA as HandleGetTagData, cC as HandleGetTagError, cB as HandleGetTagResponse, cD as HandleGetTreeData, cF as HandleGetTreeError, cE as HandleGetTreeResponse, d1 as HandleGetWebDeployDetailsData, bw as HandleGitCommitPushData, by as HandleGitCommitPushError, bx as HandleGitCommitPushResponse, c0 as HandleGrantPermissionData, c1 as HandleGrantPermissionError, b8 as HandleInsertDomainMappingData, ba as HandleInsertDomainMappingError, b9 as HandleInsertDomainMappingResponse, be as HandleListDomainVerificationRequestsError, b7 as HandleListDomainsError, bI as HandleListExecuteRunsData, bJ as HandleListExecuteRunsError, c8 as HandleListGitTokensData, ca as HandleListGitTokensError, c9 as HandleListGitTokensResponse, cJ as HandleListGitTriggersData, cK as HandleListGitTriggersError, bP as HandleListIdentitiesData, bR as HandleListIdentitiesError, bQ as HandleListIdentitiesResponse, bW as HandleListPermissionsData, bY as HandleListPermissionsError, bX as HandleListPermissionsResponse, aY as HandleListRecordsData, a_ as HandleListRecordsError, aZ as HandleListRecordsResponse, ch as HandleListRepositoriesData, ci as HandleListRepositoriesError, c$ as HandleListWebDeploysData, d0 as HandleListWebDeploysError, bt as HandleReadFileFromEphemeralDevServerData, bv as HandleReadFileFromEphemeralDevServerError, bu as HandleReadFileFromEphemeralDevServerResponse, ce as HandleRevokeGitTokenData, cg as HandleRevokeGitTokenError, cf as HandleRevokeGitTokenResponse, c2 as HandleRevokePermissionData, c4 as HandleRevokePermissionError, c3 as HandleRevokePermissionResponse, bz as HandleShutdownDevServerData, bB as HandleShutdownDevServerError, bA as HandleShutdownDevServerResponse, c5 as HandleUpdatePermissionData, c7 as HandleUpdatePermissionError, c6 as HandleUpdatePermissionResponse, bf as HandleVerifyDomainData, b5 as HandleVerifyWildcardData, b6 as HandleVerifyWildcardError, bF as HandleWatchDevServerFilesData, bH as HandleWatchDevServerFilesError, bG as HandleWatchDevServerFilesResponse, bq as HandleWriteFileFromEphemeralDevServerData, bs as HandleWriteFileFromEphemeralDevServerError, br as HandleWriteFileFromEphemeralDevServerResponse, aC as InternalServerError, aD as ListRecordsResponse, aE as NetworkPermissionData, aF as ReadFileEphemeralDevServerResponses, aG as ReadFileRequest, aH as RepositoryInfo, aI as RevokeGitTokenRequest, aJ as ShutdownDevServerRequest, aK as Signature, aL as TagObject, aM as TagTarget, aN as TreeEntry, aP as TreeObject, aQ as UpdatePermissionRequest, aR as Visibility, aS as WriteFileRequest, ar as action, aA as action2, az as event, Z as kind, a0 as kind2, ad as kind3, W as type, av as type2, aO as type3 } from './types.gen-BVXmFV7d.js';
1
+ import { F as FreestyleExecuteScriptParamsConfiguration, a as FreestyleExecuteScriptResultSuccess, D as DeploymentSource, b as FreestyleDeployWebConfiguration, c as FreestyleDeployWebSuccessResponseV2, d as FreestyleCloudstateDeployRequest, e as FreestyleCloudstateDeploySuccessResponse, H as HandleBackupCloudstateResponse, f as HandleGetLogsResponse, g as HandleCreateDomainVerificationResponse, h as HandleVerifyDomainResponse, i as HandleVerifyDomainError, j as HandleListDomainsResponse, k as HandleListDomainVerificationRequestsResponse, l as HandleDeleteDomainVerificationResponse, m as HandleListWebDeploysResponse, n as HandleListExecuteRunsResponse, o as HandleGetExecuteRunResponse, p as HandleVerifyWildcardResponse, C as CreateRepoSource, q as CreateRepoImport, r as CreateRepositoryResponseSuccess, s as HandleListRepositoriesResponse, t as HandleDeleteRepoResponse, G as GitIdentity, u as HandleDeleteIdentityResponse, A as AccessLevel, v as HandleGrantPermissionResponse, L as ListPermissionResponseSuccess, w as DescribePermissionResponseSuccess, x as CreatedToken, y as ListGitTokensResponseSuccess, z as HandleListGitTriggersResponse, B as GitTrigger, E as GitTriggerAction, I as HandleCreateGitTriggerResponse } from './types.gen-DkFlXKTr.js';
2
+ export { M as AccessTokenInfo, K as AccessibleRepository, N as Behavior, O as BlobEncoding, P as BlobObject, Q as CommitObject, R as CommitParent, S as CommitTree, T as CreateDomainMappingRequest, U as CreateRecordParams, W as CreateRepoRequest, X as CreateRepositoryRequest, Z as CustomBuildOptions, J as DeploymentBuildOptions, _ as DeploymentLogEntry, a0 as DeploymentState, a1 as DevServer, a3 as DevServerRequest, a4 as DevServerStatusRequest, a5 as DevServerWatchFilesRequest, a6 as DnsRecord, a7 as DnsRecordData, a8 as DnsRecordKind, a9 as DomainVerificationRequest, aa as ExecRequest, ab as ExecuteLogEntry, ac as ExecuteRunInfo, ad as ExecuteRunState, ae as FileReadContent, ag as FreestyleCloudstateDeployConfiguration, ah as FreestyleCloudstateDeployErrorResponse, ai as FreestyleDeleteDomainVerificationRequest, aj as FreestyleDeployWebErrorResponse, ak as FreestyleDeployWebPayload, al as FreestyleDeployWebPayloadV2, am as FreestyleDomainVerificationRequest, an as FreestyleExecuteScriptParams, ao as FreestyleFile, ap as FreestyleGetLogsResponse, aq as FreestyleJavaScriptLog, ar as FreestyleLogResponseObject, as as FreestyleNetworkPermission, au as FreestyleVerifyDomainRequest, av as GitCommitPushRequest, aw as GitContents, ay as GitContentsDirEntryItem, az as GitReference, aA as GitRepositoryTrigger, aD as GrantPermissionRequest, aY as HandleBackupCloudstateData, aZ as HandleBackupCloudstateError, bi as HandleCreateDomainVerificationData, bj as HandleCreateDomainVerificationError, cd as HandleCreateGitTokenData, cf as HandleCreateGitTokenError, ce as HandleCreateGitTokenResponse, cQ as HandleCreateGitTriggerData, cR as HandleCreateGitTriggerError, bV as HandleCreateIdentityError, bU as HandleCreateIdentityResponse, b1 as HandleCreateRecordData, b3 as HandleCreateRecordError, b2 as HandleCreateRecordResponse, cl as HandleCreateRepoData, cn as HandleCreateRepoError, cm as HandleCreateRepoResponse, bd as HandleDeleteDomainMappingData, bf as HandleDeleteDomainMappingError, be as HandleDeleteDomainMappingResponse, bk as HandleDeleteDomainVerificationData, bl as HandleDeleteDomainVerificationError, cS as HandleDeleteGitTriggerData, cU as HandleDeleteGitTriggerError, cT as HandleDeleteGitTriggerResponse, bW as HandleDeleteIdentityData, bX as HandleDeleteIdentityError, b4 as HandleDeleteRecordData, b6 as HandleDeleteRecordError, b5 as HandleDeleteRecordResponse, co as HandleDeleteRepoData, cp as HandleDeleteRepoError, aV as HandleDeployCloudstateData, aX as HandleDeployCloudstateError, aW as HandleDeployCloudstateResponse, c_ as HandleDeployWebData, d0 as HandleDeployWebError, c$ as HandleDeployWebResponse, d1 as HandleDeployWebV2Data, d3 as HandleDeployWebV2Error, d2 as HandleDeployWebV2Response, b$ as HandleDescribePermissionData, c1 as HandleDescribePermissionError, c0 as HandleDescribePermissionResponse, bE as HandleDevServerStatusData, bG as HandleDevServerStatusError, bF as HandleDevServerStatusResponse, cL as HandleDownloadTarballData, cN as HandleDownloadTarballError, cM as HandleDownloadTarballResponse, cV as HandleDownloadZipData, cX as HandleDownloadZipError, cW as HandleDownloadZipResponse, bm as HandleEphemeralDevServerData, bo as HandleEphemeralDevServerError, bn as HandleEphemeralDevServerResponse, bp as HandleExecOnEphemeralDevServerData, br as HandleExecOnEphemeralDevServerError, bq as HandleExecOnEphemeralDevServerResponse, bO as HandleExecuteScriptData, bQ as HandleExecuteScriptError, bP as HandleExecuteScriptResponse, ct as HandleGetBlobData, cv as HandleGetBlobError, cu as HandleGetBlobResponse, cw as HandleGetCommitData, cy as HandleGetCommitError, cx as HandleGetCommitResponse, cq as HandleGetContentsData, cs as HandleGetContentsError, cr as HandleGetContentsResponse, bM as HandleGetExecuteRunData, bN as HandleGetExecuteRunError, cY as HandleGetLogsData, cZ as HandleGetLogsError, cz as HandleGetRefBranchData, cB as HandleGetRefBranchError, cA as HandleGetRefBranchResponse, cC as HandleGetRefTagData, cE as HandleGetRefTagError, cD as HandleGetRefTagResponse, cF as HandleGetTagData, cH as HandleGetTagError, cG as HandleGetTagResponse, cI as HandleGetTreeData, cK as HandleGetTreeError, cJ as HandleGetTreeResponse, d6 as HandleGetWebDeployDetailsData, by as HandleGitCommitPushData, bA as HandleGitCommitPushError, bz as HandleGitCommitPushResponse, c2 as HandleGrantPermissionData, c3 as HandleGrantPermissionError, ba as HandleInsertDomainMappingData, bc as HandleInsertDomainMappingError, bb as HandleInsertDomainMappingResponse, bg as HandleListDomainVerificationRequestsError, b9 as HandleListDomainsError, bK as HandleListExecuteRunsData, bL as HandleListExecuteRunsError, ca as HandleListGitTokensData, cc as HandleListGitTokensError, cb as HandleListGitTokensResponse, cO as HandleListGitTriggersData, cP as HandleListGitTriggersError, bR as HandleListIdentitiesData, bT as HandleListIdentitiesError, bS as HandleListIdentitiesResponse, bY as HandleListPermissionsData, b_ as HandleListPermissionsError, bZ as HandleListPermissionsResponse, a_ as HandleListRecordsData, b0 as HandleListRecordsError, a$ as HandleListRecordsResponse, cj as HandleListRepositoriesData, ck as HandleListRepositoriesError, d4 as HandleListWebDeploysData, d5 as HandleListWebDeploysError, bv as HandleReadFileFromEphemeralDevServerData, bx as HandleReadFileFromEphemeralDevServerError, bw as HandleReadFileFromEphemeralDevServerResponse, cg as HandleRevokeGitTokenData, ci as HandleRevokeGitTokenError, ch as HandleRevokeGitTokenResponse, c4 as HandleRevokePermissionData, c6 as HandleRevokePermissionError, c5 as HandleRevokePermissionResponse, bB as HandleShutdownDevServerData, bD as HandleShutdownDevServerError, bC as HandleShutdownDevServerResponse, c7 as HandleUpdatePermissionData, c9 as HandleUpdatePermissionError, c8 as HandleUpdatePermissionResponse, bh as HandleVerifyDomainData, b7 as HandleVerifyWildcardData, b8 as HandleVerifyWildcardError, bH as HandleWatchDevServerFilesData, bJ as HandleWatchDevServerFilesError, bI as HandleWatchDevServerFilesResponse, bs as HandleWriteFileFromEphemeralDevServerData, bu as HandleWriteFileFromEphemeralDevServerError, bt as HandleWriteFileFromEphemeralDevServerResponse, aE as InternalServerError, aF as ListRecordsResponse, aG as NetworkPermissionData, aH as ReadFileEphemeralDevServerResponses, aI as ReadFileRequest, aJ as RepositoryInfo, aK as RevokeGitTokenRequest, aL as ShutdownDevServerRequest, aM as Signature, aN as TagObject, aO as TagTarget, aP as TreeEntry, aR as TreeObject, aS as UpdatePermissionRequest, aT as Visibility, aU as WriteFileRequest, at as action, aC as action2, aB as event, $ as kind, a2 as kind2, af as kind3, V as type, Y as type2, ax as type3, aQ as type4 } from './types.gen-DkFlXKTr.js';
3
3
 
4
4
  interface FreestyleDevServer {
5
5
  /**
@@ -20,6 +20,8 @@ interface FreestyleDevServer {
20
20
  isNew: boolean;
21
21
  fs: FreestyleDevServerFilesystem;
22
22
  process: FreestyleDevServerProcess;
23
+ devCommandRunning: boolean;
24
+ installCommandRunning: boolean;
23
25
  /**
24
26
  * Get the status of the dev server
25
27
  */
@@ -77,6 +79,32 @@ interface FreestyleDevServerProcess {
77
79
  }>;
78
80
  }
79
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
+ };
80
108
  type Options = {
81
109
  /**
82
110
  * The base URL for the API.
@@ -144,16 +172,10 @@ declare class FreestyleSandboxes {
144
172
  /**
145
173
  * Create a new git repository.
146
174
  */
147
- createGitRepository({ name, public: pub, source, }: {
148
- name: string;
175
+ createGitRepository({ name, public: pub, source, import: _import, }: {
176
+ name?: string;
149
177
  public?: boolean;
150
- source?: {
151
- type: "git";
152
- url: string;
153
- branch?: string;
154
- depth?: number;
155
- };
156
- }): Promise<CreateRepositoryResponseSuccess>;
178
+ } & (CreateGitRepositorySource | CreateGitRepositoryImport)): Promise<CreateRepositoryResponseSuccess>;
157
179
  /**
158
180
  * List git repositories.
159
181
  */
@@ -278,4 +300,4 @@ declare class FreestyleSandboxes {
278
300
  fetch(path: string, init?: RequestInit): Promise<Response>;
279
301
  }
280
302
 
281
- export { AccessLevel, CreateRepositoryResponseSuccess, CreatedToken, DeploymentSource, DescribePermissionResponseSuccess, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponseV2, type FreestyleDevServer, type FreestyleDevServerFilesystem, FreestyleExecuteScriptParamsConfiguration, FreestyleExecuteScriptResultSuccess, FreestyleSandboxes, GitIdentity, GitTrigger, GitTriggerAction, HandleBackupCloudstateResponse, HandleCreateDomainVerificationResponse, HandleCreateGitTriggerResponse, HandleDeleteDomainVerificationResponse, HandleDeleteIdentityResponse, HandleDeleteRepoResponse, HandleGetExecuteRunResponse, HandleGetLogsResponse, HandleGrantPermissionResponse, HandleListDomainVerificationRequestsResponse, HandleListDomainsResponse, HandleListExecuteRunsResponse, HandleListGitTriggersResponse, HandleListRepositoriesResponse, HandleListWebDeploysResponse, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleVerifyWildcardResponse, ListGitTokensResponseSuccess, ListPermissionResponseSuccess };
303
+ export { AccessLevel, CreateRepoImport, CreateRepoSource, CreateRepositoryResponseSuccess, CreatedToken, DeploymentSource, DescribePermissionResponseSuccess, FreestyleCloudstateDeployRequest, FreestyleCloudstateDeploySuccessResponse, FreestyleDeployWebConfiguration, FreestyleDeployWebSuccessResponseV2, type FreestyleDevServer, type FreestyleDevServerFilesystem, FreestyleExecuteScriptParamsConfiguration, FreestyleExecuteScriptResultSuccess, FreestyleSandboxes, GitIdentity, GitTrigger, GitTriggerAction, HandleBackupCloudstateResponse, HandleCreateDomainVerificationResponse, HandleCreateGitTriggerResponse, HandleDeleteDomainVerificationResponse, HandleDeleteIdentityResponse, HandleDeleteRepoResponse, HandleGetExecuteRunResponse, HandleGetLogsResponse, HandleGrantPermissionResponse, HandleListDomainVerificationRequestsResponse, HandleListDomainsResponse, HandleListExecuteRunsResponse, HandleListGitTriggersResponse, HandleListRepositoriesResponse, HandleListWebDeploysResponse, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleVerifyWildcardResponse, ListGitTokensResponseSuccess, ListPermissionResponseSuccess };