@16x/webphone-sdk 3.0.2 → 3.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 +47 -26
- package/LICENSE +1 -1
- package/README.md +113 -113
- package/dist/{CCBarClient-xC63i3Qd.js → CCBarClient-BCWPbFNX.js} +226 -163
- package/dist/CCBarClient-BaO_GM1u.cjs +1 -0
- package/dist/{Diagnostics-CvH6cjih.cjs → Diagnostics-BXKjfW9h.cjs} +1 -1
- package/dist/{Diagnostics-BhsVHELt.js → Diagnostics-Hb2Y9WsN.js} +1 -1
- package/dist/JsSipAdapter-915kI1VH.cjs +1 -0
- package/dist/{JsSipAdapter-CV6q6UUY.js → JsSipAdapter-BoxqJZsR.js} +47 -21
- package/dist/SharedWorkerProtocol-39dch6xL.cjs +1 -0
- package/dist/{SharedWorkerProtocol-jfo9N5wa.js → SharedWorkerProtocol-DKVQ5-po.js} +5 -1
- package/dist/core/CCBarClient.d.ts +28 -2
- package/dist/{createJsSipFactory-yttVU3d6.js → createJsSipFactory-9CPsweDR.js} +4 -1
- package/dist/{createJsSipFactory-2X4FBIU2.cjs → createJsSipFactory-Dr8HbLl-.cjs} +1 -1
- package/dist/diagnostics/index.cjs +1 -1
- package/dist/diagnostics/index.js +1 -1
- package/dist/errors/CCBarError.d.ts +6 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +3 -3
- package/dist/index.umd.js +2 -2
- package/dist/legacy/index.cjs +1 -1
- package/dist/legacy/index.js +2 -2
- package/dist/shared/SharedWorkerProtocol.d.ts +2 -0
- package/dist/shared-worker.cjs +1 -1
- package/dist/shared-worker.js +1 -1
- package/dist/styles.css +7 -7
- package/dist/ui/index.cjs +1 -1
- package/dist/version.d.ts +1 -0
- package/package.json +111 -109
- package/dist/CCBarClient-DdLM2NKm.cjs +0 -1
- package/dist/JsSipAdapter-BM7I95Xb.cjs +0 -1
- package/dist/SharedWorkerProtocol-V_x8Erjv.cjs +0 -1
|
@@ -3,6 +3,10 @@ export interface CCBarErrorOptions {
|
|
|
3
3
|
requestId?: string;
|
|
4
4
|
callId?: string;
|
|
5
5
|
cause?: unknown;
|
|
6
|
+
/** Stable server protocol code, retained for lifecycle recovery decisions. */
|
|
7
|
+
serverCode?: string;
|
|
8
|
+
/** HTTP status returned by the WebPhone API, when available. */
|
|
9
|
+
status?: number;
|
|
6
10
|
}
|
|
7
11
|
export declare class CCBarError extends Error {
|
|
8
12
|
readonly code: CCBarErrorCode;
|
|
@@ -11,5 +15,7 @@ export declare class CCBarError extends Error {
|
|
|
11
15
|
readonly requestId?: string;
|
|
12
16
|
readonly callId?: string;
|
|
13
17
|
readonly cause?: unknown;
|
|
18
|
+
readonly serverCode?: string;
|
|
19
|
+
readonly status?: number;
|
|
14
20
|
constructor(code: CCBarErrorCode, category: CCBarErrorCategory, retryable: boolean, options?: CCBarErrorOptions);
|
|
15
21
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./SharedWorkerProtocol-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./SharedWorkerProtocol-39dch6xL.cjs"),t=require("./CCBarClient-BaO_GM1u.cjs"),n=require("./Diagnostics-BXKjfW9h.cjs"),r=require("./redact-Bq26pObO.cjs");require("./diagnostics/index.cjs"),require("./createJsSipFactory-Dr8HbLl-.cjs");function i(e){if(e.code!==`OK`)throw TypeError(`Unexpected session response code: ${e.code}`);if(e.data===void 0||e.data===null)throw TypeError(`Unexpected session response: missing data`);return e.data}function a(e={}){return{version:`0.1.0`,options:e}}var o=`0.1.0`;exports.CCBarCall=t.a,exports.CCBarClient=t.t,exports.CCBarError=e.i,exports.CallManager=t.i,exports.CallStateError=t.c,exports.Diagnostics=n.t,exports.RingBuffer=n.n,exports.TokenManager=t.s,exports.TypedEventBus=t.p,exports.WebPhoneApi=t.o,exports.assertCallTransition=t.l,exports.canTransition=t.u,exports.createSdk=a,exports.createSharedWorkerSelection=t.n,exports.diagnosticsVersion=n.r,exports.parseSessionResponse=i,exports.redactText=r.t,exports.redactValue=r.n,exports.resolveWorkerUrl=t.r,exports.transition=t.d,exports.transitions=t.f,exports.version=o;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as e } from "./SharedWorkerProtocol-
|
|
2
|
-
import { a as t, c as n, d as r, f as i, i as a, l as o, n as s, o as c, p as l, r as u, s as d, t as f, u as p } from "./CCBarClient-
|
|
3
|
-
import { n as m, r as h, t as g } from "./Diagnostics-
|
|
1
|
+
import { i as e } from "./SharedWorkerProtocol-DKVQ5-po.js";
|
|
2
|
+
import { a as t, c as n, d as r, f as i, i as a, l as o, n as s, o as c, p as l, r as u, s as d, t as f, u as p } from "./CCBarClient-BCWPbFNX.js";
|
|
3
|
+
import { n as m, r as h, t as g } from "./Diagnostics-Hb2Y9WsN.js";
|
|
4
4
|
import { n as _, t as v } from "./redact-DB3CMbsK.js";
|
|
5
5
|
import "./diagnostics/index.js";
|
|
6
6
|
//#region src/api/contracts.ts
|