@smartytalent/openai-tools 0.9.47 → 0.9.48

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 (2) hide show
  1. package/dist/tools.json +70 -6
  2. package/package.json +1 -1
package/dist/tools.json CHANGED
@@ -21107,21 +21107,19 @@
21107
21107
  "mode": {
21108
21108
  "type": "string",
21109
21109
  "enum": [
21110
- "assistant",
21111
- "assistant-openai",
21112
21110
  "transcription",
21111
+ "translator",
21113
21112
  "translator-openai"
21114
21113
  ],
21115
- "default": "assistant",
21116
- "description": "Picks the provider + session.type baked into the ephemeral\ntoken.\n'assistant' = Azure eu00, sm-gpt-realtime-2.1,\n session.type=realtime (browser-side Boe).\n'assistant-openai' = OpenAI direct, gpt-realtime-2.1,\n session.type=realtime. Redundant with 'assistant' now that\n Azure eu00 hosts realtime-2 too; kept as a one-release\n safety valve while the Azure preview deployment soaks.\n'transcription' = Azure eu01, sm-gpt-realtime-whisper,\n session.type=transcription (live captions, audio-in /\n text-out only).\n'translator-openai' = OpenAI direct, gpt-realtime-translate,\n session.type=translation (audio-in, translated audio +\n source-language transcript fanned out on data channel).\n Requires targetLanguage."
21114
+ "description": "Required. Picks the provider + session.type baked into the\nephemeral token. A missing or retired value ('assistant',\n'assistant-openai' - the browser-side assistant was retired\n2026-10-05) answers 400 SM_ERROR_AI_SESSION_MODE before any\nChime attendee is created.\n'transcription' = Azure eu00, sm-gpt-live-transcribe,\n session.type=transcription (live captions, audio-in /\n text-out only). The transcriber segments on its own\n (server_vad) and is pinned to the MEETING's language\n (meeting.defaultLocale), never the UI's. The SDP exchange\n goes to realtimeSession.webrtcUrl (.../openai/v1/realtime/calls).\n'translator' = Azure eu00, sm-gpt-realtime-translate,\n session.type=translation (audio-in, translated audio +\n source-language transcript fanned out on the data channel).\n Requires targetLanguage. The SDP exchange goes to\n realtimeSession.webrtcUrl (.../openai/v1/realtime/translations/calls),\n realtimeSession.deployment names the Azure deployment.\n'translator-openai' = the same on OpenAI direct\n (gpt-realtime-translate); retired once the meet app mints\n 'translator'."
21117
21115
  },
21118
21116
  "language": {
21119
21117
  "type": "string",
21120
- "description": "Reply language for Boe's assistant behaviour (e.g. English). Only applies when mode=assistant."
21118
+ "description": "The captions' spoken language when the room picks one (mode=transcription): a platform language as a tag or a bare language ('en-US', 'pl'); the session takes the primary subtag. Omitted = the meeting's own language (meeting.defaultLocale). A language outside the platform answers 400 SM_ERROR_AI_SESSION_LANGUAGE. Ignored by the translator modes."
21121
21119
  },
21122
21120
  "targetLanguage": {
21123
21121
  "type": "string",
21124
- "description": "BCP-47 code for the language the translator should produce (e.g. 'pl', 'es', 'en'). Required when mode=translator-openai; ignored otherwise. Defaults to 'en' if omitted."
21122
+ "description": "The language the translator should produce, a BCP-47 tag or a bare language ('en-US', 'pl'); the session takes the primary subtag ('en'). Required when mode=translator / translator-openai; ignored otherwise. Defaults to 'en' if omitted."
21125
21123
  }
21126
21124
  }
21127
21125
  }
@@ -21142,6 +21140,72 @@
21142
21140
  }
21143
21141
  }
21144
21142
  },
21143
+ {
21144
+ "type": "function",
21145
+ "function": {
21146
+ "name": "create_meeting_caption_translation",
21147
+ "description": "Create Meeting Caption Translation",
21148
+ "parameters": {
21149
+ "title": "CreateMeetingCaptionTranslationRequestBody",
21150
+ "type": "object",
21151
+ "required": [
21152
+ "data"
21153
+ ],
21154
+ "properties": {
21155
+ "data": {
21156
+ "title": "CreateMeetingCaptionTranslationRequestBodyData",
21157
+ "type": "object",
21158
+ "required": [
21159
+ "type",
21160
+ "attributes"
21161
+ ],
21162
+ "properties": {
21163
+ "type": {
21164
+ "type": "string",
21165
+ "enum": [
21166
+ "caption-translations"
21167
+ ]
21168
+ },
21169
+ "attributes": {
21170
+ "title": "MeetingCaptionTranslationSettingsSchema",
21171
+ "type": "object",
21172
+ "required": [
21173
+ "text",
21174
+ "target"
21175
+ ],
21176
+ "properties": {
21177
+ "text": {
21178
+ "type": "string",
21179
+ "maxLength": 500,
21180
+ "description": "One completed caption line (1 to 500 characters)."
21181
+ },
21182
+ "target": {
21183
+ "type": "string",
21184
+ "description": "The language the reader wants: a platform language as a tag or a bare language ('en-US', 'pl'). Outside the platform: 400 SM_ERROR_CAPTION_TRANSLATION."
21185
+ },
21186
+ "source": {
21187
+ "type": "string",
21188
+ "description": "Optional hint: the meeting's language (a tag or a bare language). The line may still be in another language; the model reads the line."
21189
+ }
21190
+ }
21191
+ }
21192
+ }
21193
+ }
21194
+ }
21195
+ }
21196
+ }
21197
+ },
21198
+ {
21199
+ "type": "function",
21200
+ "function": {
21201
+ "name": "meeting_caption_translation_options",
21202
+ "description": "Meeting Caption Translation Options",
21203
+ "parameters": {
21204
+ "type": "object",
21205
+ "properties": {}
21206
+ }
21207
+ }
21208
+ },
21145
21209
  {
21146
21210
  "type": "function",
21147
21211
  "function": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartytalent/openai-tools",
3
- "version": "0.9.47",
3
+ "version": "0.9.48",
4
4
  "description": "OpenAI function/tool definitions for SmartyTalent API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",