@orbit-software/sdk 1.92.2 → 1.93.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.
@@ -21,7 +21,16 @@
21
21
  "Bash(git checkout:*)",
22
22
  "Bash(git cherry-pick:*)",
23
23
  "Bash(grep -r \"ads\\\\|provider\\\\|fallback\" /Users/lgklsv/Developer/Projects/sdk/.env*)",
24
- "Bash(find /Users/lgklsv/Developer/Projects/sdk/src -type f \\\\\\(-name *.ts -o -name *.tsx \\\\\\))"
24
+ "Bash(find /Users/lgklsv/Developer/Projects/sdk/src -type f \\\\\\(-name *.ts -o -name *.tsx \\\\\\))",
25
+ "WebFetch(domain:telegram.org)",
26
+ "Bash(perl -i -pe 's/\\\\bmixpanel\\\\.track\\\\b/analytics.track/g; s/\\\\bmixpanel\\\\.identify\\\\b/analytics.identify/g' src/sdk.ts)",
27
+ "Bash(pnpm run *)",
28
+ "Bash(git stash *)",
29
+ "Bash(grep -oE \"track\\\\\\('[a-z_$]+\")",
30
+ "Bash(awk -F: '{s+=$2} END{print s}')",
31
+ "Bash(git tag *)",
32
+ "Bash(git reset *)",
33
+ "mcp__mcp-server-context7__query-docs"
25
34
  ]
26
35
  }
27
36
  }
@@ -0,0 +1,3 @@
1
+ import { CryptoSteamSDK as CryptoSteamSDKType } from '../../types/sdk';
2
+ export declare function isInIframe(): boolean;
3
+ export declare function createIframeSdk(): CryptoSteamSDKType;
@@ -0,0 +1,21 @@
1
+ export declare const RPC_REQUEST = "orbit-sdk:rpc-request";
2
+ export declare const RPC_RESPONSE = "orbit-sdk:rpc-response";
3
+ export declare const RPC_EVENT = "orbit-sdk:rpc-event";
4
+ export declare const RPC_TIMEOUT_MS = 30000;
5
+ export interface RpcRequest {
6
+ type: typeof RPC_REQUEST;
7
+ id: string;
8
+ method: string;
9
+ args: unknown[];
10
+ }
11
+ export interface RpcResponse {
12
+ type: typeof RPC_RESPONSE;
13
+ id: string;
14
+ result?: unknown;
15
+ error?: string;
16
+ }
17
+ export interface RpcEvent {
18
+ type: typeof RPC_EVENT;
19
+ event: string;
20
+ args: unknown[];
21
+ }
package/dist/esm/sdk.d.ts CHANGED
@@ -33,7 +33,7 @@ declare global {
33
33
  }
34
34
  }
35
35
  }
36
- declare const CryptoSteamSDK: CryptoSteamSDKType;
37
- export default CryptoSteamSDK;
38
- export { CryptoSteamSDK as PortalSDK };
36
+ declare const resolvedSDK: CryptoSteamSDKType;
37
+ export default resolvedSDK;
38
+ export { resolvedSDK as PortalSDK };
39
39
  export type { AdType, Audience, CryptoSteamSDK, CryptoSteamSDKAd, CryptoSteamSDKAdMediaType, CryptoSteamSDKConfig, CryptoSteamSDKProfile, CryptoSteamSDKShopItem, CryptoSteamSDKTask, CryptoSteamSDKWage, InitializeOptions, OverlayConfig, PortalEmuSDK, ProfileBalances, RequestAdOptions, ShowPromiseResult, StartupConfig, } from './types/sdk';