@blaxel/core 0.2.0-dev18 → 0.2.0-dev19
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/client/client.gen.d.ts +1 -1
- package/dist/client/sdk.gen.d.ts +44 -2
- package/dist/client/sdk.gen.js +231 -83
- package/dist/client/types.gen.d.ts +283 -0
- package/dist/sandbox/client/client.gen.d.ts +1 -1
- package/dist/sandbox/client/index.d.ts +1 -1
- package/dist/sandbox/client/index.js +1 -1
- package/dist/sandbox/client/sdk.gen.d.ts +21 -14
- package/dist/sandbox/client/sdk.gen.js +25 -14
- package/dist/sandbox/client/types.gen.d.ts +55 -2
- package/dist/sandbox/client/types.gen.js +1 -0
- package/dist/sandbox/index.d.ts +1 -0
- package/dist/sandbox/index.js +17 -0
- package/dist/sandbox/preview.d.ts +35 -0
- package/dist/sandbox/preview.js +133 -0
- package/dist/sandbox/sandbox.d.ts +2 -0
- package/dist/sandbox/sandbox.js +3 -0
- package/package.json +1 -1
|
@@ -801,6 +801,10 @@ export type Metrics = {
|
|
|
801
801
|
rpsPerCode?: {
|
|
802
802
|
[key: string]: unknown;
|
|
803
803
|
};
|
|
804
|
+
/**
|
|
805
|
+
* Metrics for sandboxes
|
|
806
|
+
*/
|
|
807
|
+
sandboxes?: unknown;
|
|
804
808
|
};
|
|
805
809
|
/**
|
|
806
810
|
* Logical object representing a model
|
|
@@ -1065,6 +1069,108 @@ export type Port = {
|
|
|
1065
1069
|
* Set of ports for a resource
|
|
1066
1070
|
*/
|
|
1067
1071
|
export type Ports = Array<Port>;
|
|
1072
|
+
/**
|
|
1073
|
+
* Preview of a Resource
|
|
1074
|
+
*/
|
|
1075
|
+
export type Preview = {
|
|
1076
|
+
metadata?: PreviewMetadata;
|
|
1077
|
+
spec?: PreviewSpec;
|
|
1078
|
+
};
|
|
1079
|
+
/**
|
|
1080
|
+
* PreviewMetadata
|
|
1081
|
+
*/
|
|
1082
|
+
export type PreviewMetadata = TimeFields & OwnerFields & {
|
|
1083
|
+
/**
|
|
1084
|
+
* Model display name
|
|
1085
|
+
*/
|
|
1086
|
+
displayName?: string;
|
|
1087
|
+
/**
|
|
1088
|
+
* Preview name
|
|
1089
|
+
*/
|
|
1090
|
+
name?: string;
|
|
1091
|
+
/**
|
|
1092
|
+
* Resource name
|
|
1093
|
+
*/
|
|
1094
|
+
resourceName?: string;
|
|
1095
|
+
/**
|
|
1096
|
+
* Resource type
|
|
1097
|
+
*/
|
|
1098
|
+
resourceType?: string;
|
|
1099
|
+
/**
|
|
1100
|
+
* Workspace name
|
|
1101
|
+
*/
|
|
1102
|
+
workspace?: string;
|
|
1103
|
+
};
|
|
1104
|
+
/**
|
|
1105
|
+
* Preview of a Resource
|
|
1106
|
+
*/
|
|
1107
|
+
export type PreviewSpec = {
|
|
1108
|
+
/**
|
|
1109
|
+
* Port of the preview
|
|
1110
|
+
*/
|
|
1111
|
+
port?: number;
|
|
1112
|
+
/**
|
|
1113
|
+
* Whether the preview is public
|
|
1114
|
+
*/
|
|
1115
|
+
public?: boolean;
|
|
1116
|
+
/**
|
|
1117
|
+
* URL of the preview
|
|
1118
|
+
*/
|
|
1119
|
+
url?: string;
|
|
1120
|
+
};
|
|
1121
|
+
/**
|
|
1122
|
+
* Token for a Preview
|
|
1123
|
+
*/
|
|
1124
|
+
export type PreviewToken = {
|
|
1125
|
+
metadata?: PreviewTokenMetadata;
|
|
1126
|
+
spec?: PreviewTokenSpec;
|
|
1127
|
+
};
|
|
1128
|
+
/**
|
|
1129
|
+
* PreviewTokenMetadata
|
|
1130
|
+
*/
|
|
1131
|
+
export type PreviewTokenMetadata = {
|
|
1132
|
+
/**
|
|
1133
|
+
* Token name
|
|
1134
|
+
*/
|
|
1135
|
+
name?: string;
|
|
1136
|
+
/**
|
|
1137
|
+
* Preview name
|
|
1138
|
+
*/
|
|
1139
|
+
previewName?: string;
|
|
1140
|
+
/**
|
|
1141
|
+
* Resource name
|
|
1142
|
+
*/
|
|
1143
|
+
resourceName?: string;
|
|
1144
|
+
/**
|
|
1145
|
+
* Resource type
|
|
1146
|
+
*/
|
|
1147
|
+
resourceType?: string;
|
|
1148
|
+
/**
|
|
1149
|
+
* Workspace name
|
|
1150
|
+
*/
|
|
1151
|
+
workspace?: string;
|
|
1152
|
+
};
|
|
1153
|
+
/**
|
|
1154
|
+
* Spec for a Preview Token
|
|
1155
|
+
*/
|
|
1156
|
+
export type PreviewTokenSpec = {
|
|
1157
|
+
/**
|
|
1158
|
+
* Whether the token is expired
|
|
1159
|
+
*/
|
|
1160
|
+
expired?: boolean;
|
|
1161
|
+
/**
|
|
1162
|
+
* Expiration time of the token
|
|
1163
|
+
*/
|
|
1164
|
+
expiresAt?: string;
|
|
1165
|
+
/**
|
|
1166
|
+
* Whether the token is public
|
|
1167
|
+
*/
|
|
1168
|
+
public?: boolean;
|
|
1169
|
+
/**
|
|
1170
|
+
* Token
|
|
1171
|
+
*/
|
|
1172
|
+
token?: string;
|
|
1173
|
+
};
|
|
1068
1174
|
/**
|
|
1069
1175
|
* A private cluster where models can be located on.
|
|
1070
1176
|
*/
|
|
@@ -2927,6 +3033,183 @@ export type UpdateSandboxResponses = {
|
|
|
2927
3033
|
200: Sandbox;
|
|
2928
3034
|
};
|
|
2929
3035
|
export type UpdateSandboxResponse = UpdateSandboxResponses[keyof UpdateSandboxResponses];
|
|
3036
|
+
export type ListSandboxPreviewsData = {
|
|
3037
|
+
body?: never;
|
|
3038
|
+
path: {
|
|
3039
|
+
/**
|
|
3040
|
+
* Name of the Sandbox
|
|
3041
|
+
*/
|
|
3042
|
+
sandboxName: string;
|
|
3043
|
+
};
|
|
3044
|
+
query?: never;
|
|
3045
|
+
url: '/sandboxes/{sandboxName}/previews';
|
|
3046
|
+
};
|
|
3047
|
+
export type ListSandboxPreviewsResponses = {
|
|
3048
|
+
/**
|
|
3049
|
+
* successful operation
|
|
3050
|
+
*/
|
|
3051
|
+
200: Array<Preview>;
|
|
3052
|
+
};
|
|
3053
|
+
export type ListSandboxPreviewsResponse = ListSandboxPreviewsResponses[keyof ListSandboxPreviewsResponses];
|
|
3054
|
+
export type CreateSandboxPreviewData = {
|
|
3055
|
+
body: Preview;
|
|
3056
|
+
path: {
|
|
3057
|
+
/**
|
|
3058
|
+
* Name of the Sandbox
|
|
3059
|
+
*/
|
|
3060
|
+
sandboxName: string;
|
|
3061
|
+
};
|
|
3062
|
+
query?: never;
|
|
3063
|
+
url: '/sandboxes/{sandboxName}/previews';
|
|
3064
|
+
};
|
|
3065
|
+
export type CreateSandboxPreviewResponses = {
|
|
3066
|
+
/**
|
|
3067
|
+
* successful operation
|
|
3068
|
+
*/
|
|
3069
|
+
200: Preview;
|
|
3070
|
+
};
|
|
3071
|
+
export type CreateSandboxPreviewResponse = CreateSandboxPreviewResponses[keyof CreateSandboxPreviewResponses];
|
|
3072
|
+
export type DeleteSandboxPreviewData = {
|
|
3073
|
+
body?: never;
|
|
3074
|
+
path: {
|
|
3075
|
+
/**
|
|
3076
|
+
* Name of the Sandbox
|
|
3077
|
+
*/
|
|
3078
|
+
sandboxName: string;
|
|
3079
|
+
/**
|
|
3080
|
+
* Name of the Preview
|
|
3081
|
+
*/
|
|
3082
|
+
previewName: string;
|
|
3083
|
+
};
|
|
3084
|
+
query?: never;
|
|
3085
|
+
url: '/sandboxes/{sandboxName}/previews/{previewName}';
|
|
3086
|
+
};
|
|
3087
|
+
export type DeleteSandboxPreviewResponses = {
|
|
3088
|
+
/**
|
|
3089
|
+
* successful operation
|
|
3090
|
+
*/
|
|
3091
|
+
200: Preview;
|
|
3092
|
+
};
|
|
3093
|
+
export type DeleteSandboxPreviewResponse = DeleteSandboxPreviewResponses[keyof DeleteSandboxPreviewResponses];
|
|
3094
|
+
export type GetSandboxPreviewData = {
|
|
3095
|
+
body?: never;
|
|
3096
|
+
path: {
|
|
3097
|
+
/**
|
|
3098
|
+
* Name of the Sandbox
|
|
3099
|
+
*/
|
|
3100
|
+
sandboxName: string;
|
|
3101
|
+
/**
|
|
3102
|
+
* Name of the Preview
|
|
3103
|
+
*/
|
|
3104
|
+
previewName: string;
|
|
3105
|
+
};
|
|
3106
|
+
query?: never;
|
|
3107
|
+
url: '/sandboxes/{sandboxName}/previews/{previewName}';
|
|
3108
|
+
};
|
|
3109
|
+
export type GetSandboxPreviewResponses = {
|
|
3110
|
+
/**
|
|
3111
|
+
* successful operation
|
|
3112
|
+
*/
|
|
3113
|
+
200: Preview;
|
|
3114
|
+
};
|
|
3115
|
+
export type GetSandboxPreviewResponse = GetSandboxPreviewResponses[keyof GetSandboxPreviewResponses];
|
|
3116
|
+
export type UpdateSandboxPreviewData = {
|
|
3117
|
+
body: Preview;
|
|
3118
|
+
path: {
|
|
3119
|
+
/**
|
|
3120
|
+
* Name of the Sandbox
|
|
3121
|
+
*/
|
|
3122
|
+
sandboxName: string;
|
|
3123
|
+
/**
|
|
3124
|
+
* Name of the Preview
|
|
3125
|
+
*/
|
|
3126
|
+
previewName: string;
|
|
3127
|
+
};
|
|
3128
|
+
query?: never;
|
|
3129
|
+
url: '/sandboxes/{sandboxName}/previews/{previewName}';
|
|
3130
|
+
};
|
|
3131
|
+
export type UpdateSandboxPreviewResponses = {
|
|
3132
|
+
/**
|
|
3133
|
+
* successful operation
|
|
3134
|
+
*/
|
|
3135
|
+
200: Preview;
|
|
3136
|
+
};
|
|
3137
|
+
export type UpdateSandboxPreviewResponse = UpdateSandboxPreviewResponses[keyof UpdateSandboxPreviewResponses];
|
|
3138
|
+
export type ListSandboxPreviewTokensData = {
|
|
3139
|
+
body?: never;
|
|
3140
|
+
path: {
|
|
3141
|
+
/**
|
|
3142
|
+
* Name of the Sandbox
|
|
3143
|
+
*/
|
|
3144
|
+
sandboxName: string;
|
|
3145
|
+
/**
|
|
3146
|
+
* Name of the Preview
|
|
3147
|
+
*/
|
|
3148
|
+
previewName: string;
|
|
3149
|
+
};
|
|
3150
|
+
query?: never;
|
|
3151
|
+
url: '/sandboxes/{sandboxName}/previews/{previewName}/tokens';
|
|
3152
|
+
};
|
|
3153
|
+
export type ListSandboxPreviewTokensResponses = {
|
|
3154
|
+
/**
|
|
3155
|
+
* successful operation
|
|
3156
|
+
*/
|
|
3157
|
+
200: Array<PreviewToken>;
|
|
3158
|
+
};
|
|
3159
|
+
export type ListSandboxPreviewTokensResponse = ListSandboxPreviewTokensResponses[keyof ListSandboxPreviewTokensResponses];
|
|
3160
|
+
export type CreateSandboxPreviewTokenData = {
|
|
3161
|
+
body: PreviewToken;
|
|
3162
|
+
path: {
|
|
3163
|
+
/**
|
|
3164
|
+
* Name of the Sandbox
|
|
3165
|
+
*/
|
|
3166
|
+
sandboxName: string;
|
|
3167
|
+
/**
|
|
3168
|
+
* Name of the Preview
|
|
3169
|
+
*/
|
|
3170
|
+
previewName: string;
|
|
3171
|
+
};
|
|
3172
|
+
query?: never;
|
|
3173
|
+
url: '/sandboxes/{sandboxName}/previews/{previewName}/tokens';
|
|
3174
|
+
};
|
|
3175
|
+
export type CreateSandboxPreviewTokenResponses = {
|
|
3176
|
+
/**
|
|
3177
|
+
* successful operation
|
|
3178
|
+
*/
|
|
3179
|
+
200: PreviewToken;
|
|
3180
|
+
};
|
|
3181
|
+
export type CreateSandboxPreviewTokenResponse = CreateSandboxPreviewTokenResponses[keyof CreateSandboxPreviewTokenResponses];
|
|
3182
|
+
export type DeleteSandboxPreviewTokenData = {
|
|
3183
|
+
body?: never;
|
|
3184
|
+
path: {
|
|
3185
|
+
/**
|
|
3186
|
+
* Name of the Sandbox
|
|
3187
|
+
*/
|
|
3188
|
+
sandboxName: string;
|
|
3189
|
+
/**
|
|
3190
|
+
* Name of the Preview
|
|
3191
|
+
*/
|
|
3192
|
+
previewName: string;
|
|
3193
|
+
/**
|
|
3194
|
+
* Name of the Token
|
|
3195
|
+
*/
|
|
3196
|
+
tokenName: string;
|
|
3197
|
+
};
|
|
3198
|
+
query?: never;
|
|
3199
|
+
url: '/sandboxes/{sandboxName}/previews/{previewName}/tokens/{tokenName}';
|
|
3200
|
+
};
|
|
3201
|
+
export type DeleteSandboxPreviewTokenResponses = {
|
|
3202
|
+
/**
|
|
3203
|
+
* successful operation
|
|
3204
|
+
*/
|
|
3205
|
+
200: {
|
|
3206
|
+
/**
|
|
3207
|
+
* Success message
|
|
3208
|
+
*/
|
|
3209
|
+
message?: string;
|
|
3210
|
+
};
|
|
3211
|
+
};
|
|
3212
|
+
export type DeleteSandboxPreviewTokenResponse = DeleteSandboxPreviewTokenResponses[keyof DeleteSandboxPreviewTokenResponses];
|
|
2930
3213
|
export type StartSandboxData = {
|
|
2931
3214
|
body?: never;
|
|
2932
3215
|
path: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { ClientOptions } from './types.gen';
|
|
1
2
|
import { type Config, type ClientOptions as DefaultClientOptions } from '@hey-api/client-fetch';
|
|
2
|
-
import type { ClientOptions } from './types.gen.js';
|
|
3
3
|
/**
|
|
4
4
|
* The `createClientConfig()` function will be called on client initialization
|
|
5
5
|
* and the returned object will become the client's initial configuration.
|
|
@@ -15,5 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
18
|
-
__exportStar(require("./sdk.gen.js"), exports);
|
|
19
18
|
__exportStar(require("./types.gen.js"), exports);
|
|
19
|
+
__exportStar(require("./sdk.gen.js"), exports);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { DeleteFilesystemByPathData,
|
|
1
|
+
import type { Options as ClientOptions, TDataShape, Client } from '@hey-api/client-fetch';
|
|
2
|
+
import type { DeleteFilesystemByPathData, GetFilesystemByPathData, PutFilesystemByPathData, DeleteNetworkProcessByPidMonitorData, PostNetworkProcessByPidMonitorData, GetNetworkProcessByPidPortsData, GetProcessData, PostProcessData, DeleteProcessByIdentifierData, GetProcessByIdentifierData, DeleteProcessByIdentifierKillData, GetProcessByIdentifierLogsData, GetProcessByIdentifierLogsStreamData } from './types.gen';
|
|
3
3
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = ClientOptions<TData, ThrowOnError> & {
|
|
4
4
|
/**
|
|
5
5
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -17,67 +17,74 @@ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends
|
|
|
17
17
|
* Delete file or directory
|
|
18
18
|
* Delete a file or directory
|
|
19
19
|
*/
|
|
20
|
-
export declare const deleteFilesystemByPath: <ThrowOnError extends boolean = false>(options: Options<DeleteFilesystemByPathData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen
|
|
20
|
+
export declare const deleteFilesystemByPath: <ThrowOnError extends boolean = false>(options: Options<DeleteFilesystemByPathData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").SuccessResponse, import("./types.gen").ErrorResponse, ThrowOnError>;
|
|
21
21
|
/**
|
|
22
22
|
* Get file or directory information
|
|
23
23
|
* Get content of a file or listing of a directory
|
|
24
24
|
*/
|
|
25
|
-
export declare const getFilesystemByPath: <ThrowOnError extends boolean = false>(options: Options<GetFilesystemByPathData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.
|
|
25
|
+
export declare const getFilesystemByPath: <ThrowOnError extends boolean = false>(options: Options<GetFilesystemByPathData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").FileWithContent | import("./types.gen").Directory, import("./types.gen").ErrorResponse, ThrowOnError>;
|
|
26
26
|
/**
|
|
27
27
|
* Create or update file or directory
|
|
28
28
|
* Create or update a file or directory
|
|
29
29
|
*/
|
|
30
|
-
export declare const putFilesystemByPath: <ThrowOnError extends boolean = false>(options: Options<PutFilesystemByPathData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen
|
|
30
|
+
export declare const putFilesystemByPath: <ThrowOnError extends boolean = false>(options: Options<PutFilesystemByPathData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").SuccessResponse, import("./types.gen").ErrorResponse, ThrowOnError>;
|
|
31
31
|
/**
|
|
32
32
|
* Stop monitoring ports for a process
|
|
33
33
|
* Stop monitoring for new ports opened by a process
|
|
34
34
|
*/
|
|
35
35
|
export declare const deleteNetworkProcessByPidMonitor: <ThrowOnError extends boolean = false>(options: Options<DeleteNetworkProcessByPidMonitorData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
|
|
36
36
|
[key: string]: unknown;
|
|
37
|
-
}, import("./types.gen
|
|
37
|
+
}, import("./types.gen").ErrorResponse, ThrowOnError>;
|
|
38
38
|
/**
|
|
39
39
|
* Start monitoring ports for a process
|
|
40
40
|
* Start monitoring for new ports opened by a process
|
|
41
41
|
*/
|
|
42
42
|
export declare const postNetworkProcessByPidMonitor: <ThrowOnError extends boolean = false>(options: Options<PostNetworkProcessByPidMonitorData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
|
|
43
43
|
[key: string]: unknown;
|
|
44
|
-
}, import("./types.gen
|
|
44
|
+
}, import("./types.gen").ErrorResponse, ThrowOnError>;
|
|
45
45
|
/**
|
|
46
46
|
* Get open ports for a process
|
|
47
47
|
* Get a list of all open ports for a process
|
|
48
48
|
*/
|
|
49
49
|
export declare const getNetworkProcessByPidPorts: <ThrowOnError extends boolean = false>(options: Options<GetNetworkProcessByPidPortsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
|
|
50
50
|
[key: string]: unknown;
|
|
51
|
-
}, import("./types.gen
|
|
51
|
+
}, import("./types.gen").ErrorResponse, ThrowOnError>;
|
|
52
52
|
/**
|
|
53
53
|
* List all processes
|
|
54
54
|
* Get a list of all running and completed processes
|
|
55
55
|
*/
|
|
56
|
-
export declare const getProcess: <ThrowOnError extends boolean = false>(options?: Options<GetProcessData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen
|
|
56
|
+
export declare const getProcess: <ThrowOnError extends boolean = false>(options?: Options<GetProcessData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").ProcessResponse[], unknown, ThrowOnError>;
|
|
57
57
|
/**
|
|
58
58
|
* Execute a command
|
|
59
59
|
* Execute a command and return process information
|
|
60
60
|
*/
|
|
61
|
-
export declare const postProcess: <ThrowOnError extends boolean = false>(options: Options<PostProcessData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen
|
|
61
|
+
export declare const postProcess: <ThrowOnError extends boolean = false>(options: Options<PostProcessData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").ProcessResponse, import("./types.gen").ErrorResponse, ThrowOnError>;
|
|
62
62
|
/**
|
|
63
63
|
* Stop a process
|
|
64
64
|
* Gracefully stop a running process
|
|
65
65
|
*/
|
|
66
|
-
export declare const deleteProcessByIdentifier: <ThrowOnError extends boolean = false>(options: Options<DeleteProcessByIdentifierData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen
|
|
66
|
+
export declare const deleteProcessByIdentifier: <ThrowOnError extends boolean = false>(options: Options<DeleteProcessByIdentifierData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").SuccessResponse, import("./types.gen").ErrorResponse, ThrowOnError>;
|
|
67
67
|
/**
|
|
68
68
|
* Get process by identifier
|
|
69
69
|
* Get information about a process by its PID or name
|
|
70
70
|
*/
|
|
71
|
-
export declare const getProcessByIdentifier: <ThrowOnError extends boolean = false>(options: Options<GetProcessByIdentifierData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen
|
|
71
|
+
export declare const getProcessByIdentifier: <ThrowOnError extends boolean = false>(options: Options<GetProcessByIdentifierData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").ProcessResponse, import("./types.gen").ErrorResponse, ThrowOnError>;
|
|
72
72
|
/**
|
|
73
73
|
* Kill a process
|
|
74
74
|
* Forcefully kill a running process
|
|
75
75
|
*/
|
|
76
|
-
export declare const deleteProcessByIdentifierKill: <ThrowOnError extends boolean = false>(options: Options<DeleteProcessByIdentifierKillData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen
|
|
76
|
+
export declare const deleteProcessByIdentifierKill: <ThrowOnError extends boolean = false>(options: Options<DeleteProcessByIdentifierKillData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").SuccessResponse, import("./types.gen").ErrorResponse, ThrowOnError>;
|
|
77
77
|
/**
|
|
78
78
|
* Get process logs
|
|
79
79
|
* Get the stdout and stderr output of a process
|
|
80
80
|
*/
|
|
81
81
|
export declare const getProcessByIdentifierLogs: <ThrowOnError extends boolean = false>(options: Options<GetProcessByIdentifierLogsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
|
|
82
82
|
[key: string]: string;
|
|
83
|
-
}, import("./types.gen
|
|
83
|
+
}, import("./types.gen").ErrorResponse, ThrowOnError>;
|
|
84
|
+
/**
|
|
85
|
+
* Get process logs in realtime
|
|
86
|
+
* Get the stdout and stderr output of a process in realtime
|
|
87
|
+
*/
|
|
88
|
+
export declare const getProcessByIdentifierLogsStream: <ThrowOnError extends boolean = false>(options: Options<GetProcessByIdentifierLogsStreamData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
|
|
89
|
+
[key: string]: string;
|
|
90
|
+
}, import("./types.gen").ErrorResponse, ThrowOnError>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.getProcessByIdentifierLogs = exports.deleteProcessByIdentifierKill = exports.getProcessByIdentifier = exports.deleteProcessByIdentifier = exports.postProcess = exports.getProcess = exports.getNetworkProcessByPidPorts = exports.postNetworkProcessByPidMonitor = exports.deleteNetworkProcessByPidMonitor = exports.putFilesystemByPath = exports.getFilesystemByPath = exports.deleteFilesystemByPath = void 0;
|
|
5
|
-
const
|
|
4
|
+
exports.getProcessByIdentifierLogsStream = exports.getProcessByIdentifierLogs = exports.deleteProcessByIdentifierKill = exports.getProcessByIdentifier = exports.deleteProcessByIdentifier = exports.postProcess = exports.getProcess = exports.getNetworkProcessByPidPorts = exports.postNetworkProcessByPidMonitor = exports.deleteNetworkProcessByPidMonitor = exports.putFilesystemByPath = exports.getFilesystemByPath = exports.deleteFilesystemByPath = void 0;
|
|
5
|
+
const client_gen_1 = require("./client.gen");
|
|
6
6
|
/**
|
|
7
7
|
* Delete file or directory
|
|
8
8
|
* Delete a file or directory
|
|
9
9
|
*/
|
|
10
10
|
const deleteFilesystemByPath = (options) => {
|
|
11
|
-
return (options.client ??
|
|
11
|
+
return (options.client ?? client_gen_1.client).delete({
|
|
12
12
|
url: '/filesystem/{path}',
|
|
13
13
|
...options
|
|
14
14
|
});
|
|
@@ -19,7 +19,7 @@ exports.deleteFilesystemByPath = deleteFilesystemByPath;
|
|
|
19
19
|
* Get content of a file or listing of a directory
|
|
20
20
|
*/
|
|
21
21
|
const getFilesystemByPath = (options) => {
|
|
22
|
-
return (options.client ??
|
|
22
|
+
return (options.client ?? client_gen_1.client).get({
|
|
23
23
|
url: '/filesystem/{path}',
|
|
24
24
|
...options
|
|
25
25
|
});
|
|
@@ -30,7 +30,7 @@ exports.getFilesystemByPath = getFilesystemByPath;
|
|
|
30
30
|
* Create or update a file or directory
|
|
31
31
|
*/
|
|
32
32
|
const putFilesystemByPath = (options) => {
|
|
33
|
-
return (options.client ??
|
|
33
|
+
return (options.client ?? client_gen_1.client).put({
|
|
34
34
|
url: '/filesystem/{path}',
|
|
35
35
|
...options,
|
|
36
36
|
headers: {
|
|
@@ -45,7 +45,7 @@ exports.putFilesystemByPath = putFilesystemByPath;
|
|
|
45
45
|
* Stop monitoring for new ports opened by a process
|
|
46
46
|
*/
|
|
47
47
|
const deleteNetworkProcessByPidMonitor = (options) => {
|
|
48
|
-
return (options.client ??
|
|
48
|
+
return (options.client ?? client_gen_1.client).delete({
|
|
49
49
|
url: '/network/process/{pid}/monitor',
|
|
50
50
|
...options
|
|
51
51
|
});
|
|
@@ -56,7 +56,7 @@ exports.deleteNetworkProcessByPidMonitor = deleteNetworkProcessByPidMonitor;
|
|
|
56
56
|
* Start monitoring for new ports opened by a process
|
|
57
57
|
*/
|
|
58
58
|
const postNetworkProcessByPidMonitor = (options) => {
|
|
59
|
-
return (options.client ??
|
|
59
|
+
return (options.client ?? client_gen_1.client).post({
|
|
60
60
|
url: '/network/process/{pid}/monitor',
|
|
61
61
|
...options,
|
|
62
62
|
headers: {
|
|
@@ -71,7 +71,7 @@ exports.postNetworkProcessByPidMonitor = postNetworkProcessByPidMonitor;
|
|
|
71
71
|
* Get a list of all open ports for a process
|
|
72
72
|
*/
|
|
73
73
|
const getNetworkProcessByPidPorts = (options) => {
|
|
74
|
-
return (options.client ??
|
|
74
|
+
return (options.client ?? client_gen_1.client).get({
|
|
75
75
|
url: '/network/process/{pid}/ports',
|
|
76
76
|
...options
|
|
77
77
|
});
|
|
@@ -82,7 +82,7 @@ exports.getNetworkProcessByPidPorts = getNetworkProcessByPidPorts;
|
|
|
82
82
|
* Get a list of all running and completed processes
|
|
83
83
|
*/
|
|
84
84
|
const getProcess = (options) => {
|
|
85
|
-
return (options?.client ??
|
|
85
|
+
return (options?.client ?? client_gen_1.client).get({
|
|
86
86
|
url: '/process',
|
|
87
87
|
...options
|
|
88
88
|
});
|
|
@@ -93,7 +93,7 @@ exports.getProcess = getProcess;
|
|
|
93
93
|
* Execute a command and return process information
|
|
94
94
|
*/
|
|
95
95
|
const postProcess = (options) => {
|
|
96
|
-
return (options.client ??
|
|
96
|
+
return (options.client ?? client_gen_1.client).post({
|
|
97
97
|
url: '/process',
|
|
98
98
|
...options,
|
|
99
99
|
headers: {
|
|
@@ -108,7 +108,7 @@ exports.postProcess = postProcess;
|
|
|
108
108
|
* Gracefully stop a running process
|
|
109
109
|
*/
|
|
110
110
|
const deleteProcessByIdentifier = (options) => {
|
|
111
|
-
return (options.client ??
|
|
111
|
+
return (options.client ?? client_gen_1.client).delete({
|
|
112
112
|
url: '/process/{identifier}',
|
|
113
113
|
...options
|
|
114
114
|
});
|
|
@@ -119,7 +119,7 @@ exports.deleteProcessByIdentifier = deleteProcessByIdentifier;
|
|
|
119
119
|
* Get information about a process by its PID or name
|
|
120
120
|
*/
|
|
121
121
|
const getProcessByIdentifier = (options) => {
|
|
122
|
-
return (options.client ??
|
|
122
|
+
return (options.client ?? client_gen_1.client).get({
|
|
123
123
|
url: '/process/{identifier}',
|
|
124
124
|
...options
|
|
125
125
|
});
|
|
@@ -130,7 +130,7 @@ exports.getProcessByIdentifier = getProcessByIdentifier;
|
|
|
130
130
|
* Forcefully kill a running process
|
|
131
131
|
*/
|
|
132
132
|
const deleteProcessByIdentifierKill = (options) => {
|
|
133
|
-
return (options.client ??
|
|
133
|
+
return (options.client ?? client_gen_1.client).delete({
|
|
134
134
|
url: '/process/{identifier}/kill',
|
|
135
135
|
...options,
|
|
136
136
|
headers: {
|
|
@@ -145,9 +145,20 @@ exports.deleteProcessByIdentifierKill = deleteProcessByIdentifierKill;
|
|
|
145
145
|
* Get the stdout and stderr output of a process
|
|
146
146
|
*/
|
|
147
147
|
const getProcessByIdentifierLogs = (options) => {
|
|
148
|
-
return (options.client ??
|
|
148
|
+
return (options.client ?? client_gen_1.client).get({
|
|
149
149
|
url: '/process/{identifier}/logs',
|
|
150
150
|
...options
|
|
151
151
|
});
|
|
152
152
|
};
|
|
153
153
|
exports.getProcessByIdentifierLogs = getProcessByIdentifierLogs;
|
|
154
|
+
/**
|
|
155
|
+
* Get process logs in realtime
|
|
156
|
+
* Get the stdout and stderr output of a process in realtime
|
|
157
|
+
*/
|
|
158
|
+
const getProcessByIdentifierLogsStream = (options) => {
|
|
159
|
+
return (options.client ?? client_gen_1.client).get({
|
|
160
|
+
url: '/process/{identifier}/logs/stream',
|
|
161
|
+
...options
|
|
162
|
+
});
|
|
163
|
+
};
|
|
164
|
+
exports.getProcessByIdentifierLogsStream = getProcessByIdentifierLogsStream;
|
|
@@ -17,6 +17,18 @@ export type FileRequest = {
|
|
|
17
17
|
isDirectory?: boolean;
|
|
18
18
|
permissions?: string;
|
|
19
19
|
};
|
|
20
|
+
export type FileWithContent = {
|
|
21
|
+
content?: string;
|
|
22
|
+
group?: string;
|
|
23
|
+
lastModified?: string;
|
|
24
|
+
owner?: string;
|
|
25
|
+
path?: string;
|
|
26
|
+
/**
|
|
27
|
+
* swagger:strfmt string
|
|
28
|
+
*/
|
|
29
|
+
permissions?: string;
|
|
30
|
+
size?: number;
|
|
31
|
+
};
|
|
20
32
|
export type PortMonitorRequest = {
|
|
21
33
|
/**
|
|
22
34
|
* URL to call when a new port is detected
|
|
@@ -117,7 +129,7 @@ export type GetFilesystemByPathResponses = {
|
|
|
117
129
|
/**
|
|
118
130
|
* Directory listing
|
|
119
131
|
*/
|
|
120
|
-
200: Directory;
|
|
132
|
+
200: Directory | FileWithContent;
|
|
121
133
|
};
|
|
122
134
|
export type GetFilesystemByPathResponse = GetFilesystemByPathResponses[keyof GetFilesystemByPathResponses];
|
|
123
135
|
export type PutFilesystemByPathData = {
|
|
@@ -382,7 +394,12 @@ export type GetProcessByIdentifierLogsData = {
|
|
|
382
394
|
*/
|
|
383
395
|
identifier: string;
|
|
384
396
|
};
|
|
385
|
-
query?:
|
|
397
|
+
query?: {
|
|
398
|
+
/**
|
|
399
|
+
* Stream logs
|
|
400
|
+
*/
|
|
401
|
+
stream?: boolean;
|
|
402
|
+
};
|
|
386
403
|
url: '/process/{identifier}/logs';
|
|
387
404
|
};
|
|
388
405
|
export type GetProcessByIdentifierLogsErrors = {
|
|
@@ -405,6 +422,42 @@ export type GetProcessByIdentifierLogsResponses = {
|
|
|
405
422
|
};
|
|
406
423
|
};
|
|
407
424
|
export type GetProcessByIdentifierLogsResponse = GetProcessByIdentifierLogsResponses[keyof GetProcessByIdentifierLogsResponses];
|
|
425
|
+
export type GetProcessByIdentifierLogsStreamData = {
|
|
426
|
+
body?: never;
|
|
427
|
+
path: {
|
|
428
|
+
/**
|
|
429
|
+
* Process identifier (PID or name)
|
|
430
|
+
*/
|
|
431
|
+
identifier: string;
|
|
432
|
+
};
|
|
433
|
+
query?: {
|
|
434
|
+
/**
|
|
435
|
+
* Stream logs
|
|
436
|
+
*/
|
|
437
|
+
stream?: boolean;
|
|
438
|
+
};
|
|
439
|
+
url: '/process/{identifier}/logs/stream';
|
|
440
|
+
};
|
|
441
|
+
export type GetProcessByIdentifierLogsStreamErrors = {
|
|
442
|
+
/**
|
|
443
|
+
* Process not found
|
|
444
|
+
*/
|
|
445
|
+
404: ErrorResponse;
|
|
446
|
+
/**
|
|
447
|
+
* Internal server error
|
|
448
|
+
*/
|
|
449
|
+
500: ErrorResponse;
|
|
450
|
+
};
|
|
451
|
+
export type GetProcessByIdentifierLogsStreamError = GetProcessByIdentifierLogsStreamErrors[keyof GetProcessByIdentifierLogsStreamErrors];
|
|
452
|
+
export type GetProcessByIdentifierLogsStreamResponses = {
|
|
453
|
+
/**
|
|
454
|
+
* Process logs
|
|
455
|
+
*/
|
|
456
|
+
200: {
|
|
457
|
+
[key: string]: string;
|
|
458
|
+
};
|
|
459
|
+
};
|
|
460
|
+
export type GetProcessByIdentifierLogsStreamResponse = GetProcessByIdentifierLogsStreamResponses[keyof GetProcessByIdentifierLogsStreamResponses];
|
|
408
461
|
export type ClientOptions = {
|
|
409
462
|
baseUrl: `${string}://localhost:8080` | (string & {});
|
|
410
463
|
};
|
package/dist/sandbox/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
+
export { deleteFilesystemByPath, deleteNetworkProcessByPidMonitor, deleteProcessByIdentifier, deleteProcessByIdentifierKill, Directory, ErrorResponse, File, FileRequest, FileWithContent, getFilesystemByPath, getNetworkProcessByPidPorts, getProcess, getProcessByIdentifier, getProcessByIdentifierLogs, getProcessByIdentifierLogsStream, PortMonitorRequest, postNetworkProcessByPidMonitor, postProcess, ProcessKillRequest, ProcessRequest, ProcessResponse, putFilesystemByPath, SuccessResponse } from "./client/index.js";
|
|
1
2
|
export * from "./sandbox.js";
|
package/dist/sandbox/index.js
CHANGED
|
@@ -14,4 +14,21 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.putFilesystemByPath = exports.postProcess = exports.postNetworkProcessByPidMonitor = exports.getProcessByIdentifierLogsStream = exports.getProcessByIdentifierLogs = exports.getProcessByIdentifier = exports.getProcess = exports.getNetworkProcessByPidPorts = exports.getFilesystemByPath = exports.deleteProcessByIdentifierKill = exports.deleteProcessByIdentifier = exports.deleteNetworkProcessByPidMonitor = exports.deleteFilesystemByPath = void 0;
|
|
18
|
+
var index_js_1 = require("./client/index.js");
|
|
19
|
+
/* Export SDK functions */
|
|
20
|
+
Object.defineProperty(exports, "deleteFilesystemByPath", { enumerable: true, get: function () { return index_js_1.deleteFilesystemByPath; } });
|
|
21
|
+
Object.defineProperty(exports, "deleteNetworkProcessByPidMonitor", { enumerable: true, get: function () { return index_js_1.deleteNetworkProcessByPidMonitor; } });
|
|
22
|
+
Object.defineProperty(exports, "deleteProcessByIdentifier", { enumerable: true, get: function () { return index_js_1.deleteProcessByIdentifier; } });
|
|
23
|
+
Object.defineProperty(exports, "deleteProcessByIdentifierKill", { enumerable: true, get: function () { return index_js_1.deleteProcessByIdentifierKill; } });
|
|
24
|
+
Object.defineProperty(exports, "getFilesystemByPath", { enumerable: true, get: function () { return index_js_1.getFilesystemByPath; } });
|
|
25
|
+
Object.defineProperty(exports, "getNetworkProcessByPidPorts", { enumerable: true, get: function () { return index_js_1.getNetworkProcessByPidPorts; } });
|
|
26
|
+
Object.defineProperty(exports, "getProcess", { enumerable: true, get: function () { return index_js_1.getProcess; } });
|
|
27
|
+
Object.defineProperty(exports, "getProcessByIdentifier", { enumerable: true, get: function () { return index_js_1.getProcessByIdentifier; } });
|
|
28
|
+
Object.defineProperty(exports, "getProcessByIdentifierLogs", { enumerable: true, get: function () { return index_js_1.getProcessByIdentifierLogs; } });
|
|
29
|
+
Object.defineProperty(exports, "getProcessByIdentifierLogsStream", { enumerable: true, get: function () { return index_js_1.getProcessByIdentifierLogsStream; } });
|
|
30
|
+
Object.defineProperty(exports, "postNetworkProcessByPidMonitor", { enumerable: true, get: function () { return index_js_1.postNetworkProcessByPidMonitor; } });
|
|
31
|
+
Object.defineProperty(exports, "postProcess", { enumerable: true, get: function () { return index_js_1.postProcess; } });
|
|
32
|
+
Object.defineProperty(exports, "putFilesystemByPath", { enumerable: true, get: function () { return index_js_1.putFilesystemByPath; } });
|
|
17
33
|
__exportStar(require("./sandbox.js"), exports);
|
|
34
|
+
// Re-export everything from client except ClientOptions to avoid conflict
|