freestyle-sandboxes 0.0.70 → 0.0.71

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/.env ADDED
@@ -0,0 +1 @@
1
+ FREESTYLE_API_KEY=RoZ4n8eAY4ChcgdKV89LjY-Fhvp6Rzqx27bZ4BjHaVf7qpEw7vA7MekK84DdGgZYkR2
package/dist/index.cjs CHANGED
@@ -869,6 +869,7 @@ ${response.error.message}`);
869
869
  const client = this.client;
870
870
  const that = this;
871
871
  return {
872
+ ...response.data,
872
873
  isNew: data.isNew,
873
874
  ephemeralUrl: data.ephemeralUrl ?? data.url,
874
875
  mcpEphemeralUrl: data.mcpEphemeralUrl ?? data.url + "/mcp",
package/dist/index.mjs CHANGED
@@ -867,6 +867,7 @@ ${response.error.message}`);
867
867
  const client = this.client;
868
868
  const that = this;
869
869
  return {
870
+ ...response.data,
870
871
  isNew: data.isNew,
871
872
  ephemeralUrl: data.ephemeralUrl ?? data.url,
872
873
  mcpEphemeralUrl: data.mcpEphemeralUrl ?? data.url + "/mcp",
@@ -10,9 +10,6 @@ type FreestyleCloudstateDeployConfiguration = {
10
10
  [key: string]: (string);
11
11
  };
12
12
  };
13
- type FreestyleCloudstateDeployErrorResponse = {
14
- message: string;
15
- };
16
13
  type FreestyleCloudstateDeployRequest = {
17
14
  classes: string;
18
15
  config?: FreestyleCloudstateDeployConfiguration;
@@ -50,36 +47,12 @@ type FreestyleDeployWebConfiguration = {
50
47
  [key: string]: (string);
51
48
  } | null;
52
49
  };
53
- type FreestyleDeployWebErrorResponse = {
54
- message: string;
55
- };
56
- type FreestyleDeployWebPayload = {
57
- /**
58
- * The files to deploy, a map of file paths to file contents, e.g. { \"index.js\": {\"content\": \"your main\", \"encoding\": \"utf-8\"}, \"file2.js\": {\"content\": \"your helper\" } }
59
- *
60
- * **Do not include node modules in this bundle, they will not work**. Instead, includes a package-lock.json, bun.lockb, pnpm-lock.yaml, or yarn.lock, the node modules for the project will be installed from that lock file, or use the node_modules field in the configuration to specify the node modules to install.
61
- */
62
- files: {
63
- [key: string]: FreestyleFile;
64
- };
65
- config?: FreestyleDeployWebConfiguration;
66
- };
67
50
  type FreestyleDeployWebSuccessResponse = {
68
51
  projectId: string;
69
52
  };
70
- type FreestyleExecureScriptResultError = {
71
- error: string;
72
- };
73
53
  type FreestyleExecureScriptResultSuccess = {
74
54
  result: unknown;
75
55
  };
76
- type FreestyleExecuteScriptParams = {
77
- /**
78
- * The JavaScript or TypeScript script to execute
79
- */
80
- script: string;
81
- config?: FreestyleExecuteScriptParamsConfiguration;
82
- };
83
56
  type FreestyleExecuteScriptParamsConfiguration = {
84
57
  /**
85
58
  * The environment variables to set for the script
@@ -102,37 +75,10 @@ type FreestyleExecuteScriptParamsConfiguration = {
102
75
  */
103
76
  timeout?: (string) | null;
104
77
  };
105
- type FreestyleFile = {
106
- /**
107
- * The content of the file
108
- */
109
- content: string;
110
- /**
111
- * The encoding of the file. Either **utf-8** or **base64**
112
- */
113
- encoding?: string;
114
- };
115
78
  type FreestyleLogResponseObject = {
116
79
  message: string;
117
80
  };
118
- type HandleDeployCloudstateData = {
119
- body: FreestyleCloudstateDeployRequest;
120
- };
121
- type HandleDeployCloudstateResponse = (FreestyleCloudstateDeploySuccessResponse);
122
- type HandleDeployCloudstateError = (FreestyleCloudstateDeployErrorResponse);
123
81
  type HandleBackupCloudstateResponse = (Array<(number)>);
124
- type HandleBackupCloudstateError = (unknown);
125
- type HandleExecuteScriptData = {
126
- body: FreestyleExecuteScriptParams;
127
- };
128
- type HandleExecuteScriptResponse = (FreestyleExecureScriptResultSuccess);
129
- type HandleExecuteScriptError = (FreestyleExecureScriptResultError);
130
- type HandleDeployWebData = {
131
- body: FreestyleDeployWebPayload;
132
- };
133
- type HandleDeployWebResponse = (FreestyleDeployWebSuccessResponse);
134
- type HandleDeployWebError = (FreestyleDeployWebErrorResponse);
135
82
  type HandleGetLogsResponse = (Array<FreestyleLogResponseObject>);
