@sippet-ai/operator-widget 0.0.14 → 0.0.16
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 +122 -88
- package/custom-elements.json +165 -179
- 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 +28 -18
- package/dist/components/voip-widget/voip-widget.js +493 -305
- package/dist/lib/realtime.d.ts +1 -1
- package/dist/lib/realtime.js +1 -1
- package/dist/lib/sippet.d.ts +5 -2
- package/dist/lib/sippet.js +77 -38
- package/dist/styles/tailwind.global.css +1 -1
- package/dist/styles/tailwind.global.css.js +1 -1
- package/package.json +2 -2
- package/react/SippetAIVoipWidget.d.ts +9 -31
- package/react/SippetAIVoipWidget.js +6 -18
- package/react/SippetAIVoipWidgetSettingsTab.d.ts +0 -4
- package/react/SippetAIVoipWidgetSettingsTab.js +0 -2
- package/types/custom-element-jsx.d.ts +34 -64
- package/types/custom-element-svelte.d.ts +8 -19
- package/types/custom-element-vuejs.d.ts +8 -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"];
|
|
@@ -397,7 +377,15 @@ export type SippetAIVoipWidgetProps = {
|
|
|
397
377
|
/** */
|
|
398
378
|
open?: SippetAIVoipWidget["open"];
|
|
399
379
|
/** */
|
|
380
|
+
"open-widget"?: SippetAIVoipWidget["openWidget"];
|
|
381
|
+
/** */
|
|
382
|
+
openWidget?: SippetAIVoipWidget["openWidget"];
|
|
383
|
+
/** */
|
|
400
384
|
activeTab?: SippetAIVoipWidget["activeTab"];
|
|
385
|
+
/** */
|
|
386
|
+
client?: SippetAIVoipWidget["client"];
|
|
387
|
+
/** */
|
|
388
|
+
getAccessToken?: SippetAIVoipWidget["getAccessToken"];
|
|
401
389
|
|
|
402
390
|
/** */
|
|
403
391
|
"onvoip-transfer"?: (e: SippetAIVoipWidgetElementEvent) => void;
|
|
@@ -407,34 +395,18 @@ export type SippetAIVoipWidgetProps = {
|
|
|
407
395
|
|
|
408
396
|
export type SippetAIVoipWidgetSolidJsProps = {
|
|
409
397
|
/** */
|
|
410
|
-
"
|
|
398
|
+
"bool:cookie-auth"?: SippetAIVoipWidget["cookieAuth"];
|
|
411
399
|
/** */
|
|
412
|
-
"prop:
|
|
400
|
+
"prop:cookieAuth"?: SippetAIVoipWidget["cookieAuth"];
|
|
413
401
|
/** */
|
|
414
|
-
"
|
|
402
|
+
"attr:access-token"?: SippetAIVoipWidget["accessToken"];
|
|
415
403
|
/** */
|
|
416
|
-
"prop:
|
|
404
|
+
"prop:accessToken"?: SippetAIVoipWidget["accessToken"];
|
|
417
405
|
/** */
|
|
418
406
|
"attr:api-origin"?: SippetAIVoipWidget["apiOrigin"];
|
|
419
407
|
/** */
|
|
420
408
|
"prop:apiOrigin"?: SippetAIVoipWidget["apiOrigin"];
|
|
421
409
|
/** */
|
|
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
410
|
"prop:availability"?: SippetAIVoipWidget["availability"];
|
|
439
411
|
/** */
|
|
440
412
|
"prop:queueCount"?: SippetAIVoipWidget["queueCount"];
|
|
@@ -453,8 +425,16 @@ export type SippetAIVoipWidgetSolidJsProps = {
|
|
|
453
425
|
/** */
|
|
454
426
|
"prop:open"?: SippetAIVoipWidget["open"];
|
|
455
427
|
/** */
|
|
428
|
+
"bool:open-widget"?: SippetAIVoipWidget["openWidget"];
|
|
429
|
+
/** */
|
|
430
|
+
"prop:openWidget"?: SippetAIVoipWidget["openWidget"];
|
|
431
|
+
/** */
|
|
456
432
|
"prop:activeTab"?: SippetAIVoipWidget["activeTab"];
|
|
457
433
|
/** */
|
|
434
|
+
"prop:client"?: SippetAIVoipWidget["client"];
|
|
435
|
+
/** */
|
|
436
|
+
"prop:getAccessToken"?: SippetAIVoipWidget["getAccessToken"];
|
|
437
|
+
/** */
|
|
458
438
|
"on:voip-transfer"?: (e: SippetAIVoipWidgetElementEvent) => void;
|
|
459
439
|
/** */
|
|
460
440
|
"on:voip-call-state"?: (e: SippetAIVoipWidgetElementEvent) => void;
|
|
@@ -608,7 +588,6 @@ export type CustomElements = {
|
|
|
608
588
|
*
|
|
609
589
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
610
590
|
*
|
|
611
|
-
* - `userEmail`: undefined
|
|
612
591
|
* - `audioInputs`: undefined
|
|
613
592
|
* - `audioOutputs`: undefined
|
|
614
593
|
* - `selectedMicId`: undefined
|
|
@@ -635,16 +614,9 @@ export type CustomElements = {
|
|
|
635
614
|
*
|
|
636
615
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
637
616
|
*
|
|
638
|
-
* - `
|
|
639
|
-
* - `
|
|
617
|
+
* - `cookie-auth`/`cookieAuth`: undefined
|
|
618
|
+
* - `access-token`/`accessToken`: undefined
|
|
640
619
|
* - `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
620
|
* - `availability`: undefined
|
|
649
621
|
* - `queueCount`: undefined
|
|
650
622
|
* - `incomingCall`: undefined
|
|
@@ -654,7 +626,10 @@ export type CustomElements = {
|
|
|
654
626
|
* - `history`: undefined
|
|
655
627
|
* - `queuedCalls`: undefined
|
|
656
628
|
* - `open`: undefined
|
|
629
|
+
* - `open-widget`/`openWidget`: undefined
|
|
657
630
|
* - `activeTab`: undefined
|
|
631
|
+
* - `client`: undefined (property only)
|
|
632
|
+
* - `getAccessToken`: undefined (property only)
|
|
658
633
|
*
|
|
659
634
|
* ## Events
|
|
660
635
|
*
|
|
@@ -828,7 +803,6 @@ export type CustomElementsSolidJs = {
|
|
|
828
803
|
*
|
|
829
804
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
830
805
|
*
|
|
831
|
-
* - `userEmail`: undefined
|
|
832
806
|
* - `audioInputs`: undefined
|
|
833
807
|
* - `audioOutputs`: undefined
|
|
834
808
|
* - `selectedMicId`: undefined
|
|
@@ -856,16 +830,9 @@ export type CustomElementsSolidJs = {
|
|
|
856
830
|
*
|
|
857
831
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
858
832
|
*
|
|
859
|
-
* - `
|
|
860
|
-
* - `
|
|
833
|
+
* - `cookie-auth`/`cookieAuth`: undefined
|
|
834
|
+
* - `access-token`/`accessToken`: undefined
|
|
861
835
|
* - `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
836
|
* - `availability`: undefined
|
|
870
837
|
* - `queueCount`: undefined
|
|
871
838
|
* - `incomingCall`: undefined
|
|
@@ -875,7 +842,10 @@ export type CustomElementsSolidJs = {
|
|
|
875
842
|
* - `history`: undefined
|
|
876
843
|
* - `queuedCalls`: undefined
|
|
877
844
|
* - `open`: undefined
|
|
845
|
+
* - `open-widget`/`openWidget`: undefined
|
|
878
846
|
* - `activeTab`: undefined
|
|
847
|
+
* - `client`: undefined (property only)
|
|
848
|
+
* - `getAccessToken`: undefined (property only)
|
|
879
849
|
*
|
|
880
850
|
* ## Events
|
|
881
851
|
*
|
|
@@ -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;
|
|
@@ -172,8 +156,13 @@ type SippetAIVoipWidgetProps = {
|
|
|
172
156
|
/** */
|
|
173
157
|
open?: boolean;
|
|
174
158
|
/** */
|
|
159
|
+
"open-widget"?: boolean;
|
|
160
|
+
/** */
|
|
175
161
|
activeTab?: VoipTab;
|
|
176
|
-
|
|
162
|
+
/** */
|
|
163
|
+
"bind:client"?: SippetAIVoipWidgetClient | null;
|
|
164
|
+
/** */
|
|
165
|
+
"bind:getAccessToken"?: (() => string | Promise<string>) | null | undefined;
|
|
177
166
|
/** */
|
|
178
167
|
"on:voip-transfer"?: (e: CustomEvent<CustomEvent>) => void;
|
|
179
168
|
/** */
|
|
@@ -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;
|
|
@@ -135,8 +119,13 @@ type SippetAIVoipWidgetProps = {
|
|
|
135
119
|
/** */
|
|
136
120
|
open?: boolean;
|
|
137
121
|
/** */
|
|
122
|
+
"open-widget"?: boolean;
|
|
123
|
+
/** */
|
|
138
124
|
activeTab?: VoipTab;
|
|
139
|
-
|
|
125
|
+
/** */
|
|
126
|
+
client?: SippetAIVoipWidgetClient | null;
|
|
127
|
+
/** */
|
|
128
|
+
getAccessToken?: (() => string | Promise<string>) | null | undefined;
|
|
140
129
|
/** */
|
|
141
130
|
"onvoip-transfer"?: (e: CustomEvent<CustomEvent>) => void;
|
|
142
131
|
/** */
|