@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": "#/$defs/ArtifactCreateResult"
16
16
  }
17
17
  },
18
+ "artifact/export": {
19
+ "direction": "client-to-instance",
20
+ "mutating": false,
21
+ "params": {
22
+ "$ref": "#/$defs/ArtifactExportParams"
23
+ },
24
+ "result": {
25
+ "$ref": "#/$defs/ArtifactExportResult"
26
+ }
27
+ },
18
28
  "artifact/get": {
19
29
  "direction": "client-to-instance",
20
30
  "mutating": false,
@@ -25,6 +35,16 @@
25
35
  "$ref": "#/$defs/ArtifactDetail"
26
36
  }
27
37
  },
38
+ "artifact/import": {
39
+ "direction": "client-to-instance",
40
+ "mutating": true,
41
+ "params": {
42
+ "$ref": "#/$defs/ArtifactImportParams"
43
+ },
44
+ "result": {
45
+ "$ref": "#/$defs/PublishReceipt"
46
+ }
47
+ },
28
48
  "artifact/list": {
29
49
  "direction": "client-to-instance",
30
50
  "mutating": false,
@@ -35,6 +55,16 @@
35
55
  "$ref": "#/$defs/ArtifactListResult"
36
56
  }
37
57
  },
58
+ "artifact/pause": {
59
+ "direction": "client-to-instance",
60
+ "mutating": true,
61
+ "params": {
62
+ "$ref": "#/$defs/ArtifactPauseParams"
63
+ },
64
+ "result": {
65
+ "$ref": "#/$defs/ArtifactPauseResult"
66
+ }
67
+ },
38
68
  "artifact/publish": {
39
69
  "direction": "client-to-instance",
40
70
  "mutating": true,
@@ -135,6 +165,26 @@
135
165
  "$ref": "#/$defs/GcRunResult"
136
166
  }
137
167
  },
168
+ "hosted/push": {
169
+ "direction": "client-to-instance",
170
+ "mutating": true,
171
+ "params": {
172
+ "$ref": "#/$defs/HostedPushParams"
173
+ },
174
+ "result": {
175
+ "$ref": "#/$defs/HostedPushResult"
176
+ }
177
+ },
178
+ "hosted/submission": {
179
+ "direction": "client-to-instance",
180
+ "mutating": false,
181
+ "params": {
182
+ "$ref": "#/$defs/HostedSubmissionParams"
183
+ },
184
+ "result": {
185
+ "$ref": "#/$defs/SubmissionEnvelope"
186
+ }
187
+ },
138
188
  "instance/check": {
139
189
  "direction": "client-to-instance",
140
190
  "mutating": false,
@@ -213,6 +263,66 @@
213
263
  "$ref": "#/$defs/PortIdentityResolveResult"
214
264
  }
215
265
  },
266
+ "port/relay.author": {
267
+ "direction": "instance-to-host",
268
+ "mutating": true,
269
+ "params": {
270
+ "$ref": "#/$defs/PortRelayAuthorParams"
271
+ },
272
+ "result": {
273
+ "$ref": "#/$defs/PortRelayAuthorResult"
274
+ }
275
+ },
276
+ "port/relay.call": {
277
+ "direction": "instance-to-host",
278
+ "mutating": false,
279
+ "params": {
280
+ "$ref": "#/$defs/PortRelayCallParams"
281
+ },
282
+ "result": {
283
+ "$ref": "#/$defs/PortRelayCallResult"
284
+ }
285
+ },
286
+ "port/relay.cancel": {
287
+ "direction": "instance-to-host",
288
+ "mutating": false,
289
+ "params": {
290
+ "$ref": "#/$defs/PortRelayCancelParams"
291
+ },
292
+ "result": {
293
+ "$ref": "#/$defs/PortRelayCancelResult"
294
+ }
295
+ },
296
+ "port/relay.live": {
297
+ "direction": "instance-to-host",
298
+ "mutating": false,
299
+ "params": {
300
+ "$ref": "#/$defs/PortRelayLiveParams"
301
+ },
302
+ "result": {
303
+ "$ref": "#/$defs/PortRelayLiveResult"
304
+ }
305
+ },
306
+ "port/relay.reconcile": {
307
+ "direction": "instance-to-host",
308
+ "mutating": false,
309
+ "params": {
310
+ "$ref": "#/$defs/PortRelayReconcileParams"
311
+ },
312
+ "result": {
313
+ "$ref": "#/$defs/PortRelayReconcileResult"
314
+ }
315
+ },
316
+ "port/relay.run": {
317
+ "direction": "instance-to-host",
318
+ "mutating": false,
319
+ "params": {
320
+ "$ref": "#/$defs/PortRelayRunParams"
321
+ },
322
+ "result": {
323
+ "$ref": "#/$defs/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": "#/$defs/ControlsPolicy"
252
362
  }
253
363
  },
364
+ "relay/call.batch": {
365
+ "direction": "client-to-instance",
366
+ "mutating": false,
367
+ "params": {
368
+ "$ref": "#/$defs/RelayCallBatchParams"
369
+ },
370
+ "result": {
371
+ "$ref": "#/$defs/RelayCallBatchResult"
372
+ }
373
+ },
374
+ "relay/effect": {
375
+ "direction": "client-to-instance",
376
+ "mutating": true,
377
+ "params": {
378
+ "$ref": "#/$defs/RelayEffectParams"
379
+ },
380
+ "result": {
381
+ "$ref": "#/$defs/RelayEffectResult"
382
+ }
383
+ },
384
+ "relay/live.value": {
385
+ "direction": "client-to-instance",
386
+ "mutating": true,
387
+ "params": {
388
+ "$ref": "#/$defs/RelayLiveValueParams"
389
+ },
390
+ "result": {
391
+ "$ref": "#/$defs/RelayLiveValueResult"
392
+ }
393
+ },
394
+ "relay/run.update": {
395
+ "direction": "client-to-instance",
396
+ "mutating": true,
397
+ "params": {
398
+ "$ref": "#/$defs/RelayRunUpdateParams"
399
+ },
400
+ "result": {
401
+ "$ref": "#/$defs/RelayRunUpdateResult"
402
+ }
403
+ },
404
+ "remote/link": {
405
+ "direction": "client-to-instance",
406
+ "mutating": false,
407
+ "params": {
408
+ "$ref": "#/$defs/RemoteLinkParams"
409
+ },
410
+ "result": {
411
+ "$ref": "#/$defs/RemoteLinkResult"
412
+ }
413
+ },
414
+ "remote/login": {
415
+ "direction": "client-to-instance",
416
+ "mutating": true,
417
+ "params": {
418
+ "$ref": "#/$defs/RemoteLoginParams"
419
+ },
420
+ "result": {
421
+ "$ref": "#/$defs/RemoteLoginResult"
422
+ }
423
+ },
424
+ "remote/login.wait": {
425
+ "direction": "client-to-instance",
426
+ "mutating": false,
427
+ "params": {
428
+ "$ref": "#/$defs/RemoteLoginWaitParams"
429
+ },
430
+ "result": {
431
+ "$ref": "#/$defs/RemoteLoginWaitResult"
432
+ }
433
+ },
434
+ "remote/logout": {
435
+ "direction": "client-to-instance",
436
+ "mutating": true,
437
+ "params": {
438
+ "$ref": "#/$defs/RemoteLogoutParams"
439
+ },
440
+ "result": {
441
+ "$ref": "#/$defs/RemoteLogoutResult"
442
+ }
443
+ },
444
+ "remote/status": {
445
+ "direction": "client-to-instance",
446
+ "mutating": false,
447
+ "params": {
448
+ "$ref": "#/$defs/RemoteStatusParams"
449
+ },
450
+ "result": {
451
+ "$ref": "#/$defs/RemoteStatusResult"
452
+ }
453
+ },
454
+ "remote/token": {
455
+ "direction": "client-to-instance",
456
+ "mutating": false,
457
+ "params": {
458
+ "$ref": "#/$defs/RemoteTokenParams"
459
+ },
460
+ "result": {
461
+ "$ref": "#/$defs/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
  "$defs": {
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": {
@@ -593,6 +808,58 @@
593
808
  ],
594
809
  "description": "One artifact in full: its summary, the latest manifest and every version."
595
810
  },
811
+ "ArtifactExportParams": {
812
+ "type": "object",
813
+ "properties": {
814
+ "artifact": {
815
+ "$ref": "#/$defs/ArtifactRef"
816
+ },
817
+ "version": {
818
+ "anyOf": [
819
+ {
820
+ "type": "integer",
821
+ "minimum": 1,
822
+ "maximum": 9007199254740991
823
+ },
824
+ {
825
+ "type": "string",
826
+ "minLength": 1
827
+ }
828
+ ]
829
+ },
830
+ "as": {
831
+ "$ref": "#/$defs/ExportClass"
832
+ },
833
+ "out": {
834
+ "type": "string",
835
+ "minLength": 1
836
+ }
837
+ },
838
+ "required": [
839
+ "artifact",
840
+ "as",
841
+ "out"
842
+ ]
843
+ },
844
+ "ArtifactExportResult": {
845
+ "type": "object",
846
+ "properties": {
847
+ "files": {
848
+ "readOnly": true,
849
+ "type": "array",
850
+ "items": {
851
+ "type": "string"
852
+ }
853
+ },
854
+ "versionId": {
855
+ "type": "string"
856
+ }
857
+ },
858
+ "required": [
859
+ "files",
860
+ "versionId"
861
+ ]
862
+ },
596
863
  "ArtifactGetParams": {
597
864
  "type": "object",
598
865
  "properties": {
@@ -609,6 +876,22 @@
609
876
  "pattern": "^art_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
610
877
  "description": "Artifact ID: \"art_\" followed by a 26-character ULID."
611
878
  },
879
+ "ArtifactImportParams": {
880
+ "type": "object",
881
+ "properties": {
882
+ "bundle": {
883
+ "type": "string",
884
+ "minLength": 1
885
+ },
886
+ "requestId": {
887
+ "type": "string",
888
+ "minLength": 1
889
+ }
890
+ },
891
+ "required": [
892
+ "bundle"
893
+ ]
894
+ },
612
895
  "ArtifactLink": {
613
896
  "type": "object",
614
897
  "properties": {
@@ -850,6 +1133,16 @@
850
1133
  "type": "boolean"
851
1134
  }
852
1135
  }
1136
+ },
1137
+ "tally": {
1138
+ "readOnly": true,
1139
+ "type": "array",
1140
+ "items": {
1141
+ "$ref": "#/$defs/TallySpec"
1142
+ }
1143
+ },
1144
+ "hosted": {
1145
+ "$ref": "#/$defs/HostedSettings"
853
1146
  }
854
1147
  },
