@stripchatdev/ext-helper 0.1.40 → 0.1.42
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/index.d.ts +29 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -312,10 +312,17 @@ declare type TV1ExtMethods = {
|
|
|
312
312
|
* Never send any sensetive data through this field, such as username or user id.
|
|
313
313
|
* */
|
|
314
314
|
data: TV1WhisperData;
|
|
315
|
-
/**
|
|
315
|
+
/** @deprecated
|
|
316
|
+
* Use `paymentHash` instead
|
|
317
|
+
*
|
|
318
|
+
* Payment data returned by the `payment.tokens.spend.succeeded` event.
|
|
316
319
|
* Required for users in public shows. Use it only once for the request it authorizes. Do not store or reuse it.
|
|
317
320
|
* */
|
|
318
321
|
paymentData?: TV1PaymentData;
|
|
322
|
+
/** Payment hash returned by the `payment.tokens.spend.succeeded` event.
|
|
323
|
+
* Payment hash is used for authentication. Required for users in public shows. Use it only once for the request it authorizes. Do not store or reuse it.
|
|
324
|
+
* */
|
|
325
|
+
paymentHash?: TV1PaymentHash;
|
|
319
326
|
};
|
|
320
327
|
result: null;
|
|
321
328
|
};
|
|
@@ -469,13 +476,23 @@ declare type TV1PaymentEvents = {
|
|
|
469
476
|
'v1.payment.tokens.spend.succeeded': {
|
|
470
477
|
/** Was the tip anonymous. Use this field in `v1.chat.message.send` */
|
|
471
478
|
isAnonymous: boolean;
|
|
472
|
-
/**
|
|
479
|
+
/** @deprecated
|
|
480
|
+
* Use `paymentHash` instead.
|
|
481
|
+
*
|
|
482
|
+
* Payment data returned after a successful token spend. Use it only once for the request it authorizes. Do not store or reuse it. */
|
|
473
483
|
paymentData: TV1PaymentData;
|
|
484
|
+
/**
|
|
485
|
+
* Payment hash used for authentication. Required for users in public shows. Use it only once for the request it authorizes. Do not store or reuse it.
|
|
486
|
+
*/
|
|
487
|
+
paymentHash: TV1PaymentHash;
|
|
474
488
|
/** Custom data passed in `payment.tokens.spend` method */
|
|
475
489
|
tokensSpendData: TV1TokenSpendData;
|
|
476
490
|
};
|
|
477
491
|
};
|
|
478
492
|
|
|
493
|
+
/** Payment hash used for authentication. Do not store or reuse it. Use it only once for the request it authorizes. */
|
|
494
|
+
export declare type TV1PaymentHash = string;
|
|
495
|
+
|
|
479
496
|
declare type TV1PaymentMethods = {
|
|
480
497
|
/** Requests a confirmation modal to spend tokens */
|
|
481
498
|
'v1.payment.tokens.spend': {
|
|
@@ -539,8 +556,16 @@ declare type TV1SessionMethods = {
|
|
|
539
556
|
};
|
|
540
557
|
'v1.session.join.user': {
|
|
541
558
|
params: {
|
|
542
|
-
/**
|
|
543
|
-
|
|
559
|
+
/** @deprecated
|
|
560
|
+
* Use `paymentHash` instead.
|
|
561
|
+
*
|
|
562
|
+
* Payment data returned by the `payment.tokens.spend.succeeded` event. Use it only once for the request it authorizes. Do not store or reuse it. */
|
|
563
|
+
payment?: TV1PaymentData;
|
|
564
|
+
/**
|
|
565
|
+
* Payment hash returned by the `payment.tokens.spend.succeeded` event.
|
|
566
|
+
* Use it only once for the request it authorizes. Do not store or reuse it.
|
|
567
|
+
*/
|
|
568
|
+
paymentHash: TV1PaymentHash;
|
|
544
569
|
/** Session lifetime in seconds (minimum 1). */
|
|
545
570
|
ttl: string;
|
|
546
571
|
};
|