@sippulse/niva-sdk 0.2.1 → 0.3.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.
@@ -189,6 +189,14 @@ export interface NivaWebhookEventMap {
189
189
  * minimum: 0
190
190
  */
191
191
  duration_ms: number;
192
+ /**
193
+ * minimum: 0
194
+ */
195
+ ring_duration_ms?: number;
196
+ /**
197
+ * minimum: 0
198
+ */
199
+ talk_duration_ms?: number | null;
192
200
  hangup_cause: string;
193
201
  hangup_disposition: string;
194
202
  was_recorded: boolean;
@@ -399,6 +407,10 @@ export interface NivaWebhookEventMap {
399
407
  * maximum: 10
400
408
  */
401
409
  max_wait_seconds?: number;
410
+ actions?: {
411
+ silence?: "hangup" | "continue";
412
+ unknown?: "hangup" | "continue";
413
+ };
402
414
  };
403
415
  metadata: Record<string, string>;
404
416
  };
package/index.bun.js CHANGED
@@ -15,7 +15,7 @@ import {
15
15
  createShutdownTracker,
16
16
  withShutdownSignal,
17
17
  defineNivaWebhookServer
18
- } from "./chunk-3w2v383z.js";
18
+ } from "./chunk-63rnjnmz.js";
19
19
  import {
20
20
  NivaError2,
21
21
  NivaApiError2,
@@ -25,7 +25,7 @@ import {
25
25
  NivaUnavailableError2,
26
26
  NivaWebhookError2,
27
27
  isNivaApiError2
28
- } from "./chunk-50ad2r7x.js";
28
+ } from "./chunk-xnm3475q.js";
29
29
  // src/webhook/serve-bun.ts
30
30
  async function bunAdapter(fetch, opts) {
31
31
  const tracker = createShutdownTracker();
package/index.default.js CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  DEFAULT_MAX_BODY_BYTES2,
12
12
  createNivaWebhookHandler2,
13
13
  defineNivaWebhookServer
14
- } from "./chunk-3w2v383z.js";
14
+ } from "./chunk-63rnjnmz.js";
15
15
  import {
16
16
  NivaError2,
17
17
  NivaApiError2,
@@ -21,7 +21,7 @@ import {
21
21
  NivaUnavailableError2,
22
22
  NivaWebhookError2,
23
23
  isNivaApiError2
24
- } from "./chunk-50ad2r7x.js";
24
+ } from "./chunk-xnm3475q.js";
25
25
  // src/webhook/serve-default.ts
26
26
  function createNivaWebhookServer(options) {
27
27
  return defineNivaWebhookServer(options, () => {
package/index.deno.js CHANGED
@@ -15,7 +15,7 @@ import {
15
15
  createShutdownTracker,
16
16
  withShutdownSignal,
17
17
  defineNivaWebhookServer
18
- } from "./chunk-3w2v383z.js";
18
+ } from "./chunk-63rnjnmz.js";
19
19
  import {
20
20
  NivaError2,
21
21
  NivaApiError2,
@@ -25,7 +25,7 @@ import {
25
25
  NivaUnavailableError2,
26
26
  NivaWebhookError2,
27
27
  isNivaApiError2
28
- } from "./chunk-50ad2r7x.js";
28
+ } from "./chunk-xnm3475q.js";
29
29
  // src/webhook/serve-deno.ts
30
30
  async function denoAdapter(fetch, opts) {
31
31
  const tracker = createShutdownTracker();
package/index.node.js CHANGED
@@ -14,7 +14,7 @@ import {
14
14
  delayMs,
15
15
  createShutdownTracker,
16
16
  defineNivaWebhookServer
17
- } from "./chunk-3w2v383z.js";
17
+ } from "./chunk-63rnjnmz.js";
18
18
  import {
19
19
  NivaError2,
20
20
  NivaApiError2,
@@ -24,7 +24,7 @@ import {
24
24
  NivaUnavailableError2,
25
25
  NivaWebhookError2,
26
26
  isNivaApiError2
27
- } from "./chunk-50ad2r7x.js";
27
+ } from "./chunk-xnm3475q.js";
28
28
  // src/webhook/serve-node.ts
29
29
  import { createServer } from "node:http";
30
30
  import { Readable } from "node:stream";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sippulse/niva-sdk",
3
- "version": "0.2.1",
3
+ "version": "0.3.1",
4
4
  "description": "NIVA SDK - typed client and webhook receiver for the NIVA IVR platform",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://niva.sippulse.com",
@@ -31,8 +31,8 @@
31
31
  "files": [
32
32
  "chat.js",
33
33
  "chat.d.ts",
34
- "chunk-3w2v383z.js",
35
- "chunk-50ad2r7x.js",
34
+ "chunk-63rnjnmz.js",
35
+ "chunk-xnm3475q.js",
36
36
  "index.bun.js",
37
37
  "index.default.js",
38
38
  "index.deno.js",