@sippet-ai/operator-widget 0.0.13 → 0.0.15
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/README.md +93 -92
- package/custom-elements.json +131 -180
- package/dist/components/voip-widget/voip-widget-settings-tab.d.ts +0 -1
- package/dist/components/voip-widget/voip-widget-settings-tab.js +0 -16
- package/dist/components/voip-widget/voip-widget.d.ts +23 -18
- package/dist/components/voip-widget/voip-widget.js +432 -279
- package/dist/lib/realtime.d.ts +1 -1
- package/dist/lib/realtime.js +1 -1
- package/dist/lib/sippet.d.ts +3 -2
- package/dist/lib/sippet.js +47 -31
- package/dist/styles/tailwind.global.css +1 -1
- package/dist/styles/tailwind.global.css.js +1 -1
- package/package.json +3 -2
- package/react/SippetAIVoipWidget.d.ts +5 -32
- package/react/SippetAIVoipWidget.js +4 -18
- package/react/SippetAIVoipWidgetSettingsTab.d.ts +0 -4
- package/react/SippetAIVoipWidgetSettingsTab.js +0 -2
- package/types/custom-element-jsx.d.ts +18 -64
- package/types/custom-element-svelte.d.ts +4 -19
- package/types/custom-element-vuejs.d.ts +4 -19
|
@@ -300,8 +300,6 @@ export type SippetAIVoipWidgetSettingsTabElementEvent<E = Event> = TypedEvent<
|
|
|
300
300
|
>;
|
|
301
301
|
|
|
302
302
|
export type SippetAIVoipWidgetSettingsTabProps = {
|
|
303
|
-
/** */
|
|
304
|
-
userEmail?: SippetAIVoipWidgetSettingsTab["userEmail"];
|
|
305
303
|
/** */
|
|
306
304
|
audioInputs?: SippetAIVoipWidgetSettingsTab["audioInputs"];
|
|
307
305
|
/** */
|
|
@@ -320,8 +318,6 @@ export type SippetAIVoipWidgetSettingsTabProps = {
|
|
|
320
318
|
};
|
|
321
319
|
|
|
322
320
|
export type SippetAIVoipWidgetSettingsTabSolidJsProps = {
|
|
323
|
-
/** */
|
|
324
|
-
"prop:userEmail"?: SippetAIVoipWidgetSettingsTab["userEmail"];
|
|
325
321
|
/** */
|
|
326
322
|
"prop:audioInputs"?: SippetAIVoipWidgetSettingsTab["audioInputs"];
|
|
327
323
|
/** */
|
|
@@ -351,34 +347,18 @@ export type SippetAIVoipWidgetElementEvent<E = Event> = TypedEvent<
|
|
|
351
347
|
|
|
352
348
|
export type SippetAIVoipWidgetProps = {
|
|
353
349
|
/** */
|
|
354
|
-
"
|
|
350
|
+
"cookie-auth"?: SippetAIVoipWidget["cookieAuth"];
|
|
355
351
|
/** */
|
|
356
|
-
|
|
352
|
+
cookieAuth?: SippetAIVoipWidget["cookieAuth"];
|
|
357
353
|
/** */
|
|
358
|
-
"
|
|
354
|
+
"access-token"?: SippetAIVoipWidget["accessToken"];
|
|
359
355
|
/** */
|
|
360
|
-
|
|
356
|
+
accessToken?: SippetAIVoipWidget["accessToken"];
|
|
361
357
|
/** */
|
|
362
358
|
"api-origin"?: SippetAIVoipWidget["apiOrigin"];
|
|
363
359
|
/** */
|
|
364
360
|
apiOrigin?: SippetAIVoipWidget["apiOrigin"];
|
|
365
361
|
/** */
|
|
366
|
-
sipUrl?: SippetAIVoipWidget["sipUrl"];
|
|
367
|
-
/** */
|
|
368
|
-
sipUser?: SippetAIVoipWidget["sipUser"];
|
|
369
|
-
/** */
|
|
370
|
-
"sip-user-id"?: SippetAIVoipWidget["sipUserId"];
|
|
371
|
-
/** */
|
|
372
|
-
sipUserId?: SippetAIVoipWidget["sipUserId"];
|
|
373
|
-
/** */
|
|
374
|
-
sipPassword?: SippetAIVoipWidget["sipPassword"];
|
|
375
|
-
/** */
|
|
376
|
-
sipWebSocketUrl?: SippetAIVoipWidget["sipWebSocketUrl"];
|
|
377
|
-
/** */
|
|
378
|
-
userName?: SippetAIVoipWidget["userName"];
|
|
379
|
-
/** */
|
|
380
|
-
userEmail?: SippetAIVoipWidget["userEmail"];
|
|
381
|
-
/** */
|
|
382
362
|
availability?: SippetAIVoipWidget["availability"];
|
|
383
363
|
/** */
|
|
384
364
|
queueCount?: SippetAIVoipWidget["queueCount"];
|
|
@@ -398,6 +378,8 @@ export type SippetAIVoipWidgetProps = {
|
|
|
398
378
|
open?: SippetAIVoipWidget["open"];
|
|
399
379
|
/** */
|
|
400
380
|
activeTab?: SippetAIVoipWidget["activeTab"];
|
|
381
|
+
/** */
|
|
382
|
+
getAccessToken?: SippetAIVoipWidget["getAccessToken"];
|
|
401
383
|
|
|
402
384
|
/** */
|
|
403
385
|
"onvoip-transfer"?: (e: SippetAIVoipWidgetElementEvent) => void;
|
|
@@ -407,34 +389,18 @@ export type SippetAIVoipWidgetProps = {
|
|
|
407
389
|
|
|
408
390
|
export type SippetAIVoipWidgetSolidJsProps = {
|
|
409
391
|
/** */
|
|
410
|
-
"
|
|
392
|
+
"bool:cookie-auth"?: SippetAIVoipWidget["cookieAuth"];
|
|
411
393
|
/** */
|
|
412
|
-
"prop:
|
|
394
|
+
"prop:cookieAuth"?: SippetAIVoipWidget["cookieAuth"];
|
|
413
395
|
/** */
|
|
414
|
-
"
|
|
396
|
+
"attr:access-token"?: SippetAIVoipWidget["accessToken"];
|
|
415
397
|
/** */
|
|
416
|
-
"prop:
|
|
398
|
+
"prop:accessToken"?: SippetAIVoipWidget["accessToken"];
|
|
417
399
|
/** */
|
|
418
400
|
"attr:api-origin"?: SippetAIVoipWidget["apiOrigin"];
|
|
419
401
|
/** */
|
|
420
402
|
"prop:apiOrigin"?: SippetAIVoipWidget["apiOrigin"];
|
|
421
403
|
/** */
|
|
422
|
-
"prop:sipUrl"?: SippetAIVoipWidget["sipUrl"];
|
|
423
|
-
/** */
|
|
424
|
-
"prop:sipUser"?: SippetAIVoipWidget["sipUser"];
|
|
425
|
-
/** */
|
|
426
|
-
"attr:sip-user-id"?: SippetAIVoipWidget["sipUserId"];
|
|
427
|
-
/** */
|
|
428
|
-
"prop:sipUserId"?: SippetAIVoipWidget["sipUserId"];
|
|
429
|
-
/** */
|
|
430
|
-
"prop:sipPassword"?: SippetAIVoipWidget["sipPassword"];
|
|
431
|
-
/** */
|
|
432
|
-
"prop:sipWebSocketUrl"?: SippetAIVoipWidget["sipWebSocketUrl"];
|
|
433
|
-
/** */
|
|
434
|
-
"prop:userName"?: SippetAIVoipWidget["userName"];
|
|
435
|
-
/** */
|
|
436
|
-
"prop:userEmail"?: SippetAIVoipWidget["userEmail"];
|
|
437
|
-
/** */
|
|
438
404
|
"prop:availability"?: SippetAIVoipWidget["availability"];
|
|
439
405
|
/** */
|
|
440
406
|
"prop:queueCount"?: SippetAIVoipWidget["queueCount"];
|
|
@@ -455,6 +421,8 @@ export type SippetAIVoipWidgetSolidJsProps = {
|
|
|
455
421
|
/** */
|
|
456
422
|
"prop:activeTab"?: SippetAIVoipWidget["activeTab"];
|
|
457
423
|
/** */
|
|
424
|
+
"prop:getAccessToken"?: SippetAIVoipWidget["getAccessToken"];
|
|
425
|
+
/** */
|
|
458
426
|
"on:voip-transfer"?: (e: SippetAIVoipWidgetElementEvent) => void;
|
|
459
427
|
/** */
|
|
460
428
|
"on:voip-call-state"?: (e: SippetAIVoipWidgetElementEvent) => void;
|
|
@@ -608,7 +576,6 @@ export type CustomElements = {
|
|
|
608
576
|
*
|
|
609
577
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
610
578
|
*
|
|
611
|
-
* - `userEmail`: undefined
|
|
612
579
|
* - `audioInputs`: undefined
|
|
613
580
|
* - `audioOutputs`: undefined
|
|
614
581
|
* - `selectedMicId`: undefined
|
|
@@ -635,16 +602,9 @@ export type CustomElements = {
|
|
|
635
602
|
*
|
|
636
603
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
637
604
|
*
|
|
638
|
-
* - `
|
|
639
|
-
* - `
|
|
605
|
+
* - `cookie-auth`/`cookieAuth`: undefined
|
|
606
|
+
* - `access-token`/`accessToken`: undefined
|
|
640
607
|
* - `api-origin`/`apiOrigin`: undefined
|
|
641
|
-
* - `sipUrl`: undefined
|
|
642
|
-
* - `sipUser`: undefined
|
|
643
|
-
* - `sip-user-id`/`sipUserId`: undefined
|
|
644
|
-
* - `sipPassword`: undefined
|
|
645
|
-
* - `sipWebSocketUrl`: undefined
|
|
646
|
-
* - `userName`: undefined
|
|
647
|
-
* - `userEmail`: undefined
|
|
648
608
|
* - `availability`: undefined
|
|
649
609
|
* - `queueCount`: undefined
|
|
650
610
|
* - `incomingCall`: undefined
|
|
@@ -655,6 +615,7 @@ export type CustomElements = {
|
|
|
655
615
|
* - `queuedCalls`: undefined
|
|
656
616
|
* - `open`: undefined
|
|
657
617
|
* - `activeTab`: undefined
|
|
618
|
+
* - `getAccessToken`: undefined (property only)
|
|
658
619
|
*
|
|
659
620
|
* ## Events
|
|
660
621
|
*
|
|
@@ -828,7 +789,6 @@ export type CustomElementsSolidJs = {
|
|
|
828
789
|
*
|
|
829
790
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
830
791
|
*
|
|
831
|
-
* - `userEmail`: undefined
|
|
832
792
|
* - `audioInputs`: undefined
|
|
833
793
|
* - `audioOutputs`: undefined
|
|
834
794
|
* - `selectedMicId`: undefined
|
|
@@ -856,16 +816,9 @@ export type CustomElementsSolidJs = {
|
|
|
856
816
|
*
|
|
857
817
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
858
818
|
*
|
|
859
|
-
* - `
|
|
860
|
-
* - `
|
|
819
|
+
* - `cookie-auth`/`cookieAuth`: undefined
|
|
820
|
+
* - `access-token`/`accessToken`: undefined
|
|
861
821
|
* - `api-origin`/`apiOrigin`: undefined
|
|
862
|
-
* - `sipUrl`: undefined
|
|
863
|
-
* - `sipUser`: undefined
|
|
864
|
-
* - `sip-user-id`/`sipUserId`: undefined
|
|
865
|
-
* - `sipPassword`: undefined
|
|
866
|
-
* - `sipWebSocketUrl`: undefined
|
|
867
|
-
* - `userName`: undefined
|
|
868
|
-
* - `userEmail`: undefined
|
|
869
822
|
* - `availability`: undefined
|
|
870
823
|
* - `queueCount`: undefined
|
|
871
824
|
* - `incomingCall`: undefined
|
|
@@ -876,6 +829,7 @@ export type CustomElementsSolidJs = {
|
|
|
876
829
|
* - `queuedCalls`: undefined
|
|
877
830
|
* - `open`: undefined
|
|
878
831
|
* - `activeTab`: undefined
|
|
832
|
+
* - `getAccessToken`: undefined (property only)
|
|
879
833
|
*
|
|
880
834
|
* ## Events
|
|
881
835
|
*
|
|
@@ -113,8 +113,6 @@ type SippetAIVoipWidgetHistoryTabProps = {
|
|
|
113
113
|
};
|
|
114
114
|
|
|
115
115
|
type SippetAIVoipWidgetSettingsTabProps = {
|
|
116
|
-
/** */
|
|
117
|
-
userEmail?: string;
|
|
118
116
|
/** */
|
|
119
117
|
audioInputs?: MediaDeviceOption[];
|
|
120
118
|
/** */
|
|
@@ -134,26 +132,12 @@ type SippetAIVoipWidgetSettingsTabProps = {
|
|
|
134
132
|
|
|
135
133
|
type SippetAIVoipWidgetProps = {
|
|
136
134
|
/** */
|
|
137
|
-
"
|
|
135
|
+
"cookie-auth"?: boolean;
|
|
138
136
|
/** */
|
|
139
|
-
"
|
|
137
|
+
"access-token"?: string;
|
|
140
138
|
/** */
|
|
141
139
|
"api-origin"?: string;
|
|
142
140
|
/** */
|
|
143
|
-
sipUrl?: string;
|
|
144
|
-
/** */
|
|
145
|
-
sipUser?: string;
|
|
146
|
-
/** */
|
|
147
|
-
"sip-user-id"?: string;
|
|
148
|
-
/** */
|
|
149
|
-
sipPassword?: string;
|
|
150
|
-
/** */
|
|
151
|
-
sipWebSocketUrl?: string;
|
|
152
|
-
/** */
|
|
153
|
-
userName?: string;
|
|
154
|
-
/** */
|
|
155
|
-
userEmail?: string;
|
|
156
|
-
/** */
|
|
157
141
|
availability?: string;
|
|
158
142
|
/** */
|
|
159
143
|
queueCount?: number;
|
|
@@ -173,7 +157,8 @@ type SippetAIVoipWidgetProps = {
|
|
|
173
157
|
open?: boolean;
|
|
174
158
|
/** */
|
|
175
159
|
activeTab?: VoipTab;
|
|
176
|
-
|
|
160
|
+
/** */
|
|
161
|
+
"bind:getAccessToken"?: (() => string | Promise<string>) | null | undefined;
|
|
177
162
|
/** */
|
|
178
163
|
"on:voip-transfer"?: (e: CustomEvent<CustomEvent>) => void;
|
|
179
164
|
/** */
|
|
@@ -76,8 +76,6 @@ type SippetAIVoipWidgetHistoryTabProps = {
|
|
|
76
76
|
};
|
|
77
77
|
|
|
78
78
|
type SippetAIVoipWidgetSettingsTabProps = {
|
|
79
|
-
/** */
|
|
80
|
-
userEmail?: string;
|
|
81
79
|
/** */
|
|
82
80
|
audioInputs?: MediaDeviceOption[];
|
|
83
81
|
/** */
|
|
@@ -97,26 +95,12 @@ type SippetAIVoipWidgetSettingsTabProps = {
|
|
|
97
95
|
|
|
98
96
|
type SippetAIVoipWidgetProps = {
|
|
99
97
|
/** */
|
|
100
|
-
"
|
|
98
|
+
"cookie-auth"?: boolean;
|
|
101
99
|
/** */
|
|
102
|
-
"
|
|
100
|
+
"access-token"?: string;
|
|
103
101
|
/** */
|
|
104
102
|
"api-origin"?: string;
|
|
105
103
|
/** */
|
|
106
|
-
sipUrl?: string;
|
|
107
|
-
/** */
|
|
108
|
-
sipUser?: string;
|
|
109
|
-
/** */
|
|
110
|
-
"sip-user-id"?: string;
|
|
111
|
-
/** */
|
|
112
|
-
sipPassword?: string;
|
|
113
|
-
/** */
|
|
114
|
-
sipWebSocketUrl?: string;
|
|
115
|
-
/** */
|
|
116
|
-
userName?: string;
|
|
117
|
-
/** */
|
|
118
|
-
userEmail?: string;
|
|
119
|
-
/** */
|
|
120
104
|
availability?: string;
|
|
121
105
|
/** */
|
|
122
106
|
queueCount?: number;
|
|
@@ -136,7 +120,8 @@ type SippetAIVoipWidgetProps = {
|
|
|
136
120
|
open?: boolean;
|
|
137
121
|
/** */
|
|
138
122
|
activeTab?: VoipTab;
|
|
139
|
-
|
|
123
|
+
/** */
|
|
124
|
+
getAccessToken?: (() => string | Promise<string>) | null | undefined;
|
|
140
125
|
/** */
|
|
141
126
|
"onvoip-transfer"?: (e: CustomEvent<CustomEvent>) => void;
|
|
142
127
|
/** */
|