freestyle-sandboxes 0.0.48 → 0.0.50

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-CIf3ciN7.js';
1
+ import { D as DeploymentSource } from '../types.gen-mg_JNXrq.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-CIf3ciN7.js';
1
+ import { D as DeploymentSource } from '../types.gen-mg_JNXrq.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-CIf3ciN7.js';
1
+ import { D as DeploymentSource } from '../types.gen-mg_JNXrq.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-CIf3ciN7.js';
1
+ import { D as DeploymentSource } from '../types.gen-mg_JNXrq.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, HandleListExecuteRunsData, HandleListExecuteRunsError, HandleListExecuteRunsResponse, HandleGetExecuteRunData, HandleGetExecuteRunError, HandleGetExecuteRunResponse, HandleExecuteScriptData, HandleExecuteScriptError, HandleExecuteScriptResponse, 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, 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, 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, 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';
5
5
 
6
6
  export const client = createClient(createConfig());
7
7
 
@@ -189,6 +189,17 @@ export const handleExecuteScript = <ThrowOnError extends boolean = false>(option
189
189
  });
190
190
  };
191
191
 
192
+ /**
193
+ * List Git identities
194
+ * List Git identities created by your account.
195
+ */
196
+ export const handleListIdentities = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<HandleListIdentitiesData, ThrowOnError>) => {
197
+ return (options?.client ?? client).get<HandleListIdentitiesResponse, HandleListIdentitiesError, ThrowOnError>({
198
+ ...options,
199
+ url: '/git/v1/identity'
200
+ });
201
+ };
202
+
192
203
  /**
193
204
  * Create a Git identity
194
205
  * Create a Git identity. This identity will be used to authenticate with the Git server.
@@ -395,7 +406,7 @@ export const handleDeployWeb = <ThrowOnError extends boolean = false>(options: O
395
406
  };
396
407
 
397
408
  /**
398
- * Deploy a Website (v2)
409
+ * Deploy a Website
399
410
  * Deploy a website. Files is a map of file paths to file contents. Configuration is optional and contains additional information about the deployment.
400
411
  */
401
412
  export const handleDeployWebV2 = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleDeployWebV2Data, ThrowOnError>) => {
@@ -19,10 +19,6 @@ export type AccessTokenInfo = {
19
19
 
20
20
  export type Behavior = 'regex' | 'exact';
21
21
 
22
- export type BuildOptions = {
23
- command?: (string) | null;
24
- };
25
-
26
22
  export type CreateDomainMappingRequest = {
27
23
  deploymentId: string;
28
24
  };
@@ -64,6 +60,12 @@ export type CreateRepoSource = {
64
60
 
65
61
  export type type = 'git';
66
62
 
63
+ export type CustomBuildOptions = {
64
+ command?: (string) | null;
65
+ };
66
+
67
+ export type DeploymentBuildOptions = CustomBuildOptions | boolean;
68
+
67
69
  export type DeploymentLogEntry = {
68
70
  deploymentId: string;
69
71
  accountId: string;
@@ -85,6 +87,10 @@ export type DeploymentSource = {
85
87
  } | {
86
88
  url: string;
87
89
  kind: 'tar';
90
+ } | {
91
+ url: string;
92
+ branch?: (string) | null;
93
+ kind: 'git';
88
94
  };
89
95
 
90
96
  export type kind = 'files';
@@ -99,7 +105,7 @@ export type DescribePermissionResponseSuccess = {
99
105
 
100
106
  export type DevServer = {
101
107
  command?: (string) | null;
102
- repo?: (string) | null;
108
+ repoId?: (string) | null;
103
109
  domain?: (string) | null;
104
110
  };
105
111
 
@@ -219,7 +225,7 @@ export type FreestyleDeployWebConfiguration = {
219
225
  } | null;
220
226
  serverStartCheck?: boolean;
221
227
  networkPermissions?: Array<FreestyleNetworkPermission> | null;
222
- build?: (null | BuildOptions);
228
+ build?: (null | DeploymentBuildOptions);
223
229
  /**
224
230
  * Timeout for the deployment in seconds. If not provided, the default is 10 seconds.
225
231
  */
@@ -259,6 +265,10 @@ export type FreestyleDeployWebSuccessResponseV2 = {
259
265
  */
260
266
  projectId: string;
261
267
  domains?: Array<(string)> | null;
268
+ /**
269
+ * The entrypoint file for the website. If not specified we try to automatically detect it.
270
+ */
271
+ entrypoint: string;
262
272
  };
263
273
 
264
274
  export type FreestyleDomainVerificationRequest = {
@@ -657,6 +667,23 @@ export type HandleExecuteScriptError = ({
657
667
  logs?: Array<FreestyleJavaScriptLog> | null;
658
668
  });
659
669
 
670
+ export type HandleListIdentitiesData = {
671
+ query?: {
672
+ limit?: (number) | null;
673
+ offset?: (number) | null;
674
+ };
675
+ };
676
+
677
+ export type HandleListIdentitiesResponse = ({
678
+ identities: Array<GitIdentity>;
679
+ offset: number;
680
+ total: number;
681
+ });
682
+
683
+ export type HandleListIdentitiesError = ({
684
+ message: string;
685
+ });
686
+
660
687
  export type HandleCreateIdentityResponse = (GitIdentity);
661
688
 
662
689
  export type HandleCreateIdentityError = ({