@mostra/protocol 0.9.0 → 0.11.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 (241) hide show
  1. package/dist/actions.d.ts +30 -4
  2. package/dist/actions.d.ts.map +1 -1
  3. package/dist/actions.js +14 -4
  4. package/dist/actions.js.map +1 -1
  5. package/dist/artifact.d.ts +2 -1
  6. package/dist/artifact.d.ts.map +1 -1
  7. package/dist/artifact.js +2 -1
  8. package/dist/artifact.js.map +1 -1
  9. package/dist/browser.d.ts +47 -0
  10. package/dist/browser.d.ts.map +1 -1
  11. package/dist/browser.js +36 -3
  12. package/dist/browser.js.map +1 -1
  13. package/dist/capability.d.ts +0 -9
  14. package/dist/capability.d.ts.map +1 -1
  15. package/dist/capability.js +1 -17
  16. package/dist/capability.js.map +1 -1
  17. package/dist/diagnostics/codes/action.d.ts +1 -1
  18. package/dist/diagnostics/codes/action.d.ts.map +1 -1
  19. package/dist/diagnostics/codes/action.js +12 -1
  20. package/dist/diagnostics/codes/action.js.map +1 -1
  21. package/dist/diagnostics/codes/artifact.d.ts +1 -1
  22. package/dist/diagnostics/codes/artifact.d.ts.map +1 -1
  23. package/dist/diagnostics/codes/artifact.js +12 -1
  24. package/dist/diagnostics/codes/artifact.js.map +1 -1
  25. package/dist/diagnostics/codes/home.d.ts +1 -1
  26. package/dist/diagnostics/codes/home.d.ts.map +1 -1
  27. package/dist/diagnostics/codes/home.js +12 -1
  28. package/dist/diagnostics/codes/home.js.map +1 -1
  29. package/dist/diagnostics/codes/index.d.ts +3 -2
  30. package/dist/diagnostics/codes/index.d.ts.map +1 -1
  31. package/dist/diagnostics/codes/index.js +3 -1
  32. package/dist/diagnostics/codes/index.js.map +1 -1
  33. package/dist/diagnostics/codes/remote.d.ts +8 -0
  34. package/dist/diagnostics/codes/remote.d.ts.map +1 -0
  35. package/dist/diagnostics/codes/remote.js +176 -0
  36. package/dist/diagnostics/codes/remote.js.map +1 -0
  37. package/dist/diagnostics/codes/submit.d.ts +1 -1
  38. package/dist/diagnostics/codes/submit.d.ts.map +1 -1
  39. package/dist/diagnostics/codes/submit.js +12 -1
  40. package/dist/diagnostics/codes/submit.js.map +1 -1
  41. package/dist/diagnostics/diagnostic.d.ts +1 -1
  42. package/dist/diagnostics/diagnostic.d.ts.map +1 -1
  43. package/dist/diagnostics/diagnostic.js +2 -1
  44. package/dist/diagnostics/diagnostic.js.map +1 -1
  45. package/dist/duration.d.ts +13 -0
  46. package/dist/duration.d.ts.map +1 -0
  47. package/dist/duration.js +27 -0
  48. package/dist/duration.js.map +1 -0
  49. package/dist/ids.d.ts +17 -1
  50. package/dist/ids.d.ts.map +1 -1
  51. package/dist/ids.js +9 -1
  52. package/dist/ids.js.map +1 -1
  53. package/dist/index.d.ts +33 -8
  54. package/dist/index.js +33 -8
  55. package/dist/interaction.d.ts +33 -2
  56. package/dist/interaction.d.ts.map +1 -1
  57. package/dist/interaction.js +22 -6
  58. package/dist/interaction.js.map +1 -1
  59. package/dist/manifest.d.ts +59 -14
  60. package/dist/manifest.d.ts.map +1 -1
  61. package/dist/manifest.js +63 -15
  62. package/dist/manifest.js.map +1 -1
  63. package/dist/methods/artifact/export.d.ts +40 -0
  64. package/dist/methods/artifact/export.d.ts.map +1 -0
  65. package/dist/methods/artifact/export.js +36 -0
  66. package/dist/methods/artifact/export.js.map +1 -0
  67. package/dist/methods/artifact/import.d.ts +23 -0
  68. package/dist/methods/artifact/import.d.ts.map +1 -0
  69. package/dist/methods/artifact/import.js +25 -0
  70. package/dist/methods/artifact/import.js.map +1 -0
  71. package/dist/methods/artifact/pause.d.ts +33 -0
  72. package/dist/methods/artifact/pause.d.ts.map +1 -0
  73. package/dist/methods/artifact/pause.js +33 -0
  74. package/dist/methods/artifact/pause.js.map +1 -0
  75. package/dist/methods/artifact/publish.d.ts +2 -1
  76. package/dist/methods/artifact/publish.d.ts.map +1 -1
  77. package/dist/methods/artifact/publish.js +1 -1
  78. package/dist/methods/hosted/push.d.ts +76 -0
  79. package/dist/methods/hosted/push.d.ts.map +1 -0
  80. package/dist/methods/hosted/push.js +71 -0
  81. package/dist/methods/hosted/push.js.map +1 -0
  82. package/dist/methods/hosted/submission.d.ts +18 -0
  83. package/dist/methods/hosted/submission.d.ts.map +1 -0
  84. package/dist/methods/hosted/submission.js +23 -0
  85. package/dist/methods/hosted/submission.js.map +1 -0
  86. package/dist/methods/index.d.ts.map +1 -1
  87. package/dist/methods/index.js +44 -2
  88. package/dist/methods/index.js.map +1 -1
  89. package/dist/methods/instance/status.d.ts +3 -0
  90. package/dist/methods/instance/status.d.ts.map +1 -1
  91. package/dist/methods/instance/status.js +3 -1
  92. package/dist/methods/instance/status.js.map +1 -1
  93. package/dist/methods/mostra/initialize.d.ts +17 -3
  94. package/dist/methods/mostra/initialize.d.ts.map +1 -1
  95. package/dist/methods/mostra/initialize.js +11 -3
  96. package/dist/methods/mostra/initialize.js.map +1 -1
  97. package/dist/methods/port/relay-author.d.ts +28 -0
  98. package/dist/methods/port/relay-author.d.ts.map +1 -0
  99. package/dist/methods/port/relay-author.js +42 -0
  100. package/dist/methods/port/relay-author.js.map +1 -0
  101. package/dist/methods/port/relay-call.d.ts +33 -0
  102. package/dist/methods/port/relay-call.d.ts.map +1 -0
  103. package/dist/methods/port/relay-call.js +31 -0
  104. package/dist/methods/port/relay-call.js.map +1 -0
  105. package/dist/methods/port/relay-cancel.d.ts +16 -0
  106. package/dist/methods/port/relay-cancel.d.ts.map +1 -0
  107. package/dist/methods/port/relay-cancel.js +21 -0
  108. package/dist/methods/port/relay-cancel.js.map +1 -0
  109. package/dist/methods/port/relay-live.d.ts +25 -0
  110. package/dist/methods/port/relay-live.d.ts.map +1 -0
  111. package/dist/methods/port/relay-live.js +32 -0
  112. package/dist/methods/port/relay-live.js.map +1 -0
  113. package/dist/methods/port/relay-reconcile.d.ts +39 -0
  114. package/dist/methods/port/relay-reconcile.d.ts.map +1 -0
  115. package/dist/methods/port/relay-reconcile.js +35 -0
  116. package/dist/methods/port/relay-reconcile.js.map +1 -0
  117. package/dist/methods/port/relay-run.d.ts +47 -0
  118. package/dist/methods/port/relay-run.d.ts.map +1 -0
  119. package/dist/methods/port/relay-run.js +41 -0
  120. package/dist/methods/port/relay-run.js.map +1 -0
  121. package/dist/methods/port/submissions-deliver.d.ts +8 -0
  122. package/dist/methods/port/submissions-deliver.d.ts.map +1 -1
  123. package/dist/methods/port/submissions-deliver.js +4 -2
  124. package/dist/methods/port/submissions-deliver.js.map +1 -1
  125. package/dist/methods/relay/call-batch.d.ts +26 -0
  126. package/dist/methods/relay/call-batch.d.ts.map +1 -0
  127. package/dist/methods/relay/call-batch.js +30 -0
  128. package/dist/methods/relay/call-batch.js.map +1 -0
  129. package/dist/methods/relay/effect.d.ts +31 -0
  130. package/dist/methods/relay/effect.d.ts.map +1 -0
  131. package/dist/methods/relay/effect.js +30 -0
  132. package/dist/methods/relay/effect.js.map +1 -0
  133. package/dist/methods/relay/live-value.d.ts +33 -0
  134. package/dist/methods/relay/live-value.d.ts.map +1 -0
  135. package/dist/methods/relay/live-value.js +32 -0
  136. package/dist/methods/relay/live-value.js.map +1 -0
  137. package/dist/methods/relay/run-update.d.ts +46 -0
  138. package/dist/methods/relay/run-update.d.ts.map +1 -0
  139. package/dist/methods/relay/run-update.js +45 -0
  140. package/dist/methods/relay/run-update.js.map +1 -0
  141. package/dist/methods/remote/link.d.ts +40 -0
  142. package/dist/methods/remote/link.d.ts.map +1 -0
  143. package/dist/methods/remote/link.js +40 -0
  144. package/dist/methods/remote/link.js.map +1 -0
  145. package/dist/methods/remote/login-wait.d.ts +30 -0
  146. package/dist/methods/remote/login-wait.d.ts.map +1 -0
  147. package/dist/methods/remote/login-wait.js +36 -0
  148. package/dist/methods/remote/login-wait.js.map +1 -0
  149. package/dist/methods/remote/login.d.ts +41 -0
  150. package/dist/methods/remote/login.d.ts.map +1 -0
  151. package/dist/methods/remote/login.js +37 -0
  152. package/dist/methods/remote/login.js.map +1 -0
  153. package/dist/methods/remote/logout.d.ts +25 -0
  154. package/dist/methods/remote/logout.d.ts.map +1 -0
  155. package/dist/methods/remote/logout.js +28 -0
  156. package/dist/methods/remote/logout.js.map +1 -0
  157. package/dist/methods/remote/status.d.ts +14 -0
  158. package/dist/methods/remote/status.d.ts.map +1 -0
  159. package/dist/methods/remote/status.js +22 -0
  160. package/dist/methods/remote/status.js.map +1 -0
  161. package/dist/methods/remote/token.d.ts +19 -0
  162. package/dist/methods/remote/token.d.ts.map +1 -0
  163. package/dist/methods/remote/token.js +24 -0
  164. package/dist/methods/remote/token.js.map +1 -0
  165. package/dist/methods/share/start.d.ts +5 -2
  166. package/dist/methods/share/start.d.ts.map +1 -1
  167. package/dist/methods/share/start.js +6 -3
  168. package/dist/methods/share/start.js.map +1 -1
  169. package/dist/methods/state/patch.d.ts +7 -0
  170. package/dist/methods/state/patch.d.ts.map +1 -1
  171. package/dist/methods/state/patch.js +2 -1
  172. package/dist/methods/state/patch.js.map +1 -1
  173. package/dist/methods/view/url.d.ts +2 -1
  174. package/dist/methods/view/url.d.ts.map +1 -1
  175. package/dist/methods/view/url.js +2 -1
  176. package/dist/methods/view/url.js.map +1 -1
  177. package/dist/operator.d.ts +464 -0
  178. package/dist/operator.d.ts.map +1 -0
  179. package/dist/operator.js +134 -0
  180. package/dist/operator.js.map +1 -0
  181. package/dist/policy.d.ts +18 -0
  182. package/dist/policy.d.ts.map +1 -0
  183. package/dist/policy.js +23 -0
  184. package/dist/policy.js.map +1 -0
  185. package/dist/remote.d.ts +55 -0
  186. package/dist/remote.d.ts.map +1 -0
  187. package/dist/remote.js +52 -0
  188. package/dist/remote.js.map +1 -0
  189. package/dist/view.d.ts +1 -1
  190. package/dist/view.js +1 -1
  191. package/dist/view.js.map +1 -1
  192. package/package.json +12 -2
  193. package/schemas/protocol.draft-07.json +1839 -99
  194. package/schemas/protocol.schema.json +1787 -111
  195. package/src/actions.ts +45 -5
  196. package/src/browser.ts +70 -0
  197. package/src/capability.ts +0 -23
  198. package/src/diagnostics/codes/action.ts +12 -0
  199. package/src/diagnostics/codes/artifact.ts +12 -0
  200. package/src/diagnostics/codes/home.ts +12 -0
  201. package/src/diagnostics/codes/index.ts +6 -2
  202. package/src/diagnostics/codes/remote.ts +197 -0
  203. package/src/diagnostics/codes/submit.ts +12 -0
  204. package/src/diagnostics/diagnostic.ts +3 -1
  205. package/src/duration.ts +29 -0
  206. package/src/ids.ts +33 -1
  207. package/src/index.ts +143 -8
  208. package/src/interaction.ts +48 -2
  209. package/src/manifest.ts +115 -24
  210. package/src/methods/artifact/export.ts +68 -0
  211. package/src/methods/artifact/import.ts +39 -0
  212. package/src/methods/artifact/pause.ts +59 -0
  213. package/src/methods/hosted/push.ts +146 -0
  214. package/src/methods/hosted/submission.ts +34 -0
  215. package/src/methods/index.ts +42 -0
  216. package/src/methods/instance/status.ts +4 -0
  217. package/src/methods/mostra/initialize.ts +19 -3
  218. package/src/methods/port/relay-author.ts +57 -0
  219. package/src/methods/port/relay-call.ts +58 -0
  220. package/src/methods/port/relay-cancel.ts +33 -0
  221. package/src/methods/port/relay-live.ts +48 -0
  222. package/src/methods/port/relay-reconcile.ts +71 -0
  223. package/src/methods/port/relay-run.ts +80 -0
  224. package/src/methods/port/submissions-deliver.ts +13 -1
  225. package/src/methods/relay/call-batch.ts +52 -0
  226. package/src/methods/relay/effect.ts +55 -0
  227. package/src/methods/relay/live-value.ts +54 -0
  228. package/src/methods/relay/run-update.ts +81 -0
  229. package/src/methods/remote/link.ts +65 -0
  230. package/src/methods/remote/login-wait.ts +55 -0
  231. package/src/methods/remote/login.ts +72 -0
  232. package/src/methods/remote/logout.ts +42 -0
  233. package/src/methods/remote/status.ts +34 -0
  234. package/src/methods/remote/token.ts +39 -0
  235. package/src/methods/share/start.ts +12 -4
  236. package/src/methods/state/patch.ts +6 -0
  237. package/src/methods/view/url.ts +2 -1
  238. package/src/operator.ts +621 -0
  239. package/src/policy.ts +30 -0
  240. package/src/remote.ts +89 -0
  241. package/src/view.ts +1 -1
