@semiont/core 0.5.2 → 0.5.3

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.
package/dist/index.d.ts CHANGED
@@ -2227,6 +2227,10 @@ interface components {
2227
2227
  EntityTypeAddedPayload: {
2228
2228
  entityType: string;
2229
2229
  };
2230
+ /** @description Payload for frame:tag-schema-added domain event (system-level, no resourceId — fan-out is global to the KB). */
2231
+ TagSchemaAddedPayload: {
2232
+ schema: components["schemas"]["TagSchema"];
2233
+ };
2230
2234
  /** @description Payload for mark:entity-tag-added and mark:entity-tag-removed domain events */
2231
2235
  EntityTagChangedPayload: {
2232
2236
  entityType: string;
@@ -2353,6 +2357,9 @@ interface components {
2353
2357
  /** @description Annotations that reference this resource from other resources */
2354
2358
  entityReferences: components["schemas"]["Annotation"][];
2355
2359
  };
2360
+ GetTagSchemasResponse: {
2361
+ tagSchemas: components["schemas"]["TagSchema"][];
2362
+ };
2356
2363
  GoogleAuthRequest: {
2357
2364
  access_token: string;
2358
2365
  };
@@ -2894,6 +2901,15 @@ interface components {
2894
2901
  path: string;
2895
2902
  reason?: string;
2896
2903
  };
2904
+ /** @description Request to browse registered tag schemas */
2905
+ BrowseTagSchemasRequest: {
2906
+ correlationId: string;
2907
+ };
2908
+ /** @description Result of browsing tag schemas */
2909
+ BrowseTagSchemasResult: {
2910
+ correlationId: string;
2911
+ response: components["schemas"]["GetTagSchemasResponse"];
2912
+ };
2897
2913
  /** @description W3C Web Annotation FragmentSelector for media fragment identifiers (RFC 3778 for PDFs) */
2898
2914
  FragmentSelector: {
2899
2915
  /** @enum {string} */
@@ -3204,6 +3220,12 @@ interface components {
3204
3220
  /** @description Authenticated user's DID, injected by the /bus/emit gateway. Clients do not set this. */
3205
3221
  _userId?: string;
3206
3222
  };
3223
+ /** @description Bus command to register a tag schema with the KB's runtime registry. Carried on the `frame:add-tag-schema` channel — Frame is the schema-layer flow that owns vocabulary writes. Most-recent registration of a given `schema.id` wins; the projection reflects the latest content. Identical re-registrations are silent; differing content overwrites and logs a warning. */
3224
+ FrameAddTagSchemaCommand: {
3225
+ schema: components["schemas"]["TagSchema"];
3226
+ /** @description Authenticated user's DID, injected by the /bus/emit gateway. Clients do not set this. */
3227
+ _userId?: string;
3228
+ };
3207
3229
  /** @description Bus command to archive a resource and optionally remove its file. */
3208
3230
  MarkArchiveCommand: {
3209
3231
  /** @description Authenticated user's DID, injected by the /bus/emit gateway. Clients do not set this. */
@@ -3353,6 +3375,21 @@ interface components {
3353
3375
  /** @description SVG markup defining the region (must include xmlns attribute) */
3354
3376
  value: string;
3355
3377
  };
3378
+ /** @description A single category within a tag schema (e.g. 'Issue' in IRAC, 'distinguished' in legal-citation-treatment). Each category carries methodology-bound semantics: a name, a description, and examples used in the LLM prompt. */
3379
+ TagCategory: {
3380
+ name: string;
3381
+ description: string;
3382
+ examples: string[];
3383
+ };
3384
+ /** @description A structural-analysis schema (e.g. legal-irac, scientific-imrad, argument-toulmin). Defines a methodology framework as an id, name, description, domain hint, and an ordered list of categories. KBs and their skills register schemas with the runtime registry via `frame.addTagSchema(...)` at session start. */
3385
+ TagSchema: {
3386
+ id: string;
3387
+ name: string;
3388
+ description: string;
3389
+ /** @description Free-form domain hint (e.g. 'legal', 'scientific', 'general'). Used in the LLM prompt to tune the model's analysis voice. KB authors choose. */
3390
+ domain: string;
3391
+ tags: components["schemas"]["TagCategory"][];
3392
+ };
3356
3393
  /** @description Bus command to create a cloned resource from a clone token. */
3357
3394
  YieldCloneCreateCommand: {
3358
3395
  correlationId: string;
@@ -3418,22 +3455,6 @@ interface components {
3418
3455
  toUri: string;
3419
3456
  noGit?: boolean;
3420
3457
  };
3421
- /** @description Bus command to request yield (generation) of a new resource from an annotation. */
3422
- YieldRequestCommand: {
3423
- /** @description Client-supplied id used to match this command to its result event(s) on the events-stream. Generated by the route handler if absent. */
3424
- correlationId?: string;
3425
- annotationId: string;
3426
- resourceId: string;
3427
- options: {
3428
- title: string;
3429
- prompt?: string;
3430
- language?: string;
3431
- temperature?: number;
3432
- maxTokens?: number;
3433
- context?: components["schemas"]["GatheredContext"];
3434
- storageUri: string;
3435
- };
3436
- };
3437
3458
  /** @description Bus command to update a yielded resource's storage content. */
3438
3459
  YieldUpdateCommand: {
3439
3460
  /** @description Authenticated user's DID, injected by the /bus/emit gateway. Clients do not set this. */
@@ -3676,13 +3697,14 @@ type PersistedEventCatalog = {
3676
3697
  'mark:entity-tag-added': components['schemas']['EntityTagChangedPayload'];
3677
3698
  'mark:entity-tag-removed': components['schemas']['EntityTagChangedPayload'];
3678
3699
  'frame:entity-type-added': components['schemas']['EntityTypeAddedPayload'];
3700
+ 'frame:tag-schema-added': components['schemas']['TagSchemaAddedPayload'];
3679
3701
  'job:started': components['schemas']['JobStartedPayload'];
3680
3702
  'job:progress': components['schemas']['JobProgressPayload'];
3681
3703
  'job:completed': components['schemas']['JobCompletedPayload'];
3682
3704
  'job:failed': components['schemas']['JobFailedPayload'];
3683
3705
  };
3684
3706
  /** System event types — persisted events that have no resourceId. */
3685
- type SystemEventType = 'frame:entity-type-added';
3707
+ type SystemEventType = 'frame:entity-type-added' | 'frame:tag-schema-added';
3686
3708
  /** Extract the concrete persisted event type for a given type string. */
3687
3709
  type EventOfType<K extends keyof PersistedEventCatalog> = K extends SystemEventType ? EventBase & {
3688
3710
  type: K;
@@ -3707,7 +3729,7 @@ type PersistedEventType = PersistedEvent['type'];
3707
3729
  * also adding it here: forgetting fails to typecheck rather than silently
3708
3730
  * dropping the event from the events-stream.
3709
3731
  */
3710
- declare const PERSISTED_EVENT_TYPES: readonly ["yield:created", "yield:cloned", "yield:updated", "yield:moved", "yield:representation-added", "yield:representation-removed", "mark:added", "mark:removed", "mark:body-updated", "mark:archived", "mark:unarchived", "mark:entity-tag-added", "mark:entity-tag-removed", "frame:entity-type-added", "job:started", "job:progress", "job:completed", "job:failed"];
3732
+ declare const PERSISTED_EVENT_TYPES: readonly ["yield:created", "yield:cloned", "yield:updated", "yield:moved", "yield:representation-added", "yield:representation-removed", "mark:added", "mark:removed", "mark:body-updated", "mark:archived", "mark:unarchived", "mark:entity-tag-added", "mark:entity-tag-removed", "frame:entity-type-added", "frame:tag-schema-added", "job:started", "job:progress", "job:completed", "job:failed"];
3711
3733
  /** Input type for appendEvent — PersistedEvent without id/timestamp (assigned at persistence time). */
3712
3734
  type EventInput = Omit<PersistedEvent, 'id' | 'timestamp'>;
3713
3735
 
@@ -3829,7 +3851,6 @@ type EventMap = {
3829
3851
  'yield:moved': StoredEvent<EventOfType<'yield:moved'>>;
3830
3852
  'yield:representation-added': StoredEvent<EventOfType<'yield:representation-added'>>;
3831
3853
  'yield:representation-removed': StoredEvent<EventOfType<'yield:representation-removed'>>;
3832
- 'yield:request': components['schemas']['YieldRequestCommand'];
3833
3854
  'yield:create': components['schemas']['YieldCreateCommand'];
3834
3855
  'yield:update': components['schemas']['YieldUpdateCommand'];
3835
3856
  'yield:mv': components['schemas']['YieldMvCommand'];
@@ -3897,8 +3918,11 @@ type EventMap = {
3897
3918
  'mark:click-changed': components['schemas']['MarkClickChangedEvent'];
3898
3919
  'mark:shape-changed': components['schemas']['MarkShapeChangedEvent'];
3899
3920
  'frame:entity-type-added': StoredEvent<EventOfType<'frame:entity-type-added'>>;
3921
+ 'frame:tag-schema-added': StoredEvent<EventOfType<'frame:tag-schema-added'>>;
3900
3922
  'frame:add-entity-type': components['schemas']['FrameAddEntityTypeCommand'];
3923
+ 'frame:add-tag-schema': components['schemas']['FrameAddTagSchemaCommand'];
3901
3924
  'frame:entity-type-add-failed': components['schemas']['CommandError'];
3925
+ 'frame:tag-schema-add-failed': components['schemas']['CommandError'];
3902
3926
  'bind:initiate': BindInitiateCommand;
3903
3927
  'bind:update-body': BindUpdateBodyCommand;
3904
3928
  'bind:body-updated': components['schemas']['BindBodyUpdated'];
@@ -3978,6 +4002,11 @@ type EventMap = {
3978
4002
  'browse:entity-types-failed': {
3979
4003
  correlationId: string;
3980
4004
  } & components['schemas']['CommandError'];
4005
+ 'browse:tag-schemas-requested': components['schemas']['BrowseTagSchemasRequest'];
4006
+ 'browse:tag-schemas-result': components['schemas']['BrowseTagSchemasResult'];
4007
+ 'browse:tag-schemas-failed': {
4008
+ correlationId: string;
4009
+ } & components['schemas']['CommandError'];
3981
4010
  'browse:directory-requested': components['schemas']['BrowseDirectoryRequest'];
3982
4011
  'browse:directory-result': components['schemas']['BrowseDirectoryResult'];
3983
4012
  'browse:directory-failed': {
@@ -4120,7 +4149,6 @@ declare const CHANNEL_SCHEMAS: {
4120
4149
  readonly 'yield:moved': null;
4121
4150
  readonly 'yield:representation-added': null;
4122
4151
  readonly 'yield:representation-removed': null;
4123
- readonly 'yield:request': "YieldRequestCommand";
4124
4152
  readonly 'yield:create': "YieldCreateCommand";
4125
4153
  readonly 'yield:update': "YieldUpdateCommand";
4126
4154
  readonly 'yield:mv': "YieldMvCommand";
@@ -4146,6 +4174,7 @@ declare const CHANNEL_SCHEMAS: {
4146
4174
  readonly 'mark:entity-tag-added': null;
4147
4175
  readonly 'mark:entity-tag-removed': null;
4148
4176
  readonly 'frame:entity-type-added': null;
4177
+ readonly 'frame:tag-schema-added': null;
4149
4178
  readonly 'mark:archived': null;
4150
4179
  readonly 'mark:unarchived': null;
4151
4180
  readonly 'mark:create-request': "MarkCreateRequest";
@@ -4156,12 +4185,14 @@ declare const CHANNEL_SCHEMAS: {
4156
4185
  readonly 'mark:unarchive': "MarkUnarchiveCommand";
4157
4186
  readonly 'mark:update-entity-types': "MarkUpdateEntityTypesCommand";
4158
4187
  readonly 'frame:add-entity-type': "FrameAddEntityTypeCommand";
4188
+ readonly 'frame:add-tag-schema': "FrameAddTagSchemaCommand";
4159
4189
  readonly 'mark:create-ok': "MarkCreateOk";
4160
4190
  readonly 'mark:create-failed': "CommandError";
4161
4191
  readonly 'mark:delete-ok': "MarkDeleteOk";
4162
4192
  readonly 'mark:delete-failed': "CommandError";
4163
4193
  readonly 'mark:body-update-failed': "CommandError";
4164
4194
  readonly 'frame:entity-type-add-failed': "CommandError";
4195
+ readonly 'frame:tag-schema-add-failed': "CommandError";
4165
4196
  readonly 'mark:select-comment': "SelectionData";
4166
4197
  readonly 'mark:select-tag': "SelectionData";
4167
4198
  readonly 'mark:select-assessment': "SelectionData";
@@ -4223,6 +4254,9 @@ declare const CHANNEL_SCHEMAS: {
4223
4254
  readonly 'browse:entity-types-requested': "BrowseEntityTypesRequest";
4224
4255
  readonly 'browse:entity-types-result': "BrowseEntityTypesResult";
4225
4256
  readonly 'browse:entity-types-failed': null;
4257
+ readonly 'browse:tag-schemas-requested': "BrowseTagSchemasRequest";
4258
+ readonly 'browse:tag-schemas-result': "BrowseTagSchemasResult";
4259
+ readonly 'browse:tag-schemas-failed': null;
4226
4260
  readonly 'browse:directory-requested': "BrowseDirectoryRequest";
4227
4261
  readonly 'browse:directory-result': "BrowseDirectoryResult";
4228
4262
  readonly 'browse:directory-failed': null;
@@ -5331,7 +5365,7 @@ interface IContentTransport {
5331
5365
  * Resource-scoped channels (joined/left via `subscribeToResource`) are
5332
5366
  * tracked separately by transports that care about scope (HTTP).
5333
5367
  */
5334
- declare const BRIDGED_CHANNELS: readonly ["browse:resources-result", "browse:resources-failed", "browse:resource-result", "browse:resource-failed", "browse:annotations-result", "browse:annotations-failed", "browse:annotation-result", "browse:annotation-failed", "browse:annotation-history-result", "browse:annotation-history-failed", "browse:events-result", "browse:events-failed", "browse:referenced-by-result", "browse:referenced-by-failed", "browse:entity-types-result", "browse:entity-types-failed", "browse:directory-result", "browse:directory-failed", "browse:annotation-context-result", "browse:annotation-context-failed", "mark:delete-ok", "mark:delete-failed", "mark:create-ok", "mark:create-failed", "match:search-results", "match:search-failed", "gather:complete", "gather:failed", "gather:annotation-progress", "gather:annotation-finished", "gather:summary-result", "gather:summary-failed", "bind:body-updated", "bind:body-update-failed", "job:report-progress", "job:complete", "job:fail", "job:status-result", "job:status-failed", "job:created", "job:create-failed", "job:claimed", "job:claim-failed", "yield:create-ok", "yield:create-failed", "yield:update-ok", "yield:update-failed", "yield:clone-token-generated", "yield:clone-token-failed", "yield:clone-resource-result", "yield:clone-resource-failed", "yield:clone-created", "yield:clone-create-failed", "frame:entity-type-added", "beckon:focus", "beckon:sparkle", "bus:resume-gap"];
5368
+ declare const BRIDGED_CHANNELS: readonly ["browse:resources-result", "browse:resources-failed", "browse:resource-result", "browse:resource-failed", "browse:annotations-result", "browse:annotations-failed", "browse:annotation-result", "browse:annotation-failed", "browse:annotation-history-result", "browse:annotation-history-failed", "browse:events-result", "browse:events-failed", "browse:referenced-by-result", "browse:referenced-by-failed", "browse:entity-types-result", "browse:entity-types-failed", "browse:tag-schemas-result", "browse:tag-schemas-failed", "browse:directory-result", "browse:directory-failed", "browse:annotation-context-result", "browse:annotation-context-failed", "mark:delete-ok", "mark:delete-failed", "mark:create-ok", "mark:create-failed", "match:search-results", "match:search-failed", "gather:complete", "gather:failed", "gather:annotation-progress", "gather:annotation-finished", "gather:summary-result", "gather:summary-failed", "bind:body-updated", "bind:body-update-failed", "job:report-progress", "job:complete", "job:fail", "job:status-result", "job:status-failed", "job:created", "job:create-failed", "job:claimed", "job:claim-failed", "yield:create-ok", "yield:create-failed", "yield:update-ok", "yield:update-failed", "yield:clone-token-generated", "yield:clone-token-failed", "yield:clone-resource-result", "yield:clone-resource-failed", "yield:clone-created", "yield:clone-create-failed", "frame:entity-type-added", "frame:tag-schema-added", "beckon:focus", "beckon:sparkle", "bus:resume-gap"];
5335
5369
  type BridgedChannel = typeof BRIDGED_CHANNELS[number];
5336
5370
 
5337
5371
  /**
@@ -5719,6 +5753,33 @@ interface ResourceFilter {
5719
5753
  offset?: number;
5720
5754
  }
5721
5755
 
5756
+ /**
5757
+ * Tag-schema type aliases.
5758
+ *
5759
+ * These are type-only re-exports of the OpenAPI `TagSchema` and `TagCategory`
5760
+ * shapes. The schemas themselves do not live in `@semiont/core` — they're
5761
+ * registered at runtime per-KB via `frame.addTagSchema(...)` against a
5762
+ * per-KB projection. This module just exposes the shape so KB authors and
5763
+ * skill code can type their schema literals without the OpenAPI lookup
5764
+ * syntax (`components['schemas']['TagSchema']`).
5765
+ */
5766
+
5767
+ /**
5768
+ * A structural-analysis schema (e.g. legal-irac, scientific-imrad).
5769
+ *
5770
+ * Defines a methodology framework as an id, name, description, domain hint,
5771
+ * and an ordered list of categories. KBs and their skills register schemas
5772
+ * with the runtime registry via `frame.addTagSchema(...)` at session start.
5773
+ */
5774
+ type TagSchema = components['schemas']['TagSchema'];
5775
+ /**
5776
+ * A single category within a {@link TagSchema} (e.g. 'Issue' in IRAC).
5777
+ *
5778
+ * Each category carries methodology-bound semantics: a name, a description,
5779
+ * and examples used in the LLM prompt.
5780
+ */
5781
+ type TagCategory = components['schemas']['TagCategory'];
5782
+
5722
5783
  /**
5723
5784
  * Auth types
5724
5785
  */
@@ -5964,4 +6025,4 @@ declare function getAllPlatformTypes(): PlatformType[];
5964
6025
  declare const CORE_TYPES_VERSION = "0.1.0";
5965
6026
  declare const SDK_VERSION = "0.1.0";
5966
6027
 
5967
- export { type AccessToken, type Annotation, type AnnotationCategory, type AnnotationId, type AnnotationUri, type AssembledAnnotation, type AuthCode, BRIDGED_CHANNELS, type BackendDownload, type BaseUrl, type BodyItem, type BodyItemIdentity, type BodyOperation, type BoundingBox, type Brand, type BridgedChannel, type BurstBufferOptions, type BusOp, CHANNEL_SCHEMAS, CORE_TYPES_VERSION, CREATION_METHODS, type CloneToken, ConfigurationError, ConflictError, type ConnectionState, type ContentCache, type ContentFormat, type CreateAnnotationInternal, type CreationMethod, type Email, type EmittableChannel, type EntityType, type EntityTypeStats, type Environment, EnvironmentConfig, type EventBase, EventBus, type EventInput, type EventMap, type EventMetadata, type EventName, type EventOfType, type EventQuery, type EventSignature, type FragmentSelector, type GatheredContext, type GoogleAuthRequest, type GoogleCredential, type GraphConnection, type GraphPath, type HealthCheckResponse, type IBackendOperations, type IContentTransport, type ITransport, JWTTokenSchema, type JobId, LOCALES, type ListUsersResponse, type LocaleInfo, type Logger, type MCPToken, type MatchQuality, type MimeCategory, type Motivation, NotFoundError, PERSISTED_EVENT_TYPES, type PersistedEvent, type PersistedEventType, type PlatformType, type Point, type ProgressCallback, type ProgressEvent, type PutBinaryOptions, type PutBinaryProgress, type PutBinaryRequest, RESOURCE_BROADCAST_TYPES, type RefreshToken, type ResourceAnnotationUri, type ResourceAnnotations, type ResourceBroadcastType, type ResourceDescriptor, type ResourceFilter, type ResourceId, type ResourceUri, SDK_VERSION, ScopedEventBus, ScriptError, type SearchQuery, type SelectionData, type Selector, SemiontError, type StatusResponse, type StoredEvent, type StoredEventLike, type SvgSelector, type TextPosition, type TextPositionSelector, type TextQuoteSelector, type ActorInferenceConfig as TomlActorInferenceConfig, type TomlFileReader, type InferenceConfig as TomlInferenceConfig, type WorkerInferenceConfig as TomlWorkerInferenceConfig, type TransportErrorCode, UnauthorizedError, type UpdateResourceInput, type UpdateUserRequest, type UpdateUserResponse, type UserDID, type UserId, type UserResponse, type ValidatedAnnotation, ValidationError, type ValidationFailure, type ValidationResult, type ValidationSuccess, accessToken, annotationId, annotationUri, applyBodyOperations, assembleAnnotation, authCode, baseUrl, buildContentCache, burstBuffer, busLog, busLogEnabled, cloneToken, type components, createCircleSvg, createPolygonSvg, createRectangleSvg, createTomlConfigLoader, decodeRepresentation, decodeWithCharset, didToAgent, email, entityType, errField, extractBoundingBox, extractCharset, extractContext, findBestTextMatch, findBodyItem, findTextWithContext, formatLocaleDisplay, generateUuid, getAllLocaleCodes, getAllPlatformTypes, getAnnotationExactText, getAnnotationUriFromEvent, getBodySource, getBodyType, getChecksum, getCommentText, getCreator, getDerivedFrom, getExactText, getExtensionForMimeType, getFragmentSelector, getLanguage, getLocaleEnglishName, getLocaleInfo, getLocaleNativeName, getMimeCategory, getNodeEncoding, getPrimaryMediaType, getPrimaryRepresentation, getPrimarySelector, getResourceEntityTypes, getResourceId, getStorageUri, getSvgSelector, getTargetSelector, getTargetSource, getTextPositionSelector, getTextQuoteSelector, googleCredential, hasTargetSelector, isAnnotationId, isArchived, isArray, isAssessment, isBodyResolved, isBoolean, isComment, isDefined, isDraft, isEventRelatedToAnnotation, isFunction, isHighlight, isImageMimeType, isNull, isNullish, isNumber, isObject, isPdfMimeType, isReference, isResolvedReference, isResourceId, isStoredEvent, isString, isStubReference, isTag, isTextMimeType, isUndefined, isValidEmail, isValidPlatformType, jobId, loadTomlConfig, mcpToken, normalizeCoordinates, normalizeText, type operations, parseEnvironment, parseSvgSelector, type paths, refreshToken, resourceAnnotationUri, resourceId, resourceUri, scaleSvgToNative, searchQuery, serializePerKey, setBusLogTraceIdProvider, userDID, userId, userToAgent, userToDid, validateAndCorrectOffsets, validateData, validateEnvironment, validateSvgMarkup, verifyPosition };
6028
+ export { type AccessToken, type Annotation, type AnnotationCategory, type AnnotationId, type AnnotationUri, type AssembledAnnotation, type AuthCode, BRIDGED_CHANNELS, type BackendDownload, type BaseUrl, type BodyItem, type BodyItemIdentity, type BodyOperation, type BoundingBox, type Brand, type BridgedChannel, type BurstBufferOptions, type BusOp, CHANNEL_SCHEMAS, CORE_TYPES_VERSION, CREATION_METHODS, type CloneToken, ConfigurationError, ConflictError, type ConnectionState, type ContentCache, type ContentFormat, type CreateAnnotationInternal, type CreationMethod, type Email, type EmittableChannel, type EntityType, type EntityTypeStats, type Environment, EnvironmentConfig, type EventBase, EventBus, type EventInput, type EventMap, type EventMetadata, type EventName, type EventOfType, type EventQuery, type EventSignature, type FragmentSelector, type GatheredContext, type GoogleAuthRequest, type GoogleCredential, type GraphConnection, type GraphPath, type HealthCheckResponse, type IBackendOperations, type IContentTransport, type ITransport, JWTTokenSchema, type JobId, LOCALES, type ListUsersResponse, type LocaleInfo, type Logger, type MCPToken, type MatchQuality, type MimeCategory, type Motivation, NotFoundError, PERSISTED_EVENT_TYPES, type PersistedEvent, type PersistedEventType, type PlatformType, type Point, type ProgressCallback, type ProgressEvent, type PutBinaryOptions, type PutBinaryProgress, type PutBinaryRequest, RESOURCE_BROADCAST_TYPES, type RefreshToken, type ResourceAnnotationUri, type ResourceAnnotations, type ResourceBroadcastType, type ResourceDescriptor, type ResourceFilter, type ResourceId, type ResourceUri, SDK_VERSION, ScopedEventBus, ScriptError, type SearchQuery, type SelectionData, type Selector, SemiontError, type StatusResponse, type StoredEvent, type StoredEventLike, type SvgSelector, type TagCategory, type TagSchema, type TextPosition, type TextPositionSelector, type TextQuoteSelector, type ActorInferenceConfig as TomlActorInferenceConfig, type TomlFileReader, type InferenceConfig as TomlInferenceConfig, type WorkerInferenceConfig as TomlWorkerInferenceConfig, type TransportErrorCode, UnauthorizedError, type UpdateResourceInput, type UpdateUserRequest, type UpdateUserResponse, type UserDID, type UserId, type UserResponse, type ValidatedAnnotation, ValidationError, type ValidationFailure, type ValidationResult, type ValidationSuccess, accessToken, annotationId, annotationUri, applyBodyOperations, assembleAnnotation, authCode, baseUrl, buildContentCache, burstBuffer, busLog, busLogEnabled, cloneToken, type components, createCircleSvg, createPolygonSvg, createRectangleSvg, createTomlConfigLoader, decodeRepresentation, decodeWithCharset, didToAgent, email, entityType, errField, extractBoundingBox, extractCharset, extractContext, findBestTextMatch, findBodyItem, findTextWithContext, formatLocaleDisplay, generateUuid, getAllLocaleCodes, getAllPlatformTypes, getAnnotationExactText, getAnnotationUriFromEvent, getBodySource, getBodyType, getChecksum, getCommentText, getCreator, getDerivedFrom, getExactText, getExtensionForMimeType, getFragmentSelector, getLanguage, getLocaleEnglishName, getLocaleInfo, getLocaleNativeName, getMimeCategory, getNodeEncoding, getPrimaryMediaType, getPrimaryRepresentation, getPrimarySelector, getResourceEntityTypes, getResourceId, getStorageUri, getSvgSelector, getTargetSelector, getTargetSource, getTextPositionSelector, getTextQuoteSelector, googleCredential, hasTargetSelector, isAnnotationId, isArchived, isArray, isAssessment, isBodyResolved, isBoolean, isComment, isDefined, isDraft, isEventRelatedToAnnotation, isFunction, isHighlight, isImageMimeType, isNull, isNullish, isNumber, isObject, isPdfMimeType, isReference, isResolvedReference, isResourceId, isStoredEvent, isString, isStubReference, isTag, isTextMimeType, isUndefined, isValidEmail, isValidPlatformType, jobId, loadTomlConfig, mcpToken, normalizeCoordinates, normalizeText, type operations, parseEnvironment, parseSvgSelector, type paths, refreshToken, resourceAnnotationUri, resourceId, resourceUri, scaleSvgToNative, searchQuery, serializePerKey, setBusLogTraceIdProvider, userDID, userId, userToAgent, userToDid, validateAndCorrectOffsets, validateData, validateEnvironment, validateSvgMarkup, verifyPosition };
package/dist/index.js CHANGED
@@ -110,6 +110,7 @@ var PERSISTED_EVENT_TYPES = [
110
110
  "mark:entity-tag-added",
111
111
  "mark:entity-tag-removed",
112
112
  "frame:entity-type-added",
113
+ "frame:tag-schema-added",
113
114
  "job:started",
114
115
  "job:progress",
115
116
  "job:completed",
@@ -134,7 +135,6 @@ var CHANNEL_SCHEMAS = {
134
135
  "yield:moved": null,
135
136
  "yield:representation-added": null,
136
137
  "yield:representation-removed": null,
137
- "yield:request": "YieldRequestCommand",
138
138
  "yield:create": "YieldCreateCommand",
139
139
  "yield:update": "YieldUpdateCommand",
140
140
  "yield:mv": "YieldMvCommand",
@@ -170,6 +170,7 @@ var CHANNEL_SCHEMAS = {
170
170
  "mark:entity-tag-added": null,
171
171
  "mark:entity-tag-removed": null,
172
172
  "frame:entity-type-added": null,
173
+ "frame:tag-schema-added": null,
173
174
  "mark:archived": null,
174
175
  "mark:unarchived": null,
175
176
  "mark:create-request": "MarkCreateRequest",
@@ -180,12 +181,14 @@ var CHANNEL_SCHEMAS = {
180
181
  "mark:unarchive": "MarkUnarchiveCommand",
181
182
  "mark:update-entity-types": "MarkUpdateEntityTypesCommand",
182
183
  "frame:add-entity-type": "FrameAddEntityTypeCommand",
184
+ "frame:add-tag-schema": "FrameAddTagSchemaCommand",
183
185
  "mark:create-ok": "MarkCreateOk",
184
186
  "mark:create-failed": "CommandError",
185
187
  "mark:delete-ok": "MarkDeleteOk",
186
188
  "mark:delete-failed": "CommandError",
187
189
  "mark:body-update-failed": "CommandError",
188
190
  "frame:entity-type-add-failed": "CommandError",
191
+ "frame:tag-schema-add-failed": "CommandError",
189
192
  "mark:select-comment": "SelectionData",
190
193
  "mark:select-tag": "SelectionData",
191
194
  "mark:select-assessment": "SelectionData",
@@ -261,6 +264,9 @@ var CHANNEL_SCHEMAS = {
261
264
  "browse:entity-types-requested": "BrowseEntityTypesRequest",
262
265
  "browse:entity-types-result": "BrowseEntityTypesResult",
263
266
  "browse:entity-types-failed": null,
267
+ "browse:tag-schemas-requested": "BrowseTagSchemasRequest",
268
+ "browse:tag-schemas-result": "BrowseTagSchemasResult",
269
+ "browse:tag-schemas-failed": null,
264
270
  "browse:directory-requested": "BrowseDirectoryRequest",
265
271
  "browse:directory-result": "BrowseDirectoryResult",
266
272
  "browse:directory-failed": null,
@@ -999,6 +1005,8 @@ var BRIDGED_CHANNELS = [
999
1005
  "browse:referenced-by-failed",
1000
1006
  "browse:entity-types-result",
1001
1007
  "browse:entity-types-failed",
1008
+ "browse:tag-schemas-result",
1009
+ "browse:tag-schemas-failed",
1002
1010
  "browse:directory-result",
1003
1011
  "browse:directory-failed",
1004
1012
  "browse:annotation-context-result",
@@ -1037,6 +1045,7 @@ var BRIDGED_CHANNELS = [
1037
1045
  "yield:clone-created",
1038
1046
  "yield:clone-create-failed",
1039
1047
  "frame:entity-type-added",
1048
+ "frame:tag-schema-added",
1040
1049
  "beckon:focus",
1041
1050
  "beckon:sparkle",
1042
1051
  "bus:resume-gap"