@orbit-software/sdk 1.83.4 → 1.84.1

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/esm/sdk.d.ts CHANGED
@@ -150,6 +150,7 @@ export interface OverlayConfig {
150
150
  variant?: 'light' | 'dark' | 'translucent';
151
151
  initialPosition?: 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
152
152
  botId?: string;
153
+ authData?: string;
153
154
  }
154
155
  export interface CryptoSteamSDKTask {
155
156
  id: number;
@@ -166,9 +167,9 @@ interface PurchaseConfirmResponse {
166
167
  status: 'success' | 'error';
167
168
  }
168
169
  interface TelegramCloudStorage {
169
- getValue: (key: string) => Promise<string>;
170
- setValue: (key: string, value: string) => Promise<boolean>;
171
- removeValue: (key: string) => Promise<boolean>;
170
+ getValue: (key: string) => Promise<string | null>;
171
+ setValue: (key: string, value: string) => Promise<boolean | null>;
172
+ removeValue: (key: string) => Promise<boolean | null>;
172
173
  }
173
174
  interface TMANetworkInterstitialResponse {
174
175
  id: string;
@@ -199,6 +200,10 @@ interface RequestWageValueParams {
199
200
  wageId: number;
200
201
  value: number;
201
202
  }
203
+ export interface InitializeOptions {
204
+ mode: 'portal';
205
+ authData?: string;
206
+ }
202
207
  export interface StartupConfig {
203
208
  isFullscreen: boolean;
204
209
  overlayPosition: 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
@@ -206,7 +211,7 @@ export interface StartupConfig {
206
211
  export declare function startGameTimeTrack(): void;
207
212
  export interface CryptoSteamSDK {
208
213
  version: string;
209
- initialize: (botId?: string) => Promise<void>;
214
+ initialize: (botId?: string, options?: InitializeOptions) => Promise<void>;
210
215
  getConfig: () => Promise<CryptoSteamSDKConfig>;
211
216
  isAdEnabled: () => Promise<boolean>;
212
217
  requestAd: (options?: RequestAdOptions) => Promise<boolean>;