855
1148
  "required": [
@@ -857,6 +1150,47 @@
857
1150
  ],
858
1151
  "description": "The artifact manifest (INTERFACES §2.2): literal metadata from the entry's defineArtifact call or MDX frontmatter."
859
1152
  },
1153
+ "ArtifactPauseParams": {
1154
+ "type": "object",
1155
+ "properties": {
1156
+ "artifact": {
1157
+ "$ref": "#/$defs/ArtifactRef"
1158
+ },
1159
+ "paused": {
1160
+ "type": "boolean"
1161
+ },
1162
+ "reason": {
1163
+ "type": "string",
1164
+ "maxLength": 500
1165
+ },
1166
+ "requestId": {
1167
+ "type": "string",
1168
+ "minLength": 1
1169
+ }
1170
+ },
1171
+ "required": [
1172
+ "artifact",
1173
+ "paused"
1174
+ ]
1175
+ },
1176
+ "ArtifactPauseResult": {
1177
+ "type": "object",
1178
+ "properties": {
1179
+ "paused": {
1180
+ "type": "boolean"
1181
+ },
1182
+ "by": {
1183
+ "type": "string",
1184
+ "enum": [
1185
+ "owner",
1186
+ "operator"
1187
+ ]
1188
+ }
1189
+ },
1190
+ "required": [
1191
+ "paused"
1192
+ ]
1193
+ },
860
1194
  "ArtifactProgressParams": {
861
1195
  "type": "object",
862
1196
  "properties": {
@@ -2099,17 +2433,44 @@
2099
2433
  },
2100
2434
  "description": "Which events a reader wants: these artifacts' and these types (patterns allowed)."
2101
2435
  },
