@sippet-ai/operator-widget 0.0.12

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 (59) hide show
  1. package/LICENSE +2 -0
  2. package/README.md +136 -0
  3. package/cdn/loader.js +146 -0
  4. package/custom-elements.json +2241 -0
  5. package/dist/components/index.d.ts +1 -0
  6. package/dist/components/index.js +1 -0
  7. package/dist/components/voip-widget/index.d.ts +18 -0
  8. package/dist/components/voip-widget/index.js +4 -0
  9. package/dist/components/voip-widget/voip-widget-contacts-tab.d.ts +14 -0
  10. package/dist/components/voip-widget/voip-widget-contacts-tab.js +45 -0
  11. package/dist/components/voip-widget/voip-widget-history-tab.d.ts +13 -0
  12. package/dist/components/voip-widget/voip-widget-history-tab.js +43 -0
  13. package/dist/components/voip-widget/voip-widget-launcher.d.ts +18 -0
  14. package/dist/components/voip-widget/voip-widget-launcher.js +100 -0
  15. package/dist/components/voip-widget/voip-widget-panel.d.ts +21 -0
  16. package/dist/components/voip-widget/voip-widget-panel.js +193 -0
  17. package/dist/components/voip-widget/voip-widget-phone-tab.d.ts +21 -0
  18. package/dist/components/voip-widget/voip-widget-phone-tab.js +187 -0
  19. package/dist/components/voip-widget/voip-widget-queue-tab.d.ts +14 -0
  20. package/dist/components/voip-widget/voip-widget-queue-tab.js +49 -0
  21. package/dist/components/voip-widget/voip-widget-settings-tab.d.ts +21 -0
  22. package/dist/components/voip-widget/voip-widget-settings-tab.js +135 -0
  23. package/dist/components/voip-widget/voip-widget.d.ts +142 -0
  24. package/dist/components/voip-widget/voip-widget.js +1329 -0
  25. package/dist/components/voip-widget/voip-widget.types.d.ts +22 -0
  26. package/dist/components/voip-widget/voip-widget.types.js +1 -0
  27. package/dist/index.d.ts +3 -0
  28. package/dist/index.js +3 -0
  29. package/dist/lib/realtime.d.ts +1 -0
  30. package/dist/lib/realtime.js +1 -0
  31. package/dist/lib/sippet.d.ts +40 -0
  32. package/dist/lib/sippet.js +197 -0
  33. package/dist/lib/tailwindMixin.d.ts +6 -0
  34. package/dist/lib/tailwindMixin.js +24 -0
  35. package/dist/styles/tailwind.global.css +2 -0
  36. package/dist/styles/tailwind.global.css.js +1 -0
  37. package/package.json +126 -0
  38. package/react/SippetAIVoipWidget.d.ts +158 -0
  39. package/react/SippetAIVoipWidget.js +72 -0
  40. package/react/SippetAIVoipWidgetContactsTab.d.ts +67 -0
  41. package/react/SippetAIVoipWidgetContactsTab.js +29 -0
  42. package/react/SippetAIVoipWidgetHistoryTab.d.ts +55 -0
  43. package/react/SippetAIVoipWidgetHistoryTab.js +26 -0
  44. package/react/SippetAIVoipWidgetLauncher.d.ts +83 -0
  45. package/react/SippetAIVoipWidgetLauncher.js +41 -0
  46. package/react/SippetAIVoipWidgetPanel.d.ts +87 -0
  47. package/react/SippetAIVoipWidgetPanel.js +43 -0
  48. package/react/SippetAIVoipWidgetPhoneTab.d.ts +87 -0
  49. package/react/SippetAIVoipWidgetPhoneTab.js +43 -0
  50. package/react/SippetAIVoipWidgetQueueTab.d.ts +67 -0
  51. package/react/SippetAIVoipWidgetQueueTab.js +27 -0
  52. package/react/SippetAIVoipWidgetSettingsTab.d.ts +91 -0
  53. package/react/SippetAIVoipWidgetSettingsTab.js +47 -0
  54. package/react/index.d.ts +8 -0
  55. package/react/index.js +8 -0
  56. package/react/react-utils.js +67 -0
  57. package/types/custom-element-jsx.d.ts +956 -0
  58. package/types/custom-element-svelte.d.ts +264 -0
  59. package/types/custom-element-vuejs.d.ts +234 -0
