@jambonz/llm 0.6.13 → 0.6.15

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.cts CHANGED
@@ -54,6 +54,7 @@ declare function normalizeAuth(vendor: string, raw: RawCredential): AuthSpec;
54
54
  * - Vendor with a single `authKind`: that kind is returned unconditionally.
55
55
  * - Bedrock: `access_key_id` + `secret_access_key` → `bedrockIam`; else `bedrockApiKey`.
56
56
  * - Google: `service_key` present → `googleServiceAccount`; `api_key` present → `googleApiKey`.
57
+ * - google_s2s: `service_key` present → `vertexServiceAccount`; `api_key` present → `googleApiKey`.
57
58
  *
58
59
  * Throws if the vendor is unknown or if no declared authKind matches the blob.
59
60
  */
package/dist/index.d.ts CHANGED
@@ -54,6 +54,7 @@ declare function normalizeAuth(vendor: string, raw: RawCredential): AuthSpec;
54
54
  * - Vendor with a single `authKind`: that kind is returned unconditionally.
55
55
  * - Bedrock: `access_key_id` + `secret_access_key` → `bedrockIam`; else `bedrockApiKey`.
56
56
  * - Google: `service_key` present → `googleServiceAccount`; `api_key` present → `googleApiKey`.
57
+ * - google_s2s: `service_key` present → `vertexServiceAccount`; `api_key` present → `googleApiKey`.
57
58
  *
58
59
  * Throws if the vendor is unknown or if no declared authKind matches the blob.
59
60
  */
package/dist/index.js CHANGED
@@ -4032,6 +4032,303 @@ var ultravoxS2sManifest = {
4032
4032
  category: "s2s"
4033
4033
  };
4034
4034
 