2102
- "EventRecord": {
2436
+ "EventOrigin": {
2103
2437
  "type": "object",
2104
2438
  "properties": {
2105
- "cursor": {
2106
- "$ref": "#/$defs/Cursor"
2439
+ "server": {
2440
+ "type": "string",
2441
+ "minLength": 1
2107
2442
  },
2108
- "artifactId": {
2109
- "anyOf": [
2110
- {
2111
- "$ref": "#/$defs/ArtifactId"
2112
- },
2443
+ "home": {
2444
+ "type": "string",
2445
+ "minLength": 1
2446
+ },
2447
+ "incarnation": {
2448
+ "type": "string",
2449
+ "minLength": 1
2450
+ },
2451
+ "cursor": {
2452
+ "$ref": "#/$defs/Cursor"
2453
+ }
2454
+ },
2455
+ "required": [
2456
+ "server",
2457
+ "home",
2458
+ "incarnation",
2459
+ "cursor"
2460
+ ],
2461
+ "description": "Where an owner's copy of a hosted record came from: server, home, incarnation, cursor."
2462
+ },
2463
+ "EventRecord": {
2464
+ "type": "object",
2465
+ "properties": {
2466
+ "cursor": {
2467
+ "$ref": "#/$defs/Cursor"
2468
+ },
2469
+ "artifactId": {
2470
+ "anyOf": [
2471
+ {
2472
+ "$ref": "#/$defs/ArtifactId"
2473
+ },
2113
2474
  {
2114
2475
  "type": "null"
2115
2476
  }
@@ -2153,6 +2514,9 @@
2153
2514
  "type": "string"
2154
2515
  },
2155
2516
  "additionalProperties": {}
2517
+ },
2518
+ "origin": {
2519
+ "$ref": "#/$defs/EventOrigin"
2156
2520
  }
2157
2521
  },
2158
2522
  "required": [
@@ -2311,6 +2675,13 @@
2311
2675
  "type": "object",
2312
2676
  "properties": {}
2313
2677
  },
2678
+ "ExportClass": {
2679
+ "type": "string",
2680
+ "enum": [
2681
+ "bundle"
2682
+ ],
2683
+ "description": "An export class (VR-07)."
2684
+ },
2314
2685
  "ExternalBase": {
2315
2686
  "type": "object",
2316
2687
  "properties": {
@@ -2585,6 +2956,111 @@
2585
2956
  "mode": {
2586
2957
  "type": "string",
2587
2958
  "const": "worker"
2959
+ },
2960
+ "paused": {
2961
+ "type": "object",
2962
+ "properties": {
2963
+ "by": {
2964
+ "type": "string",
2965
+ "enum": [
2966
+ "owner",
2967
+ "operator"
2968
+ ]
2969
+ },
2970
+ "reason": {
2971
+ "type": "string",
2972
+ "maxLength": 500
2973
+ }
2974
+ },
2975
+ "required": [
2976
+ "by"
2977
+ ]
2978
+ },
2979
+ "hosted": {
2980
+ "type": "object",
2981
+ "properties": {
2982
+ "sender": {
2983
+ "type": "object",
2984
+ "properties": {
2985
+ "name": {
2986
+ "type": "string",
2987
+ "maxLength": 256
2988
+ },
2989
+ "verifiedBy": {
2990
+ "type": "string",
2991
+ "maxLength": 64
2992
+ }
2993
+ },
2994
+ "required": [
2995
+ "name"
2996
+ ]
2997
+ },
2998
+ "viewer": {
2999
+ "type": "object",
3000
+ "properties": {
3001
+ "kind": {
3002
+ "type": "string",
3003
+ "enum": [
3004
+ "account",
3005
+ "anonymous",
3006
+ "named"
3007
+ ]
3008
+ },
3009
+ "name": {
3010
+ "type": "string",
3011
+ "maxLength": 256
3012
+ },
3013
+ "verified": {
3014
+ "type": "boolean"
3015
+ }
3016
+ },
3017
+ "required": [
3018
+ "kind",
3019
+ "verified"
3020
+ ]
3021
+ },
3022
+ "signIn": {
3023
+ "type": "boolean"
3024
+ },
3025
+ "footer": {
3026
+ "type": "string",
3027
+ "maxLength": 500
3028
+ },
3029
+ "afterSubmit": {
3030
+ "type": "string",
3031
+ "maxLength": 500
3032
+ },
3033
+ "madeWith": {
3034
+ "type": "object",
3035
+ "properties": {
3036
+ "href": {
3037
+ "type": "string",
3038
+ "maxLength": 2048,
3039
+ "format": "uri"
3040
+ }
3041
+ }
3042
+ },
3043
+ "interstitial": {
3044
+ "type": "object",
3045
+ "properties": {
3046
+ "kind": {
3047
+ "type": "string",
3048
+ "maxLength": 64
3049
+ },
3050
+ "message": {
3051
+ "type": "string",
3052
+ "maxLength": 2000
3053
+ }
3054
+ },
3055
+ "required": [
3056
+ "kind"
3057
+ ]
3058
+ }
3059
+ },
3060
+ "required": [
3061
+ "viewer",
3062
+ "signIn"
3063
+ ]
2588
3064
  }
2589
3065
  },
2590
3066
  "required": [
@@ -2898,6 +3374,155 @@
2898
3374
  },
2899
3375
  "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)."
2900
3376
  },
3377
+ "HomeId": {
3378
+ "type": "string",
3379
+ "pattern": "^hom_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
3380
+ "description": "Hosted home ID: \"hom_\" followed by a 26-character ULID."
3381
+ },
3382
+ "HostedPushParams": {
3383
+ "type": "object",
3384
+ "properties": {
3385
+ "artifactId": {
3386
+ "$ref": "#/$defs/ArtifactId"
3387
+ },
3388
+ "version": {
3389
+ "$ref": "#/$defs/VersionPush"
3390
+ },
3391
+ "requestId": {
3392
+ "type": "string",
3393
+ "minLength": 1
3394
+ }
3395
+ },
3396
+ "required": [
3397
+ "artifactId",
3398
+ "version"
3399
+ ]
3400
+ },
3401
+ "HostedPushResult": {
3402
+ "oneOf": [
3403
+ {
3404
+ "type": "object",
3405
+ "properties": {
3406
+ "status": {
3407
+ "type": "string",
3408
+ "const": "complete"
3409
+ },
3410
+ "versionId": {
3411
+ "type": "string"
3412
+ },
3413
+ "number": {
3414
+ "type": "integer",
3415
+ "minimum": -9007199254740991,
3416
+ "maximum": 9007199254740991
3417
+ },
3418
+ "route": {
3419
+ "$ref": "#/$defs/HostedRoute"
3420
+ }
3421
+ },
3422
+ "required": [
3423
+ "status",
3424
+ "versionId",
3425
+ "number",
3426
+ "route"
3427
+ ]
3428
+ },
3429
+ {
3430
+ "type": "object",
3431
+ "properties": {
3432
+ "status": {
3433
+ "type": "string",
3434
+ "const": "missing"
3435
+ },
3436
+ "files": {
3437
+ "readOnly": true,
3438
+ "type": "array",
3439
+ "items": {
3440
+ "type": "string",
3441
+ "pattern": "^[0-9a-f]{64}$"
3442
+ }
3443
+ },
3444
+ "route": {
3445
+ "$ref": "#/$defs/HostedRoute"
3446
+ }
3447
+ },
3448
+ "required": [
3449
+ "status",
3450
+ "files",
3451
+ "route"
3452
+ ]
3453
+ }
3454
+ ],
3455
+ "description": "A push's state: the client files the server still lacks, or the hosted version."
3456
+ },
3457
+ "HostedRoute": {
3458
+ "type": "object",
3459
+ "properties": {
3460
+ "routeId": {
3461
+ "type": "string"
3462
+ },
3463
+ "label": {
3464
+ "type": "string"
3465
+ }
3466
+ },
3467
+ "required": [
3468
+ "routeId",
3469
+ "label"
3470
+ ],
3471
+ "description": "An artifact's hosted route: its rte_ ID and random label."
3472
+ },
3473
+ "HostedSettings": {
3474
+ "type": "object",
3475
+ "properties": {
3476
+ "offline": {
3477
+ "type": "object",
3478
+ "properties": {
3479
+ "actions": {
3480
+ "type": "string",
3481
+ "enum": [
3482
+ "queue",
3483
+ "fail"
3484
+ ]
3485
+ },
3486
+ "limit": {
3487
+ "$ref": "#/$defs/Duration"
3488
+ }
3489
+ }
3490
+ },
3491
+ "actions": {
3492
+ "type": "string",
3493
+ "enum": [
3494
+ "signed-in",
3495
+ "link"
3496
+ ]
3497
+ },
3498
+ "submissions": {
3499
+ "type": "string",
3500
+ "enum": [
3501
+ "link",
3502
+ "signed-in"
3503
+ ]
3504
+ },
3505
+ "preview": {
3506
+ "type": "string",
3507
+ "enum": [
3508
+ "generic",
3509
+ "title"
3510
+ ]
3511
+ }
3512
+ },
3513
+ "description": "How an artifact behaves on a remote server: offline actions, who may act and submit, previews."
3514
+ },
3515
+ "HostedSubmissionParams": {
3516
+ "type": "object",
3517
+ "properties": {
3518
+ "submissionId": {
3519
+ "$ref": "#/$defs/SubmissionId"
3520
+ }
3521
+ },
3522
+ "required": [
3523
+ "submissionId"
3524
+ ]
3525
+ },
2901
3526
  "InstanceCapabilities": {
2902
3527
  "type": "object",
2903
3528
  "properties": {
@@ -2996,8 +3621,15 @@
2996
3621
  "type": "string",
2997
3622
  "enum": [
2998
3623
  "host",
2999
- "daemon"
3624
+ "daemon",
3625
+ "hosted"
3000
3626
  ]
3627
+ },
3628
+ "incarnation": {
3629
+ "type": "string"
3630
+ },
3631
+ "cursor": {
3632
+ "type": "string"
3001
3633
  }
3002
3634
  },
3003
3635
  "required": [
@@ -3065,6 +3697,13 @@
3065
3697
  "items": {
3066
3698
  "$ref": "#/$defs/Share"
3067
3699
  }
3700
+ },
3701
+ "links": {
3702
+ "readOnly": true,
3703
+ "type": "array",
3704
+ "items": {
3705
+ "$ref": "#/$defs/RemoteLink"
3706
+ }
3068
3707
  }
3069
3708
  },
3070
3709
  "required": [
@@ -3214,6 +3853,11 @@
3214
3853
  ],
3215
3854
  "description": "A successful JSON-RPC 2.0 response."
3216
3855
  },
3856
+ "LinkId": {
3857
+ "type": "string",
3858
+ "pattern": "^lnk_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
3859
+ "description": "Instance link ID: \"lnk_\" followed by a 26-character ULID."
3860
+ },
3217
3861
  "LivePushParams": {
3218
3862
  "type": "object",
3219
3863
  "properties": {
@@ -3271,7 +3915,7 @@
3271
3915
  "properties": {
3272
3916
  "key": {
3273
3917
  "type": "string",
3274
- "pattern": "^[A-Za-z_$][A-Za-z0-9_$]{0,127}$"
3918
+ "pattern": "^(?:[A-Za-z_$][A-Za-z0-9_$]{0,127}$|\\$tally\\/[^\\u0000-\\u001f\\u007f]{1,256}$)"
3275
3919
  },
3276
3920
  "window": {
3277
3921
  "type": "integer",
@@ -3319,6 +3963,9 @@
3319
3963
  },
3320
3964
  "home": {
3321
3965
  "$ref": "#/$defs/HomeConfig"
3966
+ },
3967
+ "link": {
3968
+ "$ref": "#/$defs/OwnerLinkInfo"
3322
3969
  }
3323
3970
  },
3324
3971
  "required": [
@@ -3425,6 +4072,41 @@
3425
4072
  ],
3426
4073
  "description": "A draft field a version doesn't cover: its ID, label, value and source version."
3427
4074
  },
4075
+ "OwnerLinkInfo": {
4076
+ "type": "object",
4077
+ "properties": {
4078
+ "instanceId": {
4079
+ "type": "string",
4080
+ "minLength": 1
4081
+ },
4082
+ "relayMark": {
4083
+ "type": "integer",
4084
+ "minimum": 0,
4085
+ "maximum": 9007199254740991
4086
+ },
4087
+ "followed": {
4088
+ "type": "object",
4089
+ "properties": {
4090
+ "incarnation": {
4091
+ "type": "string",
4092
+ "minLength": 1
4093
+ },
4094
+ "cursor": {
4095
+ "$ref": "#/$defs/Cursor"
4096
+ }
4097
+ },
4098
+ "required": [
4099
+ "incarnation",
4100
+ "cursor"
4101
+ ]
4102
+ }
4103
+ },
4104
+ "required": [
4105
+ "instanceId",
4106
+ "relayMark"
4107
+ ],
4108
+ "description": "An owner instance's link on its binding session: its link ID, its relay mark and the hosted home's position it committed."
4109
+ },
3428
4110
  "PollResult": {
3429
4111
  "type": "object",
3430
4112
  "properties": {
@@ -3538,153 +4220,987 @@
3538
4220
  "pattern": "^[a-z][a-zA-Z0-9]*$",
3539
4221
  "description": "A host port name: identity, submissions, drafts, reviews, addressing, trustedControls, capture, secrets, pty, or ai (reserved). Open for later ports."
3540
4222
  },
3541
- "PortSecretsGetParams": {
4223
+ "PortRelayAuthorParams": {
3542
4224
  "type": "object",
3543
4225
  "properties": {
3544
- "artifactId": {
3545
- "type": "string"
4226
+ "method": {
4227
+ "type": "string",
4228
+ "enum": [
4229
+ "artifact/create",
4230
+ "artifact/verify",
4231
+ "artifact/publish",
4232
+ "artifact/get",
4233
+ "workspace/root",
4234
+ "workspace/allocate",
4235
+ "workspace/read",
4236
+ "workspace/apply",
4237
+ "verify/screenshot"
4238
+ ]
3546
4239
  },
3547
- "name": {
3548
- "type": "string"
3549
- }
4240
+ "params": {}
3550
4241
  },
3551
4242
  "required": [
3552
- "artifactId",
3553
- "name"
3554
- ],
3555
- "description": "The artifact and the name of the secret its server code asks for."
4243
+ "method",
4244
+ "params"
4245
+ ]
3556
4246
  },
3557
- "PortSecretsGetResult": {
3558
- "description": "The secret's value, or null when the host has none.",
3559
- "type": [
3560
- "string",
4247
+ "PortRelayAuthorResult": {},
4248
+ "PortRelayCallParams": {
4249
+ "type": "object",
4250
+ "properties": {
4251
+ "callId": {
4252
+ "type": "string",
4253
+ "minLength": 1
4254
+ },
4255
+ "artifactId": {
4256
+ "type": "string",
4257
+ "minLength": 1
4258
+ },
4259
+ "versionId": {
4260
+ "type": "string",
4261
+ "minLength": 1
4262
+ },
4263
+ "fnId": {
4264
+ "type": "string",
4265
+ "minLength": 1
4266
+ },
4267
+ "args": {
4268
+ "$ref": "#/$defs/Batches"
4269
+ },
4270
+ "viewer": {
4271
+ "$ref": "#/$defs/RelayViewer"
4272
+ },
4273
+ "viewId": {
4274
+ "type": "string"
4275
+ }
4276
+ },
4277
+ "required": [
4278
+ "callId",
4279
+ "artifactId",
4280
+ "versionId",
4281
+ "fnId",
4282
+ "args"
4283
+ ]
4284
+ },
4285
+ "PortRelayCallResult": {
4286
+ "type": "object",
4287
+ "properties": {
4288
+ "accepted": {
4289
+ "type": "boolean",
4290
+ "const": true
4291
+ }
4292
+ },
4293
+ "required": [
4294
+ "accepted"
4295
+ ]
4296
+ },
4297
+ "PortRelayCancelParams": {
4298
+ "type": "object",
4299
+ "properties": {
4300
+ "runId": {
4301
+ "type": "string",
4302
+ "minLength": 1
4303
+ }
4304
+ },
4305
+ "required": [
4306
+ "runId"
4307
+ ]
4308
+ },
4309
+ "PortRelayCancelResult": {
4310
+ "type": "object",
4311
+ "properties": {}
4312
+ },
4313
+ "PortRelayLiveParams": {
4314
+ "type": "object",
4315
+ "properties": {
4316
+ "artifactId": {
4317
+ "type": "string",
4318
+ "minLength": 1
4319
+ },
4320
+ "versionId": {
4321
+ "type": "string",
4322
+ "minLength": 1
4323
+ },
4324
+ "interest": {
4325
+ "type": "string",
4326
+ "enum": [
4327
+ "start",
4328
+ "renew",
4329
+ "stop",
4330
+ "refresh"
4331
+ ]
4332
+ },
4333
+ "keys": {
4334
+ "readOnly": true,
4335
+ "maxItems": 1000,
4336
+ "type": "array",
4337
+ "items": {
4338
+ "type": "string",
4339
+ "pattern": "^[A-Za-z_$][A-Za-z0-9_$]{0,127}$"
4340
+ }
4341
+ }
4342
+ },
4343
+ "required": [
4344
+ "artifactId",
4345
+ "versionId",
4346
+ "interest",
4347
+ "keys"
4348
+ ]
4349
+ },
4350
+ "PortRelayLiveResult": {
4351
+ "type": "object",
4352
+ "properties": {}
4353
+ },
4354
+ "PortRelayReconcileParams": {
4355
+ "type": "object",
4356
+ "properties": {
4357
+ "runs": {
4358
+ "readOnly": true,
4359
+ "maxItems": 10000,
4360
+ "type": "array",
4361
+ "items": {
4362
+ "type": "string",
4363
+ "minLength": 1
4364
+ }
4365
+ },
4366
+ "held": {
4367
+ "readOnly": true,
4368
+ "maxItems": 10000,
4369
+ "type": "array",
4370
+ "items": {
4371
+ "$ref": "#/$defs/RelayHeld"
4372
+ }
4373
+ }
4374
+ },
4375
+ "required": [
4376
+ "runs"
4377
+ ]
4378
+ },
4379
+ "PortRelayReconcileResult": {
4380
+ "type": "object",
4381
+ "properties": {
4382
+ "runs": {
4383
+ "readOnly": true,
4384
+ "type": "array",
4385
+ "items": {
4386
+ "$ref": "#/$defs/RelayReconciled"
4387
+ }
4388
+ }
4389
+ },
4390
+ "required": [
4391
+ "runs"
4392
+ ]
4393
+ },
4394
+ "PortRelayRunParams": {
4395
+ "type": "object",
4396
+ "properties": {
4397
+ "runId": {
4398
+ "type": "string",
4399
+ "minLength": 1
4400
+ },
4401
+ "seq": {
4402
+ "type": "integer",
4403
+ "minimum": 1,
4404
+ "maximum": 9007199254740991
4405
+ },
4406
+ "artifactId": {
4407
+ "type": "string",
4408
+ "minLength": 1
4409
+ },
4410
+ "versionId": {
4411
+ "type": "string",
4412
+ "minLength": 1
4413
+ },
4414
+ "fnId": {
4415
+ "type": "string",
4416
+ "minLength": 1
4417
+ },
4418
+ "args": {
4419
+ "$ref": "#/$defs/Batches"
4420
+ },
4421
+ "key": {
4422
+ "type": "string"
4423
+ },
4424
+ "viewer": {
4425
+ "$ref": "#/$defs/RelayViewer"
4426
+ },
4427
+ "viewId": {
4428
+ "type": "string"
4429
+ }
4430
+ },
4431
+ "required": [
4432
+ "runId",
4433
+ "seq",
4434
+ "artifactId",
4435
+ "versionId",
4436
+ "fnId",
4437
+ "args"
4438
+ ]
4439
+ },
4440
+ "PortRelayRunResult": {
4441
+ "type": "object",
4442
+ "properties": {
4443
+ "accepted": {
4444
+ "type": "boolean",
4445
+ "const": true
4446
+ }
4447
+ },
4448
+ "required": [
4449
+ "accepted"
4450
+ ]
4451
+ },
4452
+ "PortSecretsGetParams": {
4453
+ "type": "object",
4454
+ "properties": {
4455
+ "artifactId": {
4456
+ "type": "string"
4457
+ },
4458
+ "name": {
4459
+ "type": "string"
4460
+ }
4461
+ },
4462
+ "required": [
4463
+ "artifactId",
4464
+ "name"
4465
+ ],
4466
+ "description": "The artifact and the name of the secret its server code asks for."
4467
+ },
4468
+ "PortSecretsGetResult": {
4469
+ "description": "The secret's value, or null when the host has none.",
4470
+ "type": [
4471
+ "string",
3561
4472
  "null"
3562
4473
  ]
3563
4474
  },
3564
- "PortSubmissionsDeliverResult": {
3565
- "anyOf": [
4475
+ "PortSubmissionsDeliverResult": {
4476
+ "anyOf": [
4477
+ {
4478
+ "type": "object",
4479
+ "properties": {
4480
+ "accepted": {
4481
+ "type": "boolean",
4482
+ "const": true
4483
+ }
4484
+ },
4485
+ "required": [
4486
+ "accepted"
4487
+ ]
4488
+ },
4489
+ {
4490
+ "type": "object",
4491
+ "properties": {
4492
+ "accepted": {
4493
+ "type": "boolean",
4494
+ "const": false
4495
+ },
4496
+ "reason": {
4497
+ "type": "string",
4498
+ "minLength": 1
4499
+ },
4500
+ "retry": {
4501
+ "type": "boolean"
4502
+ }
4503
+ },
4504
+ "required": [
4505
+ "accepted",
4506
+ "reason",
4507
+ "retry"
4508
+ ]
4509
+ }
4510
+ ]
4511
+ },
4512
+ "PortTrustedControlsActivatedParams": {
4513
+ "type": "object",
4514
+ "properties": {
4515
+ "artifactId": {
4516
+ "$ref": "#/$defs/ArtifactId"
4517
+ },
4518
+ "control": {
4519
+ "$ref": "#/$defs/TrustedControl"
4520
+ },
4521
+ "viewer": {
4522
+ "$ref": "#/$defs/Viewer"
4523
+ },
4524
+ "viewId": {
4525
+ "$ref": "#/$defs/ViewId"
4526
+ },
4527
+ "detail": {
4528
+ "type": "object",
4529
+ "propertyNames": {
4530
+ "type": "string"
4531
+ },
4532
+ "additionalProperties": {
4533
+ "type": "string"
4534
+ }
4535
+ }
4536
+ },
4537
+ "required": [
4538
+ "artifactId",
4539
+ "control",
4540
+ "viewer",
4541
+ "viewId"
4542
+ ],
4543
+ "description": "A trusted control a person used: the artifact, control, viewer, view and detail."
4544
+ },
4545
+ "PortTrustedControlsPolicyParams": {
4546
+ "type": "object",
4547
+ "properties": {
4548
+ "artifact": {
4549
+ "$ref": "#/$defs/ArtifactSummary"
4550
+ }
4551
+ },
4552
+ "required": [
4553
+ "artifact"
4554
+ ],
4555
+ "description": "The artifact a frame is about to show, for its host's controls policy."
4556
+ },
4557
+ "PublishReceipt": {
4558
+ "type": "object",
4559
+ "properties": {
4560
+ "artifactId": {
4561
+ "$ref": "#/$defs/ArtifactId"
4562
+ },
4563
+ "versionId": {
4564
+ "$ref": "#/$defs/VersionId"
4565
+ },
4566
+ "version": {
4567
+ "type": "integer",
4568
+ "minimum": 1,
4569
+ "maximum": 9007199254740991
4570
+ },
4571
+ "url": {
4572
+ "type": "string"
4573
+ },
4574
+ "tokenId": {
4575
+ "$ref": "#/$defs/TokenId"
4576
+ },
4577
+ "cursor": {
4578
+ "$ref": "#/$defs/Cursor"
4579
+ },
4580
+ "reused": {
4581
+ "type": "boolean"
4582
+ },
4583
+ "forcedDiagnostics": {
4584
+ "readOnly": true,
4585
+ "type": "array",
4586
+ "items": {
4587
+ "type": "string"
4588
+ }
4589
+ }
4590
+ },
4591
+ "required": [
4592
+ "artifactId",
4593
+ "versionId",
4594
+ "version",
4595
+ "cursor",
4596
+ "reused"
4597
+ ],
4598
+ "description": "The receipt of artifact/publish: artifact, version, number, capability URL when served, event cursor, reuse."
4599
+ },
4600
+ "RelayCallBatchParams": {
4601
+ "type": "object",
4602
+ "properties": {
4603
+ "callId": {
4604
+ "type": "string",
4605
+ "minLength": 1
4606
+ },
4607
+ "seq": {
4608
+ "type": "integer",
4609
+ "minimum": 1,
4610
+ "maximum": 9007199254740991
4611
+ },
4612
+ "batches": {
4613
+ "$ref": "#/$defs/Batches"
4614
+ },
4615
+ "end": {
4616
+ "type": "object",
4617
+ "properties": {
4618
+ "status": {
4619
+ "type": "string",
4620
+ "enum": [
4621
+ "succeeded",
4622
+ "failed"
4623
+ ]
4624
+ },
4625
+ "error": {
4626
+ "type": "object",
4627
+ "properties": {
4628
+ "message": {
4629
+ "type": "string",
4630
+ "maxLength": 10000
4631
+ },
4632
+ "code": {
4633
+ "type": "string",
4634
+ "maxLength": 200
4635
+ }
4636
+ },
4637
+ "required": [
4638
+ "message"
4639
+ ]
4640
+ }
4641
+ },
4642
+ "required": [
4643
+ "status"
4644
+ ]
4645
+ }
4646
+ },
4647
+ "required": [
4648
+ "callId",
4649
+ "seq"
4650
+ ]
4651
+ },
4652
+ "RelayCallBatchResult": {
4653
+ "type": "object",
4654
+ "properties": {}
4655
+ },
4656
+ "RelayEffectParams": {
4657
+ "type": "object",
4658
+ "properties": {
4659
+ "artifactId": {
4660
+ "type": "string",
4661
+ "minLength": 1
4662
+ },
4663
+ "runId": {
4664
+ "type": "string"
4665
+ },
4666
+ "callId": {
4667
+ "type": "string"
4668
+ },
4669
+ "kind": {
4670
+ "type": "string",
4671
+ "enum": [
4672
+ "signal",
4673
+ "emit"
4674
+ ]
4675
+ },
4676
+ "name": {
4677
+ "type": "string",
4678
+ "minLength": 1,
4679
+ "maxLength": 200
4680
+ },
4681
+ "payload": {}
4682
+ },
4683
+ "required": [
4684
+ "artifactId",
4685
+ "kind",
4686
+ "name"
4687
+ ]
4688
+ },
4689
+ "RelayEffectResult": {
4690
+ "type": "object",
4691
+ "properties": {
4692
+ "cursor": {
4693
+ "$ref": "#/$defs/Cursor"
4694
+ }
4695
+ },
4696
+ "required": [
4697
+ "cursor"
4698
+ ]
4699
+ },
4700
+ "RelayHeld": {
4701
+ "type": "object",
4702
+ "properties": {
4703
+ "runId": {
4704
+ "type": "string",
4705
+ "minLength": 1
4706
+ },
4707
+ "log": {
4708
+ "type": "integer",
4709
+ "minimum": 0,
4710
+ "maximum": 9007199254740991
4711
+ },
4712
+ "batches": {
4713
+ "type": "integer",
4714
+ "minimum": 0,
4715
+ "maximum": 9007199254740991
4716
+ }
4717
+ },
4718
+ "required": [
4719
+ "runId",
4720
+ "log",
4721
+ "batches"
4722
+ ]
4723
+ },
4724
+ "RelayLiveValueParams": {
4725
+ "type": "object",
4726
+ "properties": {
4727
+ "artifactId": {
4728
+ "type": "string",
4729
+ "minLength": 1
4730
+ },
4731
+ "versionId": {
4732
+ "type": "string",
4733
+ "minLength": 1
4734
+ },
4735
+ "key": {
4736
+ "type": "string",
4737
+ "pattern": "^[A-Za-z_$][A-Za-z0-9_$]{0,127}$"
4738
+ },
4739
+ "value": {
4740
+ "$ref": "#/$defs/Batches"
4741
+ },
4742
+ "error": {
4743
+ "type": "object",
4744
+ "properties": {
4745
+ "message": {
4746
+ "type": "string"
4747
+ },
4748
+ "code": {
4749
+ "type": "string"
4750
+ }
4751
+ },
4752
+ "required": [
4753
+ "message"
4754
+ ]
4755
+ },
4756
+ "at": {
4757
+ "type": "string"
4758
+ }
4759
+ },
4760
+ "required": [
4761
+ "artifactId",
4762
+ "versionId",
4763
+ "key",
4764
+ "at"
4765
+ ]
4766
+ },
4767
+ "RelayLiveValueResult": {
4768
+ "type": "object",
4769
+ "properties": {
4770
+ "revision": {
4771
+ "type": "string"
4772
+ }
4773
+ }
4774
+ },
4775
+ "RelayReconciled": {
4776
+ "type": "object",
4777
+ "properties": {
4778
+ "runId": {
4779
+ "type": "string"
4780
+ },
4781
+ "state": {
4782
+ "anyOf": [
4783
+ {
4784
+ "$ref": "#/$defs/RunState"
4785
+ },
4786
+ {
4787
+ "type": "string",
4788
+ "const": "unknown-to-owner"
4789
+ }
4790
+ ]
4791
+ }
4792
+ },
4793
+ "required": [
4794
+ "runId",
4795
+ "state"
4796
+ ]
4797
+ },
4798
+ "RelayRunEnd": {
4799
+ "type": "object",
4800
+ "properties": {
4801
+ "status": {
4802
+ "type": "string",
4803
+ "enum": [
4804
+ "succeeded",
4805
+ "failed",
4806
+ "cancelled"
4807
+ ]
4808
+ },
4809
+ "reason": {
4810
+ "type": "string",
4811
+ "maxLength": 200
4812
+ },
4813
+ "error": {
4814
+ "type": "object",
4815
+ "properties": {
4816
+ "message": {
4817
+ "type": "string",
4818
+ "maxLength": 10000
4819
+ },
4820
+ "code": {
4821
+ "type": "string",
4822
+ "maxLength": 200
4823
+ }
4824
+ },
4825
+ "required": [
4826
+ "message"
4827
+ ]
4828
+ }
4829
+ },
4830
+ "required": [
4831
+ "status"
4832
+ ]
4833
+ },
4834
+ "RelayRunUpdateParams": {
4835
+ "type": "object",
4836
+ "properties": {
4837
+ "runId": {
4838
+ "type": "string",
4839
+ "minLength": 1
4840
+ },
4841
+ "seq": {
4842
+ "type": "integer",
4843
+ "minimum": 1,
4844
+ "maximum": 9007199254740991
4845
+ },
4846
+ "running": {
4847
+ "type": "boolean"
4848
+ },
4849
+ "progress": {
4850
+ "$ref": "#/$defs/RunProgress"
4851
+ },
4852
+ "log": {
4853
+ "readOnly": true,
4854
+ "type": "array",
4855
+ "items": {
4856
+ "type": "string"
4857
+ }
4858
+ },
4859
+ "logFrom": {
4860
+ "type": "integer",
4861
+ "minimum": 0,
4862
+ "maximum": 9007199254740991
4863
+ },
4864
+ "batches": {
4865
+ "$ref": "#/$defs/Batches"
4866
+ },
4867
+ "batchFrom": {
4868
+ "type": "integer",
4869
+ "minimum": 0,
4870
+ "maximum": 9007199254740991
4871
+ },
4872
+ "end": {
4873
+ "$ref": "#/$defs/RelayRunEnd"
4874
+ }
4875
+ },
4876
+ "required": [
4877
+ "runId",
4878
+ "seq"
4879
+ ]
4880
+ },
4881
+ "RelayRunUpdateResult": {
4882
+ "type": "object",
4883
+ "properties": {}
4884
+ },
4885
+ "RelayViewer": {
4886
+ "type": "object",
4887
+ "properties": {
4888
+ "id": {
4889
+ "type": "string",
4890
+ "minLength": 1
4891
+ },
4892
+ "name": {
4893
+ "type": "string"
4894
+ }
4895
+ },
4896
+ "required": [
4897
+ "id"
4898
+ ],
4899
+ "description": "The viewer a relayed run or call acts for: the hosted home's viewer ID and name."
4900
+ },
4901
+ "RemoteLink": {
4902
+ "type": "object",
4903
+ "properties": {
4904
+ "server": {
4905
+ "$ref": "#/$defs/ServerOrigin"
4906
+ },
4907
+ "account": {
4908
+ "type": "object",
4909
+ "properties": {
4910
+ "id": {
4911
+ "type": "string"
4912
+ },
4913
+ "name": {
4914
+ "type": "string"
4915
+ }
4916
+ },
4917
+ "required": [
4918
+ "id"
4919
+ ]
4920
+ },
4921
+ "instanceId": {
4922
+ "type": "string"
4923
+ },
4924
+ "name": {
4925
+ "type": "string"
4926
+ },
4927
+ "default": {
4928
+ "type": "boolean"
4929
+ },
4930
+ "state": {
4931
+ "type": "string",
4932
+ "enum": [
4933
+ "connected",
4934
+ "connecting",
4935
+ "offline",
4936
+ "signed-out"
4937
+ ]
4938
+ },
4939
+ "since": {
4940
+ "type": "string"
4941
+ },
4942
+ "pendingPushes": {
4943
+ "type": "integer",
4944
+ "minimum": 0,
4945
+ "maximum": 9007199254740991
4946
+ },
4947
+ "lastError": {
4948
+ "type": "string"
4949
+ }
4950
+ },
4951
+ "required": [
4952
+ "server",
4953
+ "account",
4954
+ "instanceId",
4955
+ "name",
4956
+ "default",
4957
+ "state",
4958
+ "since",
4959
+ "pendingPushes"
4960
+ ],
4961
+ "description": "One remote server this home is linked to, and the state of the link."
4962
+ },
4963
+ "RemoteLinkParams": {
4964
+ "type": "object",
4965
+ "properties": {
4966
+ "server": {
4967
+ "$ref": "#/$defs/ServerOrigin"
4968
+ },
4969
+ "key": {
4970
+ "type": "string",
4971
+ "minLength": 20,
4972
+ "maxLength": 512
4973
+ },
4974
+ "default": {
4975
+ "type": "boolean"
4976
+ }
4977
+ },
4978
+ "required": [
4979
+ "server",
4980
+ "key"
4981
+ ]
4982
+ },
4983
+ "RemoteLinkResult": {
4984
+ "type": "object",
4985
+ "properties": {
4986
+ "server": {
4987
+ "$ref": "#/$defs/ServerOrigin"
4988
+ },
4989
+ "account": {
4990
+ "type": "object",
4991
+ "properties": {
4992
+ "id": {
4993
+ "type": "string"
4994
+ },
4995
+ "name": {
4996
+ "type": "string"
4997
+ }
4998
+ },
4999
+ "required": [
5000
+ "id"
5001
+ ]
5002
+ },
5003
+ "instanceId": {
5004
+ "type": "string"
5005
+ },
5006
+ "default": {
5007
+ "type": "boolean"
5008
+ }
5009
+ },
5010
+ "required": [
5011
+ "server",
5012
+ "account",
5013
+ "instanceId",
5014
+ "default"
5015
+ ],
5016
+ "description": "A home linked to a remote server with an operator-issued key."
5017
+ },
5018
+ "RemoteLoginParams": {
5019
+ "type": "object",
5020
+ "properties": {
5021
+ "server": {
5022
+ "$ref": "#/$defs/ServerOrigin"
5023
+ },
5024
+ "default": {
5025
+ "type": "boolean"
5026
+ },
5027
+ "requestId": {
5028
+ "type": "string",
5029
+ "minLength": 1
5030
+ }
5031
+ }
5032
+ },
5033
+ "RemoteLoginResult": {
5034
+ "type": "object",
5035
+ "properties": {
5036
+ "loginId": {
5037
+ "type": "string"
5038
+ },
5039
+ "server": {
5040
+ "$ref": "#/$defs/ServerOrigin"
5041
+ },
5042
+ "verificationUri": {
5043
+ "type": "string"
5044
+ },
5045
+ "verificationUriComplete": {
5046
+ "type": "string"
5047
+ },
5048
+ "userCode": {
5049
+ "type": "string"
5050
+ },
5051
+ "expiresAt": {
5052
+ "type": "string"
5053
+ }
5054
+ },
5055
+ "required": [
5056
+ "loginId",
5057
+ "server",
5058
+ "verificationUri",
5059
+ "userCode",
5060
+ "expiresAt"
5061
+ ],
5062
+ "description": "A device-grant sign-in that started: where to go and the code to enter."
5063
+ },
5064
+ "RemoteLoginWaitParams": {
5065
+ "type": "object",
5066
+ "properties": {
5067
+ "loginId": {
5068
+ "type": "string",
5069
+ "minLength": 1
5070
+ },
5071
+ "timeoutMs": {
5072
+ "type": "integer",
5073
+ "minimum": 0,
5074
+ "maximum": 2147483647
5075
+ }
5076
+ },
5077
+ "required": [
5078
+ "loginId",
5079
+ "timeoutMs"
5080
+ ]
5081
+ },
5082
+ "RemoteLoginWaitResult": {
5083
+ "oneOf": [
3566
5084
  {
3567
5085
  "type": "object",
3568
5086
  "properties": {
3569
- "accepted": {
3570
- "type": "boolean",
3571
- "const": true
5087
+ "status": {
5088
+ "type": "string",
5089
+ "const": "signed-in"
5090
+ },
5091
+ "server": {
5092
+ "$ref": "#/$defs/ServerOrigin"
5093
+ },
5094
+ "account": {
5095
+ "type": "object",
5096
+ "properties": {
5097
+ "id": {
5098
+ "type": "string"
5099
+ },
5100
+ "name": {
5101
+ "type": "string"
5102
+ }
5103
+ },
5104
+ "required": [
5105
+ "id"
5106
+ ]
5107
+ },
5108
+ "instanceId": {
5109
+ "type": "string"
3572
5110
  }
3573
5111
  },
3574
5112
  "required": [
3575
- "accepted"
5113
+ "status",
5114
+ "server",
5115
+ "account",
5116
+ "instanceId"
3576
5117
  ]
3577
5118
  },
3578
5119
  {
3579
5120
  "type": "object",
3580
5121
  "properties": {
3581
- "accepted": {
3582
- "type": "boolean",
3583
- "const": false
3584
- },
3585
- "reason": {
5122
+ "status": {
3586
5123
  "type": "string",
3587
- "minLength": 1
3588
- },
3589
- "retry": {
3590
- "type": "boolean"
5124
+ "const": "pending"
3591
5125
  }
3592
5126
  },
3593
5127
  "required": [
3594
- "accepted",
3595
- "reason",
3596
- "retry"
5128
+ "status"
3597
5129
  ]
3598
5130
  }
3599
- ]
5131
+ ],
5132
+ "description": "A sign-in's end: signed in with the account and instance link, or pending."
3600
5133
  },
3601
- "PortTrustedControlsActivatedParams": {
5134
+ "RemoteLogoutParams": {
3602
5135
  "type": "object",
3603
5136
  "properties": {
3604
- "artifactId": {
3605
- "$ref": "#/$defs/ArtifactId"
3606
- },
3607
- "control": {
3608
- "$ref": "#/$defs/TrustedControl"
3609
- },
3610
- "viewer": {
3611
- "$ref": "#/$defs/Viewer"
3612
- },
3613
- "viewId": {
3614
- "$ref": "#/$defs/ViewId"
5137
+ "server": {
5138
+ "$ref": "#/$defs/ServerOrigin"
3615
5139
  },
3616
- "detail": {
3617
- "type": "object",
3618
- "propertyNames": {
3619
- "type": "string"
3620
- },
3621
- "additionalProperties": {
3622
- "type": "string"
5140
+ "forget": {
5141
+ "type": "boolean"
5142
+ }
5143
+ }
5144
+ },
5145
+ "RemoteLogoutResult": {
5146
+ "type": "object",
5147
+ "properties": {
5148
+ "servers": {
5149
+ "readOnly": true,
5150
+ "type": "array",
5151
+ "items": {
5152
+ "$ref": "#/$defs/ServerOrigin"
3623
5153
  }
3624
5154
  }
3625
5155
  },
3626
5156
  "required": [
3627
- "artifactId",
3628
- "control",
3629
- "viewer",
3630
- "viewId"
5157
+ "servers"
3631
5158
  ],
3632
- "description": "A trusted control a person used: the artifact, control, viewer, view and detail."
5159
+ "description": "The servers signed out of."
3633
5160
  },
3634
- "PortTrustedControlsPolicyParams": {
5161
+ "RemoteStatusParams": {
5162
+ "type": "object",
5163
+ "properties": {}
5164
+ },
5165
+ "RemoteStatusResult": {
3635
5166
  "type": "object",
3636
5167
  "properties": {
3637
- "artifact": {
3638
- "$ref": "#/$defs/ArtifactSummary"
5168
+ "links": {
5169
+ "readOnly": true,
5170
+ "type": "array",
5171
+ "items": {
5172
+ "$ref": "#/$defs/RemoteLink"
5173
+ }
3639
5174
  }
3640
5175
  },
3641
5176
  "required": [
3642
- "artifact"
5177
+ "links"
3643
5178
  ],
3644
- "description": "The artifact a frame is about to show, for its host's controls policy."
5179
+ "description": "Every remote server this home is linked to."
3645
5180
  },
3646
- "PublishReceipt": {
5181
+ "RemoteTokenParams": {
3647
5182
  "type": "object",
3648
5183
  "properties": {
3649
- "artifactId": {
3650
- "$ref": "#/$defs/ArtifactId"
3651
- },
3652
- "versionId": {
3653
- "$ref": "#/$defs/VersionId"
3654
- },
3655
- "version": {
3656
- "type": "integer",
3657
- "minimum": 1,
3658
- "maximum": 9007199254740991
3659
- },
3660
- "url": {
5184
+ "accessToken": {
5185
+ "type": "string",
5186
+ "minLength": 1
5187
+ }
5188
+ },
5189
+ "required": [
5190
+ "accessToken"
5191
+ ]
5192
+ },
5193
+ "RemoteTokenResult": {
5194
+ "type": "object",
5195
+ "properties": {
5196
+ "expiresAt": {
3661
5197
  "type": "string"
3662
- },
3663
- "tokenId": {
3664
- "$ref": "#/$defs/TokenId"
3665
- },
3666
- "cursor": {
3667
- "$ref": "#/$defs/Cursor"
3668
- },
3669
- "reused": {
3670
- "type": "boolean"
3671
- },
3672
- "forcedDiagnostics": {
3673
- "readOnly": true,
3674
- "type": "array",
3675
- "items": {
3676
- "type": "string"
3677
- }
3678
5198
  }
3679
5199
  },
3680
5200
  "required": [
3681
- "artifactId",
3682
- "versionId",
3683
- "version",
3684
- "cursor",
3685
- "reused"
5201
+ "expiresAt"
3686
5202
  ],
3687
- "description": "The receipt of artifact/publish: artifact, version, number, capability URL when served, event cursor, reuse."
5203
+ "description": "When the binding closes unless its token is refreshed again."
3688
5204
  },
3689
5205
  "ResultComment": {
3690
5206
  "type": "object",
@@ -3998,6 +5514,9 @@
3998
5514
  "items": {
3999
5515
  "$ref": "#/$defs/DeliveryStatus"
4000
5516
  }
5517
+ },
5518
+ "origin": {
5519
+ "$ref": "#/$defs/EventOrigin"
4001
5520
  }
4002
5521
  },
4003
5522
  "required": [
@@ -4245,6 +5764,11 @@
4245
5764
  "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])))$",
4246
5765
  "description": "Protocol revision: a calendar date in YYYY-MM-DD form."
4247
5766
  },
5767
+ "RouteId": {
5768
+ "type": "string",
5769
+ "pattern": "^rte_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
5770
+ "description": "Hosted route ID: \"rte_\" followed by a 26-character ULID."
5771
+ },
4248
5772
  "RunAttachRequest": {
4249
5773
  "type": "object",
4250
5774
  "properties": {
@@ -4404,7 +5928,8 @@
4404
5928
  "waiting",
4405
5929
  "succeeded",
4406
5930
  "failed",
4407
- "cancelled"
5931
+ "cancelled",
5932
+ "unknown"
4408
5933
  ]
4409
5934
  },
4410
5935
  "reason": {
@@ -4455,6 +5980,9 @@
4455
5980
  "type": "integer",
4456
5981
  "minimum": 0,
4457
5982
  "maximum": 9007199254740991
5983
+ },
5984
+ "ownerUnreachable": {
5985
+ "type": "boolean"
4458
5986
  }
4459
5987
  },
4460
5988
  "required": [
@@ -4578,6 +6106,11 @@
4578
6106
  ],
4579
6107
  "description": "A secret's name, value and optional artifact scope."
4580
6108
  },
6109
+ "ServerOrigin": {
6110
+ "type": "string",
6111
+ "pattern": "^https?:\\/\\/[^/?#\\s]+$",
6112
+ "description": "A remote server, by its API origin, such as https://api.example."
6113
+ },
4581
6114
  "Sha256": {
4582
6115
  "type": "string",
4583
6116
  "pattern": "^[0-9a-f]{64}$",
@@ -4697,6 +6230,10 @@
4697
6230
  "via": {
4698
6231
  "$ref": "#/$defs/ShareVia"
4699
6232
  },
6233
+ "server": {
6234
+ "type": "string",
6235
+ "pattern": "^https?:\\/\\/[^/?#\\s]+$"
6236
+ },
4700
6237
  "ttl": {
4701
6238
  "$ref": "#/$defs/Duration"
4702
6239
  },
@@ -4831,9 +6368,10 @@
4831
6368
  "enum": [
4832
6369
  "tailnet",
4833
6370
  "funnel",
4834
- "cloudflare"
6371
+ "cloudflare",
6372
+ "remote"
4835
6373
  ],
4836
- "description": "How a share reaches its viewers: tailnet, funnel or cloudflare."
6374
+ "description": "How a share reaches its viewers: tailnet, funnel or cloudflare, or remote: hosted on a remote server (D165)."
4837
6375
  },
4838
6376
  "ShellSubmitRequest": {
4839
6377
  "type": "object",
@@ -4967,6 +6505,18 @@
4967
6505
  "agent",
4968
6506
  "host"
4969
6507
  ]
6508
+ },
6509
+ "causation": {
6510
+ "type": "object",
6511
+ "properties": {
6512
+ "runId": {
6513
+ "type": "string",
6514
+ "minLength": 1
6515
+ }
6516
+ },
6517
+ "required": [
6518
+ "runId"
6519
+ ]
4970
6520
  }
4971
6521
  },
4972
6522
  "required": [
@@ -5059,6 +6609,13 @@
5059
6609
  },
5060
6610
  "results": {
5061
6611
  "$ref": "#/$defs/Results"
6612
+ },
6613
+ "snapshot": {
6614
+ "type": "string",
6615
+ "maxLength": 41943040
6616
+ },
6617
+ "cursor": {
6618
+ "$ref": "#/$defs/Cursor"
5062
6619
  }
5063
6620
  },
5064
6621
  "required": [
@@ -5233,6 +6790,37 @@
5233
6790
  ],
5234
6791
  "description": "A browser submit: the view and the draft revision the viewer saw."
5235
6792
  },
6793
+ "TallySpec": {
6794
+ "type": "object",
6795
+ "properties": {
6796
+ "field": {
6797
+ "type": "string",
6798
+ "minLength": 1,
6799
+ "maxLength": 256
6800
+ },
6801
+ "choices": {
6802
+ "readOnly": true,
6803
+ "minItems": 2,
6804
+ "maxItems": 50,
6805
+ "type": "array",
6806
+ "items": {
6807
+ "type": "string",
6808
+ "minLength": 1,
6809
+ "maxLength": 256
6810
+ }
6811
+ },
6812
+ "minTotal": {
6813
+ "type": "integer",
6814
+ "minimum": 0,
6815
+ "maximum": 9007199254740991
6816
+ }
6817
+ },
6818
+ "required": [
6819
+ "field",
6820
+ "choices"
6821
+ ],
6822
+ "description": "A count by choice of a viewer-scoped field: its field, 2 to 50 distinct choices and minTotal."
6823
+ },
5236
6824
  "ThreadId": {
5237
6825
  "type": "string",
5238
6826
  "pattern": "^thr_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
@@ -5468,6 +7056,89 @@
5468
7056
  "pattern": "^ver_[0-9A-HJKMNP-TV-Z]{26}$",
5469
7057
  "description": "Version ID: \"ver_\" followed by 26 characters of Crockford base32."
5470
7058
  },
7059
+ "VersionPush": {
7060
+ "type": "object",
7061
+ "properties": {
7062
+ "versionId": {
7063
+ "type": "string",
7064
+ "minLength": 1
7065
+ },
7066
+ "number": {
7067
+ "type": "integer",
7068
+ "minimum": 1,
7069
+ "maximum": 9007199254740991
7070
+ },
7071
+ "sourceDigest": {
7072
+ "type": "string",
7073
+ "pattern": "^[0-9a-f]{64}$"
7074
+ },
7075
+ "envDigest": {
7076
+ "type": "string",
7077
+ "pattern": "^[0-9a-f]{64}$"
7078
+ },
7079
+ "outputDigest": {
7080
+ "type": "string",
7081
+ "pattern": "^[0-9a-f]{64}$"
7082
+ },
7083
+ "manifest": {
7084
+ "type": "string",
7085
+ "maxLength": 4194304
7086
+ },
7087
+ "registry": {
7088
+ "type": "string",
7089
+ "maxLength": 16777216
7090
+ },
7091
+ "lock": {
7092
+ "type": "string",
7093
+ "maxLength": 16777216
7094
+ },
7095
+ "listing": {
7096
+ "readOnly": true,
7097
+ "maxItems": 100000,
7098
+ "type": "array",
7099
+ "items": {
7100
+ "readOnly": true,
7101
+ "type": "array",
7102
+ "prefixItems": [
7103
+ {
7104
+ "type": "string",
7105
+ "minLength": 1
7106
+ },
7107
+ {
7108
+ "type": "boolean"
7109
+ },
7110
+ {
7111
+ "type": "string",
7112
+ "pattern": "^[0-9a-f]{64}$"
7113
+ },
7114
+ {
7115
+ "type": "integer",
7116
+ "minimum": 0,
7117
+ "maximum": 9007199254740991
7118
+ }
7119
+ ],
7120
+ "items": false,
7121
+ "minItems": 4,
7122
+ "maxItems": 4
7123
+ }
7124
+ },
7125
+ "policy": {
7126
+ "$ref": "#/$defs/SubmissionPolicy"
7127
+ }
7128
+ },
7129
+ "required": [
7130
+ "versionId",
7131
+ "number",
7132
+ "sourceDigest",
7133
+ "envDigest",
7134
+ "outputDigest",
7135
+ "manifest",
7136
+ "registry",
7137
+ "lock",
7138
+ "listing"
7139
+ ],
7140
+ "description": "A version an owner pushes to its hosted home: its identity, manifest, registry, lockfile and output listing."
7141
+ },
5471
7142
  "VersionRef": {
5472
7143
  "type": "object",
5473
7144
  "properties": {
@@ -5727,7 +7398,9 @@
5727
7398
  "local",
5728
7399
  "tailnet",
5729
7400
  "token",
5730
- "host"
7401
+ "host",
7402
+ "account",
7403
+ "anonymous"
5731
7404
  ]
5732
7405
  },
5733
7406
  "name": {
@@ -5735,6 +7408,9 @@
5735
7408
  },
5736
7409
  "ref": {
5737
7410
  "type": "string"
7411
+ },
7412
+ "verified": {
7413
+ "type": "boolean"
5738
7414
  }
5739
7415
  },
5740
7416
  "required": [