semiont 0.6.12.dev2__py3-none-any.whl

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 (66) hide show
  1. semiont/__init__.py +20 -0
  2. semiont/bus.py +236 -0
  3. semiont/cache.py +345 -0
  4. semiont/cached.py +152 -0
  5. semiont/channel.py +81 -0
  6. semiont/channels.py +1306 -0
  7. semiont/client.py +161 -0
  8. semiont/error_codes.py +232 -0
  9. semiont/errors.py +147 -0
  10. semiont/event_bus.py +108 -0
  11. semiont/events.py +101 -0
  12. semiont/http/__init__.py +24 -0
  13. semiont/http/agent.py +232 -0
  14. semiont/http/content.py +234 -0
  15. semiont/http/exchange.py +200 -0
  16. semiont/http/oauth.py +346 -0
  17. semiont/http/session.py +191 -0
  18. semiont/http/sse.py +71 -0
  19. semiont/http/stream.py +683 -0
  20. semiont/http/transport.py +326 -0
  21. semiont/identifiers.py +114 -0
  22. semiont/identity.py +59 -0
  23. semiont/media_types.py +69 -0
  24. semiont/media_types_table.py +89 -0
  25. semiont/model.py +33 -0
  26. semiont/namespaces/__init__.py +19 -0
  27. semiont/namespaces/auth.py +32 -0
  28. semiont/namespaces/beckon.py +47 -0
  29. semiont/namespaces/bind.py +38 -0
  30. semiont/namespaces/browse.py +338 -0
  31. semiont/namespaces/follow.py +238 -0
  32. semiont/namespaces/frame.py +35 -0
  33. semiont/namespaces/gather.py +82 -0
  34. semiont/namespaces/job.py +94 -0
  35. semiont/namespaces/links.py +66 -0
  36. semiont/namespaces/live.py +301 -0
  37. semiont/namespaces/mark.py +174 -0
  38. semiont/namespaces/match.py +67 -0
  39. semiont/namespaces/refresher.py +283 -0
  40. semiont/namespaces/system.py +24 -0
  41. semiont/namespaces/yield_.py +101 -0
  42. semiont/oauth_clients.py +27 -0
  43. semiont/operations.py +337 -0
  44. semiont/py.typed +0 -0
  45. semiont/refresh.py +188 -0
  46. semiont/resume.py +95 -0
  47. semiont/retry.py +164 -0
  48. semiont/running.py +110 -0
  49. semiont/session.py +493 -0
  50. semiont/sign_in.py +54 -0
  51. semiont/sign_in_store.py +283 -0
  52. semiont/storage.py +139 -0
  53. semiont/telemetry.py +116 -0
  54. semiont/telemetry_table.py +121 -0
  55. semiont/testing/__init__.py +62 -0
  56. semiont/testing/client.py +53 -0
  57. semiont/testing/content.py +124 -0
  58. semiont/testing/gateway.py +85 -0
  59. semiont/testing/transport.py +341 -0
  60. semiont/timing.py +187 -0
  61. semiont/transport.py +531 -0
  62. semiont/types.py +5902 -0
  63. semiont/watched.py +111 -0
  64. semiont-0.6.12.dev2.dist-info/METADATA +533 -0
  65. semiont-0.6.12.dev2.dist-info/RECORD +66 -0
  66. semiont-0.6.12.dev2.dist-info/WHEEL +4 -0
