freestyle-sandboxes 0.0.76 → 0.0.78

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-BVXmFV7d.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-BVXmFV7d.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-BVXmFV7d.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-BVXmFV7d.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, HandleGetTagData, HandleGetTagError, HandleGetTagResponse, HandleGetTreeData, HandleGetTreeError, HandleGetTreeResponse, HandleDownloadTarballData, HandleDownloadTarballError, HandleDownloadTarballResponse, HandleListGitTriggersData, HandleListGitTriggersError, HandleListGitTriggersResponse, HandleCreateGitTriggerData, HandleCreateGitTriggerError, HandleCreateGitTriggerResponse, HandleDeleteGitTriggerData, HandleDeleteGitTriggerError, HandleDeleteGitTriggerResponse, HandleGetLogsData, HandleGetLogsError, HandleGetLogsResponse, HandleGetRefTagData, HandleGetRefTagError, HandleGetRefTagResponse, 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
 
@@ -463,6 +463,17 @@ export const handleGetRefBranch = <ThrowOnError extends boolean = false>(options
463
463
  });
464
464
  };
465
465
 
466
+ /**
467
+ * Get a tag reference
468
+ * Get a reference to a tag in the Git repository. Returns the ref name and SHA of the tag.
469
+ */
470
+ export const handleGetRefTag = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleGetRefTagData, ThrowOnError>) => {
471
+ return (options?.client ?? client).get<HandleGetRefTagResponse, HandleGetRefTagError, ThrowOnError>({
472
+ ...options,
473
+ url: '/git/v1/repo/{repo}/git/refs/tags/{*tag}'
474
+ });
475
+ };
476
+
466
477
  /**
467
478
  * Get a tag object
468
479
  * Get a tag from the Git database.
@@ -530,24 +541,24 @@ export const handleDeleteGitTrigger = <ThrowOnError extends boolean = false>(opt
530
541
  };
531
542
 
532
543
  /**
533
- * Deployment Logs
534
- * Get the logs for a deployment
544
+ * Download a zip of a repo
545
+ * Download the contents of a repo as a zip.
535
546
  */