@@ -15,6 +15,16 @@
15
15
  "$ref": "#/definitions/ArtifactCreateResult"
16
16
  }
17
17
  },
18
+ "artifact/export": {
19
+ "direction": "client-to-instance",
20
+ "mutating": false,
21
+ "params": {
22
+ "$ref": "#/definitions/ArtifactExportParams"
23
+ },
24
+ "result": {
25
+ "$ref": "#/definitions/ArtifactExportResult"
26
+ }
27
+ },
18
28
  "artifact/get": {
19
29
  "direction": "client-to-instance",
20
30
  "mutating": false,
@@ -25,6 +35,16 @@
25
35
  "$ref": "#/definitions/ArtifactDetail"
26
36
  }
27
37
  },
38
+ "artifact/import": {
39
+ "direction": "client-to-instance",
40
+ "mutating": true,
41
+ "params": {
42
+ "$ref": "#/definitions/ArtifactImportParams"
43
+ },
44
+ "result": {
45
+ "$ref": "#/definitions/PublishReceipt"
46
+ }
47
+ },
28
48
  "artifact/list": {
29
49
  "direction": "client-to-instance",
30
50
  "mutating": false,
@@ -35,6 +55,16 @@
35
55
  "$ref": "#/definitions/ArtifactListResult"
36
56
  }
37
57
  },
58
+ "artifact/pause": {
59
+ "direction": "client-to-instance",
60
+ "mutating": true,
61
+ "params": {
62
+ "$ref": "#/definitions/ArtifactPauseParams"
63
+ },
64
+ "result": {
65
+ "$ref": "#/definitions/ArtifactPauseResult"
66
+ }
67
+ },
38
68
  "artifact/publish": {
39
69
  "direction": "client-to-instance",
40
70
  "mutating": true,
@@ -135,6 +165,26 @@
135
165
  "$ref": "#/definitions/GcRunResult"
136
166
  }
137
167
  },
168
+ "hosted/push": {
169
+ "direction": "client-to-instance",
170
+ "mutating": true,
171
+ "params": {
172
+ "$ref": "#/definitions/HostedPushParams"
173
+ },
174
+ "result": {
175
+ "$ref": "#/definitions/HostedPushResult"
176
+ }
177
+ },
178
+ "hosted/submission": {
179
+ "direction": "client-to-instance",
180
+ "mutating": false,
181
+ "params": {
182
+ "$ref": "#/definitions/HostedSubmissionParams"
183
+ },
184
+ "result": {
185
+ "$ref": "#/definitions/SubmissionEnvelope"
186
+ }
187
+ },
138
188
  "instance/check": {
139
189
  "direction": "client-to-instance",
140
190
  "mutating": false,
@@ -213,6 +263,66 @@
213
263
  "$ref": "#/definitions/PortIdentityResolveResult"
214
264
  }
215
265
  },
266
+ "port/relay.author": {
267
+ "direction": "instance-to-host",
268
+ "mutating": true,
269
+ "params": {
270
+ "$ref": "#/definitions/PortRelayAuthorParams"
271
+ },
272
+ "result": {
273
+ "$ref": "#/definitions/PortRelayAuthorResult"
274
+ }
275
+ },
276
+ "port/relay.call": {
277
+ "direction": "instance-to-host",
278
+ "mutating": false,
279
+ "params": {
280
+ "$ref": "#/definitions/PortRelayCallParams"
281
+ },
282
+ "result": {
283
+ "$ref": "#/definitions/PortRelayCallResult"
284
+ }
285
+ },
286
+ "port/relay.cancel": {
287
+ "direction": "instance-to-host",
288
+ "mutating": false,
289
+ "params": {
290
+ "$ref": "#/definitions/PortRelayCancelParams"
291
+ },
292
+ "result": {
293
+ "$ref": "#/definitions/PortRelayCancelResult"
294
+ }
295
+ },
296
+ "port/relay.live": {
297
+ "direction": "instance-to-host",
298
+ "mutating": false,
299
+ "params": {
300
+ "$ref": "#/definitions/PortRelayLiveParams"
301
+ },
302
+ "result": {
303
+ "$ref": "#/definitions/PortRelayLiveResult"
304
+ }
305
+ },
306
+ "port/relay.reconcile": {
307
+ "direction": "instance-to-host",
308
+ "mutating": false,
309
+ "params": {
310
+ "$ref": "#/definitions/PortRelayReconcileParams"
311
+ },
312
+ "result": {
313
+ "$ref": "#/definitions/PortRelayReconcileResult"
314
+ }
315
+ },
316
+ "port/relay.run": {
317
+ "direction": "instance-to-host",
318
+ "mutating": false,
319
+ "params": {
320
+ "$ref": "#/definitions/PortRelayRunParams"
321
+ },
322
+ "result": {
323
+ "$ref": "#/definitions/PortRelayRunResult"
324
+ }
325
+ },
216
326
  "port/secrets.get": {
217
327
  "direction": "instance-to-host",
218
328
  "mutating": false,
@@ -251,6 +361,106 @@
251
361
  "$ref": "#/definitions/ControlsPolicy"
252
362
  }
253
363
  },
