@coventia/softphone 0.5.0 → 0.5.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.
Files changed (37) hide show
  1. package/dist/{call-FqcvDg1t.d.cts → call-iGvr2ZnO.d.cts} +26 -2
  2. package/dist/{call-FqcvDg1t.d.ts → call-iGvr2ZnO.d.ts} +26 -2
  3. package/dist/chunk-3UTUWGVG.js +1891 -0
  4. package/dist/chunk-3UTUWGVG.js.map +1 -0
  5. package/dist/chunk-DZRSSZWB.js +39 -0
  6. package/dist/chunk-DZRSSZWB.js.map +1 -0
  7. package/dist/element/index.d.ts +25 -1
  8. package/dist/{engine-CzOCrfY9.d.cts → engine-BKoT_Pj7.d.cts} +10 -1
  9. package/dist/{engine-CsNRD7B7.d.ts → engine-CeGh5Yai.d.ts} +10 -1
  10. package/dist/index.cjs +1049 -130
  11. package/dist/index.cjs.map +1 -1
  12. package/dist/index.d.cts +5 -5
  13. package/dist/index.d.ts +5 -5
  14. package/dist/index.js +179 -13
  15. package/dist/index.js.map +1 -1
  16. package/dist/react/index.d.cts +2 -2
  17. package/dist/react/index.d.ts +2 -2
  18. package/dist/{softphone-By9sizlV.d.ts → softphone-D0ao5W4z.d.ts} +1 -1
  19. package/dist/{softphone-JZvJdzU3.d.cts → softphone-DRoS0jJR.d.cts} +1 -1
  20. package/dist/{sources-QL2LRZVH.js → sources-LGFJG7W2.js} +10 -38
  21. package/dist/sources-LGFJG7W2.js.map +1 -0
  22. package/dist/testing/index.d.cts +2 -2
  23. package/dist/testing/index.d.ts +2 -2
  24. package/dist/ui/index.d.cts +2 -2
  25. package/dist/ui/index.d.ts +2 -2
  26. package/dist/zadarma/index.cjs +865 -116
  27. package/dist/zadarma/index.cjs.map +1 -1
  28. package/dist/zadarma/index.d.cts +37 -10
  29. package/dist/zadarma/index.d.ts +37 -10
  30. package/dist/zadarma/index.js +2 -1
  31. package/dist/zadarma-engine-VYIXLBQG.js +7 -0
  32. package/dist/{zadarma-engine-TIUE7PZ7.js.map → zadarma-engine-VYIXLBQG.js.map} +1 -1
  33. package/package.json +1 -1
  34. package/dist/chunk-6RR6G35E.js +0 -1146
  35. package/dist/chunk-6RR6G35E.js.map +0 -1
  36. package/dist/sources-QL2LRZVH.js.map +0 -1
  37. package/dist/zadarma-engine-TIUE7PZ7.js +0 -6
@@ -1,4 +1,4 @@
1
- import { e as CallOptions, b as CallDirection, H as HangupReason, i as HoldOriginator, z as SoftphoneState, v as SoftphoneError } from './call-FqcvDg1t.cjs';
1
+ import { e as CallOptions, b as CallDirection, H as HangupReason, i as HoldOriginator, z as SoftphoneState, v as SoftphoneError, Z as CallOffer } from './call-iGvr2ZnO.cjs';
2
2
 
3
3
  /**
4
4
  * The `CallEngine` seam — INTERNAL, not exported from src/index.ts.
@@ -110,6 +110,15 @@ interface CallEngine {
110
110
  * method. `AudioDevices.setInput` only calls it when present.
111
111
  */
112
112
  setInputDevice?(deviceId: string | null): Promise<void>;
113
+ /**
114
+ * What the backend says about calls offered to this line (incoming-call-reliability.md §4.4, §5), relayed by
115
+ * `Softphone` from its presence watch. `null`: that channel went away (a drop, a stop), so no `end` can be
116
+ * relied on for the calls announced so far.
117
+ *
118
+ * **Optional**, like `onError`: only an engine with a decline guard (the SIP engine on an on-demand provider)
119
+ * has a use for it. The mock does not implement it.
120
+ */
121
+ noteOffer?(offer: CallOffer | null): void;
113
122
  }
114
123
 
115
124
  export type { CallEngine as C, EngineCall as E };
@@ -1,4 +1,4 @@
1
- import { e as CallOptions, b as CallDirection, H as HangupReason, i as HoldOriginator, z as SoftphoneState, v as SoftphoneError } from './call-FqcvDg1t.js';
1
+ import { e as CallOptions, b as CallDirection, H as HangupReason, i as HoldOriginator, z as SoftphoneState, v as SoftphoneError, Z as CallOffer } from './call-iGvr2ZnO.js';
2
2
 
3
3
  /**
4
4
  * The `CallEngine` seam — INTERNAL, not exported from src/index.ts.
@@ -110,6 +110,15 @@ interface CallEngine {
110
110
  * method. `AudioDevices.setInput` only calls it when present.
111
111
  */
112
112
  setInputDevice?(deviceId: string | null): Promise<void>;
113
+ /**
114
+ * What the backend says about calls offered to this line (incoming-call-reliability.md §4.4, §5), relayed by
115
+ * `Softphone` from its presence watch. `null`: that channel went away (a drop, a stop), so no `end` can be
116
+ * relied on for the calls announced so far.
117
+ *
118
+ * **Optional**, like `onError`: only an engine with a decline guard (the SIP engine on an on-demand provider)
119
+ * has a use for it. The mock does not implement it.
120
+ */
121
+ noteOffer?(offer: CallOffer | null): void;
113
122
  }
114
123
 
115
124
  export type { CallEngine as C, EngineCall as E };