@babelforce/manager-sdk 0.17.0 → 0.38.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,137 @@
3
3
  All notable changes to `@babelforce/manager-sdk` are documented here. This project adheres to
4
4
  [Semantic Versioning](https://semver.org/).
5
5
 
6
+ ## 0.38.0
7
+
8
+ - **BREAKING:** Removed the `apiKey` auth mode (the `X-Auth-Access-Id` / `X-Auth-Access-Token`
9
+ header pair). The babelforce API no longer accepts those headers.
10
+ - Added a `clientCredentials` OAuth2 auth mode (`grant_type=client_credentials` against
11
+ `/oauth/token`, fetched lazily and refreshed transparently) as the server-to-server replacement.
12
+
13
+ ## 0.37.0
14
+
15
+ - Complete manager API parity (356/356 operations; 397/397 across all specs). Final operations:
16
+ `users.me`/`users.getByEmail`, `prompts.uses`, `metrics.definitions`, `babeldesk.widgetSettings`,
17
+ and `applications.allLocalAutomations`. Re-enabled the `full` coverage gate. (`getMe` is
18
+ deprecated upstream but wrapped for completeness.)
19
+
20
+ ## 0.36.0
21
+
22
+ - Add a new `system` resource for system/reference endpoints: `echo`, `ping`, `apiStatus`,
23
+ `serverTime`, `timezones`, `pushToken`, `tags`, `tagsByCategory`, `exportTemplates` — 9 new
24
+ operations.
25
+
26
+ ## 0.35.0
27
+
28
+ - Extend `integrations` with the action catalog and execution: `listActions`, `listActionParams`,
29
+ `executeAction`, and `dispatchActionGet` — 4 new operations.
30
+
31
+ ## 0.34.0
32
+
33
+ - Extend `queues` (`bulkUpdate`, `globalSelections`, `selections.setPriority`), `outbound`
34
+ (`getLead`, `listLeads`), `phonebook` (`bulkDelete`), and `numbers` (`update`) — 7 new
35
+ operations.
36
+
37
+ ## 0.33.0
38
+
39
+ - Extend `calls` (`cancel`, `listQueued`, `queueCallback`, and `reporting.inboundSimpleAll`) and
40
+ `logs` (`enableLive`, `disableLive`, `write`) — 7 new operations.
41
+
42
+ ## 0.32.0
43
+
44
+ - Extend `settings` with generic scope/key operations (`listAll`, `listInScope`, `clear`,
45
+ `clearInScope`, `clearAll`) and `applications` (`clone`, `bulkUpdate`, `listActions`,
46
+ `listErrors`) — 9 new operations.
47
+
48
+ ## 0.31.0
49
+
50
+ - Extend `conversations` (`addEvent`, `open`, `close`, `firstEvent`, `latestEvent`, `allEvents`)
51
+ and `sms` (`send`, `delete`, `report`, `testInbound`) — 10 new operations.
52
+
53
+ ## 0.30.0
54
+
55
+ - Extend `businesshours` (range `addRanges`/`listRanges`/`getRange`/`removeRange`,
56
+ `bulkUpdate`/`bulkDelete`) and `calendars` (individual-date `getDate`/`updateDate`/`removeDate`,
57
+ `testDate`, `bulkUpdate`/`bulkDelete`) — 12 new operations.
58
+
59
+ ## 0.29.0
60
+
61
+ - Extend `agents` with bulk actions (`bulkAction`), CSV `export`/`import`/`validateImport` +
62
+ `getImportJob`, per-agent and global activity `logs`/`allLogs`, `push`, `updatePassword`, and
63
+ group membership (`groups.removeAgent`, `groups.listAgents`, `groups.bulkDelete`) — 12 new
64
+ operations.
65
+
66
+ ## 0.28.0
67
+
68
+ - Extend `agents` with named presence CRUD (`presences`, `getPresence`, `createPresence`,
69
+ `updatePresence`, `deletePresence`), status reads (`getStatus`, `availableStatuses`), and
70
+ lifecycle controls (`enable`, `disable`, `hangupCall`) — 10 new operations.
71
+
72
+ ## 0.27.0
73
+
74
+ - Extend `triggers` (expression/operator catalogs, `conditions`/`setConditions`, `uses`,
75
+ `bulkAction`), `automations` (`clone`, `dispatch`, `bulkUpdate`/`bulkDelete` of event triggers),
76
+ and `queues` (`listTriggers`) — 11 new operations.
77
+
78
+ ## 0.26.0
79
+
80
+ - Extend `outbound` with outbound-list management (`getList`/`updateList`/`deleteList`),
81
+ lead/attempt browsing (`leads`/`processedLeads`/`attempts` + simple reporting),
82
+ `createAgentCall`, bulk lead deletion, and CSV lead uploads (11 new operations).
83
+
84
+ ## 0.25.0
85
+
86
+ - Extend `campaigns` with realtime `status`/`statistics`, `hopper`, `leads`/`processedLeads`,
87
+ `attempts`, lead-list assignment (`getList`/`setList`/`setListById`/`unsetList`), and
88
+ `logoutAllAgents` (11 new operations).
89
+
90
+ ## 0.24.0
91
+
92
+ - Extend `integrations` with the provider catalog, OAuth token management (`listTokens`,
93
+ `getToken`, `refreshToken`, `deleteToken`), `clone`, `authorize`, `integrate`, type actions
94
+ (`typeActions`, `dispatchTypeAction`), the API proxy (`apiProxyGet`/`apiProxyPost`), templates,
95
+ and bulk update/delete (16 new operations).
96
+
97
+ ## 0.23.0
98
+
99
+ - Add the `recordings` resource (v2 manager API): `list`/`listAll`, `start`, `get`, `update`,
100
+ `delete`, `bulkAction`, plus recording flags (`getFlag`, `flag`, `unflag`, `toggleFlag`).
101
+
102
+ ## 0.22.0
103
+
104
+ - Add the `dialer` resource (v2 manager API): `info`, `flush`, `simpleReporting` /
105
+ `simpleReportingAll` (auto-paginated dialer call report), plus a nested `dialer.behaviours`
106
+ sub-resource (CRUD).
107
+
108
+ ## 0.21.0
109
+
110
+ - Add the `files` resource (v2 manager API): `list`/`listAll` (auto-paginated), `listByType`,
111
+ `backups`, `recordings`, `prompts`, `get`, `delete`, `download`, `bulkDelete`, `bulkDownload`,
112
+ `bulkDownloadPost`.
113
+
114
+ ## 0.20.0
115
+
116
+ - Add the `dashboards` resource (v2 manager API): `list` / `listAll` (auto-paginated), `create`,
117
+ `get`, `update`, `delete`, plus dashboard-user access (`listUsers`, `addUser`, `removeUser`).
118
+
119
+ ## 0.19.0
120
+
121
+ - Add the `auth` resource — the **OAuth 2.0** endpoints (`/oauth/authorize`, `/oauth/token`,
122
+ `/oauth/revoke`): `mgr.auth.token`, `mgr.auth.revoke`, `mgr.auth.authorize`. These authenticate
123
+ via client credentials in the request, independent of the SDK's api-key/bearer auth.
124
+
125
+ ## 0.18.0
126
+
127
+ - **Refreshed the manager OpenAPI spec** (a large upstream expansion: 187 → 356 operations) and
128
+ **vendored the new `auth` (OAuth 2.0) spec**. The low-level generated clients now cover the new
129
+ surface; ergonomic facade methods for the new operations land in follow-up releases.
130
+ - **Breaking — removed operations no longer in the spec:** `conversations.getEvent`,
131
+ `calls.reporting.simpleByType` / `simpleAllByType`, `metrics.push`, `metrics.reset`.
132
+ - **Breaking — changed signatures:** `calendars.addDate(id, body)` now takes a `CalendarDateBody`
133
+ and returns `CalendarDateItemResponse`; `calendars.getDates` returns `CalendarDateListResponse`.
134
+ - Coverage is tracked against the new 397-operation scope; the SDK currently wraps ~56% while the
135
+ newly-added operations are wrapped over the coming releases.
136
+
6
137
  ## 0.17.0
7
138
 
8
139
  - Extend `tasks` with `tasks.metrics` (task journal, agent journal, agent interaction durations),
package/README.md CHANGED
@@ -22,7 +22,7 @@ ESM, ships with types. Node 18+ (for global `fetch`).
22
22
  import { ManagerClient } from "@babelforce/manager-sdk";
23
23
 
24
24
  const mgr = await ManagerClient.connect({
25
- auth: { kind: "apiKey", accessId, accessToken }, // or { kind: "password", user, pass }
25
+ auth: { kind: "clientCredentials", clientId, clientSecret }, // or { kind: "password", user, pass }
26
26
  // baseUrl defaults to https://services.babelforce.com
27
27
  });
28
28
 
@@ -37,7 +37,8 @@ await mgr.users.enable(["new.user@acme.com"]);
37
37
 
38
38
  ### Authentication
39
39
 
40
- - `{ kind: "apiKey", accessId, accessToken }` — sends `X-Auth-Access-Id` / `X-Auth-Access-Token`.
40
+ - `{ kind: "clientCredentials", clientId, clientSecret }` — recommended for server-to-server use;
41
+ OAuth2 client_credentials grant against `/oauth/token` with transparent refresh.
41
42
  - `{ kind: "bearer", token }` — a token you already hold.
42
43
  - `{ kind: "password", user, pass }` — OAuth2 password grant with transparent refresh.
43
44