diff --git a/packages/sdk-frontend/package.json b/packages/sdk-frontend/package.json index 194995f..0e313b9 100644 --- a/packages/sdk-frontend/package.json +++ b/packages/sdk-frontend/package.json @@ -1,6 +1,6 @@ { "name": "@caido/sdk-frontend", - "version": "0.45.2-beta.2", + "version": "0.45.2-beta.3", "description": "Typing for the Caido Frontend SDK", "author": "Caido Labs Inc. ", "license": "MIT", diff --git a/packages/sdk-frontend/src/types/index.d.ts b/packages/sdk-frontend/src/types/index.d.ts index a1e51e0..547b47a 100644 --- a/packages/sdk-frontend/src/types/index.d.ts +++ b/packages/sdk-frontend/src/types/index.d.ts @@ -13,6 +13,7 @@ import type { MatchReplaceSDK } from "./matchReplace"; import type { MenuSDK } from "./menu"; import type { NavigationSDK } from "./navigation"; import type { ReplaySDK } from "./replay"; +import type { RuntimeSDK } from "./runtime"; import type { ScopesSDK } from "./scopes"; import type { SearchSDK } from "./search"; import type { ShortcutsSDK } from "./shortcuts"; @@ -127,4 +128,8 @@ export type API, E extends Ba * Utilities to interact with the Intercept page. */ intercept: InterceptSDK; + /** + * Utilities to interact with the runtime. + */ + runtime: RuntimeSDK; }; diff --git a/packages/sdk-frontend/src/types/runtime.d.ts b/packages/sdk-frontend/src/types/runtime.d.ts new file mode 100644 index 0000000..3110d17 --- /dev/null +++ b/packages/sdk-frontend/src/types/runtime.d.ts @@ -0,0 +1,10 @@ +/** + * Utilities to interact with the runtime. + * @category Runtime + */ +export type RuntimeSDK = { + /** + * Get the current version of Caido. + */ + get version(): string; +};