@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/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-u_ysRES3.js";
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-u_ysRES3.js";
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") {