@stripchatdev/ext-helper 0.1.49 → 0.2.2
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/dist/helpers/index.d.ts +67 -3
- package/dist/helpers/react.d.ts +67 -3
- package/dist/index.d.ts +67 -3
- package/package.json +1 -1
package/dist/helpers/index.d.ts
CHANGED
|
@@ -171,7 +171,7 @@ declare type TV1ChatMethods = {
|
|
|
171
171
|
*/
|
|
172
172
|
'v1.chat.message.send': {
|
|
173
173
|
params: {
|
|
174
|
-
/** Whether the
|
|
174
|
+
/** Whether to use the anonymous placeholder or not. Always respect the user's anonymity and use data received in `v1.payment.tokens.spend.succeeded`. */
|
|
175
175
|
isAnonymous: boolean;
|
|
176
176
|
/**
|
|
177
177
|
* Chat message text.
|
|
@@ -183,6 +183,7 @@ declare type TV1ChatMethods = {
|
|
|
183
183
|
* Example: `'won {#accent}Alice{/accent} in'`
|
|
184
184
|
*/
|
|
185
185
|
message: string;
|
|
186
|
+
/** User to attribute the message to. Pass null if the user is anonymous or if the username is not needed in the message. */
|
|
186
187
|
user: TV1ExtUser | null;
|
|
187
188
|
};
|
|
188
189
|
result: null;
|
|
@@ -236,6 +237,7 @@ declare type TV1ExtEvents = {
|
|
|
236
237
|
};
|
|
237
238
|
'v1.ext.whispered': TV1WhisperData;
|
|
238
239
|
'v1.ext.whispered.local': TV1WhisperData;
|
|
240
|
+
'v2.ext.whispered': TV2WhisperData;
|
|
239
241
|
};
|
|
240
242
|
|
|
241
243
|
/** Guest user (not logged in). */
|
|
@@ -347,7 +349,7 @@ declare type TV1ExtMethods = {
|
|
|
347
349
|
params: null;
|
|
348
350
|
result: TV1ExtViewers | null;
|
|
349
351
|
};
|
|
350
|
-
/** Broadcasts a message through the server to all clients in the room that have this extension loaded. Every slot iframe of every user receives the corresponding `
|
|
352
|
+
/** Broadcasts a message through the server to all clients in the room that have this extension loaded. Every slot iframe of every user receives the corresponding `v2.ext.whispered` event */
|
|
351
353
|
'v1.ext.whisper': {
|
|
352
354
|
params: {
|
|
353
355
|
/** Any JSON-serializable object to send to every frame.
|
|
@@ -593,23 +595,48 @@ declare type TV1SerializedError = {
|
|
|
593
595
|
stack?: string;
|
|
594
596
|
};
|
|
595
597
|
|
|
598
|
+
/**
|
|
599
|
+
* Required permission:
|
|
600
|
+
* - `sessions`
|
|
601
|
+
*/
|
|
596
602
|
declare type TV1Session = TV1SessionSelf | TV1SessionOther;
|
|
597
603
|
|
|
604
|
+
/**
|
|
605
|
+
* Required permission:
|
|
606
|
+
* - `sessions`
|
|
607
|
+
*/
|
|
598
608
|
declare type TV1SessionActionType = 'join' | 'finish';
|
|
599
609
|
|
|
600
610
|
declare type TV1SessionEvents = {
|
|
611
|
+
/**
|
|
612
|
+
* Required permission:
|
|
613
|
+
* - `sessions`
|
|
614
|
+
*/
|
|
601
615
|
'v1.session.updated': {
|
|
602
616
|
data: TV1SessionUpdate;
|
|
603
617
|
};
|
|
618
|
+
/**
|
|
619
|
+
* Required permission:
|
|
620
|
+
* - `sessions`
|
|
621
|
+
*/
|
|
604
622
|
'v1.session.whispered.model': TV1SessionWhisperData;
|
|
605
623
|
};
|
|
606
624
|
|
|
607
625
|
declare type TV1SessionMethods = {
|
|
626
|
+
/**
|
|
627
|
+
* Required permission:
|
|
628
|
+
* - `sessions`
|
|
629
|
+
*/
|
|
608
630
|
'v1.session.finish.model': {
|
|
609
631
|
params: null;
|
|
610
632
|
result: null;
|
|
611
633
|
};
|
|
612
|
-
/**
|
|
634
|
+
/**
|
|
635
|
+
* Returns the current long-term session.
|
|
636
|
+
*
|
|
637
|
+
* Required permission:
|
|
638
|
+
* - `sessions`
|
|
639
|
+
*/
|
|
613
640
|
'v1.session.get': {
|
|
614
641
|
params: null;
|
|
615
642
|
result: {
|
|
@@ -617,12 +644,20 @@ declare type TV1SessionMethods = {
|
|
|
617
644
|
session: TV1Session | null;
|
|
618
645
|
};
|
|
619
646
|
};
|
|
647
|
+
/**
|
|
648
|
+
* Required permission:
|
|
649
|
+
* - `sessions`
|
|
650
|
+
*/
|
|
620
651
|
'v1.session.join.model': {
|
|
621
652
|
params: {
|
|
622
653
|
ttl: string;
|
|
623
654
|
};
|
|
624
655
|
result: null;
|
|
625
656
|
};
|
|
657
|
+
/**
|
|
658
|
+
* Required permission:
|
|
659
|
+
* - `sessions`
|
|
660
|
+
*/
|
|
626
661
|
'v1.session.join.user': {
|
|
627
662
|
params: {
|
|
628
663
|
/** @deprecated
|
|
@@ -640,6 +675,10 @@ declare type TV1SessionMethods = {
|
|
|
640
675
|
};
|
|
641
676
|
result: null;
|
|
642
677
|
};
|
|
678
|
+
/**
|
|
679
|
+
* Required permission:
|
|
680
|
+
* - `sessions`
|
|
681
|
+
*/
|
|
643
682
|
'v1.session.whisper.user': {
|
|
644
683
|
params: {
|
|
645
684
|
data: TV1SessionWhisperData;
|
|
@@ -648,11 +687,19 @@ declare type TV1SessionMethods = {
|
|
|
648
687
|
};
|
|
649
688
|
};
|
|
650
689
|
|
|
690
|
+
/**
|
|
691
|
+
* Required permission:
|
|
692
|
+
* - `sessions`
|
|
693
|
+
*/
|
|
651
694
|
declare type TV1SessionOther = {
|
|
652
695
|
/** The session exists but belongs to a different extension */
|
|
653
696
|
owner: 'other';
|
|
654
697
|
};
|
|
655
698
|
|
|
699
|
+
/**
|
|
700
|
+
* Required permission:
|
|
701
|
+
* - `sessions`
|
|
702
|
+
*/
|
|
656
703
|
declare type TV1SessionSelf = {
|
|
657
704
|
meta: {
|
|
658
705
|
/** Platform session id */
|
|
@@ -664,12 +711,20 @@ declare type TV1SessionSelf = {
|
|
|
664
711
|
owner: 'self';
|
|
665
712
|
};
|
|
666
713
|
|
|
714
|
+
/**
|
|
715
|
+
* Required permission:
|
|
716
|
+
* - `sessions`
|
|
717
|
+
*/
|
|
667
718
|
declare type TV1SessionUpdate = {
|
|
668
719
|
action: TV1SessionActionType;
|
|
669
720
|
session: TV1Session | null;
|
|
670
721
|
userId: TUserId;
|
|
671
722
|
};
|
|
672
723
|
|
|
724
|
+
/**
|
|
725
|
+
* Required permission:
|
|
726
|
+
* - `sessions`
|
|
727
|
+
*/
|
|
673
728
|
declare type TV1SessionWhisperData = TUnknownDictionary;
|
|
674
729
|
|
|
675
730
|
declare type TV1ShowStatus = (typeof V1_SHOW_STATUSES)[keyof typeof V1_SHOW_STATUSES];
|
|
@@ -1022,6 +1077,15 @@ declare type TV1UserStatus = Exclude<TV1ShowStatus, 'idle'>;
|
|
|
1022
1077
|
|
|
1023
1078
|
declare type TV1WhisperData = TUnknownDictionary;
|
|
1024
1079
|
|
|
1080
|
+
declare type TV2WhisperData = {
|
|
1081
|
+
data: TUnknownDictionary;
|
|
1082
|
+
/**
|
|
1083
|
+
* The authoritative amount of tokens actually paid for the broadcast action. Compare this value with an actual price defined in settings or as a contant in your app.
|
|
1084
|
+
* `null` means no payment occurred, e.g. when the whisper was called by user in a private show or it was called by the model.
|
|
1085
|
+
*/
|
|
1086
|
+
tokenSum: number | null;
|
|
1087
|
+
};
|
|
1088
|
+
|
|
1025
1089
|
declare const V1_SHOW_STATUSES: {
|
|
1026
1090
|
/** Ticket show */
|
|
1027
1091
|
readonly STATUS_TICKET_SHOW: "ticketShow";
|
package/dist/helpers/react.d.ts
CHANGED
|
@@ -105,7 +105,7 @@ declare type TV1ChatMethods = {
|
|
|
105
105
|
*/
|
|
106
106
|
'v1.chat.message.send': {
|
|
107
107
|
params: {
|
|
108
|
-
/** Whether the
|
|
108
|
+
/** Whether to use the anonymous placeholder or not. Always respect the user's anonymity and use data received in `v1.payment.tokens.spend.succeeded`. */
|
|
109
109
|
isAnonymous: boolean;
|
|
110
110
|
/**
|
|
111
111
|
* Chat message text.
|
|
@@ -117,6 +117,7 @@ declare type TV1ChatMethods = {
|
|
|
117
117
|
* Example: `'won {#accent}Alice{/accent} in'`
|
|
118
118
|
*/
|
|
119
119
|
message: string;
|
|
120
|
+
/** User to attribute the message to. Pass null if the user is anonymous or if the username is not needed in the message. */
|
|
120
121
|
user: TV1ExtUser | null;
|
|
121
122
|
};
|
|
122
123
|
result: null;
|
|
@@ -170,6 +171,7 @@ declare type TV1ExtEvents = {
|
|
|
170
171
|
};
|
|
171
172
|
'v1.ext.whispered': TV1WhisperData;
|
|
172
173
|
'v1.ext.whispered.local': TV1WhisperData;
|
|
174
|
+
'v2.ext.whispered': TV2WhisperData;
|
|
173
175
|
};
|
|
174
176
|
|
|
175
177
|
/** Guest user (not logged in). */
|
|
@@ -281,7 +283,7 @@ declare type TV1ExtMethods = {
|
|
|
281
283
|
params: null;
|
|
282
284
|
result: TV1ExtViewers | null;
|
|
283
285
|
};
|
|
284
|
-
/** Broadcasts a message through the server to all clients in the room that have this extension loaded. Every slot iframe of every user receives the corresponding `
|
|
286
|
+
/** Broadcasts a message through the server to all clients in the room that have this extension loaded. Every slot iframe of every user receives the corresponding `v2.ext.whispered` event */
|
|
285
287
|
'v1.ext.whisper': {
|
|
286
288
|
params: {
|
|
287
289
|
/** Any JSON-serializable object to send to every frame.
|
|
@@ -527,23 +529,48 @@ declare type TV1SerializedError = {
|
|
|
527
529
|
stack?: string;
|
|
528
530
|
};
|
|
529
531
|
|
|
532
|
+
/**
|
|
533
|
+
* Required permission:
|
|
534
|
+
* - `sessions`
|
|
535
|
+
*/
|
|
530
536
|
declare type TV1Session = TV1SessionSelf | TV1SessionOther;
|
|
531
537
|
|
|
538
|
+
/**
|
|
539
|
+
* Required permission:
|
|
540
|
+
* - `sessions`
|
|
541
|
+
*/
|
|
532
542
|
declare type TV1SessionActionType = 'join' | 'finish';
|
|
533
543
|
|
|
534
544
|
declare type TV1SessionEvents = {
|
|
545
|
+
/**
|
|
546
|
+
* Required permission:
|
|
547
|
+
* - `sessions`
|
|
548
|
+
*/
|
|
535
549
|
'v1.session.updated': {
|
|
536
550
|
data: TV1SessionUpdate;
|
|
537
551
|
};
|
|
552
|
+
/**
|
|
553
|
+
* Required permission:
|
|
554
|
+
* - `sessions`
|
|
555
|
+
*/
|
|
538
556
|
'v1.session.whispered.model': TV1SessionWhisperData;
|
|
539
557
|
};
|
|
540
558
|
|
|
541
559
|
declare type TV1SessionMethods = {
|
|
560
|
+
/**
|
|
561
|
+
* Required permission:
|
|
562
|
+
* - `sessions`
|
|
563
|
+
*/
|
|
542
564
|
'v1.session.finish.model': {
|
|
543
565
|
params: null;
|
|
544
566
|
result: null;
|
|
545
567
|
};
|
|
546
|
-
/**
|
|
568
|
+
/**
|
|
569
|
+
* Returns the current long-term session.
|
|
570
|
+
*
|
|
571
|
+
* Required permission:
|
|
572
|
+
* - `sessions`
|
|
573
|
+
*/
|
|
547
574
|
'v1.session.get': {
|
|
548
575
|
params: null;
|
|
549
576
|
result: {
|
|
@@ -551,12 +578,20 @@ declare type TV1SessionMethods = {
|
|
|
551
578
|
session: TV1Session | null;
|
|
552
579
|
};
|
|
553
580
|
};
|
|
581
|
+
/**
|
|
582
|
+
* Required permission:
|
|
583
|
+
* - `sessions`
|
|
584
|
+
*/
|
|
554
585
|
'v1.session.join.model': {
|
|
555
586
|
params: {
|
|
556
587
|
ttl: string;
|
|
557
588
|
};
|
|
558
589
|
result: null;
|
|
559
590
|
};
|
|
591
|
+
/**
|
|
592
|
+
* Required permission:
|
|
593
|
+
* - `sessions`
|
|
594
|
+
*/
|
|
560
595
|
'v1.session.join.user': {
|
|
561
596
|
params: {
|
|
562
597
|
/** @deprecated
|
|
@@ -574,6 +609,10 @@ declare type TV1SessionMethods = {
|
|
|
574
609
|
};
|
|
575
610
|
result: null;
|
|
576
611
|
};
|
|
612
|
+
/**
|
|
613
|
+
* Required permission:
|
|
614
|
+
* - `sessions`
|
|
615
|
+
*/
|
|
577
616
|
'v1.session.whisper.user': {
|
|
578
617
|
params: {
|
|
579
618
|
data: TV1SessionWhisperData;
|
|
@@ -582,11 +621,19 @@ declare type TV1SessionMethods = {
|
|
|
582
621
|
};
|
|
583
622
|
};
|
|
584
623
|
|
|
624
|
+
/**
|
|
625
|
+
* Required permission:
|
|
626
|
+
* - `sessions`
|
|
627
|
+
*/
|
|
585
628
|
declare type TV1SessionOther = {
|
|
586
629
|
/** The session exists but belongs to a different extension */
|
|
587
630
|
owner: 'other';
|
|
588
631
|
};
|
|
589
632
|
|
|
633
|
+
/**
|
|
634
|
+
* Required permission:
|
|
635
|
+
* - `sessions`
|
|
636
|
+
*/
|
|
590
637
|
declare type TV1SessionSelf = {
|
|
591
638
|
meta: {
|
|
592
639
|
/** Platform session id */
|
|
@@ -598,12 +645,20 @@ declare type TV1SessionSelf = {
|
|
|
598
645
|
owner: 'self';
|
|
599
646
|
};
|
|
600
647
|
|
|
648
|
+
/**
|
|
649
|
+
* Required permission:
|
|
650
|
+
* - `sessions`
|
|
651
|
+
*/
|
|
601
652
|
declare type TV1SessionUpdate = {
|
|
602
653
|
action: TV1SessionActionType;
|
|
603
654
|
session: TV1Session | null;
|
|
604
655
|
userId: TUserId;
|
|
605
656
|
};
|
|
606
657
|
|
|
658
|
+
/**
|
|
659
|
+
* Required permission:
|
|
660
|
+
* - `sessions`
|
|
661
|
+
*/
|
|
607
662
|
declare type TV1SessionWhisperData = TUnknownDictionary;
|
|
608
663
|
|
|
609
664
|
declare type TV1ShowStatus = (typeof V1_SHOW_STATUSES)[keyof typeof V1_SHOW_STATUSES];
|
|
@@ -956,6 +1011,15 @@ declare type TV1UserStatus = Exclude<TV1ShowStatus, 'idle'>;
|
|
|
956
1011
|
|
|
957
1012
|
declare type TV1WhisperData = TUnknownDictionary;
|
|
958
1013
|
|
|
1014
|
+
declare type TV2WhisperData = {
|
|
1015
|
+
data: TUnknownDictionary;
|
|
1016
|
+
/**
|
|
1017
|
+
* The authoritative amount of tokens actually paid for the broadcast action. Compare this value with an actual price defined in settings or as a contant in your app.
|
|
1018
|
+
* `null` means no payment occurred, e.g. when the whisper was called by user in a private show or it was called by the model.
|
|
1019
|
+
*/
|
|
1020
|
+
tokenSum: number | null;
|
|
1021
|
+
};
|
|
1022
|
+
|
|
959
1023
|
/**
|
|
960
1024
|
* React hook for shared state owned by a background slot.
|
|
961
1025
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -141,7 +141,7 @@ declare type TV1ChatMethods = {
|
|
|
141
141
|
*/
|
|
142
142
|
'v1.chat.message.send': {
|
|
143
143
|
params: {
|
|
144
|
-
/** Whether the
|
|
144
|
+
/** Whether to use the anonymous placeholder or not. Always respect the user's anonymity and use data received in `v1.payment.tokens.spend.succeeded`. */
|
|
145
145
|
isAnonymous: boolean;
|
|
146
146
|
/**
|
|
147
147
|
* Chat message text.
|
|
@@ -153,6 +153,7 @@ declare type TV1ChatMethods = {
|
|
|
153
153
|
* Example: `'won {#accent}Alice{/accent} in'`
|
|
154
154
|
*/
|
|
155
155
|
message: string;
|
|
156
|
+
/** User to attribute the message to. Pass null if the user is anonymous or if the username is not needed in the message. */
|
|
156
157
|
user: TV1ExtUser | null;
|
|
157
158
|
};
|
|
158
159
|
result: null;
|
|
@@ -206,6 +207,7 @@ declare type TV1ExtEvents = {
|
|
|
206
207
|
};
|
|
207
208
|
'v1.ext.whispered': TV1WhisperData;
|
|
208
209
|
'v1.ext.whispered.local': TV1WhisperData;
|
|
210
|
+
'v2.ext.whispered': TV2WhisperData;
|
|
209
211
|
};
|
|
210
212
|
|
|
211
213
|
/** Guest user (not logged in). */
|
|
@@ -317,7 +319,7 @@ declare type TV1ExtMethods = {
|
|
|
317
319
|
params: null;
|
|
318
320
|
result: TV1ExtViewers | null;
|
|
319
321
|
};
|
|
320
|
-
/** Broadcasts a message through the server to all clients in the room that have this extension loaded. Every slot iframe of every user receives the corresponding `
|
|
322
|
+
/** Broadcasts a message through the server to all clients in the room that have this extension loaded. Every slot iframe of every user receives the corresponding `v2.ext.whispered` event */
|
|
321
323
|
'v1.ext.whisper': {
|
|
322
324
|
params: {
|
|
323
325
|
/** Any JSON-serializable object to send to every frame.
|
|
@@ -563,23 +565,48 @@ declare type TV1SerializedError = {
|
|
|
563
565
|
stack?: string;
|
|
564
566
|
};
|
|
565
567
|
|
|
568
|
+
/**
|
|
569
|
+
* Required permission:
|
|
570
|
+
* - `sessions`
|
|
571
|
+
*/
|
|
566
572
|
export declare type TV1Session = TV1SessionSelf | TV1SessionOther;
|
|
567
573
|
|
|
574
|
+
/**
|
|
575
|
+
* Required permission:
|
|
576
|
+
* - `sessions`
|
|
577
|
+
*/
|
|
568
578
|
export declare type TV1SessionActionType = 'join' | 'finish';
|
|
569
579
|
|
|
570
580
|
declare type TV1SessionEvents = {
|
|
581
|
+
/**
|
|
582
|
+
* Required permission:
|
|
583
|
+
* - `sessions`
|
|
584
|
+
*/
|
|
571
585
|
'v1.session.updated': {
|
|
572
586
|
data: TV1SessionUpdate;
|
|
573
587
|
};
|
|
588
|
+
/**
|
|
589
|
+
* Required permission:
|
|
590
|
+
* - `sessions`
|
|
591
|
+
*/
|
|
574
592
|
'v1.session.whispered.model': TV1SessionWhisperData;
|
|
575
593
|
};
|
|
576
594
|
|
|
577
595
|
declare type TV1SessionMethods = {
|
|
596
|
+
/**
|
|
597
|
+
* Required permission:
|
|
598
|
+
* - `sessions`
|
|
599
|
+
*/
|
|
578
600
|
'v1.session.finish.model': {
|
|
579
601
|
params: null;
|
|
580
602
|
result: null;
|
|
581
603
|
};
|
|
582
|
-
/**
|
|
604
|
+
/**
|
|
605
|
+
* Returns the current long-term session.
|
|
606
|
+
*
|
|
607
|
+
* Required permission:
|
|
608
|
+
* - `sessions`
|
|
609
|
+
*/
|
|
583
610
|
'v1.session.get': {
|
|
584
611
|
params: null;
|
|
585
612
|
result: {
|
|
@@ -587,12 +614,20 @@ declare type TV1SessionMethods = {
|
|
|
587
614
|
session: TV1Session | null;
|
|
588
615
|
};
|
|
589
616
|
};
|
|
617
|
+
/**
|
|
618
|
+
* Required permission:
|
|
619
|
+
* - `sessions`
|
|
620
|
+
*/
|
|
590
621
|
'v1.session.join.model': {
|
|
591
622
|
params: {
|
|
592
623
|
ttl: string;
|
|
593
624
|
};
|
|
594
625
|
result: null;
|
|
595
626
|
};
|
|
627
|
+
/**
|
|
628
|
+
* Required permission:
|
|
629
|
+
* - `sessions`
|
|
630
|
+
*/
|
|
596
631
|
'v1.session.join.user': {
|
|
597
632
|
params: {
|
|
598
633
|
/** @deprecated
|
|
@@ -610,6 +645,10 @@ declare type TV1SessionMethods = {
|
|
|
610
645
|
};
|
|
611
646
|
result: null;
|
|
612
647
|
};
|
|
648
|
+
/**
|
|
649
|
+
* Required permission:
|
|
650
|
+
* - `sessions`
|
|
651
|
+
*/
|
|
613
652
|
'v1.session.whisper.user': {
|
|
614
653
|
params: {
|
|
615
654
|
data: TV1SessionWhisperData;
|
|
@@ -618,11 +657,19 @@ declare type TV1SessionMethods = {
|
|
|
618
657
|
};
|
|
619
658
|
};
|
|
620
659
|
|
|
660
|
+
/**
|
|
661
|
+
* Required permission:
|
|
662
|
+
* - `sessions`
|
|
663
|
+
*/
|
|
621
664
|
export declare type TV1SessionOther = {
|
|
622
665
|
/** The session exists but belongs to a different extension */
|
|
623
666
|
owner: 'other';
|
|
624
667
|
};
|
|
625
668
|
|
|
669
|
+
/**
|
|
670
|
+
* Required permission:
|
|
671
|
+
* - `sessions`
|
|
672
|
+
*/
|
|
626
673
|
export declare type TV1SessionSelf = {
|
|
627
674
|
meta: {
|
|
628
675
|
/** Platform session id */
|
|
@@ -634,12 +681,20 @@ export declare type TV1SessionSelf = {
|
|
|
634
681
|
owner: 'self';
|
|
635
682
|
};
|
|
636
683
|
|
|
684
|
+
/**
|
|
685
|
+
* Required permission:
|
|
686
|
+
* - `sessions`
|
|
687
|
+
*/
|
|
637
688
|
export declare type TV1SessionUpdate = {
|
|
638
689
|
action: TV1SessionActionType;
|
|
639
690
|
session: TV1Session | null;
|
|
640
691
|
userId: TUserId;
|
|
641
692
|
};
|
|
642
693
|
|
|
694
|
+
/**
|
|
695
|
+
* Required permission:
|
|
696
|
+
* - `sessions`
|
|
697
|
+
*/
|
|
643
698
|
export declare type TV1SessionWhisperData = TUnknownDictionary;
|
|
644
699
|
|
|
645
700
|
export declare type TV1ShowStatus = (typeof V1_SHOW_STATUSES)[keyof typeof V1_SHOW_STATUSES];
|
|
@@ -992,6 +1047,15 @@ export declare type TV1UserStatus = Exclude<TV1ShowStatus, 'idle'>;
|
|
|
992
1047
|
|
|
993
1048
|
export declare type TV1WhisperData = TUnknownDictionary;
|
|
994
1049
|
|
|
1050
|
+
export declare type TV2WhisperData = {
|
|
1051
|
+
data: TUnknownDictionary;
|
|
1052
|
+
/**
|
|
1053
|
+
* The authoritative amount of tokens actually paid for the broadcast action. Compare this value with an actual price defined in settings or as a contant in your app.
|
|
1054
|
+
* `null` means no payment occurred, e.g. when the whisper was called by user in a private show or it was called by the model.
|
|
1055
|
+
*/
|
|
1056
|
+
tokenSum: number | null;
|
|
1057
|
+
};
|
|
1058
|
+
|
|
995
1059
|
export declare const V1_SHOW_STATUSES: {
|
|
996
1060
|
/** Ticket show */
|
|
997
1061
|
readonly STATUS_TICKET_SHOW: "ticketShow";
|