@juspay/neurolink 12.41.9 → 12.42.0

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 (38) hide show
  1. package/CHANGELOG.md +3 -3
  2. package/README.md +2 -2
  3. package/dist/browser/neurolink.min.js +411 -411
  4. package/dist/constants/enums.d.ts +195 -0
  5. package/dist/constants/enums.js +214 -0
  6. package/dist/providers/catalog/arcee.json +212 -0
  7. package/dist/providers/catalog/baidu-qianfan.json +170 -0
  8. package/dist/providers/catalog/byteplus-modelark.json +246 -0
  9. package/dist/providers/catalog/bytez.json +87 -0
  10. package/dist/providers/catalog/dashscope.json +165 -0
  11. package/dist/providers/catalog/gradientai.json +238 -0
  12. package/dist/providers/catalog/hetzner-inference.json +83 -0
  13. package/dist/providers/catalog/inceptron.json +145 -0
  14. package/dist/providers/catalog/index.generated.d.ts +1 -1
  15. package/dist/providers/catalog/index.generated.js +57 -0
  16. package/dist/providers/catalog/lemonfox-ai.json +78 -0
  17. package/dist/providers/catalog/loader.js +3 -0
  18. package/dist/providers/catalog/meta-model-api.json +150 -0
  19. package/dist/providers/catalog/modelscope.json +146 -0
  20. package/dist/providers/catalog/parasail.json +251 -0
  21. package/dist/providers/catalog/poolside.json +79 -0
  22. package/dist/providers/catalog/provider-catalog.schema.json +5 -0
  23. package/dist/providers/catalog/reka.json +112 -0
  24. package/dist/providers/catalog/sakana-ai.json +162 -0
  25. package/dist/providers/catalog/schema.d.ts +1 -0
  26. package/dist/providers/catalog/schema.js +1 -0
  27. package/dist/providers/catalog/stackit.json +126 -0
  28. package/dist/providers/catalog/telnyx.json +181 -0
  29. package/dist/providers/catalog/thinking-machines.json +212 -0
  30. package/dist/providers/catalog/vispark.json +109 -0
  31. package/dist/providers/configuredOpenAICompat.d.ts +9 -0
  32. package/dist/providers/configuredOpenAICompat.js +14 -0
  33. package/dist/providers/openaiChatCompletionsBase.js +12 -3
  34. package/dist/types/providerCatalog.d.ts +9 -0
  35. package/dist/types/providerCatalog.generated.d.ts +2 -2
  36. package/dist/types/providers.d.ts +80 -0
  37. package/docs-site/static/search-index.json +211 -2
  38. package/package.json +2 -1
@@ -78,6 +78,15 @@ export type CatalogQuirks = {
78
78
  * without it once tools are in play). ConfiguredOpenAICompatProvider
79
79
  * turns on the replay; every other provider leaves the field off. */
80
80
  replayReasoningContent?: boolean;
81
+ /** Vendor's chat-completions endpoint authenticates with a vendor-specific
82
+ * header instead of the OpenAI-standard `Authorization: Bearer <key>`.
83
+ * "x-api-key": send `X-Api-Key: <key>` and omit Authorization entirely —
84
+ * Reka's OpenAPI spec declares this as its one security scheme (the
85
+ * OpenAI-SDK-style examples elsewhere in its docs pass the key through a
86
+ * client that still emits this header under the hood). Normalized by
87
+ * ConfiguredOpenAICompatProvider.getAuthHeaders(); omitted means the
88
+ * inherited Bearer default. */
89
+ authHeaderStyle?: "x-api-key";
81
90
  };
82
91
  export type CatalogBillingPolicy = "free-tier" | "free-with-card" | "no-free-tier";
