Skip to main content

Class: PluginCatalog

Manages the global plugin catalog and annotations (not project-scoped).

Constructors​

new PluginCatalog()​

new PluginCatalog(ctx): PluginCatalog

Internal

Parameters​

ParameterType
ctxClientContext

Returns​

PluginCatalog

Defined in​

odin-transcription-service/packages/cortex-typescript-sdk/src/resources/plugins.ts:23

Methods​

get()​

get(slug): Promise<object>

Get a plugin by slug

Parameters​

ParameterTypeDescription
slugstringPlugin slug (e.g. "profanity-filter")

Returns​

Promise<object>

Plugin details

NameTypeDescriptionDefined in
capabilities("transcribe" | "analyze")[]Description Capabilities of an audio plugin (empty for event plugins). A transcribe plugin can be selected as the project transcriber via PATCH /projects/{projectId}/settings/transcription. Example []odin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:2535
category| "moderation" | "analytics" | "automation" | "integration" | "transcription"Description Category (UI grouping)odin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:2524
description?stringDescription Descriptionodin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:2514
eventsstring[]Description Event patterns Example [ "message.created" ]odin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:2542
icon?stringDescription Heroicons icon name Example heroicons_outline:shield-checkodin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:2564
idstringDescription Plugin UUIDodin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:2502
isActivebooleanDescription Whether plugin is availableodin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:2566
kind"event" | "audio"Description How the plugin runs: event = reacts to domain events; audio = processes utterance audio in the bot (transcription providers, audio moderation) Example event @enum {string}odin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:2530
namestringDescription Display name Example Profanity Filterodin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:2512
outputAnnotationType?"profanity" | "summary" | "action_items" | "sentiment"Description Output annotation typeodin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:2547
pricingUrl?stringDescription Pricing page URL for the tied Payment product, shown in the install cost-acceptance notice. Example https://odin.4players.io/pricingodin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:2559
productSlug?stringDescription Payment product slug this plugin activates (set = paid plugin). When present, installing/enabling the plugin activates this product and disabling/uninstalling deactivates it. Example amandaodin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:2554
settingsSchema?object[]Description Settings schemaodin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:2549
slugstringDescription URL-friendly identifier Example profanity-filterodin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:2507
versionstringDescription Semantic version Example 1.0.0odin-transcription-service/packages/cortex-typescript-sdk/src/types.ts:2519

Defined in​

odin-transcription-service/packages/cortex-typescript-sdk/src/resources/plugins.ts:40


getMessageAnnotationsBatch()​

getMessageAnnotationsBatch(messageIds): Promise<Record<string, object[]>>

Batch retrieve annotations for multiple messages.

Only annotations of the caller's own tenant are returned. For a session of a project you were invited to, use Session.watchMessageAnnotations(), which goes through the project-scoped route.

Parameters​

ParameterTypeDescription
messageIdsstring[]Array of message IDs

Returns​

Promise<Record<string, object[]>>

Annotations grouped by message ID

Defined in​

odin-transcription-service/packages/cortex-typescript-sdk/src/resources/plugins.ts:72


getSessionAnnotations()​

getSessionAnnotations(sessionId): Promise<object[]>

Get annotations for a session

Parameters​

ParameterTypeDescription
sessionIdstringSession ID

Returns​

Promise<object[]>

Array of session annotations

Defined in​

odin-transcription-service/packages/cortex-typescript-sdk/src/resources/plugins.ts:53


list()​

list(): Promise<object[]>

List all available plugins in the catalog

Returns​

Promise<object[]>

Array of plugins

Defined in​

odin-transcription-service/packages/cortex-typescript-sdk/src/resources/plugins.ts:29