freestyle-sandboxes 0.0.45 → 0.0.47

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.
@@ -0,0 +1,10 @@
1
+ import { D as DeploymentSource } from '../types.gen-CIf3ciN7.js';
2
+
3
+ declare const prepareDirForDeployment: (directory: string) => Promise<DeploymentSource>;
4
+ declare const prepareDirForDeploymentSync: (directory: string) => DeploymentSource;
5
+ /**
6
+ * This is in beta, and may not work as expected. **SUBJECT TO CHANGE.**
7
+ */
8
+ declare const prepareNextJsForDeployment: (directory: string) => Promise<DeploymentSource>;
9
+
10
+ export { prepareDirForDeployment, prepareDirForDeploymentSync, prepareNextJsForDeployment };
@@ -0,0 +1,10 @@
1
+ import { D as DeploymentSource } from '../types.gen-CIf3ciN7.js';
2
+
3
+ declare const prepareDirForDeployment: (directory: string) => Promise<DeploymentSource>;
4
+ declare const prepareDirForDeploymentSync: (directory: string) => DeploymentSource;
5
+ /**
6
+ * This is in beta, and may not work as expected. **SUBJECT TO CHANGE.**
7
+ */
8
+ declare const prepareNextJsForDeployment: (directory: string) => Promise<DeploymentSource>;
9
+
10
+ export { prepareDirForDeployment, prepareDirForDeploymentSync, prepareNextJsForDeployment };
@@ -1,4 +1,4 @@
1
- import { D as DeploymentSource } from '../types.gen-CZUnqmzP.js';
1
+ import { D as DeploymentSource } from '../types.gen-CIf3ciN7.js';
2
2
 
3
3
  declare const prepareDirForDeployment: (directory: string) => Promise<DeploymentSource>;
4
4
  declare const prepareDirForDeploymentSync: (directory: string) => DeploymentSource;
@@ -1,4 +1,4 @@
1
- import { D as DeploymentSource } from '../types.gen-CZUnqmzP.js';
1
+ import { D as DeploymentSource } from '../types.gen-CIf3ciN7.js';
2
2
 
3
3
  declare const prepareDirForDeployment: (directory: string) => Promise<DeploymentSource>;
4
4
  declare const prepareDirForDeploymentSync: (directory: string) => DeploymentSource;
@@ -37,6 +37,10 @@ export type CreateRecordParams = {
37
37
  record: DnsRecordData;
38
38
  };
39
39
 
40
+ export type CreateRepoRequest = {
41
+ source?: (null | CreateRepoSource);
42
+ };
43
+
40
44
  export type CreateRepositoryRequest = {
41
45
  /**
42
46
  * This name is not visible to users, and is only accessible to you via API and in the
@@ -44,12 +48,22 @@ export type CreateRepositoryRequest = {
44
48
  */
45
49
  name?: (string) | null;
46
50
  public?: boolean;
51
+ source?: CreateRepoSource;
47
52
  };
48
53
 
49
54
  export type CreateRepositoryResponseSuccess = {
50
55
  repoId: string;
51
56
  };
52
57
 
58
+ export type CreateRepoSource = {
59
+ url: string;
60
+ branch?: (string) | null;
61
+ depth?: (number) | null;
62
+ type: 'git';
63
+ };
64
+
65
+ export type type = 'git';
66
+
53
67
  export type DeploymentLogEntry = {
54
68
  deploymentId: string;
55
69
  accountId: string;
@@ -84,8 +98,9 @@ export type DescribePermissionResponseSuccess = {
84
98
  };
85
99
 
86
100
  export type DevServer = {
87
- domain?: (string) | null;
88
101
  command?: (string) | null;
102
+ repo?: (string) | null;
103
+ domain?: (string) | null;
89
104
  };
90
105
 
91
106
  export type DnsRecord = {
@@ -587,6 +602,8 @@ export type HandleEphemeralDevServerData = {
587
602
  export type HandleEphemeralDevServerResponse = ({
588
603
  url: string;
589
604
  isNew: boolean;
605
+ devCommandRunning: boolean;
606
+ installCommandRunning: boolean;
590
607
  });
591
608
 
592
609
  export type HandleEphemeralDevServerError = (InternalServerError);
@@ -804,7 +821,15 @@ export type HandleListRepositoriesError = ({
804
821
  });
805
822
 
806
823
  export type HandleCreateRepoData = {
807
- body: CreateRepositoryRequest;
824
+ body: {
825
+ /**
826
+ * This name is not visible to users, and is only accessible to you via API and in the
827
+ * dashboard. Mostly useful for observability.
828
+ */
829
+ name?: (string) | null;
830
+ public?: boolean;
831
+ source?: CreateRepoSource;
832
+ };
808
833
  };
809
834
 
810
835
  export type HandleCreateRepoResponse = (CreateRepositoryResponseSuccess);
@@ -879,10 +904,6 @@ export type HandleCreateGitTriggerError = ({
879
904
 
880
905
  export type HandleDeleteGitTriggerData = {
881
906
  path: {
882
- /**
883
- * The repository id
884
- */
885
- repo: string;
886
907
  /**
887
908
  * The trigger id
888
909
  */