@toshicloud/sdk 0.0.0-stage → 0.3.0
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/LICENSE +202 -0
- package/README.md +250 -2
- package/dist/client.d.ts +153 -0
- package/dist/client.js +92 -0
- package/dist/errors.d.ts +28 -0
- package/dist/errors.js +77 -0
- package/dist/execute.d.ts +7 -0
- package/dist/execute.js +380 -0
- package/dist/gen/toshi/workspace/v1/artifacts_pb.d.ts +843 -0
- package/dist/gen/toshi/workspace/v1/artifacts_pb.js +96 -0
- package/dist/gen/toshi/workspace/v1/channels_pb.d.ts +2713 -0
- package/dist/gen/toshi/workspace/v1/channels_pb.js +336 -0
- package/dist/gen/toshi/workspace/v1/display_pb.d.ts +1166 -0
- package/dist/gen/toshi/workspace/v1/display_pb.js +214 -0
- package/dist/gen/toshi/workspace/v1/projects_pb.d.ts +1540 -0
- package/dist/gen/toshi/workspace/v1/projects_pb.js +207 -0
- package/dist/gen/toshi/workspace/v1/recordings_pb.d.ts +1024 -0
- package/dist/gen/toshi/workspace/v1/recordings_pb.js +201 -0
- package/dist/gen/toshi/workspace/v1/secrets_pb.d.ts +1214 -0
- package/dist/gen/toshi/workspace/v1/secrets_pb.js +182 -0
- package/dist/gen/toshi/workspace/v1/volumes_pb.d.ts +444 -0
- package/dist/gen/toshi/workspace/v1/volumes_pb.js +107 -0
- package/dist/gen/toshi/workspace/v1/webhook_pb.d.ts +1018 -0
- package/dist/gen/toshi/workspace/v1/webhook_pb.js +153 -0
- package/dist/gen/toshi/workspace/v1/workloads_pb.d.ts +2858 -0
- package/dist/gen/toshi/workspace/v1/workloads_pb.js +261 -0
- package/dist/gen/toshi/workspace/v1/workspace_pb.d.ts +5380 -0
- package/dist/gen/toshi/workspace/v1/workspace_pb.js +855 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +14 -0
- package/dist/interceptors.d.ts +10 -0
- package/dist/interceptors.js +159 -0
- package/dist/output.d.ts +7 -0
- package/dist/output.js +77 -0
- package/dist/retry.d.ts +42 -0
- package/dist/retry.js +254 -0
- package/dist/run.d.ts +10 -0
- package/dist/run.js +175 -0
- package/dist/stream.d.ts +21 -0
- package/dist/stream.js +84 -0
- package/dist/wait.d.ts +13 -0
- package/dist/wait.js +41 -0
- package/dist/watch.d.ts +16 -0
- package/dist/watch.js +277 -0
- package/package.json +47 -4
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.16.0 with parameter "target=ts,json_types=true,import_extension=js"
|
|
2
|
+
// @generated from file toshi/workspace/v1/volumes.proto (package toshi.workspace.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
|
+
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
6
|
+
/**
|
|
7
|
+
* Describes the file toshi/workspace/v1/volumes.proto.
|
|
8
|
+
*/
|
|
9
|
+
export const file_toshi_workspace_v1_volumes = /*@__PURE__*/ fileDesc("CiB0b3NoaS93b3Jrc3BhY2UvdjEvdm9sdW1lcy5wcm90bxISdG9zaGkud29ya3NwYWNlLnYxItwBCgZWb2x1bWUSCgoCaWQYASABKAkSDAoEbmFtZRgCIAEoCRIPCgdwcm9qZWN0GAMgASgJEhIKCnByb2plY3RfaWQYBCABKAkSLAoEbW9kZRgFIAEoDjIeLnRvc2hpLndvcmtzcGFjZS52MS5Wb2x1bWVNb2RlEhYKDnNpemVfY2FwX2J5dGVzGAYgASgDEi8KC2NyZWF0ZV90aW1lGAcgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIcChRhdHRhY2hlZF93b3JrbG9hZF9pZBgIIAEoCSJMChJMaXN0Vm9sdW1lc1JlcXVlc3QSDwoHcHJvamVjdBgBIAEoCRIRCglwYWdlX3NpemUYAiABKAUSEgoKcGFnZV90b2tlbhgDIAEoCSJbChNMaXN0Vm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VJlc3BvbnNlQi1aK2dpdGh1Yi5jb20vdG9zaGljbG91ZC90b3NoaS1hcGkvd29ya3NwYWNldjFiBnByb3RvMw", [file_google_protobuf_timestamp]);
|
|
10
|
+
/**
|
|
11
|
+
* Describes the message toshi.workspace.v1.Volume.
|
|
12
|
+
* Use `create(VolumeSchema)` to create a new message.
|
|
13
|
+
*/
|
|
14
|
+
export const VolumeSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_volumes, 0);
|
|
15
|
+
/**
|
|
16
|
+
* Describes the message toshi.workspace.v1.ListVolumesRequest.
|
|
17
|
+
* Use `create(ListVolumesRequestSchema)` to create a new message.
|
|
18
|
+
*/
|
|
19
|
+
export const ListVolumesRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_volumes, 1);
|
|
20
|
+
/**
|
|
21
|
+
* Describes the message toshi.workspace.v1.ListVolumesResponse.
|
|
22
|
+
* Use `create(ListVolumesResponseSchema)` to create a new message.
|
|
23
|
+
*/
|
|
24
|
+
export const ListVolumesResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_volumes, 2);
|
|
25
|
+
/**
|
|
26
|
+
* Describes the message toshi.workspace.v1.AttachVolumeRequest.
|
|
27
|
+
* Use `create(AttachVolumeRequestSchema)` to create a new message.
|
|
28
|
+
*/
|
|
29
|
+
export const AttachVolumeRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_volumes, 3);
|
|
30
|
+
/**
|
|
31
|
+
* Describes the message toshi.workspace.v1.AttachVolumeResponse.
|
|
32
|
+
* Use `create(AttachVolumeResponseSchema)` to create a new message.
|
|
33
|
+
*/
|
|
34
|
+
export const AttachVolumeResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_volumes, 4);
|
|
35
|
+
/**
|
|
36
|
+
* Describes the message toshi.workspace.v1.DetachVolumeRequest.
|
|
37
|
+
* Use `create(DetachVolumeRequestSchema)` to create a new message.
|
|
38
|
+
*/
|
|
39
|
+
export const DetachVolumeRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_volumes, 5);
|
|
40
|
+
/**
|
|
41
|
+
* Describes the message toshi.workspace.v1.DetachVolumeResponse.
|
|
42
|
+
* Use `create(DetachVolumeResponseSchema)` to create a new message.
|
|
43
|
+
*/
|
|
44
|
+
export const DetachVolumeResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_volumes, 6);
|
|
45
|
+
/**
|
|
46
|
+
* VolumeMode is what a volume holds and how runs use it.
|
|
47
|
+
*
|
|
48
|
+
* @generated from enum toshi.workspace.v1.VolumeMode
|
|
49
|
+
*/
|
|
50
|
+
export var VolumeMode;
|
|
51
|
+
(function (VolumeMode) {
|
|
52
|
+
/**
|
|
53
|
+
* @generated from enum value: VOLUME_MODE_UNSPECIFIED = 0;
|
|
54
|
+
*/
|
|
55
|
+
VolumeMode[VolumeMode["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
56
|
+
/**
|
|
57
|
+
* A package or build cache: every run gets an overlay of it, and a
|
|
58
|
+
* trusted success makes the next generation.
|
|
59
|
+
*
|
|
60
|
+
* @generated from enum value: VOLUME_MODE_CACHE = 1;
|
|
61
|
+
*/
|
|
62
|
+
VolumeMode[VolumeMode["CACHE"] = 1] = "CACHE";
|
|
63
|
+
/**
|
|
64
|
+
* Data every run gets an overlay of; nothing a run writes is kept.
|
|
65
|
+
*
|
|
66
|
+
* @generated from enum value: VOLUME_MODE_SEED = 2;
|
|
67
|
+
*/
|
|
68
|
+
VolumeMode[VolumeMode["SEED"] = 2] = "SEED";
|
|
69
|
+
/**
|
|
70
|
+
* Mounted read-write by one VM at a time; what a run writes is kept
|
|
71
|
+
* for the next.
|
|
72
|
+
*
|
|
73
|
+
* @generated from enum value: VOLUME_MODE_STATE = 3;
|
|
74
|
+
*/
|
|
75
|
+
VolumeMode[VolumeMode["STATE"] = 3] = "STATE";
|
|
76
|
+
/**
|
|
77
|
+
* Written once and read anywhere.
|
|
78
|
+
*
|
|
79
|
+
* @generated from enum value: VOLUME_MODE_ARTIFACT = 4;
|
|
80
|
+
*/
|
|
81
|
+
VolumeMode[VolumeMode["ARTIFACT"] = 4] = "ARTIFACT";
|
|
82
|
+
})(VolumeMode || (VolumeMode = {}));
|
|
83
|
+
/**
|
|
84
|
+
* Describes the enum toshi.workspace.v1.VolumeMode.
|
|
85
|
+
*/
|
|
86
|
+
export const VolumeModeSchema = /*@__PURE__*/ enumDesc(file_toshi_workspace_v1_volumes, 0);
|
|
87
|
+
/**
|
|
88
|
+
* VolumeService keeps a workspace's volumes: each belongs to one project,
|
|
89
|
+
* and a state volume attaches to one service or sandbox of that project at
|
|
90
|
+
* a time. A state volume is mounted by one VM at a time, whichever run of
|
|
91
|
+
* its workload holds it.
|
|
92
|
+
*
|
|
93
|
+
* The caller's credential names the workspace, as for WorkloadService.
|
|
94
|
+
* Every request names a project; an empty one is the default project. A
|
|
95
|
+
* project the workspace does not have is NOT_FOUND, and so is a volume of
|
|
96
|
+
* another project or workspace and a workload of another workspace. With a
|
|
97
|
+
* token limited to one project, any other project is PERMISSION_DENIED,
|
|
98
|
+
* whether the workspace has it or not, and a workload of another project
|
|
99
|
+
* is NOT_FOUND.
|
|
100
|
+
*
|
|
101
|
+
* The calls take no request_key: attaching a volume to the workload it is
|
|
102
|
+
* attached to, while no run holds it, and detaching a detached volume
|
|
103
|
+
* return it as it is.
|
|
104
|
+
*
|
|
105
|
+
* @generated from service toshi.workspace.v1.VolumeService
|
|
106
|
+
*/
|
|
107
|
+
export const VolumeService = /*@__PURE__*/ serviceDesc(file_toshi_workspace_v1_volumes, 0);
|