@stripchatdev/ext-helper 0.0.1 → 0.1.0

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 +63 -13
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -88,8 +88,6 @@ export declare type TV1ActionResult = {
88
88
  code: number;
89
89
  };
90
90
 
91
- export declare type TV1AvailableGenders = 'male' | 'female' | 'tranny' | 'maleFemale' | 'males' | 'females' | 'trannies' | 'maleTranny' | 'femaleTranny';
92
-
93
91
  declare type TV1ChatMethods = {
94
92
  'v1.chat.message.send': {
95
93
  params: {
@@ -166,37 +164,78 @@ declare type TV1ExtMethods = {
166
164
  };
167
165
 
168
166
  export declare type TV1ExtModel = {
167
+ /** Model's avatar url */
169
168
  avatarUrlThumb: string;
169
+ /** @deprecated use isExclusivePrivateEnabled instead. This property will be removed soon */
170
170
  doP2p: boolean;
171
+ /** @deprecated use isPrivateEnabled instead. This property will be removed soon */
171
172
  doPrivate: boolean;
172
- doSpy: boolean;
173
- gender: TV1AvailableGenders;
173
+ /** Broadcasting gender. Could be one of the male, female, tranny or group */
174
+ gender: TV1Genders;
174
175
  id: TUserId;
176
+ /** Is exclusive private mode enabled on the stream */
177
+ isExclusivePrivateEnabled: boolean;
178
+ /** Is non nude model */
175
179
  isNonNude: boolean;
180
+ /** Is private mode enabled on the stream */
181
+ isPrivateEnabled: boolean;
182
+ /** Is spy mode enabled on the stream */
183
+ isSpyEnabled: boolean;
184
+ /** Model's name from her profile. If not set, an empty string will be returned */
176
185
  name: string;
186
+ /** Status of the show. Possible values:
187
+ *
188
+ * - `idle` - model is online but not streaming
189
+ * - `public` - model is broadcasting public show
190
+ * - `private` - model is in private show
191
+ * - `exclusivePrivate` - model is in exclusive private show
192
+ * - `off` - model is offline
193
+ * - `groupShow` - model is in group show that is not a ticket show
194
+ * - `ticketShow` - model is in ticket show
195
+ * */
177
196
  status: TV1ModelStatus;
197
+ /** Model's username */
178
198
  username: string;
179
199
  };
180
200
 
181
201
  export declare type TV1ExtSettings = unknown;
182
202
 
183
203
  export declare type TV1ExtUser = {
204
+ /** User previously purchased tokens */
205
+ hasPaidBefore: boolean;
206
+ /** User has tokens */
207
+ hasTokens: boolean;
208
+ /** User currently has Ultimate membership */
209
+ hasUltimateSubscription: boolean;
210
+ /** User ID. */
184
211
  id: TUserId;
185
- isExGreen: boolean;
186
- isGreen: boolean;
212
+ /** Current user is a model. */
187
213
  isModel: boolean;
188
- isRegular: boolean;
189
- isStudio: boolean;
190
- isUltimate: boolean;
214
+ /**
215
+ * Current show/session state for this user.
216
+ *
217
+ * - `public` — public broadcast context
218
+ * - `private` — private show context
219
+ * - `exclusivePrivate` — exclusive private show context
220
+ * - `groupShow` — group show context
221
+ * - `ticketShow` — ticket show context
222
+ * - `off` — offline
223
+ * - `spy` — spying on a private show
224
+ */
191
225
  status: TV1UserStatus;
226
+ /** User username. */
192
227
  username: string;
228
+ /** User activity ranking data when available. */
193
229
  userRanking?: {
194
- isEx: boolean;
230
+ /** League representation of the user's activity level. Could be `grey`, `bronze`, `silver`, `gold`, `diamond`, `royal` or `legend`. */
195
231
  league: TV1UserLeague;
232
+ /** Activity level from 1 to 100. */
196
233
  level: number;
197
- } | null;
234
+ };
198
235
  };
199
236
 
237
+ export declare type TV1Genders = 'male' | 'female' | 'group' | 'tranny';
238
+
200
239
  export declare type TV1Methods = TV1ExtMethods & TV1SystemMethods & TV1PaymentMethods & TV1ModelMethods & TV1ChatMethods & TV1PrivateMethods;
201
240
 
202
241
  declare type TV1ModelEvents = {
@@ -219,7 +258,7 @@ declare type TV1ModelMethods = {
219
258
  };
220
259
  };
221
260
 
222
- export declare type TV1ModelStatus = (typeof V1_SHOW_STATUSES)[keyof typeof V1_SHOW_STATUSES];
261
+ export declare type TV1ModelStatus = Exclude<(typeof V1_SHOW_STATUSES)[keyof typeof V1_SHOW_STATUSES], 'spy'>;
223
262
 
224
263
  declare type TV1PaymentEvents = {
225
264
  'v1.payment.tokens.spend.succeeded': {
@@ -258,9 +297,19 @@ declare type TV1SystemMethods = {
258
297
 
259
298
  export declare type TV1TokenSpendData = TUnknownDictionary;
260
299
 
300
+ /**
301
+ * User activity league. Ordered from lowest to highest activity rank:
302
+ * - `grey` — new or low-activity users (level 1–9)
303
+ * - `bronze` — early active users (level 10–19)
304
+ * - `silver` — regularly active users (level 20–34)
305
+ * - `gold` — highly active users (level 35–54)
306
+ * - `diamond` — very highly active users (level 55–79)
307
+ * - `royal` — elite activity users (level 80–99)
308
+ * - `legend` — top activity users (level 100)
309
+ */
261
310
  declare type TV1UserLeague = 'grey' | 'bronze' | 'silver' | 'gold' | 'diamond' | 'royal' | 'legend';
262
311
 
263
- export declare type TV1UserStatus = (typeof V1_SHOW_STATUSES)[keyof typeof V1_SHOW_STATUSES];
312
+ export declare type TV1UserStatus = Exclude<(typeof V1_SHOW_STATUSES)[keyof typeof V1_SHOW_STATUSES], 'idle'>;
264
313
 
265
314
  export declare type TV1WhisperData = TUnknownDictionary;
266
315
 
@@ -272,6 +321,7 @@ export declare const V1_SHOW_STATUSES: {
272
321
  readonly STATUS_EXCLUSIVE_PRIVATE: "exclusivePrivate";
273
322
  readonly STATUS_PUBLIC: "public";
274
323
  readonly STATUS_IDLE: "idle";
324
+ readonly STATUS_SPY: "spy";
275
325
  };
276
326
 
277
327
  export { }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stripchatdev/ext-helper",
3
3
  "private": false,
4
- "version": "0.0.1",
4
+ "version": "0.1.0",
5
5
  "type": "module",
6
6
  "module": "./dist/ext-helper.js",
7
7
  "types": "./dist/index.d.ts",
@@ -16,7 +16,7 @@
16
16
  "dist"
17
17
  ],
18
18
  "publishConfig": {
19
- "registry": "https://registry.npmjs.org/",
19
+ "registry": "https://gitlab.stripchat.dev/api/v4/projects/1902/packages/npm/",
20
20
  "access": "public"
21
21
  },
22
22
  "sideEffects": false,