freestyle-sandboxes 0.0.43 → 0.0.45

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-DDYpuDzZ.js';
1
+ import { D as DeploymentSource } from '../types.gen-CZUnqmzP.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-DDYpuDzZ.js';
1
+ import { D as DeploymentSource } from '../types.gen-CZUnqmzP.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, 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, 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
 
@@ -149,6 +149,13 @@ export const handleDeleteDomainVerification = <ThrowOnError extends boolean = fa
149
149
  });
150
150
  };
151
151
 
152
+ export const handleEphemeralDevServer = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleEphemeralDevServerData, ThrowOnError>) => {
153
+ return (options?.client ?? client).post<HandleEphemeralDevServerResponse, HandleEphemeralDevServerError, ThrowOnError>({
154
+ ...options,
155
+ url: '/ephemeral/v1/dev-servers'
156
+ });
157
+ };
158
+
152
159
  /**
153
160
  * List execute runs
154
161
  * List execute runs.
@@ -32,6 +32,11 @@ export type CreatedToken = {
32
32
  token: string;
33
33
  };
34
34
 
35
+ export type CreateRecordParams = {
36
+ domain: string;
37
+ record: DnsRecordData;
38
+ };
39
+
35
40
  export type CreateRepositoryRequest = {
36
41
  /**
37
42
  * This name is not visible to users, and is only accessible to you via API and in the
@@ -78,6 +83,11 @@ export type DescribePermissionResponseSuccess = {
78
83
  accessLevel?: (null | AccessLevel);
79
84
  };
80
85
 
86
+ export type DevServer = {
87
+ domain?: (string) | null;
88
+ command?: (string) | null;
89
+ };
90
+
81
91
  export type DnsRecord = {
82
92
  kind: DnsRecordKind;
83
93
  name: string;
@@ -87,6 +97,14 @@ export type DnsRecord = {
87
97
  managed: boolean;
88
98
  };
89
99
 
100
+ export type DnsRecordData = {
101
+ kind: DnsRecordKind;
102
+ name: string;
103
+ value: string;
104
+ ttl?: (string) | null;
105
+ priority?: (number) | null;
106
+ };
107
+
90
108
  export type DnsRecordKind = 'A' | 'AAAA' | 'CNAME' | 'TXT' | 'NS';
91
109
 
92
110
  export type DomainVerificationRequest = {
@@ -187,6 +205,10 @@ export type FreestyleDeployWebConfiguration = {
187
205
  serverStartCheck?: boolean;
188
206
  networkPermissions?: Array<FreestyleNetworkPermission> | null;
189
207
  build?: (null | BuildOptions);
208
+ /**
209
+ * Timeout for the deployment in seconds. If not provided, the default is 10 seconds.
210
+ */
211
+ timeout?: (number) | null;
190
212
  };
191
213
 
192
214
  export type FreestyleDeployWebErrorResponse = {
@@ -372,6 +394,8 @@ export type GrantPermissionRequest = {
372
394
  permission: AccessLevel;
373
395
  };
374
396
 
397
+ export type InternalServerError = string;
398
+
375
399
  export type ListGitTokensResponseSuccess = {
376
400
  tokens: Array<AccessTokenInfo>;
377
401
  };
@@ -437,10 +461,7 @@ export type HandleListRecordsError = ({
437
461
  });
438
462
 
439
463
  export type HandleCreateRecordData = {
440
- query: {
441
- domain: string;
442
- record: DnsRecord;
443
- };
464
+ body: CreateRecordParams;
444
465
  };
445
466
 
446
467
  export type HandleCreateRecordResponse = ({
@@ -559,6 +580,17 @@ export type HandleDeleteDomainVerificationError = ({
559
580
  message: string;
560
581
  });
561
582
 
583
+ export type HandleEphemeralDevServerData = {
584
+ body: DevServer;
585
+ };
586
+
587
+ export type HandleEphemeralDevServerResponse = ({
588
+ url: string;
589
+ isNew: boolean;
590
+ });
591
+
592
+ export type HandleEphemeralDevServerError = (InternalServerError);
593
+
562
594
  export type HandleListExecuteRunsData = {
563
595
  query?: {
564
596
  limit?: (number) | null;