@mostra/protocol 0.8.0 → 0.10.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 (224) 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 +5 -0
  10. package/dist/browser.d.ts.map +1 -1
  11. package/dist/browser.js +7 -2
  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/artifact.d.ts +1 -1
  18. package/dist/diagnostics/codes/artifact.d.ts.map +1 -1
  19. package/dist/diagnostics/codes/artifact.js +45 -1
  20. package/dist/diagnostics/codes/artifact.js.map +1 -1
  21. package/dist/diagnostics/codes/env.d.ts +1 -1
  22. package/dist/diagnostics/codes/env.d.ts.map +1 -1
  23. package/dist/diagnostics/codes/env.js +12 -1
  24. package/dist/diagnostics/codes/env.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 +99 -0
  36. package/dist/diagnostics/codes/remote.js.map +1 -0
  37. package/dist/diagnostics/codes/submit.js +3 -3
  38. package/dist/diagnostics/codes/submit.js.map +1 -1
  39. package/dist/diagnostics/diagnostic.d.ts +1 -1
  40. package/dist/diagnostics/diagnostic.d.ts.map +1 -1
  41. package/dist/diagnostics/diagnostic.js +2 -1
  42. package/dist/diagnostics/diagnostic.js.map +1 -1
  43. package/dist/duration.d.ts +13 -0
  44. package/dist/duration.d.ts.map +1 -0
  45. package/dist/duration.js +27 -0
  46. package/dist/duration.js.map +1 -0
  47. package/dist/hygiene.d.ts +4 -1
  48. package/dist/hygiene.d.ts.map +1 -1
  49. package/dist/hygiene.js +4 -0
  50. package/dist/hygiene.js.map +1 -1
  51. package/dist/ids.d.ts +17 -1
  52. package/dist/ids.d.ts.map +1 -1
  53. package/dist/ids.js +9 -1
  54. package/dist/ids.js.map +1 -1
  55. package/dist/index.d.ts +30 -8
  56. package/dist/index.js +30 -8
  57. package/dist/interaction.d.ts +28 -2
  58. package/dist/interaction.d.ts.map +1 -1
  59. package/dist/interaction.js +20 -5
  60. package/dist/interaction.js.map +1 -1
  61. package/dist/manifest.d.ts +59 -14
  62. package/dist/manifest.d.ts.map +1 -1
  63. package/dist/manifest.js +63 -15
  64. package/dist/manifest.js.map +1 -1
  65. package/dist/methods/artifact/export.d.ts +40 -0
  66. package/dist/methods/artifact/export.d.ts.map +1 -0
  67. package/dist/methods/artifact/export.js +36 -0
  68. package/dist/methods/artifact/export.js.map +1 -0
  69. package/dist/methods/artifact/import.d.ts +23 -0
  70. package/dist/methods/artifact/import.d.ts.map +1 -0
  71. package/dist/methods/artifact/import.js +25 -0
  72. package/dist/methods/artifact/import.js.map +1 -0
  73. package/dist/methods/artifact/publish.d.ts +2 -1
  74. package/dist/methods/artifact/publish.d.ts.map +1 -1
  75. package/dist/methods/artifact/publish.js +1 -1
  76. package/dist/methods/hosted/push.d.ts +76 -0
  77. package/dist/methods/hosted/push.d.ts.map +1 -0
  78. package/dist/methods/hosted/push.js +71 -0
  79. package/dist/methods/hosted/push.js.map +1 -0
  80. package/dist/methods/hosted/submission.d.ts +18 -0
  81. package/dist/methods/hosted/submission.d.ts.map +1 -0
  82. package/dist/methods/hosted/submission.js +23 -0
  83. package/dist/methods/hosted/submission.js.map +1 -0
  84. package/dist/methods/index.d.ts.map +1 -1
  85. package/dist/methods/index.js +38 -2
  86. package/dist/methods/index.js.map +1 -1
  87. package/dist/methods/instance/status.d.ts +3 -0
  88. package/dist/methods/instance/status.d.ts.map +1 -1
  89. package/dist/methods/instance/status.js +3 -1
  90. package/dist/methods/instance/status.js.map +1 -1
  91. package/dist/methods/mostra/initialize.d.ts +17 -3
  92. package/dist/methods/mostra/initialize.d.ts.map +1 -1
  93. package/dist/methods/mostra/initialize.js +11 -3
  94. package/dist/methods/mostra/initialize.js.map +1 -1
  95. package/dist/methods/port/relay-call.d.ts +33 -0
  96. package/dist/methods/port/relay-call.d.ts.map +1 -0
  97. package/dist/methods/port/relay-call.js +31 -0
  98. package/dist/methods/port/relay-call.js.map +1 -0
  99. package/dist/methods/port/relay-cancel.d.ts +16 -0
  100. package/dist/methods/port/relay-cancel.d.ts.map +1 -0
  101. package/dist/methods/port/relay-cancel.js +21 -0
  102. package/dist/methods/port/relay-cancel.js.map +1 -0
  103. package/dist/methods/port/relay-live.d.ts +25 -0
  104. package/dist/methods/port/relay-live.d.ts.map +1 -0
  105. package/dist/methods/port/relay-live.js +32 -0
  106. package/dist/methods/port/relay-live.js.map +1 -0
  107. package/dist/methods/port/relay-reconcile.d.ts +39 -0
  108. package/dist/methods/port/relay-reconcile.d.ts.map +1 -0
  109. package/dist/methods/port/relay-reconcile.js +35 -0
  110. package/dist/methods/port/relay-reconcile.js.map +1 -0
  111. package/dist/methods/port/relay-run.d.ts +47 -0
  112. package/dist/methods/port/relay-run.d.ts.map +1 -0
  113. package/dist/methods/port/relay-run.js +41 -0
  114. package/dist/methods/port/relay-run.js.map +1 -0
  115. package/dist/methods/port/submissions-deliver.d.ts +8 -0
  116. package/dist/methods/port/submissions-deliver.d.ts.map +1 -1
  117. package/dist/methods/port/submissions-deliver.js +4 -2
  118. package/dist/methods/port/submissions-deliver.js.map +1 -1
  119. package/dist/methods/relay/call-batch.d.ts +26 -0
  120. package/dist/methods/relay/call-batch.d.ts.map +1 -0
  121. package/dist/methods/relay/call-batch.js +30 -0
  122. package/dist/methods/relay/call-batch.js.map +1 -0
  123. package/dist/methods/relay/effect.d.ts +31 -0
  124. package/dist/methods/relay/effect.d.ts.map +1 -0
  125. package/dist/methods/relay/effect.js +30 -0
  126. package/dist/methods/relay/effect.js.map +1 -0
  127. package/dist/methods/relay/live-value.d.ts +33 -0
  128. package/dist/methods/relay/live-value.d.ts.map +1 -0
  129. package/dist/methods/relay/live-value.js +32 -0
  130. package/dist/methods/relay/live-value.js.map +1 -0
  131. package/dist/methods/relay/run-update.d.ts +46 -0
  132. package/dist/methods/relay/run-update.d.ts.map +1 -0
  133. package/dist/methods/relay/run-update.js +45 -0
  134. package/dist/methods/relay/run-update.js.map +1 -0
  135. package/dist/methods/remote/login-wait.d.ts +30 -0
  136. package/dist/methods/remote/login-wait.d.ts.map +1 -0
  137. package/dist/methods/remote/login-wait.js +36 -0
  138. package/dist/methods/remote/login-wait.js.map +1 -0
  139. package/dist/methods/remote/login.d.ts +41 -0
  140. package/dist/methods/remote/login.d.ts.map +1 -0
  141. package/dist/methods/remote/login.js +37 -0
  142. package/dist/methods/remote/login.js.map +1 -0
  143. package/dist/methods/remote/logout.d.ts +25 -0
  144. package/dist/methods/remote/logout.d.ts.map +1 -0
  145. package/dist/methods/remote/logout.js +28 -0
  146. package/dist/methods/remote/logout.js.map +1 -0
  147. package/dist/methods/remote/status.d.ts +14 -0
  148. package/dist/methods/remote/status.d.ts.map +1 -0
  149. package/dist/methods/remote/status.js +22 -0
  150. package/dist/methods/remote/status.js.map +1 -0
  151. package/dist/methods/remote/token.d.ts +19 -0
  152. package/dist/methods/remote/token.d.ts.map +1 -0
  153. package/dist/methods/remote/token.js +24 -0
  154. package/dist/methods/remote/token.js.map +1 -0
  155. package/dist/methods/share/start.d.ts +5 -2
  156. package/dist/methods/share/start.d.ts.map +1 -1
  157. package/dist/methods/share/start.js +6 -3
  158. package/dist/methods/share/start.js.map +1 -1
  159. package/dist/methods/state/patch.d.ts +7 -0
  160. package/dist/methods/state/patch.d.ts.map +1 -1
  161. package/dist/methods/state/patch.js +2 -1
  162. package/dist/methods/state/patch.js.map +1 -1
  163. package/dist/methods/view/url.d.ts +2 -1
  164. package/dist/methods/view/url.d.ts.map +1 -1
  165. package/dist/methods/view/url.js +2 -1
  166. package/dist/methods/view/url.js.map +1 -1
  167. package/dist/policy.d.ts +18 -0
  168. package/dist/policy.d.ts.map +1 -0
  169. package/dist/policy.js +23 -0
  170. package/dist/policy.js.map +1 -0
  171. package/dist/remote.d.ts +55 -0
  172. package/dist/remote.d.ts.map +1 -0
  173. package/dist/remote.js +52 -0
  174. package/dist/remote.js.map +1 -0
  175. package/dist/view.d.ts +1 -1
  176. package/dist/view.js +1 -1
  177. package/dist/view.js.map +1 -1
  178. package/package.json +2 -2
  179. package/schemas/protocol.draft-07.json +1607 -126
  180. package/schemas/protocol.schema.json +1543 -126
  181. package/src/actions.ts +45 -5
  182. package/src/browser.ts +6 -0
  183. package/src/capability.ts +0 -23
  184. package/src/diagnostics/codes/artifact.ts +48 -0
  185. package/src/diagnostics/codes/env.ts +12 -0
  186. package/src/diagnostics/codes/home.ts +12 -0
  187. package/src/diagnostics/codes/index.ts +6 -2
  188. package/src/diagnostics/codes/remote.ts +113 -0
  189. package/src/diagnostics/codes/submit.ts +3 -3
  190. package/src/diagnostics/diagnostic.ts +3 -1
  191. package/src/duration.ts +29 -0
  192. package/src/hygiene.ts +12 -1
  193. package/src/ids.ts +33 -1
  194. package/src/index.ts +124 -8
  195. package/src/interaction.ts +42 -2
  196. package/src/manifest.ts +115 -24
  197. package/src/methods/artifact/export.ts +68 -0
  198. package/src/methods/artifact/import.ts +39 -0
  199. package/src/methods/hosted/push.ts +146 -0
  200. package/src/methods/hosted/submission.ts +34 -0
  201. package/src/methods/index.ts +36 -0
  202. package/src/methods/instance/status.ts +4 -0
  203. package/src/methods/mostra/initialize.ts +19 -3
  204. package/src/methods/port/relay-call.ts +58 -0
  205. package/src/methods/port/relay-cancel.ts +33 -0
  206. package/src/methods/port/relay-live.ts +48 -0
  207. package/src/methods/port/relay-reconcile.ts +71 -0
  208. package/src/methods/port/relay-run.ts +80 -0
  209. package/src/methods/port/submissions-deliver.ts +13 -1
  210. package/src/methods/relay/call-batch.ts +52 -0
  211. package/src/methods/relay/effect.ts +55 -0
  212. package/src/methods/relay/live-value.ts +54 -0
  213. package/src/methods/relay/run-update.ts +81 -0
  214. package/src/methods/remote/login-wait.ts +55 -0
  215. package/src/methods/remote/login.ts +72 -0
  216. package/src/methods/remote/logout.ts +42 -0
  217. package/src/methods/remote/status.ts +34 -0
  218. package/src/methods/remote/token.ts +39 -0
  219. package/src/methods/share/start.ts +12 -4
  220. package/src/methods/state/patch.ts +6 -0
  221. package/src/methods/view/url.ts +2 -1
  222. package/src/policy.ts +30 -0
  223. package/src/remote.ts +89 -0
  224. 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,
