@autogames/sdk 1.5.1 → 1.7.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.
- package/dist/autogames-sdk.esm.js +1 -1
- package/dist/autogames-sdk.js +267 -267
- package/dist/{basic-BBZhqs7d.js → basic-BW9Z2ft2.js} +3 -3
- package/dist/{ccip-D9NenQot.js → ccip-y7RKuBS9.js} +1 -1
- package/dist/{core-DTsAxiJb.js → core-DyWKd6vD.js} +5 -5
- package/dist/{features-1Q0Qu1SB.js → features-B_cBufJ4.js} +1 -1
- package/dist/{index-G2_zkv6d.js → index-2I7bW0qt.js} +2 -2
- package/dist/{index-C6j0n9K2.js → index-BeuJrMmG.js} +1 -1
- package/dist/{index-BQfg7MNL.js → index-lr-bESNE.js} +4 -4
- package/dist/{main-u_ysRES3.js → main-ftwh8412.js} +8794 -8768
- package/dist/main.d.ts +18 -0
- package/dist/{parseSignature-bsxMEuDr.js → parseSignature-BQgOdWw6.js} +1 -1
- package/dist/{secp256k1-TMxX_1sg.js → secp256k1-HKgKf8Kb.js} +1 -1
- package/dist/stats-confirm.html +1 -1
- package/dist/{w3m-modal-PxWWCSxK.js → w3m-modal-DHPBbbVB.js} +2 -2
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -111,6 +111,13 @@ declare class AutoGamesSDKClass {
|
|
|
111
111
|
* Get current authentication state
|
|
112
112
|
*/
|
|
113
113
|
getAuthState(): AuthState;
|
|
114
|
+
/**
|
|
115
|
+
* Get a fresh access token, refreshing it if needed.
|
|
116
|
+
* Use this when you need to pass the token to your own backend.
|
|
117
|
+
* @returns Fresh access token
|
|
118
|
+
* @throws Error if not authenticated or refresh fails
|
|
119
|
+
*/
|
|
120
|
+
getAccessToken(): Promise<string>;
|
|
114
121
|
/**
|
|
115
122
|
* Mount the chat widget
|
|
116
123
|
* @param options - Optional widget configuration (position)
|
|
@@ -196,8 +203,19 @@ export declare type ChatWidgetOptions = {
|
|
|
196
203
|
*/
|
|
197
204
|
offsetY?: number;
|
|
198
205
|
};
|
|
206
|
+
/**
|
|
207
|
+
* Color theme (defaults to 'dark')
|
|
208
|
+
*/
|
|
209
|
+
theme?: ChatWidgetTheme;
|
|
199
210
|
};
|
|
200
211
|
|
|
212
|
+
/**
|
|
213
|
+
* Chat widget theme
|
|
214
|
+
* - 'dark': Dark background (default)
|
|
215
|
+
* - 'light': Light background
|
|
216
|
+
*/
|
|
217
|
+
export declare type ChatWidgetTheme = 'dark' | 'light';
|
|
218
|
+
|
|
201
219
|
declare type CreatedToken = {
|
|
202
220
|
token: Token;
|
|
203
221
|
user_token: UserToken;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as m, bV as y, bI as w, a5 as x, bX as p, cj as z, cg as M, d9 as k, ci as d, da as T, Z as E, db as N, a4 as P, dc as S, bx as B, dd as L, cc as $, de as A } from "./main-
|
|
1
|
+
import { M as m, bV as y, bI as w, a5 as x, bX as p, cj as z, cg as M, d9 as k, ci as d, da as T, Z as E, db as N, a4 as P, dc as S, bx as B, dd as L, cc as $, de as A } from "./main-ftwh8412.js";
|
|
2
2
|
function H(s, e) {
|
|
3
3
|
if (s.length !== e.length)
|
|
4
4
|
throw new m({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { df as nt, dg as qt, dh as ht, di as ue, dj as D, dk as ae, dl as le, dm as Ct, dn as de, dp as he } from "./main-
|
|
1
|
+
import { df as nt, dg as qt, dh as ht, di as ue, dj as D, dk as ae, dl as le, dm as Ct, dn as de, dp as he } from "./main-ftwh8412.js";
|
|
2
2
|
const Nt = /* @__PURE__ */ BigInt(0), xt = /* @__PURE__ */ BigInt(1);
|
|
3
3
|
function wt(e, n = "") {
|
|
4
4
|
if (typeof e != "boolean") {
|