536
- export const handleGetLogs = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<HandleGetLogsData, ThrowOnError>) => {
537
- return (options?.client ?? client).get<HandleGetLogsResponse, HandleGetLogsError, ThrowOnError>({
547
+ export const handleDownloadZip = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleDownloadZipData, ThrowOnError>) => {
548
+ return (options?.client ?? client).get<HandleDownloadZipResponse, HandleDownloadZipError, ThrowOnError>({
538
549
  ...options,
539
- url: '/observability/v1/logs'
550
+ url: '/git/v1/repo/{repo}/zip'
540
551
  });
541
552
  };
542
553
 
543
554
  /**
544
- * Get a tag reference
545
- * Get a reference to a tag in the Git repository. Returns the ref name and SHA of the tag.
555
+ * Deployment Logs
556
+ * Get the logs for a deployment
546
557
  */
547
- export const handleGetRefTag = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleGetRefTagData, ThrowOnError>) => {
548
- return (options?.client ?? client).get<HandleGetRefTagResponse, HandleGetRefTagError, ThrowOnError>({
558
+ export const handleGetLogs = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<HandleGetLogsData, ThrowOnError>) => {
559
+ return (options?.client ?? client).get<HandleGetLogsResponse, HandleGetLogsError, ThrowOnError>({
549
560
  ...options,
550
- url: '/repos/{repo}/git/refs/tags/{*tag}'
561
+ url: '/observability/v1/logs'
551
562
  });
552
563
  };
553
564
 
@@ -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;
@@ -161,6 +197,7 @@ export type DeploymentSource = {
161
197
  } | {
162
198
  url: string;
163
199
  branch?: (string) | null;
200
+ dir?: (string) | null;
164
201
  kind: 'git';
165
202
  };
166
203
 
@@ -532,7 +569,7 @@ export type GitContents = {
532
569
  type: 'dir';
533
570
  };
534
571
 
535
- export type type2 = 'file';
572
+ export type type3 = 'file';
536
573
 
537
574
  export type GitContentsDirEntryItem = {
538
575
  name: string;
@@ -717,7 +754,7 @@ export type TreeEntry = {
717
754
  type: 'tree';
718
755
  };
719
756
 
720
- export type type3 = 'blob';
757
+ export type type4 = 'blob';
721
758
 
722
759
  /**
723
760
  * Tree object
@@ -1225,6 +1262,7 @@ export type HandleListRepositoriesData = {
1225
1262
 
1226
1263
  export type HandleListRepositoriesResponse = ({
1227
1264
  repositories: Array<RepositoryInfo>;
1265
+ total: number;
1228
1266
  offset: number;
1229
1267
  });
1230
1268
 
@@ -1241,6 +1279,7 @@ export type HandleCreateRepoData = {
1241
1279
  name?: (string) | null;
1242
1280
  public?: boolean;
1243
1281
  source?: CreateRepoSource;
1282
+ import?: CreateRepoImport;
1244
1283
  };
1245
1284
  };
1246
1285
 
@@ -1347,6 +1386,25 @@ export type HandleGetRefBranchError = (unknown | {
1347
1386
  message: string;
1348
1387
  });
1349
1388
 
1389
+ export type HandleGetRefTagData = {
1390
+ path: {
1391
+ /**
1392
+ * The repository id
1393
+ */
1394
+ repo: string;
1395
+ /**
1396
+ * The tag's name
1397
+ */
1398
+ tag: string;
1399
+ };
1400
+ };
1401
+
1402
+ export type HandleGetRefTagResponse = (GitReference);
1403
+
1404
+ export type HandleGetRefTagError = (unknown | {
1405
+ message: string;
1406
+ });
1407
+
1350
1408
  export type HandleGetTagData = {
1351
1409
  path: {
1352
1410
  /**
@@ -1470,36 +1528,38 @@ export type HandleDeleteGitTriggerError = ({
1470
1528
  [key: string]: unknown;
1471
1529
  });
1472
1530
 
1473
- export type HandleGetLogsData = {
1474
- query?: {
1475
- deploymentId?: (string) | null;
1476
- domain?: (string) | null;
1477
- };
1478
- };
1479
-
1480
- export type HandleGetLogsResponse = (FreestyleGetLogsResponse);
1481
-
1482
- export type HandleGetLogsError = unknown;
1483
-
1484
- export type HandleGetRefTagData = {
1531
+ export type HandleDownloadZipData = {
1485
1532
  path: {
1486
1533
  /**
1487
1534
  * The repository id
1488
1535
  */
1489
1536
  repo: string;
1537
+ };
1538
+ query?: {
1490
1539
  /**
1491
- * The tag's name
1540
+ * The git reference (branch name, commit SHA, etc.). Defaults to HEAD.
1492
1541
  */
1493
- tag: string;
1542
+ ref?: string;
1494
1543
  };
1495
1544
  };
1496
1545
 
1497
- export type HandleGetRefTagResponse = (GitReference);
1546
+ export type HandleDownloadZipResponse = (unknown);
1498
1547
 
1499
- export type HandleGetRefTagError = (unknown | {
1548
+ export type HandleDownloadZipError = ({
1500
1549
  message: string;
1501
1550
  });
1502
1551
 
1552
+ export type HandleGetLogsData = {
1553
+ query?: {
1554
+ deploymentId?: (string) | null;
1555
+ domain?: (string) | null;
1556
+ };
1557
+ };
1558
+
1559
+ export type HandleGetLogsResponse = (FreestyleGetLogsResponse);
1560
+
1561
+ export type HandleGetLogsError = unknown;
1562
+
1503
1563
  export type HandleDeployWebData = {
1504
1564
  body: FreestyleDeployWebPayload;
1505
1565
  };