semiont/channels.py ADDED
@@ -0,0 +1,1306 @@
1
+ # Generated from specs/src/bus/registry.json; do not edit.
2
+ # Regenerate: node scripts/bus/generate-python.mjs
3
+
4
+ """Every channel of the bus, typed by the payload it carries.
5
+
6
+ A constant names its channel and holds its payload's type, so a function that
7
+ takes a `Channel[P]` and a `P` is refused another channel's payload by a type
8
+ checker. The payload types are the protocol's own (`semiont.types`); which
9
+ belongs to which channel is the registry's to say, and is derived here from
10
+ each channel's shape.
11
+ """
12
+
13
+ from collections.abc import Mapping
14
+ from types import MappingProxyType
15
+ from typing import Final, Literal
16
+
17
+ from semiont.channel import AnyChannel, Channel, Empty, Response
18
+ from semiont.types import (
19
+ AnnotationContextResponse,
20
+ BeckonFocusEvent,
21
+ BeckonHoverEvent,
22
+ BeckonSparkleEvent,
23
+ BindBodyUpdated,
24
+ BindInitiateCommand,
25
+ BindUpdateBodyCommand,
26
+ BrowseAgentsRequest,
27
+ BrowseAgentsResult,
28
+ BrowseAnchoredTextRequest,
29
+ BrowseAnchoredTextResult,
30
+ BrowseAnnotationContextRequest,
31
+ BrowseAnnotationHistoryRequest,
32
+ BrowseAnnotationHistoryResult,
33
+ BrowseAnnotationRequest,
34
+ BrowseAnnotationResult,
35
+ BrowseAnnotationsRequest,
36
+ BrowseAnnotationsResult,
37
+ BrowseClickEvent,
38
+ BrowseDirectoryFailed,
39
+ BrowseDirectoryRequest,
40
+ BrowseDirectoryResult,
41
+ BrowseEntityTypeClickedEvent,
42
+ BrowseEntityTypesRequest,
43
+ BrowseEntityTypesResult,
44
+ BrowseEventsRequest,
45
+ BrowseEventsResult,
46
+ BrowseExternalNavigateEvent,
47
+ BrowseKbRequest,
48
+ BrowseKbResult,
49
+ BrowseLinkClickedEvent,
50
+ BrowsePanelOpenEvent,
51
+ BrowsePanelToggleEvent,
52
+ BrowseResourceCloseEvent,
53
+ BrowseResourceOpenEvent,
54
+ BrowseResourceReorderEvent,
55
+ BrowseResourceRequest,
56
+ BrowseResourceResult,
57
+ BrowseResourceViewedEvent,
58
+ BrowseResourcesRequest,
59
+ BrowseResourcesResult,
60
+ BrowseRouterPushEvent,
61
+ BrowseTagSchemasRequest,
62
+ BrowseTagSchemasResult,
63
+ BusResumeGap,
64
+ CloneResourceWithTokenResponse,
65
+ CommandError,
66
+ ContextualSummaryResponse,
67
+ EnrichedResourceEvent,
68
+ FrameAddEntityTypeCommand,
69
+ FrameAddTagSchemaCommand,
70
+ GatherAnnotationComplete,
71
+ GatherAnnotationRequest,
72
+ GatherFailed,
73
+ GatherReferencedByRequest,
74
+ GatherReferencedByResult,
75
+ GatherResourceComplete,
76
+ GatherResourceFailed,
77
+ GatherResourceRequest,
78
+ GatherSummaryRequest,
79
+ GetResourceByTokenResponse,
80
+ InferenceLimitsRequest,
81
+ InferenceLimitsResult,
82
+ JobAssignCommand,
83
+ JobCancelCommand,
84
+ JobCancelRequest,
85
+ JobCancelResult,
86
+ JobCheckpointCommand,
87
+ JobClaimCommand,
88
+ JobClaimedResult,
89
+ JobCompleteCommand,
90
+ JobCreateCommand,
91
+ JobCreatedResult,
92
+ JobFailCommand,
93
+ JobQueuedEvent,
94
+ JobReportProgressCommand,
95
+ JobStartCommand,
96
+ JobStatusRequest,
97
+ JobStatusResult,
98
+ MarkArchiveCommand,
99
+ MarkAssistRequestEvent,
100
+ MarkAssistTimeoutEvent,
101
+ MarkCommitCommand,
102
+ MarkCommitOk,
103
+ MarkCreateCommand,
104
+ MarkCreateOk,
105
+ MarkCreateRequest,
106
+ MarkDeleteCommand,
107
+ MarkDeleteOk,
108
+ MarkRequestedEvent,
109
+ MarkSubmitEvent,
110
+ MarkUnarchiveCommand,
111
+ MarkUpdateBodyCommand,
112
+ MarkUpdateEntityTypesCommand,
113
+ MatchResourcesRequest,
114
+ MatchResourcesResult,
115
+ MatchSearchFailed,
116
+ MatchSearchRequest,
117
+ MatchSearchResult,
118
+ PersonProfileCommand,
119
+ ResourceErrorEvent,
120
+ SelectionData,
121
+ SessionJoinedEvent,
122
+ SessionLeftEvent,
123
+ SettingsHoverDelayChangedEvent,
124
+ SettingsLocaleChangedEvent,
125
+ SettingsThemeChangedEvent,
126
+ SmeltRebuildAnchorsCommand,
127
+ SmeltSettled,
128
+ StoredEventResponse,
129
+ WeaveApplied,
130
+ WeaveRebuildCommand,
131
+ YieldCloneCreateCommand,
132
+ YieldCloneCreated,
133
+ YieldClonePersistCommand,
134
+ YieldClonePersistOk,
135
+ YieldCloneResourceRequest,
136
+ YieldCloneTokenRequest,
137
+ YieldCreateCommand,
138
+ YieldCreateOk,
139
+ YieldMoveFailed,
140
+ YieldMvCommand,
141
+ YieldUpdateCommand,
142
+ YieldUpdateOk,
143
+ )
144
+
145
+ __all__ = [
146
+ "BRIDGED_CHANNELS",
147
+ "CHANNELS",
148
+ "CHANNEL_NAMES",
149
+ "RESOURCE_SCOPED_CHANNELS",
150
+ "BECKON_FOCUS",
151
+ "BECKON_HOVER",
152
+ "BECKON_SPARKLE",
153
+ "BIND_BODY_ERROR",
154
+ "BIND_BODY_UPDATED",
155
+ "BIND_BODY_UPDATE_FAILED",
156
+ "BIND_INITIATE",
157
+ "BIND_UPDATE_BODY",
158
+ "BROWSE_AGENTS_FAILED",
159
+ "BROWSE_AGENTS_REQUESTED",
160
+ "BROWSE_AGENTS_RESULT",
161
+ "BROWSE_ANCHORED_TEXT_FAILED",
162
+ "BROWSE_ANCHORED_TEXT_REQUESTED",
163
+ "BROWSE_ANCHORED_TEXT_RESULT",
164
+ "BROWSE_ANNOTATIONS_FAILED",
165
+ "BROWSE_ANNOTATIONS_REQUESTED",
166
+ "BROWSE_ANNOTATIONS_RESULT",
167
+ "BROWSE_ANNOTATION_CONTEXT_FAILED",
168
+ "BROWSE_ANNOTATION_CONTEXT_REQUESTED",
169
+ "BROWSE_ANNOTATION_CONTEXT_RESULT",
170
+ "BROWSE_ANNOTATION_FAILED",
171
+ "BROWSE_ANNOTATION_HISTORY_FAILED",
172
+ "BROWSE_ANNOTATION_HISTORY_REQUESTED",
173
+ "BROWSE_ANNOTATION_HISTORY_RESULT",
174
+ "BROWSE_ANNOTATION_REQUESTED",
175
+ "BROWSE_ANNOTATION_RESULT",
176
+ "BROWSE_CLICK",
177
+ "BROWSE_DIRECTORY_FAILED",
178
+ "BROWSE_DIRECTORY_REQUESTED",
179
+ "BROWSE_DIRECTORY_RESULT",
180
+ "BROWSE_ENTITY_TYPES_FAILED",
181
+ "BROWSE_ENTITY_TYPES_REQUESTED",
182
+ "BROWSE_ENTITY_TYPES_RESULT",
183
+ "BROWSE_ENTITY_TYPE_CLICKED",
184
+ "BROWSE_EVENTS_FAILED",
185
+ "BROWSE_EVENTS_REQUESTED",
186
+ "BROWSE_EVENTS_RESULT",
187
+ "BROWSE_KB_FAILED",
188
+ "BROWSE_KB_REQUESTED",
189
+ "BROWSE_KB_RESULT",
190
+ "BROWSE_RESOURCES_FAILED",
191
+ "BROWSE_RESOURCES_REQUESTED",
192
+ "BROWSE_RESOURCES_RESULT",
193
+ "BROWSE_RESOURCE_FAILED",
194
+ "BROWSE_RESOURCE_OPEN",
195
+ "BROWSE_RESOURCE_REQUESTED",
196
+ "BROWSE_RESOURCE_RESULT",
197
+ "BROWSE_RESOURCE_VIEWED",
198
+ "BROWSE_TAG_SCHEMAS_FAILED",
199
+ "BROWSE_TAG_SCHEMAS_REQUESTED",
200
+ "BROWSE_TAG_SCHEMAS_RESULT",
201
+ "BUS_RESUME_GAP",
202
+ "FRAME_ADD_ENTITY_TYPE",
203
+ "FRAME_ADD_TAG_SCHEMA",
204
+ "FRAME_ENTITY_TYPE_ADDED",
205
+ "FRAME_ENTITY_TYPE_ADD_FAILED",
206
+ "FRAME_ENTITY_TYPE_ADD_OK",
207
+ "FRAME_TAG_SCHEMA_ADDED",
208
+ "FRAME_TAG_SCHEMA_ADD_FAILED",
209
+ "FRAME_TAG_SCHEMA_ADD_OK",
210
+ "GATHER_COMPLETE",
211
+ "GATHER_FAILED",
212
+ "GATHER_LIMITS_FAILED",
213
+ "GATHER_LIMITS_REQUESTED",
214
+ "GATHER_LIMITS_RESULT",
215
+ "GATHER_REFERENCED_BY_FAILED",
216
+ "GATHER_REFERENCED_BY_REQUESTED",
217
+ "GATHER_REFERENCED_BY_RESULT",
218
+ "GATHER_REQUESTED",
219
+ "GATHER_RESOURCE_COMPLETE",
220
+ "GATHER_RESOURCE_FAILED",
221
+ "GATHER_RESOURCE_REQUESTED",
222
+ "GATHER_SUMMARY_FAILED",
223
+ "GATHER_SUMMARY_REQUESTED",
224
+ "GATHER_SUMMARY_RESULT",
225
+ "JOB_ASSIGN",
226
+ "JOB_ASSIGNED",
227
+ "JOB_CANCEL",
228
+ "JOB_CANCEL_FAILED",
229
+ "JOB_CANCEL_OK",
230
+ "JOB_CANCEL_REQUESTED",
231
+ "JOB_CHECKPOINT",
232
+ "JOB_CLAIM",
233
+ "JOB_CLAIMED",
234
+ "JOB_CLAIM_FAILED",
235
+ "JOB_COMPLETE",
236
+ "JOB_COMPLETED",
237
+ "JOB_CREATE",
238
+ "JOB_CREATED",
239
+ "JOB_CREATE_FAILED",
240
+ "JOB_FAIL",
241
+ "JOB_FAILED",
242
+ "JOB_LIMITS_FAILED",
243
+ "JOB_LIMITS_REQUESTED",
244
+ "JOB_LIMITS_RESULT",
245
+ "JOB_QUEUED",
246
+ "JOB_REPORT_PROGRESS",
247
+ "JOB_START",
248
+ "JOB_STARTED",
249
+ "JOB_STATUS_FAILED",
250
+ "JOB_STATUS_REQUESTED",
251
+ "JOB_STATUS_RESULT",
252
+ "MARK_ADDED",
253
+ "MARK_ARCHIVE",
254
+ "MARK_ARCHIVED",
255
+ "MARK_ARCHIVE_FAILED",
256
+ "MARK_ARCHIVE_OK",
257
+ "MARK_ASSIST_REQUEST",
258
+ "MARK_ASSIST_TIMEOUT",
259
+ "MARK_BODY_UPDATED",
260
+ "MARK_BODY_UPDATE_FAILED",
261
+ "MARK_CANCEL_PENDING",
262
+ "MARK_COMMIT",
263
+ "MARK_COMMIT_FAILED",
264
+ "MARK_COMMIT_OK",
265
+ "MARK_CREATE",
266
+ "MARK_CREATE_ERROR",
267
+ "MARK_CREATE_FAILED",
268
+ "MARK_CREATE_OK",
269
+ "MARK_CREATE_REQUEST",
270
+ "MARK_DELETE",
271
+ "MARK_DELETE_ERROR",
272
+ "MARK_DELETE_FAILED",
273
+ "MARK_DELETE_OK",
274
+ "MARK_ENTITY_TAG_ADDED",
275
+ "MARK_ENTITY_TAG_REMOVED",
276
+ "MARK_PROGRESS_DISMISS",
277
+ "MARK_REMOVED",
278
+ "MARK_REQUESTED",
279
+ "MARK_SELECT_ASSESSMENT",
280
+ "MARK_SELECT_COMMENT",
281
+ "MARK_SELECT_REFERENCE",
282
+ "MARK_SELECT_TAG",
283
+ "MARK_SUBMIT",
284
+ "MARK_UNARCHIVE",
285
+ "MARK_UNARCHIVED",
286
+ "MARK_UNARCHIVE_FAILED",
287
+ "MARK_UNARCHIVE_OK",
288
+ "MARK_UPDATE_BODY",
289
+ "MARK_UPDATE_ENTITY_TYPES",
290
+ "MARK_UPDATE_ENTITY_TYPES_FAILED",
291
+ "MARK_UPDATE_ENTITY_TYPES_OK",
292
+ "MATCH_LIMITS_FAILED",
293
+ "MATCH_LIMITS_REQUESTED",
294
+ "MATCH_LIMITS_RESULT",
295
+ "MATCH_RESOURCES_FAILED",
296
+ "MATCH_RESOURCES_REQUESTED",
297
+ "MATCH_RESOURCES_RESULT",
298
+ "MATCH_SEARCH_FAILED",
299
+ "MATCH_SEARCH_REQUESTED",
300
+ "MATCH_SEARCH_RESULTS",
301
+ "NAV_EXTERNAL",
302
+ "NAV_LINK_CLICKED",
303
+ "NAV_PUSH",
304
+ "PANEL_CLOSE",
305
+ "PANEL_OPEN",
306
+ "PANEL_TOGGLE",
307
+ "PERSON_PROFILE",
308
+ "PERSON_PROFILED",
309
+ "SESSION_JOINED",
310
+ "SESSION_LEFT",
311
+ "SETTINGS_HOVER_DELAY_CHANGED",
312
+ "SETTINGS_LINE_NUMBERS_TOGGLED",
313
+ "SETTINGS_LOCALE_CHANGED",
314
+ "SETTINGS_THEME_CHANGED",
315
+ "SHELL_SIDEBAR_TOGGLE",
316
+ "SMELT_REBUILD_ANCHORS",
317
+ "SMELT_REBUILD_ANCHORS_FAILED",
318
+ "SMELT_REBUILD_ANCHORS_OK",
319
+ "SMELT_SETTLED",
320
+ "TABS_CLOSE",
321
+ "TABS_REORDER",
322
+ "WEAVE_APPLIED",
323
+ "WEAVE_REBUILD",
324
+ "WEAVE_REBUILD_FAILED",
325
+ "WEAVE_REBUILD_OK",
326
+ "YIELD_CLONE",
327
+ "YIELD_CLONED",
328
+ "YIELD_CLONE_CREATE",
329
+ "YIELD_CLONE_CREATED",
330
+ "YIELD_CLONE_CREATE_FAILED",
331
+ "YIELD_CLONE_PERSIST",
332
+ "YIELD_CLONE_PERSIST_FAILED",
333
+ "YIELD_CLONE_PERSIST_OK",
334
+ "YIELD_CLONE_RESOURCE_FAILED",
335
+ "YIELD_CLONE_RESOURCE_REQUESTED",
336
+ "YIELD_CLONE_RESOURCE_RESULT",
337
+ "YIELD_CLONE_TOKEN_FAILED",
338
+ "YIELD_CLONE_TOKEN_GENERATED",
339
+ "YIELD_CLONE_TOKEN_REQUESTED",
340
+ "YIELD_CREATE",
341
+ "YIELD_CREATED",
342
+ "YIELD_CREATE_FAILED",
343
+ "YIELD_CREATE_OK",
344
+ "YIELD_MOVED",
345
+ "YIELD_MOVE_FAILED",
346
+ "YIELD_MV",
347
+ "YIELD_REPRESENTATION_ADDED",
348
+ "YIELD_REPRESENTATION_REMOVED",
349
+ "YIELD_UPDATE",
350
+ "YIELD_UPDATED",
351
+ "YIELD_UPDATE_FAILED",
352
+ "YIELD_UPDATE_OK",
353
+ "ChannelName",
354
+ ]
355
+
356
+ # Every channel's name.
357
+ type ChannelName = Literal[
358
+ "yield:created",
359
+ "yield:cloned",
360
+ "yield:updated",
361
+ "yield:moved",
362
+ "yield:representation-added",
363
+ "yield:representation-removed",
364
+ "yield:create",
365
+ "yield:clone-persist",
366
+ "yield:update",
367
+ "yield:mv",
368
+ "yield:clone",
369
+ "yield:clone-token-requested",
370
+ "yield:clone-resource-requested",
371
+ "yield:clone-create",
372
+ "yield:create-ok",
373
+ "yield:create-failed",
374
+ "yield:clone-persist-ok",
375
+ "yield:clone-persist-failed",
376
+ "yield:update-ok",
377
+ "yield:update-failed",
378
+ "yield:move-failed",
379
+ "yield:clone-token-generated",
380
+ "yield:clone-token-failed",
381
+ "yield:clone-resource-result",
382
+ "yield:clone-resource-failed",
383
+ "yield:clone-created",
384
+ "yield:clone-create-failed",
385
+ "mark:added",
386
+ "mark:removed",
387
+ "mark:body-updated",
388
+ "mark:entity-tag-added",
389
+ "mark:entity-tag-removed",
390
+ "mark:archived",
391
+ "mark:unarchived",
392
+ "mark:create-request",
393
+ "mark:create",
394
+ "mark:delete",
395
+ "mark:update-body",
396
+ "mark:archive",
397
+ "mark:unarchive",
398
+ "mark:update-entity-types",
399
+ "mark:create-ok",
400
+ "mark:create-failed",
401
+ "mark:commit",
402
+ "mark:commit-ok",
403
+ "mark:commit-failed",
404
+ "mark:delete-ok",
405
+ "mark:delete-failed",
406
+ "mark:archive-ok",
407
+ "mark:archive-failed",
408
+ "mark:unarchive-ok",
409
+ "mark:unarchive-failed",
410
+ "mark:update-entity-types-ok",
411
+ "mark:update-entity-types-failed",
412
+ "mark:body-update-failed",
413
+ "mark:select-comment",
414
+ "mark:select-tag",
415
+ "mark:select-assessment",
416
+ "mark:select-reference",
417
+ "mark:requested",
418
+ "mark:cancel-pending",
419
+ "mark:submit",
420
+ "mark:assist-request",
421
+ "mark:progress-dismiss",
422
+ "mark:assist-timeout",
423
+ "mark:create-error",
424
+ "mark:delete-error",
425
+ "bind:body-error",
426
+ "frame:entity-type-added",
427
+ "frame:tag-schema-added",
428
+ "frame:add-entity-type",
429
+ "frame:add-tag-schema",
430
+ "frame:entity-type-add-ok",
431
+ "frame:entity-type-add-failed",
432
+ "frame:tag-schema-add-ok",
433
+ "frame:tag-schema-add-failed",
434
+ "person:profiled",
435
+ "person:profile",
436
+ "bind:initiate",
437
+ "bind:update-body",
438
+ "bind:body-updated",
439
+ "bind:body-update-failed",
440
+ "match:search-requested",
441
+ "match:search-results",
442
+ "match:search-failed",
443
+ "match:resources-requested",
444
+ "match:resources-result",
445
+ "match:resources-failed",
446
+ "match:limits-requested",
447
+ "match:limits-result",
448
+ "match:limits-failed",
449
+ "gather:requested",
450
+ "gather:complete",
451
+ "gather:failed",
452
+ "gather:resource-requested",
453
+ "gather:resource-complete",
454
+ "gather:resource-failed",
455
+ "gather:summary-requested",
456
+ "gather:summary-result",
457
+ "gather:summary-failed",
458
+ "gather:referenced-by-requested",
459
+ "gather:referenced-by-result",
460
+ "gather:referenced-by-failed",
461
+ "gather:limits-requested",
462
+ "gather:limits-result",
463
+ "gather:limits-failed",
464
+ "browse:resource-requested",
465
+ "browse:resource-result",
466
+ "browse:resource-failed",
467
+ "browse:anchored-text-requested",
468
+ "browse:anchored-text-result",
469
+ "browse:anchored-text-failed",
470
+ "browse:resources-requested",
471
+ "browse:resources-result",
472
+ "browse:resources-failed",
473
+ "browse:annotations-requested",
474
+ "browse:annotations-result",
475
+ "browse:annotations-failed",
476
+ "browse:annotation-requested",
477
+ "browse:annotation-result",
478
+ "browse:annotation-failed",
479
+ "browse:events-requested",
480
+ "browse:events-result",
481
+ "browse:events-failed",
482
+ "browse:annotation-history-requested",
483
+ "browse:annotation-history-result",
484
+ "browse:annotation-history-failed",
485
+ "browse:annotation-context-requested",
486
+ "browse:annotation-context-result",
487
+ "browse:annotation-context-failed",
488
+ "browse:entity-types-requested",
489
+ "browse:entity-types-result",
490
+ "browse:entity-types-failed",
491
+ "browse:tag-schemas-requested",
492
+ "browse:tag-schemas-result",
493
+ "browse:tag-schemas-failed",
494
+ "browse:agents-requested",
495
+ "browse:agents-result",
496
+ "browse:agents-failed",
497
+ "browse:kb-requested",
498
+ "browse:kb-result",
499
+ "browse:kb-failed",
500
+ "browse:directory-requested",
501
+ "browse:directory-result",
502
+ "browse:directory-failed",
503
+ "browse:click",
504
+ "browse:resource-open",
505
+ "browse:resource-viewed",
506
+ "browse:entity-type-clicked",
507
+ "panel:toggle",
508
+ "panel:open",
509
+ "panel:close",
510
+ "shell:sidebar-toggle",
511
+ "tabs:close",
512
+ "tabs:reorder",
513
+ "nav:link-clicked",
514
+ "nav:push",
515
+ "nav:external",
516
+ "beckon:hover",
517
+ "beckon:focus",
518
+ "beckon:sparkle",
519
+ "job:started",
520
+ "job:assigned",
521
+ "job:completed",
522
+ "job:failed",
523
+ "job:start",
524
+ "job:assign",
525
+ "job:report-progress",
526
+ "job:complete",
527
+ "job:fail",
528
+ "job:checkpoint",
529
+ "job:queued",
530
+ "job:cancel-requested",
531
+ "job:cancel",
532
+ "job:limits-requested",
533
+ "job:limits-result",
534
+ "job:limits-failed",
535
+ "job:status-requested",
536
+ "job:create",
537
+ "job:claim",
538
+ "job:status-result",
539
+ "job:status-failed",
540
+ "job:created",
541
+ "job:create-failed",
542
+ "job:claimed",
543
+ "job:claim-failed",
544
+ "job:cancel-ok",
545
+ "job:cancel-failed",
546
+ "weave:applied",
547
+ "smelt:settled",
548
+ "weave:rebuild",
549
+ "weave:rebuild-ok",
550
+ "weave:rebuild-failed",
551
+ "smelt:rebuild-anchors",
552
+ "smelt:rebuild-anchors-ok",
553
+ "smelt:rebuild-anchors-failed",
554
+ "settings:theme-changed",
555
+ "settings:line-numbers-toggled",
556
+ "settings:locale-changed",
557
+ "settings:hover-delay-changed",
558
+ "bus:resume-gap",
559
+ "session:joined",
560
+ "session:left",
561
+ ]
562
+
563
+ CHANNEL_NAMES: Final[tuple[ChannelName, ...]] = (
564
+ "yield:created",
565
+ "yield:cloned",
566
+ "yield:updated",
567
+ "yield:moved",
568
+ "yield:representation-added",
569
+ "yield:representation-removed",
570
+ "yield:create",
571
+ "yield:clone-persist",
572
+ "yield:update",
573
+ "yield:mv",
574
+ "yield:clone",
575
+ "yield:clone-token-requested",
576
+ "yield:clone-resource-requested",
577
+ "yield:clone-create",
578
+ "yield:create-ok",
579
+ "yield:create-failed",
580
+ "yield:clone-persist-ok",
581
+ "yield:clone-persist-failed",
582
+ "yield:update-ok",
583
+ "yield:update-failed",
584
+ "yield:move-failed",
585
+ "yield:clone-token-generated",
586
+ "yield:clone-token-failed",
587
+ "yield:clone-resource-result",
588
+ "yield:clone-resource-failed",
589
+ "yield:clone-created",
590
+ "yield:clone-create-failed",
591
+ "mark:added",
592
+ "mark:removed",
593
+ "mark:body-updated",
594
+ "mark:entity-tag-added",
595
+ "mark:entity-tag-removed",
596
+ "mark:archived",
597
+ "mark:unarchived",
598
+ "mark:create-request",
599
+ "mark:create",
600
+ "mark:delete",
601
+ "mark:update-body",
602
+ "mark:archive",
603
+ "mark:unarchive",
604
+ "mark:update-entity-types",
605
+ "mark:create-ok",
606
+ "mark:create-failed",
607
+ "mark:commit",
608
+ "mark:commit-ok",
609
+ "mark:commit-failed",
610
+ "mark:delete-ok",
611
+ "mark:delete-failed",
612
+ "mark:archive-ok",
613
+ "mark:archive-failed",
614
+ "mark:unarchive-ok",
615
+ "mark:unarchive-failed",
616
+ "mark:update-entity-types-ok",
617
+ "mark:update-entity-types-failed",
618
+ "mark:body-update-failed",
619
+ "mark:select-comment",
620
+ "mark:select-tag",
621
+ "mark:select-assessment",
622
+ "mark:select-reference",
623
+ "mark:requested",
624
+ "mark:cancel-pending",
625
+ "mark:submit",
626
+ "mark:assist-request",
627
+ "mark:progress-dismiss",
628
+ "mark:assist-timeout",
629
+ "mark:create-error",
630
+ "mark:delete-error",
631
+ "bind:body-error",
632
+ "frame:entity-type-added",
633
+ "frame:tag-schema-added",
634
+ "frame:add-entity-type",
635
+ "frame:add-tag-schema",
636
+ "frame:entity-type-add-ok",
637
+ "frame:entity-type-add-failed",
638
+ "frame:tag-schema-add-ok",
639
+ "frame:tag-schema-add-failed",
640
+ "person:profiled",
641
+ "person:profile",
642
+ "bind:initiate",
643
+ "bind:update-body",
644
+ "bind:body-updated",
645
+ "bind:body-update-failed",
646
+ "match:search-requested",
647
+ "match:search-results",
648
+ "match:search-failed",
649
+ "match:resources-requested",
650
+ "match:resources-result",
651
+ "match:resources-failed",
652
+ "match:limits-requested",
653
+ "match:limits-result",
654
+ "match:limits-failed",
655
+ "gather:requested",
656
+ "gather:complete",
657
+ "gather:failed",
658
+ "gather:resource-requested",
659
+ "gather:resource-complete",
660
+ "gather:resource-failed",
661
+ "gather:summary-requested",
662
+ "gather:summary-result",
663
+ "gather:summary-failed",
664
+ "gather:referenced-by-requested",
665
+ "gather:referenced-by-result",
666
+ "gather:referenced-by-failed",
667
+ "gather:limits-requested",
668
+ "gather:limits-result",
669
+ "gather:limits-failed",
670
+ "browse:resource-requested",
671
+ "browse:resource-result",
672
+ "browse:resource-failed",
673
+ "browse:anchored-text-requested",
674
+ "browse:anchored-text-result",
675
+ "browse:anchored-text-failed",
676
+ "browse:resources-requested",
677
+ "browse:resources-result",
678
+ "browse:resources-failed",
679
+ "browse:annotations-requested",
680
+ "browse:annotations-result",
681
+ "browse:annotations-failed",
682
+ "browse:annotation-requested",
683
+ "browse:annotation-result",
684
+ "browse:annotation-failed",
685
+ "browse:events-requested",
686
+ "browse:events-result",
687
+ "browse:events-failed",
688
+ "browse:annotation-history-requested",
689
+ "browse:annotation-history-result",
690
+ "browse:annotation-history-failed",
691
+ "browse:annotation-context-requested",
692
+ "browse:annotation-context-result",
693
+ "browse:annotation-context-failed",
694
+ "browse:entity-types-requested",
695
+ "browse:entity-types-result",
696
+ "browse:entity-types-failed",
697
+ "browse:tag-schemas-requested",
698
+ "browse:tag-schemas-result",
699
+ "browse:tag-schemas-failed",
700
+ "browse:agents-requested",
701
+ "browse:agents-result",
702
+ "browse:agents-failed",
703
+ "browse:kb-requested",
704
+ "browse:kb-result",
705
+ "browse:kb-failed",
706
+ "browse:directory-requested",
707
+ "browse:directory-result",
708
+ "browse:directory-failed",
709
+ "browse:click",
710
+ "browse:resource-open",
711
+ "browse:resource-viewed",
712
+ "browse:entity-type-clicked",
713
+ "panel:toggle",
714
+ "panel:open",
715
+ "panel:close",
716
+ "shell:sidebar-toggle",
717
+ "tabs:close",
718
+ "tabs:reorder",
719
+ "nav:link-clicked",
720
+ "nav:push",
721
+ "nav:external",
722
+ "beckon:hover",
723
+ "beckon:focus",
724
+ "beckon:sparkle",
725
+ "job:started",
726
+ "job:assigned",
727
+ "job:completed",
728
+ "job:failed",
729
+ "job:start",
730
+ "job:assign",
731
+ "job:report-progress",
732
+ "job:complete",
733
+ "job:fail",
734
+ "job:checkpoint",
735
+ "job:queued",
736
+ "job:cancel-requested",
737
+ "job:cancel",
738
+ "job:limits-requested",
739
+ "job:limits-result",
740
+ "job:limits-failed",
741
+ "job:status-requested",
742
+ "job:create",
743
+ "job:claim",
744
+ "job:status-result",
745
+ "job:status-failed",
746
+ "job:created",
747
+ "job:create-failed",
748
+ "job:claimed",
749
+ "job:claim-failed",
750
+ "job:cancel-ok",
751
+ "job:cancel-failed",
752
+ "weave:applied",
753
+ "smelt:settled",
754
+ "weave:rebuild",
755
+ "weave:rebuild-ok",
756
+ "weave:rebuild-failed",
757
+ "smelt:rebuild-anchors",
758
+ "smelt:rebuild-anchors-ok",
759
+ "smelt:rebuild-anchors-failed",
760
+ "settings:theme-changed",
761
+ "settings:line-numbers-toggled",
762
+ "settings:locale-changed",
763
+ "settings:hover-delay-changed",
764
+ "bus:resume-gap",
765
+ "session:joined",
766
+ "session:left",
767
+ )
768
+
769
+ YIELD_CREATED: Final = Channel[StoredEventResponse]("yield:created", StoredEventResponse)
770
+ YIELD_CLONED: Final = Channel[StoredEventResponse]("yield:cloned", StoredEventResponse)
771
+ YIELD_UPDATED: Final = Channel[StoredEventResponse]("yield:updated", StoredEventResponse)
772
+ YIELD_MOVED: Final = Channel[StoredEventResponse]("yield:moved", StoredEventResponse)
773
+ YIELD_REPRESENTATION_ADDED: Final = Channel[StoredEventResponse]("yield:representation-added", StoredEventResponse)
774
+ YIELD_REPRESENTATION_REMOVED: Final = Channel[StoredEventResponse]("yield:representation-removed", StoredEventResponse)
775
+ YIELD_CREATE: Final = Channel[YieldCreateCommand]("yield:create", YieldCreateCommand)
776
+ YIELD_CLONE_PERSIST: Final = Channel[YieldClonePersistCommand]("yield:clone-persist", YieldClonePersistCommand)
777
+ YIELD_UPDATE: Final = Channel[YieldUpdateCommand]("yield:update", YieldUpdateCommand)
778
+ YIELD_MV: Final = Channel[YieldMvCommand]("yield:mv", YieldMvCommand)
779
+ YIELD_CLONE: Final = Channel[Empty]("yield:clone", Empty)
780
+ YIELD_CLONE_TOKEN_REQUESTED: Final = Channel[YieldCloneTokenRequest]("yield:clone-token-requested", YieldCloneTokenRequest)
781
+ YIELD_CLONE_RESOURCE_REQUESTED: Final = Channel[YieldCloneResourceRequest]("yield:clone-resource-requested", YieldCloneResourceRequest)
782
+ YIELD_CLONE_CREATE: Final = Channel[YieldCloneCreateCommand]("yield:clone-create", YieldCloneCreateCommand)
783
+ YIELD_CREATE_OK: Final = Channel[YieldCreateOk]("yield:create-ok", YieldCreateOk)
784
+ YIELD_CREATE_FAILED: Final = Channel[CommandError]("yield:create-failed", CommandError)
785
+ YIELD_CLONE_PERSIST_OK: Final = Channel[YieldClonePersistOk]("yield:clone-persist-ok", YieldClonePersistOk)
786
+ YIELD_CLONE_PERSIST_FAILED: Final = Channel[CommandError]("yield:clone-persist-failed", CommandError)
787
+ YIELD_UPDATE_OK: Final = Channel[YieldUpdateOk]("yield:update-ok", YieldUpdateOk)
788
+ YIELD_UPDATE_FAILED: Final = Channel[CommandError]("yield:update-failed", CommandError)
789
+ YIELD_MOVE_FAILED: Final = Channel[YieldMoveFailed]("yield:move-failed", YieldMoveFailed)
790
+ YIELD_CLONE_TOKEN_GENERATED: Final = Channel[Response[CloneResourceWithTokenResponse]]("yield:clone-token-generated", Response[CloneResourceWithTokenResponse])
791
+ YIELD_CLONE_TOKEN_FAILED: Final = Channel[CommandError]("yield:clone-token-failed", CommandError)
792
+ YIELD_CLONE_RESOURCE_RESULT: Final = Channel[Response[GetResourceByTokenResponse]]("yield:clone-resource-result", Response[GetResourceByTokenResponse])
793
+ YIELD_CLONE_RESOURCE_FAILED: Final = Channel[CommandError]("yield:clone-resource-failed", CommandError)
794
+ YIELD_CLONE_CREATED: Final = Channel[YieldCloneCreated]("yield:clone-created", YieldCloneCreated)
795
+ YIELD_CLONE_CREATE_FAILED: Final = Channel[CommandError]("yield:clone-create-failed", CommandError)
796
+ MARK_ADDED: Final = Channel[EnrichedResourceEvent]("mark:added", EnrichedResourceEvent)
797
+ MARK_REMOVED: Final = Channel[StoredEventResponse]("mark:removed", StoredEventResponse)
798
+ MARK_BODY_UPDATED: Final = Channel[EnrichedResourceEvent]("mark:body-updated", EnrichedResourceEvent)
799
+ MARK_ENTITY_TAG_ADDED: Final = Channel[StoredEventResponse]("mark:entity-tag-added", StoredEventResponse)
800
+ MARK_ENTITY_TAG_REMOVED: Final = Channel[StoredEventResponse]("mark:entity-tag-removed", StoredEventResponse)
801
+ MARK_ARCHIVED: Final = Channel[StoredEventResponse]("mark:archived", StoredEventResponse)
802
+ MARK_UNARCHIVED: Final = Channel[StoredEventResponse]("mark:unarchived", StoredEventResponse)
803
+ MARK_CREATE_REQUEST: Final = Channel[MarkCreateRequest]("mark:create-request", MarkCreateRequest)
804
+ MARK_CREATE: Final = Channel[MarkCreateCommand]("mark:create", MarkCreateCommand)
805
+ MARK_DELETE: Final = Channel[MarkDeleteCommand]("mark:delete", MarkDeleteCommand)
806
+ MARK_UPDATE_BODY: Final = Channel[MarkUpdateBodyCommand]("mark:update-body", MarkUpdateBodyCommand)
807
+ MARK_ARCHIVE: Final = Channel[MarkArchiveCommand]("mark:archive", MarkArchiveCommand)
808
+ MARK_UNARCHIVE: Final = Channel[MarkUnarchiveCommand]("mark:unarchive", MarkUnarchiveCommand)
809
+ MARK_UPDATE_ENTITY_TYPES: Final = Channel[MarkUpdateEntityTypesCommand]("mark:update-entity-types", MarkUpdateEntityTypesCommand)
810
+ MARK_CREATE_OK: Final = Channel[MarkCreateOk]("mark:create-ok", MarkCreateOk)
811
+ MARK_CREATE_FAILED: Final = Channel[CommandError]("mark:create-failed", CommandError)
812
+ MARK_COMMIT: Final = Channel[MarkCommitCommand]("mark:commit", MarkCommitCommand)
813
+ MARK_COMMIT_OK: Final = Channel[MarkCommitOk]("mark:commit-ok", MarkCommitOk)
814
+ MARK_COMMIT_FAILED: Final = Channel[CommandError]("mark:commit-failed", CommandError)
815
+ MARK_DELETE_OK: Final = Channel[MarkDeleteOk]("mark:delete-ok", MarkDeleteOk)
816
+ MARK_DELETE_FAILED: Final = Channel[CommandError]("mark:delete-failed", CommandError)
817
+ MARK_ARCHIVE_OK: Final = Channel[Empty]("mark:archive-ok", Empty)
818
+ MARK_ARCHIVE_FAILED: Final = Channel[CommandError]("mark:archive-failed", CommandError)
819
+ MARK_UNARCHIVE_OK: Final = Channel[Empty]("mark:unarchive-ok", Empty)
820
+ MARK_UNARCHIVE_FAILED: Final = Channel[CommandError]("mark:unarchive-failed", CommandError)
821
+ MARK_UPDATE_ENTITY_TYPES_OK: Final = Channel[Empty]("mark:update-entity-types-ok", Empty)
822
+ MARK_UPDATE_ENTITY_TYPES_FAILED: Final = Channel[CommandError]("mark:update-entity-types-failed", CommandError)
823
+ MARK_BODY_UPDATE_FAILED: Final = Channel[CommandError]("mark:body-update-failed", CommandError)
824
+ MARK_SELECT_COMMENT: Final = Channel[SelectionData]("mark:select-comment", SelectionData)
825
+ MARK_SELECT_TAG: Final = Channel[SelectionData]("mark:select-tag", SelectionData)
826
+ MARK_SELECT_ASSESSMENT: Final = Channel[SelectionData]("mark:select-assessment", SelectionData)
827
+ MARK_SELECT_REFERENCE: Final = Channel[SelectionData]("mark:select-reference", SelectionData)
828
+ MARK_REQUESTED: Final = Channel[MarkRequestedEvent]("mark:requested", MarkRequestedEvent)
829
+ MARK_CANCEL_PENDING: Final = Channel[Empty]("mark:cancel-pending", Empty)
830
+ MARK_SUBMIT: Final = Channel[MarkSubmitEvent]("mark:submit", MarkSubmitEvent)
831
+ MARK_ASSIST_REQUEST: Final = Channel[MarkAssistRequestEvent]("mark:assist-request", MarkAssistRequestEvent)
832
+ MARK_PROGRESS_DISMISS: Final = Channel[Empty]("mark:progress-dismiss", Empty)
833
+ MARK_ASSIST_TIMEOUT: Final = Channel[MarkAssistTimeoutEvent]("mark:assist-timeout", MarkAssistTimeoutEvent)
834
+ MARK_CREATE_ERROR: Final = Channel[ResourceErrorEvent]("mark:create-error", ResourceErrorEvent)
835
+ MARK_DELETE_ERROR: Final = Channel[ResourceErrorEvent]("mark:delete-error", ResourceErrorEvent)
836
+ BIND_BODY_ERROR: Final = Channel[ResourceErrorEvent]("bind:body-error", ResourceErrorEvent)
837
+ FRAME_ENTITY_TYPE_ADDED: Final = Channel[StoredEventResponse]("frame:entity-type-added", StoredEventResponse)
838
+ FRAME_TAG_SCHEMA_ADDED: Final = Channel[StoredEventResponse]("frame:tag-schema-added", StoredEventResponse)
839
+ FRAME_ADD_ENTITY_TYPE: Final = Channel[FrameAddEntityTypeCommand]("frame:add-entity-type", FrameAddEntityTypeCommand)
840
+ FRAME_ADD_TAG_SCHEMA: Final = Channel[FrameAddTagSchemaCommand]("frame:add-tag-schema", FrameAddTagSchemaCommand)
841
+ FRAME_ENTITY_TYPE_ADD_OK: Final = Channel[Empty]("frame:entity-type-add-ok", Empty)
842
+ FRAME_ENTITY_TYPE_ADD_FAILED: Final = Channel[CommandError]("frame:entity-type-add-failed", CommandError)
843
+ FRAME_TAG_SCHEMA_ADD_OK: Final = Channel[Empty]("frame:tag-schema-add-ok", Empty)
844
+ FRAME_TAG_SCHEMA_ADD_FAILED: Final = Channel[CommandError]("frame:tag-schema-add-failed", CommandError)
845
+ PERSON_PROFILED: Final = Channel[StoredEventResponse]("person:profiled", StoredEventResponse)
846
+ PERSON_PROFILE: Final = Channel[PersonProfileCommand]("person:profile", PersonProfileCommand)
847
+ BIND_INITIATE: Final = Channel[BindInitiateCommand]("bind:initiate", BindInitiateCommand)
848
+ BIND_UPDATE_BODY: Final = Channel[BindUpdateBodyCommand]("bind:update-body", BindUpdateBodyCommand)
849
+ BIND_BODY_UPDATED: Final = Channel[BindBodyUpdated]("bind:body-updated", BindBodyUpdated)
850
+ BIND_BODY_UPDATE_FAILED: Final = Channel[CommandError]("bind:body-update-failed", CommandError)
851
+ MATCH_SEARCH_REQUESTED: Final = Channel[MatchSearchRequest]("match:search-requested", MatchSearchRequest)
852
+ MATCH_SEARCH_RESULTS: Final = Channel[MatchSearchResult]("match:search-results", MatchSearchResult)
853
+ MATCH_SEARCH_FAILED: Final = Channel[MatchSearchFailed]("match:search-failed", MatchSearchFailed)
854
+ MATCH_RESOURCES_REQUESTED: Final = Channel[MatchResourcesRequest]("match:resources-requested", MatchResourcesRequest)
855
+ MATCH_RESOURCES_RESULT: Final = Channel[MatchResourcesResult]("match:resources-result", MatchResourcesResult)
856
+ MATCH_RESOURCES_FAILED: Final = Channel[CommandError]("match:resources-failed", CommandError)
857
+ MATCH_LIMITS_REQUESTED: Final = Channel[InferenceLimitsRequest]("match:limits-requested", InferenceLimitsRequest)
858
+ MATCH_LIMITS_RESULT: Final = Channel[InferenceLimitsResult]("match:limits-result", InferenceLimitsResult)
859
+ MATCH_LIMITS_FAILED: Final = Channel[CommandError]("match:limits-failed", CommandError)
860
+ GATHER_REQUESTED: Final = Channel[GatherAnnotationRequest]("gather:requested", GatherAnnotationRequest)
861
+ GATHER_COMPLETE: Final = Channel[GatherAnnotationComplete]("gather:complete", GatherAnnotationComplete)
862
+ GATHER_FAILED: Final = Channel[GatherFailed]("gather:failed", GatherFailed)
863
+ GATHER_RESOURCE_REQUESTED: Final = Channel[GatherResourceRequest]("gather:resource-requested", GatherResourceRequest)
864
+ GATHER_RESOURCE_COMPLETE: Final = Channel[GatherResourceComplete]("gather:resource-complete", GatherResourceComplete)
865
+ GATHER_RESOURCE_FAILED: Final = Channel[GatherResourceFailed]("gather:resource-failed", GatherResourceFailed)
866
+ GATHER_SUMMARY_REQUESTED: Final = Channel[GatherSummaryRequest]("gather:summary-requested", GatherSummaryRequest)
867
+ GATHER_SUMMARY_RESULT: Final = Channel[Response[ContextualSummaryResponse]]("gather:summary-result", Response[ContextualSummaryResponse])
868
+ GATHER_SUMMARY_FAILED: Final = Channel[CommandError]("gather:summary-failed", CommandError)
869
+ GATHER_REFERENCED_BY_REQUESTED: Final = Channel[GatherReferencedByRequest]("gather:referenced-by-requested", GatherReferencedByRequest)
870
+ GATHER_REFERENCED_BY_RESULT: Final = Channel[GatherReferencedByResult]("gather:referenced-by-result", GatherReferencedByResult)
871
+ GATHER_REFERENCED_BY_FAILED: Final = Channel[CommandError]("gather:referenced-by-failed", CommandError)
872
+ GATHER_LIMITS_REQUESTED: Final = Channel[InferenceLimitsRequest]("gather:limits-requested", InferenceLimitsRequest)
873
+ GATHER_LIMITS_RESULT: Final = Channel[InferenceLimitsResult]("gather:limits-result", InferenceLimitsResult)
874
+ GATHER_LIMITS_FAILED: Final = Channel[CommandError]("gather:limits-failed", CommandError)
875
+ BROWSE_RESOURCE_REQUESTED: Final = Channel[BrowseResourceRequest]("browse:resource-requested", BrowseResourceRequest)
876
+ BROWSE_RESOURCE_RESULT: Final = Channel[BrowseResourceResult]("browse:resource-result", BrowseResourceResult)
877
+ BROWSE_RESOURCE_FAILED: Final = Channel[CommandError]("browse:resource-failed", CommandError)
878
+ BROWSE_ANCHORED_TEXT_REQUESTED: Final = Channel[BrowseAnchoredTextRequest]("browse:anchored-text-requested", BrowseAnchoredTextRequest)
879
+ BROWSE_ANCHORED_TEXT_RESULT: Final = Channel[BrowseAnchoredTextResult]("browse:anchored-text-result", BrowseAnchoredTextResult)
880
+ BROWSE_ANCHORED_TEXT_FAILED: Final = Channel[CommandError]("browse:anchored-text-failed", CommandError)
881
+ BROWSE_RESOURCES_REQUESTED: Final = Channel[BrowseResourcesRequest]("browse:resources-requested", BrowseResourcesRequest)
882
+ BROWSE_RESOURCES_RESULT: Final = Channel[BrowseResourcesResult]("browse:resources-result", BrowseResourcesResult)
883
+ BROWSE_RESOURCES_FAILED: Final = Channel[CommandError]("browse:resources-failed", CommandError)
884
+ BROWSE_ANNOTATIONS_REQUESTED: Final = Channel[BrowseAnnotationsRequest]("browse:annotations-requested", BrowseAnnotationsRequest)
885
+ BROWSE_ANNOTATIONS_RESULT: Final = Channel[BrowseAnnotationsResult]("browse:annotations-result", BrowseAnnotationsResult)
886
+ BROWSE_ANNOTATIONS_FAILED: Final = Channel[CommandError]("browse:annotations-failed", CommandError)
887
+ BROWSE_ANNOTATION_REQUESTED: Final = Channel[BrowseAnnotationRequest]("browse:annotation-requested", BrowseAnnotationRequest)
888
+ BROWSE_ANNOTATION_RESULT: Final = Channel[BrowseAnnotationResult]("browse:annotation-result", BrowseAnnotationResult)
889
+ BROWSE_ANNOTATION_FAILED: Final = Channel[CommandError]("browse:annotation-failed", CommandError)
890
+ BROWSE_EVENTS_REQUESTED: Final = Channel[BrowseEventsRequest]("browse:events-requested", BrowseEventsRequest)
891
+ BROWSE_EVENTS_RESULT: Final = Channel[BrowseEventsResult]("browse:events-result", BrowseEventsResult)
892
+ BROWSE_EVENTS_FAILED: Final = Channel[CommandError]("browse:events-failed", CommandError)
893
+ BROWSE_ANNOTATION_HISTORY_REQUESTED: Final = Channel[BrowseAnnotationHistoryRequest]("browse:annotation-history-requested", BrowseAnnotationHistoryRequest)
894
+ BROWSE_ANNOTATION_HISTORY_RESULT: Final = Channel[BrowseAnnotationHistoryResult]("browse:annotation-history-result", BrowseAnnotationHistoryResult)
895
+ BROWSE_ANNOTATION_HISTORY_FAILED: Final = Channel[CommandError]("browse:annotation-history-failed", CommandError)
896
+ BROWSE_ANNOTATION_CONTEXT_REQUESTED: Final = Channel[BrowseAnnotationContextRequest]("browse:annotation-context-requested", BrowseAnnotationContextRequest)
897
+ BROWSE_ANNOTATION_CONTEXT_RESULT: Final = Channel[Response[AnnotationContextResponse]]("browse:annotation-context-result", Response[AnnotationContextResponse])
898
+ BROWSE_ANNOTATION_CONTEXT_FAILED: Final = Channel[CommandError]("browse:annotation-context-failed", CommandError)
899
+ BROWSE_ENTITY_TYPES_REQUESTED: Final = Channel[BrowseEntityTypesRequest]("browse:entity-types-requested", BrowseEntityTypesRequest)
900
+ BROWSE_ENTITY_TYPES_RESULT: Final = Channel[BrowseEntityTypesResult]("browse:entity-types-result", BrowseEntityTypesResult)
901
+ BROWSE_ENTITY_TYPES_FAILED: Final = Channel[CommandError]("browse:entity-types-failed", CommandError)
902
+ BROWSE_TAG_SCHEMAS_REQUESTED: Final = Channel[BrowseTagSchemasRequest]("browse:tag-schemas-requested", BrowseTagSchemasRequest)
903
+ BROWSE_TAG_SCHEMAS_RESULT: Final = Channel[BrowseTagSchemasResult]("browse:tag-schemas-result", BrowseTagSchemasResult)
904
+ BROWSE_TAG_SCHEMAS_FAILED: Final = Channel[CommandError]("browse:tag-schemas-failed", CommandError)
905
+ BROWSE_AGENTS_REQUESTED: Final = Channel[BrowseAgentsRequest]("browse:agents-requested", BrowseAgentsRequest)
906
+ BROWSE_AGENTS_RESULT: Final = Channel[BrowseAgentsResult]("browse:agents-result", BrowseAgentsResult)
907
+ BROWSE_AGENTS_FAILED: Final = Channel[CommandError]("browse:agents-failed", CommandError)
908
+ BROWSE_KB_REQUESTED: Final = Channel[BrowseKbRequest]("browse:kb-requested", BrowseKbRequest)
909
+ BROWSE_KB_RESULT: Final = Channel[BrowseKbResult]("browse:kb-result", BrowseKbResult)
910
+ BROWSE_KB_FAILED: Final = Channel[CommandError]("browse:kb-failed", CommandError)
911
+ BROWSE_DIRECTORY_REQUESTED: Final = Channel[BrowseDirectoryRequest]("browse:directory-requested", BrowseDirectoryRequest)
912
+ BROWSE_DIRECTORY_RESULT: Final = Channel[BrowseDirectoryResult]("browse:directory-result", BrowseDirectoryResult)
913
+ BROWSE_DIRECTORY_FAILED: Final = Channel[BrowseDirectoryFailed]("browse:directory-failed", BrowseDirectoryFailed)
914
+ BROWSE_CLICK: Final = Channel[BrowseClickEvent]("browse:click", BrowseClickEvent)
915
+ BROWSE_RESOURCE_OPEN: Final = Channel[BrowseResourceOpenEvent]("browse:resource-open", BrowseResourceOpenEvent)
916
+ BROWSE_RESOURCE_VIEWED: Final = Channel[BrowseResourceViewedEvent]("browse:resource-viewed", BrowseResourceViewedEvent)
917
+ BROWSE_ENTITY_TYPE_CLICKED: Final = Channel[BrowseEntityTypeClickedEvent]("browse:entity-type-clicked", BrowseEntityTypeClickedEvent)
918
+ PANEL_TOGGLE: Final = Channel[BrowsePanelToggleEvent]("panel:toggle", BrowsePanelToggleEvent)
919
+ PANEL_OPEN: Final = Channel[BrowsePanelOpenEvent]("panel:open", BrowsePanelOpenEvent)
920
+ PANEL_CLOSE: Final = Channel[Empty]("panel:close", Empty)
921
+ SHELL_SIDEBAR_TOGGLE: Final = Channel[Empty]("shell:sidebar-toggle", Empty)
922
+ TABS_CLOSE: Final = Channel[BrowseResourceCloseEvent]("tabs:close", BrowseResourceCloseEvent)
923
+ TABS_REORDER: Final = Channel[BrowseResourceReorderEvent]("tabs:reorder", BrowseResourceReorderEvent)
924
+ NAV_LINK_CLICKED: Final = Channel[BrowseLinkClickedEvent]("nav:link-clicked", BrowseLinkClickedEvent)
925
+ NAV_PUSH: Final = Channel[BrowseRouterPushEvent]("nav:push", BrowseRouterPushEvent)
926
+ NAV_EXTERNAL: Final = Channel[BrowseExternalNavigateEvent]("nav:external", BrowseExternalNavigateEvent)
927
+ BECKON_HOVER: Final = Channel[BeckonHoverEvent]("beckon:hover", BeckonHoverEvent)
928
+ BECKON_FOCUS: Final = Channel[BeckonFocusEvent]("beckon:focus", BeckonFocusEvent)
929
+ BECKON_SPARKLE: Final = Channel[BeckonSparkleEvent]("beckon:sparkle", BeckonSparkleEvent)
930
+ JOB_STARTED: Final = Channel[StoredEventResponse]("job:started", StoredEventResponse)
931
+ JOB_ASSIGNED: Final = Channel[StoredEventResponse]("job:assigned", StoredEventResponse)
932
+ JOB_COMPLETED: Final = Channel[StoredEventResponse]("job:completed", StoredEventResponse)
933
+ JOB_FAILED: Final = Channel[StoredEventResponse]("job:failed", StoredEventResponse)
934
+ JOB_START: Final = Channel[JobStartCommand]("job:start", JobStartCommand)
935
+ JOB_ASSIGN: Final = Channel[JobAssignCommand]("job:assign", JobAssignCommand)
936
+ JOB_REPORT_PROGRESS: Final = Channel[JobReportProgressCommand]("job:report-progress", JobReportProgressCommand)
937
+ JOB_COMPLETE: Final = Channel[JobCompleteCommand]("job:complete", JobCompleteCommand)
938
+ JOB_FAIL: Final = Channel[JobFailCommand]("job:fail", JobFailCommand)
939
+ JOB_CHECKPOINT: Final = Channel[JobCheckpointCommand]("job:checkpoint", JobCheckpointCommand)
940
+ JOB_QUEUED: Final = Channel[JobQueuedEvent]("job:queued", JobQueuedEvent)
941
+ JOB_CANCEL_REQUESTED: Final = Channel[JobCancelRequest]("job:cancel-requested", JobCancelRequest)
942
+ JOB_CANCEL: Final = Channel[JobCancelCommand]("job:cancel", JobCancelCommand)
943
+ JOB_LIMITS_REQUESTED: Final = Channel[InferenceLimitsRequest]("job:limits-requested", InferenceLimitsRequest)
944
+ JOB_LIMITS_RESULT: Final = Channel[InferenceLimitsResult]("job:limits-result", InferenceLimitsResult)
945
+ JOB_LIMITS_FAILED: Final = Channel[CommandError]("job:limits-failed", CommandError)
946
+ JOB_STATUS_REQUESTED: Final = Channel[JobStatusRequest]("job:status-requested", JobStatusRequest)
947
+ JOB_CREATE: Final = Channel[JobCreateCommand]("job:create", JobCreateCommand)
948
+ JOB_CLAIM: Final = Channel[JobClaimCommand]("job:claim", JobClaimCommand)
949
+ JOB_STATUS_RESULT: Final = Channel[JobStatusResult]("job:status-result", JobStatusResult)
950
+ JOB_STATUS_FAILED: Final = Channel[CommandError]("job:status-failed", CommandError)
951
+ JOB_CREATED: Final = Channel[JobCreatedResult]("job:created", JobCreatedResult)
952
+ JOB_CREATE_FAILED: Final = Channel[CommandError]("job:create-failed", CommandError)
953
+ JOB_CLAIMED: Final = Channel[JobClaimedResult]("job:claimed", JobClaimedResult)
954
+ JOB_CLAIM_FAILED: Final = Channel[CommandError]("job:claim-failed", CommandError)
955
+ JOB_CANCEL_OK: Final = Channel[Response[JobCancelResult]]("job:cancel-ok", Response[JobCancelResult])
956
+ JOB_CANCEL_FAILED: Final = Channel[CommandError]("job:cancel-failed", CommandError)
957
+ WEAVE_APPLIED: Final = Channel[WeaveApplied]("weave:applied", WeaveApplied)
958
+ SMELT_SETTLED: Final = Channel[SmeltSettled]("smelt:settled", SmeltSettled)
959
+ WEAVE_REBUILD: Final = Channel[WeaveRebuildCommand]("weave:rebuild", WeaveRebuildCommand)
960
+ WEAVE_REBUILD_OK: Final = Channel[Empty]("weave:rebuild-ok", Empty)
961
+ WEAVE_REBUILD_FAILED: Final = Channel[CommandError]("weave:rebuild-failed", CommandError)
962
+ SMELT_REBUILD_ANCHORS: Final = Channel[SmeltRebuildAnchorsCommand]("smelt:rebuild-anchors", SmeltRebuildAnchorsCommand)
963
+ SMELT_REBUILD_ANCHORS_OK: Final = Channel[Empty]("smelt:rebuild-anchors-ok", Empty)
964
+ SMELT_REBUILD_ANCHORS_FAILED: Final = Channel[CommandError]("smelt:rebuild-anchors-failed", CommandError)
965
+ SETTINGS_THEME_CHANGED: Final = Channel[SettingsThemeChangedEvent]("settings:theme-changed", SettingsThemeChangedEvent)
966
+ SETTINGS_LINE_NUMBERS_TOGGLED: Final = Channel[Empty]("settings:line-numbers-toggled", Empty)
967
+ SETTINGS_LOCALE_CHANGED: Final = Channel[SettingsLocaleChangedEvent]("settings:locale-changed", SettingsLocaleChangedEvent)
968
+ SETTINGS_HOVER_DELAY_CHANGED: Final = Channel[SettingsHoverDelayChangedEvent]("settings:hover-delay-changed", SettingsHoverDelayChangedEvent)
969
+ BUS_RESUME_GAP: Final = Channel[BusResumeGap]("bus:resume-gap", BusResumeGap)
970
+ SESSION_JOINED: Final = Channel[SessionJoinedEvent]("session:joined", SessionJoinedEvent)
971
+ SESSION_LEFT: Final = Channel[SessionLeftEvent]("session:left", SessionLeftEvent)
972
+
973
+ # Every channel, by its name: for code that is given a name and not a constant.
974
+ CHANNELS: Final[Mapping[str, AnyChannel]] = MappingProxyType(
975
+ {
976
+ "yield:created": YIELD_CREATED,
977
+ "yield:cloned": YIELD_CLONED,
978
+ "yield:updated": YIELD_UPDATED,
979
+ "yield:moved": YIELD_MOVED,
980
+ "yield:representation-added": YIELD_REPRESENTATION_ADDED,
981
+ "yield:representation-removed": YIELD_REPRESENTATION_REMOVED,
982
+ "yield:create": YIELD_CREATE,
983
+ "yield:clone-persist": YIELD_CLONE_PERSIST,
984
+ "yield:update": YIELD_UPDATE,
985
+ "yield:mv": YIELD_MV,
986
+ "yield:clone": YIELD_CLONE,
987
+ "yield:clone-token-requested": YIELD_CLONE_TOKEN_REQUESTED,
988
+ "yield:clone-resource-requested": YIELD_CLONE_RESOURCE_REQUESTED,
989
+ "yield:clone-create": YIELD_CLONE_CREATE,
990
+ "yield:create-ok": YIELD_CREATE_OK,
991
+ "yield:create-failed": YIELD_CREATE_FAILED,
992
+ "yield:clone-persist-ok": YIELD_CLONE_PERSIST_OK,
993
+ "yield:clone-persist-failed": YIELD_CLONE_PERSIST_FAILED,
994
+ "yield:update-ok": YIELD_UPDATE_OK,
995
+ "yield:update-failed": YIELD_UPDATE_FAILED,
996
+ "yield:move-failed": YIELD_MOVE_FAILED,
997
+ "yield:clone-token-generated": YIELD_CLONE_TOKEN_GENERATED,
998
+ "yield:clone-token-failed": YIELD_CLONE_TOKEN_FAILED,
999
+ "yield:clone-resource-result": YIELD_CLONE_RESOURCE_RESULT,
1000
+ "yield:clone-resource-failed": YIELD_CLONE_RESOURCE_FAILED,
1001
+ "yield:clone-created": YIELD_CLONE_CREATED,
1002
+ "yield:clone-create-failed": YIELD_CLONE_CREATE_FAILED,
1003
+ "mark:added": MARK_ADDED,
1004
+ "mark:removed": MARK_REMOVED,
1005
+ "mark:body-updated": MARK_BODY_UPDATED,
1006
+ "mark:entity-tag-added": MARK_ENTITY_TAG_ADDED,
1007
+ "mark:entity-tag-removed": MARK_ENTITY_TAG_REMOVED,
1008
+ "mark:archived": MARK_ARCHIVED,
1009
+ "mark:unarchived": MARK_UNARCHIVED,
1010
+ "mark:create-request": MARK_CREATE_REQUEST,
1011
+ "mark:create": MARK_CREATE,
1012
+ "mark:delete": MARK_DELETE,
1013
+ "mark:update-body": MARK_UPDATE_BODY,
1014
+ "mark:archive": MARK_ARCHIVE,
1015
+ "mark:unarchive": MARK_UNARCHIVE,
1016
+ "mark:update-entity-types": MARK_UPDATE_ENTITY_TYPES,
1017
+ "mark:create-ok": MARK_CREATE_OK,
1018
+ "mark:create-failed": MARK_CREATE_FAILED,
1019
+ "mark:commit": MARK_COMMIT,
1020
+ "mark:commit-ok": MARK_COMMIT_OK,
1021
+ "mark:commit-failed": MARK_COMMIT_FAILED,
1022
+ "mark:delete-ok": MARK_DELETE_OK,
1023
+ "mark:delete-failed": MARK_DELETE_FAILED,
1024
+ "mark:archive-ok": MARK_ARCHIVE_OK,
1025
+ "mark:archive-failed": MARK_ARCHIVE_FAILED,
1026
+ "mark:unarchive-ok": MARK_UNARCHIVE_OK,
1027
+ "mark:unarchive-failed": MARK_UNARCHIVE_FAILED,
1028
+ "mark:update-entity-types-ok": MARK_UPDATE_ENTITY_TYPES_OK,
1029
+ "mark:update-entity-types-failed": MARK_UPDATE_ENTITY_TYPES_FAILED,
1030
+ "mark:body-update-failed": MARK_BODY_UPDATE_FAILED,
1031
+ "mark:select-comment": MARK_SELECT_COMMENT,
1032
+ "mark:select-tag": MARK_SELECT_TAG,
1033
+ "mark:select-assessment": MARK_SELECT_ASSESSMENT,
1034
+ "mark:select-reference": MARK_SELECT_REFERENCE,
1035
+ "mark:requested": MARK_REQUESTED,
1036
+ "mark:cancel-pending": MARK_CANCEL_PENDING,
1037
+ "mark:submit": MARK_SUBMIT,
1038
+ "mark:assist-request": MARK_ASSIST_REQUEST,
1039
+ "mark:progress-dismiss": MARK_PROGRESS_DISMISS,
1040
+ "mark:assist-timeout": MARK_ASSIST_TIMEOUT,
1041
+ "mark:create-error": MARK_CREATE_ERROR,
1042
+ "mark:delete-error": MARK_DELETE_ERROR,
1043
+ "bind:body-error": BIND_BODY_ERROR,
1044
+ "frame:entity-type-added": FRAME_ENTITY_TYPE_ADDED,
1045
+ "frame:tag-schema-added": FRAME_TAG_SCHEMA_ADDED,
1046
+ "frame:add-entity-type": FRAME_ADD_ENTITY_TYPE,
1047
+ "frame:add-tag-schema": FRAME_ADD_TAG_SCHEMA,
1048
+ "frame:entity-type-add-ok": FRAME_ENTITY_TYPE_ADD_OK,
1049
+ "frame:entity-type-add-failed": FRAME_ENTITY_TYPE_ADD_FAILED,
1050
+ "frame:tag-schema-add-ok": FRAME_TAG_SCHEMA_ADD_OK,
1051
+ "frame:tag-schema-add-failed": FRAME_TAG_SCHEMA_ADD_FAILED,
1052
+ "person:profiled": PERSON_PROFILED,
1053
+ "person:profile": PERSON_PROFILE,
1054
+ "bind:initiate": BIND_INITIATE,
1055
+ "bind:update-body": BIND_UPDATE_BODY,
1056
+ "bind:body-updated": BIND_BODY_UPDATED,
1057
+ "bind:body-update-failed": BIND_BODY_UPDATE_FAILED,
1058
+ "match:search-requested": MATCH_SEARCH_REQUESTED,
1059
+ "match:search-results": MATCH_SEARCH_RESULTS,
1060
+ "match:search-failed": MATCH_SEARCH_FAILED,
1061
+ "match:resources-requested": MATCH_RESOURCES_REQUESTED,
1062
+ "match:resources-result": MATCH_RESOURCES_RESULT,
1063
+ "match:resources-failed": MATCH_RESOURCES_FAILED,
1064
+ "match:limits-requested": MATCH_LIMITS_REQUESTED,
1065
+ "match:limits-result": MATCH_LIMITS_RESULT,
1066
+ "match:limits-failed": MATCH_LIMITS_FAILED,
1067
+ "gather:requested": GATHER_REQUESTED,
1068
+ "gather:complete": GATHER_COMPLETE,
1069
+ "gather:failed": GATHER_FAILED,
1070
+ "gather:resource-requested": GATHER_RESOURCE_REQUESTED,
1071
+ "gather:resource-complete": GATHER_RESOURCE_COMPLETE,
1072
+ "gather:resource-failed": GATHER_RESOURCE_FAILED,
1073
+ "gather:summary-requested": GATHER_SUMMARY_REQUESTED,
1074
+ "gather:summary-result": GATHER_SUMMARY_RESULT,
1075
+ "gather:summary-failed": GATHER_SUMMARY_FAILED,
1076
+ "gather:referenced-by-requested": GATHER_REFERENCED_BY_REQUESTED,
1077
+ "gather:referenced-by-result": GATHER_REFERENCED_BY_RESULT,
1078
+ "gather:referenced-by-failed": GATHER_REFERENCED_BY_FAILED,
1079
+ "gather:limits-requested": GATHER_LIMITS_REQUESTED,
1080
+ "gather:limits-result": GATHER_LIMITS_RESULT,
1081
+ "gather:limits-failed": GATHER_LIMITS_FAILED,
1082
+ "browse:resource-requested": BROWSE_RESOURCE_REQUESTED,
1083
+ "browse:resource-result": BROWSE_RESOURCE_RESULT,
1084
+ "browse:resource-failed": BROWSE_RESOURCE_FAILED,
1085
+ "browse:anchored-text-requested": BROWSE_ANCHORED_TEXT_REQUESTED,
1086
+ "browse:anchored-text-result": BROWSE_ANCHORED_TEXT_RESULT,
1087
+ "browse:anchored-text-failed": BROWSE_ANCHORED_TEXT_FAILED,
1088
+ "browse:resources-requested": BROWSE_RESOURCES_REQUESTED,
1089
+ "browse:resources-result": BROWSE_RESOURCES_RESULT,
1090
+ "browse:resources-failed": BROWSE_RESOURCES_FAILED,
1091
+ "browse:annotations-requested": BROWSE_ANNOTATIONS_REQUESTED,
1092
+ "browse:annotations-result": BROWSE_ANNOTATIONS_RESULT,
1093
+ "browse:annotations-failed": BROWSE_ANNOTATIONS_FAILED,
1094
+ "browse:annotation-requested": BROWSE_ANNOTATION_REQUESTED,
1095
+ "browse:annotation-result": BROWSE_ANNOTATION_RESULT,
1096
+ "browse:annotation-failed": BROWSE_ANNOTATION_FAILED,
1097
+ "browse:events-requested": BROWSE_EVENTS_REQUESTED,
1098
+ "browse:events-result": BROWSE_EVENTS_RESULT,
1099
+ "browse:events-failed": BROWSE_EVENTS_FAILED,
1100
+ "browse:annotation-history-requested": BROWSE_ANNOTATION_HISTORY_REQUESTED,
1101
+ "browse:annotation-history-result": BROWSE_ANNOTATION_HISTORY_RESULT,
1102
+ "browse:annotation-history-failed": BROWSE_ANNOTATION_HISTORY_FAILED,
1103
+ "browse:annotation-context-requested": BROWSE_ANNOTATION_CONTEXT_REQUESTED,
1104
+ "browse:annotation-context-result": BROWSE_ANNOTATION_CONTEXT_RESULT,
1105
+ "browse:annotation-context-failed": BROWSE_ANNOTATION_CONTEXT_FAILED,
1106
+ "browse:entity-types-requested": BROWSE_ENTITY_TYPES_REQUESTED,
1107
+ "browse:entity-types-result": BROWSE_ENTITY_TYPES_RESULT,
1108
+ "browse:entity-types-failed": BROWSE_ENTITY_TYPES_FAILED,
1109
+ "browse:tag-schemas-requested": BROWSE_TAG_SCHEMAS_REQUESTED,
1110
+ "browse:tag-schemas-result": BROWSE_TAG_SCHEMAS_RESULT,
1111
+ "browse:tag-schemas-failed": BROWSE_TAG_SCHEMAS_FAILED,
1112
+ "browse:agents-requested": BROWSE_AGENTS_REQUESTED,
1113
+ "browse:agents-result": BROWSE_AGENTS_RESULT,
1114
+ "browse:agents-failed": BROWSE_AGENTS_FAILED,
1115
+ "browse:kb-requested": BROWSE_KB_REQUESTED,
1116
+ "browse:kb-result": BROWSE_KB_RESULT,
1117
+ "browse:kb-failed": BROWSE_KB_FAILED,
1118
+ "browse:directory-requested": BROWSE_DIRECTORY_REQUESTED,
1119
+ "browse:directory-result": BROWSE_DIRECTORY_RESULT,
1120
+ "browse:directory-failed": BROWSE_DIRECTORY_FAILED,
1121
+ "browse:click": BROWSE_CLICK,
1122
+ "browse:resource-open": BROWSE_RESOURCE_OPEN,
1123
+ "browse:resource-viewed": BROWSE_RESOURCE_VIEWED,
1124
+ "browse:entity-type-clicked": BROWSE_ENTITY_TYPE_CLICKED,
1125
+ "panel:toggle": PANEL_TOGGLE,
1126
+ "panel:open": PANEL_OPEN,
1127
+ "panel:close": PANEL_CLOSE,
1128
+ "shell:sidebar-toggle": SHELL_SIDEBAR_TOGGLE,
1129
+ "tabs:close": TABS_CLOSE,
1130
+ "tabs:reorder": TABS_REORDER,
1131
+ "nav:link-clicked": NAV_LINK_CLICKED,
1132
+ "nav:push": NAV_PUSH,
1133
+ "nav:external": NAV_EXTERNAL,
1134
+ "beckon:hover": BECKON_HOVER,
1135
+ "beckon:focus": BECKON_FOCUS,
1136
+ "beckon:sparkle": BECKON_SPARKLE,
1137
+ "job:started": JOB_STARTED,
1138
+ "job:assigned": JOB_ASSIGNED,
1139
+ "job:completed": JOB_COMPLETED,
1140
+ "job:failed": JOB_FAILED,
1141
+ "job:start": JOB_START,
1142
+ "job:assign": JOB_ASSIGN,
1143
+ "job:report-progress": JOB_REPORT_PROGRESS,
1144
+ "job:complete": JOB_COMPLETE,
1145
+ "job:fail": JOB_FAIL,
1146
+ "job:checkpoint": JOB_CHECKPOINT,
1147
+ "job:queued": JOB_QUEUED,
1148
+ "job:cancel-requested": JOB_CANCEL_REQUESTED,
1149
+ "job:cancel": JOB_CANCEL,
1150
+ "job:limits-requested": JOB_LIMITS_REQUESTED,
1151
+ "job:limits-result": JOB_LIMITS_RESULT,
1152
+ "job:limits-failed": JOB_LIMITS_FAILED,
1153
+ "job:status-requested": JOB_STATUS_REQUESTED,
1154
+ "job:create": JOB_CREATE,
1155
+ "job:claim": JOB_CLAIM,
1156
+ "job:status-result": JOB_STATUS_RESULT,
1157
+ "job:status-failed": JOB_STATUS_FAILED,
1158
+ "job:created": JOB_CREATED,
1159
+ "job:create-failed": JOB_CREATE_FAILED,
1160
+ "job:claimed": JOB_CLAIMED,
1161
+ "job:claim-failed": JOB_CLAIM_FAILED,
1162
+ "job:cancel-ok": JOB_CANCEL_OK,
1163
+ "job:cancel-failed": JOB_CANCEL_FAILED,
1164
+ "weave:applied": WEAVE_APPLIED,
1165
+ "smelt:settled": SMELT_SETTLED,
1166
+ "weave:rebuild": WEAVE_REBUILD,
1167
+ "weave:rebuild-ok": WEAVE_REBUILD_OK,
1168
+ "weave:rebuild-failed": WEAVE_REBUILD_FAILED,
1169
+ "smelt:rebuild-anchors": SMELT_REBUILD_ANCHORS,
1170
+ "smelt:rebuild-anchors-ok": SMELT_REBUILD_ANCHORS_OK,
1171
+ "smelt:rebuild-anchors-failed": SMELT_REBUILD_ANCHORS_FAILED,
1172
+ "settings:theme-changed": SETTINGS_THEME_CHANGED,
1173
+ "settings:line-numbers-toggled": SETTINGS_LINE_NUMBERS_TOGGLED,
1174
+ "settings:locale-changed": SETTINGS_LOCALE_CHANGED,
1175
+ "settings:hover-delay-changed": SETTINGS_HOVER_DELAY_CHANGED,
1176
+ "bus:resume-gap": BUS_RESUME_GAP,
1177
+ "session:joined": SESSION_JOINED,
1178
+ "session:left": SESSION_LEFT,
1179
+ }
1180
+ )
1181
+
1182
+ # The channels a client hears with no scope held, unless it names a narrower list: every
1183
+ # operation's result and failure, and the events sent to every client.
1184
+ BRIDGED_CHANNELS: Final[tuple[ChannelName, ...]] = (
1185
+ "bind:body-updated",
1186
+ "bind:body-update-failed",
1187
+ "browse:resource-result",
1188
+ "browse:resource-failed",
1189
+ "browse:anchored-text-result",
1190
+ "browse:anchored-text-failed",
1191
+ "browse:resources-result",
1192
+ "browse:resources-failed",
1193
+ "browse:annotation-result",
1194
+ "browse:annotation-failed",
1195
+ "browse:annotations-result",
1196
+ "browse:annotations-failed",
1197
+ "browse:annotation-history-result",
1198
+ "browse:annotation-history-failed",
1199
+ "browse:events-result",
1200
+ "browse:events-failed",
1201
+ "browse:entity-types-result",
1202
+ "browse:entity-types-failed",
1203
+ "browse:tag-schemas-result",
1204
+ "browse:tag-schemas-failed",
1205
+ "browse:agents-result",
1206
+ "browse:agents-failed",
1207
+ "browse:kb-result",
1208
+ "browse:kb-failed",
1209
+ "browse:directory-result",
1210
+ "browse:directory-failed",
1211
+ "browse:annotation-context-result",
1212
+ "browse:annotation-context-failed",
1213
+ "frame:entity-type-add-ok",
1214
+ "frame:entity-type-add-failed",
1215
+ "frame:tag-schema-add-ok",
1216
+ "frame:tag-schema-add-failed",
1217
+ "gather:complete",
1218
+ "gather:failed",
1219
+ "gather:resource-complete",
1220
+ "gather:resource-failed",
1221
+ "gather:summary-result",
1222
+ "gather:summary-failed",
1223
+ "gather:referenced-by-result",
1224
+ "gather:referenced-by-failed",
1225
+ "gather:limits-result",
1226
+ "gather:limits-failed",
1227
+ "job:created",
1228
+ "job:create-failed",
1229
+ "job:status-result",
1230
+ "job:status-failed",
1231
+ "job:limits-result",
1232
+ "job:limits-failed",
1233
+ "job:cancel-ok",
1234
+ "job:cancel-failed",
1235
+ "job:claimed",
1236
+ "job:claim-failed",
1237
+ "mark:create-ok",
1238
+ "mark:create-failed",
1239
+ "mark:commit-ok",
1240
+ "mark:commit-failed",
1241
+ "mark:delete-ok",
1242
+ "mark:delete-failed",
1243
+ "mark:archive-ok",
1244
+ "mark:archive-failed",
1245
+ "mark:unarchive-ok",
1246
+ "mark:unarchive-failed",
1247
+ "mark:update-entity-types-ok",
1248
+ "mark:update-entity-types-failed",
1249
+ "match:search-results",
1250
+ "match:search-failed",
1251
+ "match:resources-result",
1252
+ "match:resources-failed",
1253
+ "match:limits-result",
1254
+ "match:limits-failed",
1255
+ "weave:rebuild-ok",
1256
+ "weave:rebuild-failed",
1257
+ "smelt:rebuild-anchors-ok",
1258
+ "smelt:rebuild-anchors-failed",
1259
+ "yield:create-ok",
1260
+ "yield:create-failed",
1261
+ "yield:clone-persist-ok",
1262
+ "yield:clone-persist-failed",
1263
+ "yield:update-ok",
1264
+ "yield:update-failed",
1265
+ "yield:clone-created",
1266
+ "yield:clone-create-failed",
1267
+ "yield:clone-resource-result",
1268
+ "yield:clone-resource-failed",
1269
+ "yield:clone-token-generated",
1270
+ "yield:clone-token-failed",
1271
+ "job:report-progress",
1272
+ "job:complete",
1273
+ "job:fail",
1274
+ "smelt:settled",
1275
+ "frame:entity-type-added",
1276
+ "frame:tag-schema-added",
1277
+ "yield:created",
1278
+ "yield:updated",
1279
+ "yield:cloned",
1280
+ "yield:moved",
1281
+ "beckon:focus",
1282
+ "beckon:sparkle",
1283
+ "bus:resume-gap",
1284
+ "browse:resource-open",
1285
+ "browse:resource-viewed",
1286
+ "session:joined",
1287
+ "session:left",
1288
+ "browse:click",
1289
+ )
1290
+
1291
+ # The channels a resource's scope carries: what holding a resource adds to a client's stream.
1292
+ RESOURCE_SCOPED_CHANNELS: Final[tuple[ChannelName, ...]] = (
1293
+ "mark:body-updated",
1294
+ "yield:representation-added",
1295
+ "yield:representation-removed",
1296
+ "mark:added",
1297
+ "mark:removed",
1298
+ "mark:entity-tag-added",
1299
+ "mark:entity-tag-removed",
1300
+ "mark:archived",
1301
+ "mark:unarchived",
1302
+ "job:started",
1303
+ "job:assigned",
1304
+ "job:completed",
1305
+ "job:failed",
1306
+ )