@@ -135,6 +155,26 @@
135
155
  "$ref": "#/$defs/GcRunResult"
136
156
  }
137
157
  },
158
+ "hosted/push": {
159
+ "direction": "client-to-instance",
160
+ "mutating": true,
161
+ "params": {
162
+ "$ref": "#/$defs/HostedPushParams"
163
+ },
164
+ "result": {
165
+ "$ref": "#/$defs/HostedPushResult"
166
+ }
167
+ },
168
+ "hosted/submission": {
169
+ "direction": "client-to-instance",
170
+ "mutating": false,
171
+ "params": {
172
+ "$ref": "#/$defs/HostedSubmissionParams"
173
+ },
174
+ "result": {
175
+ "$ref": "#/$defs/SubmissionEnvelope"
176
+ }
177
+ },
138
178
  "instance/check": {
139
179
  "direction": "client-to-instance",
140
180
  "mutating": false,
@@ -213,6 +253,56 @@
213
253
  "$ref": "#/$defs/PortIdentityResolveResult"
214
254
  }
215
255
  },
256
+ "port/relay.call": {
257
+ "direction": "instance-to-host",
258
+ "mutating": false,
259
+ "params": {
260
+ "$ref": "#/$defs/PortRelayCallParams"
261
+ },
262
+ "result": {
263
+ "$ref": "#/$defs/PortRelayCallResult"
264
+ }
265
+ },
266
+ "port/relay.cancel": {
267
+ "direction": "instance-to-host",
268
+ "mutating": false,
269
+ "params": {
270
+ "$ref": "#/$defs/PortRelayCancelParams"
271
+ },
272
+ "result": {
273
+ "$ref": "#/$defs/PortRelayCancelResult"
274
+ }
275
+ },
276
+ "port/relay.live": {
277
+ "direction": "instance-to-host",
278
+ "mutating": false,
279
+ "params": {
280
+ "$ref": "#/$defs/PortRelayLiveParams"
281
+ },
282
+ "result": {
283
+ "$ref": "#/$defs/PortRelayLiveResult"
284
+ }
285
+ },
286
+ "port/relay.reconcile": {
287
+ "direction": "instance-to-host",
288
+ "mutating": false,
289
+ "params": {
290
+ "$ref": "#/$defs/PortRelayReconcileParams"
291
+ },
292
+ "result": {
293
+ "$ref": "#/$defs/PortRelayReconcileResult"
294
+ }
295
+ },
296
+ "port/relay.run": {
297
+ "direction": "instance-to-host",
298
+ "mutating": false,
299
+ "params": {
300
+ "$ref": "#/$defs/PortRelayRunParams"
301
+ },
302
+ "result": {
303
+ "$ref": "#/$defs/PortRelayRunResult"
304
+ }
305
+ },
216
306
  "port/secrets.get": {
217
307
  "direction": "instance-to-host",
218
308
  "mutating": false,
@@ -251,6 +341,96 @@
251
341
  "$ref": "#/$defs/ControlsPolicy"
252
342
  }
253
343
  },
344
+ "relay/call.batch": {
345
+ "direction": "client-to-instance",
346
+ "mutating": false,
347
+ "params": {
348
+ "$ref": "#/$defs/RelayCallBatchParams"
349
+ },
350
+ "result": {
351
+ "$ref": "#/$defs/RelayCallBatchResult"
352
+ }
353
+ },
354
+ "relay/effect": {
355
+ "direction": "client-to-instance",
356
+ "mutating": true,
357
+ "params": {
358
+ "$ref": "#/$defs/RelayEffectParams"
359
+ },
360
+ "result": {
361
+ "$ref": "#/$defs/RelayEffectResult"
362
+ }
363
+ },
364
+ "relay/live.value": {
365
+ "direction": "client-to-instance",
366
+ "mutating": true,
367
+ "params": {
368
+ "$ref": "#/$defs/RelayLiveValueParams"
369
+ },
370
+ "result": {
371
+ "$ref": "#/$defs/RelayLiveValueResult"
372
+ }
373
+ },
374
+ "relay/run.update": {
375
+ "direction": "client-to-instance",
376
+ "mutating": true,
377
+ "params": {
378
+ "$ref": "#/$defs/RelayRunUpdateParams"
379
+ },
380
+ "result": {
381
+ "$ref": "#/$defs/RelayRunUpdateResult"
382
+ }
383
+ },
384
+ "remote/login": {
385
+ "direction": "client-to-instance",
386
+ "mutating": true,
387
+ "params": {
388
+ "$ref": "#/$defs/RemoteLoginParams"
389
+ },
390
+ "result": {
391
+ "$ref": "#/$defs/RemoteLoginResult"
392
+ }
393
+ },
394
+ "remote/login.wait": {
395
+ "direction": "client-to-instance",
396
+ "mutating": false,
397
+ "params": {
398
+ "$ref": "#/$defs/RemoteLoginWaitParams"
399
+ },
400
+ "result": {
401
+ "$ref": "#/$defs/RemoteLoginWaitResult"
402
+ }
403
+ },
404
+ "remote/logout": {
405
+ "direction": "client-to-instance",
406
+ "mutating": true,
407
+ "params": {
408
+ "$ref": "#/$defs/RemoteLogoutParams"
409
+ },
410
+ "result": {
411
+ "$ref": "#/$defs/RemoteLogoutResult"
412
+ }
413
+ },
414
+ "remote/status": {
415
+ "direction": "client-to-instance",
416
+ "mutating": false,
417
+ "params": {
418
+ "$ref": "#/$defs/RemoteStatusParams"
419
+ },
420
+ "result": {
421
+ "$ref": "#/$defs/RemoteStatusResult"
422
+ }
423
+ },
424
+ "remote/token": {
425
+ "direction": "client-to-instance",
426
+ "mutating": false,
427
+ "params": {
428
+ "$ref": "#/$defs/RemoteTokenParams"
429
+ },
430
+ "result": {
431
+ "$ref": "#/$defs/RemoteTokenResult"
432
+ }
433
+ },
254
434
  "results/get": {
255
435
  "direction": "client-to-instance",
256
436
  "mutating": false,
@@ -420,6 +600,11 @@
420
600
  }
