freestyle-sandboxes 0.0.90 → 0.0.92
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.cjs +9 -7
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +9 -7
- 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-CG8tIO9M.d.ts +1493 -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 +12 -11
- package/openapi/types.gen.ts +14 -14
- package/package.json +1 -1
- package/src/index.ts +3 -1
package/dist/utils/inde.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as DeploymentSource } from '../types.gen-
|
|
1
|
+
import { D as DeploymentSource } from '../types.gen-CG8tIO9M.js';
|
|
2
2
|
|
|
3
3
|
declare const prepareDirForDeployment: (directory: string) => Promise<DeploymentSource>;
|
|
4
4
|
declare const prepareDirForDeploymentSync: (directory: string) => DeploymentSource;
|
package/dist/utils/inde.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as DeploymentSource } from '../types.gen-
|
|
1
|
+
import { D as DeploymentSource } from '../types.gen-CG8tIO9M.js';
|
|
2
2
|
|
|
3
3
|
declare const prepareDirForDeployment: (directory: string) => Promise<DeploymentSource>;
|
|
4
4
|
declare const prepareDirForDeploymentSync: (directory: string) => DeploymentSource;
|
package/dist/utils/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as DeploymentSource } from '../types.gen-
|
|
1
|
+
import { D as DeploymentSource } from '../types.gen-CG8tIO9M.js';
|
|
2
2
|
|
|
3
3
|
declare const prepareDirForDeployment: (directory: string) => Promise<DeploymentSource>;
|
|
4
4
|
declare const prepareDirForDeploymentSync: (directory: string) => DeploymentSource;
|
package/dist/utils/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as DeploymentSource } from '../types.gen-
|
|
1
|
+
import { D as DeploymentSource } from '../types.gen-CG8tIO9M.js';
|
|
2
2
|
|
|
3
3
|
declare const prepareDirForDeployment: (directory: string) => Promise<DeploymentSource>;
|
|
4
4
|
declare const prepareDirForDeploymentSync: (directory: string) => DeploymentSource;
|
package/openapi/sdk.gen.ts
CHANGED
|
@@ -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,
|
|
4
|
+
import type { HandleDeployCloudstateData, HandleDeployCloudstateError, HandleDeployCloudstateResponse, HandleBackupCloudstateData, HandleBackupCloudstateError, HandleBackupCloudstateResponse, HandleListRecordsData, HandleListRecordsError, HandleListRecordsResponse, HandleCreateRecordData, HandleCreateRecordError, HandleCreateRecordResponse, HandleDeleteRecordData, HandleDeleteRecordError, HandleDeleteRecordResponse, HandleVerifyWildcardData, HandleVerifyWildcardError, HandleVerifyWildcardResponse, HandleListDomainsData, HandleListDomainsError, HandleListDomainsResponse, HandleListDomainMappingsData, HandleListDomainMappingsError, HandleListDomainMappingsResponse, 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, HandleGetDefaultBranchData, HandleGetDefaultBranchError, HandleGetDefaultBranchResponse, HandleSetDefaultBranchData, HandleSetDefaultBranchError, HandleSetDefaultBranchResponse, GetGithubSyncData, GetGithubSyncError, GetGithubSyncResponse, ConfigureGithubSyncData, ConfigureGithubSyncError, ConfigureGithubSyncResponse, RemoveGithubSyncData, RemoveGithubSyncError, RemoveGithubSyncResponse, 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
|
|
|
@@ -57,16 +57,6 @@ export const handleDeleteRecord = <ThrowOnError extends boolean = false>(options
|
|
|
57
57
|
});
|
|
58
58
|
};
|
|
59
59
|
|
|
60
|
-
/**
|
|
61
|
-
* List Domain Mappings
|
|
62
|
-
*/
|
|
63
|
-
export const handleListDomainMappings = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<HandleListDomainMappingsData, ThrowOnError>) => {
|
|
64
|
-
return (options?.client ?? client).get<HandleListDomainMappingsResponse, HandleListDomainMappingsError, ThrowOnError>({
|
|
65
|
-
...options,
|
|
66
|
-
url: '/domains/mappings'
|
|
67
|
-
});
|
|
68
|
-
};
|
|
69
|
-
|
|
70
60
|
/**
|
|
71
61
|
* Provision a wildcard certificate
|
|
72
62
|
* Provisions a wildcard certificate for a verified domain
|
|
@@ -94,6 +84,17 @@ export const handleListDomains = <ThrowOnError extends boolean = false>(options?
|
|
|
94
84
|
});
|
|
95
85
|
};
|
|
96
86
|
|
|
87
|
+
/**
|
|
88
|
+
* List Domain Mappings
|
|
89
|
+
* List domain mappings for any query based on exact domain or domain ownership (the domain ownership that gave the right to use the domain)
|
|
90
|
+
*/
|
|
91
|
+
export const handleListDomainMappings = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<HandleListDomainMappingsData, ThrowOnError>) => {
|
|
92
|
+
return (options?.client ?? client).get<HandleListDomainMappingsResponse, HandleListDomainMappingsError, ThrowOnError>({
|
|
93
|
+
...options,
|
|
94
|
+
url: '/domains/v1/mappings'
|
|
95
|
+
});
|
|
96
|
+
};
|
|
97
|
+
|
|
97
98
|
/**
|
|
98
99
|
* Insert Domain Mapping
|
|
99
100
|
* This will unmap any other deployment to this domain
|
package/openapi/types.gen.ts
CHANGED
|
@@ -908,19 +908,6 @@ export type HandleDeleteRecordError = ({
|
|
|
908
908
|
message: string;
|
|
909
909
|
});
|
|
910
910
|
|
|
911
|
-
export type HandleListDomainMappingsData = {
|
|
912
|
-
query?: {
|
|
913
|
-
domain?: (string) | null;
|
|
914
|
-
domainOwnership?: (string) | null;
|
|
915
|
-
limit?: (number) | null;
|
|
916
|
-
offset?: (number) | null;
|
|
917
|
-
};
|
|
918
|
-
};
|
|
919
|
-
|
|
920
|
-
export type HandleListDomainMappingsResponse = (Array<FreestyleSandboxDomainMapping>);
|
|
921
|
-
|
|
922
|
-
export type HandleListDomainMappingsError = (unknown);
|
|
923
|
-
|
|
924
911
|
export type HandleVerifyWildcardData = {
|
|
925
912
|
path: {
|
|
926
913
|
domain: string;
|
|
@@ -959,6 +946,19 @@ export type HandleListDomainsError = ({
|
|
|
959
946
|
message: string;
|
|
960
947
|
});
|
|
961
948
|
|
|
949
|
+
export type HandleListDomainMappingsData = {
|
|
950
|
+
query?: {
|
|
951
|
+
domain?: (string) | null;
|
|
952
|
+
domainOwnership?: (string) | null;
|
|
953
|
+
limit?: (number) | null;
|
|
954
|
+
offset?: (number) | null;
|
|
955
|
+
};
|
|
956
|
+
};
|
|
957
|
+
|
|
958
|
+
export type HandleListDomainMappingsResponse = (Array<FreestyleSandboxDomainMapping>);
|
|
959
|
+
|
|
960
|
+
export type HandleListDomainMappingsError = (unknown);
|
|
961
|
+
|
|
962
962
|
export type HandleInsertDomainMappingData = {
|
|
963
963
|
body: CreateDomainMappingRequest;
|
|
964
964
|
path: {
|
|
@@ -966,7 +966,7 @@ export type HandleInsertDomainMappingData = {
|
|
|
966
966
|
};
|
|
967
967
|
};
|
|
968
968
|
|
|
969
|
-
export type HandleInsertDomainMappingResponse = (
|
|
969
|
+
export type HandleInsertDomainMappingResponse = (FreestyleSandboxDomainMapping);
|
|
970
970
|
|
|
971
971
|
export type HandleInsertDomainMappingError = ({
|
|
972
972
|
message: string;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -516,7 +516,9 @@ export class FreestyleSandboxes {
|
|
|
516
516
|
if (response.data) {
|
|
517
517
|
return response.data;
|
|
518
518
|
}
|
|
519
|
-
throw new Error(
|
|
519
|
+
throw new Error(
|
|
520
|
+
`Failed to list domain mappings: ${JSON.stringify(response.error)}`
|
|
521
|
+
);
|
|
520
522
|
}
|
|
521
523
|
|
|
522
524
|
/**
|