4035
+ // src/vendors/deepgram-s2s.ts
4036
+ var deepgramS2sManifest = {
4037
+ vendor: "deepgram_s2s",
4038
+ displayName: "Deepgram Voice Agent",
4039
+ authKinds: [
4040
+ {
4041
+ kind: "apiKey",
4042
+ displayName: "API Key",
4043
+ fields: [
4044
+ {
4045
+ name: "apiKey",
4046
+ label: "API Key",
4047
+ type: "password",
4048
+ required: true,
4049
+ help: "A Deepgram API key (Deepgram console: API Keys)."
4050
+ }
4051
+ ]
4052
+ }
4053
+ ],
4054
+ knownModels: [],
4055
+ supportsModelListing: false,
4056
+ docsUrl: "https://developers.deepgram.com/docs/voice-agent",
4057
+ credentialOnly: true,
4058
+ category: "s2s"
4059
+ };
4060
+
4061
+ // src/vendors/elevenlabs-s2s.ts
4062
+ var elevenlabsS2sManifest = {
4063
+ vendor: "elevenlabs_s2s",
4064
+ displayName: "ElevenLabs Agents",
4065
+ authKinds: [
4066
+ {
4067
+ kind: "apiKey",
4068
+ displayName: "API Key",
4069
+ fields: [
4070
+ {
4071
+ name: "apiKey",
4072
+ label: "API Key",
4073
+ type: "password",
4074
+ required: true,
4075
+ help: "An ElevenLabs API key (ElevenLabs: Developers, API keys)."
4076
+ }
4077
+ ]
4078
+ }
4079
+ ],
4080
+ knownModels: [],
4081
+ supportsModelListing: false,
4082
+ docsUrl: "https://elevenlabs.io/docs/agents-platform/overview",
4083
+ credentialOnly: true,
4084
+ category: "s2s"
4085
+ };
4086
+
4087
+ // src/vendors/google-s2s.ts
4088
+ var googleS2sManifest = {
4089
+ vendor: "google_s2s",
4090
+ displayName: "Google Gemini Live",
4091
+ authKinds: [
4092
+ {
4093
+ kind: "googleApiKey",
4094
+ displayName: "API Key (Gemini Developer API)",
4095
+ fields: [
4096
+ {
4097
+ name: "apiKey",
4098
+ label: "API Key",
4099
+ type: "password",
4100
+ required: true,
4101
+ help: "A Gemini API key from https://aistudio.google.com/apikey"
4102
+ }
4103
+ ]
4104
+ },
4105
+ {
4106
+ kind: "vertexServiceAccount",
4107
+ displayName: "Service Account JSON (Vertex AI)",
4108
+ fields: [
4109
+ {
4110
+ name: "credentials",
4111
+ label: "Service Account Key (JSON)",
4112
+ type: "json-file",
4113
+ required: true,
4114
+ help: "The key of a service account with the Vertex AI User role in the project."
4115
+ },
4116
+ {
4117
+ name: "projectId",
4118
+ label: "Project ID",
4119
+ type: "text",
4120
+ required: false,
4121
+ help: "The Google Cloud project to run in. Empty: the service account's own project."
4122
+ },
4123
+ {
4124
+ name: "location",
4125
+ label: "Region",
4126
+ type: "text",
4127
+ required: true,
4128
+ default: "us-central1",
4129
+ help: "A Vertex AI region that serves the Gemini Live API, e.g. us-central1."
4130
+ }
4131
+ ]
4132
+ }
4133
+ ],
4134
+ knownModels: [],
4135
+ supportsModelListing: false,
4136
+ docsUrl: "https://ai.google.dev/gemini-api/docs/live",
4137
+ credentialOnly: true,
4138
+ category: "s2s"
4139
+ };
4140
+
4141
+ // src/vendors/xai-s2s.ts
4142
+ var xaiS2sManifest = {
4143
+ vendor: "xai_s2s",
4144
+ displayName: "xAI Grok Voice",
4145
+ authKinds: [
4146
+ {
4147
+ kind: "apiKey",
4148
+ displayName: "API Key",
4149
+ fields: [
4150
+ {
4151
+ name: "apiKey",
4152
+ label: "API Key",
4153
+ type: "password",
4154
+ required: true,
4155
+ help: "An xAI API key (console.x.ai: API Keys)."
4156
+ }
4157
+ ]
4158
+ }
4159
+ ],
4160
+ knownModels: [],
4161
+ supportsModelListing: false,
4162
+ docsUrl: "https://docs.x.ai/docs/guides/voice/agent",
4163
+ credentialOnly: true,
4164
+ category: "s2s"
4165
+ };
4166
+
4167
+ // src/vendors/qwen-s2s.ts
4168
+ var qwenS2sManifest = {
4169
+ vendor: "qwen_s2s",
4170
+ displayName: "Qwen Omni Realtime",
4171
+ authKinds: [
4172
+ {
4173
+ kind: "apiKey",
4174
+ displayName: "API Key",
4175
+ fields: [
4176
+ {
4177
+ name: "apiKey",
4178
+ label: "API Key",
4179
+ type: "password",
4180
+ required: true,
4181
+ help: "A Model Studio (DashScope) API key."
4182
+ },
4183
+ {
4184
+ name: "host",
4185
+ label: "Workspace host",
4186
+ type: "text",
4187
+ required: true,
4188
+ help: "The realtime host of the workspace the key belongs to, e.g. ws-xxxx.ap-southeast-1.maas.aliyuncs.com, or dashscope-intl.aliyuncs.com for the international default. A full URL is accepted; only the host is used."
4189
+ }
4190
+ ]
4191
+ }
4192
+ ],
4193
+ knownModels: [],
4194
+ supportsModelListing: false,
4195
+ docsUrl: "https://www.alibabacloud.com/help/en/model-studio/realtime",
4196
+ credentialOnly: true,
4197
+ category: "s2s"
4198
+ };
4199
+
4200
+ // src/vendors/assemblyai-s2s.ts
4201
+ var assemblyaiS2sManifest = {
4202
+ vendor: "assemblyai_s2s",
4203
+ displayName: "AssemblyAI Voice Agent",
4204
+ authKinds: [
4205
+ {
4206
+ kind: "apiKey",
4207
+ displayName: "API Key",
4208
+ fields: [
4209
+ {
4210
+ name: "apiKey",
4211
+ label: "API Key",
4212
+ type: "password",
4213
+ required: true,
4214
+ help: "An AssemblyAI API key (assemblyai.com dashboard: API Keys)."
4215
+ }
4216
+ ]
4217
+ }
4218
+ ],
4219
+ knownModels: [],
4220
+ supportsModelListing: false,
4221
+ docsUrl: "https://www.assemblyai.com/docs",
4222
+ credentialOnly: true,
4223
+ category: "s2s"
4224
+ };
4225
+
4226
+ // src/vendors/voicelive-s2s.ts
4227
+ var voiceliveS2sManifest = {
4228
+ vendor: "voicelive_s2s",
4229
+ displayName: "Azure Voice Live",
4230
+ authKinds: [
4231
+ {
4232
+ kind: "apiKey",
4233
+ displayName: "API Key",
4234
+ fields: [
4235
+ {
4236
+ name: "apiKey",
4237
+ label: "API Key",
4238
+ type: "password",
4239
+ required: true,
4240
+ help: "A key of the Azure AI Foundry (AI Services) resource: Keys and Endpoint."
4241
+ },
4242
+ {
4243
+ name: "host",
4244
+ label: "Resource host",
4245
+ type: "text",
4246
+ required: true,
4247
+ help: "The resource host, e.g. my-resource.services.ai.azure.com. A full endpoint URL is accepted; only the host is used."
4248
+ }
4249
+ ]
4250
+ }
4251
+ ],
4252
+ knownModels: [],
4253
+ supportsModelListing: false,
4254
+ docsUrl: "https://learn.microsoft.com/azure/ai-services/speech-service/voice-live",
4255
+ credentialOnly: true,
4256
+ category: "s2s"
4257
+ };
4258
+
4259
+ // src/vendors/azure-openai-s2s.ts
4260
+ var azureOpenaiS2sManifest = {
4261
+ vendor: "azure_openai_s2s",
4262
+ displayName: "Azure OpenAI Realtime",
4263
+ authKinds: [
4264
+ {
4265
+ kind: "apiKey",
4266
+ displayName: "API Key",
4267
+ fields: [
4268
+ {
4269
+ name: "apiKey",
4270
+ label: "API Key",
4271
+ type: "password",
4272
+ required: true,
4273
+ help: "A key of the Azure OpenAI resource: Keys and Endpoint."
4274
+ },
4275
+ {
4276
+ name: "host",
4277
+ label: "Resource host",
4278
+ type: "text",
4279
+ required: true,
4280
+ help: "The resource host, e.g. my-resource.openai.azure.com. A full endpoint URL is accepted; only the host is used."
4281
+ }
4282
+ ]
4283
+ }
4284
+ ],
4285
+ knownModels: [],
4286
+ supportsModelListing: false,
4287
+ docsUrl: "https://learn.microsoft.com/azure/ai-foundry/openai/how-to/realtime-audio-websockets",
4288
+ credentialOnly: true,
4289
+ category: "s2s"
4290
+ };
4291
+
4292
+ // src/vendors/nova-s2s.ts
4293
+ var novaS2sManifest = {
4294
+ vendor: "nova_s2s",
4295
+ displayName: "Amazon Nova Sonic",
4296
+ authKinds: [
4297
+ {
4298
+ kind: "bedrockIam",
4299
+ displayName: "IAM Credentials",
4300
+ fields: [
4301
+ {
4302
+ name: "accessKeyId",
4303
+ label: "Access Key ID",
4304
+ type: "text",
4305
+ required: true,
4306
+ help: "An IAM user access key allowed bedrock:InvokeModelWithBidirectionalStream on the Nova Sonic model."
4307
+ },
4308
+ {
4309
+ name: "secretAccessKey",
4310
+ label: "Secret Access Key",
4311
+ type: "password",
4312
+ required: true
4313
+ },
4314
+ {
4315
+ name: "region",
4316
+ label: "Region",
4317
+ type: "text",
4318
+ required: true,
4319
+ default: "us-east-1",
4320
+ help: "A Bedrock region where Nova Sonic is enabled for the account, e.g. us-east-1."
4321
+ }
4322
+ ]
4323
+ }
4324
+ ],
4325
+ knownModels: [],
4326
+ supportsModelListing: false,
4327
+ docsUrl: "https://docs.aws.amazon.com/nova/latest/userguide/speech.html",
4328
+ credentialOnly: true,
4329
+ category: "s2s"
4330
+ };
4331
+
4035
4332
  // src/adapters/index.ts
