@16x/webphone-sdk 3.1.11 → 3.1.13
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 +37 -215
- package/LICENSE +1 -1
- package/README.md +161 -219
- package/dist/{CCBarClient-Dmw3T0lF.js → CCBarClient-BJO4qjN2.js} +93 -64
- package/dist/CCBarClient-_sG61iiu.cjs +1 -0
- package/dist/{Diagnostics-Dmhx4niF.cjs → Diagnostics-B9EQ0Y8m.cjs} +1 -1
- package/dist/{Diagnostics-BLHANihC.js → Diagnostics-DdbpMSMr.js} +1 -1
- package/dist/JsSipAdapter-BB-SusrS.cjs +1 -0
- package/dist/{JsSipAdapter-CwDotPN2.js → JsSipAdapter-BHtCsy_S.js} +206 -35
- package/dist/SharedWorkerProtocol-C-4KpECM.cjs +1 -0
- package/dist/SharedWorkerProtocol-CffZrUXg.js +119 -0
- package/dist/core/CCBarCall.d.ts +3 -0
- package/dist/createJsSipFactory-B1ORbJiP.cjs +22 -0
- package/dist/createJsSipFactory-CoWZN-BC.js +7410 -0
- package/dist/diagnostics/Diagnostics.d.ts +8 -0
- package/dist/diagnostics/index.cjs +1 -1
- package/dist/diagnostics/index.js +1 -1
- package/dist/errors/CCBarError.d.ts +3 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +3 -3
- package/dist/index.umd.js +1 -75
- package/dist/legacy/index.cjs +1 -1
- package/dist/legacy/index.js +67 -69
- package/dist/legacy/legacySessionProvider.d.ts +4 -8
- package/dist/shared/SharedWorkerProtocol.d.ts +1 -0
- package/dist/shared-worker.cjs +1 -1
- package/dist/shared-worker.js +1 -1
- package/dist/styles.css +7 -7
- package/dist/types.d.ts +1 -1
- package/dist/ui/i18n/types.d.ts +1 -0
- package/dist/ui/index.cjs +1 -1
- package/dist/ui/index.js +16 -7
- package/dist/version.d.ts +1 -1
- package/package.json +4 -3
- package/dist/CCBarClient-B7SRICz8.cjs +0 -1
- package/dist/JsSipAdapter-BN9BAFHr.cjs +0 -1
- package/dist/SharedWorkerProtocol-39dch6xL.cjs +0 -1
- package/dist/SharedWorkerProtocol-DKVQ5-po.js +0 -87
- package/dist/createJsSipFactory-9CPsweDR.js +0 -9665
- package/dist/createJsSipFactory-Dr8HbLl-.cjs +0 -75
|
@@ -26,6 +26,14 @@ export interface DiagnosticIceSummary {
|
|
|
26
26
|
readonly serverCount: number;
|
|
27
27
|
readonly stunServerCount: number;
|
|
28
28
|
readonly turnServerCount: number;
|
|
29
|
+
/** url 级探测收敛快照(3.2.6+;SharedWorker 模式下主页面侧可能缺失) */
|
|
30
|
+
readonly probe?: {
|
|
31
|
+
readonly runs: number;
|
|
32
|
+
readonly lastMs: number | null;
|
|
33
|
+
readonly udpOk: boolean;
|
|
34
|
+
readonly tcpRelayOk: boolean;
|
|
35
|
+
readonly convergedServers: number | null;
|
|
36
|
+
};
|
|
29
37
|
}
|
|
30
38
|
export interface DiagnosticWssSummary {
|
|
31
39
|
readonly configured: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../Diagnostics-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../Diagnostics-B9EQ0Y8m.cjs"),t=require("../redact-Bq26pObO.cjs");require("../createJsSipFactory-B1ORbJiP.cjs"),exports.Diagnostics=e.t,exports.RingBuffer=e.n,exports.diagnosticsVersion=e.r,exports.redactText=t.t,exports.redactValue=t.n;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "../Diagnostics-
|
|
1
|
+
import { n as e, r as t, t as n } from "../Diagnostics-DdbpMSMr.js";
|
|
2
2
|
import { n as r, t as i } from "../redact-DB3CMbsK.js";
|
|
3
3
|
export { n as Diagnostics, e as RingBuffer, t as diagnosticsVersion, i as redactText, r as redactValue };
|
|
@@ -5,6 +5,8 @@ export interface CCBarErrorOptions {
|
|
|
5
5
|
cause?: unknown;
|
|
6
6
|
/** Stable server protocol code, retained for lifecycle recovery decisions. */
|
|
7
7
|
serverCode?: string;
|
|
8
|
+
/** Numeric code returned by the platform; separate from the stable SDK code. */
|
|
9
|
+
platformCode?: number;
|
|
8
10
|
/** HTTP status returned by the WebPhone API, when available. */
|
|
9
11
|
status?: number;
|
|
10
12
|
}
|
|
@@ -16,6 +18,7 @@ export declare class CCBarError extends Error {
|
|
|
16
18
|
readonly callId?: string;
|
|
17
19
|
readonly cause?: unknown;
|
|
18
20
|
readonly serverCode?: string;
|
|
21
|
+
readonly platformCode?: number;
|
|
19
22
|
readonly status?: number;
|
|
20
23
|
constructor(code: CCBarErrorCode, category: CCBarErrorCategory, retryable: boolean, options?: CCBarErrorOptions);
|
|
21
24
|
}
|
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-C-4KpECM.cjs"),t=require("./CCBarClient-_sG61iiu.cjs"),n=require("./Diagnostics-B9EQ0Y8m.cjs"),r=require("./redact-Bq26pObO.cjs");require("./diagnostics/index.cjs"),require("./createJsSipFactory-B1ORbJiP.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.o,exports.CCBarClient=t.t,exports.CCBarError=e.i,exports.CallManager=t.a,exports.CallStateError=t.s,exports.Diagnostics=n.t,exports.RingBuffer=n.n,exports.TypedEventBus=t.f,exports.assertCallTransition=t.c,exports.canTransition=t.l,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.u,exports.transitions=t.d,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, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "./CCBarClient-
|
|
3
|
-
import { n as f, r as p, t as m } from "./Diagnostics-
|
|
1
|
+
import { i as e } from "./SharedWorkerProtocol-CffZrUXg.js";
|
|
2
|
+
import { a as t, c as n, d as r, f as i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "./CCBarClient-BJO4qjN2.js";
|
|
3
|
+
import { n as f, r as p, t as m } from "./Diagnostics-DdbpMSMr.js";
|
|
4
4
|
import { n as h, t as g } from "./redact-DB3CMbsK.js";
|
|
5
5
|
import "./diagnostics/index.js";
|
|
6
6
|
//#region src/api/contracts.ts
|