364
+ "relay/call.batch": {
365
+ "direction": "client-to-instance",
366
+ "mutating": false,
367
+ "params": {
368
+ "$ref": "#/definitions/RelayCallBatchParams"
369
+ },
370
+ "result": {
371
+ "$ref": "#/definitions/RelayCallBatchResult"
372
+ }
373
+ },
374
+ "relay/effect": {
375
+ "direction": "client-to-instance",
376
+ "mutating": true,
377
+ "params": {
378
+ "$ref": "#/definitions/RelayEffectParams"
379
+ },
380
+ "result": {
381
+ "$ref": "#/definitions/RelayEffectResult"
382
+ }
383
+ },
384
+ "relay/live.value": {
385
+ "direction": "client-to-instance",
386
+ "mutating": true,
387
+ "params": {
388
+ "$ref": "#/definitions/RelayLiveValueParams"
389
+ },
390
+ "result": {
391
+ "$ref": "#/definitions/RelayLiveValueResult"
392
+ }
393
+ },
394
+ "relay/run.update": {
395
+ "direction": "client-to-instance",
396
+ "mutating": true,
397
+ "params": {
398
+ "$ref": "#/definitions/RelayRunUpdateParams"
399
+ },
400
+ "result": {
401
+ "$ref": "#/definitions/RelayRunUpdateResult"
402
+ }
403
+ },
404
+ "remote/link": {
405
+ "direction": "client-to-instance",
406
+ "mutating": false,
407
+ "params": {
408
+ "$ref": "#/definitions/RemoteLinkParams"
409
+ },
410
+ "result": {
411
+ "$ref": "#/definitions/RemoteLinkResult"
412
+ }
413
+ },
414
+ "remote/login": {
415
+ "direction": "client-to-instance",
416
+ "mutating": true,
417
+ "params": {
418
+ "$ref": "#/definitions/RemoteLoginParams"
419
+ },
420
+ "result": {
421
+ "$ref": "#/definitions/RemoteLoginResult"
422
+ }
423
+ },
424
+ "remote/login.wait": {
425
+ "direction": "client-to-instance",
426
+ "mutating": false,
427
+ "params": {
428
+ "$ref": "#/definitions/RemoteLoginWaitParams"
429
+ },
430
+ "result": {
431
+ "$ref": "#/definitions/RemoteLoginWaitResult"
432
+ }
433
+ },
434
+ "remote/logout": {
435
+ "direction": "client-to-instance",
436
+ "mutating": true,
437
+ "params": {
438
+ "$ref": "#/definitions/RemoteLogoutParams"
439
+ },
440
+ "result": {
441
+ "$ref": "#/definitions/RemoteLogoutResult"
442
+ }
443
+ },
444
+ "remote/status": {
445
+ "direction": "client-to-instance",
446
+ "mutating": false,
447
+ "params": {
448
+ "$ref": "#/definitions/RemoteStatusParams"
449
+ },
450
+ "result": {
451
+ "$ref": "#/definitions/RemoteStatusResult"
452
+ }
453
+ },
454
+ "remote/token": {
455
+ "direction": "client-to-instance",
456
+ "mutating": false,
457
+ "params": {
458
+ "$ref": "#/definitions/RemoteTokenParams"
459
+ },
460
+ "result": {
461
+ "$ref": "#/definitions/RemoteTokenResult"
462
+ }
463
+ },
254
464
  "results/get": {
255
465
  "direction": "client-to-instance",
256
466
  "mutating": false,
@@ -420,6 +630,11 @@
420
630
  }
421
631
  },
422
632
  "definitions": {
633
+ "AccountId": {
634
+ "type": "string",
635
+ "pattern": "^acct_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
636
+ "description": "Account ID: \"acct_\" followed by a 26-character ULID."
637
+ },
423
638
  "ActionError": {
424
639
  "type": "object",
425
640
  "properties": {
@@ -601,6 +816,58 @@
601
816
  ],
602
817
  "description": "One artifact in full: its summary, the latest manifest and every version."
603
818
  },
819
+ "ArtifactExportParams": {
820
+ "type": "object",
821
+ "properties": {
822
+ "artifact": {
823
+ "$ref": "#/definitions/ArtifactRef"
824
+ },
825
+ "version": {
826
+ "anyOf": [
827
+ {
828
+ "type": "integer",
829
+ "minimum": 1,
830
+ "maximum": 9007199254740991
831
+ },
832
+ {
833
+ "type": "string",
834
+ "minLength": 1
835
+ }
836
+ ]
837
+ },
838
+ "as": {
839
+ "$ref": "#/definitions/ExportClass"
840
+ },
841
+ "out": {
842
+ "type": "string",
843
+ "minLength": 1
844
+ }
845
+ },
846
+ "required": [
847
+ "artifact",
848
+ "as",
849
+ "out"
850
+ ]
851
+ },
852
+ "ArtifactExportResult": {
853
+ "type": "object",
854
+ "properties": {
855
+ "files": {
856
+ "readOnly": true,
857
+ "type": "array",
858
+ "items": {
859
+ "type": "string"
860
+ }
861
+ },
862
+ "versionId": {
863
+ "type": "string"
864
+ }
865
+ },
866
+ "required": [
867
+ "files",
868
+ "versionId"
869
+ ]
870
+ },
604
871
  "ArtifactGetParams": {
605
872
  "type": "object",
606
873
  "properties": {
@@ -617,6 +884,22 @@
617
884
  "pattern": "^art_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
618
885
  "description": "Artifact ID: \"art_\" followed by a 26-character ULID."
619
886
  },
887
+ "ArtifactImportParams": {
888
+ "type": "object",
889
+ "properties": {
890
+ "bundle": {
891
+ "type": "string",
892
+ "minLength": 1
893
+ },
894
+ "requestId": {
895
+ "type": "string",
896
+ "minLength": 1
897
+ }
898
+ },
899
+ "required": [
900
+ "bundle"
901
+ ]
902
+ },
620
903
  "ArtifactLink": {
621
904
  "type": "object",
622
905
  "properties": {
@@ -866,6 +1149,20 @@
866
1149
  "type": "boolean"
867
1150
  }
868
1151
  }
1152
+ },
1153
+ "tally": {
1154
+ "readOnly": true,
1155
+ "type": "array",
1156
+ "items": {
1157
+ "$ref": "#/definitions/TallySpec"
1158
+ }
1159
+ },
1160
+ "hosted": {
1161
+ "allOf": [
1162
+ {
1163
+ "$ref": "#/definitions/HostedSettings"
1164
+ }
1165
+ ]
869
1166
  }
870
1167
  },
871
1168
  "required": [
@@ -873,6 +1170,47 @@
873
1170
  ],
874
1171
  "description": "The artifact manifest (INTERFACES §2.2): literal metadata from the entry's defineArtifact call or MDX frontmatter."
875
1172
  },
1173
+ "ArtifactPauseParams": {
1174
+ "type": "object",
1175
+ "properties": {
1176
+ "artifact": {
1177
+ "$ref": "#/definitions/ArtifactRef"
1178
+ },
1179
+ "paused": {
1180
+ "type": "boolean"
1181
+ },
1182
+ "reason": {
1183
+ "type": "string",
1184
+ "maxLength": 500
1185
+ },
1186
+ "requestId": {
1187
+ "type": "string",
1188
+ "minLength": 1
1189
+ }
1190
+ },
1191
+ "required": [
1192
+ "artifact",
1193
+ "paused"
1194
+ ]
1195
+ },
1196
+ "ArtifactPauseResult": {
1197
+ "type": "object",
1198
+ "properties": {
1199
+ "paused": {
1200
+ "type": "boolean"
1201
+ },
1202
+ "by": {
1203
+ "type": "string",
1204
+ "enum": [
1205
+ "owner",
1206
+ "operator"
1207
+ ]
1208
+ }
1209
+ },
1210
+ "required": [
1211
+ "paused"
1212
+ ]
1213
+ },
876
1214
  "ArtifactProgressParams": {
877
1215
  "type": "object",
878
1216
  "properties": {
@@ -2143,13 +2481,40 @@
2143
2481
  },
2144
2482
  "description": "Which events a reader wants: these artifacts' and these types (patterns allowed)."
2145
2483
  },
