@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,2241 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "src/components/index.ts",
8
+ "declarations": [],
9
+ "exports": [
10
+ {
11
+ "kind": "js",
12
+ "name": "*",
13
+ "declaration": {
14
+ "name": "*",
15
+ "module": "src/components/voip-widget/index.js"
16
+ }
17
+ }
18
+ ]
19
+ },
20
+ {
21
+ "kind": "javascript-module",
22
+ "path": "src/components/voip-widget/index.ts",
23
+ "declarations": [],
24
+ "exports": [
25
+ {
26
+ "kind": "js",
27
+ "name": "*",
28
+ "declaration": {
29
+ "name": "*",
30
+ "module": "src/components/voip-widget/voip-widget.js"
31
+ }
32
+ },
33
+ {
34
+ "kind": "custom-element-definition",
35
+ "name": "sippetai-voip-widget",
36
+ "declaration": {
37
+ "name": "SippetAIVoipWidget",
38
+ "module": "/src/components/voip-widget/voip-widget.js"
39
+ }
40
+ }
41
+ ]
42
+ },
43
+ {
44
+ "kind": "javascript-module",
45
+ "path": "src/components/voip-widget/voip-widget-contacts-tab.ts",
46
+ "declarations": [
47
+ {
48
+ "kind": "class",
49
+ "description": "",
50
+ "name": "SippetAIVoipWidgetContactsTab",
51
+ "members": [
52
+ {
53
+ "kind": "field",
54
+ "name": "contacts",
55
+ "type": {
56
+ "text": "Contact[]"
57
+ },
58
+ "default": "[]",
59
+ "attribute": "contacts"
60
+ },
61
+ {
62
+ "kind": "method",
63
+ "name": "emit",
64
+ "privacy": "private",
65
+ "parameters": [
66
+ {
67
+ "name": "name",
68
+ "type": {
69
+ "text": "string"
70
+ }
71
+ },
72
+ {
73
+ "name": "detail",
74
+ "optional": true,
75
+ "type": {
76
+ "text": "unknown"
77
+ }
78
+ }
79
+ ]
80
+ }
81
+ ],
82
+ "events": [
83
+ {
84
+ "name": "name",
85
+ "type": {
86
+ "text": "CustomEvent"
87
+ }
88
+ }
89
+ ],
90
+ "attributes": [
91
+ {
92
+ "name": "contacts",
93
+ "type": {
94
+ "text": "Contact[]"
95
+ },
96
+ "default": "[]",
97
+ "fieldName": "contacts",
98
+ "propName": "contacts"
99
+ }
100
+ ],
101
+ "superclass": {
102
+ "name": "TwLitElement",
103
+ "module": "src/components/voip-widget/voip-widget-contacts-tab.ts"
104
+ },
105
+ "tagName": "sippetai-voip-widget-contacts-tab",
106
+ "customElement": true,
107
+ "modulePath": "src/components/voip-widget/voip-widget-contacts-tab.ts",
108
+ "definitionPath": "src/components/voip-widget/voip-widget-contacts-tab.ts"
109
+ }
110
+ ],
111
+ "exports": [
112
+ {
113
+ "kind": "custom-element-definition",
114
+ "name": "sippetai-voip-widget-contacts-tab",
115
+ "declaration": {
116
+ "name": "SippetAIVoipWidgetContactsTab",
117
+ "module": "src/components/voip-widget/voip-widget-contacts-tab.ts"
118
+ }
119
+ },
120
+ {
121
+ "kind": "js",
122
+ "name": "SippetAIVoipWidgetContactsTab",
123
+ "declaration": {
124
+ "name": "SippetAIVoipWidgetContactsTab",
125
+ "module": "src/components/voip-widget/voip-widget-contacts-tab.ts"
126
+ }
127
+ }
128
+ ]
129
+ },
130
+ {
131
+ "kind": "javascript-module",
132
+ "path": "src/components/voip-widget/voip-widget-history-tab.ts",
133
+ "declarations": [
134
+ {
135
+ "kind": "class",
136
+ "description": "",
137
+ "name": "SippetAIVoipWidgetHistoryTab",
138
+ "members": [
139
+ {
140
+ "kind": "field",
141
+ "name": "history",
142
+ "type": {
143
+ "text": "HistoryEntry[]"
144
+ },
145
+ "default": "[]",
146
+ "attribute": "history"
147
+ }
148
+ ],
149
+ "attributes": [
150
+ {
151
+ "name": "history",
152
+ "type": {
153
+ "text": "HistoryEntry[]"
154
+ },
155
+ "default": "[]",
156
+ "fieldName": "history",
157
+ "propName": "history"
158
+ }
159
+ ],
160
+ "superclass": {
161
+ "name": "TwLitElement",
162
+ "module": "src/components/voip-widget/voip-widget-history-tab.ts"
163
+ },
164
+ "tagName": "sippetai-voip-widget-history-tab",
165
+ "customElement": true,
166
+ "modulePath": "src/components/voip-widget/voip-widget-history-tab.ts",
167
+ "definitionPath": "src/components/voip-widget/voip-widget-history-tab.ts"
168
+ }
169
+ ],
170
+ "exports": [
171
+ {
172
+ "kind": "custom-element-definition",
173
+ "name": "sippetai-voip-widget-history-tab",
174
+ "declaration": {
175
+ "name": "SippetAIVoipWidgetHistoryTab",
176
+ "module": "src/components/voip-widget/voip-widget-history-tab.ts"
177
+ }
178
+ },
179
+ {
180
+ "kind": "js",
181
+ "name": "SippetAIVoipWidgetHistoryTab",
182
+ "declaration": {
183
+ "name": "SippetAIVoipWidgetHistoryTab",
184
+ "module": "src/components/voip-widget/voip-widget-history-tab.ts"
185
+ }
186
+ }
187
+ ]
188
+ },
189
+ {
190
+ "kind": "javascript-module",
191
+ "path": "src/components/voip-widget/voip-widget-launcher.ts",
192
+ "declarations": [
193
+ {
194
+ "kind": "class",
195
+ "description": "",
196
+ "name": "SippetAIVoipWidgetLauncher",
197
+ "members": [
198
+ {
199
+ "kind": "method",
200
+ "name": "emit",
201
+ "privacy": "private",
202
+ "parameters": [
203
+ {
204
+ "name": "name",
205
+ "type": {
206
+ "text": "string"
207
+ }
208
+ },
209
+ {
210
+ "name": "detail",
211
+ "optional": true,
212
+ "type": {
213
+ "text": "unknown"
214
+ }
215
+ }
216
+ ]
217
+ },
218
+ {
219
+ "kind": "field",
220
+ "name": "incomingCall",
221
+ "type": {
222
+ "text": "boolean"
223
+ },
224
+ "default": "false",
225
+ "attribute": "incomingCall"
226
+ },
227
+ {
228
+ "kind": "field",
229
+ "name": "incomingCallerName",
230
+ "type": {
231
+ "text": "string"
232
+ },
233
+ "default": "'Colleague'",
234
+ "attribute": "incomingCallerName"
235
+ },
236
+ {
237
+ "kind": "field",
238
+ "name": "incomingFromQueue",
239
+ "type": {
240
+ "text": "boolean"
241
+ },
242
+ "default": "false",
243
+ "attribute": "incomingFromQueue"
244
+ },
245
+ {
246
+ "kind": "field",
247
+ "name": "open",
248
+ "type": {
249
+ "text": "boolean"
250
+ },
251
+ "default": "false",
252
+ "attribute": "open"
253
+ },
254
+ {
255
+ "kind": "field",
256
+ "name": "queueCount",
257
+ "type": {
258
+ "text": "number"
259
+ },
260
+ "default": "0",
261
+ "attribute": "queueCount"
262
+ }
263
+ ],
264
+ "events": [
265
+ {
266
+ "name": "name",
267
+ "type": {
268
+ "text": "CustomEvent"
269
+ }
270
+ }
271
+ ],
272
+ "attributes": [
273
+ {
274
+ "name": "incomingCall",
275
+ "type": {
276
+ "text": "boolean"
277
+ },
278
+ "default": "false",
279
+ "fieldName": "incomingCall",
280
+ "propName": "incomingcall"
281
+ },
282
+ {
283
+ "name": "incomingCallerName",
284
+ "type": {
285
+ "text": "string"
286
+ },
287
+ "default": "'Colleague'",
288
+ "fieldName": "incomingCallerName",
289
+ "propName": "incomingcallername"
290
+ },
291
+ {
292
+ "name": "incomingFromQueue",
293
+ "type": {
294
+ "text": "boolean"
295
+ },
296
+ "default": "false",
297
+ "fieldName": "incomingFromQueue",
298
+ "propName": "incomingfromqueue"
299
+ },
300
+ {
301
+ "name": "open",
302
+ "type": {
303
+ "text": "boolean"
304
+ },
305
+ "default": "false",
306
+ "fieldName": "open",
307
+ "propName": "open"
308
+ },
309
+ {
310
+ "name": "queueCount",
311
+ "type": {
312
+ "text": "number"
313
+ },
314
+ "default": "0",
315
+ "fieldName": "queueCount",
316
+ "propName": "queuecount"
317
+ }
318
+ ],
319
+ "superclass": {
320
+ "name": "TwLitElement",
321
+ "module": "src/components/voip-widget/voip-widget-launcher.ts"
322
+ },
323
+ "tagName": "sippetai-voip-widget-launcher",
324
+ "customElement": true,
325
+ "modulePath": "src/components/voip-widget/voip-widget-launcher.ts",
326
+ "definitionPath": "src/components/voip-widget/voip-widget-launcher.ts"
327
+ }
328
+ ],
329
+ "exports": [
330
+ {
331
+ "kind": "custom-element-definition",
332
+ "name": "sippetai-voip-widget-launcher",
333
+ "declaration": {
334
+ "name": "SippetAIVoipWidgetLauncher",
335
+ "module": "src/components/voip-widget/voip-widget-launcher.ts"
336
+ }
337
+ },
338
+ {
339
+ "kind": "js",
340
+ "name": "SippetAIVoipWidgetLauncher",
341
+ "declaration": {
342
+ "name": "SippetAIVoipWidgetLauncher",
343
+ "module": "src/components/voip-widget/voip-widget-launcher.ts"
344
+ }
345
+ }
346
+ ]
347
+ },
348
+ {
349
+ "kind": "javascript-module",
350
+ "path": "src/components/voip-widget/voip-widget-panel.ts",
351
+ "declarations": [
352
+ {
353
+ "kind": "class",
354
+ "description": "",
355
+ "name": "SippetAIVoipWidgetPanel",
356
+ "members": [
357
+ {
358
+ "kind": "field",
359
+ "name": "activeTab",
360
+ "type": {
361
+ "text": "VoipTab"
362
+ },
363
+ "default": "'phone'",
364
+ "attribute": "activeTab",
365
+ "parsedType": {
366
+ "text": "'phone' | 'queue' | 'contacts' | 'history' | 'settings'"
367
+ }
368
+ },
369
+ {
370
+ "kind": "field",
371
+ "name": "availability",
372
+ "type": {
373
+ "text": "string"
374
+ },
375
+ "default": "'available'",
376
+ "attribute": "availability"
377
+ },
378
+ {
379
+ "kind": "method",
380
+ "name": "emit",
381
+ "privacy": "private",
382
+ "parameters": [
383
+ {
384
+ "name": "name",
385
+ "type": {
386
+ "text": "string"
387
+ }
388
+ },
389
+ {
390
+ "name": "detail",
391
+ "optional": true,
392
+ "type": {
393
+ "text": "unknown"
394
+ }
395
+ }
396
+ ]
397
+ },
398
+ {
399
+ "kind": "field",
400
+ "name": "incomingCall",
401
+ "type": {
402
+ "text": "boolean"
403
+ },
404
+ "default": "false",
405
+ "attribute": "incomingCall"
406
+ },
407
+ {
408
+ "kind": "field",
409
+ "name": "incomingCallerName",
410
+ "type": {
411
+ "text": "string"
412
+ },
413
+ "default": "'Colleague'",
414
+ "attribute": "incomingCallerName"
415
+ },
416
+ {
417
+ "kind": "field",
418
+ "name": "incomingFromQueue",
419
+ "type": {
420
+ "text": "boolean"
421
+ },
422
+ "default": "false",
423
+ "attribute": "incomingFromQueue"
424
+ },
425
+ {
426
+ "kind": "field",
427
+ "name": "showAvailability",
428
+ "type": {
429
+ "text": "boolean"
430
+ },
431
+ "privacy": "private",
432
+ "default": "false"
433
+ },
434
+ {
435
+ "kind": "field",
436
+ "name": "userName",
437
+ "type": {
438
+ "text": "string"
439
+ },
440
+ "default": "'Agent Parker'",
441
+ "attribute": "userName"
442
+ }
443
+ ],
444
+ "events": [
445
+ {
446
+ "name": "name",
447
+ "type": {
448
+ "text": "CustomEvent"
449
+ }
450
+ }
451
+ ],
452
+ "attributes": [
453
+ {
454
+ "name": "activeTab",
455
+ "type": {
456
+ "text": "VoipTab"
457
+ },
458
+ "default": "'phone'",
459
+ "fieldName": "activeTab",
460
+ "parsedType": {
461
+ "text": "'phone' | 'queue' | 'contacts' | 'history' | 'settings'"
462
+ },
463
+ "propName": "activetab"
464
+ },
465
+ {
466
+ "name": "availability",
467
+ "type": {
468
+ "text": "string"
469
+ },
470
+ "default": "'available'",
471
+ "fieldName": "availability",
472
+ "propName": "availability"
473
+ },
474
+ {
475
+ "name": "incomingCall",
476
+ "type": {
477
+ "text": "boolean"
478
+ },
479
+ "default": "false",
480
+ "fieldName": "incomingCall",
481
+ "propName": "incomingcall"
482
+ },
483
+ {
484
+ "name": "incomingCallerName",
485
+ "type": {
486
+ "text": "string"
487
+ },
488
+ "default": "'Colleague'",
489
+ "fieldName": "incomingCallerName",
490
+ "propName": "incomingcallername"
491
+ },
492
+ {
493
+ "name": "incomingFromQueue",
494
+ "type": {
495
+ "text": "boolean"
496
+ },
497
+ "default": "false",
498
+ "fieldName": "incomingFromQueue",
499
+ "propName": "incomingfromqueue"
500
+ },
501
+ {
502
+ "name": "userName",
503
+ "type": {
504
+ "text": "string"
505
+ },
506
+ "default": "'Agent Parker'",
507
+ "fieldName": "userName",
508
+ "propName": "username"
509
+ }
510
+ ],
511
+ "superclass": {
512
+ "name": "TwLitElement",
513
+ "module": "src/components/voip-widget/voip-widget-panel.ts"
514
+ },
515
+ "tagName": "sippetai-voip-widget-panel",
516
+ "customElement": true,
517
+ "modulePath": "src/components/voip-widget/voip-widget-panel.ts",
518
+ "definitionPath": "src/components/voip-widget/voip-widget-panel.ts"
519
+ }
520
+ ],
521
+ "exports": [
522
+ {
523
+ "kind": "custom-element-definition",
524
+ "name": "sippetai-voip-widget-panel",
525
+ "declaration": {
526
+ "name": "SippetAIVoipWidgetPanel",
527
+ "module": "src/components/voip-widget/voip-widget-panel.ts"
528
+ }
529
+ },
530
+ {
531
+ "kind": "js",
532
+ "name": "SippetAIVoipWidgetPanel",
533
+ "declaration": {
534
+ "name": "SippetAIVoipWidgetPanel",
535
+ "module": "src/components/voip-widget/voip-widget-panel.ts"
536
+ }
537
+ }
538
+ ]
539
+ },
540
+ {
541
+ "kind": "javascript-module",
542
+ "path": "src/components/voip-widget/voip-widget-phone-tab.ts",
543
+ "declarations": [
544
+ {
545
+ "kind": "class",
546
+ "description": "",
547
+ "name": "SippetAIVoipWidgetPhoneTab",
548
+ "members": [
549
+ {
550
+ "kind": "field",
551
+ "name": "callSeconds",
552
+ "type": {
553
+ "text": "number"
554
+ },
555
+ "default": "0",
556
+ "attribute": "callSeconds"
557
+ },
558
+ {
559
+ "kind": "field",
560
+ "name": "callState",
561
+ "type": {
562
+ "text": "CallState"
563
+ },
564
+ "default": "'idle'",
565
+ "attribute": "callState",
566
+ "parsedType": {
567
+ "text": "'idle' | 'incoming' | 'outgoing' | 'active' | 'held'"
568
+ }
569
+ },
570
+ {
571
+ "kind": "field",
572
+ "name": "dialNumber",
573
+ "type": {
574
+ "text": "string"
575
+ },
576
+ "default": "''",
577
+ "attribute": "dialNumber"
578
+ },
579
+ {
580
+ "kind": "method",
581
+ "name": "emit",
582
+ "privacy": "private",
583
+ "parameters": [
584
+ {
585
+ "name": "name",
586
+ "type": {
587
+ "text": "string"
588
+ }
589
+ },
590
+ {
591
+ "name": "detail",
592
+ "optional": true,
593
+ "type": {
594
+ "text": "unknown"
595
+ }
596
+ }
597
+ ]
598
+ },
599
+ {
600
+ "kind": "field",
601
+ "name": "isHeld",
602
+ "type": {
603
+ "text": "boolean"
604
+ },
605
+ "default": "false",
606
+ "attribute": "isHeld"
607
+ },
608
+ {
609
+ "kind": "field",
610
+ "name": "isMuted",
611
+ "type": {
612
+ "text": "boolean"
613
+ },
614
+ "default": "false",
615
+ "attribute": "isMuted"
616
+ },
617
+ {
618
+ "kind": "method",
619
+ "name": "playDtmfTone",
620
+ "privacy": "private",
621
+ "parameters": [
622
+ {
623
+ "name": "digit",
624
+ "type": {
625
+ "text": "string"
626
+ }
627
+ }
628
+ ]
629
+ },
630
+ {
631
+ "kind": "field",
632
+ "name": "sipStatus",
633
+ "type": {
634
+ "text": "SipStatus"
635
+ },
636
+ "default": "'idle'",
637
+ "attribute": "sipStatus",
638
+ "parsedType": {
639
+ "text": "'idle' | 'connecting' | 'connected' | 'error'"
640
+ }
641
+ }
642
+ ],
643
+ "events": [
644
+ {
645
+ "name": "name",
646
+ "type": {
647
+ "text": "CustomEvent"
648
+ }
649
+ }
650
+ ],
651
+ "attributes": [
652
+ {
653
+ "name": "callSeconds",
654
+ "type": {
655
+ "text": "number"
656
+ },
657
+ "default": "0",
658
+ "fieldName": "callSeconds",
659
+ "propName": "callseconds"
660
+ },
661
+ {
662
+ "name": "callState",
663
+ "type": {
664
+ "text": "CallState"
665
+ },
666
+ "default": "'idle'",
667
+ "fieldName": "callState",
668
+ "parsedType": {
669
+ "text": "'idle' | 'incoming' | 'outgoing' | 'active' | 'held'"
670
+ },
671
+ "propName": "callstate"
672
+ },
673
+ {
674
+ "name": "dialNumber",
675
+ "type": {
676
+ "text": "string"
677
+ },
678
+ "default": "''",
679
+ "fieldName": "dialNumber",
680
+ "propName": "dialnumber"
681
+ },
682
+ {
683
+ "name": "isHeld",
684
+ "type": {
685
+ "text": "boolean"
686
+ },
687
+ "default": "false",
688
+ "fieldName": "isHeld",
689
+ "propName": "isheld"
690
+ },
691
+ {
692
+ "name": "isMuted",
693
+ "type": {
694
+ "text": "boolean"
695
+ },
696
+ "default": "false",
697
+ "fieldName": "isMuted",
698
+ "propName": "ismuted"
699
+ },
700
+ {
701
+ "name": "sipStatus",
702
+ "type": {
703
+ "text": "SipStatus"
704
+ },
705
+ "default": "'idle'",
706
+ "fieldName": "sipStatus",
707
+ "parsedType": {
708
+ "text": "'idle' | 'connecting' | 'connected' | 'error'"
709
+ },
710
+ "propName": "sipstatus"
711
+ }
712
+ ],
713
+ "superclass": {
714
+ "name": "TwLitElement",
715
+ "module": "src/components/voip-widget/voip-widget-phone-tab.ts"
716
+ },
717
+ "tagName": "sippetai-voip-widget-phone-tab",
718
+ "customElement": true,
719
+ "modulePath": "src/components/voip-widget/voip-widget-phone-tab.ts",
720
+ "definitionPath": "src/components/voip-widget/voip-widget-phone-tab.ts"
721
+ }
722
+ ],
723
+ "exports": [
724
+ {
725
+ "kind": "custom-element-definition",
726
+ "name": "sippetai-voip-widget-phone-tab",
727
+ "declaration": {
728
+ "name": "SippetAIVoipWidgetPhoneTab",
729
+ "module": "src/components/voip-widget/voip-widget-phone-tab.ts"
730
+ }
731
+ },
732
+ {
733
+ "kind": "js",
734
+ "name": "SippetAIVoipWidgetPhoneTab",
735
+ "declaration": {
736
+ "name": "SippetAIVoipWidgetPhoneTab",
737
+ "module": "src/components/voip-widget/voip-widget-phone-tab.ts"
738
+ }
739
+ }
740
+ ]
741
+ },
742
+ {
743
+ "kind": "javascript-module",
744
+ "path": "src/components/voip-widget/voip-widget-queue-tab.ts",
745
+ "declarations": [
746
+ {
747
+ "kind": "class",
748
+ "description": "",
749
+ "name": "SippetAIVoipWidgetQueueTab",
750
+ "members": [
751
+ {
752
+ "kind": "method",
753
+ "name": "emit",
754
+ "privacy": "private",
755
+ "parameters": [
756
+ {
757
+ "name": "name",
758
+ "type": {
759
+ "text": "string"
760
+ }
761
+ },
762
+ {
763
+ "name": "detail",
764
+ "optional": true,
765
+ "type": {
766
+ "text": "unknown"
767
+ }
768
+ }
769
+ ]
770
+ },
771
+ {
772
+ "kind": "field",
773
+ "name": "queuedCalls",
774
+ "type": {
775
+ "text": "QueuedCall[]"
776
+ },
777
+ "default": "[]",
778
+ "attribute": "queuedCalls"
779
+ }
780
+ ],
781
+ "events": [
782
+ {
783
+ "name": "name",
784
+ "type": {
785
+ "text": "CustomEvent"
786
+ }
787
+ }
788
+ ],
789
+ "attributes": [
790
+ {
791
+ "name": "queuedCalls",
792
+ "type": {
793
+ "text": "QueuedCall[]"
794
+ },
795
+ "default": "[]",
796
+ "fieldName": "queuedCalls",
797
+ "propName": "queuedcalls"
798
+ }
799
+ ],
800
+ "superclass": {
801
+ "name": "TwLitElement",
802
+ "module": "src/components/voip-widget/voip-widget-queue-tab.ts"
803
+ },
804
+ "tagName": "sippetai-voip-widget-queue-tab",
805
+ "customElement": true,
806
+ "modulePath": "src/components/voip-widget/voip-widget-queue-tab.ts",
807
+ "definitionPath": "src/components/voip-widget/voip-widget-queue-tab.ts"
808
+ }
809
+ ],
810
+ "exports": [
811
+ {
812
+ "kind": "custom-element-definition",
813
+ "name": "sippetai-voip-widget-queue-tab",
814
+ "declaration": {
815
+ "name": "SippetAIVoipWidgetQueueTab",
816
+ "module": "src/components/voip-widget/voip-widget-queue-tab.ts"
817
+ }
818
+ },
819
+ {
820
+ "kind": "js",
821
+ "name": "SippetAIVoipWidgetQueueTab",
822
+ "declaration": {
823
+ "name": "SippetAIVoipWidgetQueueTab",
824
+ "module": "src/components/voip-widget/voip-widget-queue-tab.ts"
825
+ }
826
+ }
827
+ ]
828
+ },
829
+ {
830
+ "kind": "javascript-module",
831
+ "path": "src/components/voip-widget/voip-widget-settings-tab.ts",
832
+ "declarations": [
833
+ {
834
+ "kind": "class",
835
+ "description": "",
836
+ "name": "SippetAIVoipWidgetSettingsTab",
837
+ "members": [
838
+ {
839
+ "kind": "field",
840
+ "name": "audioInputs",
841
+ "type": {
842
+ "text": "MediaDeviceOption[]"
843
+ },
844
+ "default": "[]",
845
+ "attribute": "audioInputs"
846
+ },
847
+ {
848
+ "kind": "field",
849
+ "name": "audioOutputs",
850
+ "type": {
851
+ "text": "MediaDeviceOption[]"
852
+ },
853
+ "default": "[]",
854
+ "attribute": "audioOutputs"
855
+ },
856
+ {
857
+ "kind": "method",
858
+ "name": "emit",
859
+ "privacy": "private",
860
+ "parameters": [
861
+ {
862
+ "name": "name",
863
+ "type": {
864
+ "text": "string"
865
+ }
866
+ },
867
+ {
868
+ "name": "detail",
869
+ "optional": true,
870
+ "type": {
871
+ "text": "unknown"
872
+ }
873
+ }
874
+ ]
875
+ },
876
+ {
877
+ "kind": "field",
878
+ "name": "hasMediaPermission",
879
+ "type": {
880
+ "text": "boolean"
881
+ },
882
+ "default": "false",
883
+ "attribute": "hasMediaPermission"
884
+ },
885
+ {
886
+ "kind": "field",
887
+ "name": "selectedMicId",
888
+ "type": {
889
+ "text": "string"
890
+ },
891
+ "default": "''",
892
+ "attribute": "selectedMicId"
893
+ },
894
+ {
895
+ "kind": "field",
896
+ "name": "selectedSpeakerId",
897
+ "type": {
898
+ "text": "string"
899
+ },
900
+ "default": "''",
901
+ "attribute": "selectedSpeakerId"
902
+ },
903
+ {
904
+ "kind": "field",
905
+ "name": "sipStatus",
906
+ "type": {
907
+ "text": "SipStatus"
908
+ },
909
+ "default": "'idle'",
910
+ "attribute": "sipStatus",
911
+ "parsedType": {
912
+ "text": "'idle' | 'connecting' | 'connected' | 'error'"
913
+ }
914
+ },
915
+ {
916
+ "kind": "field",
917
+ "name": "userEmail",
918
+ "type": {
919
+ "text": "string"
920
+ },
921
+ "default": "''",
922
+ "attribute": "userEmail"
923
+ }
924
+ ],
925
+ "events": [
926
+ {
927
+ "name": "name",
928
+ "type": {
929
+ "text": "CustomEvent"
930
+ }
931
+ }
932
+ ],
933
+ "attributes": [
934
+ {
935
+ "name": "audioInputs",
936
+ "type": {
937
+ "text": "MediaDeviceOption[]"
938
+ },
939
+ "default": "[]",
940
+ "fieldName": "audioInputs",
941
+ "propName": "audioinputs"
942
+ },
943
+ {
944
+ "name": "audioOutputs",
945
+ "type": {
946
+ "text": "MediaDeviceOption[]"
947
+ },
948
+ "default": "[]",
949
+ "fieldName": "audioOutputs",
950
+ "propName": "audiooutputs"
951
+ },
952
+ {
953
+ "name": "hasMediaPermission",
954
+ "type": {
955
+ "text": "boolean"
956
+ },
957
+ "default": "false",
958
+ "fieldName": "hasMediaPermission",
959
+ "propName": "hasmediapermission"
960
+ },
961
+ {
962
+ "name": "selectedMicId",
963
+ "type": {
964
+ "text": "string"
965
+ },
966
+ "default": "''",
967
+ "fieldName": "selectedMicId",
968
+ "propName": "selectedmicid"
969
+ },
970
+ {
971
+ "name": "selectedSpeakerId",
972
+ "type": {
973
+ "text": "string"
974
+ },
975
+ "default": "''",
976
+ "fieldName": "selectedSpeakerId",
977
+ "propName": "selectedspeakerid"
978
+ },
979
+ {
980
+ "name": "sipStatus",
981
+ "type": {
982
+ "text": "SipStatus"
983
+ },
984
+ "default": "'idle'",
985
+ "fieldName": "sipStatus",
986
+ "parsedType": {
987
+ "text": "'idle' | 'connecting' | 'connected' | 'error'"
988
+ },
989
+ "propName": "sipstatus"
990
+ },
991
+ {
992
+ "name": "userEmail",
993
+ "type": {
994
+ "text": "string"
995
+ },
996
+ "default": "''",
997
+ "fieldName": "userEmail",
998
+ "propName": "useremail"
999
+ }
1000
+ ],
1001
+ "superclass": {
1002
+ "name": "TwLitElement",
1003
+ "module": "src/components/voip-widget/voip-widget-settings-tab.ts"
1004
+ },
1005
+ "tagName": "sippetai-voip-widget-settings-tab",
1006
+ "customElement": true,
1007
+ "modulePath": "src/components/voip-widget/voip-widget-settings-tab.ts",
1008
+ "definitionPath": "src/components/voip-widget/voip-widget-settings-tab.ts"
1009
+ }
1010
+ ],
1011
+ "exports": [
1012
+ {
1013
+ "kind": "custom-element-definition",
1014
+ "name": "sippetai-voip-widget-settings-tab",
1015
+ "declaration": {
1016
+ "name": "SippetAIVoipWidgetSettingsTab",
1017
+ "module": "src/components/voip-widget/voip-widget-settings-tab.ts"
1018
+ }
1019
+ },
1020
+ {
1021
+ "kind": "js",
1022
+ "name": "SippetAIVoipWidgetSettingsTab",
1023
+ "declaration": {
1024
+ "name": "SippetAIVoipWidgetSettingsTab",
1025
+ "module": "src/components/voip-widget/voip-widget-settings-tab.ts"
1026
+ }
1027
+ }
1028
+ ]
1029
+ },
1030
+ {
1031
+ "kind": "javascript-module",
1032
+ "path": "src/components/voip-widget/voip-widget.ts",
1033
+ "declarations": [
1034
+ {
1035
+ "kind": "variable",
1036
+ "name": "aor",
1037
+ "default": "`sip:${this.sipUser}@${this.sipUrl}`"
1038
+ },
1039
+ {
1040
+ "kind": "class",
1041
+ "description": "A VoIP widget web component allowing real-time telephony for Sippet AI integrations",
1042
+ "name": "SippetAIVoipWidget",
1043
+ "members": [
1044
+ {
1045
+ "kind": "method",
1046
+ "name": "acceptQueueEntry",
1047
+ "privacy": "private",
1048
+ "parameters": [
1049
+ {
1050
+ "name": "entryId",
1051
+ "type": {
1052
+ "text": "string"
1053
+ }
1054
+ }
1055
+ ]
1056
+ },
1057
+ {
1058
+ "kind": "field",
1059
+ "name": "activeTab",
1060
+ "type": {
1061
+ "text": "VoipTab"
1062
+ },
1063
+ "default": "'phone'",
1064
+ "attribute": "activeTab",
1065
+ "parsedType": {
1066
+ "text": "'phone' | 'queue' | 'contacts' | 'history' | 'settings'"
1067
+ }
1068
+ },
1069
+ {
1070
+ "kind": "method",
1071
+ "name": "answerCall",
1072
+ "privacy": "public",
1073
+ "type": {
1074
+ "text": "answerCall() => void"
1075
+ }
1076
+ },
1077
+ {
1078
+ "kind": "field",
1079
+ "name": "apiKey",
1080
+ "type": {
1081
+ "text": "string"
1082
+ },
1083
+ "default": "''",
1084
+ "attribute": "api-key"
1085
+ },
1086
+ {
1087
+ "kind": "field",
1088
+ "name": "apiOrigin",
1089
+ "type": {
1090
+ "text": "string"
1091
+ },
1092
+ "default": "''",
1093
+ "attribute": "api-origin"
1094
+ },
1095
+ {
1096
+ "kind": "method",
1097
+ "name": "applySpeakerSelection",
1098
+ "privacy": "private"
1099
+ },
1100
+ {
1101
+ "kind": "field",
1102
+ "name": "audioInputs",
1103
+ "type": {
1104
+ "text": "MediaDeviceOption[]"
1105
+ },
1106
+ "privacy": "private",
1107
+ "default": "[]"
1108
+ },
1109
+ {
1110
+ "kind": "field",
1111
+ "name": "audioOutputs",
1112
+ "type": {
1113
+ "text": "MediaDeviceOption[]"
1114
+ },
1115
+ "privacy": "private",
1116
+ "default": "[]"
1117
+ },
1118
+ {
1119
+ "kind": "field",
1120
+ "name": "availability",
1121
+ "type": {
1122
+ "text": "string"
1123
+ },
1124
+ "default": "'logged_out'",
1125
+ "attribute": "availability"
1126
+ },
1127
+ {
1128
+ "kind": "method",
1129
+ "name": "callNumber",
1130
+ "privacy": "public",
1131
+ "parameters": [
1132
+ {
1133
+ "name": "phoneNumber",
1134
+ "type": {
1135
+ "text": "string"
1136
+ }
1137
+ }
1138
+ ],
1139
+ "type": {
1140
+ "text": "callNumber(phoneNumber: string) => void"
1141
+ }
1142
+ },
1143
+ {
1144
+ "kind": "field",
1145
+ "name": "callSeconds",
1146
+ "type": {
1147
+ "text": "number"
1148
+ },
1149
+ "privacy": "private",
1150
+ "default": "0"
1151
+ },
1152
+ {
1153
+ "kind": "field",
1154
+ "name": "callState",
1155
+ "type": {
1156
+ "text": "CallState"
1157
+ },
1158
+ "privacy": "private",
1159
+ "default": "'idle'",
1160
+ "parsedType": {
1161
+ "text": "'idle' | 'incoming' | 'outgoing' | 'active' | 'held'"
1162
+ }
1163
+ },
1164
+ {
1165
+ "kind": "field",
1166
+ "name": "callTimer",
1167
+ "type": {
1168
+ "text": "number | undefined"
1169
+ },
1170
+ "privacy": "private"
1171
+ },
1172
+ {
1173
+ "kind": "method",
1174
+ "name": "clearSipCredentialRefresh",
1175
+ "privacy": "private"
1176
+ },
1177
+ {
1178
+ "kind": "method",
1179
+ "name": "configureSdkEndpoints",
1180
+ "privacy": "private"
1181
+ },
1182
+ {
1183
+ "kind": "field",
1184
+ "name": "contacts",
1185
+ "type": {
1186
+ "text": "Contact[]"
1187
+ },
1188
+ "default": "[]",
1189
+ "attribute": "contacts"
1190
+ },
1191
+ {
1192
+ "kind": "method",
1193
+ "name": "declineCall",
1194
+ "privacy": "public",
1195
+ "type": {
1196
+ "text": "declineCall() => void"
1197
+ }
1198
+ },
1199
+ {
1200
+ "kind": "field",
1201
+ "name": "dialNumber",
1202
+ "type": {
1203
+ "text": "string"
1204
+ },
1205
+ "privacy": "private",
1206
+ "default": "''"
1207
+ },
1208
+ {
1209
+ "kind": "field",
1210
+ "name": "dragOffsetX",
1211
+ "type": {
1212
+ "text": "number"
1213
+ },
1214
+ "privacy": "private",
1215
+ "default": "0"
1216
+ },
1217
+ {
1218
+ "kind": "field",
1219
+ "name": "dragOffsetY",
1220
+ "type": {
1221
+ "text": "number"
1222
+ },
1223
+ "privacy": "private",
1224
+ "default": "0"
1225
+ },
1226
+ {
1227
+ "kind": "field",
1228
+ "name": "dragX",
1229
+ "type": {
1230
+ "text": "number"
1231
+ },
1232
+ "privacy": "private",
1233
+ "default": "0"
1234
+ },
1235
+ {
1236
+ "kind": "field",
1237
+ "name": "dragY",
1238
+ "type": {
1239
+ "text": "number"
1240
+ },
1241
+ "privacy": "private",
1242
+ "default": "0"
1243
+ },
1244
+ {
1245
+ "kind": "method",
1246
+ "name": "emitCallState",
1247
+ "privacy": "private",
1248
+ "parameters": [
1249
+ {
1250
+ "name": "state",
1251
+ "type": {
1252
+ "text": "CallState"
1253
+ }
1254
+ }
1255
+ ]
1256
+ },
1257
+ {
1258
+ "kind": "method",
1259
+ "name": "ensureTabId",
1260
+ "privacy": "private"
1261
+ },
1262
+ {
1263
+ "kind": "method",
1264
+ "name": "formatHistoryTime",
1265
+ "privacy": "private",
1266
+ "parameters": [
1267
+ {
1268
+ "name": "value",
1269
+ "type": {
1270
+ "text": "string | null | undefined"
1271
+ }
1272
+ }
1273
+ ]
1274
+ },
1275
+ {
1276
+ "kind": "method",
1277
+ "name": "formatQueueWaitTime",
1278
+ "privacy": "private",
1279
+ "parameters": [
1280
+ {
1281
+ "name": "value",
1282
+ "type": {
1283
+ "text": "string | null | undefined"
1284
+ }
1285
+ }
1286
+ ]
1287
+ },
1288
+ {
1289
+ "kind": "method",
1290
+ "name": "getRpcConfig",
1291
+ "privacy": "private"
1292
+ },
1293
+ {
1294
+ "kind": "method",
1295
+ "name": "handleAccept",
1296
+ "privacy": "private"
1297
+ },
1298
+ {
1299
+ "kind": "method",
1300
+ "name": "handleCall",
1301
+ "privacy": "private"
1302
+ },
1303
+ {
1304
+ "kind": "method",
1305
+ "name": "handleDecline",
1306
+ "privacy": "private"
1307
+ },
1308
+ {
1309
+ "kind": "field",
1310
+ "name": "handleDeviceChange",
1311
+ "privacy": "private"
1312
+ },
1313
+ {
1314
+ "kind": "method",
1315
+ "name": "handleDrag",
1316
+ "privacy": "private",
1317
+ "parameters": [
1318
+ {
1319
+ "name": "event",
1320
+ "type": {
1321
+ "text": "PointerEvent"
1322
+ }
1323
+ }
1324
+ ]
1325
+ },
1326
+ {
1327
+ "kind": "method",
1328
+ "name": "handleEndDrag",
1329
+ "privacy": "private",
1330
+ "parameters": [
1331
+ {
1332
+ "name": "event",
1333
+ "type": {
1334
+ "text": "PointerEvent"
1335
+ }
1336
+ }
1337
+ ]
1338
+ },
1339
+ {
1340
+ "kind": "method",
1341
+ "name": "handleHangup",
1342
+ "privacy": "private"
1343
+ },
1344
+ {
1345
+ "kind": "method",
1346
+ "name": "handleHold",
1347
+ "privacy": "private"
1348
+ },
1349
+ {
1350
+ "kind": "method",
1351
+ "name": "handleMuteToggle",
1352
+ "privacy": "private"
1353
+ },
1354
+ {
1355
+ "kind": "field",
1356
+ "name": "handlePageHide",
1357
+ "privacy": "private"
1358
+ },
1359
+ {
1360
+ "kind": "field",
1361
+ "name": "handleQueueEntryEvent",
1362
+ "privacy": "private"
1363
+ },
1364
+ {
1365
+ "kind": "method",
1366
+ "name": "handleSelectTab",
1367
+ "privacy": "private",
1368
+ "parameters": [
1369
+ {
1370
+ "name": "tab",
1371
+ "type": {
1372
+ "text": "'phone' | 'queue' | 'contacts' | 'history'"
1373
+ }
1374
+ }
1375
+ ]
1376
+ },
1377
+ {
1378
+ "kind": "method",
1379
+ "name": "handleShowSettings",
1380
+ "privacy": "private"
1381
+ },
1382
+ {
1383
+ "kind": "method",
1384
+ "name": "handleStartDrag",
1385
+ "privacy": "private",
1386
+ "parameters": [
1387
+ {
1388
+ "name": "event",
1389
+ "type": {
1390
+ "text": "PointerEvent"
1391
+ }
1392
+ }
1393
+ ]
1394
+ },
1395
+ {
1396
+ "kind": "method",
1397
+ "name": "handleToggleOpen",
1398
+ "privacy": "private"
1399
+ },
1400
+ {
1401
+ "kind": "method",
1402
+ "name": "handleTransfer",
1403
+ "privacy": "private"
1404
+ },
1405
+ {
1406
+ "kind": "field",
1407
+ "name": "handleVisibilityChange",
1408
+ "privacy": "private"
1409
+ },
1410
+ {
1411
+ "kind": "field",
1412
+ "name": "handleWidgetStorage",
1413
+ "privacy": "private"
1414
+ },
1415
+ {
1416
+ "kind": "field",
1417
+ "name": "hasMediaPermission",
1418
+ "type": {
1419
+ "text": "boolean"
1420
+ },
1421
+ "privacy": "private",
1422
+ "default": "false"
1423
+ },
1424
+ {
1425
+ "kind": "field",
1426
+ "name": "history",
1427
+ "type": {
1428
+ "text": "HistoryEntry[]"
1429
+ },
1430
+ "default": "[]",
1431
+ "attribute": "history"
1432
+ },
1433
+ {
1434
+ "kind": "field",
1435
+ "name": "incomingCall",
1436
+ "type": {
1437
+ "text": "boolean"
1438
+ },
1439
+ "default": "false",
1440
+ "attribute": "incomingCall"
1441
+ },
1442
+ {
1443
+ "kind": "field",
1444
+ "name": "incomingCallerName",
1445
+ "type": {
1446
+ "text": "string"
1447
+ },
1448
+ "default": "'Colleague'",
1449
+ "attribute": "incomingCallerName"
1450
+ },
1451
+ {
1452
+ "kind": "field",
1453
+ "name": "incomingFromQueue",
1454
+ "type": {
1455
+ "text": "boolean"
1456
+ },
1457
+ "default": "false",
1458
+ "attribute": "incomingFromQueue"
1459
+ },
1460
+ {
1461
+ "kind": "method",
1462
+ "name": "initQueueChannel",
1463
+ "privacy": "private"
1464
+ },
1465
+ {
1466
+ "kind": "method",
1467
+ "name": "initWidgetLock",
1468
+ "privacy": "private"
1469
+ },
1470
+ {
1471
+ "kind": "field",
1472
+ "name": "isHeld",
1473
+ "type": {
1474
+ "text": "boolean"
1475
+ },
1476
+ "privacy": "private",
1477
+ "default": "false"
1478
+ },
1479
+ {
1480
+ "kind": "field",
1481
+ "name": "isMuted",
1482
+ "type": {
1483
+ "text": "boolean"
1484
+ },
1485
+ "privacy": "private",
1486
+ "default": "false"
1487
+ },
1488
+ {
1489
+ "kind": "method",
1490
+ "name": "isSipCredentialExpiringSoon",
1491
+ "privacy": "private"
1492
+ },
1493
+ {
1494
+ "kind": "method",
1495
+ "name": "loadContacts",
1496
+ "privacy": "private"
1497
+ },
1498
+ {
1499
+ "kind": "method",
1500
+ "name": "loadHistory",
1501
+ "privacy": "private"
1502
+ },
1503
+ {
1504
+ "kind": "method",
1505
+ "name": "loadQueueEntries",
1506
+ "privacy": "private"
1507
+ },
1508
+ {
1509
+ "kind": "field",
1510
+ "name": "open",
1511
+ "type": {
1512
+ "text": "boolean"
1513
+ },
1514
+ "default": "false",
1515
+ "attribute": "open",
1516
+ "reflects": true
1517
+ },
1518
+ {
1519
+ "kind": "method",
1520
+ "name": "openPanel",
1521
+ "privacy": "public",
1522
+ "parameters": [
1523
+ {
1524
+ "name": "tab",
1525
+ "default": "'phone'",
1526
+ "type": {
1527
+ "text": "VoipTab"
1528
+ }
1529
+ }
1530
+ ],
1531
+ "type": {
1532
+ "text": "openPanel(tab: VoipTab = 'phone') => void"
1533
+ }
1534
+ },
1535
+ {
1536
+ "kind": "method",
1537
+ "name": "parseSipExpiry",
1538
+ "privacy": "private",
1539
+ "parameters": [
1540
+ {
1541
+ "name": "value",
1542
+ "type": {
1543
+ "text": "unknown"
1544
+ }
1545
+ }
1546
+ ]
1547
+ },
1548
+ {
1549
+ "kind": "field",
1550
+ "name": "permissionStream",
1551
+ "type": {
1552
+ "text": "MediaStream | undefined"
1553
+ },
1554
+ "privacy": "private"
1555
+ },
1556
+ {
1557
+ "kind": "field",
1558
+ "name": "queueChannel",
1559
+ "type": {
1560
+ "text": "EventsChannel | undefined"
1561
+ },
1562
+ "privacy": "private"
1563
+ },
1564
+ {
1565
+ "kind": "field",
1566
+ "name": "queueChannelDeleteRef",
1567
+ "type": {
1568
+ "text": "number | undefined"
1569
+ },
1570
+ "privacy": "private"
1571
+ },
1572
+ {
1573
+ "kind": "field",
1574
+ "name": "queueChannelUpdateRef",
1575
+ "type": {
1576
+ "text": "number | undefined"
1577
+ },
1578
+ "privacy": "private"
1579
+ },
1580
+ {
1581
+ "kind": "field",
1582
+ "name": "queueCount",
1583
+ "type": {
1584
+ "text": "number"
1585
+ },
1586
+ "default": "0",
1587
+ "attribute": "queueCount"
1588
+ },
1589
+ {
1590
+ "kind": "field",
1591
+ "name": "queuedCalls",
1592
+ "type": {
1593
+ "text": "QueuedCall[]"
1594
+ },
1595
+ "default": "[]",
1596
+ "attribute": "queuedCalls"
1597
+ },
1598
+ {
1599
+ "kind": "field",
1600
+ "name": "queueSocket",
1601
+ "type": {
1602
+ "text": "Socket | undefined"
1603
+ },
1604
+ "privacy": "private"
1605
+ },
1606
+ {
1607
+ "kind": "method",
1608
+ "name": "readWidgetLock",
1609
+ "privacy": "private"
1610
+ },
1611
+ {
1612
+ "kind": "method",
1613
+ "name": "refreshDevices",
1614
+ "privacy": "private"
1615
+ },
1616
+ {
1617
+ "kind": "method",
1618
+ "name": "refreshSessionSipCredentials",
1619
+ "privacy": "private",
1620
+ "parameters": [
1621
+ {
1622
+ "name": "force",
1623
+ "default": "false"
1624
+ }
1625
+ ]
1626
+ },
1627
+ {
1628
+ "kind": "method",
1629
+ "name": "releaseWidgetLock",
1630
+ "privacy": "private"
1631
+ },
1632
+ {
1633
+ "kind": "field",
1634
+ "name": "remoteAudio",
1635
+ "type": {
1636
+ "text": "HTMLAudioElement | undefined"
1637
+ },
1638
+ "privacy": "private"
1639
+ },
1640
+ {
1641
+ "kind": "method",
1642
+ "name": "requestMediaPermission",
1643
+ "privacy": "private"
1644
+ },
1645
+ {
1646
+ "kind": "method",
1647
+ "name": "resetQueueChannel",
1648
+ "privacy": "private"
1649
+ },
1650
+ {
1651
+ "kind": "method",
1652
+ "name": "resolveDialTarget",
1653
+ "privacy": "private"
1654
+ },
1655
+ {
1656
+ "kind": "method",
1657
+ "name": "resolveHistoryName",
1658
+ "privacy": "private",
1659
+ "parameters": [
1660
+ {
1661
+ "name": "number",
1662
+ "type": {
1663
+ "text": "string"
1664
+ }
1665
+ }
1666
+ ]
1667
+ },
1668
+ {
1669
+ "kind": "method",
1670
+ "name": "resolveSipUserId",
1671
+ "privacy": "private"
1672
+ },
1673
+ {
1674
+ "kind": "method",
1675
+ "name": "scheduleSipCredentialRefresh",
1676
+ "privacy": "private",
1677
+ "parameters": [
1678
+ {
1679
+ "name": "expiresAtMs",
1680
+ "optional": true,
1681
+ "type": {
1682
+ "text": "number"
1683
+ }
1684
+ }
1685
+ ]
1686
+ },
1687
+ {
1688
+ "kind": "field",
1689
+ "name": "selectedMicId",
1690
+ "type": {
1691
+ "text": "string"
1692
+ },
1693
+ "privacy": "private",
1694
+ "default": "''"
1695
+ },
1696
+ {
1697
+ "kind": "field",
1698
+ "name": "selectedSpeakerId",
1699
+ "type": {
1700
+ "text": "string"
1701
+ },
1702
+ "privacy": "private",
1703
+ "default": "''"
1704
+ },
1705
+ {
1706
+ "kind": "field",
1707
+ "name": "sessionAuth",
1708
+ "type": {
1709
+ "text": "boolean"
1710
+ },
1711
+ "default": "false",
1712
+ "attribute": "session-auth"
1713
+ },
1714
+ {
1715
+ "kind": "field",
1716
+ "name": "sessionSipCredentialsIssued",
1717
+ "type": {
1718
+ "text": "boolean"
1719
+ },
1720
+ "privacy": "private",
1721
+ "default": "false"
1722
+ },
1723
+ {
1724
+ "kind": "method",
1725
+ "name": "setCallState",
1726
+ "privacy": "private",
1727
+ "parameters": [
1728
+ {
1729
+ "name": "state",
1730
+ "type": {
1731
+ "text": "CallState"
1732
+ }
1733
+ }
1734
+ ]
1735
+ },
1736
+ {
1737
+ "kind": "method",
1738
+ "name": "setupSip",
1739
+ "privacy": "private"
1740
+ },
1741
+ {
1742
+ "kind": "method",
1743
+ "name": "setWidgetLocked",
1744
+ "privacy": "private",
1745
+ "parameters": [
1746
+ {
1747
+ "name": "locked",
1748
+ "type": {
1749
+ "text": "boolean"
1750
+ }
1751
+ }
1752
+ ]
1753
+ },
1754
+ {
1755
+ "kind": "field",
1756
+ "name": "simpleUser",
1757
+ "type": {
1758
+ "text": "Web.SimpleUser | undefined"
1759
+ },
1760
+ "privacy": "private"
1761
+ },
1762
+ {
1763
+ "kind": "field",
1764
+ "name": "sipConfigKey",
1765
+ "type": {
1766
+ "text": "string"
1767
+ },
1768
+ "privacy": "private",
1769
+ "default": "''"
1770
+ },
1771
+ {
1772
+ "kind": "field",
1773
+ "name": "sipCredentialExpiresAt",
1774
+ "type": {
1775
+ "text": "number | undefined"
1776
+ },
1777
+ "privacy": "private"
1778
+ },
1779
+ {
1780
+ "kind": "field",
1781
+ "name": "sipCredentialPromise",
1782
+ "type": {
1783
+ "text": "Promise<void> | undefined"
1784
+ },
1785
+ "privacy": "private"
1786
+ },
1787
+ {
1788
+ "kind": "field",
1789
+ "name": "sipCredentialRefreshTimer",
1790
+ "type": {
1791
+ "text": "number | undefined"
1792
+ },
1793
+ "privacy": "private"
1794
+ },
1795
+ {
1796
+ "kind": "field",
1797
+ "name": "sipPassword",
1798
+ "type": {
1799
+ "text": "string"
1800
+ },
1801
+ "default": "'supersecurepass'",
1802
+ "attribute": "sipPassword"
1803
+ },
1804
+ {
1805
+ "kind": "field",
1806
+ "name": "sipServer",
1807
+ "privacy": "private",
1808
+ "readonly": true
1809
+ },
1810
+ {
1811
+ "kind": "field",
1812
+ "name": "sipStatus",
1813
+ "type": {
1814
+ "text": "SipStatus"
1815
+ },
1816
+ "privacy": "private",
1817
+ "default": "'idle'",
1818
+ "parsedType": {
1819
+ "text": "'idle' | 'connecting' | 'connected' | 'error'"
1820
+ }
1821
+ },
1822
+ {
1823
+ "kind": "field",
1824
+ "name": "sipUrl",
1825
+ "type": {
1826
+ "text": "string"
1827
+ },
1828
+ "default": "'sip.sippet.ai'",
1829
+ "attribute": "sipUrl"
1830
+ },
1831
+ {
1832
+ "kind": "field",
1833
+ "name": "sipUser",
1834
+ "type": {
1835
+ "text": "string"
1836
+ },
1837
+ "default": "'test-sip'",
1838
+ "attribute": "sipUser"
1839
+ },
1840
+ {
1841
+ "kind": "field",
1842
+ "name": "sipUserId",
1843
+ "type": {
1844
+ "text": "string"
1845
+ },
1846
+ "default": "''",
1847
+ "attribute": "sip-user-id"
1848
+ },
1849
+ {
1850
+ "kind": "field",
1851
+ "name": "sipWebSocketUrl",
1852
+ "type": {
1853
+ "text": "string"
1854
+ },
1855
+ "default": "'wss://sip.sippet.ai:7443'",
1856
+ "attribute": "sipWebSocketUrl"
1857
+ },
1858
+ {
1859
+ "kind": "method",
1860
+ "name": "startCallTimer",
1861
+ "privacy": "private"
1862
+ },
1863
+ {
1864
+ "kind": "method",
1865
+ "name": "startWidgetLockHeartbeat",
1866
+ "privacy": "private"
1867
+ },
1868
+ {
1869
+ "kind": "method",
1870
+ "name": "stopCallTimer",
1871
+ "privacy": "private"
1872
+ },
1873
+ {
1874
+ "kind": "method",
1875
+ "name": "stopPermissionStream",
1876
+ "privacy": "private"
1877
+ },
1878
+ {
1879
+ "kind": "method",
1880
+ "name": "stopWidgetLockHeartbeat",
1881
+ "privacy": "private"
1882
+ },
1883
+ {
1884
+ "kind": "method",
1885
+ "name": "syncWidgetLock",
1886
+ "privacy": "private"
1887
+ },
1888
+ {
1889
+ "kind": "method",
1890
+ "name": "teardownQueueChannel",
1891
+ "privacy": "private"
1892
+ },
1893
+ {
1894
+ "kind": "method",
1895
+ "name": "teardownSip",
1896
+ "privacy": "private"
1897
+ },
1898
+ {
1899
+ "kind": "method",
1900
+ "name": "teardownWidgetLock",
1901
+ "privacy": "private"
1902
+ },
1903
+ {
1904
+ "kind": "method",
1905
+ "name": "toggleHold",
1906
+ "privacy": "public",
1907
+ "type": {
1908
+ "text": "toggleHold() => void"
1909
+ }
1910
+ },
1911
+ {
1912
+ "kind": "method",
1913
+ "name": "transferTo",
1914
+ "privacy": "public",
1915
+ "parameters": [
1916
+ {
1917
+ "name": "queue",
1918
+ "type": {
1919
+ "text": "string"
1920
+ }
1921
+ }
1922
+ ],
1923
+ "type": {
1924
+ "text": "transferTo(queue: string) => void"
1925
+ }
1926
+ },
1927
+ {
1928
+ "kind": "method",
1929
+ "name": "updateOperatorStatus",
1930
+ "privacy": "private",
1931
+ "parameters": [
1932
+ {
1933
+ "name": "value",
1934
+ "type": {
1935
+ "text": "string"
1936
+ }
1937
+ }
1938
+ ]
1939
+ },
1940
+ {
1941
+ "kind": "field",
1942
+ "name": "userEmail",
1943
+ "type": {
1944
+ "text": "string"
1945
+ },
1946
+ "default": "'agent@example.com'",
1947
+ "attribute": "userEmail"
1948
+ },
1949
+ {
1950
+ "kind": "field",
1951
+ "name": "userName",
1952
+ "type": {
1953
+ "text": "string"
1954
+ },
1955
+ "default": "'Agent'",
1956
+ "attribute": "userName"
1957
+ },
1958
+ {
1959
+ "kind": "field",
1960
+ "name": "widgetLocked",
1961
+ "type": {
1962
+ "text": "boolean"
1963
+ },
1964
+ "privacy": "private",
1965
+ "default": "false"
1966
+ },
1967
+ {
1968
+ "kind": "field",
1969
+ "name": "widgetLockHeartbeat",
1970
+ "type": {
1971
+ "text": "number | undefined"
1972
+ },
1973
+ "privacy": "private"
1974
+ },
1975
+ {
1976
+ "kind": "field",
1977
+ "name": "widgetLockPoller",
1978
+ "type": {
1979
+ "text": "number | undefined"
1980
+ },
1981
+ "privacy": "private"
1982
+ },
1983
+ {
1984
+ "kind": "field",
1985
+ "name": "widgetTabId",
1986
+ "type": {
1987
+ "text": "string"
1988
+ },
1989
+ "privacy": "private",
1990
+ "default": "''"
1991
+ },
1992
+ {
1993
+ "kind": "method",
1994
+ "name": "writeWidgetLock",
1995
+ "privacy": "private"
1996
+ }
1997
+ ],
1998
+ "events": [
1999
+ {
2000
+ "name": "voip-call-state",
2001
+ "type": {
2002
+ "text": "CustomEvent"
2003
+ }
2004
+ },
2005
+ {
2006
+ "name": "voip-transfer",
2007
+ "type": {
2008
+ "text": "CustomEvent"
2009
+ }
2010
+ }
2011
+ ],
2012
+ "attributes": [
2013
+ {
2014
+ "name": "activeTab",
2015
+ "type": {
2016
+ "text": "VoipTab"
2017
+ },
2018
+ "default": "'phone'",
2019
+ "fieldName": "activeTab",
2020
+ "parsedType": {
2021
+ "text": "'phone' | 'queue' | 'contacts' | 'history' | 'settings'"
2022
+ },
2023
+ "propName": "activetab"
2024
+ },
2025
+ {
2026
+ "name": "api-key",
2027
+ "type": {
2028
+ "text": "string"
2029
+ },
2030
+ "default": "''",
2031
+ "fieldName": "apiKey",
2032
+ "propName": "apiKey"
2033
+ },
2034
+ {
2035
+ "name": "api-origin",
2036
+ "type": {
2037
+ "text": "string"
2038
+ },
2039
+ "default": "''",
2040
+ "fieldName": "apiOrigin",
2041
+ "propName": "apiOrigin"
2042
+ },
2043
+ {
2044
+ "name": "availability",
2045
+ "type": {
2046
+ "text": "string"
2047
+ },
2048
+ "default": "'logged_out'",
2049
+ "fieldName": "availability",
2050
+ "propName": "availability"
2051
+ },
2052
+ {
2053
+ "name": "contacts",
2054
+ "type": {
2055
+ "text": "Contact[]"
2056
+ },
2057
+ "default": "[]",
2058
+ "fieldName": "contacts",
2059
+ "propName": "contacts"
2060
+ },
2061
+ {
2062
+ "name": "history",
2063
+ "type": {
2064
+ "text": "HistoryEntry[]"
2065
+ },
2066
+ "default": "[]",
2067
+ "fieldName": "history",
2068
+ "propName": "history"
2069
+ },
2070
+ {
2071
+ "name": "incomingCall",
2072
+ "type": {
2073
+ "text": "boolean"
2074
+ },
2075
+ "default": "false",
2076
+ "fieldName": "incomingCall",
2077
+ "propName": "incomingcall"
2078
+ },
2079
+ {
2080
+ "name": "incomingCallerName",
2081
+ "type": {
2082
+ "text": "string"
2083
+ },
2084
+ "default": "'Colleague'",
2085
+ "fieldName": "incomingCallerName",
2086
+ "propName": "incomingcallername"
2087
+ },
2088
+ {
2089
+ "name": "incomingFromQueue",
2090
+ "type": {
2091
+ "text": "boolean"
2092
+ },
2093
+ "default": "false",
2094
+ "fieldName": "incomingFromQueue",
2095
+ "propName": "incomingfromqueue"
2096
+ },
2097
+ {
2098
+ "name": "open",
2099
+ "type": {
2100
+ "text": "boolean"
2101
+ },
2102
+ "default": "false",
2103
+ "fieldName": "open",
2104
+ "propName": "open"
2105
+ },
2106
+ {
2107
+ "name": "queueCount",
2108
+ "type": {
2109
+ "text": "number"
2110
+ },
2111
+ "default": "0",
2112
+ "fieldName": "queueCount",
2113
+ "propName": "queuecount"
2114
+ },
2115
+ {
2116
+ "name": "queuedCalls",
2117
+ "type": {
2118
+ "text": "QueuedCall[]"
2119
+ },
2120
+ "default": "[]",
2121
+ "fieldName": "queuedCalls",
2122
+ "propName": "queuedcalls"
2123
+ },
2124
+ {
2125
+ "name": "session-auth",
2126
+ "type": {
2127
+ "text": "boolean"
2128
+ },
2129
+ "default": "false",
2130
+ "fieldName": "sessionAuth",
2131
+ "propName": "sessionAuth"
2132
+ },
2133
+ {
2134
+ "name": "sip-user-id",
2135
+ "type": {
2136
+ "text": "string"
2137
+ },
2138
+ "default": "''",
2139
+ "fieldName": "sipUserId",
2140
+ "propName": "sipUserId"
2141
+ },
2142
+ {
2143
+ "name": "sipPassword",
2144
+ "type": {
2145
+ "text": "string"
2146
+ },
2147
+ "default": "'supersecurepass'",
2148
+ "fieldName": "sipPassword",
2149
+ "propName": "sippassword"
2150
+ },
2151
+ {
2152
+ "name": "sipUrl",
2153
+ "type": {
2154
+ "text": "string"
2155
+ },
2156
+ "default": "'sip.sippet.ai'",
2157
+ "fieldName": "sipUrl",
2158
+ "propName": "sipurl"
2159
+ },
2160
+ {
2161
+ "name": "sipUser",
2162
+ "type": {
2163
+ "text": "string"
2164
+ },
2165
+ "default": "'test-sip'",
2166
+ "fieldName": "sipUser",
2167
+ "propName": "sipuser"
2168
+ },
2169
+ {
2170
+ "name": "sipWebSocketUrl",
2171
+ "type": {
2172
+ "text": "string"
2173
+ },
2174
+ "default": "'wss://sip.sippet.ai:7443'",
2175
+ "fieldName": "sipWebSocketUrl",
2176
+ "propName": "sipwebsocketurl"
2177
+ },
2178
+ {
2179
+ "name": "userEmail",
2180
+ "type": {
2181
+ "text": "string"
2182
+ },
2183
+ "default": "'agent@example.com'",
2184
+ "fieldName": "userEmail",
2185
+ "propName": "useremail"
2186
+ },
2187
+ {
2188
+ "name": "userName",
2189
+ "type": {
2190
+ "text": "string"
2191
+ },
2192
+ "default": "'Agent'",
2193
+ "fieldName": "userName",
2194
+ "propName": "username"
2195
+ }
2196
+ ],
2197
+ "superclass": {
2198
+ "name": "TwLitElement",
2199
+ "module": "src/components/voip-widget/voip-widget.ts"
2200
+ },
2201
+ "tagName": "sippetai-voip-widget",
2202
+ "customElement": true,
2203
+ "since": {
2204
+ "name": "0.0.1",
2205
+ "description": ""
2206
+ },
2207
+ "status": {
2208
+ "name": "experimental",
2209
+ "description": ""
2210
+ },
2211
+ "modulePath": "src/components/voip-widget/voip-widget.ts",
2212
+ "definitionPath": "src/components/voip-widget/index.ts"
2213
+ }
2214
+ ],
2215
+ "exports": [
2216
+ {
2217
+ "kind": "js",
2218
+ "name": "default",
2219
+ "declaration": {
2220
+ "name": "SippetAIVoipWidget",
2221
+ "module": "src/components/voip-widget/voip-widget.ts"
2222
+ }
2223
+ },
2224
+ {
2225
+ "kind": "js",
2226
+ "name": "SippetAIVoipWidget",
2227
+ "declaration": {
2228
+ "name": "SippetAIVoipWidget",
2229
+ "module": "src/components/voip-widget/voip-widget.ts"
2230
+ }
2231
+ }
2232
+ ]
2233
+ },
2234
+ {
2235
+ "kind": "javascript-module",
2236
+ "path": "src/components/voip-widget/voip-widget.types.ts",
2237
+ "declarations": [],
2238
+ "exports": []
2239
+ }
2240
+ ]
2241
+ }