@treestructuredplanning/gateway 0.0.0-stage → 0.1.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.
@@ -0,0 +1,889 @@
1
+ {
2
+ "HubToGateway": {
3
+ "description": "The complete server-to-gateway frame; exported through OpenAPI.",
4
+ "discriminator": {
5
+ "mapping": {
6
+ "launch": "#/components/schemas/GatewayLaunchOffer",
7
+ "permit": "#/components/schemas/GatewayPermit",
8
+ "ping": "#/components/schemas/GatewayPing",
9
+ "resume": "#/components/schemas/GatewayResumeOffer",
10
+ "retire": "#/components/schemas/GatewayRetire",
11
+ "stop": "#/components/schemas/GatewayStopOffer"
12
+ },
13
+ "propertyName": "kind"
14
+ },
15
+ "oneOf": [
16
+ {
17
+ "$ref": "#/components/schemas/GatewayLaunchOffer"
18
+ },
19
+ {
20
+ "$ref": "#/components/schemas/GatewayStopOffer"
21
+ },
22
+ {
23
+ "$ref": "#/components/schemas/GatewayResumeOffer"
24
+ },
25
+ {
26
+ "$ref": "#/components/schemas/GatewayPing"
27
+ },
28
+ {
29
+ "$ref": "#/components/schemas/GatewayPermit"
30
+ },
31
+ {
32
+ "$ref": "#/components/schemas/GatewayRetire"
33
+ }
34
+ ],
35
+ "title": "HubToGateway"
36
+ },
37
+ "GatewayLaunchOffer": {
38
+ "additionalProperties": false,
39
+ "properties": {
40
+ "protocol_version": {
41
+ "const": 1,
42
+ "default": 1,
43
+ "title": "Protocol Version",
44
+ "type": "integer"
45
+ },
46
+ "ttl_ms": {
47
+ "minimum": 0,
48
+ "title": "Ttl Ms",
49
+ "type": "integer"
50
+ },
51
+ "kind": {
52
+ "const": "launch",
53
+ "default": "launch",
54
+ "title": "Kind",
55
+ "type": "string"
56
+ },
57
+ "command_id": {
58
+ "pattern": "^lc_[0-9a-f]{12}$",
59
+ "title": "Command Id",
60
+ "type": "string"
61
+ },
62
+ "action_id": {
63
+ "pattern": "^la_[0-9a-f]{12}$",
64
+ "title": "Action Id",
65
+ "type": "string"
66
+ },
67
+ "harness": {
68
+ "$ref": "#/components/schemas/HarnessKind"
69
+ },
70
+ "repository": {
71
+ "maxLength": 201,
72
+ "minLength": 3,
73
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*/[A-Za-z0-9][A-Za-z0-9_.-]*$",
74
+ "title": "Repository",
75
+ "type": "string"
76
+ },
77
+ "seed": {
78
+ "maxLength": 32000,
79
+ "minLength": 1,
80
+ "title": "Seed",
81
+ "type": "string"
82
+ },
83
+ "session_name": {
84
+ "pattern": "^tsp-[0-9a-f]{12}$",
85
+ "title": "Session Name",
86
+ "type": "string"
87
+ }
88
+ },
89
+ "required": [
90
+ "ttl_ms",
91
+ "command_id",
92
+ "action_id",
93
+ "harness",
94
+ "repository",
95
+ "seed",
96
+ "session_name"
97
+ ],
98
+ "title": "GatewayLaunchOffer",
99
+ "type": "object"
100
+ },
101
+ "HarnessKind": {
102
+ "type": "string",
103
+ "enum": [
104
+ "claude_code",
105
+ "codex"
106
+ ],
107
+ "title": "HarnessKind"
108
+ },
109
+ "GatewayStopOffer": {
110
+ "additionalProperties": false,
111
+ "properties": {
112
+ "protocol_version": {
113
+ "const": 1,
114
+ "default": 1,
115
+ "title": "Protocol Version",
116
+ "type": "integer"
117
+ },
118
+ "ttl_ms": {
119
+ "minimum": 0,
120
+ "title": "Ttl Ms",
121
+ "type": "integer"
122
+ },
123
+ "kind": {
124
+ "const": "stop",
125
+ "default": "stop",
126
+ "title": "Kind",
127
+ "type": "string"
128
+ },
129
+ "command_id": {
130
+ "pattern": "^lc_[0-9a-f]{12}$",
131
+ "title": "Command Id",
132
+ "type": "string"
133
+ },
134
+ "action_id": {
135
+ "pattern": "^la_[0-9a-f]{12}$",
136
+ "title": "Action Id",
137
+ "type": "string"
138
+ },
139
+ "session_ref": {
140
+ "maxLength": 128,
141
+ "minLength": 1,
142
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
143
+ "title": "Session Ref",
144
+ "type": "string"
145
+ }
146
+ },
147
+ "required": [
148
+ "ttl_ms",
149
+ "command_id",
150
+ "action_id",
151
+ "session_ref"
152
+ ],
153
+ "title": "GatewayStopOffer",
154
+ "type": "object"
155
+ },
156
+ "GatewayResumeOffer": {
157
+ "additionalProperties": false,
158
+ "properties": {
159
+ "protocol_version": {
160
+ "const": 1,
161
+ "default": 1,
162
+ "title": "Protocol Version",
163
+ "type": "integer"
164
+ },
165
+ "ttl_ms": {
166
+ "minimum": 0,
167
+ "title": "Ttl Ms",
168
+ "type": "integer"
169
+ },
170
+ "kind": {
171
+ "const": "resume",
172
+ "default": "resume",
173
+ "title": "Kind",
174
+ "type": "string"
175
+ },
176
+ "command_id": {
177
+ "pattern": "^lc_[0-9a-f]{12}$",
178
+ "title": "Command Id",
179
+ "type": "string"
180
+ },
181
+ "action_id": {
182
+ "pattern": "^la_[0-9a-f]{12}$",
183
+ "title": "Action Id",
184
+ "type": "string"
185
+ },
186
+ "session_ref": {
187
+ "maxLength": 128,
188
+ "minLength": 1,
189
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
190
+ "title": "Session Ref",
191
+ "type": "string"
192
+ },
193
+ "text": {
194
+ "anyOf": [
195
+ {
196
+ "maxLength": 4000,
197
+ "minLength": 1,
198
+ "type": "string"
199
+ },
200
+ {
201
+ "type": "null"
202
+ }
203
+ ],
204
+ "default": null,
205
+ "title": "Text"
206
+ }
207
+ },
208
+ "required": [
209
+ "ttl_ms",
210
+ "command_id",
211
+ "action_id",
212
+ "session_ref"
213
+ ],
214
+ "title": "GatewayResumeOffer",
215
+ "type": "object"
216
+ },
217
+ "GatewayPing": {
218
+ "additionalProperties": false,
219
+ "properties": {
220
+ "protocol_version": {
221
+ "const": 1,
222
+ "default": 1,
223
+ "title": "Protocol Version",
224
+ "type": "integer"
225
+ },
226
+ "kind": {
227
+ "const": "ping",
228
+ "default": "ping",
229
+ "title": "Kind",
230
+ "type": "string"
231
+ },
232
+ "nonce": {
233
+ "maxLength": 128,
234
+ "minLength": 1,
235
+ "title": "Nonce",
236
+ "type": "string"
237
+ }
238
+ },
239
+ "required": [
240
+ "nonce"
241
+ ],
242
+ "title": "GatewayPing",
243
+ "type": "object"
244
+ },
245
+ "GatewayPermit": {
246
+ "additionalProperties": false,
247
+ "description": "Execution grant, or the authoritative terminal receipt on denial.",
248
+ "properties": {
249
+ "protocol_version": {
250
+ "const": 1,
251
+ "default": 1,
252
+ "title": "Protocol Version",
253
+ "type": "integer"
254
+ },
255
+ "kind": {
256
+ "const": "permit",
257
+ "default": "permit",
258
+ "title": "Kind",
259
+ "type": "string"
260
+ },
261
+ "command_id": {
262
+ "pattern": "^lc_[0-9a-f]{12}$",
263
+ "title": "Command Id",
264
+ "type": "string"
265
+ },
266
+ "action_id": {
267
+ "pattern": "^la_[0-9a-f]{12}$",
268
+ "title": "Action Id",
269
+ "type": "string"
270
+ },
271
+ "allowed": {
272
+ "title": "Allowed",
273
+ "type": "boolean"
274
+ },
275
+ "receipt": {
276
+ "anyOf": [
277
+ {
278
+ "discriminator": {
279
+ "mapping": {
280
+ "ack": "#/components/schemas/GatewayAck",
281
+ "refused": "#/components/schemas/GatewayRefused"
282
+ },
283
+ "propertyName": "kind"
284
+ },
285
+ "oneOf": [
286
+ {
287
+ "$ref": "#/components/schemas/GatewayAck"
288
+ },
289
+ {
290
+ "$ref": "#/components/schemas/GatewayRefused"
291
+ }
292
+ ]
293
+ },
294
+ {
295
+ "type": "null"
296
+ }
297
+ ],
298
+ "default": null,
299
+ "title": "Receipt"
300
+ }
301
+ },
302
+ "required": [
303
+ "command_id",
304
+ "action_id",
305
+ "allowed"
306
+ ],
307
+ "title": "GatewayPermit",
308
+ "type": "object"
309
+ },
310
+ "GatewayAck": {
311
+ "additionalProperties": false,
312
+ "properties": {
313
+ "protocol_version": {
314
+ "const": 1,
315
+ "default": 1,
316
+ "title": "Protocol Version",
317
+ "type": "integer"
318
+ },
319
+ "kind": {
320
+ "const": "ack",
321
+ "default": "ack",
322
+ "title": "Kind",
323
+ "type": "string"
324
+ },
325
+ "command_id": {
326
+ "pattern": "^lc_[0-9a-f]{12}$",
327
+ "title": "Command Id",
328
+ "type": "string"
329
+ },
330
+ "action_id": {
331
+ "pattern": "^la_[0-9a-f]{12}$",
332
+ "title": "Action Id",
333
+ "type": "string"
334
+ }
335
+ },
336
+ "required": [
337
+ "command_id",
338
+ "action_id"
339
+ ],
340
+ "title": "GatewayAck",
341
+ "type": "object"
342
+ },
343
+ "GatewayRefused": {
344
+ "additionalProperties": false,
345
+ "properties": {
346
+ "protocol_version": {
347
+ "const": 1,
348
+ "default": 1,
349
+ "title": "Protocol Version",
350
+ "type": "integer"
351
+ },
352
+ "kind": {
353
+ "const": "refused",
354
+ "default": "refused",
355
+ "title": "Kind",
356
+ "type": "string"
357
+ },
358
+ "command_id": {
359
+ "pattern": "^lc_[0-9a-f]{12}$",
360
+ "title": "Command Id",
361
+ "type": "string"
362
+ },
363
+ "action_id": {
364
+ "pattern": "^la_[0-9a-f]{12}$",
365
+ "title": "Action Id",
366
+ "type": "string"
367
+ },
368
+ "reason": {
369
+ "$ref": "#/components/schemas/LaunchRefusalReason"
370
+ }
371
+ },
372
+ "required": [
373
+ "command_id",
374
+ "action_id",
375
+ "reason"
376
+ ],
377
+ "title": "GatewayRefused",
378
+ "type": "object"
379
+ },
380
+ "LaunchRefusalReason": {
381
+ "type": "string",
382
+ "enum": [
383
+ "workspace_untrusted",
384
+ "not_signed_in",
385
+ "repository_not_registered",
386
+ "harness_unavailable",
387
+ "unsupported_command",
388
+ "requester_mismatch",
389
+ "protocol_outdated",
390
+ "start_failed",
391
+ "stop_failed",
392
+ "session_not_found",
393
+ "machine_offline",
394
+ "machine_revoked",
395
+ "control_in_flight",
396
+ "awaiting_observation",
397
+ "already_running",
398
+ "not_running",
399
+ "launch_expired",
400
+ "launch_withdrawn",
401
+ "control_expired",
402
+ "control_withdrawn"
403
+ ],
404
+ "title": "LaunchRefusalReason"
405
+ },
406
+ "GatewayRetire": {
407
+ "additionalProperties": false,
408
+ "description": "Forget local tracking for an action no longer resolved for this owner.",
409
+ "properties": {
410
+ "protocol_version": {
411
+ "const": 1,
412
+ "default": 1,
413
+ "title": "Protocol Version",
414
+ "type": "integer"
415
+ },
416
+ "kind": {
417
+ "const": "retire",
418
+ "default": "retire",
419
+ "title": "Kind",
420
+ "type": "string"
421
+ },
422
+ "action_id": {
423
+ "pattern": "^la_[0-9a-f]{12}$",
424
+ "title": "Action Id",
425
+ "type": "string"
426
+ }
427
+ },
428
+ "required": [
429
+ "action_id"
430
+ ],
431
+ "title": "GatewayRetire",
432
+ "type": "object"
433
+ },
434
+ "GatewayToHub": {
435
+ "description": "The complete gateway-to-server frame; exported through OpenAPI.",
436
+ "discriminator": {
437
+ "mapping": {
438
+ "ack": "#/components/schemas/GatewayAck",
439
+ "advertise": "#/components/schemas/GatewayAdvertise",
440
+ "claim": "#/components/schemas/GatewayClaim",
441
+ "hello": "#/components/schemas/GatewayHello",
442
+ "pong": "#/components/schemas/GatewayPong",
443
+ "refused": "#/components/schemas/GatewayRefused",
444
+ "session_update": "#/components/schemas/GatewaySessionUpdate"
445
+ },
446
+ "propertyName": "kind"
447
+ },
448
+ "oneOf": [
449
+ {
450
+ "$ref": "#/components/schemas/GatewayHello"
451
+ },
452
+ {
453
+ "$ref": "#/components/schemas/GatewayAdvertise"
454
+ },
455
+ {
456
+ "$ref": "#/components/schemas/GatewayAck"
457
+ },
458
+ {
459
+ "$ref": "#/components/schemas/GatewayClaim"
460
+ },
461
+ {
462
+ "$ref": "#/components/schemas/GatewaySessionUpdate"
463
+ },
464
+ {
465
+ "$ref": "#/components/schemas/GatewayRefused"
466
+ },
467
+ {
468
+ "$ref": "#/components/schemas/GatewayPong"
469
+ }
470
+ ],
471
+ "title": "GatewayToHub"
472
+ },
473
+ "GatewayHello": {
474
+ "additionalProperties": false,
475
+ "properties": {
476
+ "gateway_version": {
477
+ "maxLength": 80,
478
+ "minLength": 1,
479
+ "title": "Gateway Version",
480
+ "type": "string"
481
+ },
482
+ "protocol_version": {
483
+ "default": 1,
484
+ "minimum": 1,
485
+ "title": "Protocol Version",
486
+ "type": "integer"
487
+ },
488
+ "harnesses": {
489
+ "items": {
490
+ "$ref": "#/components/schemas/HarnessCapability"
491
+ },
492
+ "title": "Harnesses",
493
+ "type": "array"
494
+ },
495
+ "repositories": {
496
+ "items": {
497
+ "$ref": "#/components/schemas/AdvertisedRepository"
498
+ },
499
+ "title": "Repositories",
500
+ "type": "array"
501
+ },
502
+ "kind": {
503
+ "const": "hello",
504
+ "default": "hello",
505
+ "title": "Kind",
506
+ "type": "string"
507
+ }
508
+ },
509
+ "required": [
510
+ "gateway_version",
511
+ "harnesses",
512
+ "repositories"
513
+ ],
514
+ "title": "GatewayHello",
515
+ "type": "object"
516
+ },
517
+ "HarnessCapability": {
518
+ "properties": {
519
+ "harness": {
520
+ "$ref": "#/components/schemas/HarnessKind"
521
+ },
522
+ "harness_version": {
523
+ "anyOf": [
524
+ {
525
+ "type": "string",
526
+ "maxLength": 80,
527
+ "minLength": 1
528
+ },
529
+ {
530
+ "type": "null"
531
+ }
532
+ ],
533
+ "title": "Harness Version"
534
+ },
535
+ "available": {
536
+ "type": "boolean",
537
+ "title": "Available"
538
+ },
539
+ "signed_in": {
540
+ "anyOf": [
541
+ {
542
+ "type": "boolean"
543
+ },
544
+ {
545
+ "type": "null"
546
+ }
547
+ ],
548
+ "title": "Signed In"
549
+ },
550
+ "operations": {
551
+ "$ref": "#/components/schemas/HarnessOperations"
552
+ }
553
+ },
554
+ "additionalProperties": false,
555
+ "type": "object",
556
+ "required": [
557
+ "harness",
558
+ "available",
559
+ "operations"
560
+ ],
561
+ "title": "HarnessCapability"
562
+ },
563
+ "HarnessOperations": {
564
+ "properties": {
565
+ "start": {
566
+ "type": "boolean",
567
+ "title": "Start"
568
+ },
569
+ "stop": {
570
+ "type": "boolean",
571
+ "title": "Stop"
572
+ },
573
+ "resume": {
574
+ "type": "boolean",
575
+ "title": "Resume"
576
+ },
577
+ "attach_hint": {
578
+ "type": "boolean",
579
+ "title": "Attach Hint"
580
+ },
581
+ "answer_input": {
582
+ "type": "boolean",
583
+ "title": "Answer Input"
584
+ }
585
+ },
586
+ "additionalProperties": false,
587
+ "type": "object",
588
+ "required": [
589
+ "start",
590
+ "stop",
591
+ "resume",
592
+ "attach_hint",
593
+ "answer_input"
594
+ ],
595
+ "title": "HarnessOperations"
596
+ },
597
+ "AdvertisedRepository": {
598
+ "properties": {
599
+ "harness": {
600
+ "$ref": "#/components/schemas/HarnessKind"
601
+ },
602
+ "slug": {
603
+ "type": "string",
604
+ "maxLength": 201,
605
+ "minLength": 3,
606
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*/[A-Za-z0-9][A-Za-z0-9_.-]*$",
607
+ "title": "Slug"
608
+ },
609
+ "trust": {
610
+ "$ref": "#/components/schemas/RepositoryTrust"
611
+ },
612
+ "available": {
613
+ "type": "boolean",
614
+ "title": "Available"
615
+ },
616
+ "signed_in": {
617
+ "anyOf": [
618
+ {
619
+ "type": "boolean"
620
+ },
621
+ {
622
+ "type": "null"
623
+ }
624
+ ],
625
+ "title": "Signed In"
626
+ }
627
+ },
628
+ "additionalProperties": false,
629
+ "type": "object",
630
+ "required": [
631
+ "harness",
632
+ "slug",
633
+ "trust",
634
+ "available",
635
+ "signed_in"
636
+ ],
637
+ "title": "AdvertisedRepository"
638
+ },
639
+ "RepositoryTrust": {
640
+ "type": "string",
641
+ "enum": [
642
+ "trusted",
643
+ "untrusted",
644
+ "unknown"
645
+ ],
646
+ "title": "RepositoryTrust"
647
+ },
648
+ "GatewayAdvertise": {
649
+ "additionalProperties": false,
650
+ "properties": {
651
+ "protocol_version": {
652
+ "const": 1,
653
+ "default": 1,
654
+ "title": "Protocol Version",
655
+ "type": "integer"
656
+ },
657
+ "gateway_version": {
658
+ "maxLength": 80,
659
+ "minLength": 1,
660
+ "title": "Gateway Version",
661
+ "type": "string"
662
+ },
663
+ "harnesses": {
664
+ "items": {
665
+ "$ref": "#/components/schemas/HarnessCapability"
666
+ },
667
+ "title": "Harnesses",
668
+ "type": "array"
669
+ },
670
+ "repositories": {
671
+ "items": {
672
+ "$ref": "#/components/schemas/AdvertisedRepository"
673
+ },
674
+ "title": "Repositories",
675
+ "type": "array"
676
+ },
677
+ "kind": {
678
+ "const": "advertise",
679
+ "default": "advertise",
680
+ "title": "Kind",
681
+ "type": "string"
682
+ }
683
+ },
684
+ "required": [
685
+ "gateway_version",
686
+ "harnesses",
687
+ "repositories"
688
+ ],
689
+ "title": "GatewayAdvertise",
690
+ "type": "object"
691
+ },
692
+ "GatewayClaim": {
693
+ "additionalProperties": false,
694
+ "properties": {
695
+ "protocol_version": {
696
+ "const": 1,
697
+ "default": 1,
698
+ "title": "Protocol Version",
699
+ "type": "integer"
700
+ },
701
+ "kind": {
702
+ "const": "claim",
703
+ "default": "claim",
704
+ "title": "Kind",
705
+ "type": "string"
706
+ },
707
+ "command_id": {
708
+ "pattern": "^lc_[0-9a-f]{12}$",
709
+ "title": "Command Id",
710
+ "type": "string"
711
+ },
712
+ "action_id": {
713
+ "pattern": "^la_[0-9a-f]{12}$",
714
+ "title": "Action Id",
715
+ "type": "string"
716
+ }
717
+ },
718
+ "required": [
719
+ "command_id",
720
+ "action_id"
721
+ ],
722
+ "title": "GatewayClaim",
723
+ "type": "object"
724
+ },
725
+ "GatewaySessionUpdate": {
726
+ "additionalProperties": false,
727
+ "properties": {
728
+ "protocol_version": {
729
+ "const": 1,
730
+ "default": 1,
731
+ "title": "Protocol Version",
732
+ "type": "integer"
733
+ },
734
+ "kind": {
735
+ "const": "session_update",
736
+ "default": "session_update",
737
+ "title": "Kind",
738
+ "type": "string"
739
+ },
740
+ "action_id": {
741
+ "pattern": "^la_[0-9a-f]{12}$",
742
+ "title": "Action Id",
743
+ "type": "string"
744
+ },
745
+ "session_ref": {
746
+ "maxLength": 128,
747
+ "minLength": 1,
748
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
749
+ "title": "Session Ref",
750
+ "type": "string"
751
+ },
752
+ "state": {
753
+ "$ref": "#/components/schemas/AgentSessionState"
754
+ },
755
+ "waiting_for": {
756
+ "anyOf": [
757
+ {
758
+ "maxLength": 240,
759
+ "minLength": 1,
760
+ "type": "string"
761
+ },
762
+ {
763
+ "type": "null"
764
+ }
765
+ ],
766
+ "default": null,
767
+ "title": "Waiting For"
768
+ },
769
+ "attach_hint": {
770
+ "anyOf": [
771
+ {
772
+ "$ref": "#/components/schemas/AttachHint"
773
+ },
774
+ {
775
+ "type": "null"
776
+ }
777
+ ],
778
+ "default": null
779
+ },
780
+ "resumed_as": {
781
+ "anyOf": [
782
+ {
783
+ "maxLength": 128,
784
+ "minLength": 1,
785
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
786
+ "type": "string"
787
+ },
788
+ {
789
+ "type": "null"
790
+ }
791
+ ],
792
+ "default": null,
793
+ "title": "Resumed As"
794
+ }
795
+ },
796
+ "required": [
797
+ "action_id",
798
+ "session_ref",
799
+ "state"
800
+ ],
801
+ "title": "GatewaySessionUpdate",
802
+ "type": "object"
803
+ },
804
+ "AgentSessionState": {
805
+ "type": "string",
806
+ "enum": [
807
+ "starting",
808
+ "working",
809
+ "needs_input",
810
+ "done",
811
+ "failed",
812
+ "stopped",
813
+ "ended",
814
+ "unknown"
815
+ ],
816
+ "title": "AgentSessionState"
817
+ },
818
+ "AttachHint": {
819
+ "properties": {
820
+ "harness": {
821
+ "$ref": "#/components/schemas/HarnessKind"
822
+ },
823
+ "session_ref": {
824
+ "type": "string",
825
+ "maxLength": 128,
826
+ "minLength": 1,
827
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
828
+ "title": "Session Ref"
829
+ }
830
+ },
831
+ "additionalProperties": false,
832
+ "type": "object",
833
+ "required": [
834
+ "harness",
835
+ "session_ref"
836
+ ],
837
+ "title": "AttachHint",
838
+ "description": "Path-free session identity; command rendering belongs to the consumer."
839
+ },
840
+ "GatewayPong": {
841
+ "additionalProperties": false,
842
+ "properties": {
843
+ "protocol_version": {
844
+ "const": 1,
845
+ "default": 1,
846
+ "title": "Protocol Version",
847
+ "type": "integer"
848
+ },
849
+ "kind": {
850
+ "const": "pong",
851
+ "default": "pong",
852
+ "title": "Kind",
853
+ "type": "string"
854
+ },
855
+ "nonce": {
856
+ "maxLength": 128,
857
+ "minLength": 1,
858
+ "title": "Nonce",
859
+ "type": "string"
860
+ }
861
+ },
862
+ "required": [
863
+ "nonce"
864
+ ],
865
+ "title": "GatewayPong",
866
+ "type": "object"
867
+ },
868
+ "GatewayMachineRegistered": {
869
+ "properties": {
870
+ "machine_id": {
871
+ "type": "string",
872
+ "pattern": "^mach_[0-9a-f]{12}$",
873
+ "title": "Machine Id"
874
+ },
875
+ "hub_path": {
876
+ "type": "string",
877
+ "pattern": "^/api/v1/gateway/machines/mach_[0-9a-f]{12}/hub$",
878
+ "title": "Hub Path"
879
+ }
880
+ },
881
+ "additionalProperties": false,
882
+ "type": "object",
883
+ "required": [
884
+ "machine_id",
885
+ "hub_path"
886
+ ],
887
+ "title": "GatewayMachineRegistered"
888
+ }
889
+ }