@stripchatdev/ext-helper 0.1.25 → 0.1.27

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 +71 -10
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -11,7 +11,7 @@ declare class ExtHelper {
11
11
  bootstrap(): void;
12
12
  }
13
13
 
14
- export declare type IV1IntIncrementFailureReason = 'INT_INCREMENT_FAILURE_REASON_NONE' | 'INT_INCREMENT_FAILURE_REASON_VALIDATION_DENIED';
14
+ export declare type IV1IntIncrementFailureReason = 'INT_INCREMENT_FAILURE_REASON_UNSPECIFIED' | 'INT_INCREMENT_FAILURE_REASON_NONE' | 'INT_INCREMENT_FAILURE_REASON_VALIDATION_DENIED';
15
15
 
16
16
  export declare type IV1ResolveSlotPage = (slotType: string, context: TV1ExtContext, extSettings: TV1ExtSettings) => void;
17
17
 
@@ -149,7 +149,7 @@ declare type TV1ChatMethods = {
149
149
  };
150
150
  };
151
151
 
152
- export declare type TV1Events = TV1ExtEvents & TV1PaymentEvents & TV1ModelEvents & TV1TipEvents & TV1ChatEvents;
152
+ export declare type TV1Events = TV1ExtEvents & TV1PaymentEvents & TV1ModelEvents & TV1SessionEvents & TV1TipEvents & TV1ChatEvents;
153
153
 
154
154
  export declare type TV1ExtContext = {
155
155
  model?: TV1ExtModel;
@@ -219,12 +219,6 @@ declare type TV1ExtMethods = {
219
219
  params: TV1ActionRequestParams;
220
220
  result: TV1ActionResult;
221
221
  };
222
- 'v1.ext.activity.cancel': {
223
- params: {
224
- activityId: string;
225
- };
226
- result: null;
227
- };
228
222
  'v1.ext.activity.request': {
229
223
  params: {
230
224
  durationMs: number;
@@ -325,7 +319,7 @@ export declare type TV1ExtUser = TV1ExtGuestUser | TV1ExtLoggedInUser;
325
319
 
326
320
  export declare type TV1Genders = 'male' | 'female' | 'group' | 'tranny';
327
321
 
328
- export declare type TV1Methods = TV1ExtMethods & TV1SystemMethods & TV1PaymentMethods & TV1ModelMethods & TV1ChatMethods & TV1PrivateMethods & TV1MonitoringMethods & TV1StorageMethods & TV1TipMethods;
322
+ export declare type TV1Methods = TV1ExtMethods & TV1SystemMethods & TV1PaymentMethods & TV1ModelMethods & TV1ChatMethods & TV1PrivateMethods & TV1MonitoringMethods & TV1SessionMethods & TV1StorageMethods & TV1TipMethods;
329
323
 
330
324
  declare type TV1ModelEvents = {
331
325
  'v1.model.ext.settings.set.requested': null;
@@ -419,6 +413,73 @@ declare type TV1SerializedError = {
419
413
  stack?: string;
420
414
  };
421
415
 
416
+ export declare type TV1Session = TV1SessionSelf | TV1SessionOther;
417
+
418
+ export declare type TV1SessionActionType = 'join' | 'finish';
419
+
420
+ declare type TV1SessionEvents = {
421
+ 'v1.session.updated': {
422
+ data: TV1SessionUpdate;
423
+ };
424
+ 'v1.session.whispered.model': TV1SessionWhisperData;
425
+ };
426
+
427
+ declare type TV1SessionMethods = {
428
+ 'v1.session.finish.model': {
429
+ params: null;
430
+ result: null;
431
+ };
432
+ 'v1.session.get': {
433
+ params: null;
434
+ result: {
435
+ session: TV1Session | null;
436
+ };
437
+ };
438
+ 'v1.session.join.model': {
439
+ params: {
440
+ ttl: string;
441
+ };
442
+ result: null;
443
+ };
444
+ 'v1.session.join.user': {
445
+ params: {
446
+ payment: TV1PaymentData;
447
+ ttl: string;
448
+ };
449
+ result: null;
450
+ };
451
+ 'v1.session.whisper.user': {
452
+ params: {
453
+ data: TV1SessionWhisperData;
454
+ };
455
+ result: null;
456
+ };
457
+ };
458
+
459
+ export declare type TV1SessionOther = {
460
+ /** The session exists but belongs to a different extension */
461
+ owner: 'other';
462
+ };
463
+
464
+ export declare type TV1SessionSelf = {
465
+ meta: {
466
+ /** Platform session id */
467
+ sessionId: string;
468
+ /** Remaining lifetime in seconds */
469
+ ttlSec: number;
470
+ };
471
+ /** The session exists and belongs to this extension */
472
+ owner: 'self';
473
+ };
474
+
475
+ export declare type TV1SessionUpdate = {
476
+ action: TV1SessionActionType;
477
+ session: TV1Session | null;
478
+ userId: TUserId;
479
+ };
480
+
481
+ export declare type TV1SessionWhisperData = TUnknownDictionary;
482
+
422
483
  declare type TV1StorageMethods = {
423
484
  'v1.storage.int.get': {
424
485
  params: {
@@ -705,7 +766,7 @@ export declare type TV1TopUserEntry = {
705
766
  userId: string;
706
767
  };
707
768
 
708
- export declare type TV1TopWindow = 'TOP_1D' | 'TOP_7D' | 'TOP_30D';
769
+ export declare type TV1TopWindow = 'TOP_1D' | 'TOP_7D' | 'TOP_30D' | 'TOP_UNSPECIFIED';
709
770
 
710
771
  /**
711
772
  * User activity league. Ordered from lowest to highest activity rank:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stripchatdev/ext-helper",
3
3
  "private": false,
4
- "version": "0.1.25",
4
+ "version": "0.1.27",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "module": "./dist/ext-helper.js",