@unboundcx/sdk 4.13.96 → 4.13.97

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unboundcx/sdk",
3
- "version": "4.13.96",
3
+ "version": "4.13.97",
4
4
  "description": "Official JavaScript SDK for the Unbound API - A comprehensive toolkit for integrating with Unbound's communication, AI, and data management services",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -0,0 +1,18 @@
1
+ import { internalRequest } from '../../base.js';
2
+
3
+ /**
4
+ * Platform model catalog — product names only (no vendor provider/model).
5
+ */
6
+ export class ModelsService {
7
+ constructor(sdk) {
8
+ this.sdk = sdk;
9
+ }
10
+
11
+ /**
12
+ * List platform models available to this account.
13
+ * @returns {Promise<Object>} { models, features, recommended }
14
+ */
15
+ async list() {
16
+ return internalRequest(this.sdk, '/ai/models', 'GET');
17
+ }
18
+ }
package/services/ai.js CHANGED
@@ -4,6 +4,7 @@ import { BattleCardsService } from './ai/battleCards.js';
4
4
  import { AssistService } from './ai/assist.js';
5
5
  import { VocabularyService } from './ai/vocabulary.js';
6
6
  import { EmailService } from './ai/email.js';
7
+ import { ModelsService } from './ai/models.js';
7
8
  import { translate as translateItems } from './ai/translate.js';
8
9
  import {
9
10
  getSettings as getAiSettings,
@@ -22,6 +23,7 @@ export class AIService {
22
23
  this.assist = new AssistService(sdk);
23
24
  this.vocabulary = new VocabularyService(sdk);
24
25
  this.email = new EmailService(sdk);
26
+ this.models = new ModelsService(sdk);
25
27
  }
26
28
 
27
29
  /**
@@ -30,6 +30,7 @@ export class CcBotsService {
30
30
  * @param {string} params.name
31
31
  * @param {string} params.slug
32
32
  * @param {string} [params.soulMd]
33
+ * @param {string} [params.modelId] platform catalog id
33
34
  * @param {string} [params.provider]
34
35
  * @param {string} [params.model]
35
36
  * @param {string} [params.queueId]
@@ -40,6 +41,7 @@ export class CcBotsService {
40
41
  name,
41
42
  slug,
42
43
  soulMd,
44
+ modelId,
43
45
  provider,
44
46
  model,
45
47
  queueId,
@@ -54,6 +56,7 @@ export class CcBotsService {
54
56
  );
55
57
  const body = { name, slug };
56
58
  if (soulMd !== undefined) body.soulMd = soulMd;
59
+ if (modelId !== undefined) body.modelId = modelId;
57
60
  if (provider !== undefined) body.provider = provider;
58
61
  if (model !== undefined) body.model = model;
59
62
  if (queueId !== undefined) body.queueId = queueId;
@@ -86,6 +89,7 @@ export class CcBotsService {
86
89
  'additionalDetails',
87
90
  'provider',
88
91
  'model',
92
+ 'modelId',
89
93
  'mediaProvider',
90
94
  'mediaModel',
91
95
  'voiceId',
@@ -187,6 +191,7 @@ export class CcBotsService {
187
191
  'soulMd',
188
192
  'provider',
189
193
  'model',
194
+ 'modelId',
190
195
  'mediaProvider',
191
196
  'mediaModel',
192
197
  'voiceId',