@caido/sdk-frontend 0.44.2-beta.10 → 0.44.2-beta.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caido/sdk-frontend",
3
- "version": "0.44.2-beta.10",
3
+ "version": "0.44.2-beta.11",
4
4
  "description": "Typing for the Caido Frontend SDK",
5
5
  "author": "Caido Labs Inc. <dev@caido.io>",
6
6
  "license": "MIT",
@@ -9,4 +9,23 @@ export type EnvironmentSDK = {
9
9
  * @returns The value of the environment variable.
10
10
  */
11
11
  getVar: (name: string) => string | undefined;
12
+ /**
13
+ * Get all environment variables available in the global environment and the selected environment.
14
+ * @returns All environment variables.
15
+ */
16
+ getVars: () => EnvironmentVariable[];
17
+ };
18
+ export type EnvironmentVariable = {
19
+ /**
20
+ * The name of the environment variable.
21
+ */
22
+ name: string;
23
+ /**
24
+ * The value of the environment variable.
25
+ */
26
+ value: string;
27
+ /**
28
+ * Whether the environment variable is a secret.
29
+ */
30
+ isSecret: boolean;
12
31
  };
@@ -28,6 +28,7 @@ export type { Filter } from "./filters";
28
28
  export type { HTTPQL, ID } from "./utils";
29
29
  export type { MatchReplaceRule, MatchReplaceCollection, MatchReplaceStrategy, } from "./matchReplace";
30
30
  export type { Scope } from "./scopes";
31
+ export type { EnvironmentVariable } from "./environment";
31
32
  /**
32
33
  * Utilities for frontend plugins.
33
34
  * @category SDK