421
601
  },
422
602
  "$defs": {
603
+ "AccountId": {
604
+ "type": "string",
605
+ "pattern": "^acct_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
606
+ "description": "Account ID: \"acct_\" followed by a 26-character ULID."
607
+ },
423
608
  "ActionError": {
424
609
  "type": "object",
425
610
  "properties": {
@@ -593,6 +778,58 @@
593
778
  ],
594
779
  "description": "One artifact in full: its summary, the latest manifest and every version."
595
780
  },
781
+ "ArtifactExportParams": {
782
+ "type": "object",
783
+ "properties": {
784
+ "artifact": {
785
+ "$ref": "#/$defs/ArtifactRef"
786
+ },
787
+ "version": {
788
+ "anyOf": [
789
+ {
790
+ "type": "integer",
791
+ "minimum": 1,
792
+ "maximum": 9007199254740991
793
+ },
794
+ {
795
+ "type": "string",
796
+ "minLength": 1
797
+ }
798
+ ]
799
+ },
800
+ "as": {
801
+ "$ref": "#/$defs/ExportClass"
802
+ },
803
+ "out": {
804
+ "type": "string",
805
+ "minLength": 1
806
+ }
807
+ },
808
+ "required": [
809
+ "artifact",
810
+ "as",
811
+ "out"
812
+ ]
813
+ },
814
+ "ArtifactExportResult": {
815
+ "type": "object",
816
+ "properties": {
817
+ "files": {
818
+ "readOnly": true,
819
+ "type": "array",
820
+ "items": {
821
+ "type": "string"
822
+ }
823
+ },
824
+ "versionId": {
825
+ "type": "string"
826
+ }
827
+ },
828
+ "required": [
829
+ "files",
830
+ "versionId"
831
+ ]
832
+ },
596
833
  "ArtifactGetParams": {
597
834
  "type": "object",
598
835
  "properties": {
@@ -609,6 +846,22 @@
609
846
  "pattern": "^art_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
610
847
  "description": "Artifact ID: \"art_\" followed by a 26-character ULID."
611
848
  },
849
+ "ArtifactImportParams": {
850
+ "type": "object",
851
+ "properties": {
852
+ "bundle": {
853
+ "type": "string",
854
+ "minLength": 1
855
+ },
856
+ "requestId": {
857
+ "type": "string",
858
+ "minLength": 1
859
+ }
860
+ },
861
+ "required": [
862
+ "bundle"
863
+ ]
864
+ },
612
865
  "ArtifactLink": {
613
866
  "type": "object",
614
867
  "properties": {
@@ -850,6 +1103,16 @@
850
1103
  "type": "boolean"
851
1104
  }
852
1105
  }
1106
+ },
1107
+ "tally": {
1108
+ "readOnly": true,
1109
+ "type": "array",
1110
+ "items": {
1111
+ "$ref": "#/$defs/TallySpec"
1112
+ }
1113
+ },
1114
+ "hosted": {
1115
+ "$ref": "#/$defs/HostedSettings"
853
1116
  }
854
1117
  },
855
1118
  "required": [
@@ -2099,6 +2362,33 @@
2099
2362
  },
2100
2363
  "description": "Which events a reader wants: these artifacts' and these types (patterns allowed)."
2101
2364
  },
2365
+ "EventOrigin": {
2366
+ "type": "object",
2367
+ "properties": {
2368
+ "server": {
2369
+ "type": "string",
2370
+ "minLength": 1
2371
+ },
2372
+ "home": {
2373
+ "type": "string",
2374
+ "minLength": 1
2375
+ },
2376
+ "incarnation": {
2377
+ "type": "string",
2378
+ "minLength": 1
2379
+ },
2380
+ "cursor": {
2381
+ "$ref": "#/$defs/Cursor"
2382
+ }
2383
+ },
2384
+ "required": [
2385
+ "server",
2386
+ "home",
2387
+ "incarnation",
2388
+ "cursor"
2389
+ ],
2390
+ "description": "Where an owner's copy of a hosted record came from: server, home, incarnation, cursor."
2391
+ },
2102
2392
  "EventRecord": {
2103
2393
  "type": "object",
2104
2394
  "properties": {
@@ -2153,6 +2443,9 @@
2153
2443
  "type": "string"
2154
2444
  },
2155
2445
  "additionalProperties": {}
2446
+ },
2447
+ "origin": {
2448
+ "$ref": "#/$defs/EventOrigin"
2156
2449
  }
2157
2450
  },
2158
2451
  "required": [
@@ -2311,6 +2604,13 @@
2311
2604
  "type": "object",
2312
2605
  "properties": {}
2313
2606
  },
2607
+ "ExportClass": {
2608
+ "type": "string",
2609
+ "enum": [
2610
+ "bundle"
2611
+ ],
2612
+ "description": "An export class (VR-07)."
2613
+ },
2314
2614
  "ExternalBase": {
2315
2615
  "type": "object",
2316
2616
  "properties": {
@@ -2898,37 +3198,186 @@
2898
3198
  },
2899
3199
  "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
3200
  },
