@openkaiden/opnshll-sdk 0.1.5 → 0.1.7
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.d.ts +23 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +46 -14
- package/dist/client.js.map +1 -1
- package/dist/gen/openshell_pb.d.ts +209 -1
- package/dist/gen/openshell_pb.d.ts.map +1 -1
- package/dist/gen/openshell_pb.js +262 -217
- package/dist/gen/openshell_pb.js.map +1 -1
- package/dist/gen/sandbox_pb.d.ts +121 -0
- package/dist/gen/sandbox_pb.d.ts.map +1 -1
- package/dist/gen/sandbox_pb.js +72 -2
- package/dist/gen/sandbox_pb.js.map +1 -1
- package/dist/raw.js +1 -1
- package/dist/raw.js.map +1 -1
- package/dist/routing.d.ts +11 -0
- package/dist/routing.d.ts.map +1 -0
- package/dist/routing.js +57 -0
- package/dist/routing.js.map +1 -0
- package/package.json +3 -3
|
@@ -1147,6 +1147,107 @@ export type CreateSandboxRequest = Message<"openshell.v1.CreateSandboxRequest">
|
|
|
1147
1147
|
* Use `create(CreateSandboxRequestSchema)` to create a new message.
|
|
1148
1148
|
*/
|
|
1149
1149
|
export declare const CreateSandboxRequestSchema: GenMessage<CreateSandboxRequest>;
|
|
1150
|
+
/**
|
|
1151
|
+
* Update selected configuration of a stopped sandbox. Omitted fields are unchanged.
|
|
1152
|
+
* Start explicitly after a successful update. With no fields selected, resume
|
|
1153
|
+
* the pending operation stored by the gateway using the current resource version.
|
|
1154
|
+
*
|
|
1155
|
+
* @generated from message openshell.v1.UpdateSandboxRequest
|
|
1156
|
+
*/
|
|
1157
|
+
export type UpdateSandboxRequest = Message<"openshell.v1.UpdateSandboxRequest"> & {
|
|
1158
|
+
/**
|
|
1159
|
+
* Workspace scope. Only a named workspace selection is accepted.
|
|
1160
|
+
*
|
|
1161
|
+
* @generated from field: openshell.datamodel.v1.WorkspaceSelector workspace_scope = 1;
|
|
1162
|
+
*/
|
|
1163
|
+
workspaceScope?: WorkspaceSelector | undefined;
|
|
1164
|
+
/**
|
|
1165
|
+
* Canonical name of the existing sandbox; this is not a rename or upsert.
|
|
1166
|
+
*
|
|
1167
|
+
* @generated from field: string name = 2;
|
|
1168
|
+
*/
|
|
1169
|
+
name: string;
|
|
1170
|
+
/**
|
|
1171
|
+
* Nonempty OCI workload image reference. This does not change trusted runtime
|
|
1172
|
+
* images or reseed an existing workspace.
|
|
1173
|
+
*
|
|
1174
|
+
* @generated from field: optional string image = 3;
|
|
1175
|
+
*/
|
|
1176
|
+
image?: string | undefined;
|
|
1177
|
+
/**
|
|
1178
|
+
* Replace workload argv; an empty list restores image-resolved default shell behavior.
|
|
1179
|
+
*
|
|
1180
|
+
* @generated from field: openshell.v1.SandboxCommandUpdate command = 6;
|
|
1181
|
+
*/
|
|
1182
|
+
command?: SandboxCommandUpdate | undefined;
|
|
1183
|
+
/**
|
|
1184
|
+
* Replace sandbox-level overrides. Empty clears overrides; template defaults remain.
|
|
1185
|
+
*
|
|
1186
|
+
* @generated from field: openshell.v1.SandboxMapUpdate environment = 7;
|
|
1187
|
+
*/
|
|
1188
|
+
environment?: SandboxMapUpdate | undefined;
|
|
1189
|
+
/**
|
|
1190
|
+
* Replace user metadata, preserving gateway-owned keys. These do not set pod metadata.
|
|
1191
|
+
*
|
|
1192
|
+
* @generated from field: openshell.v1.SandboxMapUpdate labels = 8;
|
|
1193
|
+
*/
|
|
1194
|
+
labels?: SandboxMapUpdate | undefined;
|
|
1195
|
+
/**
|
|
1196
|
+
* @generated from field: openshell.v1.SandboxMapUpdate annotations = 9;
|
|
1197
|
+
*/
|
|
1198
|
+
annotations?: SandboxMapUpdate | undefined;
|
|
1199
|
+
/**
|
|
1200
|
+
* Required nonzero resource version read by the caller.
|
|
1201
|
+
*
|
|
1202
|
+
* @generated from field: uint64 expected_resource_version = 4;
|
|
1203
|
+
*/
|
|
1204
|
+
expectedResourceVersion: bigint;
|
|
1205
|
+
/**
|
|
1206
|
+
* Optional nonzero UUID for durable at-most-once admission.
|
|
1207
|
+
*
|
|
1208
|
+
* @generated from field: string request_id = 5;
|
|
1209
|
+
*/
|
|
1210
|
+
requestId: string;
|
|
1211
|
+
};
|
|
1212
|
+
/**
|
|
1213
|
+
* Describes the message openshell.v1.UpdateSandboxRequest.
|
|
1214
|
+
* Use `create(UpdateSandboxRequestSchema)` to create a new message.
|
|
1215
|
+
*/
|
|
1216
|
+
export declare const UpdateSandboxRequestSchema: GenMessage<UpdateSandboxRequest>;
|
|
1217
|
+
/**
|
|
1218
|
+
* Presence selects replacement, including an explicitly empty list.
|
|
1219
|
+
*
|
|
1220
|
+
* @generated from message openshell.v1.SandboxCommandUpdate
|
|
1221
|
+
*/
|
|
1222
|
+
export type SandboxCommandUpdate = Message<"openshell.v1.SandboxCommandUpdate"> & {
|
|
1223
|
+
/**
|
|
1224
|
+
* @generated from field: repeated string argv = 1;
|
|
1225
|
+
*/
|
|
1226
|
+
argv: string[];
|
|
1227
|
+
};
|
|
1228
|
+
/**
|
|
1229
|
+
* Describes the message openshell.v1.SandboxCommandUpdate.
|
|
1230
|
+
* Use `create(SandboxCommandUpdateSchema)` to create a new message.
|
|
1231
|
+
*/
|
|
1232
|
+
export declare const SandboxCommandUpdateSchema: GenMessage<SandboxCommandUpdate>;
|
|
1233
|
+
/**
|
|
1234
|
+
* Presence selects replacement, including an explicitly empty map.
|
|
1235
|
+
*
|
|
1236
|
+
* @generated from message openshell.v1.SandboxMapUpdate
|
|
1237
|
+
*/
|
|
1238
|
+
export type SandboxMapUpdate = Message<"openshell.v1.SandboxMapUpdate"> & {
|
|
1239
|
+
/**
|
|
1240
|
+
* @generated from field: map<string, string> values = 1;
|
|
1241
|
+
*/
|
|
1242
|
+
values: {
|
|
1243
|
+
[key: string]: string;
|
|
1244
|
+
};
|
|
1245
|
+
};
|
|
1246
|
+
/**
|
|
1247
|
+
* Describes the message openshell.v1.SandboxMapUpdate.
|
|
1248
|
+
* Use `create(SandboxMapUpdateSchema)` to create a new message.
|
|
1249
|
+
*/
|
|
1250
|
+
export declare const SandboxMapUpdateSchema: GenMessage<SandboxMapUpdate>;
|
|
1150
1251
|
/**
|
|
1151
1252
|
* @generated from message openshell.v1.CreateSandboxTemplateRequest
|
|
1152
1253
|
*/
|
|
@@ -1661,6 +1762,57 @@ export type StartSandboxRequest = Message<"openshell.v1.StartSandboxRequest"> &
|
|
|
1661
1762
|
* Use `create(StartSandboxRequestSchema)` to create a new message.
|
|
1662
1763
|
*/
|
|
1663
1764
|
export declare const StartSandboxRequestSchema: GenMessage<StartSandboxRequest>;
|
|
1765
|
+
/**
|
|
1766
|
+
* Suspend sandbox request.
|
|
1767
|
+
*
|
|
1768
|
+
* @generated from message openshell.v1.SuspendSandboxRequest
|
|
1769
|
+
*/
|
|
1770
|
+
export type SuspendSandboxRequest = Message<"openshell.v1.SuspendSandboxRequest"> & {
|
|
1771
|
+
/**
|
|
1772
|
+
* Workspace scope. Only a named workspace selection is accepted.
|
|
1773
|
+
*
|
|
1774
|
+
* @generated from field: openshell.datamodel.v1.WorkspaceSelector workspace_scope = 2;
|
|
1775
|
+
*/
|
|
1776
|
+
workspaceScope?: WorkspaceSelector | undefined;
|
|
1777
|
+
/**
|
|
1778
|
+
* @generated from field: string name = 1;
|
|
1779
|
+
*/
|
|
1780
|
+
name: string;
|
|
1781
|
+
};
|
|
1782
|
+
/**
|
|
1783
|
+
* Describes the message openshell.v1.SuspendSandboxRequest.
|
|
1784
|
+
* Use `create(SuspendSandboxRequestSchema)` to create a new message.
|
|
1785
|
+
*/
|
|
1786
|
+
export declare const SuspendSandboxRequestSchema: GenMessage<SuspendSandboxRequest>;
|
|
1787
|
+
/**
|
|
1788
|
+
* Resume sandbox request.
|
|
1789
|
+
*
|
|
1790
|
+
* @generated from message openshell.v1.ResumeSandboxRequest
|
|
1791
|
+
*/
|
|
1792
|
+
export type ResumeSandboxRequest = Message<"openshell.v1.ResumeSandboxRequest"> & {
|
|
1793
|
+
/**
|
|
1794
|
+
* Workspace scope. Only a named workspace selection is accepted.
|
|
1795
|
+
*
|
|
1796
|
+
* @generated from field: openshell.datamodel.v1.WorkspaceSelector workspace_scope = 2;
|
|
1797
|
+
*/
|
|
1798
|
+
workspaceScope?: WorkspaceSelector | undefined;
|
|
1799
|
+
/**
|
|
1800
|
+
* @generated from field: string name = 1;
|
|
1801
|
+
*/
|
|
1802
|
+
name: string;
|
|
1803
|
+
/**
|
|
1804
|
+
* If true, the isolation backend may boot the workload cleanly when it
|
|
1805
|
+
* cannot restore the retained memory state. If false, resume fails instead.
|
|
1806
|
+
*
|
|
1807
|
+
* @generated from field: bool restart_if_restore_fails = 3;
|
|
1808
|
+
*/
|
|
1809
|
+
restartIfRestoreFails: boolean;
|
|
1810
|
+
};
|
|
1811
|
+
/**
|
|
1812
|
+
* Describes the message openshell.v1.ResumeSandboxRequest.
|
|
1813
|
+
* Use `create(ResumeSandboxRequestSchema)` to create a new message.
|
|
1814
|
+
*/
|
|
1815
|
+
export declare const ResumeSandboxRequestSchema: GenMessage<ResumeSandboxRequest>;
|
|
1664
1816
|
/**
|
|
1665
1817
|
* Sandbox response.
|
|
1666
1818
|
*
|
|
@@ -8442,7 +8594,20 @@ export declare enum SandboxPhase {
|
|
|
8442
8594
|
*
|
|
8443
8595
|
* @generated from enum value: SANDBOX_PHASE_COMPLETED = 9;
|
|
8444
8596
|
*/
|
|
8445
|
-
COMPLETED = 9
|
|
8597
|
+
COMPLETED = 9,
|
|
8598
|
+
/**
|
|
8599
|
+
* The gateway requested suspension and the driver has not confirmed it.
|
|
8600
|
+
*
|
|
8601
|
+
* @generated from enum value: SANDBOX_PHASE_SUSPENDING = 11;
|
|
8602
|
+
*/
|
|
8603
|
+
SUSPENDING = 11,
|
|
8604
|
+
/**
|
|
8605
|
+
* The workload is frozen and its memory state is retained by the isolation
|
|
8606
|
+
* backend. ResumeSandbox restores it; StartSandbox discards it.
|
|
8607
|
+
*
|
|
8608
|
+
* @generated from enum value: SANDBOX_PHASE_SUSPENDED = 12;
|
|
8609
|
+
*/
|
|
8610
|
+
SUSPENDED = 12
|
|
8446
8611
|
}
|
|
8447
8612
|
/**
|
|
8448
8613
|
* Describes the enum openshell.v1.SandboxPhase.
|
|
@@ -9371,6 +9536,28 @@ export declare const OpenShell: GenService<{
|
|
|
9371
9536
|
input: typeof StartSandboxRequestSchema;
|
|
9372
9537
|
output: typeof SandboxResponseSchema;
|
|
9373
9538
|
};
|
|
9539
|
+
/**
|
|
9540
|
+
* Freeze a ready sandbox and retain its memory state for a later resume.
|
|
9541
|
+
* Requires a compute driver and isolation backend that support state
|
|
9542
|
+
* retention.
|
|
9543
|
+
*
|
|
9544
|
+
* @generated from rpc openshell.v1.OpenShell.SuspendSandbox
|
|
9545
|
+
*/
|
|
9546
|
+
suspendSandbox: {
|
|
9547
|
+
methodKind: "unary";
|
|
9548
|
+
input: typeof SuspendSandboxRequestSchema;
|
|
9549
|
+
output: typeof SandboxResponseSchema;
|
|
9550
|
+
};
|
|
9551
|
+
/**
|
|
9552
|
+
* Restore a suspended sandbox in a new runtime generation.
|
|
9553
|
+
*
|
|
9554
|
+
* @generated from rpc openshell.v1.OpenShell.ResumeSandbox
|
|
9555
|
+
*/
|
|
9556
|
+
resumeSandbox: {
|
|
9557
|
+
methodKind: "unary";
|
|
9558
|
+
input: typeof ResumeSandboxRequestSchema;
|
|
9559
|
+
output: typeof SandboxResponseSchema;
|
|
9560
|
+
};
|
|
9374
9561
|
/**
|
|
9375
9562
|
* Create a short-lived SSH session for a sandbox.
|
|
9376
9563
|
*
|
|
@@ -10082,4 +10269,25 @@ export declare const OpenShell: GenService<{
|
|
|
10082
10269
|
output: typeof ListWorkspaceMembersResponseSchema;
|
|
10083
10270
|
};
|
|
10084
10271
|
}>;
|
|
10272
|
+
/**
|
|
10273
|
+
* Optional sandbox mutations are separate from OpenShell so existing generated
|
|
10274
|
+
* OpenShell server implementations remain source-compatible.
|
|
10275
|
+
*
|
|
10276
|
+
* @generated from service openshell.v1.SandboxUpdates
|
|
10277
|
+
*/
|
|
10278
|
+
export declare const SandboxUpdates: GenService<{
|
|
10279
|
+
/**
|
|
10280
|
+
* Update the workload image, command, environment, labels, or annotations of a
|
|
10281
|
+
* stopped sandbox while preserving its identity and retained storage. Requires
|
|
10282
|
+
* compute-driver support for the selected changes and explicit gateway activation
|
|
10283
|
+
* of sandbox updates.
|
|
10284
|
+
*
|
|
10285
|
+
* @generated from rpc openshell.v1.SandboxUpdates.UpdateSandbox
|
|
10286
|
+
*/
|
|
10287
|
+
updateSandbox: {
|
|
10288
|
+
methodKind: "unary";
|
|
10289
|
+
input: typeof UpdateSandboxRequestSchema;
|
|
10290
|
+
output: typeof SandboxResponseSchema;
|
|
10291
|
+
};
|
|
10292
|
+
}>;
|
|
10085
10293
|
//# sourceMappingURL=openshell_pb.d.ts.map
|