freestyle-sandboxes 0.0.69 → 0.0.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai/inde.d.cts +1 -1
- package/dist/ai/inde.d.mts +1 -1
- package/dist/ai/index.d.cts +1 -1
- package/dist/ai/index.d.mts +1 -1
- package/dist/inde.d.cts +2 -2
- package/dist/inde.d.mts +2 -2
- package/dist/index-BBXyg0JQ.cjs +3253 -0
- package/dist/index-BQHqnjZK.mjs +3231 -0
- package/dist/index-CEEa9WHp.cjs +3238 -0
- package/dist/index-D1ulQeJR.mjs +3247 -0
- package/dist/index-DCF70Xbq.mjs +3246 -0
- package/dist/index-H7UNEAjs.cjs +3254 -0
- package/dist/index.d-CXx1AdyW.d.ts +4210 -0
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/langgraph/inde.d.cts +1 -1
- package/dist/langgraph/inde.d.mts +1 -1
- package/dist/langgraph/index.d.cts +1 -1
- package/dist/langgraph/index.d.mts +1 -1
- package/dist/mastra/inde.d.cts +1 -1
- package/dist/mastra/inde.d.mts +1 -1
- package/dist/mastra/index.d.cts +1 -1
- package/dist/mastra/index.d.mts +1 -1
- package/dist/types.gen-1sd31qLV.d.ts +172 -0
- package/dist/types.gen-627pxroW.d.ts +830 -0
- package/dist/types.gen-BCdfx7yt.d.ts +760 -0
- package/dist/{types.gen-wmZuN8DG.d.ts → types.gen-BVXmFV7d.d.ts} +114 -12
- package/dist/types.gen-BaMKzqxQ.d.ts +233 -0
- package/dist/types.gen-BtK6PMQy.d.ts +195 -0
- package/dist/types.gen-BuhQ5LpB.d.ts +764 -0
- package/dist/types.gen-BzRtj_TA.d.ts +725 -0
- package/dist/types.gen-C03gaIPq.d.ts +297 -0
- package/dist/types.gen-CMuCas4r.d.ts +183 -0
- package/dist/types.gen-CZUnqmzP.d.ts +789 -0
- package/dist/types.gen-CnEkmbco.d.ts +314 -0
- package/dist/types.gen-DDYpuDzZ.d.ts +764 -0
- package/dist/types.gen-DHmdEOOa.d.ts +172 -0
- package/dist/types.gen-DLYohMJT.d.ts +382 -0
- package/dist/types.gen-DbTb_SrD.d.ts +156 -0
- package/dist/types.gen-DkQ-Dbs1.d.ts +764 -0
- package/dist/{types.gen-BoJEFWW-.d.ts → types.gen-DyY7Deri.d.ts} +55 -1
- package/dist/types.gen-MBZCvIhE.d.ts +311 -0
- package/dist/types.gen-YhJAHBw8.d.ts +233 -0
- package/dist/types.gen-cCnnhnB6.d.ts +182 -0
- package/dist/types.gen-mg_JNXrq.d.ts +830 -0
- package/dist/types.gen-uDTr6v-7.d.ts +731 -0
- package/dist/utils/inde.d.cts +1 -1
- package/dist/utils/inde.d.mts +1 -1
- package/dist/utils/index.d.cts +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/openapi/sdk.gen.ts +30 -1
- package/openapi/types.gen.ts +127 -11
- package/openapi.json +1 -1
- package/package.json +2 -2
- package/.env +0 -1
|
@@ -178,6 +178,9 @@ type DevServerRequest = {
|
|
|
178
178
|
type DevServerStatusRequest = {
|
|
179
179
|
devServer: DevServer;
|
|
180
180
|
};
|
|
181
|
+
type DevServerWatchFilesRequest = {
|
|
182
|
+
devServer: DevServer;
|
|
183
|
+
};
|
|
181
184
|
type DnsRecord = {
|
|
182
185
|
kind: DnsRecordKind;
|
|
183
186
|
name: string;
|
|
@@ -199,7 +202,7 @@ type DomainVerificationRequest = {
|
|
|
199
202
|
domain: string;
|
|
200
203
|
accountId: string;
|
|
201
204
|
verificationCode: string;
|
|
202
|
-
createdAt:
|
|
205
|
+
createdAt: string;
|
|
203
206
|
};
|
|
204
207
|
type ExecRequest = {
|
|
205
208
|
devServer: DevServer;
|
|
@@ -442,6 +445,51 @@ type GitCommitPushRequest = {
|
|
|
442
445
|
devServer: DevServer;
|
|
443
446
|
message: string;
|
|
444
447
|
};
|
|
448
|
+
type GitContents = {
|
|
449
|
+
name: string;
|
|
450
|
+
path: string;
|
|
451
|
+
/**
|
|
452
|
+
* The hash / object ID of the file.
|
|
453
|
+
*/
|
|
454
|
+
sha: string;
|
|
455
|
+
size: number;
|
|
456
|
+
/**
|
|
457
|
+
* Base64-encoded content.
|
|
458
|
+
*/
|
|
459
|
+
content: string;
|
|
460
|
+
type: 'file';
|
|
461
|
+
} | {
|
|
462
|
+
name: string;
|
|
463
|
+
path: string;
|
|
464
|
+
/**
|
|
465
|
+
* The hash / object ID of the directory.
|
|
466
|
+
*/
|
|
467
|
+
sha: string;
|
|
468
|
+
entries: Array<GitContentsDirEntryItem>;
|
|
469
|
+
type: 'dir';
|
|
470
|
+
};
|
|
471
|
+
type type2 = 'file';
|
|
472
|
+
type GitContentsDirEntryItem = {
|
|
473
|
+
name: string;
|
|
474
|
+
path: string;
|
|
475
|
+
/**
|
|
476
|
+
* The hash / object ID of the file.
|
|
477
|
+
*/
|
|
478
|
+
sha: string;
|
|
479
|
+
size: number;
|
|
480
|
+
type: 'file';
|
|
481
|
+
} | {
|
|
482
|
+
name: string;
|
|
483
|
+
path: string;
|
|
484
|
+
/**
|
|
485
|
+
* The hash / object ID of the directory.
|
|
486
|
+
*/
|
|
487
|
+
sha: string;
|
|
488
|
+
entries: Array<({
|
|
489
|
+
[key: string]: unknown;
|
|
490
|
+
})>;
|
|
491
|
+
type: 'dir';
|
|
492
|
+
};
|
|
445
493
|
type GitIdentity = {
|
|
446
494
|
id: string;
|
|
447
495
|
managed: boolean;
|
|
@@ -472,7 +520,7 @@ type GitRepositoryTrigger = {
|
|
|
472
520
|
});
|
|
473
521
|
managed: boolean;
|
|
474
522
|
id: string;
|
|
475
|
-
createdAt:
|
|
523
|
+
createdAt: string;
|
|
476
524
|
};
|
|
477
525
|
type event = 'push';
|
|
478
526
|
type action2 = 'webhook';
|
|
@@ -502,6 +550,21 @@ type NetworkPermissionData = {
|
|
|
502
550
|
query: string;
|
|
503
551
|
behavior?: Behavior;
|
|
504
552
|
};
|
|
553
|
+
type ReadFileEphemeralDevServerResponses = {
|
|
554
|
+
id: string;
|
|
555
|
+
isNew: boolean;
|
|
556
|
+
content: ({
|
|
557
|
+
content: string;
|
|
558
|
+
encoding: string;
|
|
559
|
+
kind: 'file';
|
|
560
|
+
} | {
|
|
561
|
+
files: Array<(string)>;
|
|
562
|
+
kind: 'directory';
|
|
563
|
+
});
|
|
564
|
+
} | {
|
|
565
|
+
id: string;
|
|
566
|
+
isNew: boolean;
|
|
567
|
+
} | InternalServerError;
|
|
505
568
|
type ReadFileRequest = {
|
|
506
569
|
devServer: DevServer;
|
|
507
570
|
encoding?: string;
|
|
@@ -566,7 +629,7 @@ type TreeEntry = {
|
|
|
566
629
|
sha: string;
|
|
567
630
|
type: 'tree';
|
|
568
631
|
};
|
|
569
|
-
type
|
|
632
|
+
type type3 = 'blob';
|
|
570
633
|
/**
|
|
571
634
|
* Tree object
|
|
572
635
|
*/
|
|
@@ -644,7 +707,7 @@ type HandleVerifyWildcardError = ({
|
|
|
644
707
|
});
|
|
645
708
|
type HandleListDomainsResponse = (Array<{
|
|
646
709
|
domain: string;
|
|
647
|
-
createdAt:
|
|
710
|
+
createdAt: string;
|
|
648
711
|
}>);
|
|
649
712
|
type HandleListDomainsError = ({
|
|
650
713
|
message: string;
|
|
@@ -671,7 +734,7 @@ type HandleDeleteDomainMappingError = ({
|
|
|
671
734
|
type HandleListDomainVerificationRequestsResponse = (Array<{
|
|
672
735
|
verificationCode: string;
|
|
673
736
|
domain: string;
|
|
674
|
-
createdAt:
|
|
737
|
+
createdAt: string;
|
|
675
738
|
}>);
|
|
676
739
|
type HandleListDomainVerificationRequestsError = ({
|
|
677
740
|
message: string;
|
|
@@ -729,9 +792,6 @@ type HandleExecOnEphemeralDevServerResponse = ({
|
|
|
729
792
|
type HandleExecOnEphemeralDevServerError = (InternalServerError);
|
|
730
793
|
type HandleWriteFileFromEphemeralDevServerData = {
|
|
731
794
|
body: WriteFileRequest;
|
|
732
|
-
path: {
|
|
733
|
-
filepath: unknown;
|
|
734
|
-
};
|
|
735
795
|
};
|
|
736
796
|
type HandleWriteFileFromEphemeralDevServerResponse = ({
|
|
737
797
|
id: string;
|
|
@@ -740,9 +800,6 @@ type HandleWriteFileFromEphemeralDevServerResponse = ({
|
|
|
740
800
|
type HandleWriteFileFromEphemeralDevServerError = (InternalServerError);
|
|
741
801
|
type HandleReadFileFromEphemeralDevServerData = {
|
|
742
802
|
body: ReadFileRequest;
|
|
743
|
-
path: {
|
|
744
|
-
filepath: unknown;
|
|
745
|
-
};
|
|
746
803
|
};
|
|
747
804
|
type HandleReadFileFromEphemeralDevServerResponse = ({
|
|
748
805
|
id: string;
|
|
@@ -786,6 +843,11 @@ type HandleDevServerStatusResponse = ({
|
|
|
786
843
|
devRunning: boolean;
|
|
787
844
|
});
|
|
788
845
|
type HandleDevServerStatusError = (InternalServerError);
|
|
846
|
+
type HandleWatchDevServerFilesData = {
|
|
847
|
+
body: DevServerWatchFilesRequest;
|
|
848
|
+
};
|
|
849
|
+
type HandleWatchDevServerFilesResponse = (string);
|
|
850
|
+
type HandleWatchDevServerFilesError = unknown;
|
|
789
851
|
type HandleListExecuteRunsData = {
|
|
790
852
|
query?: {
|
|
791
853
|
limit?: (number) | null;
|
|
@@ -1003,6 +1065,28 @@ type HandleDeleteRepoError = ({
|
|
|
1003
1065
|
} | {
|
|
1004
1066
|
[key: string]: unknown;
|
|
1005
1067
|
});
|
|
1068
|
+
type HandleGetContentsData = {
|
|
1069
|
+
path: {
|
|
1070
|
+
/**
|
|
1071
|
+
* The path to the file or directory. Empty for root.
|
|
1072
|
+
*/
|
|
1073
|
+
'*path': (string) | null;
|
|
1074
|
+
/**
|
|
1075
|
+
* The repository ID.
|
|
1076
|
+
*/
|
|
1077
|
+
repo: string;
|
|
1078
|
+
};
|
|
1079
|
+
query?: {
|
|
1080
|
+
/**
|
|
1081
|
+
* The git reference (branch name, commit SHA, etc.). Defaults to HEAD.
|
|
1082
|
+
*/
|
|
1083
|
+
ref?: string;
|
|
1084
|
+
};
|
|
1085
|
+
};
|
|
1086
|
+
type HandleGetContentsResponse = (GitContents);
|
|
1087
|
+
type HandleGetContentsError = ({
|
|
1088
|
+
message: string;
|
|
1089
|
+
});
|
|
1006
1090
|
type HandleGetBlobData = {
|
|
1007
1091
|
path: {
|
|
1008
1092
|
/**
|
|
@@ -1079,6 +1163,24 @@ type HandleGetTreeResponse = (TreeObject);
|
|
|
1079
1163
|
type HandleGetTreeError = ({
|
|
1080
1164
|
message: string;
|
|
1081
1165
|
});
|
|
1166
|
+
type HandleDownloadTarballData = {
|
|
1167
|
+
path: {
|
|
1168
|
+
/**
|
|
1169
|
+
* The repository id
|
|
1170
|
+
*/
|
|
1171
|
+
repo: string;
|
|
1172
|
+
};
|
|
1173
|
+
query?: {
|
|
1174
|
+
/**
|
|
1175
|
+
* The git reference (branch name, commit SHA, etc.). Defaults to HEAD.
|
|
1176
|
+
*/
|
|
1177
|
+
ref?: string;
|
|
1178
|
+
};
|
|
1179
|
+
};
|
|
1180
|
+
type HandleDownloadTarballResponse = (unknown);
|
|
1181
|
+
type HandleDownloadTarballError = ({
|
|
1182
|
+
message: string;
|
|
1183
|
+
});
|
|
1082
1184
|
type HandleListGitTriggersData = {
|
|
1083
1185
|
path: {
|
|
1084
1186
|
/**
|
|
@@ -1194,4 +1296,4 @@ type HandleGetWebDeployDetailsData = {
|
|
|
1194
1296
|
};
|
|
1195
1297
|
};
|
|
1196
1298
|
|
|
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,
|
|
1299
|
+
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, HandleCreateRecordData as a$, kind2 as a0, DevServerRequest as a1, DevServerStatusRequest as a2, DevServerWatchFilesRequest as a3, DnsRecord as a4, DnsRecordData as a5, DnsRecordKind as a6, DomainVerificationRequest as a7, ExecRequest as a8, ExecuteLogEntry as a9, action2 as aA, GrantPermissionRequest as aB, InternalServerError as aC, ListRecordsResponse as aD, NetworkPermissionData as aE, ReadFileEphemeralDevServerResponses as aF, ReadFileRequest as aG, RepositoryInfo as aH, RevokeGitTokenRequest as aI, ShutdownDevServerRequest as aJ, Signature as aK, TagObject as aL, TagTarget as aM, TreeEntry as aN, type3 as aO, TreeObject as aP, UpdatePermissionRequest as aQ, Visibility as aR, WriteFileRequest as aS, HandleDeployCloudstateData as aT, HandleDeployCloudstateResponse as aU, HandleDeployCloudstateError as aV, HandleBackupCloudstateData as aW, HandleBackupCloudstateError as aX, HandleListRecordsData as aY, HandleListRecordsResponse as aZ, HandleListRecordsError as a_, ExecuteRunInfo as aa, ExecuteRunState as ab, FileReadContent as ac, kind3 as ad, FreestyleCloudstateDeployConfiguration as ae, FreestyleCloudstateDeployErrorResponse as af, FreestyleDeleteDomainVerificationRequest as ag, FreestyleDeployWebErrorResponse as ah, FreestyleDeployWebPayload as ai, FreestyleDeployWebPayloadV2 as aj, FreestyleDomainVerificationRequest as ak, FreestyleExecuteScriptParams as al, FreestyleFile as am, FreestyleGetLogsResponse as an, FreestyleJavaScriptLog as ao, FreestyleLogResponseObject as ap, FreestyleNetworkPermission as aq, action as ar, FreestyleVerifyDomainRequest as as, GitCommitPushRequest as at, GitContents as au, type2 as av, GitContentsDirEntryItem as aw, GitReference as ax, GitRepositoryTrigger as ay, event as az, FreestyleDeployWebConfiguration as b, HandleDescribePermissionError as b$, HandleCreateRecordResponse as b0, HandleCreateRecordError as b1, HandleDeleteRecordData as b2, HandleDeleteRecordResponse as b3, HandleDeleteRecordError as b4, HandleVerifyWildcardData as b5, HandleVerifyWildcardError as b6, HandleListDomainsError as b7, HandleInsertDomainMappingData as b8, HandleInsertDomainMappingResponse as b9, HandleShutdownDevServerResponse as bA, HandleShutdownDevServerError as bB, HandleDevServerStatusData as bC, HandleDevServerStatusResponse as bD, HandleDevServerStatusError as bE, HandleWatchDevServerFilesData as bF, HandleWatchDevServerFilesResponse as bG, HandleWatchDevServerFilesError as bH, HandleListExecuteRunsData as bI, HandleListExecuteRunsError as bJ, HandleGetExecuteRunData as bK, HandleGetExecuteRunError as bL, HandleExecuteScriptData as bM, HandleExecuteScriptResponse as bN, HandleExecuteScriptError as bO, HandleListIdentitiesData as bP, HandleListIdentitiesResponse as bQ, HandleListIdentitiesError as bR, HandleCreateIdentityResponse as bS, HandleCreateIdentityError as bT, HandleDeleteIdentityData as bU, HandleDeleteIdentityError as bV, HandleListPermissionsData as bW, HandleListPermissionsResponse as bX, HandleListPermissionsError as bY, HandleDescribePermissionData as bZ, HandleDescribePermissionResponse as b_, HandleInsertDomainMappingError as ba, HandleDeleteDomainMappingData as bb, HandleDeleteDomainMappingResponse as bc, HandleDeleteDomainMappingError as bd, HandleListDomainVerificationRequestsError as be, HandleVerifyDomainData as bf, HandleCreateDomainVerificationData as bg, HandleCreateDomainVerificationError as bh, HandleDeleteDomainVerificationData as bi, HandleDeleteDomainVerificationError as bj, HandleEphemeralDevServerData as bk, HandleEphemeralDevServerResponse as bl, HandleEphemeralDevServerError as bm, HandleExecOnEphemeralDevServerData as bn, HandleExecOnEphemeralDevServerResponse as bo, HandleExecOnEphemeralDevServerError as bp, HandleWriteFileFromEphemeralDevServerData as bq, HandleWriteFileFromEphemeralDevServerResponse as br, HandleWriteFileFromEphemeralDevServerError as bs, HandleReadFileFromEphemeralDevServerData as bt, HandleReadFileFromEphemeralDevServerResponse as bu, HandleReadFileFromEphemeralDevServerError as bv, HandleGitCommitPushData as bw, HandleGitCommitPushResponse as bx, HandleGitCommitPushError as by, HandleShutdownDevServerData as bz, FreestyleDeployWebSuccessResponseV2 as c, HandleListWebDeploysData as c$, HandleGrantPermissionData as c0, HandleGrantPermissionError as c1, HandleRevokePermissionData as c2, HandleRevokePermissionResponse as c3, HandleRevokePermissionError as c4, HandleUpdatePermissionData as c5, HandleUpdatePermissionResponse as c6, HandleUpdatePermissionError as c7, HandleListGitTokensData as c8, HandleListGitTokensResponse as c9, HandleGetTagData as cA, HandleGetTagResponse as cB, HandleGetTagError as cC, HandleGetTreeData as cD, HandleGetTreeResponse as cE, HandleGetTreeError as cF, HandleDownloadTarballData as cG, HandleDownloadTarballResponse as cH, HandleDownloadTarballError as cI, HandleListGitTriggersData as cJ, HandleListGitTriggersError as cK, HandleCreateGitTriggerData as cL, HandleCreateGitTriggerError as cM, HandleDeleteGitTriggerData as cN, HandleDeleteGitTriggerResponse as cO, HandleDeleteGitTriggerError as cP, HandleGetLogsData as cQ, HandleGetLogsError as cR, HandleGetRefTagData as cS, HandleGetRefTagResponse as cT, HandleGetRefTagError as cU, HandleDeployWebData as cV, HandleDeployWebResponse as cW, HandleDeployWebError as cX, HandleDeployWebV2Data as cY, HandleDeployWebV2Response as cZ, HandleDeployWebV2Error as c_, HandleListGitTokensError as ca, HandleCreateGitTokenData as cb, HandleCreateGitTokenResponse as cc, HandleCreateGitTokenError as cd, HandleRevokeGitTokenData as ce, HandleRevokeGitTokenResponse as cf, HandleRevokeGitTokenError as cg, HandleListRepositoriesData as ch, HandleListRepositoriesError as ci, HandleCreateRepoData as cj, HandleCreateRepoResponse as ck, HandleCreateRepoError as cl, HandleDeleteRepoData as cm, HandleDeleteRepoError as cn, HandleGetContentsData as co, HandleGetContentsResponse as cp, HandleGetContentsError as cq, HandleGetBlobData as cr, HandleGetBlobResponse as cs, HandleGetBlobError as ct, HandleGetCommitData as cu, HandleGetCommitResponse as cv, HandleGetCommitError as cw, HandleGetRefBranchData as cx, HandleGetRefBranchResponse as cy, HandleGetRefBranchError as cz, FreestyleCloudstateDeployRequest as d, HandleListWebDeploysError as d0, HandleGetWebDeployDetailsData as d1, 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 };
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
type FreestyleCloudstateDeployConfiguration = {
|
|
2
|
+
/**
|
|
3
|
+
* ID of the project to deploy, if not provided will create a new project
|
|
4
|
+
*/
|
|
5
|
+
projectId?: (string) | null;
|
|
6
|
+
/**
|
|
7
|
+
* The environment variables that the cloudstate deploy can access
|
|
8
|
+
*/
|
|
9
|
+
envVars?: {
|
|
10
|
+
[key: string]: (string);
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
type FreestyleCloudstateDeployErrorResponse = {
|
|
14
|
+
message: string;
|
|
15
|
+
};
|
|
16
|
+
type FreestyleCloudstateDeployRequest = {
|
|
17
|
+
classes: string;
|
|
18
|
+
config?: FreestyleCloudstateDeployConfiguration;
|
|
19
|
+
};
|
|
20
|
+
type FreestyleCloudstateDeploySuccessResponse = {
|
|
21
|
+
/**
|
|
22
|
+
* The id of the project deployed to
|
|
23
|
+
*/
|
|
24
|
+
projectId: string;
|
|
25
|
+
};
|
|
26
|
+
type FreestyleDeleteDomainVerificationRequest = {
|
|
27
|
+
/**
|
|
28
|
+
* The domain to create a verification code for
|
|
29
|
+
*/
|
|
30
|
+
domain: string;
|
|
31
|
+
/**
|
|
32
|
+
* The verification code
|
|
33
|
+
*/
|
|
34
|
+
verificationCode: string;
|
|
35
|
+
};
|
|
36
|
+
type FreestyleDeployWebConfiguration = {
|
|
37
|
+
/**
|
|
38
|
+
* The entrypoint file for the website
|
|
39
|
+
*/
|
|
40
|
+
entrypoint?: (string) | null;
|
|
41
|
+
/**
|
|
42
|
+
* The custom domains for the website, eg. [\"subdomain.yourwebsite.com\"]. You may include a single *.style.dev domain here.
|
|
43
|
+
*/
|
|
44
|
+
domains?: Array<(string)> | null;
|
|
45
|
+
/**
|
|
46
|
+
* Project ID was our original way of tracking deployments together, it is now deprecated and will be removed in the future. Please use the domains field to specify the domains for your project.
|
|
47
|
+
* @deprecated
|
|
48
|
+
*/
|
|
49
|
+
projectId?: (string) | null;
|
|
50
|
+
/**
|
|
51
|
+
* Node Modules to install for the website, a map of package names to versions, e.g. { \"express\": \"4.17.1\" }. If this and a package-lock.json are provided, the package-lock.json, bun.lockb, pnpm-lock.yaml, or yarn.lock is also provided, the versions here will override the versions in those lock files.
|
|
52
|
+
*/
|
|
53
|
+
nodeModules?: {
|
|
54
|
+
[key: string]: (string);
|
|
55
|
+
} | null;
|
|
56
|
+
/**
|
|
57
|
+
* The environment variables that the website can access
|
|
58
|
+
* e.g. { \"RESEND_API_KEY\": \"re_123456789\" }
|
|
59
|
+
*/
|
|
60
|
+
envVars?: {
|
|
61
|
+
[key: string]: (string);
|
|
62
|
+
} | null;
|
|
63
|
+
serverStartCheck?: boolean;
|
|
64
|
+
};
|
|
65
|
+
type FreestyleDeployWebErrorResponse = {
|
|
66
|
+
message: string;
|
|
67
|
+
};
|
|
68
|
+
type FreestyleDeployWebPayload = {
|
|
69
|
+
/**
|
|
70
|
+
* 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\" } }
|
|
71
|
+
*
|
|
72
|
+
* **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.
|
|
73
|
+
*/
|
|
74
|
+
files: {
|
|
75
|
+
[key: string]: FreestyleFile;
|
|
76
|
+
};
|
|
77
|
+
config?: FreestyleDeployWebConfiguration;
|
|
78
|
+
};
|
|
79
|
+
type FreestyleDeployWebSuccessResponse = {
|
|
80
|
+
deploymentId: string;
|
|
81
|
+
domains?: Array<(string)> | null;
|
|
82
|
+
/**
|
|
83
|
+
* @deprecated
|
|
84
|
+
*/
|
|
85
|
+
projectId?: (string) | null;
|
|
86
|
+
};
|
|
87
|
+
type FreestyleDomainVerificationRequest = {
|
|
88
|
+
/**
|
|
89
|
+
* The domain to create a verification code for
|
|
90
|
+
*/
|
|
91
|
+
domain: string;
|
|
92
|
+
};
|
|
93
|
+
type FreestyleExecureScriptResultError = {
|
|
94
|
+
error: string;
|
|
95
|
+
};
|
|
96
|
+
type FreestyleExecureScriptResultSuccess = {
|
|
97
|
+
result: unknown;
|
|
98
|
+
logs: Array<JavaScriptLog>;
|
|
99
|
+
};
|
|
100
|
+
type FreestyleExecuteScriptParams = {
|
|
101
|
+
/**
|
|
102
|
+
* The JavaScript or TypeScript script to execute
|
|
103
|
+
*/
|
|
104
|
+
script: string;
|
|
105
|
+
config?: FreestyleExecuteScriptParamsConfiguration;
|
|
106
|
+
};
|
|
107
|
+
type FreestyleExecuteScriptParamsConfiguration = {
|
|
108
|
+
/**
|
|
109
|
+
* The environment variables to set for the script
|
|
110
|
+
*/
|
|
111
|
+
envVars?: {
|
|
112
|
+
[key: string]: (string);
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* The node modules to install for the script
|
|
116
|
+
*/
|
|
117
|
+
nodeModules?: {
|
|
118
|
+
[key: string]: (string);
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* Tags for you to organize your scripts, useful for tracking what you're running
|
|
122
|
+
*/
|
|
123
|
+
tags?: Array<(string)>;
|
|
124
|
+
/**
|
|
125
|
+
* The script timeout
|
|
126
|
+
*/
|
|
127
|
+
timeout?: (string) | null;
|
|
128
|
+
/**
|
|
129
|
+
* If false, we'll not resolve peer dependencies for the packages given, this can speed up execute performance, but will break packages with peers unless the peers are manually specified.
|
|
130
|
+
*/
|
|
131
|
+
peerDependencyResolution?: boolean;
|
|
132
|
+
};
|
|
133
|
+
type FreestyleFile = {
|
|
134
|
+
/**
|
|
135
|
+
* The content of the file
|
|
136
|
+
*/
|
|
137
|
+
content: string;
|
|
138
|
+
/**
|
|
139
|
+
* The encoding of the file. Either **utf-8** or **base64**
|
|
140
|
+
*/
|
|
141
|
+
encoding?: string;
|
|
142
|
+
};
|
|
143
|
+
type FreestyleLogResponseObject = {
|
|
144
|
+
message: string;
|
|
145
|
+
};
|
|
146
|
+
type FreestyleVerifyDomainRequest = {
|
|
147
|
+
domain: string;
|
|
148
|
+
};
|
|
149
|
+
type JavaScriptLog = {
|
|
150
|
+
/**
|
|
151
|
+
* The log message
|
|
152
|
+
*/
|
|
153
|
+
message: string;
|
|
154
|
+
/**
|
|
155
|
+
* The log level
|
|
156
|
+
*/
|
|
157
|
+
type: string;
|
|
158
|
+
};
|
|
159
|
+
type HandleDeployCloudstateData = {
|
|
160
|
+
body: FreestyleCloudstateDeployRequest;
|
|
161
|
+
};
|
|
162
|
+
type HandleDeployCloudstateResponse = (FreestyleCloudstateDeploySuccessResponse);
|
|
163
|
+
type HandleDeployCloudstateError = (FreestyleCloudstateDeployErrorResponse);
|
|
164
|
+
type HandleBackupCloudstateData = {
|
|
165
|
+
path: {
|
|
166
|
+
id: string;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
type HandleBackupCloudstateResponse = (Array<(number)>);
|
|
170
|
+
type HandleBackupCloudstateError = (unknown);
|
|
171
|
+
type HandleListDomainsResponse = (Array<{
|
|
172
|
+
domain: string;
|
|
173
|
+
createdAt: number;
|
|
174
|
+
}>);
|
|
175
|
+
type HandleListDomainsError = ({
|
|
176
|
+
message: string;
|
|
177
|
+
});
|
|
178
|
+
type HandleListDomainVerificationRequestsResponse = (Array<{
|
|
179
|
+
verificationCode: string;
|
|
180
|
+
domain: string;
|
|
181
|
+
createdAt: number;
|
|
182
|
+
}>);
|
|
183
|
+
type HandleListDomainVerificationRequestsError = ({
|
|
184
|
+
message: string;
|
|
185
|
+
});
|
|
186
|
+
type HandleVerifyDomainData = {
|
|
187
|
+
body: FreestyleVerifyDomainRequest;
|
|
188
|
+
};
|
|
189
|
+
type HandleVerifyDomainResponse = ({
|
|
190
|
+
domain: string;
|
|
191
|
+
});
|
|
192
|
+
type HandleVerifyDomainError = ({
|
|
193
|
+
message: string;
|
|
194
|
+
});
|
|
195
|
+
type HandleCreateDomainVerificationData = {
|
|
196
|
+
body: FreestyleDomainVerificationRequest;
|
|
197
|
+
};
|
|
198
|
+
type HandleCreateDomainVerificationResponse = ({
|
|
199
|
+
verificationCode: string;
|
|
200
|
+
domain: string;
|
|
201
|
+
});
|
|
202
|
+
type HandleCreateDomainVerificationError = ({
|
|
203
|
+
message: string;
|
|
204
|
+
});
|
|
205
|
+
type HandleDeleteDomainVerificationData = {
|
|
206
|
+
body: FreestyleDeleteDomainVerificationRequest;
|
|
207
|
+
};
|
|
208
|
+
type HandleDeleteDomainVerificationResponse = ({
|
|
209
|
+
verificationCode: string;
|
|
210
|
+
domain: string;
|
|
211
|
+
});
|
|
212
|
+
type HandleDeleteDomainVerificationError = ({
|
|
213
|
+
message: string;
|
|
214
|
+
});
|
|
215
|
+
type HandleExecuteScriptData = {
|
|
216
|
+
body: FreestyleExecuteScriptParams;
|
|
217
|
+
};
|
|
218
|
+
type HandleExecuteScriptResponse = (FreestyleExecureScriptResultSuccess);
|
|
219
|
+
type HandleExecuteScriptError = (FreestyleExecureScriptResultError);
|
|
220
|
+
type HandleDeployWebData = {
|
|
221
|
+
body: FreestyleDeployWebPayload;
|
|
222
|
+
};
|
|
223
|
+
type HandleDeployWebResponse = (FreestyleDeployWebSuccessResponse);
|
|
224
|
+
type HandleDeployWebError = (FreestyleDeployWebErrorResponse);
|
|
225
|
+
type HandleGetLogsData = {
|
|
226
|
+
path: {
|
|
227
|
+
id: string;
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
type HandleGetLogsResponse = (Array<FreestyleLogResponseObject>);
|
|
231
|
+
type HandleGetLogsError = unknown;
|
|
232
|
+
|
|
233
|
+
export type { HandleBackupCloudstateError as A, HandleListDomainsError as B, HandleListDomainVerificationRequestsError as C, HandleVerifyDomainData as D, HandleVerifyDomainError as E, FreestyleExecuteScriptParamsConfiguration as F, HandleCreateDomainVerificationData as G, HandleBackupCloudstateResponse as H, HandleCreateDomainVerificationError as I, JavaScriptLog as J, HandleDeleteDomainVerificationData as K, HandleDeleteDomainVerificationError as L, HandleExecuteScriptData as M, HandleExecuteScriptResponse as N, HandleExecuteScriptError as O, HandleDeployWebData as P, HandleDeployWebResponse as Q, HandleDeployWebError as R, HandleGetLogsData as S, HandleGetLogsError as T, FreestyleExecureScriptResultSuccess as a, FreestyleDeployWebConfiguration as b, FreestyleDeployWebSuccessResponse as c, FreestyleCloudstateDeployRequest as d, FreestyleCloudstateDeploySuccessResponse as e, HandleGetLogsResponse as f, HandleCreateDomainVerificationResponse as g, HandleVerifyDomainResponse as h, HandleListDomainsResponse as i, HandleListDomainVerificationRequestsResponse as j, HandleDeleteDomainVerificationResponse as k, FreestyleCloudstateDeployConfiguration as l, FreestyleCloudstateDeployErrorResponse as m, FreestyleDeleteDomainVerificationRequest as n, FreestyleDeployWebErrorResponse as o, FreestyleDeployWebPayload as p, FreestyleDomainVerificationRequest as q, FreestyleExecureScriptResultError as r, FreestyleExecuteScriptParams as s, FreestyleFile as t, FreestyleLogResponseObject as u, FreestyleVerifyDomainRequest as v, HandleDeployCloudstateData as w, HandleDeployCloudstateResponse as x, HandleDeployCloudstateError as y, HandleBackupCloudstateData as z };
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
type FreestyleCloudstateDeployConfiguration = {
|
|
2
|
+
/**
|
|
3
|
+
* ID of the project to deploy, if not provided will create a new project
|
|
4
|
+
*/
|
|
5
|
+
projectId?: (string) | null;
|
|
6
|
+
/**
|
|
7
|
+
* The environment variables that the cloudstate deploy can access
|
|
8
|
+
*/
|
|
9
|
+
envVars?: {
|
|
10
|
+
[key: string]: (string);
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
type FreestyleCloudstateDeployErrorResponse = {
|
|
14
|
+
message: string;
|
|
15
|
+
};
|
|
16
|
+
type FreestyleCloudstateDeployRequest = {
|
|
17
|
+
classes: string;
|
|
18
|
+
config?: FreestyleCloudstateDeployConfiguration;
|
|
19
|
+
};
|
|
20
|
+
type FreestyleCloudstateDeploySuccessResponse = {
|
|
21
|
+
/**
|
|
22
|
+
* The id of the project deployed to
|
|
23
|
+
*/
|
|
24
|
+
projectId: string;
|
|
25
|
+
};
|
|
26
|
+
type FreestyleDeployWebConfiguration = {
|
|
27
|
+
/**
|
|
28
|
+
* The entrypoint file for the website
|
|
29
|
+
*/
|
|
30
|
+
entrypoint?: (string) | null;
|
|
31
|
+
/**
|
|
32
|
+
* The custom domains for the website, eg. [\"subdomain.yourwebsite.com\"]. You may include a single *.style.dev domain here.
|
|
33
|
+
*/
|
|
34
|
+
domains?: Array<(string)> | null;
|
|
35
|
+
/**
|
|
36
|
+
* Project ID was our original way of tracking deployments together, it is now deprecated and will be removed in the future. Please use the domains field to specify the domains for your project.
|
|
37
|
+
* @deprecated
|
|
38
|
+
*/
|
|
39
|
+
projectId?: (string) | null;
|
|
40
|
+
/**
|
|
41
|
+
* Node Modules to install for the website, a map of package names to versions, e.g. { \"express\": \"4.17.1\" }. If this and a package-lock.json are provided, the package-lock.json, bun.lockb, pnpm-lock.yaml, or yarn.lock is also provided, the versions here will override the versions in those lock files.
|
|
42
|
+
*/
|
|
43
|
+
nodeModules?: {
|
|
44
|
+
[key: string]: (string);
|
|
45
|
+
} | null;
|
|
46
|
+
/**
|
|
47
|
+
* The environment variables that the website can access
|
|
48
|
+
* e.g. { \"RESEND_API_KEY\": \"re_123456789\" }
|
|
49
|
+
*/
|
|
50
|
+
envVars?: {
|
|
51
|
+
[key: string]: (string);
|
|
52
|
+
} | null;
|
|
53
|
+
};
|
|
54
|
+
type FreestyleDeployWebErrorResponse = {
|
|
55
|
+
message: string;
|
|
56
|
+
};
|
|
57
|
+
type FreestyleDeployWebPayload = {
|
|
58
|
+
/**
|
|
59
|
+
* 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\" } }
|
|
60
|
+
*
|
|
61
|
+
* **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.
|
|
62
|
+
*/
|
|
63
|
+
files: {
|
|
64
|
+
[key: string]: FreestyleFile;
|
|
65
|
+
};
|
|
66
|
+
config?: FreestyleDeployWebConfiguration;
|
|
67
|
+
};
|
|
68
|
+
type FreestyleDeployWebSuccessResponse = {
|
|
69
|
+
deploymentId: string;
|
|
70
|
+
};
|
|
71
|
+
type FreestyleDomainVerificationRequest = {
|
|
72
|
+
/**
|
|
73
|
+
* The domain to create a verification code for
|
|
74
|
+
*/
|
|
75
|
+
domain: string;
|
|
76
|
+
};
|
|
77
|
+
type FreestyleExecureScriptResultError = {
|
|
78
|
+
error: string;
|
|
79
|
+
};
|
|
80
|
+
type FreestyleExecureScriptResultSuccess = {
|
|
81
|
+
result: unknown;
|
|
82
|
+
logs: Array<JavaScriptLog>;
|
|
83
|
+
};
|
|
84
|
+
type FreestyleExecuteScriptParams = {
|
|
85
|
+
/**
|
|
86
|
+
* The JavaScript or TypeScript script to execute
|
|
87
|
+
*/
|
|
88
|
+
script: string;
|
|
89
|
+
config?: FreestyleExecuteScriptParamsConfiguration;
|
|
90
|
+
};
|
|
91
|
+
type FreestyleExecuteScriptParamsConfiguration = {
|
|
92
|
+
/**
|
|
93
|
+
* The environment variables to set for the script
|
|
94
|
+
*/
|
|
95
|
+
envVars?: {
|
|
96
|
+
[key: string]: (string);
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* The node modules to install for the script
|
|
100
|
+
*/
|
|
101
|
+
nodeModules?: {
|
|
102
|
+
[key: string]: (string);
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* Tags for you to organize your scripts, useful for tracking what you're running
|
|
106
|
+
*/
|
|
107
|
+
tags?: Array<(string)>;
|
|
108
|
+
/**
|
|
109
|
+
* The script timeout
|
|
110
|
+
*/
|
|
111
|
+
timeout?: (string) | null;
|
|
112
|
+
};
|
|
113
|
+
type FreestyleFile = {
|
|
114
|
+
/**
|
|
115
|
+
* The content of the file
|
|
116
|
+
*/
|
|
117
|
+
content: string;
|
|
118
|
+
/**
|
|
119
|
+
* The encoding of the file. Either **utf-8** or **base64**
|
|
120
|
+
*/
|
|
121
|
+
encoding?: string;
|
|
122
|
+
};
|
|
123
|
+
type FreestyleLogResponseObject = {
|
|
124
|
+
message: string;
|
|
125
|
+
};
|
|
126
|
+
type FreestyleVerifyDomainRequest = {
|
|
127
|
+
domain: string;
|
|
128
|
+
};
|
|
129
|
+
type JavaScriptLog = {
|
|
130
|
+
/**
|
|
131
|
+
* The log message
|
|
132
|
+
*/
|
|
133
|
+
message: string;
|
|
134
|
+
/**
|
|
135
|
+
* The log level
|
|
136
|
+
*/
|
|
137
|
+
type: string;
|
|
138
|
+
};
|
|
139
|
+
type HandleDeployCloudstateData = {
|
|
140
|
+
body: FreestyleCloudstateDeployRequest;
|
|
141
|
+
};
|
|
142
|
+
type HandleDeployCloudstateResponse = (FreestyleCloudstateDeploySuccessResponse);
|
|
143
|
+
type HandleDeployCloudstateError = (FreestyleCloudstateDeployErrorResponse);
|
|
144
|
+
type HandleBackupCloudstateData = {
|
|
145
|
+
path: {
|
|
146
|
+
id: string;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
type HandleBackupCloudstateResponse = (Array<(number)>);
|
|
150
|
+
type HandleBackupCloudstateError = (unknown);
|
|
151
|
+
type HandleListDomainsResponse = (Array<{
|
|
152
|
+
domain: string;
|
|
153
|
+
createdAt: number;
|
|
154
|
+
}>);
|
|
155
|
+
type HandleListDomainsError = ({
|
|
156
|
+
message: string;
|
|
157
|
+
});
|
|
158
|
+
type HandleVerifyDomainData = {
|
|
159
|
+
body: FreestyleVerifyDomainRequest;
|
|
160
|
+
};
|
|
161
|
+
type HandleVerifyDomainResponse = ({
|
|
162
|
+
domain: string;
|
|
163
|
+
});
|
|
164
|
+
type HandleVerifyDomainError = ({
|
|
165
|
+
message: string;
|
|
166
|
+
});
|
|
167
|
+
type HandleCreateDomainVerificationData = {
|
|
168
|
+
body: FreestyleDomainVerificationRequest;
|
|
169
|
+
};
|
|
170
|
+
type HandleCreateDomainVerificationResponse = ({
|
|
171
|
+
verificationCode: string;
|
|
172
|
+
domain: string;
|
|
173
|
+
});
|
|
174
|
+
type HandleCreateDomainVerificationError = ({
|
|
175
|
+
message: string;
|
|
176
|
+
});
|
|
177
|
+
type HandleExecuteScriptData = {
|
|
178
|
+
body: FreestyleExecuteScriptParams;
|
|
179
|
+
};
|
|
180
|
+
type HandleExecuteScriptResponse = (FreestyleExecureScriptResultSuccess);
|
|
181
|
+
type HandleExecuteScriptError = (FreestyleExecureScriptResultError);
|
|
182
|
+
type HandleDeployWebData = {
|
|
183
|
+
body: FreestyleDeployWebPayload;
|
|
184
|
+
};
|
|
185
|
+
type HandleDeployWebResponse = (FreestyleDeployWebSuccessResponse);
|
|
186
|
+
type HandleDeployWebError = (FreestyleDeployWebErrorResponse);
|
|
187
|
+
type HandleGetLogsData = {
|
|
188
|
+
path: {
|
|
189
|
+
id: string;
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
type HandleGetLogsResponse = (Array<FreestyleLogResponseObject>);
|
|
193
|
+
type HandleGetLogsError = unknown;
|
|
194
|
+
|
|
195
|
+
export type { HandleVerifyDomainError as A, HandleCreateDomainVerificationData as B, HandleCreateDomainVerificationError as C, HandleExecuteScriptData as D, HandleExecuteScriptResponse as E, FreestyleExecuteScriptParamsConfiguration as F, HandleExecuteScriptError as G, HandleBackupCloudstateResponse as H, HandleDeployWebData as I, JavaScriptLog as J, HandleDeployWebResponse as K, HandleDeployWebError as L, HandleGetLogsData as M, HandleGetLogsError as N, FreestyleExecureScriptResultSuccess as a, FreestyleDeployWebConfiguration as b, FreestyleDeployWebSuccessResponse as c, FreestyleCloudstateDeployRequest as d, FreestyleCloudstateDeploySuccessResponse as e, HandleGetLogsResponse as f, HandleCreateDomainVerificationResponse as g, HandleVerifyDomainResponse as h, HandleListDomainsResponse as i, FreestyleCloudstateDeployConfiguration as j, FreestyleCloudstateDeployErrorResponse as k, FreestyleDeployWebErrorResponse as l, FreestyleDeployWebPayload as m, FreestyleDomainVerificationRequest as n, FreestyleExecureScriptResultError as o, FreestyleExecuteScriptParams as p, FreestyleFile as q, FreestyleLogResponseObject as r, FreestyleVerifyDomainRequest as s, HandleDeployCloudstateData as t, HandleDeployCloudstateResponse as u, HandleDeployCloudstateError as v, HandleBackupCloudstateData as w, HandleBackupCloudstateError as x, HandleListDomainsError as y, HandleVerifyDomainData as z };
|