2901
- "InstanceCapabilities": {
3201
+ "HomeId": {
3202
+ "type": "string",
3203
+ "pattern": "^hom_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
3204
+ "description": "Hosted home ID: \"hom_\" followed by a 26-character ULID."
3205
+ },
3206
+ "HostedPushParams": {
2902
3207
  "type": "object",
2903
3208
  "properties": {
2904
- "methods": {
2905
- "readOnly": true,
2906
- "type": "array",
2907
- "items": {
2908
- "type": "string"
2909
- }
3209
+ "artifactId": {
3210
+ "$ref": "#/$defs/ArtifactId"
2910
3211
  },
2911
- "notifications": {
2912
- "readOnly": true,
2913
- "type": "array",
2914
- "items": {
2915
- "type": "string"
2916
- }
3212
+ "version": {
3213
+ "$ref": "#/$defs/VersionPush"
2917
3214
  },
2918
- "ports": {
2919
- "readOnly": true,
2920
- "type": "array",
2921
- "items": {
2922
- "$ref": "#/$defs/PortName"
2923
- }
3215
+ "requestId": {
3216
+ "type": "string",
3217
+ "minLength": 1
2924
3218
  }
2925
3219
  },
2926
3220
  "required": [
2927
- "methods",
2928
- "notifications",
2929
- "ports"
2930
- ],
2931
- "description": "What the instance offers: methods, notifications and supported ports."
3221
+ "artifactId",
3222
+ "version"
3223
+ ]
3224
+ },
3225
+ "HostedPushResult": {
3226
+ "oneOf": [
3227
+ {
3228
+ "type": "object",
3229
+ "properties": {
3230
+ "status": {
3231
+ "type": "string",
3232
+ "const": "complete"
3233
+ },
3234
+ "versionId": {
3235
+ "type": "string"
3236
+ },
3237
+ "number": {
3238
+ "type": "integer",
3239
+ "minimum": -9007199254740991,
3240
+ "maximum": 9007199254740991
3241
+ },
3242
+ "route": {
3243
+ "$ref": "#/$defs/HostedRoute"
3244
+ }
3245
+ },
3246
+ "required": [
3247
+ "status",
3248
+ "versionId",
3249
+ "number",
3250
+ "route"
3251
+ ]
3252
+ },
3253
+ {
3254
+ "type": "object",
3255
+ "properties": {
3256
+ "status": {
3257
+ "type": "string",
3258
+ "const": "missing"
3259
+ },
3260
+ "files": {
3261
+ "readOnly": true,
3262
+ "type": "array",
3263
+ "items": {
3264
+ "type": "string",
3265
+ "pattern": "^[0-9a-f]{64}$"
3266
+ }
3267
+ },
3268
+ "route": {
3269
+ "$ref": "#/$defs/HostedRoute"
3270
+ }
3271
+ },
3272
+ "required": [
3273
+ "status",
3274
+ "files",
3275
+ "route"
3276
+ ]
3277
+ }
3278
+ ],
3279
+ "description": "A push's state: the client files the server still lacks, or the hosted version."
3280
+ },
3281
+ "HostedRoute": {
3282
+ "type": "object",
3283
+ "properties": {
3284
+ "routeId": {
3285
+ "type": "string"
3286
+ },
3287
+ "label": {
3288
+ "type": "string"
3289
+ }
3290
+ },
3291
+ "required": [
3292
+ "routeId",
3293
+ "label"
3294
+ ],
3295
+ "description": "An artifact's hosted route: its rte_ ID and random label."
3296
+ },
3297
+ "HostedSettings": {
3298
+ "type": "object",
3299
+ "properties": {
3300
+ "offline": {
3301
+ "type": "object",
3302
+ "properties": {
3303
+ "actions": {
3304
+ "type": "string",
3305
+ "enum": [
3306
+ "queue",
3307
+ "fail"
3308
+ ]
3309
+ },
3310
+ "limit": {
3311
+ "$ref": "#/$defs/Duration"
3312
+ }
3313
+ }
3314
+ },
3315
+ "actions": {
3316
+ "type": "string",
3317
+ "enum": [
3318
+ "signed-in",
3319
+ "link"
3320
+ ]
3321
+ },
3322
+ "submissions": {
3323
+ "type": "string",
3324
+ "enum": [
3325
+ "link",
3326
+ "signed-in"
3327
+ ]
3328
+ },
3329
+ "preview": {
3330
+ "type": "string",
3331
+ "enum": [
3332
+ "generic",
3333
+ "title"
3334
+ ]
3335
+ }
3336
+ },
3337
+ "description": "How an artifact behaves on a remote server: offline actions, who may act and submit, previews."
3338
+ },
3339
+ "HostedSubmissionParams": {
3340
+ "type": "object",
3341
+ "properties": {
3342
+ "submissionId": {
3343
+ "$ref": "#/$defs/SubmissionId"
3344
+ }
3345
+ },
3346
+ "required": [
3347
+ "submissionId"
3348
+ ]
3349
+ },
3350
+ "InstanceCapabilities": {
3351
+ "type": "object",
3352
+ "properties": {
3353
+ "methods": {
3354
+ "readOnly": true,
3355
+ "type": "array",
3356
+ "items": {
3357
+ "type": "string"
3358
+ }
3359
+ },
3360
+ "notifications": {
3361
+ "readOnly": true,
3362
+ "type": "array",
3363
+ "items": {
3364
+ "type": "string"
3365
+ }
3366
+ },
3367
+ "ports": {
3368
+ "readOnly": true,
3369
+ "type": "array",
3370
+ "items": {
3371
+ "$ref": "#/$defs/PortName"
3372
+ }
3373
+ }
3374
+ },
3375
+ "required": [
3376
+ "methods",
3377
+ "notifications",
3378
+ "ports"
3379
+ ],
3380
+ "description": "What the instance offers: methods, notifications and supported ports."
2932
3381
  },
2933
3382
  "InstanceCheckParams": {
2934
3383
  "type": "object",
@@ -2996,8 +3445,15 @@
2996
3445
  "type": "string",
2997
3446
  "enum": [
2998
3447
  "host",
2999
- "daemon"
3448
+ "daemon",
3449
+ "hosted"
3000
3450
  ]
3451
+ },
3452
+ "incarnation": {
3453
+ "type": "string"
3454
+ },
3455
+ "cursor": {
3456
+ "type": "string"
3001
3457
  }
3002
3458
  },
3003
3459
  "required": [
@@ -3065,6 +3521,13 @@
3065
3521
  "items": {
3066
3522
  "$ref": "#/$defs/Share"
3067
3523
  }
3524
+ },
3525
+ "links": {
3526
+ "readOnly": true,
3527
+ "type": "array",
3528
+ "items": {
3529
+ "$ref": "#/$defs/RemoteLink"
3530
+ }
3068
3531
  }
3069
3532
  },
3070
3533
  "required": [
@@ -3214,6 +3677,11 @@
3214
3677
  ],
3215
3678
  "description": "A successful JSON-RPC 2.0 response."
3216
3679
  },
