@stripchatdev/ext-helper 0.1.42 → 0.1.43

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 (2) hide show
  1. package/dist/index.d.ts +27 -9
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -384,6 +384,30 @@ export declare type TV1ExtViewers = {
384
384
  withTokens: number;
385
385
  };
386
386
 
387
+ declare type TV1FanClubMethods = {
388
+ /**
389
+ * Opens the fan club subscription modal for the current model.
390
+ * Read `context.user.fanClub` from the extension context to verify the user is eligible before calling.
391
+ * This field is available only for logged-in users (`context.user.isGuest === false`).
392
+ * Pass `null` for params to open the modal with the `soldier` tab selected by default.
393
+ */
394
+ 'v1.fanClub.request': {
395
+ params: {
396
+ /** Which tier tab to show in the modal. */
397
+ tier: TV1FanClubTier;
398
+ } | null;
399
+ result: null;
400
+ };
401
+ };
402
+
403
+ /**
404
+ * Fan club subscription tier. Ordered from lowest to highest:
405
+ * - `soldier` — first tier with basic benefits
406
+ * - `lord` — second tier with more benefits than `soldier`
407
+ * - `prince` — third tier with the most benefits
408
+ */
409
+ export declare type TV1FanClubTier = 'soldier' | 'lord' | 'prince';
410
+
387
411
  export declare type TV1Genders = 'male' | 'female' | 'group' | 'tranny';
388
412
 
389
413
  /** Regular goal data */
@@ -415,7 +439,7 @@ declare type TV1GoalMethods = {
415
439
  };
416
440
  };
417
441
 
418
- export declare type TV1Methods = TV1ExtMethods & TV1SystemMethods & TV1PaymentMethods & TV1ModelMethods & TV1ChatMethods & TV1PrivateMethods & TV1MonitoringMethods & TV1SessionMethods & TV1StorageMethods & TV1TipMethods & TV1GoalMethods;
442
+ export declare type TV1Methods = TV1ExtMethods & TV1SystemMethods & TV1PaymentMethods & TV1ModelMethods & TV1ChatMethods & TV1PrivateMethods & TV1MonitoringMethods & TV1SessionMethods & TV1StorageMethods & TV1TipMethods & TV1GoalMethods & TV1FanClubMethods;
419
443
 
420
444
  declare type TV1ModelEvents = {
421
445
  'v1.model.ext.settings.set.requested': null;
@@ -942,14 +966,8 @@ export declare type TV1UsersFanClubNotSubscribed = {
942
966
  export declare type TV1UsersFanClubSubscribed = {
943
967
  /** Whether user is subscribed to the model's fan club or not */
944
968
  isSubscribed: true;
945
- /** The tier of the fan club subscription. Could be `soldier`, `lord` or `prince`.
946
- * The higher the tier, the more benefits the user gets.
947
- *
948
- * `Soldier` is the first tier. It has basic benefits
949
- * `Lord` is the second tier. It has more benefits than `soldier`
950
- * `Prince` is the third tier. It has the most benefits.
951
- * **/
952
- tier: 'soldier' | 'lord' | 'prince';
969
+ /** The tier of the fan club subscription. Could be `soldier`, `lord` or `prince`. Higher tiers provide more benefits. */
970
+ tier: TV1FanClubTier;
953
971
  };
954
972
 
955
973
  export declare type TV1UserStatus = Exclude<(typeof V1_SHOW_STATUSES)[keyof typeof V1_SHOW_STATUSES], 'idle'>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stripchatdev/ext-helper",
3
3
  "private": false,
4
- "version": "0.1.42",
4
+ "version": "0.1.43",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "module": "./dist/ext-helper.js",