@toshicloud/sdk 0.0.0-stage → 0.2.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.
Files changed (39) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +201 -2
  3. package/dist/client.d.ts +78 -0
  4. package/dist/client.js +42 -0
  5. package/dist/errors.d.ts +20 -0
  6. package/dist/errors.js +55 -0
  7. package/dist/execute.d.ts +6 -0
  8. package/dist/execute.js +380 -0
  9. package/dist/gen/toshi/workspace/v1/artifacts_pb.d.ts +841 -0
  10. package/dist/gen/toshi/workspace/v1/artifacts_pb.js +96 -0
  11. package/dist/gen/toshi/workspace/v1/display_pb.d.ts +1142 -0
  12. package/dist/gen/toshi/workspace/v1/display_pb.js +214 -0
  13. package/dist/gen/toshi/workspace/v1/projects_pb.d.ts +1386 -0
  14. package/dist/gen/toshi/workspace/v1/projects_pb.js +207 -0
  15. package/dist/gen/toshi/workspace/v1/recordings_pb.d.ts +948 -0
  16. package/dist/gen/toshi/workspace/v1/recordings_pb.js +201 -0
  17. package/dist/gen/toshi/workspace/v1/secrets_pb.d.ts +1062 -0
  18. package/dist/gen/toshi/workspace/v1/secrets_pb.js +182 -0
  19. package/dist/gen/toshi/workspace/v1/volumes_pb.d.ts +406 -0
  20. package/dist/gen/toshi/workspace/v1/volumes_pb.js +107 -0
  21. package/dist/gen/toshi/workspace/v1/webhook_pb.d.ts +974 -0
  22. package/dist/gen/toshi/workspace/v1/webhook_pb.js +153 -0
  23. package/dist/gen/toshi/workspace/v1/workspace_pb.d.ts +6133 -0
  24. package/dist/gen/toshi/workspace/v1/workspace_pb.js +892 -0
  25. package/dist/index.d.ts +10 -0
  26. package/dist/index.js +9 -0
  27. package/dist/interceptors.d.ts +10 -0
  28. package/dist/interceptors.js +159 -0
  29. package/dist/output.d.ts +6 -0
  30. package/dist/output.js +77 -0
  31. package/dist/retry.d.ts +42 -0
  32. package/dist/retry.js +213 -0
  33. package/dist/stream.d.ts +21 -0
  34. package/dist/stream.js +84 -0
  35. package/dist/wait.d.ts +8 -0
  36. package/dist/wait.js +29 -0
  37. package/dist/watch.d.ts +8 -0
  38. package/dist/watch.js +224 -0
  39. package/package.json +47 -4