4036
4333
  registerAdapter(openAIFactory);
4037
4334
  registerAdapter(deepseekFactory);
@@ -4054,6 +4351,15 @@ registerCredentialVendor(openaiS2sManifest);
4054
4351
  registerCredentialVendor(rimeS2sManifest);
4055
4352
  registerCredentialVendor(gptliveS2sManifest);
4056
4353
  registerCredentialVendor(ultravoxS2sManifest);
4354
+ registerCredentialVendor(deepgramS2sManifest);
4355
+ registerCredentialVendor(elevenlabsS2sManifest);
4356
+ registerCredentialVendor(googleS2sManifest);
4357
+ registerCredentialVendor(xaiS2sManifest);
4358
+ registerCredentialVendor(qwenS2sManifest);
4359
+ registerCredentialVendor(assemblyaiS2sManifest);
4360
+ registerCredentialVendor(voiceliveS2sManifest);
4361
+ registerCredentialVendor(azureOpenaiS2sManifest);
4362
+ registerCredentialVendor(novaS2sManifest);
4057
4363
  registerCredentialVendor(dialogflowCesManifest);
4058
4364
 
4059
4365
  // src/normalize-auth.ts
@@ -4237,6 +4543,15 @@ function pickAuthKind(vendor, raw) {
4237
4543
  `pickAuthKind: google credential missing both 'api_key' and 'service_key'`
4238
4544
  );
4239
4545
  }
4546
+ case "google_s2s": {
4547
+ const svc = authKinds.find((k) => k.kind === "vertexServiceAccount");
4548
+ const apiKey = authKinds.find((k) => k.kind === "googleApiKey");
4549
+ if (raw.service_key && svc) return svc;
4550
+ if (raw.api_key && apiKey) return apiKey;
4551
+ throw new Error(
4552
+ `pickAuthKind: google_s2s credential missing both 'api_key' and 'service_key'`
4553
+ );
4554
+ }
4240
4555
  default:
4241
4556
  throw new Error(
4242
4557
  `pickAuthKind: vendor '${vendor}' declares ${authKinds.length} authKinds but has no discriminator rule. Add one in src/pick-auth-kind.ts.`