136
- type HandleGetLogsError = unknown;
137
83
 
138
- export type { FreestyleExecuteScriptParamsConfiguration as F, HandleBackupCloudstateResponse as H, FreestyleExecureScriptResultSuccess as a, FreestyleDeployWebConfiguration as b, FreestyleDeployWebSuccessResponse as c, FreestyleCloudstateDeployRequest as d, FreestyleCloudstateDeploySuccessResponse as e, HandleGetLogsResponse as f, FreestyleCloudstateDeployConfiguration as g, FreestyleCloudstateDeployErrorResponse as h, FreestyleDeployWebErrorResponse as i, FreestyleDeployWebPayload as j, FreestyleExecureScriptResultError as k, FreestyleExecuteScriptParams as l, FreestyleFile as m, FreestyleLogResponseObject as n, HandleDeployCloudstateData as o, HandleDeployCloudstateResponse as p, HandleDeployCloudstateError as q, HandleBackupCloudstateError as r, HandleExecuteScriptData as s, HandleExecuteScriptResponse as t, HandleExecuteScriptError as u, HandleDeployWebData as v, HandleDeployWebResponse as w, HandleDeployWebError as x, HandleGetLogsError as y };
84
+ export type { FreestyleExecuteScriptParamsConfiguration as F, HandleBackupCloudstateResponse as H, FreestyleExecureScriptResultSuccess as a, FreestyleDeployWebConfiguration as b, FreestyleDeployWebSuccessResponse as c, FreestyleCloudstateDeployRequest as d, FreestyleCloudstateDeploySuccessResponse as e, HandleGetLogsResponse as f };
@@ -13,6 +13,68 @@ type AccessTokenInfo = {
13
13
  id: string;
14
14
  };
15
15
  type Behavior = 'regex' | 'exact';
16
+ /**
17
+ * The encoding of a blob from the API. Always `base64`.
18
+ */
19
+ type BlobEncoding = 'base64';
20
+ /**
21
+ * Blob object
22
+ */
23
+ type BlobObject = {
24
+ /**
25
+ * The content of the blob, base64 encoded.
26
+ */
27
+ content: string;
28
+ /**
29
+ * The encoding of the blob. Always `base64`.
30
+ */
31
+ encoding: BlobEncoding;
32
+ /**
33
+ * The object's hash.
34
+ */
35
+ sha: string;
36
+ };
37
+ /**
38
+ * Commit object
39
+ */
40
+ type CommitObject = {
41
+ /**
42
+ * The author of the commit
43
+ */
44
+ author: Signature;
45
+ /**
46
+ * The committer
47
+ */
48
+ committer: Signature;
49
+ /**
50
+ * The commit message
51
+ */
52
+ message: string;
53
+ /**
54
+ * The ID of the tree pointed to by this commit
55
+ */
56
+ tree: CommitTree;
57
+ /**
58
+ * Parent commit(s) of this commit
59
+ */
60
+ parents: Array<CommitParent>;
61
+ /**
62
+ * The commit's hash ID
63
+ */
64
+ sha: string;
65
+ };
66
+ type CommitParent = {
67
+ /**
68
+ * The commit's hash ID
69
+ */
70
+ sha: string;
71
+ };
72
+ type CommitTree = {
73
+ /**
74
+ * The tree's hash ID
75
+ */
76
+ sha: string;
77
+ };
16
78
  type CreateDomainMappingRequest = {
17
79
  deploymentId: string;
18
80
  };
