@stripchatdev/ext-helper 0.2.1 → 0.2.3
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 +35 -0
- package/dist/helpers/react.d.ts +35 -0
- package/dist/index.d.ts +35 -0
- package/package.json +1 -1
package/dist/helpers/index.d.ts
CHANGED
|
@@ -146,6 +146,10 @@ declare type TV1ActionResult = {
|
|
|
146
146
|
declare type TV1ChatEvents = {
|
|
147
147
|
/** Triggered on every new message in a chat */
|
|
148
148
|
'v1.chat.message.received': {
|
|
149
|
+
/** Unique event id */
|
|
150
|
+
eventId: string;
|
|
151
|
+
/** Unique id of the message */
|
|
152
|
+
messageId: string;
|
|
149
153
|
/** Text of the message */
|
|
150
154
|
messageText: string;
|
|
151
155
|
/** User who sent the message **/
|
|
@@ -469,6 +473,7 @@ declare type TV1GoalData = {
|
|
|
469
473
|
declare type TV1GoalEvents = {
|
|
470
474
|
/** Fired when any field of the active goal changes (description, isCompleted, tokensTarget, or tokensCollected), or the active goal is removed. */
|
|
471
475
|
'v1.goal.updated': {
|
|
476
|
+
eventId: string;
|
|
472
477
|
goal: TV1GoalData | null;
|
|
473
478
|
};
|
|
474
479
|
};
|
|
@@ -750,6 +755,12 @@ declare type TV1StorageMethods = {
|
|
|
750
755
|
params: {
|
|
751
756
|
/** Amount to add (may be negative). Must not be zero. */
|
|
752
757
|
delta: string;
|
|
758
|
+
/**
|
|
759
|
+
* Unique key for idempotent storage writes, such as an eventId, messageId, or transactionId.
|
|
760
|
+
* Warning: Do not use unstable frontend-generated values because they may differ across tabs.
|
|
761
|
+
* Use the same stable value across tabs and devices.
|
|
762
|
+
*/
|
|
763
|
+
idempotencyKey?: string;
|
|
753
764
|
key: string;
|
|
754
765
|
/** Opaque payload forwarded to server-side payment/policy validation. */
|
|
755
766
|
paymentContext?: string;
|
|
@@ -764,6 +775,12 @@ declare type TV1StorageMethods = {
|
|
|
764
775
|
/** Reset an integer counter to 0. */
|
|
765
776
|
'v1.storage.int.reset': {
|
|
766
777
|
params: {
|
|
778
|
+
/**
|
|
779
|
+
* Unique key for idempotent storage writes, such as an eventId, messageId, or transactionId.
|
|
780
|
+
* Warning: Do not use unstable frontend-generated values because they may differ across tabs.
|
|
781
|
+
* Use the same stable value across tabs and devices.
|
|
782
|
+
*/
|
|
783
|
+
idempotencyKey?: string;
|
|
767
784
|
key: string;
|
|
768
785
|
};
|
|
769
786
|
result: {
|
|
@@ -802,6 +819,12 @@ declare type TV1StorageMethods = {
|
|
|
802
819
|
};
|
|
803
820
|
'v1.storage.string.append': {
|
|
804
821
|
params: {
|
|
822
|
+
/**
|
|
823
|
+
* Unique key for idempotent storage writes, such as an eventId, messageId, or transactionId.
|
|
824
|
+
* Warning: Do not use unstable frontend-generated values because they may differ across tabs.
|
|
825
|
+
* Use the same stable value across tabs and devices.
|
|
826
|
+
*/
|
|
827
|
+
idempotencyKey?: string;
|
|
805
828
|
key: string;
|
|
806
829
|
/** Auto-delete the key after this many seconds. Omit or 0 = no expiry. */
|
|
807
830
|
/** @format int64 */
|
|
@@ -810,6 +833,7 @@ declare type TV1StorageMethods = {
|
|
|
810
833
|
};
|
|
811
834
|
result: {
|
|
812
835
|
success: boolean;
|
|
836
|
+
value: string;
|
|
813
837
|
};
|
|
814
838
|
};
|
|
815
839
|
'v1.storage.string.get': {
|
|
@@ -837,6 +861,12 @@ declare type TV1StorageMethods = {
|
|
|
837
861
|
};
|
|
838
862
|
'v1.storage.string.set': {
|
|
839
863
|
params: {
|
|
864
|
+
/**
|
|
865
|
+
* Unique key for idempotent storage writes, such as an eventId, messageId, or transactionId.
|
|
866
|
+
* Warning: Do not use unstable frontend-generated values because they may differ across tabs.
|
|
867
|
+
* Use the same stable value across tabs and devices.
|
|
868
|
+
*/
|
|
869
|
+
idempotencyKey?: string;
|
|
840
870
|
key: string;
|
|
841
871
|
/** Auto-delete the key after this many seconds. Omit or 0 = no expiry. */
|
|
842
872
|
/** @format int64 */
|
|
@@ -845,6 +875,7 @@ declare type TV1StorageMethods = {
|
|
|
845
875
|
};
|
|
846
876
|
result: {
|
|
847
877
|
success: boolean;
|
|
878
|
+
value: string;
|
|
848
879
|
};
|
|
849
880
|
};
|
|
850
881
|
/**
|
|
@@ -959,11 +990,15 @@ declare type TV1TipData = {
|
|
|
959
990
|
declare type TV1TipEvents = {
|
|
960
991
|
/** Fired when the tip menu has been updated.*/
|
|
961
992
|
'v1.tipMenu.updated': {
|
|
993
|
+
/** Unique event id */
|
|
994
|
+
eventId: string;
|
|
962
995
|
/** The current tip menu data. */
|
|
963
996
|
tipMenu: TV1TipMenu;
|
|
964
997
|
};
|
|
965
998
|
/** Fired on every tip in chat for both model and user. Doesn't fire on private tips during public shows */
|
|
966
999
|
'v1.tokens.spent': {
|
|
1000
|
+
/** Unique event id */
|
|
1001
|
+
eventId: string;
|
|
967
1002
|
tipData: TV1TipData;
|
|
968
1003
|
};
|
|
969
1004
|
};
|
package/dist/helpers/react.d.ts
CHANGED
|
@@ -80,6 +80,10 @@ declare type TV1ActionResult = {
|
|
|
80
80
|
declare type TV1ChatEvents = {
|
|
81
81
|
/** Triggered on every new message in a chat */
|
|
82
82
|
'v1.chat.message.received': {
|
|
83
|
+
/** Unique event id */
|
|
84
|
+
eventId: string;
|
|
85
|
+
/** Unique id of the message */
|
|
86
|
+
messageId: string;
|
|
83
87
|
/** Text of the message */
|
|
84
88
|
messageText: string;
|
|
85
89
|
/** User who sent the message **/
|
|
@@ -403,6 +407,7 @@ declare type TV1GoalData = {
|
|
|
403
407
|
declare type TV1GoalEvents = {
|
|
404
408
|
/** Fired when any field of the active goal changes (description, isCompleted, tokensTarget, or tokensCollected), or the active goal is removed. */
|
|
405
409
|
'v1.goal.updated': {
|
|
410
|
+
eventId: string;
|
|
406
411
|
goal: TV1GoalData | null;
|
|
407
412
|
};
|
|
408
413
|
};
|
|
@@ -684,6 +689,12 @@ declare type TV1StorageMethods = {
|
|
|
684
689
|
params: {
|
|
685
690
|
/** Amount to add (may be negative). Must not be zero. */
|
|
686
691
|
delta: string;
|
|
692
|
+
/**
|
|
693
|
+
* Unique key for idempotent storage writes, such as an eventId, messageId, or transactionId.
|
|
694
|
+
* Warning: Do not use unstable frontend-generated values because they may differ across tabs.
|
|
695
|
+
* Use the same stable value across tabs and devices.
|
|
696
|
+
*/
|
|
697
|
+
idempotencyKey?: string;
|
|
687
698
|
key: string;
|
|
688
699
|
/** Opaque payload forwarded to server-side payment/policy validation. */
|
|
689
700
|
paymentContext?: string;
|
|
@@ -698,6 +709,12 @@ declare type TV1StorageMethods = {
|
|
|
698
709
|
/** Reset an integer counter to 0. */
|
|
699
710
|
'v1.storage.int.reset': {
|
|
700
711
|
params: {
|
|
712
|
+
/**
|
|
713
|
+
* Unique key for idempotent storage writes, such as an eventId, messageId, or transactionId.
|
|
714
|
+
* Warning: Do not use unstable frontend-generated values because they may differ across tabs.
|
|
715
|
+
* Use the same stable value across tabs and devices.
|
|
716
|
+
*/
|
|
717
|
+
idempotencyKey?: string;
|
|
701
718
|
key: string;
|
|
702
719
|
};
|
|
703
720
|
result: {
|
|
@@ -736,6 +753,12 @@ declare type TV1StorageMethods = {
|
|
|
736
753
|
};
|
|
737
754
|
'v1.storage.string.append': {
|
|
738
755
|
params: {
|
|
756
|
+
/**
|
|
757
|
+
* Unique key for idempotent storage writes, such as an eventId, messageId, or transactionId.
|
|
758
|
+
* Warning: Do not use unstable frontend-generated values because they may differ across tabs.
|
|
759
|
+
* Use the same stable value across tabs and devices.
|
|
760
|
+
*/
|
|
761
|
+
idempotencyKey?: string;
|
|
739
762
|
key: string;
|
|
740
763
|
/** Auto-delete the key after this many seconds. Omit or 0 = no expiry. */
|
|
741
764
|
/** @format int64 */
|
|
@@ -744,6 +767,7 @@ declare type TV1StorageMethods = {
|
|
|
744
767
|
};
|
|
745
768
|
result: {
|
|
746
769
|
success: boolean;
|
|
770
|
+
value: string;
|
|
747
771
|
};
|
|
748
772
|
};
|
|
749
773
|
'v1.storage.string.get': {
|
|
@@ -771,6 +795,12 @@ declare type TV1StorageMethods = {
|
|
|
771
795
|
};
|
|
772
796
|
'v1.storage.string.set': {
|
|
773
797
|
params: {
|
|
798
|
+
/**
|
|
799
|
+
* Unique key for idempotent storage writes, such as an eventId, messageId, or transactionId.
|
|
800
|
+
* Warning: Do not use unstable frontend-generated values because they may differ across tabs.
|
|
801
|
+
* Use the same stable value across tabs and devices.
|
|
802
|
+
*/
|
|
803
|
+
idempotencyKey?: string;
|
|
774
804
|
key: string;
|
|
775
805
|
/** Auto-delete the key after this many seconds. Omit or 0 = no expiry. */
|
|
776
806
|
/** @format int64 */
|
|
@@ -779,6 +809,7 @@ declare type TV1StorageMethods = {
|
|
|
779
809
|
};
|
|
780
810
|
result: {
|
|
781
811
|
success: boolean;
|
|
812
|
+
value: string;
|
|
782
813
|
};
|
|
783
814
|
};
|
|
784
815
|
/**
|
|
@@ -893,11 +924,15 @@ declare type TV1TipData = {
|
|
|
893
924
|
declare type TV1TipEvents = {
|
|
894
925
|
/** Fired when the tip menu has been updated.*/
|
|
895
926
|
'v1.tipMenu.updated': {
|
|
927
|
+
/** Unique event id */
|
|
928
|
+
eventId: string;
|
|
896
929
|
/** The current tip menu data. */
|
|
897
930
|
tipMenu: TV1TipMenu;
|
|
898
931
|
};
|
|
899
932
|
/** Fired on every tip in chat for both model and user. Doesn't fire on private tips during public shows */
|
|
900
933
|
'v1.tokens.spent': {
|
|
934
|
+
/** Unique event id */
|
|
935
|
+
eventId: string;
|
|
901
936
|
tipData: TV1TipData;
|
|
902
937
|
};
|
|
903
938
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -116,6 +116,10 @@ export declare type TV1ActionResult = {
|
|
|
116
116
|
declare type TV1ChatEvents = {
|
|
117
117
|
/** Triggered on every new message in a chat */
|
|
118
118
|
'v1.chat.message.received': {
|
|
119
|
+
/** Unique event id */
|
|
120
|
+
eventId: string;
|
|
121
|
+
/** Unique id of the message */
|
|
122
|
+
messageId: string;
|
|
119
123
|
/** Text of the message */
|
|
120
124
|
messageText: string;
|
|
121
125
|
/** User who sent the message **/
|
|
@@ -439,6 +443,7 @@ export declare type TV1GoalData = {
|
|
|
439
443
|
declare type TV1GoalEvents = {
|
|
440
444
|
/** Fired when any field of the active goal changes (description, isCompleted, tokensTarget, or tokensCollected), or the active goal is removed. */
|
|
441
445
|
'v1.goal.updated': {
|
|
446
|
+
eventId: string;
|
|
442
447
|
goal: TV1GoalData | null;
|
|
443
448
|
};
|
|
444
449
|
};
|
|
@@ -720,6 +725,12 @@ declare type TV1StorageMethods = {
|
|
|
720
725
|
params: {
|
|
721
726
|
/** Amount to add (may be negative). Must not be zero. */
|
|
722
727
|
delta: string;
|
|
728
|
+
/**
|
|
729
|
+
* Unique key for idempotent storage writes, such as an eventId, messageId, or transactionId.
|
|
730
|
+
* Warning: Do not use unstable frontend-generated values because they may differ across tabs.
|
|
731
|
+
* Use the same stable value across tabs and devices.
|
|
732
|
+
*/
|
|
733
|
+
idempotencyKey?: string;
|
|
723
734
|
key: string;
|
|
724
735
|
/** Opaque payload forwarded to server-side payment/policy validation. */
|
|
725
736
|
paymentContext?: string;
|
|
@@ -734,6 +745,12 @@ declare type TV1StorageMethods = {
|
|
|
734
745
|
/** Reset an integer counter to 0. */
|
|
735
746
|
'v1.storage.int.reset': {
|
|
736
747
|
params: {
|
|
748
|
+
/**
|
|
749
|
+
* Unique key for idempotent storage writes, such as an eventId, messageId, or transactionId.
|
|
750
|
+
* Warning: Do not use unstable frontend-generated values because they may differ across tabs.
|
|
751
|
+
* Use the same stable value across tabs and devices.
|
|
752
|
+
*/
|
|
753
|
+
idempotencyKey?: string;
|
|
737
754
|
key: string;
|
|
738
755
|
};
|
|
739
756
|
result: {
|
|
@@ -772,6 +789,12 @@ declare type TV1StorageMethods = {
|
|
|
772
789
|
};
|
|
773
790
|
'v1.storage.string.append': {
|
|
774
791
|
params: {
|
|
792
|
+
/**
|
|
793
|
+
* Unique key for idempotent storage writes, such as an eventId, messageId, or transactionId.
|
|
794
|
+
* Warning: Do not use unstable frontend-generated values because they may differ across tabs.
|
|
795
|
+
* Use the same stable value across tabs and devices.
|
|
796
|
+
*/
|
|
797
|
+
idempotencyKey?: string;
|
|
775
798
|
key: string;
|
|
776
799
|
/** Auto-delete the key after this many seconds. Omit or 0 = no expiry. */
|
|
777
800
|
/** @format int64 */
|
|
@@ -780,6 +803,7 @@ declare type TV1StorageMethods = {
|
|
|
780
803
|
};
|
|
781
804
|
result: {
|
|
782
805
|
success: boolean;
|
|
806
|
+
value: string;
|
|
783
807
|
};
|
|
784
808
|
};
|
|
785
809
|
'v1.storage.string.get': {
|
|
@@ -807,6 +831,12 @@ declare type TV1StorageMethods = {
|
|
|
807
831
|
};
|
|
808
832
|
'v1.storage.string.set': {
|
|
809
833
|
params: {
|
|
834
|
+
/**
|
|
835
|
+
* Unique key for idempotent storage writes, such as an eventId, messageId, or transactionId.
|
|
836
|
+
* Warning: Do not use unstable frontend-generated values because they may differ across tabs.
|
|
837
|
+
* Use the same stable value across tabs and devices.
|
|
838
|
+
*/
|
|
839
|
+
idempotencyKey?: string;
|
|
810
840
|
key: string;
|
|
811
841
|
/** Auto-delete the key after this many seconds. Omit or 0 = no expiry. */
|
|
812
842
|
/** @format int64 */
|
|
@@ -815,6 +845,7 @@ declare type TV1StorageMethods = {
|
|
|
815
845
|
};
|
|
816
846
|
result: {
|
|
817
847
|
success: boolean;
|
|
848
|
+
value: string;
|
|
818
849
|
};
|
|
819
850
|
};
|
|
820
851
|
/**
|
|
@@ -929,11 +960,15 @@ export declare type TV1TipData = {
|
|
|
929
960
|
declare type TV1TipEvents = {
|
|
930
961
|
/** Fired when the tip menu has been updated.*/
|
|
931
962
|
'v1.tipMenu.updated': {
|
|
963
|
+
/** Unique event id */
|
|
964
|
+
eventId: string;
|
|
932
965
|
/** The current tip menu data. */
|
|
933
966
|
tipMenu: TV1TipMenu;
|
|
934
967
|
};
|
|
935
968
|
/** Fired on every tip in chat for both model and user. Doesn't fire on private tips during public shows */
|
|
936
969
|
'v1.tokens.spent': {
|
|
970
|
+
/** Unique event id */
|
|
971
|
+
eventId: string;
|
|
937
972
|
tipData: TV1TipData;
|
|
938
973
|
};
|
|
939
974
|
};
|