@@ -0,0 +1,956 @@
1
+ import type { SippetAIVoipWidgetLauncher } from "src/components/voip-widget/voip-widget-launcher.ts";
2
+ import type { SippetAIVoipWidgetPanel } from "src/components/voip-widget/voip-widget-panel.ts";
3
+ import type { SippetAIVoipWidgetPhoneTab } from "src/components/voip-widget/voip-widget-phone-tab.ts";
4
+ import type { SippetAIVoipWidgetQueueTab } from "src/components/voip-widget/voip-widget-queue-tab.ts";
5
+ import type { SippetAIVoipWidgetContactsTab } from "src/components/voip-widget/voip-widget-contacts-tab.ts";
6
+ import type { SippetAIVoipWidgetHistoryTab } from "src/components/voip-widget/voip-widget-history-tab.ts";
7
+ import type { SippetAIVoipWidgetSettingsTab } from "src/components/voip-widget/voip-widget-settings-tab.ts";
8
+ import type { SippetAIVoipWidget } from "src/components/voip-widget/voip-widget.ts";
9
+
10
+ /**
11
+ * This type can be used to create scoped tags for your components.
12
+ *
13
+ * Usage:
14
+ *
15
+ * ```ts
16
+ * import type { ScopedElements } from "path/to/library/jsx-integration";
17
+ *
18
+ * declare module "my-library" {
19
+ * namespace JSX {
20
+ * interface IntrinsicElements
21
+ * extends ScopedElements<'test-', ''> {}
22
+ * }
23
+ * }
24
+ * ```
25
+ *
26
+ * @deprecated Runtime scoped elements result in duplicate types and can confusing for developers. It is recommended to use the `prefix` and `suffix` options to generate new types instead.
27
+ */
28
+ export type ScopedElements<
29
+ Prefix extends string = "",
30
+ Suffix extends string = "",
31
+ > = {
32
+ [Key in keyof CustomElements as `${Prefix}${Key}${Suffix}`]: CustomElements[Key];
33
+ };
34
+
35
+ /**
36
+ * A generic type for strongly typing custom events with their targets
37
+ * @template T - The type of the event target (extends EventTarget)
38
+ * @template D - The type of the detail payload for the custom event
39
+ */
40
+ type TypedEvent<T extends EventTarget, E = Event> = E & {
41
+ target: T;
42
+ };
43
+
44
+ type BaseProps<T extends HTMLElement> = {
45
+ /** Content added between the opening and closing tags of the element */
46
+ children?: any;
47
+ /** Used for declaratively styling one or more elements using CSS (Cascading Stylesheets) */
48
+ class?: string;
49
+ /** Used for declaratively styling one or more elements using CSS (Cascading Stylesheets) */
50
+ className?: string;
51
+ /** Takes an object where the key is the class name(s) and the value is a boolean expression. When true, the class is applied, and when false, it is removed. */
52
+ classList?: Record<string, boolean | undefined>;
53
+ /** Specifies the text direction of the element. */
54
+ dir?: "ltr" | "rtl";
55
+ /** Contains a space-separated list of the part names of the element that should be exposed on the host element. */
56
+ exportparts?: string;
57
+ /** For <label> and <output>, lets you associate the label with some control. */
58
+ htmlFor?: string;
59
+ /** Specifies whether the element should be hidden. */
60
+ hidden?: boolean | string;
61
+ /** A unique identifier for the element. */
62
+ id?: string;
63
+ /** Keys tell React which array item each component corresponds to */
64
+ key?: string | number;
65
+ /** Specifies the language of the element. */
66
+ lang?: string;
67
+ /** Contains a space-separated list of the part names of the element. Part names allows CSS to select and style specific elements in a shadow tree via the ::part pseudo-element. */
68
+ part?: string;
69
+ /** Use the ref attribute with a variable to assign a DOM element to the variable once the element is rendered. */
70
+ ref?: T | ((e: T) => void);
71
+ /** Adds a reference for a custom element slot */
72
+ slot?: string;
73
+ /** Prop for setting inline styles */
74
+ style?: Record<string, string | number>;
75
+ /** Overrides the default Tab button behavior. Avoid using values other than -1 and 0. */
76
+ tabIndex?: number;
77
+ /** Specifies the tooltip text for the element. */
78
+ title?: string;
79
+ /** Passing 'no' excludes the element content from being translated. */
80
+ translate?: "yes" | "no";
81
+ /** The popover global attribute is used to designate an element as a popover element. */
82
+ popover?: "auto" | "hint" | "manual";
83
+ /** Turns an element element into a popover control button; takes the ID of the popover element to control as its value. */
84
+ popovertarget?: "top" | "bottom" | "left" | "right" | "auto";
85
+ /** Specifies the action to be performed on a popover element being controlled by a control element. */
86
+ popovertargetaction?: "show" | "hide" | "toggle";
87
+ };
88
+
89
+ type BaseEvents = {};
90
+
91
+ /** `SippetAIVoipWidgetLauncher` component event */
92
+ export type SippetAIVoipWidgetLauncherElementEvent<E = Event> = TypedEvent<
93
+ SippetAIVoipWidgetLauncher,
94
+ E
95
+ >;
96
+
97
+ export type SippetAIVoipWidgetLauncherProps = {
98
+ /** */
99
+ open?: SippetAIVoipWidgetLauncher["open"];
100
+ /** */
101
+ queueCount?: SippetAIVoipWidgetLauncher["queueCount"];
102
+ /** */
103
+ incomingCall?: SippetAIVoipWidgetLauncher["incomingCall"];
104
+ /** */
105
+ incomingFromQueue?: SippetAIVoipWidgetLauncher["incomingFromQueue"];
106
+ /** */
107
+ incomingCallerName?: SippetAIVoipWidgetLauncher["incomingCallerName"];
108
+
109
+ /** */
110
+ onname?: (e: SippetAIVoipWidgetLauncherElementEvent) => void;
111
+ };
112
+
113
+ export type SippetAIVoipWidgetLauncherSolidJsProps = {
114
+ /** */
115
+ "prop:open"?: SippetAIVoipWidgetLauncher["open"];
116
+ /** */
117
+ "prop:queueCount"?: SippetAIVoipWidgetLauncher["queueCount"];
118
+ /** */
119
+ "prop:incomingCall"?: SippetAIVoipWidgetLauncher["incomingCall"];
120
+ /** */
121
+ "prop:incomingFromQueue"?: SippetAIVoipWidgetLauncher["incomingFromQueue"];
122
+ /** */
123
+ "prop:incomingCallerName"?: SippetAIVoipWidgetLauncher["incomingCallerName"];
124
+ /** */
125
+ "on:name"?: (e: SippetAIVoipWidgetLauncherElementEvent) => void;
126
+
127
+ /** Set the innerHTML of the element */
128
+ innerHTML?: string;
129
+ /** Set the textContent of the element */
130
+ textContent?: string | number;
131
+ };
132
+
133
+ /** `SippetAIVoipWidgetPanel` component event */
134
+ export type SippetAIVoipWidgetPanelElementEvent<E = Event> = TypedEvent<
135
+ SippetAIVoipWidgetPanel,
136
+ E
137
+ >;
138
+
139
+ export type SippetAIVoipWidgetPanelProps = {
140
+ /** */
141
+ userName?: SippetAIVoipWidgetPanel["userName"];
142
+ /** */
143
+ availability?: SippetAIVoipWidgetPanel["availability"];
144
+ /** */
145
+ activeTab?: SippetAIVoipWidgetPanel["activeTab"];
146
+ /** */
147
+ incomingCall?: SippetAIVoipWidgetPanel["incomingCall"];
148
+ /** */
149
+ incomingFromQueue?: SippetAIVoipWidgetPanel["incomingFromQueue"];
150
+ /** */
151
+ incomingCallerName?: SippetAIVoipWidgetPanel["incomingCallerName"];
152
+
153
+ /** */
154
+ onname?: (e: SippetAIVoipWidgetPanelElementEvent) => void;
155
+ };
156
+
157
+ export type SippetAIVoipWidgetPanelSolidJsProps = {
158
+ /** */
159
+ "prop:userName"?: SippetAIVoipWidgetPanel["userName"];
160
+ /** */
161
+ "prop:availability"?: SippetAIVoipWidgetPanel["availability"];
162
+ /** */
163
+ "prop:activeTab"?: SippetAIVoipWidgetPanel["activeTab"];
164
+ /** */
165
+ "prop:incomingCall"?: SippetAIVoipWidgetPanel["incomingCall"];
166
+ /** */
167
+ "prop:incomingFromQueue"?: SippetAIVoipWidgetPanel["incomingFromQueue"];
168
+ /** */
169
+ "prop:incomingCallerName"?: SippetAIVoipWidgetPanel["incomingCallerName"];
170
+ /** */
171
+ "on:name"?: (e: SippetAIVoipWidgetPanelElementEvent) => void;
172
+
173
+ /** Set the innerHTML of the element */
174
+ innerHTML?: string;
175
+ /** Set the textContent of the element */
176
+ textContent?: string | number;
177
+ };
178
+
179
+ /** `SippetAIVoipWidgetPhoneTab` component event */
180
+ export type SippetAIVoipWidgetPhoneTabElementEvent<E = Event> = TypedEvent<
181
+ SippetAIVoipWidgetPhoneTab,
182
+ E
183
+ >;
184
+
185
+ export type SippetAIVoipWidgetPhoneTabProps = {
186
+ /** */
187
+ dialNumber?: SippetAIVoipWidgetPhoneTab["dialNumber"];
188
+ /** */
189
+ sipStatus?: SippetAIVoipWidgetPhoneTab["sipStatus"];
190
+ /** */
191
+ callState?: SippetAIVoipWidgetPhoneTab["callState"];
192
+ /** */
193
+ callSeconds?: SippetAIVoipWidgetPhoneTab["callSeconds"];
194
+ /** */
195
+ isMuted?: SippetAIVoipWidgetPhoneTab["isMuted"];
196
+ /** */
197
+ isHeld?: SippetAIVoipWidgetPhoneTab["isHeld"];
198
+
199
+ /** */
200
+ onname?: (e: SippetAIVoipWidgetPhoneTabElementEvent) => void;
201
+ };
202
+
203
+ export type SippetAIVoipWidgetPhoneTabSolidJsProps = {
204
+ /** */
205
+ "prop:dialNumber"?: SippetAIVoipWidgetPhoneTab["dialNumber"];
206
+ /** */
207
+ "prop:sipStatus"?: SippetAIVoipWidgetPhoneTab["sipStatus"];
208
+ /** */
209
+ "prop:callState"?: SippetAIVoipWidgetPhoneTab["callState"];
210
+ /** */
211
+ "prop:callSeconds"?: SippetAIVoipWidgetPhoneTab["callSeconds"];
212
+ /** */
213
+ "prop:isMuted"?: SippetAIVoipWidgetPhoneTab["isMuted"];
214
+ /** */
215
+ "prop:isHeld"?: SippetAIVoipWidgetPhoneTab["isHeld"];
216
+ /** */
217
+ "on:name"?: (e: SippetAIVoipWidgetPhoneTabElementEvent) => void;
218
+
219
+ /** Set the innerHTML of the element */
220
+ innerHTML?: string;
221
+ /** Set the textContent of the element */
222
+ textContent?: string | number;
223
+ };
224
+
225
+ /** `SippetAIVoipWidgetQueueTab` component event */
226
+ export type SippetAIVoipWidgetQueueTabElementEvent<E = Event> = TypedEvent<
227
+ SippetAIVoipWidgetQueueTab,
228
+ E
229
+ >;
230
+
231
+ export type SippetAIVoipWidgetQueueTabProps = {
232
+ /** */
233
+ queuedCalls?: SippetAIVoipWidgetQueueTab["queuedCalls"];
234
+
235
+ /** */
236
+ onname?: (e: SippetAIVoipWidgetQueueTabElementEvent) => void;
237
+ };
238
+
239
+ export type SippetAIVoipWidgetQueueTabSolidJsProps = {
240
+ /** */
241
+ "prop:queuedCalls"?: SippetAIVoipWidgetQueueTab["queuedCalls"];
242
+ /** */
243
+ "on:name"?: (e: SippetAIVoipWidgetQueueTabElementEvent) => void;
244
+
245
+ /** Set the innerHTML of the element */
246
+ innerHTML?: string;
247
+ /** Set the textContent of the element */
248
+ textContent?: string | number;
249
+ };
250
+
251
+ /** `SippetAIVoipWidgetContactsTab` component event */
252
+ export type SippetAIVoipWidgetContactsTabElementEvent<E = Event> = TypedEvent<
253
+ SippetAIVoipWidgetContactsTab,
254
+ E
255
+ >;
256
+
257
+ export type SippetAIVoipWidgetContactsTabProps = {
258
+ /** */
259
+ contacts?: SippetAIVoipWidgetContactsTab["contacts"];
260
+
261
+ /** */
262
+ onname?: (e: SippetAIVoipWidgetContactsTabElementEvent) => void;
263
+ };
264
+
265
+ export type SippetAIVoipWidgetContactsTabSolidJsProps = {
266
+ /** */
267
+ "prop:contacts"?: SippetAIVoipWidgetContactsTab["contacts"];
268
+ /** */
269
+ "on:name"?: (e: SippetAIVoipWidgetContactsTabElementEvent) => void;
270
+
271
+ /** Set the innerHTML of the element */
272
+ innerHTML?: string;
273
+ /** Set the textContent of the element */
274
+ textContent?: string | number;
275
+ };
276
+
277
+ export type SippetAIVoipWidgetHistoryTabProps = {
278
+ /** */
279
+ history?: SippetAIVoipWidgetHistoryTab["history"];
280
+ };
281
+
282
+ export type SippetAIVoipWidgetHistoryTabSolidJsProps = {
283
+ /** */
284
+ "prop:history"?: SippetAIVoipWidgetHistoryTab["history"];
285
+
286
+ /** Set the innerHTML of the element */
287
+ innerHTML?: string;
288
+ /** Set the textContent of the element */
289
+ textContent?: string | number;
290
+ };
291
+
292
+ /** `SippetAIVoipWidgetSettingsTab` component event */
293
+ export type SippetAIVoipWidgetSettingsTabElementEvent<E = Event> = TypedEvent<
294
+ SippetAIVoipWidgetSettingsTab,
295
+ E
296
+ >;
297
+
298
+ export type SippetAIVoipWidgetSettingsTabProps = {
299
+ /** */
300
+ userEmail?: SippetAIVoipWidgetSettingsTab["userEmail"];
301
+ /** */
302
+ audioInputs?: SippetAIVoipWidgetSettingsTab["audioInputs"];
303
+ /** */
304
+ audioOutputs?: SippetAIVoipWidgetSettingsTab["audioOutputs"];
305
+ /** */
306
+ selectedMicId?: SippetAIVoipWidgetSettingsTab["selectedMicId"];
307
+ /** */
308
+ selectedSpeakerId?: SippetAIVoipWidgetSettingsTab["selectedSpeakerId"];
309
+ /** */
310
+ hasMediaPermission?: SippetAIVoipWidgetSettingsTab["hasMediaPermission"];
311
+ /** */
312
+ sipStatus?: SippetAIVoipWidgetSettingsTab["sipStatus"];
313
+
314
+ /** */
315
+ onname?: (e: SippetAIVoipWidgetSettingsTabElementEvent) => void;
316
+ };
317
+
318
+ export type SippetAIVoipWidgetSettingsTabSolidJsProps = {
319
+ /** */
320
+ "prop:userEmail"?: SippetAIVoipWidgetSettingsTab["userEmail"];
321
+ /** */
322
+ "prop:audioInputs"?: SippetAIVoipWidgetSettingsTab["audioInputs"];
323
+ /** */
324
+ "prop:audioOutputs"?: SippetAIVoipWidgetSettingsTab["audioOutputs"];
325
+ /** */
326
+ "prop:selectedMicId"?: SippetAIVoipWidgetSettingsTab["selectedMicId"];
327
+ /** */
328
+ "prop:selectedSpeakerId"?: SippetAIVoipWidgetSettingsTab["selectedSpeakerId"];
329
+ /** */
330
+ "prop:hasMediaPermission"?: SippetAIVoipWidgetSettingsTab["hasMediaPermission"];
331
+ /** */
332
+ "prop:sipStatus"?: SippetAIVoipWidgetSettingsTab["sipStatus"];
333
+ /** */
334
+ "on:name"?: (e: SippetAIVoipWidgetSettingsTabElementEvent) => void;
335
+
336
+ /** Set the innerHTML of the element */
337
+ innerHTML?: string;
338
+ /** Set the textContent of the element */
339
+ textContent?: string | number;
340
+ };
341
+
342
+ /** `SippetAIVoipWidget` component event */
343
+ export type SippetAIVoipWidgetElementEvent<E = Event> = TypedEvent<
344
+ SippetAIVoipWidget,
345
+ E
346
+ >;
347
+
348
+ export type SippetAIVoipWidgetProps = {
349
+ /** */
350
+ "api-key"?: SippetAIVoipWidget["apiKey"];
351
+ /** */
352
+ apiKey?: SippetAIVoipWidget["apiKey"];
353
+ /** */
354
+ "session-auth"?: SippetAIVoipWidget["sessionAuth"];
355
+ /** */
356
+ sessionAuth?: SippetAIVoipWidget["sessionAuth"];
357
+ /** */
358
+ "api-origin"?: SippetAIVoipWidget["apiOrigin"];
359
+ /** */
360
+ apiOrigin?: SippetAIVoipWidget["apiOrigin"];
361
+ /** */
362
+ sipUrl?: SippetAIVoipWidget["sipUrl"];
363
+ /** */
364
+ sipUser?: SippetAIVoipWidget["sipUser"];
365
+ /** */
366
+ "sip-user-id"?: SippetAIVoipWidget["sipUserId"];
367
+ /** */
368
+ sipUserId?: SippetAIVoipWidget["sipUserId"];
369
+ /** */
370
+ sipPassword?: SippetAIVoipWidget["sipPassword"];
371
+ /** */
372
+ sipWebSocketUrl?: SippetAIVoipWidget["sipWebSocketUrl"];
373
+ /** */
374
+ userName?: SippetAIVoipWidget["userName"];
375
+ /** */
376
+ userEmail?: SippetAIVoipWidget["userEmail"];
377
+ /** */
378
+ availability?: SippetAIVoipWidget["availability"];
379
+ /** */
380
+ queueCount?: SippetAIVoipWidget["queueCount"];
381
+ /** */
382
+ incomingCall?: SippetAIVoipWidget["incomingCall"];
383
+ /** */
384
+ incomingCallerName?: SippetAIVoipWidget["incomingCallerName"];
385
+ /** */
386
+ incomingFromQueue?: SippetAIVoipWidget["incomingFromQueue"];
387
+ /** */
388
+ contacts?: SippetAIVoipWidget["contacts"];
389
+ /** */
390
+ history?: SippetAIVoipWidget["history"];
391
+ /** */
392
+ queuedCalls?: SippetAIVoipWidget["queuedCalls"];
393
+ /** */
394
+ open?: SippetAIVoipWidget["open"];
395
+ /** */
396
+ activeTab?: SippetAIVoipWidget["activeTab"];
397
+
398
+ /** */
399
+ "onvoip-transfer"?: (e: SippetAIVoipWidgetElementEvent) => void;
400
+ /** */
401
+ "onvoip-call-state"?: (e: SippetAIVoipWidgetElementEvent) => void;
402
+ };
403
+
404
+ export type SippetAIVoipWidgetSolidJsProps = {
405
+ /** */
406
+ "attr:api-key"?: SippetAIVoipWidget["apiKey"];
407
+ /** */
408
+ "prop:apiKey"?: SippetAIVoipWidget["apiKey"];
409
+ /** */
410
+ "bool:session-auth"?: SippetAIVoipWidget["sessionAuth"];
411
+ /** */
412
+ "prop:sessionAuth"?: SippetAIVoipWidget["sessionAuth"];
413
+ /** */
414
+ "attr:api-origin"?: SippetAIVoipWidget["apiOrigin"];
415
+ /** */
416
+ "prop:apiOrigin"?: SippetAIVoipWidget["apiOrigin"];
417
+ /** */
418
+ "prop:sipUrl"?: SippetAIVoipWidget["sipUrl"];
419
+ /** */
420
+ "prop:sipUser"?: SippetAIVoipWidget["sipUser"];
421
+ /** */
422
+ "attr:sip-user-id"?: SippetAIVoipWidget["sipUserId"];
423
+ /** */
424
+ "prop:sipUserId"?: SippetAIVoipWidget["sipUserId"];
425
+ /** */
426
+ "prop:sipPassword"?: SippetAIVoipWidget["sipPassword"];
427
+ /** */
428
+ "prop:sipWebSocketUrl"?: SippetAIVoipWidget["sipWebSocketUrl"];
429
+ /** */
430
+ "prop:userName"?: SippetAIVoipWidget["userName"];
431
+ /** */
432
+ "prop:userEmail"?: SippetAIVoipWidget["userEmail"];
433
+ /** */
434
+ "prop:availability"?: SippetAIVoipWidget["availability"];
435
+ /** */
436
+ "prop:queueCount"?: SippetAIVoipWidget["queueCount"];
437
+ /** */
438
+ "prop:incomingCall"?: SippetAIVoipWidget["incomingCall"];
439
+ /** */
440
+ "prop:incomingCallerName"?: SippetAIVoipWidget["incomingCallerName"];
441
+ /** */
442
+ "prop:incomingFromQueue"?: SippetAIVoipWidget["incomingFromQueue"];
443
+ /** */
444
+ "prop:contacts"?: SippetAIVoipWidget["contacts"];
445
+ /** */
446
+ "prop:history"?: SippetAIVoipWidget["history"];
447
+ /** */
448
+ "prop:queuedCalls"?: SippetAIVoipWidget["queuedCalls"];
449
+ /** */
450
+ "prop:open"?: SippetAIVoipWidget["open"];
451
+ /** */
452
+ "prop:activeTab"?: SippetAIVoipWidget["activeTab"];
453
+ /** */
454
+ "on:voip-transfer"?: (e: SippetAIVoipWidgetElementEvent) => void;
455
+ /** */
456
+ "on:voip-call-state"?: (e: SippetAIVoipWidgetElementEvent) => void;
457
+
458
+ /** Set the innerHTML of the element */
459
+ innerHTML?: string;
460
+ /** Set the textContent of the element */
461
+ textContent?: string | number;
462
+ };
463
+
464
+ export type CustomElements = {
465
+ /**
466
+ *
467
+ *
468
+ * ## Attributes & Properties
469
+ *
470
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
471
+ *
472
+ * - `open`: undefined
473
+ * - `queueCount`: undefined
474
+ * - `incomingCall`: undefined
475
+ * - `incomingFromQueue`: undefined
476
+ * - `incomingCallerName`: undefined
477
+ *
478
+ * ## Events
479
+ *
480
+ * Events that will be emitted by the component.
481
+ *
482
+ * - `name`: undefined
483
+ */
484
+ "sippetai-voip-widget-launcher": Partial<
485
+ SippetAIVoipWidgetLauncherProps &
486
+ BaseProps<SippetAIVoipWidgetLauncher> &
487
+ BaseEvents
488
+ >;
489
+
490
+ /**
491
+ *
492
+ *
493
+ * ## Attributes & Properties
494
+ *
495
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
496
+ *
497
+ * - `userName`: undefined
498
+ * - `availability`: undefined
499
+ * - `activeTab`: undefined
500
+ * - `incomingCall`: undefined
501
+ * - `incomingFromQueue`: undefined
502
+ * - `incomingCallerName`: undefined
503
+ *
504
+ * ## Events
505
+ *
506
+ * Events that will be emitted by the component.
507
+ *
508
+ * - `name`: undefined
509
+ */
510
+ "sippetai-voip-widget-panel": Partial<
511
+ SippetAIVoipWidgetPanelProps &
512
+ BaseProps<SippetAIVoipWidgetPanel> &
513
+ BaseEvents
514
+ >;
515
+
516
+ /**
517
+ *
518
+ *
519
+ * ## Attributes & Properties
520
+ *
521
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
522
+ *
523
+ * - `dialNumber`: undefined
524
+ * - `sipStatus`: undefined
525
+ * - `callState`: undefined
526
+ * - `callSeconds`: undefined
527
+ * - `isMuted`: undefined
528
+ * - `isHeld`: undefined
529
+ *
530
+ * ## Events
531
+ *
532
+ * Events that will be emitted by the component.
533
+ *
534
+ * - `name`: undefined
535
+ */
536
+ "sippetai-voip-widget-phone-tab": Partial<
537
+ SippetAIVoipWidgetPhoneTabProps &
538
+ BaseProps<SippetAIVoipWidgetPhoneTab> &
539
+ BaseEvents
540
+ >;
541
+
542
+ /**
543
+ *
544
+ *
545
+ * ## Attributes & Properties
546
+ *
547
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
548
+ *
549
+ * - `queuedCalls`: undefined
550
+ *
551
+ * ## Events
552
+ *
553
+ * Events that will be emitted by the component.
554
+ *
555
+ * - `name`: undefined
556
+ */
557
+ "sippetai-voip-widget-queue-tab": Partial<
558
+ SippetAIVoipWidgetQueueTabProps &
559
+ BaseProps<SippetAIVoipWidgetQueueTab> &
560
+ BaseEvents
561
+ >;
562
+
563
+ /**
564
+ *
565
+ *
566
+ * ## Attributes & Properties
567
+ *
568
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
569
+ *
570
+ * - `contacts`: undefined
571
+ *
572
+ * ## Events
573
+ *
574
+ * Events that will be emitted by the component.
575
+ *
576
+ * - `name`: undefined
577
+ */
578
+ "sippetai-voip-widget-contacts-tab": Partial<
579
+ SippetAIVoipWidgetContactsTabProps &
580
+ BaseProps<SippetAIVoipWidgetContactsTab> &
581
+ BaseEvents
582
+ >;
583
+
584
+ /**
585
+ *
586
+ *
587
+ * ## Attributes & Properties
588
+ *
589
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
590
+ *
591
+ * - `history`: undefined
592
+ */
593
+ "sippetai-voip-widget-history-tab": Partial<
594
+ SippetAIVoipWidgetHistoryTabProps &
595
+ BaseProps<SippetAIVoipWidgetHistoryTab> &
596
+ BaseEvents
597
+ >;
598
+
599
+ /**
600
+ *
601
+ *
602
+ * ## Attributes & Properties
603
+ *
604
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
605
+ *
606
+ * - `userEmail`: undefined
607
+ * - `audioInputs`: undefined
608
+ * - `audioOutputs`: undefined
609
+ * - `selectedMicId`: undefined
610
+ * - `selectedSpeakerId`: undefined
611
+ * - `hasMediaPermission`: undefined
612
+ * - `sipStatus`: undefined
613
+ *
614
+ * ## Events
615
+ *
616
+ * Events that will be emitted by the component.
617
+ *
618
+ * - `name`: undefined
619
+ */
620
+ "sippetai-voip-widget-settings-tab": Partial<
621
+ SippetAIVoipWidgetSettingsTabProps &
622
+ BaseProps<SippetAIVoipWidgetSettingsTab> &
623
+ BaseEvents
624
+ >;
625
+
626
+ /**
627
+ * A VoIP widget web component allowing real-time telephony for Sippet AI integrations
628
+ *
629
+ * ## Attributes & Properties
630
+ *
631
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
632
+ *
633
+ * - `api-key`/`apiKey`: undefined
634
+ * - `session-auth`/`sessionAuth`: undefined
635
+ * - `api-origin`/`apiOrigin`: undefined
636
+ * - `sipUrl`: undefined
637
+ * - `sipUser`: undefined
638
+ * - `sip-user-id`/`sipUserId`: undefined
639
+ * - `sipPassword`: undefined
640
+ * - `sipWebSocketUrl`: undefined
641
+ * - `userName`: undefined
642
+ * - `userEmail`: undefined
643
+ * - `availability`: undefined
644
+ * - `queueCount`: undefined
645
+ * - `incomingCall`: undefined
646
+ * - `incomingCallerName`: undefined
647
+ * - `incomingFromQueue`: undefined
648
+ * - `contacts`: undefined
649
+ * - `history`: undefined
650
+ * - `queuedCalls`: undefined
651
+ * - `open`: undefined
652
+ * - `activeTab`: undefined
653
+ *
654
+ * ## Events
655
+ *
656
+ * Events that will be emitted by the component.
657
+ *
658
+ * - `voip-transfer`: undefined
659
+ * - `voip-call-state`: undefined
660
+ *
661
+ * ## Methods
662
+ *
663
+ * Methods that can be called to access component functionality.
664
+ *
665
+ * - `openPanel(tab: VoipTab = 'phone') => void`: undefined
666
+ * - `callNumber(phoneNumber: string) => void`: undefined
667
+ * - `answerCall() => void`: undefined
668
+ * - `declineCall() => void`: undefined
669
+ * - `toggleHold() => void`: undefined
670
+ * - `transferTo(queue: string) => void`: undefined
671
+ */
672
+ "sippetai-voip-widget": Partial<
673
+ SippetAIVoipWidgetProps & BaseProps<SippetAIVoipWidget> & BaseEvents
674
+ >;
675
+ };
676
+
677
+ export type CustomElementsSolidJs = {
678
+ /**
679
+ *
680
+ *
681
+ * ## Attributes & Properties
682
+ *
683
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
684
+ *
685
+ * - `open`: undefined
686
+ * - `queueCount`: undefined
687
+ * - `incomingCall`: undefined
688
+ * - `incomingFromQueue`: undefined
689
+ * - `incomingCallerName`: undefined
690
+ *
691
+ * ## Events
692
+ *
693
+ * Events that will be emitted by the component.
694
+ *
695
+ * - `name`: undefined
696
+ */
697
+ "sippetai-voip-widget-launcher": Partial<
698
+ SippetAIVoipWidgetLauncherProps &
699
+ SippetAIVoipWidgetLauncherSolidJsProps &
700
+ BaseProps<SippetAIVoipWidgetLauncher> &
701
+ BaseEvents
702
+ >;
703
+
704
+ /**
705
+ *
706
+ *
707
+ * ## Attributes & Properties
708
+ *
709
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
710
+ *
711
+ * - `userName`: undefined
712
+ * - `availability`: undefined
713
+ * - `activeTab`: undefined
714
+ * - `incomingCall`: undefined
715
+ * - `incomingFromQueue`: undefined
716
+ * - `incomingCallerName`: undefined
717
+ *
718
+ * ## Events
719
+ *
720
+ * Events that will be emitted by the component.
721
+ *
722
+ * - `name`: undefined
723
+ */
724
+ "sippetai-voip-widget-panel": Partial<
725
+ SippetAIVoipWidgetPanelProps &
726
+ SippetAIVoipWidgetPanelSolidJsProps &
727
+ BaseProps<SippetAIVoipWidgetPanel> &
728
+ BaseEvents
729
+ >;
730
+
731
+ /**
732
+ *
733
+ *
734
+ * ## Attributes & Properties
735
+ *
736
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
737
+ *
738
+ * - `dialNumber`: undefined
739
+ * - `sipStatus`: undefined
740
+ * - `callState`: undefined
741
+ * - `callSeconds`: undefined
742
+ * - `isMuted`: undefined
743
+ * - `isHeld`: undefined
744
+ *
745
+ * ## Events
746
+ *
747
+ * Events that will be emitted by the component.
748
+ *
749
+ * - `name`: undefined
750
+ */
751
+ "sippetai-voip-widget-phone-tab": Partial<
752
+ SippetAIVoipWidgetPhoneTabProps &
753
+ SippetAIVoipWidgetPhoneTabSolidJsProps &
754
+ BaseProps<SippetAIVoipWidgetPhoneTab> &
755
+ BaseEvents
756
+ >;
757
+
758
+ /**
759
+ *
760
+ *
761
+ * ## Attributes & Properties
762
+ *
763
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
764
+ *
765
+ * - `queuedCalls`: undefined
766
+ *
767
+ * ## Events
768
+ *
769
+ * Events that will be emitted by the component.
770
+ *
771
+ * - `name`: undefined
772
+ */
773
+ "sippetai-voip-widget-queue-tab": Partial<
774
+ SippetAIVoipWidgetQueueTabProps &
775
+ SippetAIVoipWidgetQueueTabSolidJsProps &
776
+ BaseProps<SippetAIVoipWidgetQueueTab> &
777
+ BaseEvents
778
+ >;
779
+
780
+ /**
781
+ *
782
+ *
783
+ * ## Attributes & Properties
784
+ *
785
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
786
+ *
787
+ * - `contacts`: undefined
788
+ *
789
+ * ## Events
790
+ *
791
+ * Events that will be emitted by the component.
792
+ *
793
+ * - `name`: undefined
794
+ */
795
+ "sippetai-voip-widget-contacts-tab": Partial<
796
+ SippetAIVoipWidgetContactsTabProps &
797
+ SippetAIVoipWidgetContactsTabSolidJsProps &
798
+ BaseProps<SippetAIVoipWidgetContactsTab> &
799
+ BaseEvents
800
+ >;
801
+
802
+ /**
803
+ *
804
+ *
805
+ * ## Attributes & Properties
806
+ *
807
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
808
+ *
809
+ * - `history`: undefined
810
+ */
811
+ "sippetai-voip-widget-history-tab": Partial<
812
+ SippetAIVoipWidgetHistoryTabProps &
813
+ SippetAIVoipWidgetHistoryTabSolidJsProps &
814
+ BaseProps<SippetAIVoipWidgetHistoryTab> &
815
+ BaseEvents
816
+ >;
817
+
818
+ /**
819
+ *
820
+ *
821
+ * ## Attributes & Properties
822
+ *
823
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
824
+ *
825
+ * - `userEmail`: undefined
826
+ * - `audioInputs`: undefined
827
+ * - `audioOutputs`: undefined
828
+ * - `selectedMicId`: undefined
829
+ * - `selectedSpeakerId`: undefined
830
+ * - `hasMediaPermission`: undefined
831
+ * - `sipStatus`: undefined
832
+ *
833
+ * ## Events
834
+ *
835
+ * Events that will be emitted by the component.
836
+ *
837
+ * - `name`: undefined
838
+ */
839
+ "sippetai-voip-widget-settings-tab": Partial<
840
+ SippetAIVoipWidgetSettingsTabProps &
841
+ SippetAIVoipWidgetSettingsTabSolidJsProps &
842
+ BaseProps<SippetAIVoipWidgetSettingsTab> &
843
+ BaseEvents
844
+ >;
845
+
846
+ /**
847
+ * A VoIP widget web component allowing real-time telephony for Sippet AI integrations
848
+ *
849
+ * ## Attributes & Properties
850
+ *
851
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
852
+ *
853
+ * - `api-key`/`apiKey`: undefined
854
+ * - `session-auth`/`sessionAuth`: undefined
855
+ * - `api-origin`/`apiOrigin`: undefined
856
+ * - `sipUrl`: undefined
857
+ * - `sipUser`: undefined
858
+ * - `sip-user-id`/`sipUserId`: undefined
859
+ * - `sipPassword`: undefined
860
+ * - `sipWebSocketUrl`: undefined
861
+ * - `userName`: undefined
862
+ * - `userEmail`: undefined
863
+ * - `availability`: undefined
864
+ * - `queueCount`: undefined
865
+ * - `incomingCall`: undefined
866
+ * - `incomingCallerName`: undefined
867
+ * - `incomingFromQueue`: undefined
868
+ * - `contacts`: undefined
869
+ * - `history`: undefined
870
+ * - `queuedCalls`: undefined
871
+ * - `open`: undefined
872
+ * - `activeTab`: undefined
873
+ *
874
+ * ## Events
875
+ *
876
+ * Events that will be emitted by the component.
877
+ *
878
+ * - `voip-transfer`: undefined
879
+ * - `voip-call-state`: undefined
880
+ *
881
+ * ## Methods
882
+ *
883
+ * Methods that can be called to access component functionality.
884
+ *
885
+ * - `openPanel(tab: VoipTab = 'phone') => void`: undefined
886
+ * - `callNumber(phoneNumber: string) => void`: undefined
887
+ * - `answerCall() => void`: undefined
888
+ * - `declineCall() => void`: undefined
889
+ * - `toggleHold() => void`: undefined
890
+ * - `transferTo(queue: string) => void`: undefined
891
+ */
892
+ "sippetai-voip-widget": Partial<
893
+ SippetAIVoipWidgetProps &
894
+ SippetAIVoipWidgetSolidJsProps &
895
+ BaseProps<SippetAIVoipWidget> &
896
+ BaseEvents
897
+ >;
898
+ };
899
+
900
+ export type CustomCssProperties = {};
901
+
902
+ declare module "react" {
903
+ namespace JSX {
904
+ interface IntrinsicElements extends CustomElements {}
905
+ }
906
+ export interface CSSProperties extends CustomCssProperties {}
907
+ }
908
+
909
+ declare module "preact" {
910
+ namespace JSX {
911
+ interface IntrinsicElements extends CustomElements {}
912
+ }
913
+ export interface CSSProperties extends CustomCssProperties {}
914
+ }
915
+
916
+ declare module "@builder.io/qwik" {
917
+ namespace JSX {
918
+ interface IntrinsicElements extends CustomElements {}
919
+ }
920
+ export interface CSSProperties extends CustomCssProperties {}
921
+ }
922
+
923
+ declare module "@stencil/core" {
924
+ namespace JSX {
925
+ interface IntrinsicElements extends CustomElements {}
926
+ }
927
+ export interface CSSProperties extends CustomCssProperties {}
928
+ }
929
+
930
+ declare module "hono/jsx" {
931
+ namespace JSX {
932
+ interface IntrinsicElements extends CustomElements {}
933
+ }
934
+ export interface CSSProperties extends CustomCssProperties {}
935
+ }
936
+
937
+ declare module "react-native" {
938
+ namespace JSX {
939
+ interface IntrinsicElements extends CustomElements {}
940
+ }
941
+ export interface CSSProperties extends CustomCssProperties {}
942
+ }
943
+
944
+ declare module "solid-js" {
945
+ namespace JSX {
946
+ interface IntrinsicElements extends CustomElementsSolidJs {}
947
+ }
948
+ export interface CSSProperties extends CustomCssProperties {}
949
+ }
950
+
951
+ declare global {
952
+ namespace JSX {
953
+ interface IntrinsicElements extends CustomElements {}
954
+ }
955
+ export interface CSSProperties extends CustomCssProperties {}
956
+ }