3680
+ "LinkId": {
3681
+ "type": "string",
3682
+ "pattern": "^lnk_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
3683
+ "description": "Instance link ID: \"lnk_\" followed by a 26-character ULID."
3684
+ },
3217
3685
  "LivePushParams": {
3218
3686
  "type": "object",
3219
3687
  "properties": {
@@ -3271,7 +3739,7 @@
3271
3739
  "properties": {
3272
3740
  "key": {
3273
3741
  "type": "string",
3274
- "pattern": "^[A-Za-z_$][A-Za-z0-9_$]{0,127}$"
3742
+ "pattern": "^(?:[A-Za-z_$][A-Za-z0-9_$]{0,127}$|\\$tally\\/[^\\u0000-\\u001f\\u007f]{1,256}$)"
3275
3743
  },
3276
3744
  "window": {
3277
3745
  "type": "integer",
@@ -3319,6 +3787,9 @@
3319
3787
  },
3320
3788
  "home": {
3321
3789
  "$ref": "#/$defs/HomeConfig"
3790
+ },
3791
+ "link": {
3792
+ "$ref": "#/$defs/OwnerLinkInfo"
3322
3793
  }
3323
3794
  },
3324
3795
  "required": [
@@ -3425,6 +3896,41 @@
3425
3896
  ],
3426
3897
  "description": "A draft field a version doesn't cover: its ID, label, value and source version."
3427
3898
  },
3899
+ "OwnerLinkInfo": {
3900
+ "type": "object",
3901
+ "properties": {
3902
+ "instanceId": {
3903
+ "type": "string",
3904
+ "minLength": 1
3905
+ },
3906
+ "relayMark": {
3907
+ "type": "integer",
3908
+ "minimum": 0,
3909
+ "maximum": 9007199254740991
3910
+ },
3911
+ "followed": {
3912
+ "type": "object",
3913
+ "properties": {
3914
+ "incarnation": {
3915
+ "type": "string",
3916
+ "minLength": 1
3917
+ },
3918
+ "cursor": {
3919
+ "$ref": "#/$defs/Cursor"
3920
+ }
3921
+ },
3922
+ "required": [
3923
+ "incarnation",
3924
+ "cursor"
3925
+ ]
3926
+ }
3927
+ },
3928
+ "required": [
3929
+ "instanceId",
3930
+ "relayMark"
3931
+ ],
3932
+ "description": "An owner instance's link on its binding session: its link ID, its relay mark and the hosted home's position it committed."
3933
+ },
3428
3934
  "PollResult": {
3429
3935
  "type": "object",
3430
3936
  "properties": {
@@ -3538,153 +4044,907 @@
3538
4044
  "pattern": "^[a-z][a-zA-Z0-9]*$",
3539
4045
  "description": "A host port name: identity, submissions, drafts, reviews, addressing, trustedControls, capture, secrets, pty, or ai (reserved). Open for later ports."
3540
4046
  },
3541
- "PortSecretsGetParams": {
4047
+ "PortRelayCallParams": {
3542
4048
  "type": "object",
3543
4049
  "properties": {
4050
+ "callId": {
4051
+ "type": "string",
4052
+ "minLength": 1
4053
+ },
3544
4054
  "artifactId": {
3545
- "type": "string"
4055
+ "type": "string",
4056
+ "minLength": 1
3546
4057
  },
3547
- "name": {
4058
+ "versionId": {
4059
+ "type": "string",
4060
+ "minLength": 1
4061
+ },
4062
+ "fnId": {
4063
+ "type": "string",
4064
+ "minLength": 1
4065
+ },
4066
+ "args": {
4067
+ "$ref": "#/$defs/Batches"
4068
+ },
4069
+ "viewer": {
4070
+ "$ref": "#/$defs/RelayViewer"
4071
+ },
4072
+ "viewId": {
3548
4073
  "type": "string"
3549
4074
  }
3550
4075
  },
3551
4076
  "required": [
3552
- "artifactId",
3553
- "name"
3554
- ],
3555
- "description": "The artifact and the name of the secret its server code asks for."
3556
- },
3557
- "PortSecretsGetResult": {
3558
- "description": "The secret's value, or null when the host has none.",
3559
- "type": [
3560
- "string",
3561
- "null"
4077
+ "callId",
4078
+ "artifactId",
4079
+ "versionId",
4080
+ "fnId",
4081
+ "args"
4082
+ ]
4083
+ },
4084
+ "PortRelayCallResult": {
4085
+ "type": "object",
4086
+ "properties": {
4087
+ "accepted": {
4088
+ "type": "boolean",
4089
+ "const": true
4090
+ }
4091
+ },
4092
+ "required": [
4093
+ "accepted"
4094
+ ]
4095
+ },
4096
+ "PortRelayCancelParams": {
4097
+ "type": "object",
4098
+ "properties": {
4099
+ "runId": {
4100
+ "type": "string",
4101
+ "minLength": 1
4102
+ }
4103
+ },
4104
+ "required": [
4105
+ "runId"
4106
+ ]
4107
+ },
4108
+ "PortRelayCancelResult": {
4109
+ "type": "object",
4110
+ "properties": {}
4111
+ },
4112
+ "PortRelayLiveParams": {
4113
+ "type": "object",
4114
+ "properties": {
4115
+ "artifactId": {
4116
+ "type": "string",
4117
+ "minLength": 1
4118
+ },
4119
+ "versionId": {
4120
+ "type": "string",
4121
+ "minLength": 1
4122
+ },
4123
+ "interest": {
4124
+ "type": "string",
4125
+ "enum": [
4126
+ "start",
4127
+ "renew",
4128
+ "stop",
4129
+ "refresh"
4130
+ ]
4131
+ },
4132
+ "keys": {
4133
+ "readOnly": true,
4134
+ "maxItems": 1000,
4135
+ "type": "array",
4136
+ "items": {
4137
+ "type": "string",
4138
+ "pattern": "^[A-Za-z_$][A-Za-z0-9_$]{0,127}$"
4139
+ }
4140
+ }
4141
+ },
4142
+ "required": [
4143
+ "artifactId",
4144
+ "versionId",
4145
+ "interest",
4146
+ "keys"
4147
+ ]
4148
+ },
4149
+ "PortRelayLiveResult": {
4150
+ "type": "object",
4151
+ "properties": {}
4152
+ },
4153
+ "PortRelayReconcileParams": {
4154
+ "type": "object",
4155
+ "properties": {
4156
+ "runs": {
4157
+ "readOnly": true,
4158
+ "maxItems": 10000,
4159
+ "type": "array",
4160
+ "items": {
4161
+ "type": "string",
4162
+ "minLength": 1
4163
+ }
4164
+ },
4165
+ "held": {
4166
+ "readOnly": true,
4167
+ "maxItems": 10000,
4168
+ "type": "array",
4169
+ "items": {
4170
+ "$ref": "#/$defs/RelayHeld"
4171
+ }
4172
+ }
4173
+ },
4174
+ "required": [
4175
+ "runs"
4176
+ ]
4177
+ },
4178
+ "PortRelayReconcileResult": {
4179
+ "type": "object",
4180
+ "properties": {
4181
+ "runs": {
4182
+ "readOnly": true,
4183
+ "type": "array",
4184
+ "items": {
4185
+ "$ref": "#/$defs/RelayReconciled"
4186
+ }
4187
+ }
4188
+ },
4189
+ "required": [
4190
+ "runs"
4191
+ ]
4192
+ },
4193
+ "PortRelayRunParams": {
4194
+ "type": "object",
4195
+ "properties": {
4196
+ "runId": {
4197
+ "type": "string",
4198
+ "minLength": 1
4199
+ },
4200
+ "seq": {
4201
+ "type": "integer",
4202
+ "minimum": 1,
4203
+ "maximum": 9007199254740991
4204
+ },
4205
+ "artifactId": {
4206
+ "type": "string",
4207
+ "minLength": 1
4208
+ },
4209
+ "versionId": {
4210
+ "type": "string",
4211
+ "minLength": 1
4212
+ },
4213
+ "fnId": {
4214
+ "type": "string",
4215
+ "minLength": 1
4216
+ },
4217
+ "args": {
4218
+ "$ref": "#/$defs/Batches"
4219
+ },
4220
+ "key": {
4221
+ "type": "string"
4222
+ },
4223
+ "viewer": {
4224
+ "$ref": "#/$defs/RelayViewer"
4225
+ },
4226
+ "viewId": {
4227
+ "type": "string"
4228
+ }
4229
+ },
4230
+ "required": [
4231
+ "runId",
4232
+ "seq",
4233
+ "artifactId",
4234
+ "versionId",
4235
+ "fnId",
4236
+ "args"
4237
+ ]
4238
+ },
4239
+ "PortRelayRunResult": {
4240
+ "type": "object",
4241
+ "properties": {
4242
+ "accepted": {
4243
+ "type": "boolean",
4244
+ "const": true
4245
+ }
4246
+ },
4247
+ "required": [
4248
+ "accepted"
4249
+ ]
4250
+ },
4251
+ "PortSecretsGetParams": {
4252
+ "type": "object",
4253
+ "properties": {
4254
+ "artifactId": {
4255
+ "type": "string"
4256
+ },
4257
+ "name": {
4258
+ "type": "string"
4259
+ }
4260
+ },
4261
+ "required": [
4262
+ "artifactId",
4263
+ "name"
4264
+ ],
4265
+ "description": "The artifact and the name of the secret its server code asks for."
4266
+ },
4267
+ "PortSecretsGetResult": {
4268
+ "description": "The secret's value, or null when the host has none.",
4269
+ "type": [
4270
+ "string",
4271
+ "null"
4272
+ ]
4273
+ },
4274
+ "PortSubmissionsDeliverResult": {
4275
+ "anyOf": [
4276
+ {
4277
+ "type": "object",
4278
+ "properties": {
4279
+ "accepted": {
4280
+ "type": "boolean",
4281
+ "const": true
4282
+ }
4283
+ },
4284
+ "required": [
4285
+ "accepted"
4286
+ ]
4287
+ },
4288
+ {
4289
+ "type": "object",
4290
+ "properties": {
4291
+ "accepted": {
4292
+ "type": "boolean",
4293
+ "const": false
4294
+ },
4295
+ "reason": {
4296
+ "type": "string",
4297
+ "minLength": 1
4298
+ },
4299
+ "retry": {
4300
+ "type": "boolean"
4301
+ }
4302
+ },
4303
+ "required": [
4304
+ "accepted",
4305
+ "reason",
4306
+ "retry"
4307
+ ]
4308
+ }
4309
+ ]
4310
+ },
4311
+ "PortTrustedControlsActivatedParams": {
4312
+ "type": "object",
4313
+ "properties": {
4314
+ "artifactId": {
4315
+ "$ref": "#/$defs/ArtifactId"
4316
+ },
4317
+ "control": {
4318
+ "$ref": "#/$defs/TrustedControl"
4319
+ },
4320
+ "viewer": {
4321
+ "$ref": "#/$defs/Viewer"
4322
+ },
4323
+ "viewId": {
4324
+ "$ref": "#/$defs/ViewId"
4325
+ },
4326
+ "detail": {
4327
+ "type": "object",
4328
+ "propertyNames": {
4329
+ "type": "string"
4330
+ },
4331
+ "additionalProperties": {
4332
+ "type": "string"
4333
+ }
4334
+ }
4335
+ },
4336
+ "required": [
4337
+ "artifactId",
4338
+ "control",
4339
+ "viewer",
4340
+ "viewId"
4341
+ ],
4342
+ "description": "A trusted control a person used: the artifact, control, viewer, view and detail."
4343
+ },
4344
+ "PortTrustedControlsPolicyParams": {
4345
+ "type": "object",
4346
+ "properties": {
4347
+ "artifact": {
4348
+ "$ref": "#/$defs/ArtifactSummary"
4349
+ }
4350
+ },
4351
+ "required": [
4352
+ "artifact"
4353
+ ],
4354
+ "description": "The artifact a frame is about to show, for its host's controls policy."
4355
+ },
4356
+ "PublishReceipt": {
4357
+ "type": "object",
4358
+ "properties": {
4359
+ "artifactId": {
4360
+ "$ref": "#/$defs/ArtifactId"
4361
+ },
4362
+ "versionId": {
4363
+ "$ref": "#/$defs/VersionId"
4364
+ },
4365
+ "version": {
4366
+ "type": "integer",
4367
+ "minimum": 1,
4368
+ "maximum": 9007199254740991
4369
+ },
4370
+ "url": {
4371
+ "type": "string"
4372
+ },
4373
+ "tokenId": {
4374
+ "$ref": "#/$defs/TokenId"
4375
+ },
4376
+ "cursor": {
4377
+ "$ref": "#/$defs/Cursor"
4378
+ },
4379
+ "reused": {
4380
+ "type": "boolean"
4381
+ },
4382
+ "forcedDiagnostics": {
4383
+ "readOnly": true,
4384
+ "type": "array",
4385
+ "items": {
4386
+ "type": "string"
4387
+ }
4388
+ }
4389
+ },
4390
+ "required": [
4391
+ "artifactId",
4392
+ "versionId",
4393
+ "version",
4394
+ "cursor",
4395
+ "reused"
4396
+ ],
4397
+ "description": "The receipt of artifact/publish: artifact, version, number, capability URL when served, event cursor, reuse."
4398
+ },
4399
+ "RelayCallBatchParams": {
4400
+ "type": "object",
4401
+ "properties": {
4402
+ "callId": {
4403
+ "type": "string",
4404
+ "minLength": 1
4405
+ },
4406
+ "seq": {
4407
+ "type": "integer",
4408
+ "minimum": 1,
4409
+ "maximum": 9007199254740991
4410
+ },
4411
+ "batches": {
4412
+ "$ref": "#/$defs/Batches"
4413
+ },
4414
+ "end": {
4415
+ "type": "object",
4416
+ "properties": {
4417
+ "status": {
4418
+ "type": "string",
4419
+ "enum": [
4420
+ "succeeded",
4421
+ "failed"
4422
+ ]
4423
+ },
4424
+ "error": {
4425
+ "type": "object",
4426
+ "properties": {
4427
+ "message": {
4428
+ "type": "string",
4429
+ "maxLength": 10000
4430
+ },
4431
+ "code": {
4432
+ "type": "string",
4433
+ "maxLength": 200
4434
+ }
4435
+ },
4436
+ "required": [
4437
+ "message"
4438
+ ]
4439
+ }
4440
+ },
4441
+ "required": [
4442
+ "status"
4443
+ ]
4444
+ }
4445
+ },
4446
+ "required": [
4447
+ "callId",
4448
+ "seq"
4449
+ ]
4450
+ },
4451
+ "RelayCallBatchResult": {
4452
+ "type": "object",
4453
+ "properties": {}
4454
+ },
4455
+ "RelayEffectParams": {
4456
+ "type": "object",
4457
+ "properties": {
4458
+ "artifactId": {
4459
+ "type": "string",
4460
+ "minLength": 1
4461
+ },
4462
+ "runId": {
4463
+ "type": "string"
4464
+ },
4465
+ "callId": {
4466
+ "type": "string"
4467
+ },
4468
+ "kind": {
4469
+ "type": "string",
4470
+ "enum": [
4471
+ "signal",
4472
+ "emit"
4473
+ ]
4474
+ },
4475
+ "name": {
4476
+ "type": "string",
4477
+ "minLength": 1,
4478
+ "maxLength": 200
4479
+ },
4480
+ "payload": {}
4481
+ },
4482
+ "required": [
4483
+ "artifactId",
4484
+ "kind",
4485
+ "name"
4486
+ ]
4487
+ },
4488
+ "RelayEffectResult": {
4489
+ "type": "object",
4490
+ "properties": {
4491
+ "cursor": {
4492
+ "$ref": "#/$defs/Cursor"
4493
+ }
4494
+ },
4495
+ "required": [
4496
+ "cursor"
4497
+ ]
4498
+ },
4499
+ "RelayHeld": {
4500
+ "type": "object",
4501
+ "properties": {
4502
+ "runId": {
4503
+ "type": "string",
4504
+ "minLength": 1
4505
+ },
4506
+ "log": {
4507
+ "type": "integer",
4508
+ "minimum": 0,
4509
+ "maximum": 9007199254740991
4510
+ },
4511
+ "batches": {
4512
+ "type": "integer",
4513
+ "minimum": 0,
4514
+ "maximum": 9007199254740991
4515
+ }
4516
+ },
4517
+ "required": [
4518
+ "runId",
4519
+ "log",
4520
+ "batches"
4521
+ ]
4522
+ },
4523
+ "RelayLiveValueParams": {
4524
+ "type": "object",
4525
+ "properties": {
4526
+ "artifactId": {
4527
+ "type": "string",
4528
+ "minLength": 1
4529
+ },
4530
+ "versionId": {
4531
+ "type": "string",
4532
+ "minLength": 1
4533
+ },
4534
+ "key": {
4535
+ "type": "string",
4536
+ "pattern": "^[A-Za-z_$][A-Za-z0-9_$]{0,127}$"
4537
+ },
4538
+ "value": {
4539
+ "$ref": "#/$defs/Batches"
4540
+ },
4541
+ "error": {
4542
+ "type": "object",
4543
+ "properties": {
4544
+ "message": {
4545
+ "type": "string"
4546
+ },
4547
+ "code": {
4548
+ "type": "string"
4549
+ }
4550
+ },
4551
+ "required": [
4552
+ "message"
4553
+ ]
4554
+ },
4555
+ "at": {
4556
+ "type": "string"
4557
+ }
4558
+ },
4559
+ "required": [
4560
+ "artifactId",
4561
+ "versionId",
4562
+ "key",
4563
+ "at"
4564
+ ]
4565
+ },
4566
+ "RelayLiveValueResult": {
4567
+ "type": "object",
4568
+ "properties": {
4569
+ "revision": {
4570
+ "type": "string"
4571
+ }
4572
+ }
4573
+ },
4574
+ "RelayReconciled": {
4575
+ "type": "object",
4576
+ "properties": {
4577
+ "runId": {
4578
+ "type": "string"
4579
+ },
4580
+ "state": {
4581
+ "anyOf": [
4582
+ {
4583
+ "$ref": "#/$defs/RunState"
4584
+ },
4585
+ {
4586
+ "type": "string",
4587
+ "const": "unknown-to-owner"
4588
+ }
4589
+ ]
4590
+ }
4591
+ },
4592
+ "required": [
4593
+ "runId",
4594
+ "state"
4595
+ ]
4596
+ },
4597
+ "RelayRunEnd": {
4598
+ "type": "object",
4599
+ "properties": {
4600
+ "status": {
4601
+ "type": "string",
4602
+ "enum": [
4603
+ "succeeded",
4604
+ "failed",
4605
+ "cancelled"
4606
+ ]
4607
+ },
4608
+ "reason": {
4609
+ "type": "string",
4610
+ "maxLength": 200
4611
+ },
4612
+ "error": {
4613
+ "type": "object",
4614
+ "properties": {
4615
+ "message": {
4616
+ "type": "string",
4617
+ "maxLength": 10000
4618
+ },
4619
+ "code": {
4620
+ "type": "string",
4621
+ "maxLength": 200
4622
+ }
4623
+ },
4624
+ "required": [
4625
+ "message"
4626
+ ]
4627
+ }
4628
+ },
4629
+ "required": [
4630
+ "status"
4631
+ ]
4632
+ },
4633
+ "RelayRunUpdateParams": {
4634
+ "type": "object",
4635
+ "properties": {
4636
+ "runId": {
4637
+ "type": "string",
4638
+ "minLength": 1
4639
+ },
4640
+ "seq": {
4641
+ "type": "integer",
4642
+ "minimum": 1,
4643
+ "maximum": 9007199254740991
4644
+ },
4645
+ "running": {
4646
+ "type": "boolean"
4647
+ },
4648
+ "progress": {
4649
+ "$ref": "#/$defs/RunProgress"
4650
+ },
4651
+ "log": {
4652
+ "readOnly": true,
4653
+ "type": "array",
4654
+ "items": {
4655
+ "type": "string"
4656
+ }
4657
+ },
4658
+ "logFrom": {
4659
+ "type": "integer",
4660
+ "minimum": 0,
4661
+ "maximum": 9007199254740991
4662
+ },
4663
+ "batches": {
4664
+ "$ref": "#/$defs/Batches"
4665
+ },
4666
+ "batchFrom": {
4667
+ "type": "integer",
4668
+ "minimum": 0,
4669
+ "maximum": 9007199254740991
4670
+ },
4671
+ "end": {
4672
+ "$ref": "#/$defs/RelayRunEnd"
4673
+ }
4674
+ },
4675
+ "required": [
4676
+ "runId",
4677
+ "seq"
4678
+ ]
4679
+ },
4680
+ "RelayRunUpdateResult": {
4681
+ "type": "object",
4682
+ "properties": {}
4683
+ },
4684
+ "RelayViewer": {
4685
+ "type": "object",
4686
+ "properties": {
4687
+ "id": {
4688
+ "type": "string",
4689
+ "minLength": 1
4690
+ },
4691
+ "name": {
4692
+ "type": "string"
4693
+ }
4694
+ },
4695
+ "required": [
4696
+ "id"
4697
+ ],
4698
+ "description": "The viewer a relayed run or call acts for: the hosted home's viewer ID and name."
4699
+ },
4700
+ "RemoteLink": {
4701
+ "type": "object",
4702
+ "properties": {
4703
+ "server": {
4704
+ "$ref": "#/$defs/ServerOrigin"
4705
+ },
4706
+ "account": {
4707
+ "type": "object",
4708
+ "properties": {
4709
+ "id": {
4710
+ "type": "string"
4711
+ },
4712
+ "name": {
4713
+ "type": "string"
4714
+ }
4715
+ },
4716
+ "required": [
4717
+ "id"
4718
+ ]
4719
+ },
4720
+ "instanceId": {
4721
+ "type": "string"
4722
+ },
4723
+ "name": {
4724
+ "type": "string"
4725
+ },
4726
+ "default": {
4727
+ "type": "boolean"
4728
+ },
4729
+ "state": {
4730
+ "type": "string",
4731
+ "enum": [
4732
+ "connected",
4733
+ "connecting",
4734
+ "offline",
4735
+ "signed-out"
4736
+ ]
4737
+ },
4738
+ "since": {
4739
+ "type": "string"
4740
+ },
4741
+ "pendingPushes": {
4742
+ "type": "integer",
4743
+ "minimum": 0,
4744
+ "maximum": 9007199254740991
4745
+ },
4746
+ "lastError": {
4747
+ "type": "string"
4748
+ }
4749
+ },
4750
+ "required": [
4751
+ "server",
4752
+ "account",
4753
+ "instanceId",
4754
+ "name",
4755
+ "default",
4756
+ "state",
4757
+ "since",
4758
+ "pendingPushes"
4759
+ ],
4760
+ "description": "One remote server this home is linked to, and the state of the link."
4761
+ },
4762
+ "RemoteLoginParams": {
4763
+ "type": "object",
4764
+ "properties": {
4765
+ "server": {
4766
+ "$ref": "#/$defs/ServerOrigin"
4767
+ },
4768
+ "default": {
4769
+ "type": "boolean"
4770
+ },
4771
+ "requestId": {
4772
+ "type": "string",
4773
+ "minLength": 1
4774
+ }
4775
+ }
4776
+ },
4777
+ "RemoteLoginResult": {
4778
+ "type": "object",
4779
+ "properties": {
4780
+ "loginId": {
4781
+ "type": "string"
4782
+ },
4783
+ "server": {
4784
+ "$ref": "#/$defs/ServerOrigin"
4785
+ },
4786
+ "verificationUri": {
4787
+ "type": "string"
4788
+ },
4789
+ "verificationUriComplete": {
4790
+ "type": "string"
4791
+ },
4792
+ "userCode": {
4793
+ "type": "string"
4794
+ },
4795
+ "expiresAt": {
4796
+ "type": "string"
4797
+ }
4798
+ },
4799
+ "required": [
4800
+ "loginId",
4801
+ "server",
4802
+ "verificationUri",
4803
+ "userCode",
4804
+ "expiresAt"
4805
+ ],
4806
+ "description": "A device-grant sign-in that started: where to go and the code to enter."
4807
+ },
4808
+ "RemoteLoginWaitParams": {
4809
+ "type": "object",
4810
+ "properties": {
4811
+ "loginId": {
4812
+ "type": "string",
4813
+ "minLength": 1
4814
+ },
4815
+ "timeoutMs": {
4816
+ "type": "integer",
4817
+ "minimum": 0,
4818
+ "maximum": 2147483647
4819
+ }
4820
+ },
4821
+ "required": [
4822
+ "loginId",
4823
+ "timeoutMs"
3562
4824
  ]
3563
4825
  },
3564
- "PortSubmissionsDeliverResult": {
3565
- "anyOf": [
4826
+ "RemoteLoginWaitResult": {
4827
+ "oneOf": [
3566
4828
  {
3567
4829
  "type": "object",
3568
4830
  "properties": {
3569
- "accepted": {
3570
- "type": "boolean",
3571
- "const": true
4831
+ "status": {
4832
+ "type": "string",
4833
+ "const": "signed-in"
4834
+ },
4835
+ "server": {
4836
+ "$ref": "#/$defs/ServerOrigin"
4837
+ },
4838
+ "account": {
4839
+ "type": "object",
4840
+ "properties": {
4841
+ "id": {
4842
+ "type": "string"
4843
+ },
4844
+ "name": {
4845
+ "type": "string"
4846
+ }
4847
+ },
4848
+ "required": [
4849
+ "id"
4850
+ ]
4851
+ },
4852
+ "instanceId": {
4853
+ "type": "string"
3572
4854
  }
3573
4855
  },
3574
4856
  "required": [
3575
- "accepted"
4857
+ "status",
4858
+ "server",
4859
+ "account",
4860
+ "instanceId"
3576
4861
  ]
3577
4862
  },
3578
4863
  {
3579
4864
  "type": "object",
3580
4865
  "properties": {
3581
- "accepted": {
3582
- "type": "boolean",
3583
- "const": false
3584
- },
3585
- "reason": {
4866
+ "status": {
3586
4867
  "type": "string",
3587
- "minLength": 1
3588
- },
3589
- "retry": {
3590
- "type": "boolean"
4868
+ "const": "pending"
3591
4869
  }
3592
4870
  },
3593
4871
  "required": [
3594
- "accepted",
3595
- "reason",
3596
- "retry"
4872
+ "status"
3597
4873
  ]
3598
4874
  }
3599
- ]
4875
+ ],
4876
+ "description": "A sign-in's end: signed in with the account and instance link, or pending."
3600
4877
  },
3601
- "PortTrustedControlsActivatedParams": {
4878
+ "RemoteLogoutParams": {
3602
4879
  "type": "object",
3603
4880
  "properties": {
3604
- "artifactId": {
3605
- "$ref": "#/$defs/ArtifactId"
3606
- },
3607
- "control": {
3608
- "$ref": "#/$defs/TrustedControl"
4881
+ "server": {
4882
+ "$ref": "#/$defs/ServerOrigin"
3609
4883
  },
3610
- "viewer": {
3611
- "$ref": "#/$defs/Viewer"
3612
- },
3613
- "viewId": {
3614
- "$ref": "#/$defs/ViewId"
3615
- },
3616
- "detail": {
3617
- "type": "object",
3618
- "propertyNames": {
3619
- "type": "string"
3620
- },
3621
- "additionalProperties": {
3622
- "type": "string"
4884
+ "forget": {
4885
+ "type": "boolean"
4886
+ }
4887
+ }
4888
+ },
4889
+ "RemoteLogoutResult": {
4890
+ "type": "object",
4891
+ "properties": {
4892
+ "servers": {
4893
+ "readOnly": true,
4894
+ "type": "array",
4895
+ "items": {
4896
+ "$ref": "#/$defs/ServerOrigin"
3623
4897
  }
3624
4898
  }
3625
4899
  },
3626
4900
  "required": [
3627
- "artifactId",
3628
- "control",
3629
- "viewer",
3630
- "viewId"
4901
+ "servers"
3631
4902
  ],
3632
- "description": "A trusted control a person used: the artifact, control, viewer, view and detail."
4903
+ "description": "The servers signed out of."
3633
4904
  },
3634
- "PortTrustedControlsPolicyParams": {
4905
+ "RemoteStatusParams": {
4906
+ "type": "object",
4907
+ "properties": {}
4908
+ },
4909
+ "RemoteStatusResult": {
3635
4910
  "type": "object",
3636
4911
  "properties": {
3637
- "artifact": {
3638
- "$ref": "#/$defs/ArtifactSummary"
4912
+ "links": {
4913
+ "readOnly": true,
4914
+ "type": "array",
4915
+ "items": {
4916
+ "$ref": "#/$defs/RemoteLink"
4917
+ }
3639
4918
  }
3640
4919
  },
3641
4920
  "required": [
3642
- "artifact"
4921
+ "links"
3643
4922
  ],
3644
- "description": "The artifact a frame is about to show, for its host's controls policy."
4923
+ "description": "Every remote server this home is linked to."
3645
4924
  },
3646
- "PublishReceipt": {
4925
+ "RemoteTokenParams": {
3647
4926
  "type": "object",
3648
4927
  "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": {
4928
+ "accessToken": {
4929
+ "type": "string",
4930
+ "minLength": 1
4931
+ }
4932
+ },
4933
+ "required": [
4934
+ "accessToken"
4935
+ ]
4936
+ },
4937
+ "RemoteTokenResult": {
4938
+ "type": "object",
4939
+ "properties": {
4940
+ "expiresAt": {
3661
4941
  "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
4942
  }
3679
4943
  },
3680
4944
  "required": [
3681
- "artifactId",
3682
- "versionId",
3683
- "version",
3684
- "cursor",
3685
- "reused"
4945
+ "expiresAt"
3686
4946
  ],
3687
- "description": "The receipt of artifact/publish: artifact, version, number, capability URL when served, event cursor, reuse."
4947
+ "description": "When the binding closes unless its token is refreshed again."
3688
4948
  },
3689
4949
  "ResultComment": {
3690
4950
  "type": "object",
@@ -3998,6 +5258,9 @@
3998
5258
  "items": {
3999
5259
  "$ref": "#/$defs/DeliveryStatus"
4000
5260
  }
5261
+ },
5262
+ "origin": {
5263
+ "$ref": "#/$defs/EventOrigin"
4001
5264
  }
4002
5265
  },
4003
5266
  "required": [
@@ -4245,6 +5508,11 @@
4245
5508
  "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
5509
  "description": "Protocol revision: a calendar date in YYYY-MM-DD form."
4247
5510
  },
5511
+ "RouteId": {
5512
+ "type": "string",
5513
+ "pattern": "^rte_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
5514
+ "description": "Hosted route ID: \"rte_\" followed by a 26-character ULID."
5515
+ },
4248
5516
  "RunAttachRequest": {
4249
5517
  "type": "object",
4250
5518
  "properties": {
@@ -4404,7 +5672,8 @@
4404
5672
  "waiting",
4405
5673
  "succeeded",
4406
5674
  "failed",
4407
- "cancelled"
5675
+ "cancelled",
5676
+ "unknown"
4408
5677
  ]
4409
5678
  },
4410
5679
  "reason": {
@@ -4455,6 +5724,9 @@
4455
5724
  "type": "integer",
4456
5725
  "minimum": 0,
4457
5726
  "maximum": 9007199254740991
5727
+ },
5728
+ "ownerUnreachable": {
5729
+ "type": "boolean"
4458
5730
  }
4459
5731
  },
4460
5732
  "required": [
@@ -4578,6 +5850,11 @@
4578
5850
  ],
4579
5851
  "description": "A secret's name, value and optional artifact scope."
4580
5852
  },
5853
+ "ServerOrigin": {
5854
+ "type": "string",
5855
+ "pattern": "^https?:\\/\\/[^/?#\\s]+$",
5856
+ "description": "A remote server, by its API origin, such as https://api.example."
5857
+ },
4581
5858
  "Sha256": {
4582
5859
  "type": "string",
4583
5860
  "pattern": "^[0-9a-f]{64}$",
@@ -4697,6 +5974,10 @@
4697
5974
  "via": {
4698
5975
  "$ref": "#/$defs/ShareVia"
4699
5976
  },
5977
+ "server": {
5978
+ "type": "string",
5979
+ "pattern": "^https?:\\/\\/[^/?#\\s]+$"
5980
+ },
4700
5981
  "ttl": {
4701
5982
  "$ref": "#/$defs/Duration"
4702
5983
  },
@@ -4831,9 +6112,10 @@
4831
6112
  "enum": [
4832
6113
  "tailnet",
4833
6114
  "funnel",
4834
- "cloudflare"
6115
+ "cloudflare",
6116
+ "remote"
4835
6117
  ],
4836
- "description": "How a share reaches its viewers: tailnet, funnel or cloudflare."
6118
+ "description": "How a share reaches its viewers: tailnet, funnel or cloudflare, or remote: hosted on a remote server (D165)."
4837
6119
  },
4838
6120
  "ShellSubmitRequest": {
4839
6121
  "type": "object",
@@ -4967,6 +6249,18 @@
4967
6249
  "agent",
4968
6250
  "host"
4969
6251
  ]
6252
+ },
6253
+ "causation": {
6254
+ "type": "object",
6255
+ "properties": {
6256
+ "runId": {
6257
+ "type": "string",
6258
+ "minLength": 1
6259
+ }
6260
+ },
6261
+ "required": [
6262
+ "runId"
6263
+ ]
4970
6264
  }
4971
6265
  },
4972
6266
  "required": [
@@ -5059,6 +6353,13 @@
5059
6353
  },
5060
6354
  "results": {
5061
6355
  "$ref": "#/$defs/Results"
6356
+ },
6357
+ "snapshot": {
6358
+ "type": "string",
6359
+ "maxLength": 41943040
6360
+ },
6361
+ "cursor": {
6362
+ "$ref": "#/$defs/Cursor"
5062
6363
  }
5063
6364
  },
5064
6365
  "required": [
@@ -5233,6 +6534,37 @@
5233
6534
  ],
5234
6535
  "description": "A browser submit: the view and the draft revision the viewer saw."
5235
6536
  },
6537
+ "TallySpec": {
6538
+ "type": "object",
6539
+ "properties": {
6540
+ "field": {
6541
+ "type": "string",
6542
+ "minLength": 1,
6543
+ "maxLength": 256
6544
+ },
6545
+ "choices": {
6546
+ "readOnly": true,
6547
+ "minItems": 2,
6548
+ "maxItems": 50,
6549
+ "type": "array",
6550
+ "items": {
6551
+ "type": "string",
6552
+ "minLength": 1,
6553
+ "maxLength": 256
6554
+ }
6555
+ },
6556
+ "minTotal": {
6557
+ "type": "integer",
6558
+ "minimum": 0,
6559
+ "maximum": 9007199254740991
6560
+ }
6561
+ },
6562
+ "required": [
6563
+ "field",
6564
+ "choices"
6565
+ ],
6566
+ "description": "A count by choice of a viewer-scoped field: its field, 2 to 50 distinct choices and minTotal."
6567
+ },
5236
6568
  "ThreadId": {
5237
6569
  "type": "string",
5238
6570
  "pattern": "^thr_[0-7][0-9A-HJKMNP-TV-Z]{25}$",
@@ -5468,6 +6800,89 @@
5468
6800
  "pattern": "^ver_[0-9A-HJKMNP-TV-Z]{26}$",
5469
6801
  "description": "Version ID: \"ver_\" followed by 26 characters of Crockford base32."
5470
6802
  },
6803
+ "VersionPush": {
6804
+ "type": "object",
6805
+ "properties": {
6806
+ "versionId": {
6807
+ "type": "string",
6808
+ "minLength": 1
6809
+ },
6810
+ "number": {
6811
+ "type": "integer",
6812
+ "minimum": 1,
6813
+ "maximum": 9007199254740991
6814
+ },
6815
+ "sourceDigest": {
6816
+ "type": "string",
6817
+ "pattern": "^[0-9a-f]{64}$"
6818
+ },
6819
+ "envDigest": {
6820
+ "type": "string",
6821
+ "pattern": "^[0-9a-f]{64}$"
6822
+ },
6823
+ "outputDigest": {
6824
+ "type": "string",
6825
+ "pattern": "^[0-9a-f]{64}$"
6826
+ },
6827
+ "manifest": {
6828
+ "type": "string",
6829
+ "maxLength": 4194304
6830
+ },
6831
+ "registry": {
6832
+ "type": "string",
6833
+ "maxLength": 16777216
6834
+ },
6835
+ "lock": {
6836
+ "type": "string",
6837
+ "maxLength": 16777216
6838
+ },
6839
+ "listing": {
6840
+ "readOnly": true,
6841
+ "maxItems": 100000,
6842
+ "type": "array",
6843
+ "items": {
6844
+ "readOnly": true,
6845
+ "type": "array",
6846
+ "prefixItems": [
6847
+ {
6848
+ "type": "string",
6849
+ "minLength": 1
6850
+ },
6851
+ {
6852
+ "type": "boolean"
6853
+ },
6854
+ {
6855
+ "type": "string",
6856
+ "pattern": "^[0-9a-f]{64}$"
6857
+ },
6858
+ {
6859
+ "type": "integer",
6860
+ "minimum": 0,
6861
+ "maximum": 9007199254740991
6862
+ }
6863
+ ],
6864
+ "items": false,
6865
+ "minItems": 4,
6866
+ "maxItems": 4
6867
+ }
6868
+ },
6869
+ "policy": {
6870
+ "$ref": "#/$defs/SubmissionPolicy"
6871
+ }
6872
+ },
6873
+ "required": [
6874
+ "versionId",
6875
+ "number",
6876
+ "sourceDigest",
6877
+ "envDigest",
6878
+ "outputDigest",
6879
+ "manifest",
6880
+ "registry",
6881
+ "lock",
6882
+ "listing"
6883
+ ],
6884
+ "description": "A version an owner pushes to its hosted home: its identity, manifest, registry, lockfile and output listing."
6885
+ },
5471
6886
  "VersionRef": {
5472
6887
  "type": "object",
5473
6888
  "properties": {
@@ -5727,7 +7142,9 @@
5727
7142
  "local",
5728
7143
  "tailnet",
5729
7144
  "token",
5730
- "host"
7145
+ "host",
7146
+ "account",
7147
+ "anonymous"
5731
7148
  ]
5732
7149
  },
5733
7150
  "name": {