@metamask/snaps-sdk 6.13.0 → 6.15.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/CHANGELOG.md +32 -1
- package/dist/error-wrappers.d.cts +192 -192
- package/dist/error-wrappers.d.mts +192 -192
- package/dist/internals/error-wrappers.d.cts +12 -12
- package/dist/internals/error-wrappers.d.mts +12 -12
- package/dist/jsx/components/Banner.cjs +19 -0
- package/dist/jsx/components/Banner.cjs.map +1 -0
- package/dist/jsx/components/Banner.d.cts +42 -0
- package/dist/jsx/components/Banner.d.cts.map +1 -0
- package/dist/jsx/components/Banner.d.mts +42 -0
- package/dist/jsx/components/Banner.d.mts.map +1 -0
- package/dist/jsx/components/Banner.mjs +16 -0
- package/dist/jsx/components/Banner.mjs.map +1 -0
- package/dist/jsx/components/Container.cjs +2 -1
- package/dist/jsx/components/Container.cjs.map +1 -1
- package/dist/jsx/components/Container.d.cts +7 -1
- package/dist/jsx/components/Container.d.cts.map +1 -1
- package/dist/jsx/components/Container.d.mts +7 -1
- package/dist/jsx/components/Container.d.mts.map +1 -1
- package/dist/jsx/components/Container.mjs +2 -1
- package/dist/jsx/components/Container.mjs.map +1 -1
- package/dist/jsx/components/Text.cjs +5 -0
- package/dist/jsx/components/Text.cjs.map +1 -1
- package/dist/jsx/components/Text.d.cts +7 -0
- package/dist/jsx/components/Text.d.cts.map +1 -1
- package/dist/jsx/components/Text.d.mts +7 -0
- package/dist/jsx/components/Text.d.mts.map +1 -1
- package/dist/jsx/components/Text.mjs +5 -0
- package/dist/jsx/components/Text.mjs.map +1 -1
- package/dist/jsx/components/Value.cjs +2 -0
- package/dist/jsx/components/Value.cjs.map +1 -1
- package/dist/jsx/components/Value.d.cts +5 -2
- package/dist/jsx/components/Value.d.cts.map +1 -1
- package/dist/jsx/components/Value.d.mts +5 -2
- package/dist/jsx/components/Value.d.mts.map +1 -1
- package/dist/jsx/components/Value.mjs +2 -0
- package/dist/jsx/components/Value.mjs.map +1 -1
- package/dist/jsx/components/form/Button.cjs.map +1 -1
- package/dist/jsx/components/form/Button.d.cts +4 -0
- package/dist/jsx/components/form/Button.d.cts.map +1 -1
- package/dist/jsx/components/form/Button.d.mts +4 -0
- package/dist/jsx/components/form/Button.d.mts.map +1 -1
- package/dist/jsx/components/form/Button.mjs.map +1 -1
- package/dist/jsx/components/index.cjs +1 -0
- package/dist/jsx/components/index.cjs.map +1 -1
- package/dist/jsx/components/index.d.cts +3 -1
- package/dist/jsx/components/index.d.cts.map +1 -1
- package/dist/jsx/components/index.d.mts +3 -1
- package/dist/jsx/components/index.d.mts.map +1 -1
- package/dist/jsx/components/index.mjs +1 -0
- package/dist/jsx/components/index.mjs.map +1 -1
- package/dist/jsx/validation.cjs +57 -15
- package/dist/jsx/validation.cjs.map +1 -1
- package/dist/jsx/validation.d.cts +15 -11
- package/dist/jsx/validation.d.cts.map +1 -1
- package/dist/jsx/validation.d.mts +15 -11
- package/dist/jsx/validation.d.mts.map +1 -1
- package/dist/jsx/validation.mjs +56 -14
- package/dist/jsx/validation.mjs.map +1 -1
- package/dist/types/handlers/index.cjs +1 -0
- package/dist/types/handlers/index.cjs.map +1 -1
- package/dist/types/handlers/index.d.cts +1 -0
- package/dist/types/handlers/index.d.cts.map +1 -1
- package/dist/types/handlers/index.d.mts +1 -0
- package/dist/types/handlers/index.d.mts.map +1 -1
- package/dist/types/handlers/index.mjs +1 -0
- package/dist/types/handlers/index.mjs.map +1 -1
- package/dist/types/handlers/settings-page.cjs +3 -0
- package/dist/types/handlers/settings-page.cjs.map +1 -0
- package/dist/types/handlers/settings-page.d.cts +23 -0
- package/dist/types/handlers/settings-page.d.cts.map +1 -0
- package/dist/types/handlers/settings-page.d.mts +23 -0
- package/dist/types/handlers/settings-page.d.mts.map +1 -0
- package/dist/types/handlers/settings-page.mjs +2 -0
- package/dist/types/handlers/settings-page.mjs.map +1 -0
- package/dist/types/interface.d.cts +2 -2
- package/dist/types/interface.d.cts.map +1 -1
- package/dist/types/interface.d.mts +2 -2
- package/dist/types/interface.d.mts.map +1 -1
- package/dist/types/methods/cancel-background-event.cjs +3 -0
- package/dist/types/methods/cancel-background-event.cjs.map +1 -0
- package/dist/types/methods/cancel-background-event.d.cts +15 -0
- package/dist/types/methods/cancel-background-event.d.cts.map +1 -0
- package/dist/types/methods/cancel-background-event.d.mts +15 -0
- package/dist/types/methods/cancel-background-event.d.mts.map +1 -0
- package/dist/types/methods/cancel-background-event.mjs +2 -0
- package/dist/types/methods/cancel-background-event.mjs.map +1 -0
- package/dist/types/methods/clear-state.cjs +3 -0
- package/dist/types/methods/clear-state.cjs.map +1 -0
- package/dist/types/methods/clear-state.d.cts +16 -0
- package/dist/types/methods/clear-state.d.cts.map +1 -0
- package/dist/types/methods/clear-state.d.mts +16 -0
- package/dist/types/methods/clear-state.d.mts.map +1 -0
- package/dist/types/methods/clear-state.mjs +2 -0
- package/dist/types/methods/clear-state.mjs.map +1 -0
- package/dist/types/methods/get-background-events.cjs +3 -0
- package/dist/types/methods/get-background-events.cjs.map +1 -0
- package/dist/types/methods/get-background-events.d.cts +38 -0
- package/dist/types/methods/get-background-events.d.cts.map +1 -0
- package/dist/types/methods/get-background-events.d.mts +38 -0
- package/dist/types/methods/get-background-events.d.mts.map +1 -0
- package/dist/types/methods/get-background-events.mjs +2 -0
- package/dist/types/methods/get-background-events.mjs.map +1 -0
- package/dist/types/methods/get-preferences.cjs.map +1 -1
- package/dist/types/methods/get-preferences.d.cts +6 -1
- package/dist/types/methods/get-preferences.d.cts.map +1 -1
- package/dist/types/methods/get-preferences.d.mts +6 -1
- package/dist/types/methods/get-preferences.d.mts.map +1 -1
- package/dist/types/methods/get-preferences.mjs.map +1 -1
- package/dist/types/methods/get-state.cjs +3 -0
- package/dist/types/methods/get-state.cjs.map +1 -0
- package/dist/types/methods/get-state.d.cts +21 -0
- package/dist/types/methods/get-state.d.cts.map +1 -0
- package/dist/types/methods/get-state.d.mts +21 -0
- package/dist/types/methods/get-state.d.mts.map +1 -0
- package/dist/types/methods/get-state.mjs +2 -0
- package/dist/types/methods/get-state.mjs.map +1 -0
- package/dist/types/methods/index.cjs +8 -2
- package/dist/types/methods/index.cjs.map +1 -1
- package/dist/types/methods/index.d.cts +8 -2
- package/dist/types/methods/index.d.cts.map +1 -1
- package/dist/types/methods/index.d.mts +8 -2
- package/dist/types/methods/index.d.mts.map +1 -1
- package/dist/types/methods/index.mjs +8 -2
- package/dist/types/methods/index.mjs.map +1 -1
- package/dist/types/methods/methods.cjs.map +1 -1
- package/dist/types/methods/methods.d.cts +21 -0
- package/dist/types/methods/methods.d.cts.map +1 -1
- package/dist/types/methods/methods.d.mts +21 -0
- package/dist/types/methods/methods.d.mts.map +1 -1
- package/dist/types/methods/methods.mjs.map +1 -1
- package/dist/types/methods/schedule-background-event.cjs +3 -0
- package/dist/types/methods/schedule-background-event.cjs.map +1 -0
- package/dist/types/methods/schedule-background-event.d.cts +22 -0
- package/dist/types/methods/schedule-background-event.d.cts.map +1 -0
- package/dist/types/methods/schedule-background-event.d.mts +22 -0
- package/dist/types/methods/schedule-background-event.d.mts.map +1 -0
- package/dist/types/methods/schedule-background-event.mjs +2 -0
- package/dist/types/methods/schedule-background-event.mjs.map +1 -0
- package/dist/types/methods/set-state.cjs +3 -0
- package/dist/types/methods/set-state.cjs.map +1 -0
- package/dist/types/methods/set-state.d.cts +23 -0
- package/dist/types/methods/set-state.d.cts.map +1 -0
- package/dist/types/methods/set-state.d.mts +23 -0
- package/dist/types/methods/set-state.d.mts.map +1 -0
- package/dist/types/methods/set-state.mjs +2 -0
- package/dist/types/methods/set-state.mjs.map +1 -0
- package/dist/types/permissions.cjs.map +1 -1
- package/dist/types/permissions.d.cts +4 -1
- package/dist/types/permissions.d.cts.map +1 -1
- package/dist/types/permissions.d.mts +4 -1
- package/dist/types/permissions.d.mts.map +1 -1
- package/dist/types/permissions.mjs.map +1 -1
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/types/handlers/index.ts"],"names":[],"mappings":"AAAA,8BAA0B;AAC1B,gCAA4B;AAC5B,8BAA0B;AAC1B,gCAA4B;AAC5B,kCAA8B;AAC9B,kCAA8B;AAC9B,kCAA8B;AAC9B,gCAA4B;AAC5B,iCAA6B","sourcesContent":["export * from './cronjob';\nexport * from './home-page';\nexport * from './keyring';\nexport * from './lifecycle';\nexport * from './name-lookup';\nexport * from './rpc-request';\nexport * from './transaction';\nexport * from './signature';\nexport * from './user-input';\n"]}
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/types/handlers/index.ts"],"names":[],"mappings":"AAAA,8BAA0B;AAC1B,gCAA4B;AAC5B,8BAA0B;AAC1B,gCAA4B;AAC5B,kCAA8B;AAC9B,kCAA8B;AAC9B,kCAA8B;AAC9B,gCAA4B;AAC5B,iCAA6B;AAC7B,oCAAgC","sourcesContent":["export * from './cronjob';\nexport * from './home-page';\nexport * from './keyring';\nexport * from './lifecycle';\nexport * from './name-lookup';\nexport * from './rpc-request';\nexport * from './transaction';\nexport * from './signature';\nexport * from './user-input';\nexport * from './settings-page';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings-page.cjs","sourceRoot":"","sources":["../../../src/types/handlers/settings-page.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentOrElement } from '..';\n\n/**\n * The `onSettingsPage` handler. This is called when the user navigates to the\n * Snap's settings page in the MetaMask UI.\n *\n * This function does not receive any arguments.\n *\n * @returns The content to display on the settings page. See\n * {@link OnSettingsPageResponse}.\n */\nexport type OnSettingsPageHandler = () => Promise<OnSettingsPageResponse>;\n\n/**\n * The content to display on the settings page.\n *\n * @property content - A custom UI component, that will be shown in MetaMask.\n * @property id - A custom UI interface ID, that will be shown in MetaMask.\n */\nexport type OnSettingsPageResponse =\n | {\n content: ComponentOrElement;\n }\n | { id: string };\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ComponentOrElement } from "../index.cjs";
|
|
2
|
+
/**
|
|
3
|
+
* The `onSettingsPage` handler. This is called when the user navigates to the
|
|
4
|
+
* Snap's settings page in the MetaMask UI.
|
|
5
|
+
*
|
|
6
|
+
* This function does not receive any arguments.
|
|
7
|
+
*
|
|
8
|
+
* @returns The content to display on the settings page. See
|
|
9
|
+
* {@link OnSettingsPageResponse}.
|
|
10
|
+
*/
|
|
11
|
+
export type OnSettingsPageHandler = () => Promise<OnSettingsPageResponse>;
|
|
12
|
+
/**
|
|
13
|
+
* The content to display on the settings page.
|
|
14
|
+
*
|
|
15
|
+
* @property content - A custom UI component, that will be shown in MetaMask.
|
|
16
|
+
* @property id - A custom UI interface ID, that will be shown in MetaMask.
|
|
17
|
+
*/
|
|
18
|
+
export type OnSettingsPageResponse = {
|
|
19
|
+
content: ComponentOrElement;
|
|
20
|
+
} | {
|
|
21
|
+
id: string;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=settings-page.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings-page.d.cts","sourceRoot":"","sources":["../../../src/types/handlers/settings-page.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,qBAAW;AAE7C;;;;;;;;GAQG;AACH,MAAM,MAAM,qBAAqB,GAAG,MAAM,OAAO,CAAC,sBAAsB,CAAC,CAAC;AAE1E;;;;;GAKG;AACH,MAAM,MAAM,sBAAsB,GAC9B;IACE,OAAO,EAAE,kBAAkB,CAAC;CAC7B,GACD;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ComponentOrElement } from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* The `onSettingsPage` handler. This is called when the user navigates to the
|
|
4
|
+
* Snap's settings page in the MetaMask UI.
|
|
5
|
+
*
|
|
6
|
+
* This function does not receive any arguments.
|
|
7
|
+
*
|
|
8
|
+
* @returns The content to display on the settings page. See
|
|
9
|
+
* {@link OnSettingsPageResponse}.
|
|
10
|
+
*/
|
|
11
|
+
export type OnSettingsPageHandler = () => Promise<OnSettingsPageResponse>;
|
|
12
|
+
/**
|
|
13
|
+
* The content to display on the settings page.
|
|
14
|
+
*
|
|
15
|
+
* @property content - A custom UI component, that will be shown in MetaMask.
|
|
16
|
+
* @property id - A custom UI interface ID, that will be shown in MetaMask.
|
|
17
|
+
*/
|
|
18
|
+
export type OnSettingsPageResponse = {
|
|
19
|
+
content: ComponentOrElement;
|
|
20
|
+
} | {
|
|
21
|
+
id: string;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=settings-page.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings-page.d.mts","sourceRoot":"","sources":["../../../src/types/handlers/settings-page.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,qBAAW;AAE7C;;;;;;;;GAQG;AACH,MAAM,MAAM,qBAAqB,GAAG,MAAM,OAAO,CAAC,sBAAsB,CAAC,CAAC;AAE1E;;;;;GAKG;AACH,MAAM,MAAM,sBAAsB,GAC9B;IACE,OAAO,EAAE,kBAAkB,CAAC;CAC7B,GACD;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings-page.mjs","sourceRoot":"","sources":["../../../src/types/handlers/settings-page.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentOrElement } from '..';\n\n/**\n * The `onSettingsPage` handler. This is called when the user navigates to the\n * Snap's settings page in the MetaMask UI.\n *\n * This function does not receive any arguments.\n *\n * @returns The content to display on the settings page. See\n * {@link OnSettingsPageResponse}.\n */\nexport type OnSettingsPageHandler = () => Promise<OnSettingsPageResponse>;\n\n/**\n * The content to display on the settings page.\n *\n * @property content - A custom UI component, that will be shown in MetaMask.\n * @property id - A custom UI interface ID, that will be shown in MetaMask.\n */\nexport type OnSettingsPageResponse =\n | {\n content: ComponentOrElement;\n }\n | { id: string };\n"]}
|
|
@@ -112,10 +112,10 @@ export declare const ComponentOrElementStruct: import("@metamask/superstruct").S
|
|
|
112
112
|
value: string;
|
|
113
113
|
children: string;
|
|
114
114
|
}, "Radio">>;
|
|
115
|
-
}, "RadioGroup"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").FileInputProps, "FileInput"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").AddressProps, "Address"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").CardProps, "Card"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").SelectorProps, "Selector"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").FieldProps, "Field"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").BoldProps, "Bold"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").ItalicProps, "Italic"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").AvatarProps, "Avatar"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").BoxProps, "Box"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").ContainerProps, "Container"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").CopyableProps, "Copyable"> | import("../jsx/index.cjs").SnapElement<Record<string, never>, "Divider"> | import("../jsx/index.cjs").SnapElement<{
|
|
115
|
+
}, "RadioGroup"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").FileInputProps, "FileInput"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").AddressProps, "Address"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").CardProps, "Card"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").SelectorProps, "Selector"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").FieldProps, "Field"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").BoldProps, "Bold"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").ItalicProps, "Italic"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").AvatarProps, "Avatar"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").BoxProps, "Box"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").ContainerProps, "Container"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").CopyableProps, "Copyable"> | import("../jsx/index.cjs").SnapElement<Record<string, never>, "Divider"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").LinkProps, "Link"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").TextProps, "Text"> | import("../jsx/index.cjs").SnapElement<{
|
|
116
116
|
children: import("../jsx/index.cjs").StringElement;
|
|
117
117
|
size?: "md" | "sm" | "lg" | undefined;
|
|
118
|
-
}, "Heading"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").
|
|
118
|
+
}, "Heading"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").RowProps, "Row"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").SectionProps, "Section"> | import("../jsx/index.cjs").SnapElement<Record<string, never>, "Spinner"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").TooltipProps, "Tooltip"> | import("../jsx/index.cjs").SnapElement<import("../jsx/index.cjs").BannerProps, "Banner">, null>;
|
|
119
119
|
export declare const InterfaceContextStruct: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
|
|
120
120
|
export type InterfaceContext = Infer<typeof InterfaceContextStruct>;
|
|
121
121
|
export declare enum ContentType {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interface.d.cts","sourceRoot":"","sources":["../../src/types/interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAWnD,OAAO,KAAK,EAAE,UAAU,EAAE,yBAAe;AAEzC,OAAO,KAAK,EAAE,SAAS,EAAE,wBAAc;AAIvC;;;;;GAKG;AAEH,eAAO,MAAM,WAAW;;;;;QAA2C,CAAC;AAEpE,eAAO,MAAM,eAAe;;;;;gBAA0C,CAAC;AAEvE,eAAO,MAAM,oBAAoB;;;;;;;;;;wBAGhC,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAC9C,MAAM,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACtD,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAEhE,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,UAAU,CAAC;AACxD,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"interface.d.cts","sourceRoot":"","sources":["../../src/types/interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAWnD,OAAO,KAAK,EAAE,UAAU,EAAE,yBAAe;AAEzC,OAAO,KAAK,EAAE,SAAS,EAAE,wBAAc;AAIvC;;;;;GAKG;AAEH,eAAO,MAAM,WAAW;;;;;QAA2C,CAAC;AAEpE,eAAO,MAAM,eAAe;;;;;gBAA0C,CAAC;AAEvE,eAAO,MAAM,oBAAoB;;;;;;;;;;wBAGhC,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAC9C,MAAM,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACtD,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAEhE,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,UAAU,CAAC;AACxD,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+WAKnC,CAAC;AAEH,eAAO,MAAM,sBAAsB,8FAA+B,CAAC;AACnE,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEpE,oBAAY,WAAW;IACrB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,YAAY,iBAAiB;IAC7B,QAAQ,aAAa;CACtB"}
|
|
@@ -112,10 +112,10 @@ export declare const ComponentOrElementStruct: import("@metamask/superstruct").S
|
|
|
112
112
|
value: string;
|
|
113
113
|
children: string;
|
|
114
114
|
}, "Radio">>;
|
|
115
|
-
}, "RadioGroup"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").FileInputProps, "FileInput"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").AddressProps, "Address"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").CardProps, "Card"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").SelectorProps, "Selector"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").FieldProps, "Field"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").BoldProps, "Bold"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").ItalicProps, "Italic"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").AvatarProps, "Avatar"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").BoxProps, "Box"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").ContainerProps, "Container"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").CopyableProps, "Copyable"> | import("../jsx/index.mjs").SnapElement<Record<string, never>, "Divider"> | import("../jsx/index.mjs").SnapElement<{
|
|
115
|
+
}, "RadioGroup"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").FileInputProps, "FileInput"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").AddressProps, "Address"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").CardProps, "Card"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").SelectorProps, "Selector"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").FieldProps, "Field"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").BoldProps, "Bold"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").ItalicProps, "Italic"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").AvatarProps, "Avatar"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").BoxProps, "Box"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").ContainerProps, "Container"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").CopyableProps, "Copyable"> | import("../jsx/index.mjs").SnapElement<Record<string, never>, "Divider"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").LinkProps, "Link"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").TextProps, "Text"> | import("../jsx/index.mjs").SnapElement<{
|
|
116
116
|
children: import("../jsx/index.mjs").StringElement;
|
|
117
117
|
size?: "md" | "sm" | "lg" | undefined;
|
|
118
|
-
}, "Heading"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").
|
|
118
|
+
}, "Heading"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").RowProps, "Row"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").SectionProps, "Section"> | import("../jsx/index.mjs").SnapElement<Record<string, never>, "Spinner"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").TooltipProps, "Tooltip"> | import("../jsx/index.mjs").SnapElement<import("../jsx/index.mjs").BannerProps, "Banner">, null>;
|
|
119
119
|
export declare const InterfaceContextStruct: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
|
|
120
120
|
export type InterfaceContext = Infer<typeof InterfaceContextStruct>;
|
|
121
121
|
export declare enum ContentType {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interface.d.mts","sourceRoot":"","sources":["../../src/types/interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAWnD,OAAO,KAAK,EAAE,UAAU,EAAE,yBAAe;AAEzC,OAAO,KAAK,EAAE,SAAS,EAAE,wBAAc;AAIvC;;;;;GAKG;AAEH,eAAO,MAAM,WAAW;;;;;QAA2C,CAAC;AAEpE,eAAO,MAAM,eAAe;;;;;gBAA0C,CAAC;AAEvE,eAAO,MAAM,oBAAoB;;;;;;;;;;wBAGhC,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAC9C,MAAM,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACtD,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAEhE,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,UAAU,CAAC;AACxD,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"interface.d.mts","sourceRoot":"","sources":["../../src/types/interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAWnD,OAAO,KAAK,EAAE,UAAU,EAAE,yBAAe;AAEzC,OAAO,KAAK,EAAE,SAAS,EAAE,wBAAc;AAIvC;;;;;GAKG;AAEH,eAAO,MAAM,WAAW;;;;;QAA2C,CAAC;AAEpE,eAAO,MAAM,eAAe;;;;;gBAA0C,CAAC;AAEvE,eAAO,MAAM,oBAAoB;;;;;;;;;;wBAGhC,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAC9C,MAAM,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACtD,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAEhE,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,UAAU,CAAC;AACxD,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+WAKnC,CAAC;AAEH,eAAO,MAAM,sBAAsB,8FAA+B,CAAC;AACnE,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEpE,oBAAY,WAAW;IACrB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,YAAY,iBAAiB;IAC7B,QAAQ,aAAa;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cancel-background-event.cjs","sourceRoot":"","sources":["../../../src/types/methods/cancel-background-event.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * The request parameters for the `snap_cancelBackgroundEvent` method.\n *\n * @property id - The id of the background event to cancel.\n */\nexport type CancelBackgroundEventParams = {\n id: string;\n};\n\n/**\n * The result returned for the `snap_cancelBackgroundEvent` method.\n *\n * This method does not return anything.\n */\nexport type CancelBackgroundEventResult = null;\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The request parameters for the `snap_cancelBackgroundEvent` method.
|
|
3
|
+
*
|
|
4
|
+
* @property id - The id of the background event to cancel.
|
|
5
|
+
*/
|
|
6
|
+
export type CancelBackgroundEventParams = {
|
|
7
|
+
id: string;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* The result returned for the `snap_cancelBackgroundEvent` method.
|
|
11
|
+
*
|
|
12
|
+
* This method does not return anything.
|
|
13
|
+
*/
|
|
14
|
+
export type CancelBackgroundEventResult = null;
|
|
15
|
+
//# sourceMappingURL=cancel-background-event.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cancel-background-event.d.cts","sourceRoot":"","sources":["../../../src/types/methods/cancel-background-event.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,2BAA2B,GAAG,IAAI,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The request parameters for the `snap_cancelBackgroundEvent` method.
|
|
3
|
+
*
|
|
4
|
+
* @property id - The id of the background event to cancel.
|
|
5
|
+
*/
|
|
6
|
+
export type CancelBackgroundEventParams = {
|
|
7
|
+
id: string;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* The result returned for the `snap_cancelBackgroundEvent` method.
|
|
11
|
+
*
|
|
12
|
+
* This method does not return anything.
|
|
13
|
+
*/
|
|
14
|
+
export type CancelBackgroundEventResult = null;
|
|
15
|
+
//# sourceMappingURL=cancel-background-event.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cancel-background-event.d.mts","sourceRoot":"","sources":["../../../src/types/methods/cancel-background-event.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,2BAA2B,GAAG,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cancel-background-event.mjs","sourceRoot":"","sources":["../../../src/types/methods/cancel-background-event.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * The request parameters for the `snap_cancelBackgroundEvent` method.\n *\n * @property id - The id of the background event to cancel.\n */\nexport type CancelBackgroundEventParams = {\n id: string;\n};\n\n/**\n * The result returned for the `snap_cancelBackgroundEvent` method.\n *\n * This method does not return anything.\n */\nexport type CancelBackgroundEventResult = null;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clear-state.cjs","sourceRoot":"","sources":["../../../src/types/methods/clear-state.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * The request parameters for the `snap_clearState` method.\n *\n * @property encrypted - Whether to use the separate encrypted state, or the\n * unencrypted state. Defaults to the encrypted state. Encrypted state can only\n * be used if the extension is unlocked, while unencrypted state can be used\n * whether the extension is locked or unlocked.\n */\nexport type ClearStateParams = {\n encrypted?: boolean;\n};\n\n/**\n * The result returned by the `snap_clearState` method.\n */\nexport type ClearStateResult = null;\n"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The request parameters for the `snap_clearState` method.
|
|
3
|
+
*
|
|
4
|
+
* @property encrypted - Whether to use the separate encrypted state, or the
|
|
5
|
+
* unencrypted state. Defaults to the encrypted state. Encrypted state can only
|
|
6
|
+
* be used if the extension is unlocked, while unencrypted state can be used
|
|
7
|
+
* whether the extension is locked or unlocked.
|
|
8
|
+
*/
|
|
9
|
+
export type ClearStateParams = {
|
|
10
|
+
encrypted?: boolean;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* The result returned by the `snap_clearState` method.
|
|
14
|
+
*/
|
|
15
|
+
export type ClearStateResult = null;
|
|
16
|
+
//# sourceMappingURL=clear-state.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clear-state.d.cts","sourceRoot":"","sources":["../../../src/types/methods/clear-state.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The request parameters for the `snap_clearState` method.
|
|
3
|
+
*
|
|
4
|
+
* @property encrypted - Whether to use the separate encrypted state, or the
|
|
5
|
+
* unencrypted state. Defaults to the encrypted state. Encrypted state can only
|
|
6
|
+
* be used if the extension is unlocked, while unencrypted state can be used
|
|
7
|
+
* whether the extension is locked or unlocked.
|
|
8
|
+
*/
|
|
9
|
+
export type ClearStateParams = {
|
|
10
|
+
encrypted?: boolean;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* The result returned by the `snap_clearState` method.
|
|
14
|
+
*/
|
|
15
|
+
export type ClearStateResult = null;
|
|
16
|
+
//# sourceMappingURL=clear-state.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clear-state.d.mts","sourceRoot":"","sources":["../../../src/types/methods/clear-state.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clear-state.mjs","sourceRoot":"","sources":["../../../src/types/methods/clear-state.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * The request parameters for the `snap_clearState` method.\n *\n * @property encrypted - Whether to use the separate encrypted state, or the\n * unencrypted state. Defaults to the encrypted state. Encrypted state can only\n * be used if the extension is unlocked, while unencrypted state can be used\n * whether the extension is locked or unlocked.\n */\nexport type ClearStateParams = {\n encrypted?: boolean;\n};\n\n/**\n * The result returned by the `snap_clearState` method.\n */\nexport type ClearStateResult = null;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-background-events.cjs","sourceRoot":"","sources":["../../../src/types/methods/get-background-events.ts"],"names":[],"mappings":"","sourcesContent":["import type { Json } from '@metamask/utils';\n\nimport type { SnapId } from '../snap';\n\n/**\n * Background event type\n *\n * Note: The date generated when scheduling an event with a duration will be represented in UTC.\n *\n * @property id - The unique id representing the event.\n * @property scheduledAt - The ISO 8601 time stamp of when the event was scheduled.\n * @property snapId - The id of the snap that scheduled the event.\n * @property date - The ISO 8601 date of when the event is scheduled for.\n * @property request - The request that is supplied to the `onCronjob` handler when the event is fired.\n */\nexport type BackgroundEvent = {\n id: string;\n scheduledAt: string;\n snapId: SnapId;\n date: string;\n request: {\n method: string;\n jsonrpc?: '2.0' | undefined;\n id?: string | number | null | undefined;\n params?: Json[] | Record<string, Json> | undefined;\n };\n};\n\n/**\n * The result returned by the `snap_getBackgroundEvents` method.\n *\n * It consists of an array background events (if any) for a snap.\n */\nexport type GetBackgroundEventsResult = BackgroundEvent[];\n\n/**\n * The request parameters for the `snap_getBackgroundEvents` method.\n *\n * This method does not accept any parameters.\n */\nexport type GetBackgroundEventsParams = never;\n"]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { Json } from "@metamask/utils";
|
|
2
|
+
import type { SnapId } from "../snap.cjs";
|
|
3
|
+
/**
|
|
4
|
+
* Background event type
|
|
5
|
+
*
|
|
6
|
+
* Note: The date generated when scheduling an event with a duration will be represented in UTC.
|
|
7
|
+
*
|
|
8
|
+
* @property id - The unique id representing the event.
|
|
9
|
+
* @property scheduledAt - The ISO 8601 time stamp of when the event was scheduled.
|
|
10
|
+
* @property snapId - The id of the snap that scheduled the event.
|
|
11
|
+
* @property date - The ISO 8601 date of when the event is scheduled for.
|
|
12
|
+
* @property request - The request that is supplied to the `onCronjob` handler when the event is fired.
|
|
13
|
+
*/
|
|
14
|
+
export type BackgroundEvent = {
|
|
15
|
+
id: string;
|
|
16
|
+
scheduledAt: string;
|
|
17
|
+
snapId: SnapId;
|
|
18
|
+
date: string;
|
|
19
|
+
request: {
|
|
20
|
+
method: string;
|
|
21
|
+
jsonrpc?: '2.0' | undefined;
|
|
22
|
+
id?: string | number | null | undefined;
|
|
23
|
+
params?: Json[] | Record<string, Json> | undefined;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* The result returned by the `snap_getBackgroundEvents` method.
|
|
28
|
+
*
|
|
29
|
+
* It consists of an array background events (if any) for a snap.
|
|
30
|
+
*/
|
|
31
|
+
export type GetBackgroundEventsResult = BackgroundEvent[];
|
|
32
|
+
/**
|
|
33
|
+
* The request parameters for the `snap_getBackgroundEvents` method.
|
|
34
|
+
*
|
|
35
|
+
* This method does not accept any parameters.
|
|
36
|
+
*/
|
|
37
|
+
export type GetBackgroundEventsParams = never;
|
|
38
|
+
//# sourceMappingURL=get-background-events.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-background-events.d.cts","sourceRoot":"","sources":["../../../src/types/methods/get-background-events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,wBAAwB;AAE5C,OAAO,KAAK,EAAE,MAAM,EAAE,oBAAgB;AAEtC;;;;;;;;;;GAUG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE;QACP,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,CAAC,EAAE,KAAK,GAAG,SAAS,CAAC;QAC5B,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;QACxC,MAAM,CAAC,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,GAAG,SAAS,CAAC;KACpD,CAAC;CACH,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,yBAAyB,GAAG,eAAe,EAAE,CAAC;AAE1D;;;;GAIG;AACH,MAAM,MAAM,yBAAyB,GAAG,KAAK,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { Json } from "@metamask/utils";
|
|
2
|
+
import type { SnapId } from "../snap.mjs";
|
|
3
|
+
/**
|
|
4
|
+
* Background event type
|
|
5
|
+
*
|
|
6
|
+
* Note: The date generated when scheduling an event with a duration will be represented in UTC.
|
|
7
|
+
*
|
|
8
|
+
* @property id - The unique id representing the event.
|
|
9
|
+
* @property scheduledAt - The ISO 8601 time stamp of when the event was scheduled.
|
|
10
|
+
* @property snapId - The id of the snap that scheduled the event.
|
|
11
|
+
* @property date - The ISO 8601 date of when the event is scheduled for.
|
|
12
|
+
* @property request - The request that is supplied to the `onCronjob` handler when the event is fired.
|
|
13
|
+
*/
|
|
14
|
+
export type BackgroundEvent = {
|
|
15
|
+
id: string;
|
|
16
|
+
scheduledAt: string;
|
|
17
|
+
snapId: SnapId;
|
|
18
|
+
date: string;
|
|
19
|
+
request: {
|
|
20
|
+
method: string;
|
|
21
|
+
jsonrpc?: '2.0' | undefined;
|
|
22
|
+
id?: string | number | null | undefined;
|
|
23
|
+
params?: Json[] | Record<string, Json> | undefined;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* The result returned by the `snap_getBackgroundEvents` method.
|
|
28
|
+
*
|
|
29
|
+
* It consists of an array background events (if any) for a snap.
|
|
30
|
+
*/
|
|
31
|
+
export type GetBackgroundEventsResult = BackgroundEvent[];
|
|
32
|
+
/**
|
|
33
|
+
* The request parameters for the `snap_getBackgroundEvents` method.
|
|
34
|
+
*
|
|
35
|
+
* This method does not accept any parameters.
|
|
36
|
+
*/
|
|
37
|
+
export type GetBackgroundEventsParams = never;
|
|
38
|
+
//# sourceMappingURL=get-background-events.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-background-events.d.mts","sourceRoot":"","sources":["../../../src/types/methods/get-background-events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,wBAAwB;AAE5C,OAAO,KAAK,EAAE,MAAM,EAAE,oBAAgB;AAEtC;;;;;;;;;;GAUG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE;QACP,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,CAAC,EAAE,KAAK,GAAG,SAAS,CAAC;QAC5B,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;QACxC,MAAM,CAAC,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,GAAG,SAAS,CAAC;KACpD,CAAC;CACH,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,yBAAyB,GAAG,eAAe,EAAE,CAAC;AAE1D;;;;GAIG;AACH,MAAM,MAAM,yBAAyB,GAAG,KAAK,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-background-events.mjs","sourceRoot":"","sources":["../../../src/types/methods/get-background-events.ts"],"names":[],"mappings":"","sourcesContent":["import type { Json } from '@metamask/utils';\n\nimport type { SnapId } from '../snap';\n\n/**\n * Background event type\n *\n * Note: The date generated when scheduling an event with a duration will be represented in UTC.\n *\n * @property id - The unique id representing the event.\n * @property scheduledAt - The ISO 8601 time stamp of when the event was scheduled.\n * @property snapId - The id of the snap that scheduled the event.\n * @property date - The ISO 8601 date of when the event is scheduled for.\n * @property request - The request that is supplied to the `onCronjob` handler when the event is fired.\n */\nexport type BackgroundEvent = {\n id: string;\n scheduledAt: string;\n snapId: SnapId;\n date: string;\n request: {\n method: string;\n jsonrpc?: '2.0' | undefined;\n id?: string | number | null | undefined;\n params?: Json[] | Record<string, Json> | undefined;\n };\n};\n\n/**\n * The result returned by the `snap_getBackgroundEvents` method.\n *\n * It consists of an array background events (if any) for a snap.\n */\nexport type GetBackgroundEventsResult = BackgroundEvent[];\n\n/**\n * The request parameters for the `snap_getBackgroundEvents` method.\n *\n * This method does not accept any parameters.\n */\nexport type GetBackgroundEventsParams = never;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-preferences.cjs","sourceRoot":"","sources":["../../../src/types/methods/get-preferences.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * The request parameters for the `snap_getPreferences` method.\n *\n * This method does not accept any parameters.\n */\nexport type GetPreferencesParams = never;\n\n/**\n * The result returned by the `snap_getPreferences` method.\n *\n * It is the user selected preferences from the MetaMask
|
|
1
|
+
{"version":3,"file":"get-preferences.cjs","sourceRoot":"","sources":["../../../src/types/methods/get-preferences.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * The request parameters for the `snap_getPreferences` method.\n *\n * This method does not accept any parameters.\n */\nexport type GetPreferencesParams = never;\n\n/**\n * The result returned by the `snap_getPreferences` method.\n *\n * It is the user selected preferences from the MetaMask client.\n *\n * @property locale - The user's selected locale.\n * @property currency - The user's selected currency.\n * @property hideBalances - Whether the user has chosen to hide balances.\n */\nexport type GetPreferencesResult = {\n locale: string;\n currency: string;\n hideBalances: boolean;\n};\n"]}
|
|
@@ -7,10 +7,15 @@ export type GetPreferencesParams = never;
|
|
|
7
7
|
/**
|
|
8
8
|
* The result returned by the `snap_getPreferences` method.
|
|
9
9
|
*
|
|
10
|
-
* It is the user selected preferences from the MetaMask
|
|
10
|
+
* It is the user selected preferences from the MetaMask client.
|
|
11
|
+
*
|
|
12
|
+
* @property locale - The user's selected locale.
|
|
13
|
+
* @property currency - The user's selected currency.
|
|
14
|
+
* @property hideBalances - Whether the user has chosen to hide balances.
|
|
11
15
|
*/
|
|
12
16
|
export type GetPreferencesResult = {
|
|
13
17
|
locale: string;
|
|
14
18
|
currency: string;
|
|
19
|
+
hideBalances: boolean;
|
|
15
20
|
};
|
|
16
21
|
//# sourceMappingURL=get-preferences.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-preferences.d.cts","sourceRoot":"","sources":["../../../src/types/methods/get-preferences.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC;AAEzC
|
|
1
|
+
{"version":3,"file":"get-preferences.d.cts","sourceRoot":"","sources":["../../../src/types/methods/get-preferences.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC;AAEzC;;;;;;;;GAQG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,OAAO,CAAC;CACvB,CAAC"}
|
|
@@ -7,10 +7,15 @@ export type GetPreferencesParams = never;
|
|
|
7
7
|
/**
|
|
8
8
|
* The result returned by the `snap_getPreferences` method.
|
|
9
9
|
*
|
|
10
|
-
* It is the user selected preferences from the MetaMask
|
|
10
|
+
* It is the user selected preferences from the MetaMask client.
|
|
11
|
+
*
|
|
12
|
+
* @property locale - The user's selected locale.
|
|
13
|
+
* @property currency - The user's selected currency.
|
|
14
|
+
* @property hideBalances - Whether the user has chosen to hide balances.
|
|
11
15
|
*/
|
|
12
16
|
export type GetPreferencesResult = {
|
|
13
17
|
locale: string;
|
|
14
18
|
currency: string;
|
|
19
|
+
hideBalances: boolean;
|
|
15
20
|
};
|
|
16
21
|
//# sourceMappingURL=get-preferences.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-preferences.d.mts","sourceRoot":"","sources":["../../../src/types/methods/get-preferences.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC;AAEzC
|
|
1
|
+
{"version":3,"file":"get-preferences.d.mts","sourceRoot":"","sources":["../../../src/types/methods/get-preferences.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC;AAEzC;;;;;;;;GAQG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,OAAO,CAAC;CACvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-preferences.mjs","sourceRoot":"","sources":["../../../src/types/methods/get-preferences.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * The request parameters for the `snap_getPreferences` method.\n *\n * This method does not accept any parameters.\n */\nexport type GetPreferencesParams = never;\n\n/**\n * The result returned by the `snap_getPreferences` method.\n *\n * It is the user selected preferences from the MetaMask
|
|
1
|
+
{"version":3,"file":"get-preferences.mjs","sourceRoot":"","sources":["../../../src/types/methods/get-preferences.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * The request parameters for the `snap_getPreferences` method.\n *\n * This method does not accept any parameters.\n */\nexport type GetPreferencesParams = never;\n\n/**\n * The result returned by the `snap_getPreferences` method.\n *\n * It is the user selected preferences from the MetaMask client.\n *\n * @property locale - The user's selected locale.\n * @property currency - The user's selected currency.\n * @property hideBalances - Whether the user has chosen to hide balances.\n */\nexport type GetPreferencesResult = {\n locale: string;\n currency: string;\n hideBalances: boolean;\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-state.cjs","sourceRoot":"","sources":["../../../src/types/methods/get-state.ts"],"names":[],"mappings":"","sourcesContent":["import type { Json } from '@metamask/utils';\n\n/**\n * The request parameters for the `snap_getState` method.\n *\n * @property key - The key of the state to retrieve. If not provided, the entire\n * state is retrieved. This may contain Lodash-style path syntax, e.g.,\n * `a.b.c`, with the exception of array syntax.\n * @property encrypted - Whether to use the separate encrypted state, or the\n * unencrypted state. Defaults to the encrypted state. Encrypted state can only\n * be used if the client is unlocked, while unencrypted state can be used\n * whether the client is locked or unlocked.\n */\nexport type GetStateParams = {\n key?: string;\n encrypted?: boolean;\n};\n\n/**\n * The result returned by the `snap_getState` method.\n */\nexport type GetStateResult = Json;\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Json } from "@metamask/utils";
|
|
2
|
+
/**
|
|
3
|
+
* The request parameters for the `snap_getState` method.
|
|
4
|
+
*
|
|
5
|
+
* @property key - The key of the state to retrieve. If not provided, the entire
|
|
6
|
+
* state is retrieved. This may contain Lodash-style path syntax, e.g.,
|
|
7
|
+
* `a.b.c`, with the exception of array syntax.
|
|
8
|
+
* @property encrypted - Whether to use the separate encrypted state, or the
|
|
9
|
+
* unencrypted state. Defaults to the encrypted state. Encrypted state can only
|
|
10
|
+
* be used if the client is unlocked, while unencrypted state can be used
|
|
11
|
+
* whether the client is locked or unlocked.
|
|
12
|
+
*/
|
|
13
|
+
export type GetStateParams = {
|
|
14
|
+
key?: string;
|
|
15
|
+
encrypted?: boolean;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* The result returned by the `snap_getState` method.
|
|
19
|
+
*/
|
|
20
|
+
export type GetStateResult = Json;
|
|
21
|
+
//# sourceMappingURL=get-state.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-state.d.cts","sourceRoot":"","sources":["../../../src/types/methods/get-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,wBAAwB;AAE5C;;;;;;;;;;GAUG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Json } from "@metamask/utils";
|
|
2
|
+
/**
|
|
3
|
+
* The request parameters for the `snap_getState` method.
|
|
4
|
+
*
|
|
5
|
+
* @property key - The key of the state to retrieve. If not provided, the entire
|
|
6
|
+
* state is retrieved. This may contain Lodash-style path syntax, e.g.,
|
|
7
|
+
* `a.b.c`, with the exception of array syntax.
|
|
8
|
+
* @property encrypted - Whether to use the separate encrypted state, or the
|
|
9
|
+
* unencrypted state. Defaults to the encrypted state. Encrypted state can only
|
|
10
|
+
* be used if the client is unlocked, while unencrypted state can be used
|
|
11
|
+
* whether the client is locked or unlocked.
|
|
12
|
+
*/
|
|
13
|
+
export type GetStateParams = {
|
|
14
|
+
key?: string;
|
|
15
|
+
encrypted?: boolean;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* The result returned by the `snap_getState` method.
|
|
19
|
+
*/
|
|
20
|
+
export type GetStateResult = Json;
|
|
21
|
+
//# sourceMappingURL=get-state.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-state.d.mts","sourceRoot":"","sources":["../../../src/types/methods/get-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,wBAAwB;AAE5C;;;;;;;;;;GAUG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-state.mjs","sourceRoot":"","sources":["../../../src/types/methods/get-state.ts"],"names":[],"mappings":"","sourcesContent":["import type { Json } from '@metamask/utils';\n\n/**\n * The request parameters for the `snap_getState` method.\n *\n * @property key - The key of the state to retrieve. If not provided, the entire\n * state is retrieved. This may contain Lodash-style path syntax, e.g.,\n * `a.b.c`, with the exception of array syntax.\n * @property encrypted - Whether to use the separate encrypted state, or the\n * unencrypted state. Defaults to the encrypted state. Encrypted state can only\n * be used if the client is unlocked, while unencrypted state can be used\n * whether the client is locked or unlocked.\n */\nexport type GetStateParams = {\n key?: string;\n encrypted?: boolean;\n};\n\n/**\n * The result returned by the `snap_getState` method.\n */\nexport type GetStateResult = Json;\n"]}
|
|
@@ -14,12 +14,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./clear-state.cjs"), exports);
|
|
17
18
|
__exportStar(require("./create-interface.cjs"), exports);
|
|
18
19
|
__exportStar(require("./dialog.cjs"), exports);
|
|
19
20
|
__exportStar(require("./get-bip32-entropy.cjs"), exports);
|
|
20
21
|
__exportStar(require("./get-bip32-public-key.cjs"), exports);
|
|
21
22
|
__exportStar(require("./get-bip44-entropy.cjs"), exports);
|
|
22
23
|
__exportStar(require("./get-client-status.cjs"), exports);
|
|
24
|
+
__exportStar(require("./get-currency-rate.cjs"), exports);
|
|
23
25
|
__exportStar(require("./get-entropy.cjs"), exports);
|
|
24
26
|
__exportStar(require("./get-file.cjs"), exports);
|
|
25
27
|
__exportStar(require("./get-interface-context.cjs"), exports);
|
|
@@ -27,15 +29,19 @@ __exportStar(require("./get-interface-state.cjs"), exports);
|
|
|
27
29
|
__exportStar(require("./get-locale.cjs"), exports);
|
|
28
30
|
__exportStar(require("./get-preferences.cjs"), exports);
|
|
29
31
|
__exportStar(require("./get-snaps.cjs"), exports);
|
|
32
|
+
__exportStar(require("./get-state.cjs"), exports);
|
|
30
33
|
__exportStar(require("./invoke-keyring.cjs"), exports);
|
|
31
34
|
__exportStar(require("./invoke-snap.cjs"), exports);
|
|
32
35
|
__exportStar(require("./manage-accounts.cjs"), exports);
|
|
33
36
|
__exportStar(require("./manage-state.cjs"), exports);
|
|
34
37
|
__exportStar(require("./methods.cjs"), exports);
|
|
35
38
|
__exportStar(require("./notify.cjs"), exports);
|
|
39
|
+
__exportStar(require("./provider-request.cjs"), exports);
|
|
36
40
|
__exportStar(require("./request-snaps.cjs"), exports);
|
|
37
41
|
__exportStar(require("./update-interface.cjs"), exports);
|
|
38
42
|
__exportStar(require("./resolve-interface.cjs"), exports);
|
|
39
|
-
__exportStar(require("./
|
|
40
|
-
__exportStar(require("./
|
|
43
|
+
__exportStar(require("./schedule-background-event.cjs"), exports);
|
|
44
|
+
__exportStar(require("./cancel-background-event.cjs"), exports);
|
|
45
|
+
__exportStar(require("./get-background-events.cjs"), exports);
|
|
46
|
+
__exportStar(require("./set-state.cjs"), exports);
|
|
41
47
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/types/methods/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAmC;AACnC,+CAAyB;AACzB,0DAAoC;AACpC,6DAAuC;AACvC,0DAAoC;AACpC,0DAAoC;AACpC,oDAA8B;AAC9B,iDAA2B;AAC3B,8DAAwC;AACxC,4DAAsC;AACtC,mDAA6B;AAC7B,wDAAkC;AAClC,kDAA4B;AAC5B,uDAAiC;AACjC,oDAA8B;AAC9B,wDAAkC;AAClC,qDAA+B;AAC/B,gDAA0B;AAC1B,+CAAyB;AACzB,sDAAgC;AAChC,yDAAmC;AACnC,0DAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/types/methods/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAA8B;AAC9B,yDAAmC;AACnC,+CAAyB;AACzB,0DAAoC;AACpC,6DAAuC;AACvC,0DAAoC;AACpC,0DAAoC;AACpC,0DAAoC;AACpC,oDAA8B;AAC9B,iDAA2B;AAC3B,8DAAwC;AACxC,4DAAsC;AACtC,mDAA6B;AAC7B,wDAAkC;AAClC,kDAA4B;AAC5B,kDAA4B;AAC5B,uDAAiC;AACjC,oDAA8B;AAC9B,wDAAkC;AAClC,qDAA+B;AAC/B,gDAA0B;AAC1B,+CAAyB;AACzB,yDAAmC;AACnC,sDAAgC;AAChC,yDAAmC;AACnC,0DAAoC;AACpC,kEAA4C;AAC5C,gEAA0C;AAC1C,8DAAwC;AACxC,kDAA4B","sourcesContent":["export * from './clear-state';\nexport * from './create-interface';\nexport * from './dialog';\nexport * from './get-bip32-entropy';\nexport * from './get-bip32-public-key';\nexport * from './get-bip44-entropy';\nexport * from './get-client-status';\nexport * from './get-currency-rate';\nexport * from './get-entropy';\nexport * from './get-file';\nexport * from './get-interface-context';\nexport * from './get-interface-state';\nexport * from './get-locale';\nexport * from './get-preferences';\nexport * from './get-snaps';\nexport * from './get-state';\nexport * from './invoke-keyring';\nexport * from './invoke-snap';\nexport * from './manage-accounts';\nexport * from './manage-state';\nexport * from './methods';\nexport * from './notify';\nexport * from './provider-request';\nexport * from './request-snaps';\nexport * from './update-interface';\nexport * from './resolve-interface';\nexport * from './schedule-background-event';\nexport * from './cancel-background-event';\nexport * from './get-background-events';\nexport * from './set-state';\n"]}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
export * from "./clear-state.cjs";
|
|
1
2
|
export * from "./create-interface.cjs";
|
|
2
3
|
export * from "./dialog.cjs";
|
|
3
4
|
export * from "./get-bip32-entropy.cjs";
|
|
4
5
|
export * from "./get-bip32-public-key.cjs";
|
|
5
6
|
export * from "./get-bip44-entropy.cjs";
|
|
6
7
|
export * from "./get-client-status.cjs";
|
|
8
|
+
export * from "./get-currency-rate.cjs";
|
|
7
9
|
export * from "./get-entropy.cjs";
|
|
8
10
|
export * from "./get-file.cjs";
|
|
9
11
|
export * from "./get-interface-context.cjs";
|
|
@@ -11,15 +13,19 @@ export * from "./get-interface-state.cjs";
|
|
|
11
13
|
export * from "./get-locale.cjs";
|
|
12
14
|
export * from "./get-preferences.cjs";
|
|
13
15
|
export * from "./get-snaps.cjs";
|
|
16
|
+
export * from "./get-state.cjs";
|
|
14
17
|
export * from "./invoke-keyring.cjs";
|
|
15
18
|
export * from "./invoke-snap.cjs";
|
|
16
19
|
export * from "./manage-accounts.cjs";
|
|
17
20
|
export * from "./manage-state.cjs";
|
|
18
21
|
export * from "./methods.cjs";
|
|
19
22
|
export * from "./notify.cjs";
|
|
23
|
+
export * from "./provider-request.cjs";
|
|
20
24
|
export * from "./request-snaps.cjs";
|
|
21
25
|
export * from "./update-interface.cjs";
|
|
22
26
|
export * from "./resolve-interface.cjs";
|
|
23
|
-
export * from "./
|
|
24
|
-
export * from "./
|
|
27
|
+
export * from "./schedule-background-event.cjs";
|
|
28
|
+
export * from "./cancel-background-event.cjs";
|
|
29
|
+
export * from "./get-background-events.cjs";
|
|
30
|
+
export * from "./set-state.cjs";
|
|
25
31
|
//# sourceMappingURL=index.d.cts.map
|