@roarkanalytics/sdk 0.254.0 → 0.256.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
@@ -1,5 +1,28 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.256.0 (2025-04-11)
4
+
5
+ Full Changelog: [v0.255.0...v0.256.0](https://github.com/roarkhq/sdk-roark-analytics-node/compare/v0.255.0...v0.256.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([1417c13](https://github.com/roarkhq/sdk-roark-analytics-node/commit/1417c1302e856263e0f976afa5e62b19356d7403))
10
+
11
+ ## 0.255.0 (2025-04-10)
12
+
13
+ Full Changelog: [v0.254.0...v0.255.0](https://github.com/roarkhq/sdk-roark-analytics-node/compare/v0.254.0...v0.255.0)
14
+
15
+ ### Features
16
+
17
+ * **api:** api update ([bf109f0](https://github.com/roarkhq/sdk-roark-analytics-node/commit/bf109f085a9355d0b135359d0ecff1e020f64f3a))
18
+
19
+
20
+ ### Chores
21
+
22
+ * **internal:** reduce CI branch coverage ([8a0605c](https://github.com/roarkhq/sdk-roark-analytics-node/commit/8a0605cb0e3dbc26f2311e585fb6c79c11ca8800))
23
+ * **internal:** upload builds and expand CI branch coverage ([e024e59](https://github.com/roarkhq/sdk-roark-analytics-node/commit/e024e59fafabdb5be16d2d6778f5cd6a2db625ae))
24
+ * **tests:** improve enum examples ([#1000](https://github.com/roarkhq/sdk-roark-analytics-node/issues/1000)) ([626f26a](https://github.com/roarkhq/sdk-roark-analytics-node/commit/626f26a32f9d38c63303061c781cab0f0441bdc8))
25
+
3
26
  ## 0.254.0 (2025-04-08)
4
27
 
5
28
  Full Changelog: [v0.253.0...v0.254.0](https://github.com/roarkhq/sdk-roark-analytics-node/compare/v0.253.0...v0.254.0)
package/README.md CHANGED
@@ -29,10 +29,10 @@ const client = new Roark({
29
29
  async function main() {
30
30
  const callAnalysis = await client.callAnalysis.create({
31
31
  callDirection: 'INBOUND',
32
- interfaceType: 'PHONE',
33
- participants: [{ role: 'AGENT' }, { role: 'AGENT' }],
32
+ interfaceType: 'WEB',
33
+ participants: [{ role: 'AGENT' }, { role: 'CUSTOMER' }],
34
34
  recordingUrl: 'https://example.com/recording.wav',
35
- startedAt: '2025-04-08T01:08:47.686Z',
35
+ startedAt: '2025-04-11T03:03:07.423Z',
36
36
  });
37
37
 
38
38
  console.log(callAnalysis.data);
@@ -56,10 +56,10 @@ const client = new Roark({
56
56
  async function main() {
57
57
  const params: Roark.CallAnalysisCreateParams = {
58
58
  callDirection: 'INBOUND',
59
- interfaceType: 'PHONE',
60
- participants: [{ role: 'AGENT' }, { role: 'AGENT' }],
59
+ interfaceType: 'WEB',
60
+ participants: [{ role: 'AGENT' }, { role: 'CUSTOMER' }],
61
61
  recordingUrl: 'https://example.com/recording.wav',
62
- startedAt: '2025-04-08T01:08:47.686Z',
62
+ startedAt: '2025-04-11T03:03:07.423Z',
63
63
  };
64
64
  const callAnalysis: Roark.CallAnalysisCreateResponse = await client.callAnalysis.create(params);
65
65
  }
@@ -81,10 +81,10 @@ async function main() {
81
81
  const callAnalysis = await client.callAnalysis
82
82
  .create({
83
83
  callDirection: 'INBOUND',
84
- interfaceType: 'PHONE',
85
- participants: [{ role: 'AGENT' }, { role: 'AGENT' }],
84
+ interfaceType: 'WEB',
85
+ participants: [{ role: 'AGENT' }, { role: 'CUSTOMER' }],
86
86
  recordingUrl: 'https://example.com/recording.wav',
87
- startedAt: '2025-04-08T01:08:47.686Z',
87
+ startedAt: '2025-04-11T03:03:07.423Z',
88
88
  })
89
89
  .catch(async (err) => {
90
90
  if (err instanceof Roark.APIError) {
@@ -129,7 +129,7 @@ const client = new Roark({
129
129
  });
130
130
 
131
131
  // Or, configure per-request:
132
- await client.callAnalysis.create({ callDirection: 'INBOUND', interfaceType: 'PHONE', participants: [{ role: 'AGENT' }, { role: 'AGENT' }], recordingUrl: 'https://example.com/recording.wav', startedAt: '2025-04-08T01:08:47.686Z' }, {
132
+ await client.callAnalysis.create({ callDirection: 'INBOUND', interfaceType: 'WEB', participants: [{ role: 'AGENT' }, { role: 'CUSTOMER' }], recordingUrl: 'https://example.com/recording.wav', startedAt: '2025-04-11T03:03:07.423Z' }, {
133
133
  maxRetries: 5,
134
134
  });
135
135
  ```
@@ -146,7 +146,7 @@ const client = new Roark({
146
146
  });
147
147
 
148
148
  // Override per-request:
149
- await client.callAnalysis.create({ callDirection: 'INBOUND', interfaceType: 'PHONE', participants: [{ role: 'AGENT' }, { role: 'AGENT' }], recordingUrl: 'https://example.com/recording.wav', startedAt: '2025-04-08T01:08:47.686Z' }, {
149
+ await client.callAnalysis.create({ callDirection: 'INBOUND', interfaceType: 'WEB', participants: [{ role: 'AGENT' }, { role: 'CUSTOMER' }], recordingUrl: 'https://example.com/recording.wav', startedAt: '2025-04-11T03:03:07.423Z' }, {
150
150
  timeout: 5 * 1000,
151
151
  });
152
152
  ```
@@ -170,10 +170,10 @@ const client = new Roark();
170
170
  const response = await client.callAnalysis
171
171
  .create({
172
172
  callDirection: 'INBOUND',
173
- interfaceType: 'PHONE',
174
- participants: [{ role: 'AGENT' }, { role: 'AGENT' }],
173
+ interfaceType: 'WEB',
174
+ participants: [{ role: 'AGENT' }, { role: 'CUSTOMER' }],
175
175
  recordingUrl: 'https://example.com/recording.wav',
176
- startedAt: '2025-04-08T01:08:47.686Z',
176
+ startedAt: '2025-04-11T03:03:07.423Z',
177
177
  })
178
178
  .asResponse();
179
179
  console.log(response.headers.get('X-My-Header'));
@@ -182,10 +182,10 @@ console.log(response.statusText); // access the underlying Response object
182
182
  const { data: callAnalysis, response: raw } = await client.callAnalysis
183
183
  .create({
184
184
  callDirection: 'INBOUND',
185
- interfaceType: 'PHONE',
186
- participants: [{ role: 'AGENT' }, { role: 'AGENT' }],
185
+ interfaceType: 'WEB',
186
+ participants: [{ role: 'AGENT' }, { role: 'CUSTOMER' }],
187
187
  recordingUrl: 'https://example.com/recording.wav',
188
- startedAt: '2025-04-08T01:08:47.686Z',
188
+ startedAt: '2025-04-11T03:03:07.423Z',
189
189
  })
190
190
  .withResponse();
191
191
  console.log(raw.headers.get('X-My-Header'));
@@ -296,10 +296,10 @@ const client = new Roark({
296
296
  await client.callAnalysis.create(
297
297
  {
298
298
  callDirection: 'INBOUND',
299
- interfaceType: 'PHONE',
300
- participants: [{ role: 'AGENT' }, { role: 'AGENT' }],
299
+ interfaceType: 'WEB',
300
+ participants: [{ role: 'AGENT' }, { role: 'CUSTOMER' }],
301
301
  recordingUrl: 'https://example.com/recording.wav',
302
- startedAt: '2025-04-08T01:08:47.686Z',
302
+ startedAt: '2025-04-11T03:03:07.423Z',
303
303
  },
304
304
  {
305
305
  httpAgent: new http.Agent({ keepAlive: false }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roarkanalytics/sdk",
3
- "version": "0.254.0",
3
+ "version": "0.256.0",
4
4
  "description": "The official TypeScript library for the Roark API",
5
5
  "author": "Roark <james@roark.ai>",
6
6
  "types": "./index.d.ts",
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.254.0'; // x-release-please-version
1
+ export const VERSION = '0.256.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.254.0";
1
+ export declare const VERSION = "0.256.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.254.0'; // x-release-please-version
4
+ exports.VERSION = '0.256.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.254.0'; // x-release-please-version
1
+ export const VERSION = '0.256.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map