freestyle-sandboxes 0.0.75 → 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.
@@ -1,4 +1,4 @@
1
- import { D as DeploymentSource } from '../types.gen-0bQ5Wn0o.js';
1
+ import { D as DeploymentSource } from '../types.gen-DkFlXKTr.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-0bQ5Wn0o.js';
1
+ import { D as DeploymentSource } from '../types.gen-DkFlXKTr.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-0bQ5Wn0o.js';
1
+ import { D as DeploymentSource } from '../types.gen-DkFlXKTr.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-0bQ5Wn0o.js';
1
+ import { D as DeploymentSource } from '../types.gen-DkFlXKTr.js';
2
2
 
3
3
  declare const prepareDirForDeployment: (directory: string) => Promise<DeploymentSource>;
4
4
  declare const prepareDirForDeploymentSync: (directory: string) => DeploymentSource;
@@ -1,7 +1,7 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
2
 
3
3
  import { createClient, createConfig, type OptionsLegacyParser } from '@hey-api/client-fetch';
4
- import type { HandleDeployCloudstateData, HandleDeployCloudstateError, HandleDeployCloudstateResponse, HandleBackupCloudstateData, HandleBackupCloudstateError, HandleBackupCloudstateResponse, HandleListRecordsData, HandleListRecordsError, HandleListRecordsResponse, HandleCreateRecordData, HandleCreateRecordError, HandleCreateRecordResponse, HandleDeleteRecordData, HandleDeleteRecordError, HandleDeleteRecordResponse, HandleVerifyWildcardData, HandleVerifyWildcardError, HandleVerifyWildcardResponse, HandleListDomainsError, HandleListDomainsResponse, HandleInsertDomainMappingData, HandleInsertDomainMappingError, HandleInsertDomainMappingResponse, HandleDeleteDomainMappingData, HandleDeleteDomainMappingError, HandleDeleteDomainMappingResponse, HandleListDomainVerificationRequestsError, HandleListDomainVerificationRequestsResponse, HandleVerifyDomainData, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleCreateDomainVerificationData, HandleCreateDomainVerificationError, HandleCreateDomainVerificationResponse, HandleDeleteDomainVerificationData, HandleDeleteDomainVerificationError, HandleDeleteDomainVerificationResponse, HandleEphemeralDevServerData, HandleEphemeralDevServerError, HandleEphemeralDevServerResponse, HandleExecOnEphemeralDevServerData, HandleExecOnEphemeralDevServerError, HandleExecOnEphemeralDevServerResponse, HandleWriteFileFromEphemeralDevServerData, HandleWriteFileFromEphemeralDevServerError, HandleWriteFileFromEphemeralDevServerResponse, HandleReadFileFromEphemeralDevServerData, HandleReadFileFromEphemeralDevServerError, HandleReadFileFromEphemeralDevServerResponse, HandleGitCommitPushData, HandleGitCommitPushError, HandleGitCommitPushResponse, HandleShutdownDevServerData, HandleShutdownDevServerError, HandleShutdownDevServerResponse, HandleDevServerStatusData, HandleDevServerStatusError, HandleDevServerStatusResponse, HandleWatchDevServerFilesData, HandleWatchDevServerFilesError, HandleWatchDevServerFilesResponse, HandleListExecuteRunsData, HandleListExecuteRunsError, HandleListExecuteRunsResponse, HandleGetExecuteRunData, HandleGetExecuteRunError, HandleGetExecuteRunResponse, HandleExecuteScriptData, HandleExecuteScriptError, HandleExecuteScriptResponse, HandleListIdentitiesData, HandleListIdentitiesError, HandleListIdentitiesResponse, HandleCreateIdentityError, HandleCreateIdentityResponse, HandleDeleteIdentityData, HandleDeleteIdentityError, HandleDeleteIdentityResponse, HandleListPermissionsData, HandleListPermissionsError, HandleListPermissionsResponse, HandleDescribePermissionData, HandleDescribePermissionError, HandleDescribePermissionResponse, HandleGrantPermissionData, HandleGrantPermissionError, HandleGrantPermissionResponse, HandleRevokePermissionData, HandleRevokePermissionError, HandleRevokePermissionResponse, HandleUpdatePermissionData, HandleUpdatePermissionError, HandleUpdatePermissionResponse, HandleListGitTokensData, HandleListGitTokensError, HandleListGitTokensResponse, HandleCreateGitTokenData, HandleCreateGitTokenError, HandleCreateGitTokenResponse, HandleRevokeGitTokenData, HandleRevokeGitTokenError, HandleRevokeGitTokenResponse, HandleListRepositoriesData, HandleListRepositoriesError, HandleListRepositoriesResponse, HandleCreateRepoData, HandleCreateRepoError, HandleCreateRepoResponse, HandleDeleteRepoData, HandleDeleteRepoError, HandleDeleteRepoResponse, HandleGetContentsData, HandleGetContentsError, HandleGetContentsResponse, HandleGetBlobData, HandleGetBlobError, HandleGetBlobResponse, HandleGetCommitData, HandleGetCommitError, HandleGetCommitResponse, HandleGetRefBranchData, HandleGetRefBranchError, HandleGetRefBranchResponse, HandleGetRefTagData, HandleGetRefTagError, HandleGetRefTagResponse, HandleGetTagData, HandleGetTagError, HandleGetTagResponse, HandleGetTreeData, HandleGetTreeError, HandleGetTreeResponse, HandleDownloadTarballData, HandleDownloadTarballError, HandleDownloadTarballResponse, HandleListGitTriggersData, HandleListGitTriggersError, HandleListGitTriggersResponse, HandleCreateGitTriggerData, HandleCreateGitTriggerError, HandleCreateGitTriggerResponse, HandleDeleteGitTriggerData, HandleDeleteGitTriggerError, HandleDeleteGitTriggerResponse, HandleGetLogsData, HandleGetLogsError, HandleGetLogsResponse, HandleDeployWebData, HandleDeployWebError, HandleDeployWebResponse, HandleDeployWebV2Data, HandleDeployWebV2Error, HandleDeployWebV2Response, HandleListWebDeploysData, HandleListWebDeploysError, HandleListWebDeploysResponse, HandleGetWebDeployDetailsData } from './types.gen';
4
+ import type { HandleDeployCloudstateData, HandleDeployCloudstateError, HandleDeployCloudstateResponse, HandleBackupCloudstateData, HandleBackupCloudstateError, HandleBackupCloudstateResponse, HandleListRecordsData, HandleListRecordsError, HandleListRecordsResponse, HandleCreateRecordData, HandleCreateRecordError, HandleCreateRecordResponse, HandleDeleteRecordData, HandleDeleteRecordError, HandleDeleteRecordResponse, HandleVerifyWildcardData, HandleVerifyWildcardError, HandleVerifyWildcardResponse, HandleListDomainsError, HandleListDomainsResponse, HandleInsertDomainMappingData, HandleInsertDomainMappingError, HandleInsertDomainMappingResponse, HandleDeleteDomainMappingData, HandleDeleteDomainMappingError, HandleDeleteDomainMappingResponse, HandleListDomainVerificationRequestsError, HandleListDomainVerificationRequestsResponse, HandleVerifyDomainData, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleCreateDomainVerificationData, HandleCreateDomainVerificationError, HandleCreateDomainVerificationResponse, HandleDeleteDomainVerificationData, HandleDeleteDomainVerificationError, HandleDeleteDomainVerificationResponse, HandleEphemeralDevServerData, HandleEphemeralDevServerError, HandleEphemeralDevServerResponse, HandleExecOnEphemeralDevServerData, HandleExecOnEphemeralDevServerError, HandleExecOnEphemeralDevServerResponse, HandleWriteFileFromEphemeralDevServerData, HandleWriteFileFromEphemeralDevServerError, HandleWriteFileFromEphemeralDevServerResponse, HandleReadFileFromEphemeralDevServerData, HandleReadFileFromEphemeralDevServerError, HandleReadFileFromEphemeralDevServerResponse, HandleGitCommitPushData, HandleGitCommitPushError, HandleGitCommitPushResponse, HandleShutdownDevServerData, HandleShutdownDevServerError, HandleShutdownDevServerResponse, HandleDevServerStatusData, HandleDevServerStatusError, HandleDevServerStatusResponse, HandleWatchDevServerFilesData, HandleWatchDevServerFilesError, HandleWatchDevServerFilesResponse, HandleListExecuteRunsData, HandleListExecuteRunsError, HandleListExecuteRunsResponse, HandleGetExecuteRunData, HandleGetExecuteRunError, HandleGetExecuteRunResponse, HandleExecuteScriptData, HandleExecuteScriptError, HandleExecuteScriptResponse, HandleListIdentitiesData, HandleListIdentitiesError, HandleListIdentitiesResponse, HandleCreateIdentityError, HandleCreateIdentityResponse, HandleDeleteIdentityData, HandleDeleteIdentityError, HandleDeleteIdentityResponse, HandleListPermissionsData, HandleListPermissionsError, HandleListPermissionsResponse, HandleDescribePermissionData, HandleDescribePermissionError, HandleDescribePermissionResponse, HandleGrantPermissionData, HandleGrantPermissionError, HandleGrantPermissionResponse, HandleRevokePermissionData, HandleRevokePermissionError, HandleRevokePermissionResponse, HandleUpdatePermissionData, HandleUpdatePermissionError, HandleUpdatePermissionResponse, HandleListGitTokensData, HandleListGitTokensError, HandleListGitTokensResponse, HandleCreateGitTokenData, HandleCreateGitTokenError, HandleCreateGitTokenResponse, HandleRevokeGitTokenData, HandleRevokeGitTokenError, HandleRevokeGitTokenResponse, HandleListRepositoriesData, HandleListRepositoriesError, HandleListRepositoriesResponse, HandleCreateRepoData, HandleCreateRepoError, HandleCreateRepoResponse, HandleDeleteRepoData, HandleDeleteRepoError, HandleDeleteRepoResponse, HandleGetContentsData, HandleGetContentsError, HandleGetContentsResponse, HandleGetBlobData, HandleGetBlobError, HandleGetBlobResponse, HandleGetCommitData, HandleGetCommitError, HandleGetCommitResponse, HandleGetRefBranchData, HandleGetRefBranchError, HandleGetRefBranchResponse, HandleGetRefTagData, HandleGetRefTagError, HandleGetRefTagResponse, HandleGetTagData, HandleGetTagError, HandleGetTagResponse, HandleGetTreeData, HandleGetTreeError, HandleGetTreeResponse, HandleDownloadTarballData, HandleDownloadTarballError, HandleDownloadTarballResponse, HandleListGitTriggersData, HandleListGitTriggersError, HandleListGitTriggersResponse, HandleCreateGitTriggerData, HandleCreateGitTriggerError, HandleCreateGitTriggerResponse, HandleDeleteGitTriggerData, HandleDeleteGitTriggerError, HandleDeleteGitTriggerResponse, HandleDownloadZipData, HandleDownloadZipError, HandleDownloadZipResponse, HandleGetLogsData, HandleGetLogsError, HandleGetLogsResponse, HandleDeployWebData, HandleDeployWebError, HandleDeployWebResponse, HandleDeployWebV2Data, HandleDeployWebV2Error, HandleDeployWebV2Response, HandleListWebDeploysData, HandleListWebDeploysError, HandleListWebDeploysResponse, HandleGetWebDeployDetailsData } from './types.gen';
5
5
 