@@ -0,0 +1,214 @@
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/display.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_duration, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
6
+ /**
7
+ * Describes the file toshi/workspace/v1/display.proto.
8
+ */
9
+ export const file_toshi_workspace_v1_display = /*@__PURE__*/ fileDesc("CiB0b3NoaS93b3Jrc3BhY2UvdjEvZGlzcGxheS5wcm90bxISdG9zaGkud29ya3NwYWNlLnYxIqAECg5EaXNwbGF5U2Vzc2lvbhIKCgJpZBgBIAEoCRIOCgZqb2JfaWQYAiABKAkSLQoEbW9kZRgDIAEoDjIfLnRvc2hpLndvcmtzcGFjZS52MS5EaXNwbGF5TW9kZRIWCg5hbGxvd190YWtlb3ZlchgEIAEoCBItCgppZGxlX2Nsb3NlGAUgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uEjYKBXN0YXRlGAYgASgOMicudG9zaGkud29ya3NwYWNlLnYxLkRpc3BsYXlTZXNzaW9uU3RhdGUSNAoJb3BlbmVkX2J5GAcgASgOMiEudG9zaGkud29ya3NwYWNlLnYxLkRpc3BsYXlPcGVuZXISLQoJb3BlbmVkX2F0GAggASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBItCglhdHRhY2hfYnkYCSABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi8KC2F0dGFjaGVkX2F0GAogASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBItCgljbG9zZ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pc3BsYXlLZXlzEioudG9zaGkud29ya3NwYWNlLnYxLlNlbmREaXNwbGF5S2V5c1JlcXVlc3QaKy50b3NoaS53b3Jrc3BhY2UudjEuU2VuZERpc3BsYXlLZXlzUmVzcG9uc2UScwoSU2VuZERpc3BsYXlQb2ludGVyEi0udG9zaGkud29ya3NwYWNlLnYxLlNlbmREaXNwbGF5UG9pbnRlclJlcXVlc3QaLi50b3NoaS53b3Jrc3BhY2UudjEuU2VuZERpc3BsYXlQb2ludGVyUmVzcG9uc2USdgoTU2V0RGlzcGxheUNsaXBib2FyZBIuLnRvc2hpLndvcmtzcGFjZS52MS5TZXREaXNwbGF5Q2xpcGJvYXJkUmVxdWVzdBovLnRvc2hpLndvcmtzcGFjZS52MS5TZXREaXNwbGF5Q2xpcGJvYXJkUmVzcG9uc2USfAoVVGFrZURpc3BsYXlTY3JlZW5zaG90EjAudG9zaGkud29ya3NwYWNlLnYxLlRha2VEaXNwbGF5U2NyZWVuc2hvdFJlcXVlc3QaMS50b3NoaS53b3Jrc3BhY2UudjEuVGFrZURpc3BsYXlTY3JlZW5zaG90UmVzcG9uc2VCLVorZ2l0aHViLmNvbS90b3NoaWNsb3VkL3Rvc2hpLWFwaS93b3Jrc3BhY2V2MWIGcHJvdG8z", [file_google_protobuf_duration, file_google_protobuf_timestamp]);
10
+ /**
11
+ * Describes the message toshi.workspace.v1.DisplaySession.
12
+ * Use `create(DisplaySessionSchema)` to create a new message.
13
+ */
14
+ export const DisplaySessionSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_display, 0);
15
+ /**
16
+ * Describes the message toshi.workspace.v1.OpenDisplaySessionRequest.
17
+ * Use `create(OpenDisplaySessionRequestSchema)` to create a new message.
18
+ */
19
+ export const OpenDisplaySessionRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_display, 1);
20
+ /**
21
+ * Describes the message toshi.workspace.v1.OpenDisplaySessionResponse.
22
+ * Use `create(OpenDisplaySessionResponseSchema)` to create a new message.
23
+ */
24
+ export const OpenDisplaySessionResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_display, 2);
25
+ /**
26
+ * Describes the message toshi.workspace.v1.GetDisplaySessionRequest.
27
+ * Use `create(GetDisplaySessionRequestSchema)` to create a new message.
28
+ */
29
+ export const GetDisplaySessionRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_display, 3);
30
+ /**
31
+ * Describes the message toshi.workspace.v1.GetDisplaySessionResponse.
32
+ * Use `create(GetDisplaySessionResponseSchema)` to create a new message.
33
+ */
34
+ export const GetDisplaySessionResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_display, 4);
35
+ /**
36
+ * Describes the message toshi.workspace.v1.ListDisplaySessionsRequest.
37
+ * Use `create(ListDisplaySessionsRequestSchema)` to create a new message.
38
+ */
39
+ export const ListDisplaySessionsRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_display, 5);
40
+ /**
41
+ * Describes the message toshi.workspace.v1.ListDisplaySessionsResponse.
42
+ * Use `create(ListDisplaySessionsResponseSchema)` to create a new message.
43
+ */
44
+ export const ListDisplaySessionsResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_display, 6);
45
+ /**
46
+ * Describes the message toshi.workspace.v1.CloseDisplaySessionRequest.
47
+ * Use `create(CloseDisplaySessionRequestSchema)` to create a new message.
48
+ */
49
+ export const CloseDisplaySessionRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_display, 7);
50
+ /**
51
+ * Describes the message toshi.workspace.v1.CloseDisplaySessionResponse.
52
+ * Use `create(CloseDisplaySessionResponseSchema)` to create a new message.
53
+ */
54
+ export const CloseDisplaySessionResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_display, 8);
55
+ /**
56
+ * Describes the message toshi.workspace.v1.SendDisplayKeysRequest.
57
+ * Use `create(SendDisplayKeysRequestSchema)` to create a new message.
58
+ */
59
+ export const SendDisplayKeysRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_display, 9);
60
+ /**
61
+ * Describes the message toshi.workspace.v1.DisplayKeys.
62
+ * Use `create(DisplayKeysSchema)` to create a new message.
63
+ */
64
+ export const DisplayKeysSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_display, 10);
65
+ /**
66
+ * Describes the message toshi.workspace.v1.SendDisplayKeysResponse.
67
+ * Use `create(SendDisplayKeysResponseSchema)` to create a new message.
68
+ */
69
+ export const SendDisplayKeysResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_display, 11);
70
+ /**
71
+ * Describes the message toshi.workspace.v1.SendDisplayPointerRequest.
72
+ * Use `create(SendDisplayPointerRequestSchema)` to create a new message.
73
+ */
74
+ export const SendDisplayPointerRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_display, 12);
75
+ /**
76
+ * Describes the message toshi.workspace.v1.DisplayPointerEvent.
77
+ * Use `create(DisplayPointerEventSchema)` to create a new message.
78
+ */
79
+ export const DisplayPointerEventSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_display, 13);
80
+ /**
81
+ * Describes the message toshi.workspace.v1.SendDisplayPointerResponse.
82
+ * Use `create(SendDisplayPointerResponseSchema)` to create a new message.
83
+ */
84
+ export const SendDisplayPointerResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_display, 14);
85
+ /**
86
+ * Describes the message toshi.workspace.v1.SetDisplayClipboardRequest.
87
+ * Use `create(SetDisplayClipboardRequestSchema)` to create a new message.
88
+ */
89
+ export const SetDisplayClipboardRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_display, 15);
90
+ /**
91
+ * Describes the message toshi.workspace.v1.SetDisplayClipboardResponse.
92
+ * Use `create(SetDisplayClipboardResponseSchema)` to create a new message.
93
+ */
94
+ export const SetDisplayClipboardResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_display, 16);
95
+ /**
96
+ * Describes the message toshi.workspace.v1.TakeDisplayScreenshotRequest.
97
+ * Use `create(TakeDisplayScreenshotRequestSchema)` to create a new message.
98
+ */
99
+ export const TakeDisplayScreenshotRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_display, 17);
100
+ /**
101
+ * Describes the message toshi.workspace.v1.TakeDisplayScreenshotResponse.
102
+ * Use `create(TakeDisplayScreenshotResponseSchema)` to create a new message.
103
+ */
104
+ export const TakeDisplayScreenshotResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_display, 18);
105
+ /**
106
+ * DisplayMode is what a session's viewer may do.
107
+ *
108
+ * @generated from enum toshi.workspace.v1.DisplayMode
109
+ */
110
+ export var DisplayMode;
111
+ (function (DisplayMode) {
112
+ /**
113
+ * View only.
114
+ *
115
+ * @generated from enum value: DISPLAY_MODE_UNSPECIFIED = 0;
116
+ */
117
+ DisplayMode[DisplayMode["UNSPECIFIED"] = 0] = "UNSPECIFIED";
118
+ /**
119
+ * The viewer sees the screen; the relay drops its keys, pointer and
120
+ * clipboard.
121
+ *
122
+ * @generated from enum value: DISPLAY_MODE_VIEW_ONLY = 1;
123
+ */
124
+ DisplayMode[DisplayMode["VIEW_ONLY"] = 1] = "VIEW_ONLY";
125
+ /**
126
+ * The viewer sees the screen and sends keys, pointer and clipboard. One
127
+ * open session of a job has input at a time.
128
+ *
129
+ * @generated from enum value: DISPLAY_MODE_WITH_INPUT = 2;
130
+ */
131
+ DisplayMode[DisplayMode["WITH_INPUT"] = 2] = "WITH_INPUT";
132
+ })(DisplayMode || (DisplayMode = {}));
133
+ /**
134
+ * Describes the enum toshi.workspace.v1.DisplayMode.
135
+ */
136
+ export const DisplayModeSchema = /*@__PURE__*/ enumDesc(file_toshi_workspace_v1_display, 0);
137
+ /**
138
+ * @generated from enum toshi.workspace.v1.DisplaySessionState
139
+ */
140
+ export var DisplaySessionState;
141
+ (function (DisplaySessionState) {
142
+ /**
143
+ * @generated from enum value: DISPLAY_SESSION_STATE_UNSPECIFIED = 0;
144
+ */
145
+ DisplaySessionState[DisplaySessionState["UNSPECIFIED"] = 0] = "UNSPECIFIED";
146
+ /**
147
+ * Opened; its viewer has not presented the token yet.
148
+ *
149
+ * @generated from enum value: DISPLAY_SESSION_STATE_WAITING = 1;
150
+ */
151
+ DisplaySessionState[DisplaySessionState["WAITING"] = 1] = "WAITING";
152
+ /**
153
+ * Its viewer is attached.
154
+ *
155
+ * @generated from enum value: DISPLAY_SESSION_STATE_ATTACHED = 2;
156
+ */
157
+ DisplaySessionState[DisplaySessionState["ATTACHED"] = 2] = "ATTACHED";
158
+ /**
159
+ * @generated from enum value: DISPLAY_SESSION_STATE_CLOSED = 3;
160
+ */
161
+ DisplaySessionState[DisplaySessionState["CLOSED"] = 3] = "CLOSED";
162
+ })(DisplaySessionState || (DisplaySessionState = {}));
163
+ /**
164
+ * Describes the enum toshi.workspace.v1.DisplaySessionState.
165
+ */
166
+ export const DisplaySessionStateSchema = /*@__PURE__*/ enumDesc(file_toshi_workspace_v1_display, 1);
167
+ /**
168
+ * DisplayOpener is how a session was opened.
169
+ *
170
+ * @generated from enum toshi.workspace.v1.DisplayOpener
171
+ */
172
+ export var DisplayOpener;
173
+ (function (DisplayOpener) {
174
+ /**
175
+ * @generated from enum value: DISPLAY_OPENER_UNSPECIFIED = 0;
176
+ */
177
+ DisplayOpener[DisplayOpener["UNSPECIFIED"] = 0] = "UNSPECIFIED";
178
+ /**
179
+ * A person, signed in to the dashboard.
180
+ *
181
+ * @generated from enum value: DISPLAY_OPENER_PERSON = 1;
182
+ */
183
+ DisplayOpener[DisplayOpener["PERSON"] = 1] = "PERSON";
184
+ /**
185
+ * A program, with an API token.
186
+ *
187
+ * @generated from enum value: DISPLAY_OPENER_PROGRAM = 2;
188
+ */
189
+ DisplayOpener[DisplayOpener["PROGRAM"] = 2] = "PROGRAM";
190
+ })(DisplayOpener || (DisplayOpener = {}));
191
+ /**
192
+ * Describes the enum toshi.workspace.v1.DisplayOpener.
193
+ */
194
+ export const DisplayOpenerSchema = /*@__PURE__*/ enumDesc(file_toshi_workspace_v1_display, 2);
195
+ /**
196
+ * DisplayService opens display sessions: one viewer's live view of the
197
+ * screen of a VM that runs one of the workspace's CI jobs. The caller's
198
+ * credential names the workspace, as for WorkspaceService; a session or a job
199
+ * of another workspace is NOT_FOUND.
200
+ *
201
+ * A session carries the screen as the RFB protocol (RFC 6143) over a
202
+ * WebSocket at the session's URL, the framing noVNC speaks. Its token,
203
+ * in the answer to OpenDisplaySession and in no other, attaches it once:
204
+ * the viewer presents it before the token expires, and a closed, attached
205
+ * or expired session refuses it.
206
+ *
207
+ * The plan sets how many sessions one job may have at once, attached or
208
+ * waiting for their viewer, and the longest idle close; a plan without
209
+ * displays refuses every open with FAILED_PRECONDITION. A suspended
210
+ * workspace opens none, and its open sessions close.
211
+ *
212
+ * @generated from service toshi.workspace.v1.DisplayService
213
+ */
214
+ export const DisplayService = /*@__PURE__*/ serviceDesc(file_toshi_workspace_v1_display, 0);