@gjermundgaraba/clankerbox-sdk 0.3.0 → 0.4.1
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/README.md +11 -8
- package/dist/gen/clankerbox/v1/session_pb.d.ts +144 -28
- package/dist/gen/clankerbox/v1/session_pb.js +47 -19
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# @gjermundgaraba/clankerbox-sdk
|
|
2
2
|
|
|
3
3
|
Generated Protobuf messages, TypeScript types and Connect RPC service descriptors
|
|
4
|
-
for
|
|
5
|
-
consumers do not need protoc, a Go toolchain, or a
|
|
4
|
+
for clankerbox. This ESM package includes compiled JavaScript and declarations;
|
|
5
|
+
consumers do not need protoc, a Go toolchain, or a clankerbox source checkout.
|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
8
|
npm install @gjermundgaraba/clankerbox-sdk @connectrpc/connect @connectrpc/connect-node
|
|
@@ -21,10 +21,12 @@ the bidirectional attachment stream. `@bufbuild/protobuf` is included as a
|
|
|
21
21
|
runtime dependency. All descriptors are exported at the root and through
|
|
22
22
|
`/resources`, `/machine`, `/session` and `/host` subpaths.
|
|
23
23
|
|
|
24
|
-
SDK **0.
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
SDK **0.4.1** targets clankerbox **0.9.0** and its attachment-owned session
|
|
25
|
+
contract: sessions are created by `Open.create` inside `AttachSession`, and each
|
|
26
|
+
`Input` is sent at the `input_offset` the guest last acknowledged. Use this pair
|
|
27
|
+
together; SDK and controller version numbers are independent. The wire contract
|
|
28
|
+
is unchanged from SDK 0.4.0 and clankerbox 0.8.0. Older installations and guest
|
|
29
|
+
images are not migrated.
|
|
28
30
|
|
|
29
31
|
## RPC contract
|
|
30
32
|
|
|
@@ -50,8 +52,9 @@ private endpoints, engine store paths and credentials. `internal/rpcmodel`
|
|
|
50
52
|
converts between these messages and the services' persisted records.
|
|
51
53
|
|
|
52
54
|
Errors combine a Connect status code with a typed `ErrorDetail` reason.
|
|
53
|
-
`retryable` describes the operation, not terminal input:
|
|
54
|
-
|
|
55
|
+
`retryable` describes the operation, not terminal input: input is addressed by
|
|
56
|
+
offset, so repeating it on the same attachment is safe and carrying it to another
|
|
57
|
+
is not. The streaming semantics of
|
|
55
58
|
`AttachSession` are specified in
|
|
56
59
|
[terminal sessions](https://github.com/gjermundgaraba/clankerbox/blob/main/docs/terminal-sessions.md).
|
|
57
60
|
|
|
@@ -141,6 +141,16 @@ export type Session = Message<"clankerbox.v1.Session"> & {
|
|
|
141
141
|
* @generated from field: uint64 reply_overflow = 17;
|
|
142
142
|
*/
|
|
143
143
|
replyOverflow: bigint;
|
|
144
|
+
/**
|
|
145
|
+
* Pipe session: no PTY or terminal; cols and rows are zero.
|
|
146
|
+
*
|
|
147
|
+
* @generated from field: bool pipes = 18;
|
|
148
|
+
*/
|
|
149
|
+
pipes: boolean;
|
|
150
|
+
/**
|
|
151
|
+
* @generated from field: bool end_on_detach = 19;
|
|
152
|
+
*/
|
|
153
|
+
endOnDetach: boolean;
|
|
144
154
|
};
|
|
145
155
|
/**
|
|
146
156
|
* Describes the message clankerbox.v1.Session.
|
|
@@ -148,55 +158,63 @@ export type Session = Message<"clankerbox.v1.Session"> & {
|
|
|
148
158
|
*/
|
|
149
159
|
export declare const SessionSchema: GenMessage<Session>;
|
|
150
160
|
/**
|
|
151
|
-
*
|
|
161
|
+
* A session is created by the attachment that opens it; see Open.create.
|
|
162
|
+
*
|
|
163
|
+
* @generated from message clankerbox.v1.NewSession
|
|
152
164
|
*/
|
|
153
|
-
export type
|
|
154
|
-
/**
|
|
155
|
-
* @generated from field: string machine_id = 1;
|
|
156
|
-
*/
|
|
157
|
-
machineId: string;
|
|
165
|
+
export type NewSession = Message<"clankerbox.v1.NewSession"> & {
|
|
158
166
|
/**
|
|
159
|
-
* @generated from field: string
|
|
160
|
-
*/
|
|
161
|
-
sessionId: string;
|
|
162
|
-
/**
|
|
163
|
-
* @generated from field: string label = 3;
|
|
167
|
+
* @generated from field: string label = 1;
|
|
164
168
|
*/
|
|
165
169
|
label: string;
|
|
166
170
|
/**
|
|
167
|
-
* @generated from field: string cwd =
|
|
171
|
+
* @generated from field: string cwd = 2;
|
|
168
172
|
*/
|
|
169
173
|
cwd: string;
|
|
170
174
|
/**
|
|
171
|
-
* @generated from field: repeated string argv =
|
|
175
|
+
* @generated from field: repeated string argv = 3;
|
|
172
176
|
*/
|
|
173
177
|
argv: string[];
|
|
174
178
|
/**
|
|
175
|
-
* @generated from field: map<string, string> env =
|
|
179
|
+
* @generated from field: map<string, string> env = 4;
|
|
176
180
|
*/
|
|
177
181
|
env: {
|
|
178
182
|
[key: string]: string;
|
|
179
183
|
};
|
|
180
184
|
/**
|
|
181
|
-
* @generated from field: uint32 cols =
|
|
185
|
+
* @generated from field: uint32 cols = 5;
|
|
182
186
|
*/
|
|
183
187
|
cols: number;
|
|
184
188
|
/**
|
|
185
|
-
* @generated from field: uint32 rows =
|
|
189
|
+
* @generated from field: uint32 rows = 6;
|
|
186
190
|
*/
|
|
187
191
|
rows: number;
|
|
188
192
|
/**
|
|
189
193
|
* Caller decision time for creation deduplication/retry-horizon enforcement.
|
|
190
194
|
*
|
|
191
|
-
* @generated from field: string created_at =
|
|
195
|
+
* @generated from field: string created_at = 7;
|
|
192
196
|
*/
|
|
193
197
|
createdAt: string;
|
|
198
|
+
/**
|
|
199
|
+
* The guest ends the session when its last attachment closes, for any reason.
|
|
200
|
+
*
|
|
201
|
+
* @generated from field: bool end_on_detach = 8;
|
|
202
|
+
*/
|
|
203
|
+
endOnDetach: boolean;
|
|
204
|
+
/**
|
|
205
|
+
* No PTY or terminal: stdin, stdout and stderr are pipes and the grid must be
|
|
206
|
+
* zero. Implies end_on_detach and admits no other attachment, resume or
|
|
207
|
+
* snapshot.
|
|
208
|
+
*
|
|
209
|
+
* @generated from field: bool pipes = 9;
|
|
210
|
+
*/
|
|
211
|
+
pipes: boolean;
|
|
194
212
|
};
|
|
195
213
|
/**
|
|
196
|
-
* Describes the message clankerbox.v1.
|
|
197
|
-
* Use `create(
|
|
214
|
+
* Describes the message clankerbox.v1.NewSession.
|
|
215
|
+
* Use `create(NewSessionSchema)` to create a new message.
|
|
198
216
|
*/
|
|
199
|
-
export declare const
|
|
217
|
+
export declare const NewSessionSchema: GenMessage<NewSession>;
|
|
200
218
|
/**
|
|
201
219
|
* @generated from message clankerbox.v1.ListSessionsRequest
|
|
202
220
|
*/
|
|
@@ -261,6 +279,27 @@ export type ResumeCursor = Message<"clankerbox.v1.ResumeCursor"> & {
|
|
|
261
279
|
* Use `create(ResumeCursorSchema)` to create a new message.
|
|
262
280
|
*/
|
|
263
281
|
export declare const ResumeCursorSchema: GenMessage<ResumeCursor>;
|
|
282
|
+
/**
|
|
283
|
+
* Default colours of the terminal the attachment renders into, as 0xRRGGBB.
|
|
284
|
+
* The guest VT answers colour queries with them; it remains the only responder.
|
|
285
|
+
*
|
|
286
|
+
* @generated from message clankerbox.v1.TerminalProfile
|
|
287
|
+
*/
|
|
288
|
+
export type TerminalProfile = Message<"clankerbox.v1.TerminalProfile"> & {
|
|
289
|
+
/**
|
|
290
|
+
* @generated from field: optional uint32 foreground = 1;
|
|
291
|
+
*/
|
|
292
|
+
foreground?: number | undefined;
|
|
293
|
+
/**
|
|
294
|
+
* @generated from field: optional uint32 background = 2;
|
|
295
|
+
*/
|
|
296
|
+
background?: number | undefined;
|
|
297
|
+
};
|
|
298
|
+
/**
|
|
299
|
+
* Describes the message clankerbox.v1.TerminalProfile.
|
|
300
|
+
* Use `create(TerminalProfileSchema)` to create a new message.
|
|
301
|
+
*/
|
|
302
|
+
export declare const TerminalProfileSchema: GenMessage<TerminalProfile>;
|
|
264
303
|
/**
|
|
265
304
|
* @generated from message clankerbox.v1.Open
|
|
266
305
|
*/
|
|
@@ -274,6 +313,8 @@ export type Open = Message<"clankerbox.v1.Open"> & {
|
|
|
274
313
|
*/
|
|
275
314
|
sessionId: string;
|
|
276
315
|
/**
|
|
316
|
+
* Empty skips the check; a consumer that decodes snapshots supplies it.
|
|
317
|
+
*
|
|
277
318
|
* @generated from field: string expected_engine_digest = 3;
|
|
278
319
|
*/
|
|
279
320
|
expectedEngineDigest: string;
|
|
@@ -281,6 +322,28 @@ export type Open = Message<"clankerbox.v1.Open"> & {
|
|
|
281
322
|
* @generated from field: clankerbox.v1.ResumeCursor resume_cursor = 4;
|
|
282
323
|
*/
|
|
283
324
|
resumeCursor?: ResumeCursor | undefined;
|
|
325
|
+
/**
|
|
326
|
+
* Creates the session: the subscriber is registered before the process
|
|
327
|
+
* starts, so output begins at offset zero and cannot be missed. A session
|
|
328
|
+
* that already exists with the same arguments is opened as it is, which makes
|
|
329
|
+
* a repeated Open after a lost reply safe.
|
|
330
|
+
*
|
|
331
|
+
* @generated from field: clankerbox.v1.NewSession create = 5;
|
|
332
|
+
*/
|
|
333
|
+
create?: NewSession | undefined;
|
|
334
|
+
/**
|
|
335
|
+
* Omit from this attachment's output exactly the escape sequences the guest
|
|
336
|
+
* VT answered, so a real terminal downstream does not answer them again.
|
|
337
|
+
* Offsets stay in unfiltered coordinates: data may be shorter than the
|
|
338
|
+
* advance of next_offset.
|
|
339
|
+
*
|
|
340
|
+
* @generated from field: bool omit_answered_queries = 6;
|
|
341
|
+
*/
|
|
342
|
+
omitAnsweredQueries: boolean;
|
|
343
|
+
/**
|
|
344
|
+
* @generated from field: clankerbox.v1.TerminalProfile terminal_profile = 7;
|
|
345
|
+
*/
|
|
346
|
+
terminalProfile?: TerminalProfile | undefined;
|
|
284
347
|
};
|
|
285
348
|
/**
|
|
286
349
|
* Describes the message clankerbox.v1.Open.
|
|
@@ -288,6 +351,12 @@ export type Open = Message<"clankerbox.v1.Open"> & {
|
|
|
288
351
|
*/
|
|
289
352
|
export declare const OpenSchema: GenMessage<Open>;
|
|
290
353
|
/**
|
|
354
|
+
* offset is how many input bytes the guest has accepted from this attachment.
|
|
355
|
+
* An Input at any other offset is refused, so input sent ahead of
|
|
356
|
+
* acknowledgements can never be reordered or applied twice: after a refusal,
|
|
357
|
+
* everything behind it is refused too, and the consumer continues from
|
|
358
|
+
* Ack.input_offset.
|
|
359
|
+
*
|
|
291
360
|
* @generated from message clankerbox.v1.Input
|
|
292
361
|
*/
|
|
293
362
|
export type Input = Message<"clankerbox.v1.Input"> & {
|
|
@@ -299,6 +368,10 @@ export type Input = Message<"clankerbox.v1.Input"> & {
|
|
|
299
368
|
* @generated from field: bytes data = 2;
|
|
300
369
|
*/
|
|
301
370
|
data: Uint8Array;
|
|
371
|
+
/**
|
|
372
|
+
* @generated from field: uint64 offset = 3;
|
|
373
|
+
*/
|
|
374
|
+
offset: bigint;
|
|
302
375
|
};
|
|
303
376
|
/**
|
|
304
377
|
* Describes the message clankerbox.v1.Input.
|
|
@@ -327,6 +400,22 @@ export type Resize = Message<"clankerbox.v1.Resize"> & {
|
|
|
327
400
|
* Use `create(ResizeSchema)` to create a new message.
|
|
328
401
|
*/
|
|
329
402
|
export declare const ResizeSchema: GenMessage<Resize>;
|
|
403
|
+
/**
|
|
404
|
+
* End of input for a pipe session. Refused for a PTY session.
|
|
405
|
+
*
|
|
406
|
+
* @generated from message clankerbox.v1.CloseInput
|
|
407
|
+
*/
|
|
408
|
+
export type CloseInput = Message<"clankerbox.v1.CloseInput"> & {
|
|
409
|
+
/**
|
|
410
|
+
* @generated from field: uint64 sequence = 1;
|
|
411
|
+
*/
|
|
412
|
+
sequence: bigint;
|
|
413
|
+
};
|
|
414
|
+
/**
|
|
415
|
+
* Describes the message clankerbox.v1.CloseInput.
|
|
416
|
+
* Use `create(CloseInputSchema)` to create a new message.
|
|
417
|
+
*/
|
|
418
|
+
export declare const CloseInputSchema: GenMessage<CloseInput>;
|
|
330
419
|
/**
|
|
331
420
|
* @generated from message clankerbox.v1.AttachmentRequest
|
|
332
421
|
*/
|
|
@@ -354,6 +443,12 @@ export type AttachmentRequest = Message<"clankerbox.v1.AttachmentRequest"> & {
|
|
|
354
443
|
*/
|
|
355
444
|
value: Resize;
|
|
356
445
|
case: "resize";
|
|
446
|
+
} | {
|
|
447
|
+
/**
|
|
448
|
+
* @generated from field: clankerbox.v1.CloseInput close_input = 4;
|
|
449
|
+
*/
|
|
450
|
+
value: CloseInput;
|
|
451
|
+
case: "closeInput";
|
|
357
452
|
} | {
|
|
358
453
|
case: undefined;
|
|
359
454
|
value?: undefined;
|
|
@@ -489,6 +584,8 @@ export type ViewChunk = Message<"clankerbox.v1.ViewChunk"> & {
|
|
|
489
584
|
*/
|
|
490
585
|
export declare const ViewChunkSchema: GenMessage<ViewChunk>;
|
|
491
586
|
/**
|
|
587
|
+
* stream is set only by pipe sessions; PTY output and stdout leave it unspecified.
|
|
588
|
+
*
|
|
492
589
|
* @generated from message clankerbox.v1.Output
|
|
493
590
|
*/
|
|
494
591
|
export type Output = Message<"clankerbox.v1.Output"> & {
|
|
@@ -500,6 +597,10 @@ export type Output = Message<"clankerbox.v1.Output"> & {
|
|
|
500
597
|
* @generated from field: bytes data = 2;
|
|
501
598
|
*/
|
|
502
599
|
data: Uint8Array;
|
|
600
|
+
/**
|
|
601
|
+
* @generated from field: clankerbox.v1.OutputStream stream = 3;
|
|
602
|
+
*/
|
|
603
|
+
stream: OutputStream;
|
|
503
604
|
};
|
|
504
605
|
/**
|
|
505
606
|
* Describes the message clankerbox.v1.Output.
|
|
@@ -550,6 +651,12 @@ export type Ack = Message<"clankerbox.v1.Ack"> & {
|
|
|
550
651
|
* @generated from field: clankerbox.v1.ErrorDetail error = 4;
|
|
551
652
|
*/
|
|
552
653
|
error?: ErrorDetail | undefined;
|
|
654
|
+
/**
|
|
655
|
+
* Input bytes accepted from this attachment, after this control.
|
|
656
|
+
*
|
|
657
|
+
* @generated from field: uint64 input_offset = 5;
|
|
658
|
+
*/
|
|
659
|
+
inputOffset: bigint;
|
|
553
660
|
};
|
|
554
661
|
/**
|
|
555
662
|
* Describes the message clankerbox.v1.Ack.
|
|
@@ -710,6 +817,23 @@ export declare enum OpenMode {
|
|
|
710
817
|
* Describes the enum clankerbox.v1.OpenMode.
|
|
711
818
|
*/
|
|
712
819
|
export declare const OpenModeSchema: GenEnum<OpenMode>;
|
|
820
|
+
/**
|
|
821
|
+
* @generated from enum clankerbox.v1.OutputStream
|
|
822
|
+
*/
|
|
823
|
+
export declare enum OutputStream {
|
|
824
|
+
/**
|
|
825
|
+
* @generated from enum value: OUTPUT_STREAM_UNSPECIFIED = 0;
|
|
826
|
+
*/
|
|
827
|
+
UNSPECIFIED = 0,
|
|
828
|
+
/**
|
|
829
|
+
* @generated from enum value: OUTPUT_STREAM_STDERR = 1;
|
|
830
|
+
*/
|
|
831
|
+
STDERR = 1
|
|
832
|
+
}
|
|
833
|
+
/**
|
|
834
|
+
* Describes the enum clankerbox.v1.OutputStream.
|
|
835
|
+
*/
|
|
836
|
+
export declare const OutputStreamSchema: GenEnum<OutputStream>;
|
|
713
837
|
/**
|
|
714
838
|
* Public controller routing. Applications receive neither guest credentials nor
|
|
715
839
|
* arbitrary endpoint routing. All session methods address an immutable machine ID.
|
|
@@ -725,14 +849,6 @@ export declare const SessionService: GenService<{
|
|
|
725
849
|
input: typeof DescribeGuestRequestSchema;
|
|
726
850
|
output: typeof GuestDescriptionSchema;
|
|
727
851
|
};
|
|
728
|
-
/**
|
|
729
|
-
* @generated from rpc clankerbox.v1.SessionService.CreateSession
|
|
730
|
-
*/
|
|
731
|
-
createSession: {
|
|
732
|
-
methodKind: "unary";
|
|
733
|
-
input: typeof CreateSessionRequestSchema;
|
|
734
|
-
output: typeof SessionSchema;
|
|
735
|
-
};
|
|
736
852
|
/**
|
|
737
853
|
* @generated from rpc clankerbox.v1.SessionService.ListSessions
|
|
738
854
|
*/
|
|
@@ -6,7 +6,7 @@ import { file_clankerbox_v1_resources } from "./resources_pb.js";
|
|
|
6
6
|
/**
|
|
7
7
|
* Describes the file clankerbox/v1/session.proto.
|
|
8
8
|
*/
|
|
9
|
-
export const file_clankerbox_v1_session = /*@__PURE__*/ f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BVFVTX0VYSVRFRBADEhcKE1NFU1NJT05fU1RBVFVTX0xPU1QQBCqDAQoIT3Blbk1vZGUSGQoVT1BFTl9NT0RFX1VOU1BFQ0lGSUVEEAASFAoQT1BFTl9NT0RFX1JFU1VNRRABEhYKEk9QRU5fTU9ERV9TTkFQU0hPVBACEhkKFU9QRU5fTU9ERV9VTkFWQUlMQUJMRRADEhMKD09QRU5fTU9ERV9FTkRFRBAEKkcKDE91dHB1dFN0cmVhbRIdChlPVVRQVVRfU1RSRUFNX1VOU1BFQ0lGSUVEEAASGAoUT1VUUFVUX1NUUkVBTV9TVERFUlIQATLfAgoOU2Vzc2lvblNlcnZpY2USVQoNRGVzY3JpYmVHdWVzdBIjLmNsYW5rZXJib3gudjEuRGVzY3JpYmVHdWVzdFJlcXVlc3QaHy5jbGFua2VyYm94LnYxLkd1ZXN0RGVzY3JpcHRpb24SVwoMTGlzdFNlc3Npb25zEiIuY2xhbmtlcmJveC52MS5MaXN0U2Vzc2lvbnNSZXF1ZXN0GiMuY2xhbmtlcmJveC52MS5MaXN0U2Vzc2lvbnNSZXNwb25zZRJGCgpFbmRTZXNzaW9uEiAuY2xhbmtlcmJveC52MS5FbmRTZXNzaW9uUmVxdWVzdBoWLmNsYW5rZXJib3gudjEuU2Vzc2lvbhJVCg1BdHRhY2hTZXNzaW9uEiAuY2xhbmtlcmJveC52MS5BdHRhY2htZW50UmVxdWVzdBoeLmNsYW5rZXJib3gudjEuQXR0YWNobWVudEV2ZW50KAEwAUIrWiljbGFua2VyYm94L2dlbi9jbGFua2VyYm94L3YxO2NsYW5rZXJib3h2MWIGcHJvdG8z", [file_clankerbox_v1_resources]);
|
|
10
10
|
/**
|
|
11
11
|
* Describes the message clankerbox.v1.DescribeGuestRequest.
|
|
12
12
|
* Use `create(DescribeGuestRequestSchema)` to create a new message.
|
|
@@ -23,10 +23,10 @@ export const GuestDescriptionSchema = /*@__PURE__*/ messageDesc(file_clankerbox_
|
|
|
23
23
|
*/
|
|
24
24
|
export const SessionSchema = /*@__PURE__*/ messageDesc(file_clankerbox_v1_session, 2);
|
|
25
25
|
/**
|
|
26
|
-
* Describes the message clankerbox.v1.
|
|
27
|
-
* Use `create(
|
|
26
|
+
* Describes the message clankerbox.v1.NewSession.
|
|
27
|
+
* Use `create(NewSessionSchema)` to create a new message.
|
|
28
28
|
*/
|
|
29
|
-
export const
|
|
29
|
+
export const NewSessionSchema = /*@__PURE__*/ messageDesc(file_clankerbox_v1_session, 3);
|
|
30
30
|
/**
|
|
31
31
|
* Describes the message clankerbox.v1.ListSessionsRequest.
|
|
32
32
|
* Use `create(ListSessionsRequestSchema)` to create a new message.
|
|
@@ -47,81 +47,91 @@ export const EndSessionRequestSchema = /*@__PURE__*/ messageDesc(file_clankerbox
|
|
|
47
47
|
* Use `create(ResumeCursorSchema)` to create a new message.
|
|
48
48
|
*/
|
|
49
49
|
export const ResumeCursorSchema = /*@__PURE__*/ messageDesc(file_clankerbox_v1_session, 7);
|
|
50
|
+
/**
|
|
51
|
+
* Describes the message clankerbox.v1.TerminalProfile.
|
|
52
|
+
* Use `create(TerminalProfileSchema)` to create a new message.
|
|
53
|
+
*/
|
|
54
|
+
export const TerminalProfileSchema = /*@__PURE__*/ messageDesc(file_clankerbox_v1_session, 8);
|
|
50
55
|
/**
|
|
51
56
|
* Describes the message clankerbox.v1.Open.
|
|
52
57
|
* Use `create(OpenSchema)` to create a new message.
|
|
53
58
|
*/
|
|
54
|
-
export const OpenSchema = /*@__PURE__*/ messageDesc(file_clankerbox_v1_session,
|
|
59
|
+
export const OpenSchema = /*@__PURE__*/ messageDesc(file_clankerbox_v1_session, 9);
|
|
55
60
|
/**
|
|
56
61
|
* Describes the message clankerbox.v1.Input.
|
|
57
62
|
* Use `create(InputSchema)` to create a new message.
|
|
58
63
|
*/
|
|
59
|
-
export const InputSchema = /*@__PURE__*/ messageDesc(file_clankerbox_v1_session,
|
|
64
|
+
export const InputSchema = /*@__PURE__*/ messageDesc(file_clankerbox_v1_session, 10);
|
|
60
65
|
/**
|
|
61
66
|
* Describes the message clankerbox.v1.Resize.
|
|
62
67
|
* Use `create(ResizeSchema)` to create a new message.
|
|
63
68
|
*/
|
|
64
|
-
export const ResizeSchema = /*@__PURE__*/ messageDesc(file_clankerbox_v1_session,
|
|
69
|
+
export const ResizeSchema = /*@__PURE__*/ messageDesc(file_clankerbox_v1_session, 11);
|
|
70
|
+
/**
|
|
71
|
+
* Describes the message clankerbox.v1.CloseInput.
|
|
72
|
+
* Use `create(CloseInputSchema)` to create a new message.
|
|
73
|
+
*/
|
|
74
|
+
export const CloseInputSchema = /*@__PURE__*/ messageDesc(file_clankerbox_v1_session, 12);
|
|
65
75
|
/**
|
|
66
76
|
* Describes the message clankerbox.v1.AttachmentRequest.
|
|
67
77
|
* Use `create(AttachmentRequestSchema)` to create a new message.
|
|
68
78
|
*/
|
|
69
|
-
export const AttachmentRequestSchema = /*@__PURE__*/ messageDesc(file_clankerbox_v1_session,
|
|
79
|
+
export const AttachmentRequestSchema = /*@__PURE__*/ messageDesc(file_clankerbox_v1_session, 13);
|
|
70
80
|
/**
|
|
71
81
|
* Describes the message clankerbox.v1.Cursor.
|
|
72
82
|
* Use `create(CursorSchema)` to create a new message.
|
|
73
83
|
*/
|
|
74
|
-
export const CursorSchema = /*@__PURE__*/ messageDesc(file_clankerbox_v1_session,
|
|
84
|
+
export const CursorSchema = /*@__PURE__*/ messageDesc(file_clankerbox_v1_session, 14);
|
|
75
85
|
/**
|
|
76
86
|
* Describes the message clankerbox.v1.View.
|
|
77
87
|
* Use `create(ViewSchema)` to create a new message.
|
|
78
88
|
*/
|
|
79
|
-
export const ViewSchema = /*@__PURE__*/ messageDesc(file_clankerbox_v1_session,
|
|
89
|
+
export const ViewSchema = /*@__PURE__*/ messageDesc(file_clankerbox_v1_session, 15);
|
|
80
90
|
/**
|
|
81
91
|
* Describes the message clankerbox.v1.Opened.
|
|
82
92
|
* Use `create(OpenedSchema)` to create a new message.
|
|
83
93
|
*/
|
|
84
|
-
export const OpenedSchema = /*@__PURE__*/ messageDesc(file_clankerbox_v1_session,
|
|
94
|
+
export const OpenedSchema = /*@__PURE__*/ messageDesc(file_clankerbox_v1_session, 16);
|
|
85
95
|
/**
|
|
86
96
|
* Describes the message clankerbox.v1.SnapshotChunk.
|
|
87
97
|
* Use `create(SnapshotChunkSchema)` to create a new message.
|
|
88
98
|
*/
|
|
89
|
-
export const SnapshotChunkSchema = /*@__PURE__*/ messageDesc(file_clankerbox_v1_session,
|
|
99
|
+
export const SnapshotChunkSchema = /*@__PURE__*/ messageDesc(file_clankerbox_v1_session, 17);
|
|
90
100
|
/**
|
|
91
101
|
* Describes the message clankerbox.v1.ViewChunk.
|
|
92
102
|
* Use `create(ViewChunkSchema)` to create a new message.
|
|
93
103
|
*/
|
|
94
|
-
export const ViewChunkSchema = /*@__PURE__*/ messageDesc(file_clankerbox_v1_session,
|
|
104
|
+
export const ViewChunkSchema = /*@__PURE__*/ messageDesc(file_clankerbox_v1_session, 18);
|
|
95
105
|
/**
|
|
96
106
|
* Describes the message clankerbox.v1.Output.
|
|
97
107
|
* Use `create(OutputSchema)` to create a new message.
|
|
98
108
|
*/
|
|
99
|
-
export const OutputSchema = /*@__PURE__*/ messageDesc(file_clankerbox_v1_session,
|
|
109
|
+
export const OutputSchema = /*@__PURE__*/ messageDesc(file_clankerbox_v1_session, 19);
|
|
100
110
|
/**
|
|
101
111
|
* Describes the message clankerbox.v1.Resized.
|
|
102
112
|
* Use `create(ResizedSchema)` to create a new message.
|
|
103
113
|
*/
|
|
104
|
-
export const ResizedSchema = /*@__PURE__*/ messageDesc(file_clankerbox_v1_session,
|
|
114
|
+
export const ResizedSchema = /*@__PURE__*/ messageDesc(file_clankerbox_v1_session, 20);
|
|
105
115
|
/**
|
|
106
116
|
* Describes the message clankerbox.v1.Ack.
|
|
107
117
|
* Use `create(AckSchema)` to create a new message.
|
|
108
118
|
*/
|
|
109
|
-
export const AckSchema = /*@__PURE__*/ messageDesc(file_clankerbox_v1_session,
|
|
119
|
+
export const AckSchema = /*@__PURE__*/ messageDesc(file_clankerbox_v1_session, 21);
|
|
110
120
|
/**
|
|
111
121
|
* Describes the message clankerbox.v1.SessionExited.
|
|
112
122
|
* Use `create(SessionExitedSchema)` to create a new message.
|
|
113
123
|
*/
|
|
114
|
-
export const SessionExitedSchema = /*@__PURE__*/ messageDesc(file_clankerbox_v1_session,
|
|
124
|
+
export const SessionExitedSchema = /*@__PURE__*/ messageDesc(file_clankerbox_v1_session, 22);
|
|
115
125
|
/**
|
|
116
126
|
* Describes the message clankerbox.v1.Gap.
|
|
117
127
|
* Use `create(GapSchema)` to create a new message.
|
|
118
128
|
*/
|
|
119
|
-
export const GapSchema = /*@__PURE__*/ messageDesc(file_clankerbox_v1_session,
|
|
129
|
+
export const GapSchema = /*@__PURE__*/ messageDesc(file_clankerbox_v1_session, 23);
|
|
120
130
|
/**
|
|
121
131
|
* Describes the message clankerbox.v1.AttachmentEvent.
|
|
122
132
|
* Use `create(AttachmentEventSchema)` to create a new message.
|
|
123
133
|
*/
|
|
124
|
-
export const AttachmentEventSchema = /*@__PURE__*/ messageDesc(file_clankerbox_v1_session,
|
|
134
|
+
export const AttachmentEventSchema = /*@__PURE__*/ messageDesc(file_clankerbox_v1_session, 24);
|
|
125
135
|
/**
|
|
126
136
|
* @generated from enum clankerbox.v1.SessionStatus
|
|
127
137
|
*/
|
|
@@ -182,6 +192,24 @@ export var OpenMode;
|
|
|
182
192
|
* Describes the enum clankerbox.v1.OpenMode.
|
|
183
193
|
*/
|
|
184
194
|
export const OpenModeSchema = /*@__PURE__*/ enumDesc(file_clankerbox_v1_session, 1);
|
|
195
|
+
/**
|
|
196
|
+
* @generated from enum clankerbox.v1.OutputStream
|
|
197
|
+
*/
|
|
198
|
+
export var OutputStream;
|
|
199
|
+
(function (OutputStream) {
|
|
200
|
+
/**
|
|
201
|
+
* @generated from enum value: OUTPUT_STREAM_UNSPECIFIED = 0;
|
|
202
|
+
*/
|
|
203
|
+
OutputStream[OutputStream["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
204
|
+
/**
|
|
205
|
+
* @generated from enum value: OUTPUT_STREAM_STDERR = 1;
|
|
206
|
+
*/
|
|
207
|
+
OutputStream[OutputStream["STDERR"] = 1] = "STDERR";
|
|
208
|
+
})(OutputStream || (OutputStream = {}));
|
|
209
|
+
/**
|
|
210
|
+
* Describes the enum clankerbox.v1.OutputStream.
|
|
211
|
+
*/
|
|
212
|
+
export const OutputStreamSchema = /*@__PURE__*/ enumDesc(file_clankerbox_v1_session, 2);
|
|
185
213
|
/**
|
|
186
214
|
* Public controller routing. Applications receive neither guest credentials nor
|
|
187
215
|
* arbitrary endpoint routing. All session methods address an immutable machine ID.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjermundgaraba/clankerbox-sdk",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Generated Protobuf messages and Connect RPC service descriptors for
|
|
3
|
+
"version": "0.4.1",
|
|
4
|
+
"description": "Generated Protobuf messages and Connect RPC service descriptors for clankerbox",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|