6
6
  export const client = createClient(createConfig());
7
7
 
@@ -540,6 +540,17 @@ export const handleDeleteGitTrigger = <ThrowOnError extends boolean = false>(opt
540
540
  });
541
541
  };
542
542
 
543
+ /**
544
+ * Download a zip of a repo
545
+ * Download the contents of a repo as a zip.
546
+ */
547
+ export const handleDownloadZip = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleDownloadZipData, ThrowOnError>) => {
548
+ return (options?.client ?? client).get<HandleDownloadZipResponse, HandleDownloadZipError, ThrowOnError>({
549
+ ...options,
550
+ url: '/git/v1/repo/{repo}/zip'
551
+ });
552
+ };
553
+
543
554
  /**
544
555
  * Deployment Logs
545
556
  * Get the logs for a deployment
@@ -100,8 +100,43 @@ export type CreateRecordParams = {
100
100
  record: DnsRecordData;
101
101
  };
102
102
 
103
+ export type CreateRepoImport = {
104
+ files: {
105
+ [key: string]: (string);
106
+ };
107
+ commit_message: string;
108
+ author_name?: (string) | null;
109
+ author_email?: (string) | null;
110
+ type: 'files';
111
+ } | {
112
+ url: string;
113
+ dir?: (string) | null;
114
+ commit_message: string;
115
+ author_name?: (string) | null;
116
+ author_email?: (string) | null;
117
+ type: 'tar';
118
+ } | {
119
+ url: string;
120
+ dir?: (string) | null;
121
+ commit_message: string;
122
+ author_name?: (string) | null;
123
+ author_email?: (string) | null;
124
+ type: 'zip';
125
+ } | {
126
+ url: string;
127
+ branch?: (string) | null;
128
+ dir?: (string) | null;
129
+ commit_message: string;
130
+ author_name?: (string) | null;
131
+ author_email?: (string) | null;
132
+ type: 'git';
133
+ };
134
+
135
+ export type type = 'files';
136
+
103
137
  export type CreateRepoRequest = {
104
138
  source?: (null | CreateRepoSource);
139
+ import?: (null | CreateRepoImport);
105
140
  };
106
141
 
107
142
  export type CreateRepositoryRequest = {
@@ -112,6 +147,7 @@ export type CreateRepositoryRequest = {
112
147
  name?: (string) | null;
113
148
  public?: boolean;
114
149
  source?: CreateRepoSource;
150
+ import?: CreateRepoImport;
115
151
  };
116
152
 
117
153
  export type CreateRepositoryResponseSuccess = {
@@ -125,7 +161,7 @@ export type CreateRepoSource = {
125
161
  type: 'git';
126
162
  };
127
163
 
128
- export type type = 'git';
164
+ export type type2 = 'git';
129
165
 
130
166
  export type CustomBuildOptions = {
131
167
  command?: (string) | null;
@@ -135,7 +171,7 @@ export type CustomBuildOptions = {
135
171
  outDir?: (string) | null;
136
172
  };
137
173
 
138
- export type DeploymentBuildOptions = CustomBuildOptions | boolean;
174
+ export type DeploymentBuildOptions = (CustomBuildOptions) | boolean;
139
175
 
140
176
  export type DeploymentLogEntry = {
141
177
  deploymentId: string;
@@ -533,7 +569,7 @@ export type GitContents = {
533
569
  type: 'dir';
534
570
  };
535
571
 
536
- export type type2 = 'file';
572
+ export type type3 = 'file';
537
573
 
538
574
  export type GitContentsDirEntryItem = {
539
575
  name: string;
@@ -718,7 +754,7 @@ export type TreeEntry = {
718
754
  type: 'tree';
719
755
  };
720
756
 
721
- export type type3 = 'blob';
757
+ export type type4 = 'blob';
722
758
 
723
759
  /**
724
760
  * Tree object
@@ -1226,6 +1262,7 @@ export type HandleListRepositoriesData = {
1226
1262
 
1227
1263
  export type HandleListRepositoriesResponse = ({
1228
1264
  repositories: Array<RepositoryInfo>;
1265
+ total: number;
1229
1266
  offset: number;
1230
1267
  });
1231
1268
 
@@ -1242,6 +1279,7 @@ export type HandleCreateRepoData = {
1242
1279
  name?: (string) | null;
1243
1280
  public?: boolean;
1244
1281
  source?: CreateRepoSource;
1282
+ import?: CreateRepoImport;
1245
1283
  };
1246
1284
  };
1247
1285
 
@@ -1490,6 +1528,27 @@ export type HandleDeleteGitTriggerError = ({
1490
1528
  [key: string]: unknown;
1491
1529
  });
1492
1530
 
1531
+ export type HandleDownloadZipData = {
1532
+ path: {
1533
+ /**
1534
+ * The repository id
1535
+ */
1536
+ repo: string;
1537
+ };
1538
+ query?: {
1539
+ /**
1540
+ * The git reference (branch name, commit SHA, etc.). Defaults to HEAD.
1541
+ */
1542
+ ref?: string;
1543
+ };
1544
+ };
1545
+
1546
+ export type HandleDownloadZipResponse = (unknown);
1547
+
1548
+ export type HandleDownloadZipError = ({
1549
+ message: string;
1550
+ });
1551
+
1493
1552
  export type HandleGetLogsData = {
1494
1553
  query?: {
1495
1554
  deploymentId?: (string) | null;