@acrobits/ipc-sdk 0.8.0-alpha.1 → 0.8.0-alpha.3
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/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/IPCManager.html +7 -8
- package/docs/enums/IPCEvents.html +1 -1
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +1 -1
- package/docs/interfaces/BaseContactItem.html +1 -1
- package/docs/interfaces/CloudUsernameContactItem.html +1 -1
- package/docs/interfaces/DetailedContactItem.html +9 -11
- package/docs/interfaces/DetailedContactURI.html +6 -0
- package/docs/interfaces/ILogger.html +1 -1
- package/docs/interfaces/UriContactItem.html +3 -3
- package/docs/modules.html +2 -1
- package/docs/types/ContactItem.html +1 -1
- package/docs/types/ContactLabel.html +1 -1
- package/docs/types/ContactType.html +1 -1
- package/docs/types/ContactURI.html +1 -1
- package/docs/types/HostType.html +1 -1
- package/docs/types/IPCContext.html +1 -1
- package/docs/types/IpcProtocolVersion.html +1 -1
- package/docs/types/UnsubscribeCallback.html +1 -1
- package/lib/index.d.ts +20 -9
- package/lib/ipc-sdk.js +257 -313
- package/lib/ipc-sdk.js.map +1 -1
- package/lib/ipc-sdk.umd.cjs +3 -3
- package/lib/ipc-sdk.umd.cjs.map +1 -1
- package/package.json +2 -2
package/lib/index.d.ts
CHANGED
|
@@ -72,10 +72,6 @@ export declare type ContactURI = `sip:${string}` | `tel:${string}` | `sips:${str
|
|
|
72
72
|
* @public
|
|
73
73
|
*/
|
|
74
74
|
export declare interface DetailedContactItem {
|
|
75
|
-
/**
|
|
76
|
-
* Label of {@link ContactLabel} number associated with this contact.
|
|
77
|
-
*/
|
|
78
|
-
contactLabel: ContactLabel;
|
|
79
75
|
/**
|
|
80
76
|
* Type of contact item.
|
|
81
77
|
*/
|
|
@@ -95,7 +91,7 @@ export declare interface DetailedContactItem {
|
|
|
95
91
|
/**
|
|
96
92
|
* URI or number associated with the contact with prefix (e.g. sip: or tel:)
|
|
97
93
|
*/
|
|
98
|
-
uri
|
|
94
|
+
uri: ContactURI | DetailedContactURI[];
|
|
99
95
|
/**
|
|
100
96
|
* Name of the contact entry.
|
|
101
97
|
*/
|
|
@@ -106,6 +102,22 @@ export declare interface DetailedContactItem {
|
|
|
106
102
|
profilePictureUrl?: string;
|
|
107
103
|
}
|
|
108
104
|
|
|
105
|
+
/**
|
|
106
|
+
* Defines a SIP URI and it's associated label.
|
|
107
|
+
*
|
|
108
|
+
* @public
|
|
109
|
+
*/
|
|
110
|
+
export declare interface DetailedContactURI {
|
|
111
|
+
/**
|
|
112
|
+
* URI or number associated with the contact with prefix (e.g. sip: or tel:)
|
|
113
|
+
*/
|
|
114
|
+
uri: ContactURI;
|
|
115
|
+
/**
|
|
116
|
+
* {@link ContactLabel} associated with this URI.
|
|
117
|
+
*/
|
|
118
|
+
label: ContactLabel;
|
|
119
|
+
}
|
|
120
|
+
|
|
109
121
|
/**
|
|
110
122
|
* Type of the Host app. Valid values are only `webrtc`, `desktop`, `ios`, `android`, `ios_jitsi`
|
|
111
123
|
* and `electron`.
|
|
@@ -294,12 +306,11 @@ export declare class IPCManager {
|
|
|
294
306
|
*/
|
|
295
307
|
openUrl<TData>(url: string, data?: TData): void;
|
|
296
308
|
/**
|
|
297
|
-
* Initiates a SIP call to the given
|
|
309
|
+
* Initiates a SIP call to the given {@link ContactItem}.
|
|
298
310
|
*
|
|
299
|
-
* @param
|
|
300
|
-
* @param cloudUsername - _Optional_. The cloud username of the callee.
|
|
311
|
+
* @param contact - {@link ContactItem} for the callee.
|
|
301
312
|
*/
|
|
302
|
-
sipCall(
|
|
313
|
+
sipCall(contact: ContactItem): void;
|
|
303
314
|
/**
|
|
304
315
|
* Registers a callback to be invoked when a {@link IPCEvents.BadgeQuery} is received.
|
|
305
316
|
*
|