@intelligence-cloud/sdk 0.1.0 → 0.1.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.1 (2026-11-29)
4
+
5
+ - Insights Hub "monitor all numbers" is never switched on. `provisionSeatCustomer` used to set `monitor_all_numbers` to true; it now leaves it off and switches it off where an earlier run switched it on. Insights Hub covers the lines listed for the location, which `addFrontlineUser` already adds. Re-run `provisionSeatCustomer` for customers set up with 0.1.0.
6
+
3
7
  ## 0.1.0: 2026-11-18 (Base Intelligence Seat manager lines)
4
8
 
5
9
  - On the Base Intelligence Seat a manager's own phone line is not captured. `addManager(customer, user, { activateAlerts? })` no longer takes `ownExtension` or a string third argument (a string, or any option other than `activateAlerts`, now throws `FilterError` before any write): a manager is mapped to exactly the end-user lines at the location, and their own extension is never mapped, nor added to First Alert or Insights Hub. `AddManagerOptions` has `activateAlerts` only.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Intelligence Cloud SDK for TypeScript
2
2
 
3
- `@intelligence-cloud/sdk` 0.1.0. The partner API for Node.js 20+ and Next.js server code (route handlers, server actions).
3
+ `@intelligence-cloud/sdk` 0.1.1. The partner API for Node.js 20+ and Next.js server code (route handlers, server actions).
4
4
 
5
5
  - **Customer lifecycle** (admin credentials): companies, locations, users, products, connectors, First Alert rules, Insights Hub, plus the Base Intelligence Seat workflows.
6
6
  - **Conversation intelligence** (frontline credentials): calls, transcripts, recording links, alerts, tasks, insights, and the After Call webhook.
@@ -17,11 +17,11 @@ npm install @intelligence-cloud/sdk
17
17
 
18
18
  The package holds only the compiled SDK and pulls in no dependencies.
19
19
 
20
- Alternative, from the source download: it includes a packed build, `intelligence-cloud-sdk-0.1.0.tgz`.
20
+ Alternative, from the source download: it includes a packed build, `intelligence-cloud-sdk-0.1.1.tgz`.
21
21
 
22
22
  ```bash
23
23
  unzip typescript.zip -d vendor-src # creates vendor-src/typescript
24
- npm install ./vendor-src/typescript/intelligence-cloud-sdk-0.1.0.tgz # from your project
24
+ npm install ./vendor-src/typescript/intelligence-cloud-sdk-0.1.1.tgz # from your project
25
25
  ```
26
26
 
