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