83
92
  export type CatalogSetup = {
@@ -1,2 +1,2 @@
1
- export type CatalogProviderName = "above-dev" | "ai21" | "aiand" | "aionlabs" | "ambient" | "api-route" | "atlas-cloud" | "avian-io" | "baseten" | "bee-heossi" | "cerebras" | "charm-hyper" | "chutes" | "cloudflare" | "crusoe" | "deepinfra" | "deepseek" | "empiriolabs" | "featherless-ai" | "fireworks" | "friendli" | "gmicloud" | "groq" | "huggingface" | "inception-labs" | "inco" | "inference-net" | "io-intelligence" | "koscompute" | "lilac" | "llmtech" | "mancer" | "minimax" | "mistral" | "moark" | "moonshot-ai" | "morph" | "nebius" | "neuralwatt" | "novita" | "ovhcloud" | "pareto-inference" | "perplexity" | "prime-intellect" | "sambanova" | "sarvam" | "scaleway" | "siliconflow" | "stepfun" | "subconscious" | "synthetic" | "tinfoil" | "together-ai" | "umans-ai" | "upstage" | "venice-ai" | "vultr-inference" | "wafer" | "wandb-inference" | "xai" | "z-ai";
2
- export type CatalogCredentialKey = "aboveDev" | "ai21" | "aiand" | "aionlabs" | "ambient" | "apiRoute" | "atlasCloud" | "avianIo" | "baseten" | "beeHeossi" | "cerebras" | "charmHyper" | "chutes" | "cloudflare" | "crusoe" | "deepinfra" | "deepseek" | "empiriolabs" | "featherlessAi" | "fireworks" | "friendli" | "gmicloud" | "groq" | "huggingFace" | "inceptionLabs" | "inco" | "inferenceNet" | "ioIntelligence" | "koscompute" | "lilac" | "llmtech" | "mancer" | "minimax" | "mistral" | "moark" | "moonshotAi" | "morph" | "nebius" | "neuralwatt" | "novita" | "ovhcloud" | "paretoInference" | "perplexity" | "primeIntellect" | "sambanova" | "sarvam" | "scaleway" | "siliconflow" | "stepfun" | "subconscious" | "synthetic" | "tinfoil" | "together" | "umansAi" | "upstage" | "veniceAi" | "vultrInference" | "wafer" | "wandbInference" | "xai" | "zAi";
1
+ export type CatalogProviderName = "above-dev" | "ai21" | "aiand" | "aionlabs" | "ambient" | "api-route" | "arcee" | "atlas-cloud" | "avian-io" | "baidu-qianfan" | "baseten" | "bee-heossi" | "byteplus-modelark" | "bytez" | "cerebras" | "charm-hyper" | "chutes" | "cloudflare" | "crusoe" | "dashscope" | "deepinfra" | "deepseek" | "empiriolabs" | "featherless-ai" | "fireworks" | "friendli" | "gmicloud" | "gradientai" | "groq" | "hetzner-inference" | "huggingface" | "inception-labs" | "inceptron" | "inco" | "inference-net" | "io-intelligence" | "koscompute" | "lemonfox-ai" | "lilac" | "llmtech" | "mancer" | "meta-model-api" | "minimax" | "mistral" | "moark" | "modelscope" | "moonshot-ai" | "morph" | "nebius" | "neuralwatt" | "novita" | "ovhcloud" | "parasail" | "pareto-inference" | "perplexity" | "poolside" | "prime-intellect" | "reka" | "sakana-ai" | "sambanova" | "sarvam" | "scaleway" | "siliconflow" | "stackit" | "stepfun" | "subconscious" | "synthetic" | "telnyx" | "thinking-machines" | "tinfoil" | "together-ai" | "umans-ai" | "upstage" | "venice-ai" | "vispark" | "vultr-inference" | "wafer" | "wandb-inference" | "xai" | "z-ai";
2
+ export type CatalogCredentialKey = "aboveDev" | "ai21" | "aiand" | "aionlabs" | "ambient" | "apiRoute" | "arcee" | "atlasCloud" | "avianIo" | "baiduQianfan" | "baseten" | "beeHeossi" | "byteplusModelark" | "bytez" | "cerebras" | "charmHyper" | "chutes" | "cloudflare" | "crusoe" | "dashscope" | "deepinfra" | "deepseek" | "empiriolabs" | "featherlessAi" | "fireworks" | "friendli" | "gmicloud" | "gradientai" | "groq" | "hetznerInference" | "huggingFace" | "inceptionLabs" | "inceptron" | "inco" | "inferenceNet" | "ioIntelligence" | "koscompute" | "lemonfoxAi" | "lilac" | "llmtech" | "mancer" | "metaModelApi" | "minimax" | "mistral" | "moark" | "modelscope" | "moonshotAi" | "morph" | "nebius" | "neuralwatt" | "novita" | "ovhcloud" | "parasail" | "paretoInference" | "perplexity" | "poolside" | "primeIntellect" | "reka" | "sakanaAi" | "sambanova" | "sarvam" | "scaleway" | "siliconflow" | "stackit" | "stepfun" | "subconscious" | "synthetic" | "telnyx" | "thinkingMachines" | "tinfoil" | "together" | "umansAi" | "upstage" | "veniceAi" | "vispark" | "vultrInference" | "wafer" | "wandbInference" | "xai" | "zAi";
@@ -196,6 +196,10 @@ export type NeurolinkCredentials = {
196
196
  apiKey?: string;
197
197
  baseURL?: string;
198
198
  };
199
+ arcee?: {
200
+ apiKey?: string;
201
+ baseURL?: string;
202
+ };
199
203
  atlasCloud?: {
200
204
  apiKey?: string;
201
205
  baseURL?: string;
@@ -204,6 +208,10 @@ export type NeurolinkCredentials = {
204
208
  apiKey?: string;
205
209
  baseURL?: string;
206
210
  };
211
+ baiduQianfan?: {
212
+ apiKey?: string;
213
+ baseURL?: string;
214
+ };
207
215
  baseten?: {
208
216
  apiKey?: string;
209
217
  baseURL?: string;
@@ -212,6 +220,14 @@ export type NeurolinkCredentials = {
212
220
  apiKey?: string;
213
221
  baseURL?: string;
214
222
  };
223
+ byteplusModelark?: {
224
+ apiKey?: string;
225
+ baseURL?: string;
226
+ };
227
+ bytez?: {
228
+ apiKey?: string;
229
+ baseURL?: string;
230
+ };
215
231
  cerebras?: {
216
232
  apiKey?: string;
217
233
  baseURL?: string;
@@ -233,6 +249,10 @@ export type NeurolinkCredentials = {
233
249
  apiKey?: string;
234
250
  baseURL?: string;
235
251
  };
252
+ dashscope?: {
253
+ apiKey?: string;
254
+ baseURL?: string;
255
+ };
236
256
  deepinfra?: {
237
257
  apiKey?: string;
238
258
  baseURL?: string;
@@ -261,10 +281,18 @@ export type NeurolinkCredentials = {
261
281
  apiKey?: string;
262
282
  baseURL?: string;
263
283
  };
284
+ gradientai?: {
285
+ apiKey?: string;
286
+ baseURL?: string;
287
+ };
264
288
  groq?: {
265
289
  apiKey?: string;
266
290
  baseURL?: string;
267
291
  };
292
+ hetznerInference?: {
293
+ apiKey?: string;
294
+ baseURL?: string;
295
+ };
268
296
  huggingFace?: {
269
297
  apiKey?: string;
270
298
  baseURL?: string;
@@ -273,6 +301,10 @@ export type NeurolinkCredentials = {
273
301
  apiKey?: string;
274
302
  baseURL?: string;
275
303
  };
304
+ inceptron?: {
305
+ apiKey?: string;
306
+ baseURL?: string;
307
+ };
276
308
  inco?: {
277
309
  apiKey?: string;
278
310
  baseURL?: string;
@@ -289,6 +321,10 @@ export type NeurolinkCredentials = {
289
321
  apiKey?: string;
290
322
  baseURL?: string;
291
323
  };
324
+ lemonfoxAi?: {
325
+ apiKey?: string;
326
+ baseURL?: string;
327
+ };
292
328
  lilac?: {
293
329
  apiKey?: string;
294
330
  baseURL?: string;
@@ -301,6 +337,10 @@ export type NeurolinkCredentials = {
301
337
  apiKey?: string;
302
338
  baseURL?: string;
303
339
  };
340
+ metaModelApi?: {
341
+ apiKey?: string;
342
+ baseURL?: string;
343
+ };
304
344
  minimax?: {
305
345
  apiKey?: string;
306
346
  baseURL?: string;
@@ -313,6 +353,10 @@ export type NeurolinkCredentials = {
313
353
  apiKey?: string;
314
354
  baseURL?: string;
315
355
  };
356
+ modelscope?: {
357
+ apiKey?: string;
358
+ baseURL?: string;
359
+ };
316
360
  moonshotAi?: {
317
361
  apiKey?: string;
318
362
  baseURL?: string;
@@ -337,6 +381,10 @@ export type NeurolinkCredentials = {
337
381
  apiKey?: string;
338
382
  baseURL?: string;
339
383
  };
384
+ parasail?: {
385
+ apiKey?: string;
386
+ baseURL?: string;
387
+ };
340
388
  paretoInference?: {
341
389
  apiKey?: string;
342
390
  baseURL?: string;
@@ -345,10 +393,22 @@ export type NeurolinkCredentials = {
345
393
  apiKey?: string;
346
394
  baseURL?: string;
347
395
  };
396
+ poolside?: {
397
+ apiKey?: string;
398
+ baseURL?: string;
399
+ };
348
400
  primeIntellect?: {
349
401
  apiKey?: string;
350
402
  baseURL?: string;
351
403
  };
404
+ reka?: {
405
+ apiKey?: string;
406
+ baseURL?: string;
407
+ };
408
+ sakanaAi?: {
409
+ apiKey?: string;
410
+ baseURL?: string;
411
+ };
352
412
  sambanova?: {
353
413
  apiKey?: string;
354
414
  baseURL?: string;
@@ -365,6 +425,10 @@ export type NeurolinkCredentials = {
365
425
  apiKey?: string;
366
426
  baseURL?: string;
367
427
  };
428
+ stackit?: {
429
+ apiKey?: string;
430
+ baseURL?: string;
431
+ };
368
432
  stepfun?: {
369
433
  apiKey?: string;
370
434
  baseURL?: string;
@@ -377,6 +441,14 @@ export type NeurolinkCredentials = {
377
441
  apiKey?: string;
378
442
  baseURL?: string;
379
443
  };
444
+ telnyx?: {
445
+ apiKey?: string;
446
+ baseURL?: string;
447
+ };
448
+ thinkingMachines?: {
449
+ apiKey?: string;
450
+ baseURL?: string;
451
+ };
380
452
  tinfoil?: {
381
453
  apiKey?: string;
382
454
  baseURL?: string;
@@ -397,6 +469,10 @@ export type NeurolinkCredentials = {
397
469
  apiKey?: string;
398
470
  baseURL?: string;
399
471
  };
472
+ vispark?: {
473
+ apiKey?: string;
474
+ baseURL?: string;
475
+ };
400
476
  vultrInference?: {
401
477
  apiKey?: string;
402
478
  baseURL?: string;
@@ -991,6 +1067,10 @@ export type OpenAICompatCatalogEntry = {
991
1067
  /** See CatalogQuirks.replayReasoningContent — a vendor that wants each
992
1068
  * assistant turn's `reasoning_content` sent back on later requests. */
993
1069
  replayReasoningContent?: boolean;
1070
+ /** See CatalogQuirks.authHeaderStyle — a vendor whose chat-completions
1071
+ * endpoint authenticates via `X-Api-Key` instead of the inherited
1072
+ * `Authorization: Bearer` default. */
1073
+ authHeaderStyle?: "x-api-key";
994
1074
  };
995
1075
  /** The subset of OpenAICompatCatalogEntry that resolveOpenAICompatConfig()
996
1076
  * needs — lets call sites pass a minimal object without the full catalog