27
27
  ```ts
package/dist/index.cjs CHANGED
@@ -375,7 +375,7 @@ var FileTokenStore = class {
375
375
 
376
376
  // src/core.ts
377
377
  var DEFAULT_BASE_URL = "https://app.intelligence.cloud/api/v1";
378
- var SDK_VERSION = "0.1.0";
378
+ var SDK_VERSION = "0.1.1";
379
379
  var SUPPRESS_ERROR_TEXT = /* @__PURE__ */ new Set(["testConnector", "testAfterCallWebhook", "testFirstAlertWebhook"]);
380
380
  var NUMBER_MAPPING_OPS = /* @__PURE__ */ new Set(["setUserNumberMappings", "updateUserAfterCallSettings"]);
381
381
  var LOGIN_RATE_LIMIT_WAIT_S = 60;
@@ -1785,8 +1785,8 @@ var Workflows = class {
1785
1785
  const setup = (await c.insightsHub.getInsightsHubSetup(locationId)).data?.attributes;
1786
1786
  if (!(setup?.group_access ?? []).includes(ihAccess)) await c.insightsHub.addGroups(locationId, [ihAccess]);
1787
1787
  const cfg = (await c.insightsHub.getInsightsHubConfig(locationId)).data?.attributes;
1788
- if (cfg?.monitor_all_numbers !== true) {
1789
- await c.insightsHub.updateInsightsHubConfig(locationId, { monitor_all_numbers: true });
1788
+ if (cfg?.monitor_all_numbers === true) {
1789
+ await c.insightsHub.updateInsightsHubConfig(locationId, { monitor_all_numbers: false });
1790
1790
  }
1791
1791
  });
1792
1792
  let connectorId = null;
package/dist/index.d.cts CHANGED
@@ -11010,7 +11010,7 @@ declare class FileTokenStore implements TokenStore {
11010
11010
  }
11011
11011
 
11012
11012
  declare const DEFAULT_BASE_URL = "https://app.intelligence.cloud/api/v1";
11013
- declare const SDK_VERSION = "0.1.0";
11013
+ declare const SDK_VERSION = "0.1.1";
11014
11014
  type Camel<S extends string> = S extends `${infer A}_${infer B}` ? `${A}${Capitalize<Camel<B>>}` : S;
11015
11015
  type Loose<V> = V extends string ? V | Date : V;
11016
11016
  type LooseKeys<T> = {
@@ -11094,7 +11094,7 @@ interface ClientOptions {
11094
11094
  * alerts, tasks, insights) are always reduced to the documented fields.
11095
11095
  */
11096
11096
  keepUnknownFields?: boolean;
11097
- /** Sent as `User-Agent`. Default `intelligence-cloud-sdk-typescript/0.1.0`. */
11097
+ /** Sent as `User-Agent`. Default `intelligence-cloud-sdk-typescript/0.1.1`. */
11098
11098
  userAgent?: string;
11099
11099
  /** A `fetch` implementation. Default: the global `fetch` (Node 20+, Next.js). Keep certificate verification on in any client you pass. */
11100
11100
  fetch?: typeof fetch;
package/dist/index.d.ts CHANGED
@@ -11010,7 +11010,7 @@ declare class FileTokenStore implements TokenStore {
11010
11010
  }
11011
11011
 
11012
11012
  declare const DEFAULT_BASE_URL = "https://app.intelligence.cloud/api/v1";
11013
- declare const SDK_VERSION = "0.1.0";
11013
+ declare const SDK_VERSION = "0.1.1";
11014
11014
  type Camel<S extends string> = S extends `${infer A}_${infer B}` ? `${A}${Capitalize<Camel<B>>}` : S;
11015
11015
  type Loose<V> = V extends string ? V | Date : V;
11016
11016
  type LooseKeys<T> = {
@@ -11094,7 +11094,7 @@ interface ClientOptions {
11094
11094
  * alerts, tasks, insights) are always reduced to the documented fields.
11095
11095
  */
11096
11096
  keepUnknownFields?: boolean;
11097
- /** Sent as `User-Agent`. Default `intelligence-cloud-sdk-typescript/0.1.0`. */
11097
+ /** Sent as `User-Agent`. Default `intelligence-cloud-sdk-typescript/0.1.1`. */
11098
11098
  userAgent?: string;
11099
11099
  /** A `fetch` implementation. Default: the global `fetch` (Node 20+, Next.js). Keep certificate verification on in any client you pass. */
11100
11100
  fetch?: typeof fetch;
package/dist/index.js CHANGED
@@ -373,7 +373,7 @@ var FileTokenStore = class {
373
373
 
374
374
  // src/core.ts
375
375
  var DEFAULT_BASE_URL = "https://app.intelligence.cloud/api/v1";
376
- var SDK_VERSION = "0.1.0";
376
+ var SDK_VERSION = "0.1.1";
377
377
  var SUPPRESS_ERROR_TEXT = /* @__PURE__ */ new Set(["testConnector", "testAfterCallWebhook", "testFirstAlertWebhook"]);
378
378
  var NUMBER_MAPPING_OPS = /* @__PURE__ */ new Set(["setUserNumberMappings", "updateUserAfterCallSettings"]);
379
379
  var LOGIN_RATE_LIMIT_WAIT_S = 60;
@@ -1783,8 +1783,8 @@ var Workflows = class {
1783
1783
  const setup = (await c.insightsHub.getInsightsHubSetup(locationId)).data?.attributes;
1784
1784
  if (!(setup?.group_access ?? []).includes(ihAccess)) await c.insightsHub.addGroups(locationId, [ihAccess]);
1785
1785
  const cfg = (await c.insightsHub.getInsightsHubConfig(locationId)).data?.attributes;
1786
- if (cfg?.monitor_all_numbers !== true) {
1787
- await c.insightsHub.updateInsightsHubConfig(locationId, { monitor_all_numbers: true });
1786
+ if (cfg?.monitor_all_numbers === true) {
1787
+ await c.insightsHub.updateInsightsHubConfig(locationId, { monitor_all_numbers: false });
1788
1788
  }
1789
1789
  });
1790
1790
  let connectorId = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intelligence-cloud/sdk",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "TypeScript SDK for the Intelligence Cloud partner API: customer lifecycle and conversation intelligence.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "homepage": "https://docs.intelligence.cloud",