@stripchatdev/ext-helper 0.1.38 → 0.1.39
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 +18 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -487,6 +487,12 @@ declare type TV1PaymentMethods = {
|
|
|
487
487
|
};
|
|
488
488
|
result: null;
|
|
489
489
|
};
|
|
490
|
+
/** Opens the token top-up (purchase) modal directly, sending the user straight to buying tokens — without
|
|
491
|
+
* the spend-confirmation step of `v1.payment.tokens.spend`. Use it for an explicit "Buy tokens" CTA. */
|
|
492
|
+
'v1.payment.tokens.topup': {
|
|
493
|
+
params: null;
|
|
494
|
+
result: null;
|
|
495
|
+
};
|
|
490
496
|
};
|
|
491
497
|
|
|
492
498
|
declare type TV1PrivateMethods = {
|
|
@@ -657,11 +663,23 @@ declare type TV1StorageMethods = {
|
|
|
657
663
|
};
|
|
658
664
|
'v1.storage.string.get': {
|
|
659
665
|
params: {
|
|
666
|
+
/**
|
|
667
|
+
* When `true`, read from the extension-wide global scope (`model_id=0,owner_id=0`) instead of
|
|
668
|
+
* the current room/owner scope. Use this for backend-seeded shared data that every room sees.
|
|
669
|
+
* Defaults to `false` (per-room read).
|
|
670
|
+
*/
|
|
671
|
+
all?: boolean;
|
|
660
672
|
key: string;
|
|
661
673
|
};
|
|
662
674
|
result: {
|
|
663
675
|
/** `false` when the key has never been set (value will be `''` empty string). */
|
|
664
676
|
exists: boolean;
|
|
677
|
+
/**
|
|
678
|
+
* Server time (UTC, RFC3339) at which the response was generated. Use this instead of the device
|
|
679
|
+
* clock for time-window logic — a skewed local clock won't desync the extension. Optional so a host
|
|
680
|
+
* that doesn't yet surface it still validates (newer hosts always include it).
|
|
681
|
+
*/
|
|
682
|
+
time?: string;
|
|
665
683
|
/** Stored string value. Empty string if the key was never set. */
|
|
666
684
|
value: string;
|
|
667
685
|
};
|