2146
- "EventRecord": {
2484
+ "EventOrigin": {
2147
2485
  "type": "object",
2148
2486
  "properties": {
2149
- "cursor": {
2150
- "$ref": "#/definitions/Cursor"
2487
+ "server": {
2488
+ "type": "string",
2489
+ "minLength": 1
2151
2490
  },
2152
- "artifactId": {
2491
+ "home": {
2492
+ "type": "string",
2493
+ "minLength": 1
2494
+ },
2495
+ "incarnation": {
2496
+ "type": "string",
2497
+ "minLength": 1
2498
+ },
2499
+ "cursor": {
2500
+ "$ref": "#/definitions/Cursor"
2501
+ }
2502
+ },
2503
+ "required": [
2504
+ "server",
2505
+ "home",
2506
+ "incarnation",
2507
+ "cursor"
2508
+ ],
2509
+ "description": "Where an owner's copy of a hosted record came from: server, home, incarnation, cursor."
2510
+ },
2511
+ "EventRecord": {
2512
+ "type": "object",
2513
+ "properties": {
2514
+ "cursor": {
2515
+ "$ref": "#/definitions/Cursor"
2516
+ },
2517
+ "artifactId": {
2153
2518
  "anyOf": [
2154
2519
  {
2155
2520
  "$ref": "#/definitions/ArtifactId"
@@ -2197,6 +2562,13 @@
2197
2562
  "type": "string"
2198
2563
  },
2199
2564
  "additionalProperties": {}
2565
+ },
2566
+ "origin": {
2567
+ "allOf": [
2568
+ {
2569
+ "$ref": "#/definitions/EventOrigin"
2570
+ }
2571
+ ]
2200
2572
  }
2201
2573
  },
2202
2574
  "required": [
@@ -2379,6 +2751,13 @@
2379
2751
  "type": "object",
2380
2752
  "properties": {}
2381
2753
  },
2754
+ "ExportClass": {
2755
+ "type": "string",
2756
+ "enum": [
2757
+ "bundle"
2758
+ ],
2759
+ "description": "An export class (VR-07)."
2760
+ },
2382
2761
  "ExternalBase": {
2383
2762
  "type": "object",
2384
2763
  "properties": {
@@ -2669,6 +3048,111 @@
2669
3048
  "mode": {
2670
3049
  "type": "string",
2671
3050
  "const": "worker"
3051
+ },
3052
+ "paused": {
3053
+ "type": "object",
3054
+ "properties": {
3055
+ "by": {
3056
+ "type": "string",
3057
+ "enum": [
3058
+ "owner",
3059
+ "operator"
3060
+ ]
3061
+ },
3062
+ "reason": {
3063
+ "type": "string",
3064
+ "maxLength": 500
3065
+ }
3066
+ },
3067
+ "required": [
3068
+ "by"
3069
+ ]
3070
+ },
3071
+ "hosted": {
3072
+ "type": "object",
3073
+ "properties": {
3074
+ "sender": {
3075
+ "type": "object",
3076
+ "properties": {
3077
+ "name": {
3078
+ "type": "string",
3079
+ "maxLength": 256
3080
+ },
3081
+ "verifiedBy": {
3082
+ "type": "string",
3083
+ "maxLength": 64
3084
+ }
3085
+ },
3086
+ "required": [
3087
+ "name"
3088
+ ]
3089
+ },
3090
+ "viewer": {
3091
+ "type": "object",
3092
+ "properties": {
3093
+ "kind": {
3094
+ "type": "string",
3095
+ "enum": [
3096
+ "account",
3097
+ "anonymous",
3098
+ "named"
3099
+ ]
3100
+ },
3101
+ "name": {
3102
+ "type": "string",
3103
+ "maxLength": 256
3104
+ },
3105
+ "verified": {
3106
+ "type": "boolean"
3107
+ }
3108
+ },
3109
+ "required": [
3110
+ "kind",
3111
+ "verified"
3112
+ ]
3113
+ },
3114
+ "signIn": {
3115
+ "type": "boolean"
3116
+ },
3117
+ "footer": {
3118
+ "type": "string",
3119
+ "maxLength": 500
3120
+ },
3121
+ "afterSubmit": {
3122
+ "type": "string",
3123
+ "maxLength": 500
3124
+ },
3125
+ "madeWith": {
3126
+ "type": "object",
3127
+ "properties": {
3128
+ "href": {
3129
+ "type": "string",
3130
+ "maxLength": 2048,
3131
+ "format": "uri"
3132
+ }
3133
+ }
3134
+ },
3135
+ "interstitial": {
3136
+ "type": "object",
3137
+ "properties": {
3138
+ "kind": {
3139
+ "type": "string",
3140
+ "maxLength": 64
3141
+ },
3142
+ "message": {
3143
+ "type": "string",
3144
+ "maxLength": 2000
3145
+ }
3146
+ },
3147
+ "required": [
3148
+ "kind"
3149
+ ]
3150
+ }
3151
+ },
3152
+ "required": [
3153
+ "viewer",
3154
+ "signIn"
3155
+ ]
2672
3156
  }
2673
3157
  },
2674
3158
  "required": [
@@ -2990,6 +3474,159 @@
2990
3474
  },
2991
3475
  "description": "Home settings from a spawning host; path is a check against the instance's home (D84), dependencies the dependency policy (D43), submission the home's policy (D102), ports those the host always provides (D105)."
2992
3476
  },
3477
+ "HomeId": {
3478
+ "type": "string",
3479
+ "pattern": "^hom_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
3480
+ "description": "Hosted home ID: \"hom_\" followed by a 26-character ULID."
3481
+ },
3482
+ "HostedPushParams": {
3483
+ "type": "object",
3484
+ "properties": {
3485
+ "artifactId": {
3486
+ "$ref": "#/definitions/ArtifactId"
3487
+ },
3488
+ "version": {
3489
+ "$ref": "#/definitions/VersionPush"
3490
+ },
3491
+ "requestId": {
3492
+ "type": "string",
3493
+ "minLength": 1
3494
+ }
3495
+ },
3496
+ "required": [
3497
+ "artifactId",
3498
+ "version"
3499
+ ]
3500
+ },
3501
+ "HostedPushResult": {
3502
+ "oneOf": [
3503
+ {
3504
+ "type": "object",
3505
+ "properties": {
3506
+ "status": {
3507
+ "type": "string",
3508
+ "const": "complete"
3509
+ },
3510
+ "versionId": {
3511
+ "type": "string"
3512
+ },
3513
+ "number": {
3514
+ "type": "integer",
3515
+ "minimum": -9007199254740991,
3516
+ "maximum": 9007199254740991
3517
+ },
3518
+ "route": {
3519
+ "$ref": "#/definitions/HostedRoute"
3520
+ }
3521
+ },
3522
+ "required": [
3523
+ "status",
3524
+ "versionId",
3525
+ "number",
3526
+ "route"
3527
+ ]
3528
+ },
3529
+ {
3530
+ "type": "object",
3531
+ "properties": {
3532
+ "status": {
3533
+ "type": "string",
3534
+ "const": "missing"
3535
+ },
3536
+ "files": {
3537
+ "readOnly": true,
3538
+ "type": "array",
3539
+ "items": {
3540
+ "type": "string",
3541
+ "pattern": "^[0-9a-f]{64}$"
3542
+ }
3543
+ },
3544
+ "route": {
3545
+ "$ref": "#/definitions/HostedRoute"
3546
+ }
3547
+ },
3548
+ "required": [
3549
+ "status",
3550
+ "files",
3551
+ "route"
3552
+ ]
3553
+ }
3554
+ ],
3555
+ "description": "A push's state: the client files the server still lacks, or the hosted version."
3556
+ },
3557
+ "HostedRoute": {
3558
+ "type": "object",
3559
+ "properties": {
3560
+ "routeId": {
3561
+ "type": "string"
3562
+ },
3563
+ "label": {
3564
+ "type": "string"
3565
+ }
3566
+ },
3567
+ "required": [
3568
+ "routeId",
3569
+ "label"
3570
+ ],
3571
+ "description": "An artifact's hosted route: its rte_ ID and random label."
3572
+ },
3573
+ "HostedSettings": {
3574
+ "type": "object",
3575
+ "properties": {
3576
+ "offline": {
3577
+ "type": "object",
3578
+ "properties": {
3579
+ "actions": {
3580
+ "type": "string",
3581
+ "enum": [
3582
+ "queue",
3583
+ "fail"
3584
+ ]
3585
+ },
3586
+ "limit": {
3587
+ "allOf": [
3588
+ {
3589
+ "$ref": "#/definitions/Duration"
3590
+ }
3591
+ ]
3592
+ }
3593
+ }
3594
+ },
3595
+ "actions": {
3596
+ "type": "string",
3597
+ "enum": [
3598
+ "signed-in",
3599
+ "link"
3600
+ ]
3601
+ },
3602
+ "submissions": {
3603
+ "type": "string",
3604
+ "enum": [
3605
+ "link",
3606
+ "signed-in"
3607
+ ]
3608
+ },
3609
+ "preview": {
3610
+ "type": "string",
3611
+ "enum": [
3612
+ "generic",
3613
+ "title"
3614
+ ]
3615
+ }
3616
+ },
3617
+ "description": "How an artifact behaves on a remote server: offline actions, who may act and submit, previews."
3618
+ },
3619
+ "HostedSubmissionParams": {
3620
+ "type": "object",
3621
+ "properties": {
3622
+ "submissionId": {
3623
+ "$ref": "#/definitions/SubmissionId"
3624
+ }
3625
+ },
3626
+ "required": [
3627
+ "submissionId"
3628
+ ]
3629
+ },
2993
3630
  "InstanceCapabilities": {
2994
3631
  "type": "object",
2995
3632
  "properties": {
@@ -3092,8 +3729,15 @@
3092
3729
  "type": "string",
3093
3730
  "enum": [
3094
3731
  "host",
3095
- "daemon"
3732
+ "daemon",
3733
+ "hosted"
3096
3734
  ]
3735
+ },
3736
+ "incarnation": {
3737
+ "type": "string"
3738
+ },
3739
+ "cursor": {
3740
+ "type": "string"
3097
3741
  }
3098
3742
  },
3099
3743
  "required": [
@@ -3165,6 +3809,13 @@
3165
3809
  "items": {
3166
3810
  "$ref": "#/definitions/Share"
3167
3811
  }
3812
+ },
3813
+ "links": {
3814
+ "readOnly": true,
3815
+ "type": "array",
3816
+ "items": {
3817
+ "$ref": "#/definitions/RemoteLink"
3818
+ }
3168
3819
  }
3169
3820
  },
3170
3821
  "required": [
@@ -3314,6 +3965,11 @@
3314
3965
  ],
3315
3966
  "description": "A successful JSON-RPC 2.0 response."
3316
3967
  },
3968
+ "LinkId": {
3969
+ "type": "string",
3970
+ "pattern": "^lnk_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
3971
+ "description": "Instance link ID: \"lnk_\" followed by a 26-character ULID."
3972
+ },
3317
3973
  "LivePushParams": {
3318
3974
  "type": "object",
3319
3975
  "properties": {
@@ -3371,7 +4027,7 @@
3371
4027
  "properties": {
3372
4028
  "key": {
3373
4029
  "type": "string",
3374
- "pattern": "^[A-Za-z_$][A-Za-z0-9_$]{0,127}$"
4030
+ "pattern": "^(?:[A-Za-z_$][A-Za-z0-9_$]{0,127}$|\\$tally\\/[^\\u0000-\\u001f\\u007f]{1,256}$)"
3375
4031
  },
3376
4032
  "window": {
3377
4033
  "type": "integer",
@@ -3423,6 +4079,13 @@
3423
4079
  "$ref": "#/definitions/HomeConfig"
3424
4080
  }
3425
4081
  ]
4082
+ },
4083
+ "link": {
4084
+ "allOf": [
4085
+ {
4086
+ "$ref": "#/definitions/OwnerLinkInfo"
4087
+ }
4088
+ ]
3426
4089
  }
3427
4090
  },
3428
4091
  "required": [
@@ -3529,6 +4192,41 @@
3529
4192
  ],
3530
4193
  "description": "A draft field a version doesn't cover: its ID, label, value and source version."
3531
4194
  },
4195
+ "OwnerLinkInfo": {
4196
+ "type": "object",
4197
+ "properties": {
4198
+ "instanceId": {
4199
+ "type": "string",
4200
+ "minLength": 1
4201
+ },
4202
+ "relayMark": {
4203
+ "type": "integer",
4204
+ "minimum": 0,
4205
+ "maximum": 9007199254740991
4206
+ },
4207
+ "followed": {
4208
+ "type": "object",
4209
+ "properties": {
4210
+ "incarnation": {
4211
+ "type": "string",
4212
+ "minLength": 1
4213
+ },
4214
+ "cursor": {
4215
+ "$ref": "#/definitions/Cursor"
4216
+ }
4217
+ },
4218
+ "required": [
4219
+ "incarnation",
4220
+ "cursor"
4221
+ ]
4222
+ }
4223
+ },
4224
+ "required": [
4225
+ "instanceId",
4226
+ "relayMark"
4227
+ ],
4228
+ "description": "An owner instance's link on its binding session: its link ID, its relay mark and the hosted home's position it committed."
4229
+ },
3532
4230
  "PollResult": {
3533
4231
  "type": "object",
3534
4232
  "properties": {
@@ -3646,18 +4344,255 @@
3646
4344
  "pattern": "^[a-z][a-zA-Z0-9]*$",
3647
4345
  "description": "A host port name: identity, submissions, drafts, reviews, addressing, trustedControls, capture, secrets, pty, or ai (reserved). Open for later ports."
3648
4346
  },
3649
- "PortSecretsGetParams": {
4347
+ "PortRelayAuthorParams": {
3650
4348
  "type": "object",
3651
4349
  "properties": {
3652
- "artifactId": {
3653
- "type": "string"
4350
+ "method": {
4351
+ "type": "string",
4352
+ "enum": [
4353
+ "artifact/create",
4354
+ "artifact/verify",
4355
+ "artifact/publish",
4356
+ "artifact/get",
4357
+ "workspace/root",
4358
+ "workspace/allocate",
4359
+ "workspace/read",
4360
+ "workspace/apply",
4361
+ "verify/screenshot"
4362
+ ]
3654
4363
  },
3655
- "name": {
3656
- "type": "string"
3657
- }
4364
+ "params": {}
3658
4365
  },
3659
4366
  "required": [
3660
- "artifactId",
4367
+ "method",
4368
+ "params"
4369
+ ]
4370
+ },
4371
+ "PortRelayAuthorResult": {},
4372
+ "PortRelayCallParams": {
4373
+ "type": "object",
4374
+ "properties": {
4375
+ "callId": {
4376
+ "type": "string",
4377
+ "minLength": 1
4378
+ },
4379
+ "artifactId": {
4380
+ "type": "string",
4381
+ "minLength": 1
4382
+ },
4383
+ "versionId": {
4384
+ "type": "string",
4385
+ "minLength": 1
4386
+ },
4387
+ "fnId": {
4388
+ "type": "string",
4389
+ "minLength": 1
4390
+ },
4391
+ "args": {
4392
+ "$ref": "#/definitions/Batches"
4393
+ },
4394
+ "viewer": {
4395
+ "allOf": [
4396
+ {
4397
+ "$ref": "#/definitions/RelayViewer"
4398
+ }
4399
+ ]
4400
+ },
4401
+ "viewId": {
4402
+ "type": "string"
4403
+ }
4404
+ },
4405
+ "required": [
4406
+ "callId",
4407
+ "artifactId",
4408
+ "versionId",
4409
+ "fnId",
4410
+ "args"
4411
+ ]
4412
+ },
4413
+ "PortRelayCallResult": {
4414
+ "type": "object",
4415
+ "properties": {
4416
+ "accepted": {
4417
+ "type": "boolean",
4418
+ "const": true
4419
+ }
4420
+ },
4421
+ "required": [
4422
+ "accepted"
4423
+ ]
4424
+ },
4425
+ "PortRelayCancelParams": {
4426
+ "type": "object",
4427
+ "properties": {
4428
+ "runId": {
4429
+ "type": "string",
4430
+ "minLength": 1
4431
+ }
4432
+ },
4433
+ "required": [
4434
+ "runId"
4435
+ ]
4436
+ },
4437
+ "PortRelayCancelResult": {
4438
+ "type": "object",
4439
+ "properties": {}
4440
+ },
4441
+ "PortRelayLiveParams": {
4442
+ "type": "object",
4443
+ "properties": {
4444
+ "artifactId": {
4445
+ "type": "string",
4446
+ "minLength": 1
4447
+ },
4448
+ "versionId": {
4449
+ "type": "string",
4450
+ "minLength": 1
4451
+ },
4452
+ "interest": {
4453
+ "type": "string",
4454
+ "enum": [
4455
+ "start",
4456
+ "renew",
4457
+ "stop",
4458
+ "refresh"
4459
+ ]
4460
+ },
4461
+ "keys": {
4462
+ "readOnly": true,
4463
+ "maxItems": 1000,
4464
+ "type": "array",
4465
+ "items": {
4466
+ "type": "string",
4467
+ "pattern": "^[A-Za-z_$][A-Za-z0-9_$]{0,127}$"
4468
+ }
4469
+ }
4470
+ },
4471
+ "required": [
4472
+ "artifactId",
4473
+ "versionId",
4474
+ "interest",
4475
+ "keys"
4476
+ ]
4477
+ },
4478
+ "PortRelayLiveResult": {
4479
+ "type": "object",
4480
+ "properties": {}
4481
+ },
4482
+ "PortRelayReconcileParams": {
4483
+ "type": "object",
4484
+ "properties": {
4485
+ "runs": {
4486
+ "readOnly": true,
4487
+ "maxItems": 10000,
4488
+ "type": "array",
4489
+ "items": {
4490
+ "type": "string",
4491
+ "minLength": 1
4492
+ }
4493
+ },
4494
+ "held": {
4495
+ "readOnly": true,
4496
+ "maxItems": 10000,
4497
+ "type": "array",
4498
+ "items": {
4499
+ "$ref": "#/definitions/RelayHeld"
4500
+ }
4501
+ }
4502
+ },
4503
+ "required": [
4504
+ "runs"
4505
+ ]
4506
+ },
4507
+ "PortRelayReconcileResult": {
4508
+ "type": "object",
4509
+ "properties": {
4510
+ "runs": {
4511
+ "readOnly": true,
4512
+ "type": "array",
4513
+ "items": {
4514
+ "$ref": "#/definitions/RelayReconciled"
4515
+ }
4516
+ }
4517
+ },
4518
+ "required": [
4519
+ "runs"
4520
+ ]
4521
+ },
4522
+ "PortRelayRunParams": {
4523
+ "type": "object",
4524
+ "properties": {
4525
+ "runId": {
4526
+ "type": "string",
4527
+ "minLength": 1
4528
+ },
4529
+ "seq": {
4530
+ "type": "integer",
4531
+ "minimum": 1,
4532
+ "maximum": 9007199254740991
4533
+ },
4534
+ "artifactId": {
4535
+ "type": "string",
4536
+ "minLength": 1
4537
+ },
4538
+ "versionId": {
4539
+ "type": "string",
4540
+ "minLength": 1
4541
+ },
4542
+ "fnId": {
4543
+ "type": "string",
4544
+ "minLength": 1
4545
+ },
4546
+ "args": {
4547
+ "$ref": "#/definitions/Batches"
4548
+ },
4549
+ "key": {
4550
+ "type": "string"
4551
+ },
4552
+ "viewer": {
4553
+ "allOf": [
4554
+ {
4555
+ "$ref": "#/definitions/RelayViewer"
4556
+ }
4557
+ ]
4558
+ },
4559
+ "viewId": {
4560
+ "type": "string"
4561
+ }
4562
+ },
4563
+ "required": [
4564
+ "runId",
4565
+ "seq",
4566
+ "artifactId",
4567
+ "versionId",
4568
+ "fnId",
4569
+ "args"
4570
+ ]
4571
+ },
4572
+ "PortRelayRunResult": {
4573
+ "type": "object",
4574
+ "properties": {
4575
+ "accepted": {
4576
+ "type": "boolean",
4577
+ "const": true
4578
+ }
4579
+ },
4580
+ "required": [
4581
+ "accepted"
4582
+ ]
4583
+ },
4584
+ "PortSecretsGetParams": {
4585
+ "type": "object",
4586
+ "properties": {
4587
+ "artifactId": {
4588
+ "type": "string"
4589
+ },
4590
+ "name": {
4591
+ "type": "string"
4592
+ }
4593
+ },
4594
+ "required": [
4595
+ "artifactId",
3661
4596
  "name"
3662
4597
  ],
3663
4598
  "description": "The artifact and the name of the secret its server code asks for."
@@ -3680,123 +4615,756 @@
3680
4615
  }
3681
4616
  },
3682
4617
  "required": [
3683
- "accepted"
4618
+ "accepted"
4619
+ ]
4620
+ },
4621
+ {
4622
+ "type": "object",
4623
+ "properties": {
4624
+ "accepted": {
4625
+ "type": "boolean",
4626
+ "const": false
4627
+ },
4628
+ "reason": {
4629
+ "type": "string",
4630
+ "minLength": 1
4631
+ },
4632
+ "retry": {
4633
+ "type": "boolean"
4634
+ }
4635
+ },
4636
+ "required": [
4637
+ "accepted",
4638
+ "reason",
4639
+ "retry"
4640
+ ]
4641
+ }
4642
+ ]
4643
+ },
4644
+ "PortTrustedControlsActivatedParams": {
4645
+ "type": "object",
4646
+ "properties": {
4647
+ "artifactId": {
4648
+ "$ref": "#/definitions/ArtifactId"
4649
+ },
4650
+ "control": {
4651
+ "$ref": "#/definitions/TrustedControl"
4652
+ },
4653
+ "viewer": {
4654
+ "$ref": "#/definitions/Viewer"
4655
+ },
4656
+ "viewId": {
4657
+ "$ref": "#/definitions/ViewId"
4658
+ },
4659
+ "detail": {
4660
+ "type": "object",
4661
+ "propertyNames": {
4662
+ "type": "string"
4663
+ },
4664
+ "additionalProperties": {
4665
+ "type": "string"
4666
+ }
4667
+ }
4668
+ },
4669
+ "required": [
4670
+ "artifactId",
4671
+ "control",
4672
+ "viewer",
4673
+ "viewId"
4674
+ ],
4675
+ "description": "A trusted control a person used: the artifact, control, viewer, view and detail."
4676
+ },
4677
+ "PortTrustedControlsPolicyParams": {
4678
+ "type": "object",
4679
+ "properties": {
4680
+ "artifact": {
4681
+ "$ref": "#/definitions/ArtifactSummary"
4682
+ }
4683
+ },
4684
+ "required": [
4685
+ "artifact"
4686
+ ],
4687
+ "description": "The artifact a frame is about to show, for its host's controls policy."
4688
+ },
4689
+ "PublishReceipt": {
4690
+ "type": "object",
4691
+ "properties": {
4692
+ "artifactId": {
4693
+ "$ref": "#/definitions/ArtifactId"
4694
+ },
4695
+ "versionId": {
4696
+ "$ref": "#/definitions/VersionId"
4697
+ },
4698
+ "version": {
4699
+ "type": "integer",
4700
+ "minimum": 1,
4701
+ "maximum": 9007199254740991
4702
+ },
4703
+ "url": {
4704
+ "type": "string"
4705
+ },
4706
+ "tokenId": {
4707
+ "allOf": [
4708
+ {
4709
+ "$ref": "#/definitions/TokenId"
4710
+ }
4711
+ ]
4712
+ },
4713
+ "cursor": {
4714
+ "$ref": "#/definitions/Cursor"
4715
+ },
4716
+ "reused": {
4717
+ "type": "boolean"
4718
+ },
4719
+ "forcedDiagnostics": {
4720
+ "readOnly": true,
4721
+ "type": "array",
4722
+ "items": {
4723
+ "type": "string"
4724
+ }
4725
+ }
4726
+ },
4727
+ "required": [
4728
+ "artifactId",
4729
+ "versionId",
4730
+ "version",
4731
+ "cursor",
4732
+ "reused"
4733
+ ],
4734
+ "description": "The receipt of artifact/publish: artifact, version, number, capability URL when served, event cursor, reuse."
4735
+ },
4736
+ "RelayCallBatchParams": {
4737
+ "type": "object",
4738
+ "properties": {
4739
+ "callId": {
4740
+ "type": "string",
4741
+ "minLength": 1
4742
+ },
4743
+ "seq": {
4744
+ "type": "integer",
4745
+ "minimum": 1,
4746
+ "maximum": 9007199254740991
4747
+ },
4748
+ "batches": {
4749
+ "allOf": [
4750
+ {
4751
+ "$ref": "#/definitions/Batches"
4752
+ }
4753
+ ]
4754
+ },
4755
+ "end": {
4756
+ "type": "object",
4757
+ "properties": {
4758
+ "status": {
4759
+ "type": "string",
4760
+ "enum": [
4761
+ "succeeded",
4762
+ "failed"
4763
+ ]
4764
+ },
4765
+ "error": {
4766
+ "type": "object",
4767
+ "properties": {
4768
+ "message": {
4769
+ "type": "string",
4770
+ "maxLength": 10000
4771
+ },
4772
+ "code": {
4773
+ "type": "string",
4774
+ "maxLength": 200
4775
+ }
4776
+ },
4777
+ "required": [
4778
+ "message"
4779
+ ]
4780
+ }
4781
+ },
4782
+ "required": [
4783
+ "status"
4784
+ ]
4785
+ }
4786
+ },
4787
+ "required": [
4788
+ "callId",
4789
+ "seq"
4790
+ ]
4791
+ },
4792
+ "RelayCallBatchResult": {
4793
+ "type": "object",
4794
+ "properties": {}
4795
+ },
4796
+ "RelayEffectParams": {
4797
+ "type": "object",
4798
+ "properties": {
4799
+ "artifactId": {
4800
+ "type": "string",
4801
+ "minLength": 1
4802
+ },
4803
+ "runId": {
4804
+ "type": "string"
4805
+ },
4806
+ "callId": {
4807
+ "type": "string"
4808
+ },
4809
+ "kind": {
4810
+ "type": "string",
4811
+ "enum": [
4812
+ "signal",
4813
+ "emit"
4814
+ ]
4815
+ },
4816
+ "name": {
4817
+ "type": "string",
4818
+ "minLength": 1,
4819
+ "maxLength": 200
4820
+ },
4821
+ "payload": {}
4822
+ },
4823
+ "required": [
4824
+ "artifactId",
4825
+ "kind",
4826
+ "name"
4827
+ ]
4828
+ },
4829
+ "RelayEffectResult": {
4830
+ "type": "object",
4831
+ "properties": {
4832
+ "cursor": {
4833
+ "$ref": "#/definitions/Cursor"
4834
+ }
4835
+ },
4836
+ "required": [
4837
+ "cursor"
4838
+ ]
4839
+ },
4840
+ "RelayHeld": {
4841
+ "type": "object",
4842
+ "properties": {
4843
+ "runId": {
4844
+ "type": "string",
4845
+ "minLength": 1
4846
+ },
4847
+ "log": {
4848
+ "type": "integer",
4849
+ "minimum": 0,
4850
+ "maximum": 9007199254740991
4851
+ },
4852
+ "batches": {
4853
+ "type": "integer",
4854
+ "minimum": 0,
4855
+ "maximum": 9007199254740991
4856
+ }
4857
+ },
4858
+ "required": [
4859
+ "runId",
4860
+ "log",
4861
+ "batches"
4862
+ ]
4863
+ },
4864
+ "RelayLiveValueParams": {
4865
+ "type": "object",
4866
+ "properties": {
4867
+ "artifactId": {
4868
+ "type": "string",
4869
+ "minLength": 1
4870
+ },
4871
+ "versionId": {
4872
+ "type": "string",
4873
+ "minLength": 1
4874
+ },
4875
+ "key": {
4876
+ "type": "string",
4877
+ "pattern": "^[A-Za-z_$][A-Za-z0-9_$]{0,127}$"
4878
+ },
4879
+ "value": {
4880
+ "allOf": [
4881
+ {
4882
+ "$ref": "#/definitions/Batches"
4883
+ }
4884
+ ]
4885
+ },
4886
+ "error": {
4887
+ "type": "object",
4888
+ "properties": {
4889
+ "message": {
4890
+ "type": "string"
4891
+ },
4892
+ "code": {
4893
+ "type": "string"
4894
+ }
4895
+ },
4896
+ "required": [
4897
+ "message"
4898
+ ]
4899
+ },
4900
+ "at": {
4901
+ "type": "string"
4902
+ }
4903
+ },
4904
+ "required": [
4905
+ "artifactId",
4906
+ "versionId",
4907
+ "key",
4908
+ "at"
4909
+ ]
4910
+ },
4911
+ "RelayLiveValueResult": {
4912
+ "type": "object",
4913
+ "properties": {
4914
+ "revision": {
4915
+ "type": "string"
4916
+ }
4917
+ }
4918
+ },
4919
+ "RelayReconciled": {
4920
+ "type": "object",
4921
+ "properties": {
4922
+ "runId": {
4923
+ "type": "string"
4924
+ },
4925
+ "state": {
4926
+ "anyOf": [
4927
+ {
4928
+ "$ref": "#/definitions/RunState"
4929
+ },
4930
+ {
4931
+ "type": "string",
4932
+ "const": "unknown-to-owner"
4933
+ }
4934
+ ]
4935
+ }
4936
+ },
4937
+ "required": [
4938
+ "runId",
4939
+ "state"
4940
+ ]
4941
+ },
4942
+ "RelayRunEnd": {
4943
+ "type": "object",
4944
+ "properties": {
4945
+ "status": {
4946
+ "type": "string",
4947
+ "enum": [
4948
+ "succeeded",
4949
+ "failed",
4950
+ "cancelled"
4951
+ ]
4952
+ },
4953
+ "reason": {
4954
+ "type": "string",
4955
+ "maxLength": 200
4956
+ },
4957
+ "error": {
4958
+ "type": "object",
4959
+ "properties": {
4960
+ "message": {
4961
+ "type": "string",
4962
+ "maxLength": 10000
4963
+ },
4964
+ "code": {
4965
+ "type": "string",
4966
+ "maxLength": 200
4967
+ }
4968
+ },
4969
+ "required": [
4970
+ "message"
4971
+ ]
4972
+ }
4973
+ },
4974
+ "required": [
4975
+ "status"
4976
+ ]
4977
+ },
4978
+ "RelayRunUpdateParams": {
4979
+ "type": "object",
4980
+ "properties": {
4981
+ "runId": {
4982
+ "type": "string",
4983
+ "minLength": 1
4984
+ },
4985
+ "seq": {
4986
+ "type": "integer",
4987
+ "minimum": 1,
4988
+ "maximum": 9007199254740991
4989
+ },
4990
+ "running": {
4991
+ "type": "boolean"
4992
+ },
4993
+ "progress": {
4994
+ "allOf": [
4995
+ {
4996
+ "$ref": "#/definitions/RunProgress"
4997
+ }
4998
+ ]
4999
+ },
5000
+ "log": {
5001
+ "readOnly": true,
5002
+ "type": "array",
5003
+ "items": {
5004
+ "type": "string"
5005
+ }
5006
+ },
5007
+ "logFrom": {
5008
+ "type": "integer",
5009
+ "minimum": 0,
5010
+ "maximum": 9007199254740991
5011
+ },
5012
+ "batches": {
5013
+ "allOf": [
5014
+ {
5015
+ "$ref": "#/definitions/Batches"
5016
+ }
5017
+ ]
5018
+ },
5019
+ "batchFrom": {
5020
+ "type": "integer",
5021
+ "minimum": 0,
5022
+ "maximum": 9007199254740991
5023
+ },
5024
+ "end": {
5025
+ "allOf": [
5026
+ {
5027
+ "$ref": "#/definitions/RelayRunEnd"
5028
+ }
5029
+ ]
5030
+ }
5031
+ },
5032
+ "required": [
5033
+ "runId",
5034
+ "seq"
5035
+ ]
5036
+ },
5037
+ "RelayRunUpdateResult": {
5038
+ "type": "object",
5039
+ "properties": {}
5040
+ },
5041
+ "RelayViewer": {
5042
+ "type": "object",
5043
+ "properties": {
5044
+ "id": {
5045
+ "type": "string",
5046
+ "minLength": 1
5047
+ },
5048
+ "name": {
5049
+ "type": "string"
5050
+ }
5051
+ },
5052
+ "required": [
5053
+ "id"
5054
+ ],
5055
+ "description": "The viewer a relayed run or call acts for: the hosted home's viewer ID and name."
5056
+ },
5057
+ "RemoteLink": {
5058
+ "type": "object",
5059
+ "properties": {
5060
+ "server": {
5061
+ "$ref": "#/definitions/ServerOrigin"
5062
+ },
5063
+ "account": {
5064
+ "type": "object",
5065
+ "properties": {
5066
+ "id": {
5067
+ "type": "string"
5068
+ },
5069
+ "name": {
5070
+ "type": "string"
5071
+ }
5072
+ },
5073
+ "required": [
5074
+ "id"
5075
+ ]
5076
+ },
5077
+ "instanceId": {
5078
+ "type": "string"
5079
+ },
5080
+ "name": {
5081
+ "type": "string"
5082
+ },
5083
+ "default": {
5084
+ "type": "boolean"
5085
+ },
5086
+ "state": {
5087
+ "type": "string",
5088
+ "enum": [
5089
+ "connected",
5090
+ "connecting",
5091
+ "offline",
5092
+ "signed-out"
5093
+ ]
5094
+ },
5095
+ "since": {
5096
+ "type": "string"
5097
+ },
5098
+ "pendingPushes": {
5099
+ "type": "integer",
5100
+ "minimum": 0,
5101
+ "maximum": 9007199254740991
5102
+ },
5103
+ "lastError": {
5104
+ "type": "string"
5105
+ }
5106
+ },
5107
+ "required": [
5108
+ "server",
5109
+ "account",
5110
+ "instanceId",
5111
+ "name",
5112
+ "default",
5113
+ "state",
5114
+ "since",
5115
+ "pendingPushes"
5116
+ ],
5117
+ "description": "One remote server this home is linked to, and the state of the link."
5118
+ },
5119
+ "RemoteLinkParams": {
5120
+ "type": "object",
5121
+ "properties": {
5122
+ "server": {
5123
+ "$ref": "#/definitions/ServerOrigin"
5124
+ },
5125
+ "key": {
5126
+ "type": "string",
5127
+ "minLength": 20,
5128
+ "maxLength": 512
5129
+ },
5130
+ "default": {
5131
+ "type": "boolean"
5132
+ }
5133
+ },
5134
+ "required": [
5135
+ "server",
5136
+ "key"
5137
+ ]
5138
+ },
5139
+ "RemoteLinkResult": {
5140
+ "type": "object",
5141
+ "properties": {
5142
+ "server": {
5143
+ "$ref": "#/definitions/ServerOrigin"
5144
+ },
5145
+ "account": {
5146
+ "type": "object",
5147
+ "properties": {
5148
+ "id": {
5149
+ "type": "string"
5150
+ },
5151
+ "name": {
5152
+ "type": "string"
5153
+ }
5154
+ },
5155
+ "required": [
5156
+ "id"
5157
+ ]
5158
+ },
5159
+ "instanceId": {
5160
+ "type": "string"
5161
+ },
5162
+ "default": {
5163
+ "type": "boolean"
5164
+ }
5165
+ },
5166
+ "required": [
5167
+ "server",
5168
+ "account",
5169
+ "instanceId",
5170
+ "default"
5171
+ ],
5172
+ "description": "A home linked to a remote server with an operator-issued key."
5173
+ },
5174
+ "RemoteLoginParams": {
5175
+ "type": "object",
5176
+ "properties": {
5177
+ "server": {
5178
+ "allOf": [
5179
+ {
5180
+ "$ref": "#/definitions/ServerOrigin"
5181
+ }
5182
+ ]
5183
+ },
5184
+ "default": {
5185
+ "type": "boolean"
5186
+ },
5187
+ "requestId": {
5188
+ "type": "string",
5189
+ "minLength": 1
5190
+ }
5191
+ }
5192
+ },
5193
+ "RemoteLoginResult": {
5194
+ "type": "object",
5195
+ "properties": {
5196
+ "loginId": {
5197
+ "type": "string"
5198
+ },
5199
+ "server": {
5200
+ "$ref": "#/definitions/ServerOrigin"
5201
+ },
5202
+ "verificationUri": {
5203
+ "type": "string"
5204
+ },
5205
+ "verificationUriComplete": {
5206
+ "type": "string"
5207
+ },
5208
+ "userCode": {
5209
+ "type": "string"
5210
+ },
5211
+ "expiresAt": {
5212
+ "type": "string"
5213
+ }
5214
+ },
5215
+ "required": [
5216
+ "loginId",
5217
+ "server",
5218
+ "verificationUri",
5219
+ "userCode",
5220
+ "expiresAt"
5221
+ ],
5222
+ "description": "A device-grant sign-in that started: where to go and the code to enter."
5223
+ },
5224
+ "RemoteLoginWaitParams": {
5225
+ "type": "object",
5226
+ "properties": {
5227
+ "loginId": {
5228
+ "type": "string",
5229
+ "minLength": 1
5230
+ },
5231
+ "timeoutMs": {
5232
+ "type": "integer",
5233
+ "minimum": 0,
5234
+ "maximum": 2147483647
5235
+ }
5236
+ },
5237
+ "required": [
5238
+ "loginId",
5239
+ "timeoutMs"
5240
+ ]
5241
+ },
5242
+ "RemoteLoginWaitResult": {
5243
+ "oneOf": [
5244
+ {
5245
+ "type": "object",
5246
+ "properties": {
5247
+ "status": {
5248
+ "type": "string",
5249
+ "const": "signed-in"
5250
+ },
5251
+ "server": {
5252
+ "$ref": "#/definitions/ServerOrigin"
5253
+ },
5254
+ "account": {
5255
+ "type": "object",
5256
+ "properties": {
5257
+ "id": {
5258
+ "type": "string"
5259
+ },
5260
+ "name": {
5261
+ "type": "string"
5262
+ }
5263
+ },
5264
+ "required": [
5265
+ "id"
5266
+ ]
5267
+ },
5268
+ "instanceId": {
5269
+ "type": "string"
5270
+ }
5271
+ },
5272
+ "required": [
5273
+ "status",
5274
+ "server",
5275
+ "account",
5276
+ "instanceId"
3684
5277
  ]
3685
5278
  },
3686
5279
  {
3687
5280
  "type": "object",
3688
5281
  "properties": {
3689
- "accepted": {
3690
- "type": "boolean",
3691
- "const": false
3692
- },
3693
- "reason": {
5282
+ "status": {
3694
5283
  "type": "string",
3695
- "minLength": 1
3696
- },
3697
- "retry": {
3698
- "type": "boolean"
5284
+ "const": "pending"
3699
5285
  }
3700
5286
  },
3701
5287
  "required": [
3702
- "accepted",
3703
- "reason",
3704
- "retry"
5288
+ "status"
3705
5289
  ]
3706
5290
  }
3707
- ]
5291
+ ],
5292
+ "description": "A sign-in's end: signed in with the account and instance link, or pending."
3708
5293
  },
3709
- "PortTrustedControlsActivatedParams": {
5294
+ "RemoteLogoutParams": {
3710
5295
  "type": "object",
3711
5296
  "properties": {
3712
- "artifactId": {
3713
- "$ref": "#/definitions/ArtifactId"
3714
- },
3715
- "control": {
3716
- "$ref": "#/definitions/TrustedControl"
3717
- },
3718
- "viewer": {
3719
- "$ref": "#/definitions/Viewer"
3720
- },
3721
- "viewId": {
3722
- "$ref": "#/definitions/ViewId"
5297
+ "server": {
5298
+ "allOf": [
5299
+ {
5300
+ "$ref": "#/definitions/ServerOrigin"
5301
+ }
5302
+ ]
3723
5303
  },
3724
- "detail": {
3725
- "type": "object",
3726
- "propertyNames": {
3727
- "type": "string"
3728
- },
3729
- "additionalProperties": {
3730
- "type": "string"
5304
+ "forget": {
5305
+ "type": "boolean"
5306
+ }
5307
+ }
5308
+ },
5309
+ "RemoteLogoutResult": {
5310
+ "type": "object",
5311
+ "properties": {
5312
+ "servers": {
5313
+ "readOnly": true,
5314
+ "type": "array",
5315
+ "items": {
5316
+ "$ref": "#/definitions/ServerOrigin"
3731
5317
  }
3732
5318
  }
3733
5319
  },
3734
5320
  "required": [
3735
- "artifactId",
3736
- "control",
3737
- "viewer",
3738
- "viewId"
5321
+ "servers"
3739
5322
  ],
3740
- "description": "A trusted control a person used: the artifact, control, viewer, view and detail."
5323
+ "description": "The servers signed out of."
3741
5324
  },
3742
- "PortTrustedControlsPolicyParams": {
5325
+ "RemoteStatusParams": {
5326
+ "type": "object",
5327
+ "properties": {}
5328
+ },
5329
+ "RemoteStatusResult": {
3743
5330
  "type": "object",
3744
5331
  "properties": {
3745
- "artifact": {
3746
- "$ref": "#/definitions/ArtifactSummary"
5332
+ "links": {
5333
+ "readOnly": true,
5334
+ "type": "array",
5335
+ "items": {
5336
+ "$ref": "#/definitions/RemoteLink"
5337
+ }
3747
5338
  }
3748
5339
  },
3749
5340
  "required": [
3750
- "artifact"
5341
+ "links"
3751
5342
  ],
3752
- "description": "The artifact a frame is about to show, for its host's controls policy."
5343
+ "description": "Every remote server this home is linked to."
3753
5344
  },
3754
- "PublishReceipt": {
5345
+ "RemoteTokenParams": {
3755
5346
  "type": "object",
3756
5347
  "properties": {
3757
- "artifactId": {
3758
- "$ref": "#/definitions/ArtifactId"
3759
- },
3760
- "versionId": {
3761
- "$ref": "#/definitions/VersionId"
3762
- },
3763
- "version": {
3764
- "type": "integer",
3765
- "minimum": 1,
3766
- "maximum": 9007199254740991
3767
- },
3768
- "url": {
5348
+ "accessToken": {
5349
+ "type": "string",
5350
+ "minLength": 1
5351
+ }
5352
+ },
5353
+ "required": [
5354
+ "accessToken"
5355
+ ]
5356
+ },
5357
+ "RemoteTokenResult": {
5358
+ "type": "object",
5359
+ "properties": {
5360
+ "expiresAt": {
3769
5361
  "type": "string"
3770
- },
3771
- "tokenId": {
3772
- "allOf": [
3773
- {
3774
- "$ref": "#/definitions/TokenId"
3775
- }
3776
- ]
3777
- },
3778
- "cursor": {
3779
- "$ref": "#/definitions/Cursor"
3780
- },
3781
- "reused": {
3782
- "type": "boolean"
3783
- },
3784
- "forcedDiagnostics": {
3785
- "readOnly": true,
3786
- "type": "array",
3787
- "items": {
3788
- "type": "string"
3789
- }
3790
5362
  }
3791
5363
  },
3792
5364
  "required": [
3793
- "artifactId",
3794
- "versionId",
3795
- "version",
3796
- "cursor",
3797
- "reused"
5365
+ "expiresAt"
3798
5366
  ],
3799
- "description": "The receipt of artifact/publish: artifact, version, number, capability URL when served, event cursor, reuse."
5367
+ "description": "When the binding closes unless its token is refreshed again."
3800
5368
  },
3801
5369
  "ResultComment": {
3802
5370
  "type": "object",
@@ -4118,6 +5686,13 @@
4118
5686
  "items": {
4119
5687
  "$ref": "#/definitions/DeliveryStatus"
4120
5688
  }
5689
+ },
5690
+ "origin": {
5691
+ "allOf": [
5692
+ {
5693
+ "$ref": "#/definitions/EventOrigin"
5694
+ }
5695
+ ]
4121
5696
  }
4122
5697
  },
4123
5698
  "required": [
@@ -4369,6 +5944,11 @@
4369
5944
  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
4370
5945
  "description": "Protocol revision: a calendar date in YYYY-MM-DD form."
4371
5946
  },
5947
+ "RouteId": {
5948
+ "type": "string",
5949
+ "pattern": "^rte_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
5950
+ "description": "Hosted route ID: \"rte_\" followed by a 26-character ULID."
5951
+ },
4372
5952
  "RunAttachRequest": {
4373
5953
  "type": "object",
4374
5954
  "properties": {
@@ -4528,7 +6108,8 @@
4528
6108
  "waiting",
4529
6109
  "succeeded",
4530
6110
  "failed",
4531
- "cancelled"
6111
+ "cancelled",
6112
+ "unknown"
4532
6113
  ]
4533
6114
  },
4534
6115
  "reason": {
@@ -4583,6 +6164,9 @@
4583
6164
  "type": "integer",
4584
6165
  "minimum": 0,
4585
6166
  "maximum": 9007199254740991
6167
+ },
6168
+ "ownerUnreachable": {
6169
+ "type": "boolean"
4586
6170
  }
4587
6171
  },
4588
6172
  "required": [
@@ -4718,6 +6302,11 @@
4718
6302
  ],
4719
6303
  "description": "A secret's name, value and optional artifact scope."
4720
6304
  },
6305
+ "ServerOrigin": {
6306
+ "type": "string",
6307
+ "pattern": "^https?:\\/\\/[^/?#\\s]+$",
6308
+ "description": "A remote server, by its API origin, such as https://api.example."
6309
+ },
4721
6310
  "Sha256": {
4722
6311
  "type": "string",
4723
6312
  "pattern": "^[0-9a-f]{64}$",
@@ -4841,6 +6430,10 @@
4841
6430
  "via": {
4842
6431
  "$ref": "#/definitions/ShareVia"
4843
6432
  },
6433
+ "server": {
6434
+ "type": "string",
6435
+ "pattern": "^https?:\\/\\/[^/?#\\s]+$"
6436
+ },
4844
6437
  "ttl": {
4845
6438
  "allOf": [
4846
6439
  {
@@ -4991,9 +6584,10 @@
4991
6584
  "enum": [
4992
6585
  "tailnet",
4993
6586
  "funnel",
4994
- "cloudflare"
6587
+ "cloudflare",
6588
+ "remote"
4995
6589
  ],
4996
- "description": "How a share reaches its viewers: tailnet, funnel or cloudflare."
6590
+ "description": "How a share reaches its viewers: tailnet, funnel or cloudflare, or remote: hosted on a remote server (D165)."
4997
6591
  },
4998
6592
  "ShellSubmitRequest": {
4999
6593
  "type": "object",
@@ -5131,6 +6725,18 @@
5131
6725
  "agent",
5132
6726
  "host"
5133
6727
  ]
6728
+ },
6729
+ "causation": {
6730
+ "type": "object",
6731
+ "properties": {
6732
+ "runId": {
6733
+ "type": "string",
6734
+ "minLength": 1
6735
+ }
6736
+ },
6737
+ "required": [
6738
+ "runId"
6739
+ ]
5134
6740
  }
5135
6741
  },
5136
6742
  "required": [
@@ -5231,6 +6837,17 @@
5231
6837
  },
5232
6838
  "results": {
5233
6839
  "$ref": "#/definitions/Results"
6840
+ },
6841
+ "snapshot": {
6842
+ "type": "string",
6843
+ "maxLength": 41943040
6844
+ },
6845
+ "cursor": {
6846
+ "allOf": [
6847
+ {
6848
+ "$ref": "#/definitions/Cursor"
6849
+ }
6850
+ ]
5234
6851
  }
5235
6852
  },
5236
6853
  "required": [
@@ -5405,6 +7022,37 @@
5405
7022
  ],
5406
7023
  "description": "A browser submit: the view and the draft revision the viewer saw."
5407
7024
  },
7025
+ "TallySpec": {
7026
+ "type": "object",
7027
+ "properties": {
7028
+ "field": {
7029
+ "type": "string",
7030
+ "minLength": 1,
7031
+ "maxLength": 256
7032
+ },
7033
+ "choices": {
7034
+ "readOnly": true,
7035
+ "minItems": 2,
7036
+ "maxItems": 50,
7037
+ "type": "array",
7038
+ "items": {
7039
+ "type": "string",
7040
+ "minLength": 1,
7041
+ "maxLength": 256
7042
+ }
7043
+ },
7044
+ "minTotal": {
7045
+ "type": "integer",
7046
+ "minimum": 0,
7047
+ "maximum": 9007199254740991
7048
+ }
7049
+ },
7050
+ "required": [
7051
+ "field",
7052
+ "choices"
7053
+ ],
7054
+ "description": "A count by choice of a viewer-scoped field: its field, 2 to 50 distinct choices and minTotal."
7055
+ },
5408
7056
  "ThreadId": {
5409
7057
  "type": "string",
5410
7058
  "pattern": "^thr_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
@@ -5640,6 +7288,93 @@
5640
7288
  "pattern": "^ver_[0-9A-HJKMNP-TV-Z]{26}$",
5641
7289
  "description": "Version ID: \"ver_\" followed by 26 characters of Crockford base32."
5642
7290
  },
7291
+ "VersionPush": {
7292
+ "type": "object",
7293
+ "properties": {
7294
+ "versionId": {
7295
+ "type": "string",
7296
+ "minLength": 1
7297
+ },
7298
+ "number": {
7299
+ "type": "integer",
7300
+ "minimum": 1,
7301
+ "maximum": 9007199254740991
7302
+ },
7303
+ "sourceDigest": {
7304
+ "type": "string",
7305
+ "pattern": "^[0-9a-f]{64}$"
7306
+ },
7307
+ "envDigest": {
7308
+ "type": "string",
7309
+ "pattern": "^[0-9a-f]{64}$"
7310
+ },
7311
+ "outputDigest": {
7312
+ "type": "string",
7313
+ "pattern": "^[0-9a-f]{64}$"
7314
+ },
7315
+ "manifest": {
7316
+ "type": "string",
7317
+ "maxLength": 4194304
7318
+ },
7319
+ "registry": {
7320
+ "type": "string",
7321
+ "maxLength": 16777216
7322
+ },
7323
+ "lock": {
7324
+ "type": "string",
7325
+ "maxLength": 16777216
7326
+ },
7327
+ "listing": {
7328
+ "readOnly": true,
7329
+ "maxItems": 100000,
7330
+ "type": "array",
7331
+ "items": {
7332
+ "readOnly": true,
7333
+ "type": "array",
7334
+ "items": [
7335
+ {
7336
+ "type": "string",
7337
+ "minLength": 1
7338
+ },
7339
+ {
7340
+ "type": "boolean"
7341
+ },
7342
+ {
7343
+ "type": "string",
7344
+ "pattern": "^[0-9a-f]{64}$"
7345
+ },
7346
+ {
7347
+ "type": "integer",
7348
+ "minimum": 0,
7349
+ "maximum": 9007199254740991
7350
+ }
7351
+ ],
7352
+ "additionalItems": false,
7353
+ "minItems": 4,
7354
+ "maxItems": 4
7355
+ }
7356
+ },
7357
+ "policy": {
7358
+ "allOf": [
7359
+ {
7360
+ "$ref": "#/definitions/SubmissionPolicy"
7361
+ }
7362
+ ]
7363
+ }
7364
+ },
7365
+ "required": [
7366
+ "versionId",
7367
+ "number",
7368
+ "sourceDigest",
7369
+ "envDigest",
7370
+ "outputDigest",
7371
+ "manifest",
7372
+ "registry",
7373
+ "lock",
7374
+ "listing"
7375
+ ],
7376
+ "description": "A version an owner pushes to its hosted home: its identity, manifest, registry, lockfile and output listing."
7377
+ },
5643
7378
  "VersionRef": {
5644
7379
  "type": "object",
5645
7380
  "properties": {
@@ -5907,7 +7642,9 @@
5907
7642
  "local",
5908
7643
  "tailnet",
5909
7644
  "token",
5910
- "host"
7645
+ "host",
7646
+ "account",
7647
+ "anonymous"
5911
7648
  ]
5912
7649
  },
5913
7650
  "name": {
@@ -5915,6 +7652,9 @@
5915
7652
  },
5916
7653
  "ref": {
5917
7654
  "type": "string"
7655
+ },
7656
+ "verified": {
7657
+ "type": "boolean"
5918
7658
  }
5919
7659
  },
5920
7660
  "required": [