@@ -48,6 +110,10 @@ type CreateRepoSource = {
48
110
  type type = 'git';
49
111
  type CustomBuildOptions = {
50
112
  command?: (string) | null;
113
+ envVars?: {
114
+ [key: string]: (string);
115
+ } | null;
116
+ outDir?: (string) | null;
51
117
  };
52
118
  type DeploymentBuildOptions = CustomBuildOptions | boolean;
53
119
  type DeploymentLogEntry = {
@@ -83,9 +149,34 @@ type DescribePermissionResponseSuccess = {
83
149
  accessLevel?: (null | AccessLevel);
84
150
  };
85
151
  type DevServer = {
86
- command?: (string) | null;
152
+ repoId: string;
153
+ kind: 'repo';
154
+ };
155
+ type kind2 = 'repo';
156
+ type DevServerRequest = {
157
+ devCommand?: (string) | null;
158
+ preDevCommandOnce?: (string) | null;
159
+ baseId?: (string) | null;
160
+ envVars?: {
161
+ [key: string]: (string);
162
+ } | null;
87
163
  repoId?: (string) | null;
164
+ computeClass?: (string) | null;
165
+ /**
166
+ * Timeout in seconds
167
+ */
168
+ timeout?: (number) | null;
169
+ /**
170
+ * @deprecated
171
+ */
88
172
  domain?: (string) | null;
173
+ /**
174
+ * @deprecated
175
+ */
176
+ repo?: (string) | null;
177
+ };
178
+ type DevServerStatusRequest = {
179
+ devServer: DevServer;
89
180
  };
90
181
  type DnsRecord = {
91
182
  kind: DnsRecordKind;
@@ -110,6 +201,14 @@ type DomainVerificationRequest = {
110
201
  verificationCode: string;
111
202
  createdAt: number;
112
203
  };
204
+ type ExecRequest = {
205
+ devServer: DevServer;
206
+ command: string;
207
+ /**
208
+ * Spawn this command as a background process and return immediately
209
+ */
210
+ background: boolean;
211
+ };
113
212
  type ExecuteLogEntry = {
114
213
  deployment: string;
115
214
  accountId: string;
@@ -128,6 +227,15 @@ type ExecuteRunInfo = {
128
227
  };
129
228
  };
130
229
  type ExecuteRunState = 'starting' | 'running' | 'complete';
230
+ type FileReadContent = {
231
+ content: string;
232
+ encoding: string;
233
+ kind: 'file';
234
+ } | {
235
+ files: Array<(string)>;
236
+ kind: 'directory';
237
+ };
238
+ type kind3 = 'file';
131
239
  type FreestyleCloudstateDeployConfiguration = {
132
240
  /**
133
241
  * ID of the project to deploy, if not provided will create a new project
@@ -330,8 +438,26 @@ type FreestyleVerifyDomainRequest = {
330
438
  } | {
331
439
  id: string;
332
440
  };
441
+ type GitCommitPushRequest = {
442
+ devServer: DevServer;
443
+ message: string;
444
+ };
333
445
  type GitIdentity = {
334
446
  id: string;
447
+ managed: boolean;
448
+ };
449
+ /**
450
+ * A reference to a Git object
451
+ */
452
+ type GitReference = {
453
+ /**
454
+ * The name of the ref (e.g., "refs/heads/main" or "refs/tags/v1.0.0")
455
+ */
456
+ name: string;
457
+ /**
458
+ * The SHA-1 hash of the Git object this reference points to
459
+ */
460
+ sha: string;
335
461
  };
336
462
  type GitRepositoryTrigger = {
337
463
  repositoryId: string;
@@ -376,6 +502,10 @@ type NetworkPermissionData = {
376
502
  query: string;
377
503
  behavior?: Behavior;
378
504
  };
505
+ type ReadFileRequest = {
506
+ devServer: DevServer;
507
+ encoding?: string;
508
+ };
379
509
  type RepositoryInfo = {
380
510
  id: string;
381
511
  name?: (string) | null;
@@ -385,10 +515,80 @@ type RepositoryInfo = {
385
515
  type RevokeGitTokenRequest = {
386
516
  tokenId: string;
387
517
  };
518
+ type ShutdownDevServerRequest = {
519
+ /**
520
+ * The dev server to shutdown
521
+ */
522
+ devServer: DevServer;
523
+ };
524
+ type Signature = {
525
+ /**
526
+ * The date marker for this signature
527
+ */
528
+ date: string;
529
+ name: string;
530
+ email: string;
531
+ };
532
+ /**
533
+ * Tag object
534
+ */
535
+ type TagObject = {
536
+ /**
537
+ * The tag name
538
+ */
539
+ name: string;
540
+ tagger?: (null | Signature);
541
+ /**
542
+ * The tag message
543
+ */
544
+ message?: (string) | null;
545
+ /**
546
+ * The object this tag points to
547
+ */
548
+ target: TagTarget;
549
+ /**
550
+ * The tag's hash ID
551
+ */
552
+ sha: string;
553
+ };
554
+ type TagTarget = {
555
+ /**
556
+ * The target object's hash ID
557
+ */
558
+ sha: string;
559
+ };
560
+ type TreeEntry = {
561
+ path: string;
562
+ sha: string;
563
+ type: 'blob';
564
+ } | {
565
+ path: string;
566
+ sha: string;
567
+ type: 'tree';
568
+ };
569
+ type type2 = 'blob';
570
+ /**
571
+ * Tree object
572
+ */
573
+ type TreeObject = {
574
+ /**
575
+ * The tree's entries
576
+ */
577
+ tree: Array<TreeEntry>;
578
+ /**
579
+ * The tree's hash ID
580
+ */
581
+ sha: string;
582
+ };
388
583
  type UpdatePermissionRequest = {
389
584
  permission: AccessLevel;
390
585
  };
391
586
  type Visibility = 'public' | 'private';
587
+ type WriteFileRequest = {
588
+ devServer: DevServer;
589
+ content: string;
590
+ encoding?: string;
591
+ };
392
592
  type HandleDeployCloudstateData = {
393
593
  body: FreestyleCloudstateDeployRequest;
394
594
  };
@@ -503,15 +703,89 @@ type HandleDeleteDomainVerificationError = ({
503
703
  message: string;
504
704
  });
505
705
  type HandleEphemeralDevServerData = {
506
- body: DevServer;
706
+ body: DevServerRequest;
507
707
  };
508
708
  type HandleEphemeralDevServerResponse = ({
709
+ /**
710
+ * @deprecated
711
+ */
509
712
  url: string;
510
713
  isNew: boolean;
511
714
  devCommandRunning: boolean;
512
715
  installCommandRunning: boolean;
716
+ mcpEphemeralUrl?: (string) | null;
717
+ ephemeralUrl?: (string) | null;
513
718
  });
514
719
  type HandleEphemeralDevServerError = (InternalServerError);
720
+ type HandleExecOnEphemeralDevServerData = {
721
+ body: ExecRequest;
722
+ };
723
+ type HandleExecOnEphemeralDevServerResponse = ({
724
+ id: string;
725
+ isNew: boolean;
726
+ stdout?: Array<(string)> | null;
727
+ stderr?: Array<(string)> | null;
728
+ });
729
+ type HandleExecOnEphemeralDevServerError = (InternalServerError);
730
+ type HandleWriteFileFromEphemeralDevServerData = {
731
+ body: WriteFileRequest;
732
+ path: {
733
+ filepath: unknown;
734
+ };
735
+ };
736
+ type HandleWriteFileFromEphemeralDevServerResponse = ({
737
+ id: string;
738
+ isNew: boolean;
739
+ });
740
+ type HandleWriteFileFromEphemeralDevServerError = (InternalServerError);
741
+ type HandleReadFileFromEphemeralDevServerData = {
742
+ body: ReadFileRequest;
743
+ path: {
744
+ filepath: unknown;
745
+ };
746
+ };
747
+ type HandleReadFileFromEphemeralDevServerResponse = ({
748
+ id: string;
749
+ isNew: boolean;
750
+ content: ({
751
+ content: string;
752
+ encoding: string;
753
+ kind: 'file';
754
+ } | {
755
+ files: Array<(string)>;
756
+ kind: 'directory';
757
+ });
758
+ });
759
+ type HandleReadFileFromEphemeralDevServerError = ({
760
+ id: string;
761
+ isNew: boolean;
762
+ } | InternalServerError);
763
+ type HandleGitCommitPushData = {
764
+ body: GitCommitPushRequest;
765
+ };
766
+ type HandleGitCommitPushResponse = ({
767
+ id: string;
768
+ isNew: boolean;
769
+ });
770
+ type HandleGitCommitPushError = (InternalServerError);
771
+ type HandleShutdownDevServerData = {
772
+ body: ShutdownDevServerRequest;
773
+ };
774
+ type HandleShutdownDevServerResponse = ({
775
+ success: boolean;
776
+ message: string;
777
+ });
778
+ type HandleShutdownDevServerError = ({
779
+ message: string;
780
+ } | InternalServerError);
781
+ type HandleDevServerStatusData = {
782
+ body: DevServerStatusRequest;
783
+ };
784
+ type HandleDevServerStatusResponse = ({
785
+ installing: boolean;
786
+ devRunning: boolean;
787
+ });
788
+ type HandleDevServerStatusError = (InternalServerError);
515
789
  type HandleListExecuteRunsData = {
516
790
  query?: {
517
791
  limit?: (number) | null;
@@ -554,6 +828,7 @@ type HandleExecuteScriptError = ({
554
828
  });
555
829
  type HandleListIdentitiesData = {
556
830
  query?: {
831
+ includeManaged?: (boolean) | null;
557
832
  limit?: (number) | null;
558
833
  offset?: (number) | null;
559
834
  };
@@ -728,6 +1003,82 @@ type HandleDeleteRepoError = ({
728
1003
  } | {
729
1004
  [key: string]: unknown;
730
1005
  });
1006
+ type HandleGetBlobData = {
1007
+ path: {
1008
+ /**
1009
+ * The repository id
1010
+ */
1011
+ repo: string;
1012
+ };
1013
+ };
1014
+ type HandleGetBlobResponse = (BlobObject);
1015
+ type HandleGetBlobError = ({
1016
+ message: string;
1017
+ });
1018
+ type HandleGetCommitData = {
1019
+ path: {
1020
+ /**
1021
+ * The object's hash
1022
+ */
1023
+ hash: string;
1024
+ /**
1025
+ * The repository id
1026
+ */
1027
+ repo: string;
1028
+ };
1029
+ };
1030
+ type HandleGetCommitResponse = (CommitObject);
1031
+ type HandleGetCommitError = ({
1032
+ message: string;
1033
+ });
1034
+ type HandleGetRefBranchData = {
1035
+ path: {
1036
+ /**
1037
+ * The branch's name
1038
+ */
1039
+ branch: string;
1040
+ /**
1041
+ * The repository id
1042
+ */
1043
+ repo: string;
1044
+ };
1045
+ };
1046
+ type HandleGetRefBranchResponse = (GitReference);
1047
+ type HandleGetRefBranchError = (unknown | {
1048
+ message: string;
1049
+ });
1050
+ type HandleGetTagData = {
1051
+ path: {
1052
+ /**
1053
+ * The object's hash
1054
+ */
1055
+ hash: string;
1056
+ /**
1057
+ * The repository id
1058
+ */
1059
+ repo: string;
1060
+ };
1061
+ };
1062
+ type HandleGetTagResponse = (TagObject);
1063
+ type HandleGetTagError = ({
1064
+ message: string;
1065
+ });
1066
+ type HandleGetTreeData = {
1067
+ path: {
1068
+ /**
1069
+ * The object's hash
1070
+ */
1071
+ hash: string;
1072
+ /**
1073
+ * The repository id
1074
+ */
1075
+ repo: string;
1076
+ };
1077
+ };
1078
+ type HandleGetTreeResponse = (TreeObject);
1079
+ type HandleGetTreeError = ({
1080
+ message: string;
1081
+ });
731
1082
  type HandleListGitTriggersData = {
732
1083
  path: {
733
1084
  /**
@@ -791,6 +1142,22 @@ type HandleGetLogsData = {
791
1142
  };
792
1143
  type HandleGetLogsResponse = (FreestyleGetLogsResponse);
793
1144
  type HandleGetLogsError = unknown;
1145
+ type HandleGetRefTagData = {
1146
+ path: {
1147
+ /**
1148
+ * The repository id
1149
+ */
1150
+ repo: string;
1151
+ /**
1152
+ * The tag's name
1153
+ */
1154
+ tag: string;
1155
+ };
1156
+ };
1157
+ type HandleGetRefTagResponse = (GitReference);
1158
+ type HandleGetRefTagError = (unknown | {
1159
+ message: string;
1160
+ });
794
1161
  type HandleDeployWebData = {
795
1162
  body: FreestyleDeployWebPayload;
796
1163
  };
@@ -827,4 +1194,4 @@ type HandleGetWebDeployDetailsData = {
827
1194
  };
828
1195
  };
829
1196
 
830
- export type { ExecuteLogEntry as $, AccessLevel as A, HandleCreateGitTriggerResponse as B, CreateRepositoryResponseSuccess as C, DeploymentSource as D, DeploymentBuildOptions as E, FreestyleExecuteScriptParamsConfiguration as F, GitIdentity as G, HandleBackupCloudstateResponse as H, AccessibleRepository as I, AccessTokenInfo as J, Behavior as K, ListPermissionResponseSuccess as L, CreateDomainMappingRequest as M, CreateRecordParams as N, CreateRepoRequest as O, CreateRepositoryRequest as P, CreateRepoSource as Q, type as R, CustomBuildOptions as S, DeploymentLogEntry as T, kind as U, DeploymentState as V, DevServer as W, DnsRecord as X, DnsRecordData as Y, DnsRecordKind as Z, DomainVerificationRequest as _, FreestyleExecuteScriptResultSuccess as a, HandleGetExecuteRunError as a$, ExecuteRunInfo as a0, ExecuteRunState as a1, FreestyleCloudstateDeployConfiguration as a2, FreestyleCloudstateDeployErrorResponse as a3, FreestyleDeleteDomainVerificationRequest as a4, FreestyleDeployWebErrorResponse as a5, FreestyleDeployWebPayload as a6, FreestyleDeployWebPayloadV2 as a7, FreestyleDomainVerificationRequest as a8, FreestyleExecuteScriptParams as a9, HandleCreateRecordData as aA, HandleCreateRecordResponse as aB, HandleCreateRecordError as aC, HandleDeleteRecordData as aD, HandleDeleteRecordResponse as aE, HandleDeleteRecordError as aF, HandleVerifyWildcardData as aG, HandleVerifyWildcardError as aH, HandleListDomainsError as aI, HandleInsertDomainMappingData as aJ, HandleInsertDomainMappingResponse as aK, HandleInsertDomainMappingError as aL, HandleDeleteDomainMappingData as aM, HandleDeleteDomainMappingResponse as aN, HandleDeleteDomainMappingError as aO, HandleListDomainVerificationRequestsError as aP, HandleVerifyDomainData as aQ, HandleCreateDomainVerificationData as aR, HandleCreateDomainVerificationError as aS, HandleDeleteDomainVerificationData as aT, HandleDeleteDomainVerificationError as aU, HandleEphemeralDevServerData as aV, HandleEphemeralDevServerResponse as aW, HandleEphemeralDevServerError as aX, HandleListExecuteRunsData as aY, HandleListExecuteRunsError as aZ, HandleGetExecuteRunData as a_, FreestyleFile as aa, FreestyleGetLogsResponse as ab, FreestyleJavaScriptLog as ac, FreestyleLogResponseObject as ad, FreestyleNetworkPermission as ae, action as af, FreestyleVerifyDomainRequest as ag, GitRepositoryTrigger as ah, event as ai, action2 as aj, GrantPermissionRequest as ak, InternalServerError as al, ListRecordsResponse as am, NetworkPermissionData as an, RepositoryInfo as ao, RevokeGitTokenRequest as ap, UpdatePermissionRequest as aq, Visibility as ar, HandleDeployCloudstateData as as, HandleDeployCloudstateResponse as at, HandleDeployCloudstateError as au, HandleBackupCloudstateData as av, HandleBackupCloudstateError as aw, HandleListRecordsData as ax, HandleListRecordsResponse as ay, HandleListRecordsError as az, FreestyleDeployWebConfiguration as b, HandleExecuteScriptData as b0, HandleExecuteScriptResponse as b1, HandleExecuteScriptError as b2, HandleListIdentitiesData as b3, HandleListIdentitiesResponse as b4, HandleListIdentitiesError as b5, HandleCreateIdentityResponse as b6, HandleCreateIdentityError as b7, HandleDeleteIdentityData as b8, HandleDeleteIdentityError as b9, HandleCreateRepoResponse as bA, HandleCreateRepoError as bB, HandleDeleteRepoData as bC, HandleDeleteRepoError as bD, HandleListGitTriggersData as bE, HandleListGitTriggersError as bF, HandleCreateGitTriggerData as bG, HandleCreateGitTriggerError as bH, HandleDeleteGitTriggerData as bI, HandleDeleteGitTriggerResponse as bJ, HandleDeleteGitTriggerError as bK, HandleGetLogsData as bL, HandleGetLogsError as bM, HandleDeployWebData as bN, HandleDeployWebResponse as bO, HandleDeployWebError as bP, HandleDeployWebV2Data as bQ, HandleDeployWebV2Response as bR, HandleDeployWebV2Error as bS, HandleListWebDeploysData as bT, HandleListWebDeploysError as bU, HandleGetWebDeployDetailsData as bV, HandleListPermissionsData as ba, HandleListPermissionsResponse as bb, HandleListPermissionsError as bc, HandleDescribePermissionData as bd, HandleDescribePermissionResponse as be, HandleDescribePermissionError as bf, HandleGrantPermissionData as bg, HandleGrantPermissionError as bh, HandleRevokePermissionData as bi, HandleRevokePermissionResponse as bj, HandleRevokePermissionError as bk, HandleUpdatePermissionData as bl, HandleUpdatePermissionResponse as bm, HandleUpdatePermissionError as bn, HandleListGitTokensData as bo, HandleListGitTokensResponse as bp, HandleListGitTokensError as bq, HandleCreateGitTokenData as br, HandleCreateGitTokenResponse as bs, HandleCreateGitTokenError as bt, HandleRevokeGitTokenData as bu, HandleRevokeGitTokenResponse as bv, HandleRevokeGitTokenError as bw, HandleListRepositoriesData as bx, HandleListRepositoriesError as by, HandleCreateRepoData as bz, FreestyleDeployWebSuccessResponseV2 as c, FreestyleCloudstateDeployRequest as d, FreestyleCloudstateDeploySuccessResponse as e, HandleGetLogsResponse as f, HandleCreateDomainVerificationResponse as g, HandleVerifyDomainResponse as h, HandleVerifyDomainError as i, HandleListDomainsResponse as j, HandleListDomainVerificationRequestsResponse as k, HandleDeleteDomainVerificationResponse as l, HandleListWebDeploysResponse as m, HandleListExecuteRunsResponse as n, HandleGetExecuteRunResponse as o, HandleVerifyWildcardResponse as p, HandleListRepositoriesResponse as q, HandleDeleteRepoResponse as r, HandleDeleteIdentityResponse as s, HandleGrantPermissionResponse as t, DescribePermissionResponseSuccess as u, CreatedToken as v, ListGitTokensResponseSuccess as w, HandleListGitTriggersResponse as x, GitTrigger as y, GitTriggerAction as z };
1197
+ export type { DevServer as $, AccessLevel as A, HandleCreateGitTriggerResponse as B, CreateRepositoryResponseSuccess as C, DeploymentSource as D, DeploymentBuildOptions as E, FreestyleExecuteScriptParamsConfiguration as F, GitIdentity as G, HandleBackupCloudstateResponse as H, AccessibleRepository as I, AccessTokenInfo as J, Behavior as K, ListPermissionResponseSuccess as L, BlobEncoding as M, BlobObject as N, CommitObject as O, CommitParent as P, CommitTree as Q, CreateDomainMappingRequest as R, CreateRecordParams as S, CreateRepoRequest as T, CreateRepositoryRequest as U, CreateRepoSource as V, type as W, CustomBuildOptions as X, DeploymentLogEntry as Y, kind as Z, DeploymentState as _, FreestyleExecuteScriptResultSuccess as a, HandleDeleteRecordError as a$, kind2 as a0, DevServerRequest as a1, DevServerStatusRequest as a2, DnsRecord as a3, DnsRecordData as a4, DnsRecordKind as a5, DomainVerificationRequest as a6, ExecRequest as a7, ExecuteLogEntry as a8, ExecuteRunInfo as a9, NetworkPermissionData as aA, ReadFileRequest as aB, RepositoryInfo as aC, RevokeGitTokenRequest as aD, ShutdownDevServerRequest as aE, Signature as aF, TagObject as aG, TagTarget as aH, TreeEntry as aI, type2 as aJ, TreeObject as aK, UpdatePermissionRequest as aL, Visibility as aM, WriteFileRequest as aN, HandleDeployCloudstateData as aO, HandleDeployCloudstateResponse as aP, HandleDeployCloudstateError as aQ, HandleBackupCloudstateData as aR, HandleBackupCloudstateError as aS, HandleListRecordsData as aT, HandleListRecordsResponse as aU, HandleListRecordsError as aV, HandleCreateRecordData as aW, HandleCreateRecordResponse as aX, HandleCreateRecordError as aY, HandleDeleteRecordData as aZ, HandleDeleteRecordResponse as a_, ExecuteRunState as aa, FileReadContent as ab, kind3 as ac, FreestyleCloudstateDeployConfiguration as ad, FreestyleCloudstateDeployErrorResponse as ae, FreestyleDeleteDomainVerificationRequest as af, FreestyleDeployWebErrorResponse as ag, FreestyleDeployWebPayload as ah, FreestyleDeployWebPayloadV2 as ai, FreestyleDomainVerificationRequest as aj, FreestyleExecuteScriptParams as ak, FreestyleFile as al, FreestyleGetLogsResponse as am, FreestyleJavaScriptLog as an, FreestyleLogResponseObject as ao, FreestyleNetworkPermission as ap, action as aq, FreestyleVerifyDomainRequest as ar, GitCommitPushRequest as as, GitReference as at, GitRepositoryTrigger as au, event as av, action2 as aw, GrantPermissionRequest as ax, InternalServerError as ay, ListRecordsResponse as az, FreestyleDeployWebConfiguration as b, HandleUpdatePermissionError as b$, HandleVerifyWildcardData as b0, HandleVerifyWildcardError as b1, HandleListDomainsError as b2, HandleInsertDomainMappingData as b3, HandleInsertDomainMappingResponse as b4, HandleInsertDomainMappingError as b5, HandleDeleteDomainMappingData as b6, HandleDeleteDomainMappingResponse as b7, HandleDeleteDomainMappingError as b8, HandleListDomainVerificationRequestsError as b9, HandleListExecuteRunsData as bA, HandleListExecuteRunsError as bB, HandleGetExecuteRunData as bC, HandleGetExecuteRunError as bD, HandleExecuteScriptData as bE, HandleExecuteScriptResponse as bF, HandleExecuteScriptError as bG, HandleListIdentitiesData as bH, HandleListIdentitiesResponse as bI, HandleListIdentitiesError as bJ, HandleCreateIdentityResponse as bK, HandleCreateIdentityError as bL, HandleDeleteIdentityData as bM, HandleDeleteIdentityError as bN, HandleListPermissionsData as bO, HandleListPermissionsResponse as bP, HandleListPermissionsError as bQ, HandleDescribePermissionData as bR, HandleDescribePermissionResponse as bS, HandleDescribePermissionError as bT, HandleGrantPermissionData as bU, HandleGrantPermissionError as bV, HandleRevokePermissionData as bW, HandleRevokePermissionResponse as bX, HandleRevokePermissionError as bY, HandleUpdatePermissionData as bZ, HandleUpdatePermissionResponse as b_, HandleVerifyDomainData as ba, HandleCreateDomainVerificationData as bb, HandleCreateDomainVerificationError as bc, HandleDeleteDomainVerificationData as bd, HandleDeleteDomainVerificationError as be, HandleEphemeralDevServerData as bf, HandleEphemeralDevServerResponse as bg, HandleEphemeralDevServerError as bh, HandleExecOnEphemeralDevServerData as bi, HandleExecOnEphemeralDevServerResponse as bj, HandleExecOnEphemeralDevServerError as bk, HandleWriteFileFromEphemeralDevServerData as bl, HandleWriteFileFromEphemeralDevServerResponse as bm, HandleWriteFileFromEphemeralDevServerError as bn, HandleReadFileFromEphemeralDevServerData as bo, HandleReadFileFromEphemeralDevServerResponse as bp, HandleReadFileFromEphemeralDevServerError as bq, HandleGitCommitPushData as br, HandleGitCommitPushResponse as bs, HandleGitCommitPushError as bt, HandleShutdownDevServerData as bu, HandleShutdownDevServerResponse as bv, HandleShutdownDevServerError as bw, HandleDevServerStatusData as bx, HandleDevServerStatusResponse as by, HandleDevServerStatusError as bz, FreestyleDeployWebSuccessResponseV2 as c, HandleListGitTokensData as c0, HandleListGitTokensResponse as c1, HandleListGitTokensError as c2, HandleCreateGitTokenData as c3, HandleCreateGitTokenResponse as c4, HandleCreateGitTokenError as c5, HandleRevokeGitTokenData as c6, HandleRevokeGitTokenResponse as c7, HandleRevokeGitTokenError as c8, HandleListRepositoriesData as c9, HandleDeleteGitTriggerResponse as cA, HandleDeleteGitTriggerError as cB, HandleGetLogsData as cC, HandleGetLogsError as cD, HandleGetRefTagData as cE, HandleGetRefTagResponse as cF, HandleGetRefTagError as cG, HandleDeployWebData as cH, HandleDeployWebResponse as cI, HandleDeployWebError as cJ, HandleDeployWebV2Data as cK, HandleDeployWebV2Response as cL, HandleDeployWebV2Error as cM, HandleListWebDeploysData as cN, HandleListWebDeploysError as cO, HandleGetWebDeployDetailsData as cP, HandleListRepositoriesError as ca, HandleCreateRepoData as cb, HandleCreateRepoResponse as cc, HandleCreateRepoError as cd, HandleDeleteRepoData as ce, HandleDeleteRepoError as cf, HandleGetBlobData as cg, HandleGetBlobResponse as ch, HandleGetBlobError as ci, HandleGetCommitData as cj, HandleGetCommitResponse as ck, HandleGetCommitError as cl, HandleGetRefBranchData as cm, HandleGetRefBranchResponse as cn, HandleGetRefBranchError as co, HandleGetTagData as cp, HandleGetTagResponse as cq, HandleGetTagError as cr, HandleGetTreeData as cs, HandleGetTreeResponse as ct, HandleGetTreeError as cu, HandleListGitTriggersData as cv, HandleListGitTriggersError as cw, HandleCreateGitTriggerData as cx, HandleCreateGitTriggerError as cy, HandleDeleteGitTriggerData as cz, FreestyleCloudstateDeployRequest as d, FreestyleCloudstateDeploySuccessResponse as e, HandleGetLogsResponse as f, HandleCreateDomainVerificationResponse as g, HandleVerifyDomainResponse as h, HandleVerifyDomainError as i, HandleListDomainsResponse as j, HandleListDomainVerificationRequestsResponse as k, HandleDeleteDomainVerificationResponse as l, HandleListWebDeploysResponse as m, HandleListExecuteRunsResponse as n, HandleGetExecuteRunResponse as o, HandleVerifyWildcardResponse as p, HandleListRepositoriesResponse as q, HandleDeleteRepoResponse as r, HandleDeleteIdentityResponse as s, HandleGrantPermissionResponse as t, DescribePermissionResponseSuccess as u, CreatedToken as v, ListGitTokensResponseSuccess as w, HandleListGitTriggersResponse as x, GitTrigger as y, GitTriggerAction as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freestyle-sandboxes",
3
- "version": "0.0.70",
3
+ "version": "0.0.71",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -108,4 +108,4 @@
108
108
  "zod": "^3.24.1"
109
109
  },
110
110
  "packageManager": "pnpm@9.11.0+sha512.0a203ffaed5a3f63242cd064c8fb5892366c103e328079318f78062f24ea8c9d50bc6a47aa3567cabefd824d170e78fa2745ed1f16b132e16436146b7688f19b"
111
- }
111
+ }
package/src/index.ts CHANGED
@@ -890,6 +890,7 @@ export class FreestyleSandboxes {
890
890
  const that = this;
891
891
 
892
892
  return {
893
+ ...response.data,
893
894
  isNew: data.isNew,
894
895
 
895
896
  ephemeralUrl: data.ephemeralUrl ?? data.url,