@metamask/snaps-sdk 10.4.0 → 11.0.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 +17 -1
- package/dist/error-wrappers.d.cts +192 -192
- package/dist/error-wrappers.d.mts +192 -192
- package/dist/errors.cjs +27 -1
- package/dist/errors.cjs.map +1 -1
- package/dist/errors.d.cts +14 -0
- package/dist/errors.d.cts.map +1 -1
- package/dist/errors.d.mts +14 -0
- package/dist/errors.d.mts.map +1 -1
- package/dist/errors.mjs +25 -1
- package/dist/errors.mjs.map +1 -1
- package/dist/images.cjs +1 -41
- package/dist/images.cjs.map +1 -1
- package/dist/images.d.cts +0 -49
- package/dist/images.d.cts.map +1 -1
- package/dist/images.d.mts +0 -49
- package/dist/images.d.mts.map +1 -1
- package/dist/images.mjs +0 -39
- package/dist/images.mjs.map +1 -1
- package/dist/index.cjs +8 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -0
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +8 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +8 -0
- package/dist/index.mjs.map +1 -1
- package/dist/internals/error-wrappers.d.cts +12 -12
- package/dist/internals/error-wrappers.d.mts +12 -12
- package/dist/jsx/components/Address.cjs +1 -0
- package/dist/jsx/components/Address.cjs.map +1 -1
- package/dist/jsx/components/Address.d.cts +4 -1
- package/dist/jsx/components/Address.d.cts.map +1 -1
- package/dist/jsx/components/Address.d.mts +4 -1
- package/dist/jsx/components/Address.d.mts.map +1 -1
- package/dist/jsx/components/Address.mjs +1 -0
- package/dist/jsx/components/Address.mjs.map +1 -1
- package/dist/jsx/components/Avatar.cjs +1 -0
- package/dist/jsx/components/Avatar.cjs.map +1 -1
- package/dist/jsx/components/Avatar.d.cts +4 -1
- package/dist/jsx/components/Avatar.d.cts.map +1 -1
- package/dist/jsx/components/Avatar.d.mts +4 -1
- package/dist/jsx/components/Avatar.d.mts.map +1 -1
- package/dist/jsx/components/Avatar.mjs +1 -0
- package/dist/jsx/components/Avatar.mjs.map +1 -1
- package/dist/jsx/components/Banner.cjs +1 -0
- package/dist/jsx/components/Banner.cjs.map +1 -1
- package/dist/jsx/components/Banner.d.cts +4 -1
- package/dist/jsx/components/Banner.d.cts.map +1 -1
- package/dist/jsx/components/Banner.d.mts +4 -1
- package/dist/jsx/components/Banner.d.mts.map +1 -1
- package/dist/jsx/components/Banner.mjs +1 -0
- package/dist/jsx/components/Banner.mjs.map +1 -1
- package/dist/jsx/components/Box.cjs +1 -0
- package/dist/jsx/components/Box.cjs.map +1 -1
- package/dist/jsx/components/Box.d.cts +4 -1
- package/dist/jsx/components/Box.d.cts.map +1 -1
- package/dist/jsx/components/Box.d.mts +4 -1
- package/dist/jsx/components/Box.d.mts.map +1 -1
- package/dist/jsx/components/Box.mjs +1 -0
- package/dist/jsx/components/Box.mjs.map +1 -1
- package/dist/jsx/components/Card.cjs +1 -0
- package/dist/jsx/components/Card.cjs.map +1 -1
- package/dist/jsx/components/Card.d.cts +4 -1
- package/dist/jsx/components/Card.d.cts.map +1 -1
- package/dist/jsx/components/Card.d.mts +4 -1
- package/dist/jsx/components/Card.d.mts.map +1 -1
- package/dist/jsx/components/Card.mjs +1 -0
- package/dist/jsx/components/Card.mjs.map +1 -1
- package/dist/jsx/components/Container.cjs +1 -0
- package/dist/jsx/components/Container.cjs.map +1 -1
- package/dist/jsx/components/Container.d.cts +4 -1
- package/dist/jsx/components/Container.d.cts.map +1 -1
- package/dist/jsx/components/Container.d.mts +4 -1
- package/dist/jsx/components/Container.d.mts.map +1 -1
- package/dist/jsx/components/Container.mjs +1 -0
- package/dist/jsx/components/Container.mjs.map +1 -1
- package/dist/jsx/components/Copyable.cjs +1 -0
- package/dist/jsx/components/Copyable.cjs.map +1 -1
- package/dist/jsx/components/Copyable.d.cts +4 -1
- package/dist/jsx/components/Copyable.d.cts.map +1 -1
- package/dist/jsx/components/Copyable.d.mts +4 -1
- package/dist/jsx/components/Copyable.d.mts.map +1 -1
- package/dist/jsx/components/Copyable.mjs +1 -0
- package/dist/jsx/components/Copyable.mjs.map +1 -1
- package/dist/jsx/components/Divider.cjs +1 -0
- package/dist/jsx/components/Divider.cjs.map +1 -1
- package/dist/jsx/components/Divider.d.cts +3 -1
- package/dist/jsx/components/Divider.d.cts.map +1 -1
- package/dist/jsx/components/Divider.d.mts +3 -1
- package/dist/jsx/components/Divider.d.mts.map +1 -1
- package/dist/jsx/components/Divider.mjs +1 -0
- package/dist/jsx/components/Divider.mjs.map +1 -1
- package/dist/jsx/components/Footer.cjs +1 -0
- package/dist/jsx/components/Footer.cjs.map +1 -1
- package/dist/jsx/components/Footer.d.cts +4 -1
- package/dist/jsx/components/Footer.d.cts.map +1 -1
- package/dist/jsx/components/Footer.d.mts +4 -1
- package/dist/jsx/components/Footer.d.mts.map +1 -1
- package/dist/jsx/components/Footer.mjs +1 -0
- package/dist/jsx/components/Footer.mjs.map +1 -1
- package/dist/jsx/components/Heading.cjs +1 -0
- package/dist/jsx/components/Heading.cjs.map +1 -1
- package/dist/jsx/components/Heading.d.cts +4 -1
- package/dist/jsx/components/Heading.d.cts.map +1 -1
- package/dist/jsx/components/Heading.d.mts +4 -1
- package/dist/jsx/components/Heading.d.mts.map +1 -1
- package/dist/jsx/components/Heading.mjs +1 -0
- package/dist/jsx/components/Heading.mjs.map +1 -1
- package/dist/jsx/components/Icon.cjs +1 -0
- package/dist/jsx/components/Icon.cjs.map +1 -1
- package/dist/jsx/components/Icon.d.cts +9 -2
- package/dist/jsx/components/Icon.d.cts.map +1 -1
- package/dist/jsx/components/Icon.d.mts +9 -2
- package/dist/jsx/components/Icon.d.mts.map +1 -1
- package/dist/jsx/components/Icon.mjs +1 -0
- package/dist/jsx/components/Icon.mjs.map +1 -1
- package/dist/jsx/components/Image.cjs +1 -0
- package/dist/jsx/components/Image.cjs.map +1 -1
- package/dist/jsx/components/Image.d.cts +4 -1
- package/dist/jsx/components/Image.d.cts.map +1 -1
- package/dist/jsx/components/Image.d.mts +4 -1
- package/dist/jsx/components/Image.d.mts.map +1 -1
- package/dist/jsx/components/Image.mjs +1 -0
- package/dist/jsx/components/Image.mjs.map +1 -1
- package/dist/jsx/components/Link.cjs +1 -0
- package/dist/jsx/components/Link.cjs.map +1 -1
- package/dist/jsx/components/Link.d.cts +4 -1
- package/dist/jsx/components/Link.d.cts.map +1 -1
- package/dist/jsx/components/Link.d.mts +4 -1
- package/dist/jsx/components/Link.d.mts.map +1 -1
- package/dist/jsx/components/Link.mjs +1 -0
- package/dist/jsx/components/Link.mjs.map +1 -1
- package/dist/jsx/components/Row.cjs +1 -0
- package/dist/jsx/components/Row.cjs.map +1 -1
- package/dist/jsx/components/Row.d.cts +4 -1
- package/dist/jsx/components/Row.d.cts.map +1 -1
- package/dist/jsx/components/Row.d.mts +4 -1
- package/dist/jsx/components/Row.d.mts.map +1 -1
- package/dist/jsx/components/Row.mjs +1 -0
- package/dist/jsx/components/Row.mjs.map +1 -1
- package/dist/jsx/components/Section.cjs +1 -0
- package/dist/jsx/components/Section.cjs.map +1 -1
- package/dist/jsx/components/Section.d.cts +4 -1
- package/dist/jsx/components/Section.d.cts.map +1 -1
- package/dist/jsx/components/Section.d.mts +4 -1
- package/dist/jsx/components/Section.d.mts.map +1 -1
- package/dist/jsx/components/Section.mjs +1 -0
- package/dist/jsx/components/Section.mjs.map +1 -1
- package/dist/jsx/components/Skeleton.cjs +1 -0
- package/dist/jsx/components/Skeleton.cjs.map +1 -1
- package/dist/jsx/components/Skeleton.d.cts +4 -1
- package/dist/jsx/components/Skeleton.d.cts.map +1 -1
- package/dist/jsx/components/Skeleton.d.mts +4 -1
- package/dist/jsx/components/Skeleton.d.mts.map +1 -1
- package/dist/jsx/components/Skeleton.mjs +1 -0
- package/dist/jsx/components/Skeleton.mjs.map +1 -1
- package/dist/jsx/components/Spinner.cjs +1 -0
- package/dist/jsx/components/Spinner.cjs.map +1 -1
- package/dist/jsx/components/Spinner.d.cts +3 -1
- package/dist/jsx/components/Spinner.d.cts.map +1 -1
- package/dist/jsx/components/Spinner.d.mts +3 -1
- package/dist/jsx/components/Spinner.d.mts.map +1 -1
- package/dist/jsx/components/Spinner.mjs +1 -0
- package/dist/jsx/components/Spinner.mjs.map +1 -1
- package/dist/jsx/components/Text.cjs +1 -0
- package/dist/jsx/components/Text.cjs.map +1 -1
- package/dist/jsx/components/Text.d.cts +4 -1
- package/dist/jsx/components/Text.d.cts.map +1 -1
- package/dist/jsx/components/Text.d.mts +4 -1
- package/dist/jsx/components/Text.d.mts.map +1 -1
- package/dist/jsx/components/Text.mjs +1 -0
- package/dist/jsx/components/Text.mjs.map +1 -1
- package/dist/jsx/components/Tooltip.cjs +1 -0
- package/dist/jsx/components/Tooltip.cjs.map +1 -1
- package/dist/jsx/components/Tooltip.d.cts +4 -1
- package/dist/jsx/components/Tooltip.d.cts.map +1 -1
- package/dist/jsx/components/Tooltip.d.mts +4 -1
- package/dist/jsx/components/Tooltip.d.mts.map +1 -1
- package/dist/jsx/components/Tooltip.mjs +1 -0
- package/dist/jsx/components/Tooltip.mjs.map +1 -1
- package/dist/jsx/components/Value.cjs +1 -0
- package/dist/jsx/components/Value.cjs.map +1 -1
- package/dist/jsx/components/Value.d.cts +4 -1
- package/dist/jsx/components/Value.d.cts.map +1 -1
- package/dist/jsx/components/Value.d.mts +4 -1
- package/dist/jsx/components/Value.d.mts.map +1 -1
- package/dist/jsx/components/Value.mjs +1 -0
- package/dist/jsx/components/Value.mjs.map +1 -1
- package/dist/jsx/components/form/AccountSelector.cjs +1 -0
- package/dist/jsx/components/form/AccountSelector.cjs.map +1 -1
- package/dist/jsx/components/form/AccountSelector.d.cts +4 -1
- package/dist/jsx/components/form/AccountSelector.d.cts.map +1 -1
- package/dist/jsx/components/form/AccountSelector.d.mts +4 -1
- package/dist/jsx/components/form/AccountSelector.d.mts.map +1 -1
- package/dist/jsx/components/form/AccountSelector.mjs +1 -0
- package/dist/jsx/components/form/AccountSelector.mjs.map +1 -1
- package/dist/jsx/components/form/AddressInput.cjs +1 -0
- package/dist/jsx/components/form/AddressInput.cjs.map +1 -1
- package/dist/jsx/components/form/AddressInput.d.cts +18 -0
- package/dist/jsx/components/form/AddressInput.d.cts.map +1 -1
- package/dist/jsx/components/form/AddressInput.d.mts +18 -0
- package/dist/jsx/components/form/AddressInput.d.mts.map +1 -1
- package/dist/jsx/components/form/AddressInput.mjs +1 -0
- package/dist/jsx/components/form/AddressInput.mjs.map +1 -1
- package/dist/jsx/components/form/AssetSelector.cjs +1 -0
- package/dist/jsx/components/form/AssetSelector.cjs.map +1 -1
- package/dist/jsx/components/form/AssetSelector.d.cts +8 -0
- package/dist/jsx/components/form/AssetSelector.d.cts.map +1 -1
- package/dist/jsx/components/form/AssetSelector.d.mts +8 -0
- package/dist/jsx/components/form/AssetSelector.d.mts.map +1 -1
- package/dist/jsx/components/form/AssetSelector.mjs +1 -0
- package/dist/jsx/components/form/AssetSelector.mjs.map +1 -1
- package/dist/jsx/components/form/Button.cjs +1 -0
- package/dist/jsx/components/form/Button.cjs.map +1 -1
- package/dist/jsx/components/form/Button.d.cts +4 -1
- package/dist/jsx/components/form/Button.d.cts.map +1 -1
- package/dist/jsx/components/form/Button.d.mts +4 -1
- package/dist/jsx/components/form/Button.d.mts.map +1 -1
- package/dist/jsx/components/form/Button.mjs +1 -0
- package/dist/jsx/components/form/Button.mjs.map +1 -1
- package/dist/jsx/components/form/Checkbox.cjs +1 -0
- package/dist/jsx/components/form/Checkbox.cjs.map +1 -1
- package/dist/jsx/components/form/Checkbox.d.cts +4 -1
- package/dist/jsx/components/form/Checkbox.d.cts.map +1 -1
- package/dist/jsx/components/form/Checkbox.d.mts +4 -1
- package/dist/jsx/components/form/Checkbox.d.mts.map +1 -1
- package/dist/jsx/components/form/Checkbox.mjs +1 -0
- package/dist/jsx/components/form/Checkbox.mjs.map +1 -1
- package/dist/jsx/components/form/DateTimePicker.cjs +1 -0
- package/dist/jsx/components/form/DateTimePicker.cjs.map +1 -1
- package/dist/jsx/components/form/DateTimePicker.d.cts +4 -1
- package/dist/jsx/components/form/DateTimePicker.d.cts.map +1 -1
- package/dist/jsx/components/form/DateTimePicker.d.mts +4 -1
- package/dist/jsx/components/form/DateTimePicker.d.mts.map +1 -1
- package/dist/jsx/components/form/DateTimePicker.mjs +1 -0
- package/dist/jsx/components/form/DateTimePicker.mjs.map +1 -1
- package/dist/jsx/components/form/Dropdown.cjs +1 -0
- package/dist/jsx/components/form/Dropdown.cjs.map +1 -1
- package/dist/jsx/components/form/Dropdown.d.cts +4 -1
- package/dist/jsx/components/form/Dropdown.d.cts.map +1 -1
- package/dist/jsx/components/form/Dropdown.d.mts +4 -1
- package/dist/jsx/components/form/Dropdown.d.mts.map +1 -1
- package/dist/jsx/components/form/Dropdown.mjs +1 -0
- package/dist/jsx/components/form/Dropdown.mjs.map +1 -1
- package/dist/jsx/components/form/Field.cjs +1 -0
- package/dist/jsx/components/form/Field.cjs.map +1 -1
- package/dist/jsx/components/form/Field.d.cts +4 -1
- package/dist/jsx/components/form/Field.d.cts.map +1 -1
- package/dist/jsx/components/form/Field.d.mts +4 -1
- package/dist/jsx/components/form/Field.d.mts.map +1 -1
- package/dist/jsx/components/form/Field.mjs +1 -0
- package/dist/jsx/components/form/Field.mjs.map +1 -1
- package/dist/jsx/components/form/FileInput.cjs +1 -0
- package/dist/jsx/components/form/FileInput.cjs.map +1 -1
- package/dist/jsx/components/form/FileInput.d.cts +4 -1
- package/dist/jsx/components/form/FileInput.d.cts.map +1 -1
- package/dist/jsx/components/form/FileInput.d.mts +4 -1
- package/dist/jsx/components/form/FileInput.d.mts.map +1 -1
- package/dist/jsx/components/form/FileInput.mjs +1 -0
- package/dist/jsx/components/form/FileInput.mjs.map +1 -1
- package/dist/jsx/components/form/Form.cjs +1 -0
- package/dist/jsx/components/form/Form.cjs.map +1 -1
- package/dist/jsx/components/form/Form.d.cts +4 -1
- package/dist/jsx/components/form/Form.d.cts.map +1 -1
- package/dist/jsx/components/form/Form.d.mts +4 -1
- package/dist/jsx/components/form/Form.d.mts.map +1 -1
- package/dist/jsx/components/form/Form.mjs +1 -0
- package/dist/jsx/components/form/Form.mjs.map +1 -1
- package/dist/jsx/components/form/Input.cjs +1 -0
- package/dist/jsx/components/form/Input.cjs.map +1 -1
- package/dist/jsx/components/form/Input.d.cts +16 -1
- package/dist/jsx/components/form/Input.d.cts.map +1 -1
- package/dist/jsx/components/form/Input.d.mts +16 -1
- package/dist/jsx/components/form/Input.d.mts.map +1 -1
- package/dist/jsx/components/form/Input.mjs +1 -0
- package/dist/jsx/components/form/Input.mjs.map +1 -1
- package/dist/jsx/components/form/Option.cjs +1 -0
- package/dist/jsx/components/form/Option.cjs.map +1 -1
- package/dist/jsx/components/form/Option.d.cts +4 -1
- package/dist/jsx/components/form/Option.d.cts.map +1 -1
- package/dist/jsx/components/form/Option.d.mts +4 -1
- package/dist/jsx/components/form/Option.d.mts.map +1 -1
- package/dist/jsx/components/form/Option.mjs +1 -0
- package/dist/jsx/components/form/Option.mjs.map +1 -1
- package/dist/jsx/components/form/Radio.cjs +1 -0
- package/dist/jsx/components/form/Radio.cjs.map +1 -1
- package/dist/jsx/components/form/Radio.d.cts +4 -1
- package/dist/jsx/components/form/Radio.d.cts.map +1 -1
- package/dist/jsx/components/form/Radio.d.mts +4 -1
- package/dist/jsx/components/form/Radio.d.mts.map +1 -1
- package/dist/jsx/components/form/Radio.mjs +1 -0
- package/dist/jsx/components/form/Radio.mjs.map +1 -1
- package/dist/jsx/components/form/RadioGroup.cjs +1 -0
- package/dist/jsx/components/form/RadioGroup.cjs.map +1 -1
- package/dist/jsx/components/form/RadioGroup.d.cts +4 -1
- package/dist/jsx/components/form/RadioGroup.d.cts.map +1 -1
- package/dist/jsx/components/form/RadioGroup.d.mts +4 -1
- package/dist/jsx/components/form/RadioGroup.d.mts.map +1 -1
- package/dist/jsx/components/form/RadioGroup.mjs +1 -0
- package/dist/jsx/components/form/RadioGroup.mjs.map +1 -1
- package/dist/jsx/components/form/Selector.cjs +1 -0
- package/dist/jsx/components/form/Selector.cjs.map +1 -1
- package/dist/jsx/components/form/Selector.d.cts +4 -1
- package/dist/jsx/components/form/Selector.d.cts.map +1 -1
- package/dist/jsx/components/form/Selector.d.mts +4 -1
- package/dist/jsx/components/form/Selector.d.mts.map +1 -1
- package/dist/jsx/components/form/Selector.mjs +1 -0
- package/dist/jsx/components/form/Selector.mjs.map +1 -1
- package/dist/jsx/components/form/SelectorOption.cjs +1 -0
- package/dist/jsx/components/form/SelectorOption.cjs.map +1 -1
- package/dist/jsx/components/form/SelectorOption.d.cts +4 -1
- package/dist/jsx/components/form/SelectorOption.d.cts.map +1 -1
- package/dist/jsx/components/form/SelectorOption.d.mts +4 -1
- package/dist/jsx/components/form/SelectorOption.d.mts.map +1 -1
- package/dist/jsx/components/form/SelectorOption.mjs +1 -0
- package/dist/jsx/components/form/SelectorOption.mjs.map +1 -1
- package/dist/jsx/components/formatting/Bold.cjs +1 -0
- package/dist/jsx/components/formatting/Bold.cjs.map +1 -1
- package/dist/jsx/components/formatting/Bold.d.cts +4 -1
- package/dist/jsx/components/formatting/Bold.d.cts.map +1 -1
- package/dist/jsx/components/formatting/Bold.d.mts +4 -1
- package/dist/jsx/components/formatting/Bold.d.mts.map +1 -1
- package/dist/jsx/components/formatting/Bold.mjs +1 -0
- package/dist/jsx/components/formatting/Bold.mjs.map +1 -1
- package/dist/jsx/components/formatting/Italic.cjs +1 -0
- package/dist/jsx/components/formatting/Italic.cjs.map +1 -1
- package/dist/jsx/components/formatting/Italic.d.cts +4 -1
- package/dist/jsx/components/formatting/Italic.d.cts.map +1 -1
- package/dist/jsx/components/formatting/Italic.d.mts +4 -1
- package/dist/jsx/components/formatting/Italic.d.mts.map +1 -1
- package/dist/jsx/components/formatting/Italic.mjs +1 -0
- package/dist/jsx/components/formatting/Italic.mjs.map +1 -1
- package/dist/jsx/index.cjs +22 -0
- package/dist/jsx/index.cjs.map +1 -1
- package/dist/jsx/index.d.cts +22 -0
- package/dist/jsx/index.d.cts.map +1 -1
- package/dist/jsx/index.d.mts +22 -0
- package/dist/jsx/index.d.mts.map +1 -1
- package/dist/jsx/index.mjs +22 -0
- package/dist/jsx/index.mjs.map +1 -1
- package/dist/jsx/validation.cjs +8 -1
- package/dist/jsx/validation.cjs.map +1 -1
- package/dist/jsx/validation.d.cts.map +1 -1
- package/dist/jsx/validation.d.mts.map +1 -1
- package/dist/jsx/validation.mjs +8 -1
- package/dist/jsx/validation.mjs.map +1 -1
- package/dist/types/methods/cancel-background-event.cjs.map +1 -1
- package/dist/types/methods/cancel-background-event.d.cts +6 -6
- package/dist/types/methods/cancel-background-event.d.cts.map +1 -1
- package/dist/types/methods/cancel-background-event.d.mts +6 -6
- package/dist/types/methods/cancel-background-event.d.mts.map +1 -1
- package/dist/types/methods/cancel-background-event.mjs.map +1 -1
- package/dist/types/methods/clear-state.cjs.map +1 -1
- package/dist/types/methods/clear-state.d.cts +8 -4
- package/dist/types/methods/clear-state.d.cts.map +1 -1
- package/dist/types/methods/clear-state.d.mts +8 -4
- package/dist/types/methods/clear-state.d.mts.map +1 -1
- package/dist/types/methods/clear-state.mjs.map +1 -1
- package/dist/types/methods/close-web-socket.cjs.map +1 -1
- package/dist/types/methods/close-web-socket.d.cts +3 -3
- package/dist/types/methods/close-web-socket.d.mts +3 -3
- package/dist/types/methods/close-web-socket.mjs.map +1 -1
- package/dist/types/methods/create-interface.cjs.map +1 -1
- package/dist/types/methods/create-interface.d.cts +14 -4
- package/dist/types/methods/create-interface.d.cts.map +1 -1
- package/dist/types/methods/create-interface.d.mts +14 -4
- package/dist/types/methods/create-interface.d.mts.map +1 -1
- package/dist/types/methods/create-interface.mjs.map +1 -1
- package/dist/types/methods/dialog.cjs.map +1 -1
- package/dist/types/methods/dialog.d.cts +49 -18
- package/dist/types/methods/dialog.d.cts.map +1 -1
- package/dist/types/methods/dialog.d.mts +49 -18
- package/dist/types/methods/dialog.d.mts.map +1 -1
- package/dist/types/methods/dialog.mjs.map +1 -1
- package/dist/types/methods/get-background-events.cjs.map +1 -1
- package/dist/types/methods/get-background-events.d.cts +17 -8
- package/dist/types/methods/get-background-events.d.cts.map +1 -1
- package/dist/types/methods/get-background-events.d.mts +17 -8
- package/dist/types/methods/get-background-events.d.mts.map +1 -1
- package/dist/types/methods/get-background-events.mjs.map +1 -1
- package/dist/types/methods/get-bip32-entropy.cjs.map +1 -1
- package/dist/types/methods/get-bip32-entropy.d.cts +2 -4
- package/dist/types/methods/get-bip32-entropy.d.cts.map +1 -1
- package/dist/types/methods/get-bip32-entropy.d.mts +2 -4
- package/dist/types/methods/get-bip32-entropy.d.mts.map +1 -1
- package/dist/types/methods/get-bip32-entropy.mjs.map +1 -1
- package/dist/types/methods/get-bip32-public-key.cjs.map +1 -1
- package/dist/types/methods/get-bip32-public-key.d.cts +3 -5
- package/dist/types/methods/get-bip32-public-key.d.cts.map +1 -1
- package/dist/types/methods/get-bip32-public-key.d.mts +3 -5
- package/dist/types/methods/get-bip32-public-key.d.mts.map +1 -1
- package/dist/types/methods/get-bip32-public-key.mjs.map +1 -1
- package/dist/types/methods/get-bip44-entropy.cjs.map +1 -1
- package/dist/types/methods/get-bip44-entropy.d.cts +3 -4
- package/dist/types/methods/get-bip44-entropy.d.cts.map +1 -1
- package/dist/types/methods/get-bip44-entropy.d.mts +3 -4
- package/dist/types/methods/get-bip44-entropy.d.mts.map +1 -1
- package/dist/types/methods/get-bip44-entropy.mjs.map +1 -1
- package/dist/types/methods/get-client-status.cjs.map +1 -1
- package/dist/types/methods/get-client-status.d.cts +5 -7
- package/dist/types/methods/get-client-status.d.cts.map +1 -1
- package/dist/types/methods/get-client-status.d.mts +5 -7
- package/dist/types/methods/get-client-status.d.mts.map +1 -1
- package/dist/types/methods/get-client-status.mjs.map +1 -1
- package/dist/types/methods/get-entropy.cjs.map +1 -1
- package/dist/types/methods/get-entropy.d.cts +6 -5
- package/dist/types/methods/get-entropy.d.cts.map +1 -1
- package/dist/types/methods/get-entropy.d.mts +6 -5
- package/dist/types/methods/get-entropy.d.mts.map +1 -1
- package/dist/types/methods/get-entropy.mjs.map +1 -1
- package/dist/types/methods/get-file.cjs.map +1 -1
- package/dist/types/methods/get-file.d.cts +9 -5
- package/dist/types/methods/get-file.d.cts.map +1 -1
- package/dist/types/methods/get-file.d.mts +9 -5
- package/dist/types/methods/get-file.d.mts.map +1 -1
- package/dist/types/methods/get-file.mjs.map +1 -1
- package/dist/types/methods/get-interface-context.cjs.map +1 -1
- package/dist/types/methods/get-interface-context.d.cts +5 -3
- package/dist/types/methods/get-interface-context.d.cts.map +1 -1
- package/dist/types/methods/get-interface-context.d.mts +5 -3
- package/dist/types/methods/get-interface-context.d.mts.map +1 -1
- package/dist/types/methods/get-interface-context.mjs.map +1 -1
- package/dist/types/methods/get-interface-state.cjs.map +1 -1
- package/dist/types/methods/get-interface-state.d.cts +10 -3
- package/dist/types/methods/get-interface-state.d.cts.map +1 -1
- package/dist/types/methods/get-interface-state.d.mts +10 -3
- package/dist/types/methods/get-interface-state.d.mts.map +1 -1
- package/dist/types/methods/get-interface-state.mjs.map +1 -1
- package/dist/types/methods/get-locale.cjs.map +1 -1
- package/dist/types/methods/get-locale.d.cts +1 -5
- package/dist/types/methods/get-locale.d.cts.map +1 -1
- package/dist/types/methods/get-locale.d.mts +1 -5
- package/dist/types/methods/get-locale.d.mts.map +1 -1
- package/dist/types/methods/get-locale.mjs.map +1 -1
- package/dist/types/methods/get-preferences.cjs.map +1 -1
- package/dist/types/methods/get-preferences.d.cts +39 -17
- package/dist/types/methods/get-preferences.d.cts.map +1 -1
- package/dist/types/methods/get-preferences.d.mts +39 -17
- 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-snaps.cjs.map +1 -1
- package/dist/types/methods/get-snaps.d.cts +1 -5
- package/dist/types/methods/get-snaps.d.cts.map +1 -1
- package/dist/types/methods/get-snaps.d.mts +1 -5
- package/dist/types/methods/get-snaps.d.mts.map +1 -1
- package/dist/types/methods/get-snaps.mjs.map +1 -1
- package/dist/types/methods/get-state.cjs.map +1 -1
- package/dist/types/methods/get-state.d.cts +8 -3
- package/dist/types/methods/get-state.d.cts.map +1 -1
- package/dist/types/methods/get-state.d.mts +8 -3
- package/dist/types/methods/get-state.d.mts.map +1 -1
- package/dist/types/methods/get-state.mjs.map +1 -1
- package/dist/types/methods/get-web-sockets.cjs.map +1 -1
- package/dist/types/methods/get-web-sockets.d.cts +10 -3
- package/dist/types/methods/get-web-sockets.d.cts.map +1 -1
- package/dist/types/methods/get-web-sockets.d.mts +10 -3
- package/dist/types/methods/get-web-sockets.d.mts.map +1 -1
- package/dist/types/methods/get-web-sockets.mjs.map +1 -1
- package/dist/types/methods/index.cjs.map +1 -1
- package/dist/types/methods/index.d.cts +0 -2
- package/dist/types/methods/index.d.cts.map +1 -1
- package/dist/types/methods/index.d.mts +0 -2
- package/dist/types/methods/index.d.mts.map +1 -1
- package/dist/types/methods/index.mjs.map +1 -1
- package/dist/types/methods/invoke-keyring.cjs.map +1 -1
- package/dist/types/methods/invoke-keyring.d.cts +5 -4
- package/dist/types/methods/invoke-keyring.d.cts.map +1 -1
- package/dist/types/methods/invoke-keyring.d.mts +5 -4
- package/dist/types/methods/invoke-keyring.d.mts.map +1 -1
- package/dist/types/methods/invoke-keyring.mjs.map +1 -1
- package/dist/types/methods/invoke-snap.cjs.map +1 -1
- package/dist/types/methods/invoke-snap.d.cts +10 -6
- package/dist/types/methods/invoke-snap.d.cts.map +1 -1
- package/dist/types/methods/invoke-snap.d.mts +10 -6
- package/dist/types/methods/invoke-snap.d.mts.map +1 -1
- package/dist/types/methods/invoke-snap.mjs.map +1 -1
- package/dist/types/methods/list-entropy-sources.cjs.map +1 -1
- package/dist/types/methods/list-entropy-sources.d.cts +2 -2
- package/dist/types/methods/list-entropy-sources.d.mts +2 -2
- package/dist/types/methods/list-entropy-sources.mjs.map +1 -1
- package/dist/types/methods/manage-accounts.cjs.map +1 -1
- package/dist/types/methods/manage-accounts.d.cts +10 -9
- package/dist/types/methods/manage-accounts.d.cts.map +1 -1
- package/dist/types/methods/manage-accounts.d.mts +10 -9
- package/dist/types/methods/manage-accounts.d.mts.map +1 -1
- package/dist/types/methods/manage-accounts.mjs.map +1 -1
- package/dist/types/methods/manage-state.cjs.map +1 -1
- package/dist/types/methods/manage-state.d.cts +35 -32
- package/dist/types/methods/manage-state.d.cts.map +1 -1
- package/dist/types/methods/manage-state.d.mts +35 -32
- package/dist/types/methods/manage-state.d.mts.map +1 -1
- package/dist/types/methods/manage-state.mjs.map +1 -1
- package/dist/types/methods/methods.cjs.map +1 -1
- package/dist/types/methods/methods.d.cts +0 -2
- package/dist/types/methods/methods.d.cts.map +1 -1
- package/dist/types/methods/methods.d.mts +0 -2
- package/dist/types/methods/methods.d.mts.map +1 -1
- package/dist/types/methods/methods.mjs.map +1 -1
- package/dist/types/methods/notify.cjs.map +1 -1
- package/dist/types/methods/notify.d.cts +39 -7
- package/dist/types/methods/notify.d.cts.map +1 -1
- package/dist/types/methods/notify.d.mts +39 -7
- package/dist/types/methods/notify.d.mts.map +1 -1
- package/dist/types/methods/notify.mjs.map +1 -1
- package/dist/types/methods/open-web-socket.cjs.map +1 -1
- package/dist/types/methods/open-web-socket.d.cts +6 -3
- package/dist/types/methods/open-web-socket.d.cts.map +1 -1
- package/dist/types/methods/open-web-socket.d.mts +6 -3
- package/dist/types/methods/open-web-socket.d.mts.map +1 -1
- package/dist/types/methods/open-web-socket.mjs.map +1 -1
- package/dist/types/methods/request-snaps.cjs.map +1 -1
- package/dist/types/methods/request-snaps.d.cts +5 -6
- package/dist/types/methods/request-snaps.d.cts.map +1 -1
- package/dist/types/methods/request-snaps.d.mts +5 -6
- package/dist/types/methods/request-snaps.d.mts.map +1 -1
- package/dist/types/methods/request-snaps.mjs.map +1 -1
- package/dist/types/methods/resolve-interface.cjs.map +1 -1
- package/dist/types/methods/resolve-interface.d.cts +1 -1
- package/dist/types/methods/resolve-interface.d.mts +1 -1
- package/dist/types/methods/resolve-interface.mjs.map +1 -1
- package/dist/types/methods/schedule-background-event.cjs.map +1 -1
- package/dist/types/methods/schedule-background-event.d.cts +18 -8
- package/dist/types/methods/schedule-background-event.d.cts.map +1 -1
- package/dist/types/methods/schedule-background-event.d.mts +18 -8
- package/dist/types/methods/schedule-background-event.d.mts.map +1 -1
- package/dist/types/methods/schedule-background-event.mjs.map +1 -1
- package/dist/types/methods/send-web-socket-message.cjs.map +1 -1
- package/dist/types/methods/send-web-socket-message.d.cts +9 -5
- package/dist/types/methods/send-web-socket-message.d.cts.map +1 -1
- package/dist/types/methods/send-web-socket-message.d.mts +9 -5
- package/dist/types/methods/send-web-socket-message.d.mts.map +1 -1
- package/dist/types/methods/send-web-socket-message.mjs.map +1 -1
- package/dist/types/methods/set-state.cjs.map +1 -1
- package/dist/types/methods/set-state.d.cts +6 -2
- package/dist/types/methods/set-state.d.cts.map +1 -1
- package/dist/types/methods/set-state.d.mts +6 -2
- package/dist/types/methods/set-state.d.mts.map +1 -1
- package/dist/types/methods/set-state.mjs.map +1 -1
- package/dist/types/methods/update-interface.cjs.map +1 -1
- package/dist/types/methods/update-interface.d.cts +13 -5
- package/dist/types/methods/update-interface.d.cts.map +1 -1
- package/dist/types/methods/update-interface.d.mts +13 -5
- package/dist/types/methods/update-interface.d.mts.map +1 -1
- package/dist/types/methods/update-interface.mjs.map +1 -1
- package/dist/types/permissions.cjs.map +1 -1
- package/dist/types/permissions.d.cts +32 -2
- package/dist/types/permissions.d.cts.map +1 -1
- package/dist/types/permissions.d.mts +32 -2
- package/dist/types/permissions.d.mts.map +1 -1
- package/dist/types/permissions.mjs.map +1 -1
- package/dist/ui/components/address.cjs +1 -18
- package/dist/ui/components/address.cjs.map +1 -1
- package/dist/ui/components/address.d.cts +0 -28
- package/dist/ui/components/address.d.cts.map +1 -1
- package/dist/ui/components/address.d.mts +0 -28
- package/dist/ui/components/address.d.mts.map +1 -1
- package/dist/ui/components/address.mjs +0 -17
- package/dist/ui/components/address.mjs.map +1 -1
- package/dist/ui/components/button.cjs +1 -26
- package/dist/ui/components/button.cjs.map +1 -1
- package/dist/ui/components/button.d.cts +0 -42
- package/dist/ui/components/button.d.cts.map +1 -1
- package/dist/ui/components/button.d.mts +0 -42
- package/dist/ui/components/button.d.mts.map +1 -1
- package/dist/ui/components/button.mjs +0 -25
- package/dist/ui/components/button.mjs.map +1 -1
- package/dist/ui/components/copyable.cjs +1 -22
- package/dist/ui/components/copyable.cjs.map +1 -1
- package/dist/ui/components/copyable.d.cts +0 -38
- package/dist/ui/components/copyable.d.cts.map +1 -1
- package/dist/ui/components/copyable.d.mts +0 -38
- package/dist/ui/components/copyable.d.mts.map +1 -1
- package/dist/ui/components/copyable.mjs +0 -21
- package/dist/ui/components/copyable.mjs.map +1 -1
- package/dist/ui/components/divider.cjs +1 -12
- package/dist/ui/components/divider.cjs.map +1 -1
- package/dist/ui/components/divider.d.cts +0 -17
- package/dist/ui/components/divider.d.cts.map +1 -1
- package/dist/ui/components/divider.d.mts +0 -17
- package/dist/ui/components/divider.d.mts.map +1 -1
- package/dist/ui/components/divider.mjs +0 -11
- package/dist/ui/components/divider.mjs.map +1 -1
- package/dist/ui/components/form.cjs +1 -28
- package/dist/ui/components/form.cjs.map +1 -1
- package/dist/ui/components/form.d.cts +0 -86
- package/dist/ui/components/form.d.cts.map +1 -1
- package/dist/ui/components/form.d.mts +0 -86
- package/dist/ui/components/form.d.mts.map +1 -1
- package/dist/ui/components/form.mjs +0 -27
- package/dist/ui/components/form.mjs.map +1 -1
- package/dist/ui/components/heading.cjs +1 -18
- package/dist/ui/components/heading.cjs.map +1 -1
- package/dist/ui/components/heading.d.cts +0 -30
- package/dist/ui/components/heading.d.cts.map +1 -1
- package/dist/ui/components/heading.d.mts +0 -30
- package/dist/ui/components/heading.d.mts.map +1 -1
- package/dist/ui/components/heading.mjs +0 -17
- package/dist/ui/components/heading.mjs.map +1 -1
- package/dist/ui/components/image.cjs +1 -17
- package/dist/ui/components/image.cjs.map +1 -1
- package/dist/ui/components/image.d.cts +0 -29
- package/dist/ui/components/image.d.cts.map +1 -1
- package/dist/ui/components/image.d.mts +0 -29
- package/dist/ui/components/image.d.mts.map +1 -1
- package/dist/ui/components/image.mjs +0 -16
- package/dist/ui/components/image.mjs.map +1 -1
- package/dist/ui/components/index.cjs +2 -5
- package/dist/ui/components/index.cjs.map +1 -1
- package/dist/ui/components/index.d.cts +2 -3
- package/dist/ui/components/index.d.cts.map +1 -1
- package/dist/ui/components/index.d.mts +2 -3
- package/dist/ui/components/index.d.mts.map +1 -1
- package/dist/ui/components/index.mjs +2 -2
- package/dist/ui/components/index.mjs.map +1 -1
- package/dist/ui/components/input.cjs +1 -29
- package/dist/ui/components/input.cjs.map +1 -1
- package/dist/ui/components/input.d.cts +0 -50
- package/dist/ui/components/input.d.cts.map +1 -1
- package/dist/ui/components/input.d.mts +0 -50
- package/dist/ui/components/input.d.mts.map +1 -1
- package/dist/ui/components/input.mjs +0 -28
- package/dist/ui/components/input.mjs.map +1 -1
- package/dist/ui/components/panel.cjs +5 -27
- package/dist/ui/components/panel.cjs.map +1 -1
- package/dist/ui/components/panel.d.cts +0 -108
- package/dist/ui/components/panel.d.cts.map +1 -1
- package/dist/ui/components/panel.d.mts +0 -108
- package/dist/ui/components/panel.d.mts.map +1 -1
- package/dist/ui/components/panel.mjs +4 -26
- package/dist/ui/components/panel.mjs.map +1 -1
- package/dist/ui/components/row.cjs +1 -24
- package/dist/ui/components/row.cjs.map +1 -1
- package/dist/ui/components/row.d.cts +0 -69
- package/dist/ui/components/row.d.cts.map +1 -1
- package/dist/ui/components/row.d.mts +0 -69
- package/dist/ui/components/row.d.mts.map +1 -1
- package/dist/ui/components/row.mjs +0 -23
- package/dist/ui/components/row.mjs.map +1 -1
- package/dist/ui/components/spinner.cjs +1 -12
- package/dist/ui/components/spinner.cjs.map +1 -1
- package/dist/ui/components/spinner.d.cts +0 -18
- package/dist/ui/components/spinner.d.cts.map +1 -1
- package/dist/ui/components/spinner.d.mts +0 -18
- package/dist/ui/components/spinner.d.mts.map +1 -1
- package/dist/ui/components/spinner.mjs +0 -11
- package/dist/ui/components/spinner.mjs.map +1 -1
- package/dist/ui/components/text.cjs +1 -24
- package/dist/ui/components/text.cjs.map +1 -1
- package/dist/ui/components/text.d.cts +0 -38
- package/dist/ui/components/text.d.cts.map +1 -1
- package/dist/ui/components/text.d.mts +0 -38
- package/dist/ui/components/text.d.mts.map +1 -1
- package/dist/ui/components/text.mjs +0 -23
- package/dist/ui/components/text.mjs.map +1 -1
- package/dist/ui/index.cjs +0 -1
- package/dist/ui/index.cjs.map +1 -1
- package/dist/ui/index.d.cts +0 -1
- package/dist/ui/index.d.cts.map +1 -1
- package/dist/ui/index.d.mts +0 -1
- package/dist/ui/index.d.mts.map +1 -1
- package/dist/ui/index.mjs +0 -1
- package/dist/ui/index.mjs.map +1 -1
- package/package.json +7 -4
- package/dist/types/methods/get-currency-rate.cjs +0 -3
- package/dist/types/methods/get-currency-rate.cjs.map +0 -1
- package/dist/types/methods/get-currency-rate.d.cts +0 -29
- package/dist/types/methods/get-currency-rate.d.cts.map +0 -1
- package/dist/types/methods/get-currency-rate.d.mts +0 -29
- package/dist/types/methods/get-currency-rate.d.mts.map +0 -1
- package/dist/types/methods/get-currency-rate.mjs +0 -2
- package/dist/types/methods/get-currency-rate.mjs.map +0 -1
- package/dist/types/methods/provider-request.cjs +0 -3
- package/dist/types/methods/provider-request.cjs.map +0 -1
- package/dist/types/methods/provider-request.d.cts +0 -25
- package/dist/types/methods/provider-request.d.cts.map +0 -1
- package/dist/types/methods/provider-request.d.mts +0 -25
- package/dist/types/methods/provider-request.d.mts.map +0 -1
- package/dist/types/methods/provider-request.mjs +0 -2
- package/dist/types/methods/provider-request.mjs.map +0 -1
- package/dist/ui/builder.cjs +0 -49
- package/dist/ui/builder.cjs.map +0 -1
- package/dist/ui/builder.d.cts +0 -43
- package/dist/ui/builder.d.cts.map +0 -1
- package/dist/ui/builder.d.mts +0 -43
- package/dist/ui/builder.d.mts.map +0 -1
- package/dist/ui/builder.mjs +0 -45
- package/dist/ui/builder.mjs.map +0 -1
- package/dist/ui/component.cjs +0 -29
- package/dist/ui/component.cjs.map +0 -1
- package/dist/ui/component.d.cts +0 -18
- package/dist/ui/component.d.cts.map +0 -1
- package/dist/ui/component.d.mts +0 -18
- package/dist/ui/component.d.mts.map +0 -1
- package/dist/ui/component.mjs +0 -24
- package/dist/ui/component.mjs.map +0 -1
|
@@ -1,22 +1,32 @@
|
|
|
1
1
|
import type { Cronjob } from "../permissions.cjs";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* Note: The date generated from a duration will be represented in UTC.
|
|
6
|
-
*
|
|
7
|
-
* @property date - The ISO 8601 date of when to fire the background event.
|
|
8
|
-
* @property duration - The ISO 8601 duration of when to fire the background event.
|
|
9
|
-
* @property request - The request to be called when the event fires.
|
|
3
|
+
* An object containing the parameters for the `snap_scheduleBackgroundEvent`
|
|
4
|
+
* method.
|
|
10
5
|
*/
|
|
11
6
|
export type ScheduleBackgroundEventParams = {
|
|
7
|
+
/**
|
|
8
|
+
* The ISO 8601 date string of when to fire the background event (e.g.,
|
|
9
|
+
* `"2025-01-01T00:00:00Z"`).
|
|
10
|
+
*/
|
|
12
11
|
date: string;
|
|
12
|
+
/**
|
|
13
|
+
* The JSON-RPC request to call when the event fires.
|
|
14
|
+
*/
|
|
13
15
|
request: Cronjob['request'];
|
|
14
16
|
} | {
|
|
17
|
+
/**
|
|
18
|
+
* The ISO 8601 duration string of how long to wait before firing the
|
|
19
|
+
* background event (e.g., `"P1D"` for one day). The resulting date will
|
|
20
|
+
* be calculated in UTC.
|
|
21
|
+
*/
|
|
15
22
|
duration: string;
|
|
23
|
+
/**
|
|
24
|
+
* The JSON-RPC request to call when the event fires.
|
|
25
|
+
*/
|
|
16
26
|
request: Cronjob['request'];
|
|
17
27
|
};
|
|
18
28
|
/**
|
|
19
|
-
* The
|
|
29
|
+
* The ID of the scheduled background event.
|
|
20
30
|
*/
|
|
21
31
|
export type ScheduleBackgroundEventResult = string;
|
|
22
32
|
//# sourceMappingURL=schedule-background-event.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedule-background-event.d.cts","sourceRoot":"","sources":["../../../src/types/methods/schedule-background-event.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,2BAAuB;AAE9C
|
|
1
|
+
{"version":3,"file":"schedule-background-event.d.cts","sourceRoot":"","sources":["../../../src/types/methods/schedule-background-event.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,2BAAuB;AAE9C;;;GAGG;AACH,MAAM,MAAM,6BAA6B,GACrC;IACE;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;CAC7B,GACD;IACE;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;CAC7B,CAAC;AAEN;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,MAAM,CAAC"}
|
|
@@ -1,22 +1,32 @@
|
|
|
1
1
|
import type { Cronjob } from "../permissions.mjs";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* Note: The date generated from a duration will be represented in UTC.
|
|
6
|
-
*
|
|
7
|
-
* @property date - The ISO 8601 date of when to fire the background event.
|
|
8
|
-
* @property duration - The ISO 8601 duration of when to fire the background event.
|
|
9
|
-
* @property request - The request to be called when the event fires.
|
|
3
|
+
* An object containing the parameters for the `snap_scheduleBackgroundEvent`
|
|
4
|
+
* method.
|
|
10
5
|
*/
|
|
11
6
|
export type ScheduleBackgroundEventParams = {
|
|
7
|
+
/**
|
|
8
|
+
* The ISO 8601 date string of when to fire the background event (e.g.,
|
|
9
|
+
* `"2025-01-01T00:00:00Z"`).
|
|
10
|
+
*/
|
|
12
11
|
date: string;
|
|
12
|
+
/**
|
|
13
|
+
* The JSON-RPC request to call when the event fires.
|
|
14
|
+
*/
|
|
13
15
|
request: Cronjob['request'];
|
|
14
16
|
} | {
|
|
17
|
+
/**
|
|
18
|
+
* The ISO 8601 duration string of how long to wait before firing the
|
|
19
|
+
* background event (e.g., `"P1D"` for one day). The resulting date will
|
|
20
|
+
* be calculated in UTC.
|
|
21
|
+
*/
|
|
15
22
|
duration: string;
|
|
23
|
+
/**
|
|
24
|
+
* The JSON-RPC request to call when the event fires.
|
|
25
|
+
*/
|
|
16
26
|
request: Cronjob['request'];
|
|
17
27
|
};
|
|
18
28
|
/**
|
|
19
|
-
* The
|
|
29
|
+
* The ID of the scheduled background event.
|
|
20
30
|
*/
|
|
21
31
|
export type ScheduleBackgroundEventResult = string;
|
|
22
32
|
//# sourceMappingURL=schedule-background-event.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedule-background-event.d.mts","sourceRoot":"","sources":["../../../src/types/methods/schedule-background-event.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,2BAAuB;AAE9C
|
|
1
|
+
{"version":3,"file":"schedule-background-event.d.mts","sourceRoot":"","sources":["../../../src/types/methods/schedule-background-event.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,2BAAuB;AAE9C;;;GAGG;AACH,MAAM,MAAM,6BAA6B,GACrC;IACE;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;CAC7B,GACD;IACE;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;CAC7B,CAAC;AAEN;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedule-background-event.mjs","sourceRoot":"","sources":["../../../src/types/methods/schedule-background-event.ts"],"names":[],"mappings":"","sourcesContent":["import type { Cronjob } from '../permissions';\n\n/**\n *
|
|
1
|
+
{"version":3,"file":"schedule-background-event.mjs","sourceRoot":"","sources":["../../../src/types/methods/schedule-background-event.ts"],"names":[],"mappings":"","sourcesContent":["import type { Cronjob } from '../permissions';\n\n/**\n * An object containing the parameters for the `snap_scheduleBackgroundEvent`\n * method.\n */\nexport type ScheduleBackgroundEventParams =\n | {\n /**\n * The ISO 8601 date string of when to fire the background event (e.g.,\n * `\"2025-01-01T00:00:00Z\"`).\n */\n date: string;\n\n /**\n * The JSON-RPC request to call when the event fires.\n */\n request: Cronjob['request'];\n }\n | {\n /**\n * The ISO 8601 duration string of how long to wait before firing the\n * background event (e.g., `\"P1D\"` for one day). The resulting date will\n * be calculated in UTC.\n */\n duration: string;\n\n /**\n * The JSON-RPC request to call when the event fires.\n */\n request: Cronjob['request'];\n };\n\n/**\n * The ID of the scheduled background event.\n */\nexport type ScheduleBackgroundEventResult = string;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-web-socket-message.cjs","sourceRoot":"","sources":["../../../src/types/methods/send-web-socket-message.ts"],"names":[],"mappings":"","sourcesContent":["/**\n *
|
|
1
|
+
{"version":3,"file":"send-web-socket-message.cjs","sourceRoot":"","sources":["../../../src/types/methods/send-web-socket-message.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * An object describing the WebSocket message to send.\n */\nexport type SendWebSocketMessageParams = {\n /**\n * The ID of the WebSocket connection to send a message to.\n */\n id: string;\n\n /**\n * The message to send. This can be either a string or an array of numbers\n * representing binary data.\n */\n message: string | number[];\n};\n\n/**\n * This method does not return any data, so the result is always `null`.\n */\nexport type SendWebSocketMessageResult = null;\n"]}
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* @property id - The id of the WebSocket connection to send a message to.
|
|
5
|
-
* @property message - The message to send.
|
|
2
|
+
* An object describing the WebSocket message to send.
|
|
6
3
|
*/
|
|
7
4
|
export type SendWebSocketMessageParams = {
|
|
5
|
+
/**
|
|
6
|
+
* The ID of the WebSocket connection to send a message to.
|
|
7
|
+
*/
|
|
8
8
|
id: string;
|
|
9
|
+
/**
|
|
10
|
+
* The message to send. This can be either a string or an array of numbers
|
|
11
|
+
* representing binary data.
|
|
12
|
+
*/
|
|
9
13
|
message: string | number[];
|
|
10
14
|
};
|
|
11
15
|
/**
|
|
12
|
-
*
|
|
16
|
+
* This method does not return any data, so the result is always `null`.
|
|
13
17
|
*/
|
|
14
18
|
export type SendWebSocketMessageResult = null;
|
|
15
19
|
//# sourceMappingURL=send-web-socket-message.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-web-socket-message.d.cts","sourceRoot":"","sources":["../../../src/types/methods/send-web-socket-message.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"send-web-socket-message.d.cts","sourceRoot":"","sources":["../../../src/types/methods/send-web-socket-message.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,IAAI,CAAC"}
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* @property id - The id of the WebSocket connection to send a message to.
|
|
5
|
-
* @property message - The message to send.
|
|
2
|
+
* An object describing the WebSocket message to send.
|
|
6
3
|
*/
|
|
7
4
|
export type SendWebSocketMessageParams = {
|
|
5
|
+
/**
|
|
6
|
+
* The ID of the WebSocket connection to send a message to.
|
|
7
|
+
*/
|
|
8
8
|
id: string;
|
|
9
|
+
/**
|
|
10
|
+
* The message to send. This can be either a string or an array of numbers
|
|
11
|
+
* representing binary data.
|
|
12
|
+
*/
|
|
9
13
|
message: string | number[];
|
|
10
14
|
};
|
|
11
15
|
/**
|
|
12
|
-
*
|
|
16
|
+
* This method does not return any data, so the result is always `null`.
|
|
13
17
|
*/
|
|
14
18
|
export type SendWebSocketMessageResult = null;
|
|
15
19
|
//# sourceMappingURL=send-web-socket-message.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-web-socket-message.d.mts","sourceRoot":"","sources":["../../../src/types/methods/send-web-socket-message.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"send-web-socket-message.d.mts","sourceRoot":"","sources":["../../../src/types/methods/send-web-socket-message.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-web-socket-message.mjs","sourceRoot":"","sources":["../../../src/types/methods/send-web-socket-message.ts"],"names":[],"mappings":"","sourcesContent":["/**\n *
|
|
1
|
+
{"version":3,"file":"send-web-socket-message.mjs","sourceRoot":"","sources":["../../../src/types/methods/send-web-socket-message.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * An object describing the WebSocket message to send.\n */\nexport type SendWebSocketMessageParams = {\n /**\n * The ID of the WebSocket connection to send a message to.\n */\n id: string;\n\n /**\n * The message to send. This can be either a string or an array of numbers\n * representing binary data.\n */\n message: string | number[];\n};\n\n/**\n * This method does not return any data, so the result is always `null`.\n */\nexport type SendWebSocketMessageResult = null;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-state.cjs","sourceRoot":"","sources":["../../../src/types/methods/set-state.ts"],"names":[],"mappings":"","sourcesContent":["import type { Json } from '@metamask/utils';\n\n/**\n * The request parameters for the `snap_setState` method.\n *\n * @property key - The key of the state to update. If not provided, the entire\n * state is updated. This may contain Lodash-style path syntax,
|
|
1
|
+
{"version":3,"file":"set-state.cjs","sourceRoot":"","sources":["../../../src/types/methods/set-state.ts"],"names":[],"mappings":"","sourcesContent":["import type { Json } from '@metamask/utils';\n\n/**\n * The request parameters for the `snap_setState` method.\n *\n * @property key - The key of the state to update. If not provided, the entire\n * state is updated. This may contain Lodash-style path syntax, for example,\n * `a.b.c`, with the exception of array syntax.\n * @property value - The value to set the state to.\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 *\n * Use the encrypted state for sensitive data (such as private keys or secrets),\n * and the unencrypted state for non-sensitive data that needs to be accessed\n * while the client is locked.\n */\nexport type SetStateParams = {\n key?: string;\n value: Json;\n encrypted?: boolean;\n};\n\n/**\n * This method does not return any data, so the result is always `null`.\n */\nexport type SetStateResult = null;\n"]}
|
|
@@ -3,13 +3,17 @@ import type { Json } from "@metamask/utils";
|
|
|
3
3
|
* The request parameters for the `snap_setState` method.
|
|
4
4
|
*
|
|
5
5
|
* @property key - The key of the state to update. If not provided, the entire
|
|
6
|
-
* state is updated. This may contain Lodash-style path syntax,
|
|
6
|
+
* state is updated. This may contain Lodash-style path syntax, for example,
|
|
7
7
|
* `a.b.c`, with the exception of array syntax.
|
|
8
8
|
* @property value - The value to set the state to.
|
|
9
9
|
* @property encrypted - Whether to use the separate encrypted state, or the
|
|
10
10
|
* unencrypted state. Defaults to the encrypted state. Encrypted state can only
|
|
11
11
|
* be used if the client is unlocked, while unencrypted state can be used
|
|
12
12
|
* whether the client is locked or unlocked.
|
|
13
|
+
*
|
|
14
|
+
* Use the encrypted state for sensitive data (such as private keys or secrets),
|
|
15
|
+
* and the unencrypted state for non-sensitive data that needs to be accessed
|
|
16
|
+
* while the client is locked.
|
|
13
17
|
*/
|
|
14
18
|
export type SetStateParams = {
|
|
15
19
|
key?: string;
|
|
@@ -17,7 +21,7 @@ export type SetStateParams = {
|
|
|
17
21
|
encrypted?: boolean;
|
|
18
22
|
};
|
|
19
23
|
/**
|
|
20
|
-
*
|
|
24
|
+
* This method does not return any data, so the result is always `null`.
|
|
21
25
|
*/
|
|
22
26
|
export type SetStateResult = null;
|
|
23
27
|
//# sourceMappingURL=set-state.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-state.d.cts","sourceRoot":"","sources":["../../../src/types/methods/set-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,wBAAwB;AAE5C
|
|
1
|
+
{"version":3,"file":"set-state.d.cts","sourceRoot":"","sources":["../../../src/types/methods/set-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,wBAAwB;AAE5C;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,IAAI,CAAC;IACZ,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC"}
|
|
@@ -3,13 +3,17 @@ import type { Json } from "@metamask/utils";
|
|
|
3
3
|
* The request parameters for the `snap_setState` method.
|
|
4
4
|
*
|
|
5
5
|
* @property key - The key of the state to update. If not provided, the entire
|
|
6
|
-
* state is updated. This may contain Lodash-style path syntax,
|
|
6
|
+
* state is updated. This may contain Lodash-style path syntax, for example,
|
|
7
7
|
* `a.b.c`, with the exception of array syntax.
|
|
8
8
|
* @property value - The value to set the state to.
|
|
9
9
|
* @property encrypted - Whether to use the separate encrypted state, or the
|
|
10
10
|
* unencrypted state. Defaults to the encrypted state. Encrypted state can only
|
|
11
11
|
* be used if the client is unlocked, while unencrypted state can be used
|
|
12
12
|
* whether the client is locked or unlocked.
|
|
13
|
+
*
|
|
14
|
+
* Use the encrypted state for sensitive data (such as private keys or secrets),
|
|
15
|
+
* and the unencrypted state for non-sensitive data that needs to be accessed
|
|
16
|
+
* while the client is locked.
|
|
13
17
|
*/
|
|
14
18
|
export type SetStateParams = {
|
|
15
19
|
key?: string;
|
|
@@ -17,7 +21,7 @@ export type SetStateParams = {
|
|
|
17
21
|
encrypted?: boolean;
|
|
18
22
|
};
|
|
19
23
|
/**
|
|
20
|
-
*
|
|
24
|
+
* This method does not return any data, so the result is always `null`.
|
|
21
25
|
*/
|
|
22
26
|
export type SetStateResult = null;
|
|
23
27
|
//# sourceMappingURL=set-state.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-state.d.mts","sourceRoot":"","sources":["../../../src/types/methods/set-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,wBAAwB;AAE5C
|
|
1
|
+
{"version":3,"file":"set-state.d.mts","sourceRoot":"","sources":["../../../src/types/methods/set-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,wBAAwB;AAE5C;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,IAAI,CAAC;IACZ,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-state.mjs","sourceRoot":"","sources":["../../../src/types/methods/set-state.ts"],"names":[],"mappings":"","sourcesContent":["import type { Json } from '@metamask/utils';\n\n/**\n * The request parameters for the `snap_setState` method.\n *\n * @property key - The key of the state to update. If not provided, the entire\n * state is updated. This may contain Lodash-style path syntax,
|
|
1
|
+
{"version":3,"file":"set-state.mjs","sourceRoot":"","sources":["../../../src/types/methods/set-state.ts"],"names":[],"mappings":"","sourcesContent":["import type { Json } from '@metamask/utils';\n\n/**\n * The request parameters for the `snap_setState` method.\n *\n * @property key - The key of the state to update. If not provided, the entire\n * state is updated. This may contain Lodash-style path syntax, for example,\n * `a.b.c`, with the exception of array syntax.\n * @property value - The value to set the state to.\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 *\n * Use the encrypted state for sensitive data (such as private keys or secrets),\n * and the unencrypted state for non-sensitive data that needs to be accessed\n * while the client is locked.\n */\nexport type SetStateParams = {\n key?: string;\n value: Json;\n encrypted?: boolean;\n};\n\n/**\n * This method does not return any data, so the result is always `null`.\n */\nexport type SetStateResult = null;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-interface.cjs","sourceRoot":"","sources":["../../../src/types/methods/update-interface.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentOrElement, InterfaceContext } from '..';\n\n/**\n *
|
|
1
|
+
{"version":3,"file":"update-interface.cjs","sourceRoot":"","sources":["../../../src/types/methods/update-interface.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentOrElement, InterfaceContext } from '..';\n\n/**\n * An object containing the parameters for the `snap_updateInterface` method.\n */\nexport type UpdateInterfaceParams = {\n /**\n * The ID of the interface to update.\n */\n id: string;\n\n /**\n * The new custom UI content to display in the interface.\n */\n ui: ComponentOrElement;\n\n /**\n * Optional context for the interface, which can be used to provide additional\n * information about the interface to the Snap, without being part of the UI\n * itself.\n */\n context?: InterfaceContext;\n};\n\n/**\n * This method does not return any data, so the result is always `null`.\n */\nexport type UpdateInterfaceResult = null;\n"]}
|
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
import type { ComponentOrElement, InterfaceContext } from "../index.cjs";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* @property id - The interface id.
|
|
6
|
-
* @property ui - The components to display in the interface.
|
|
3
|
+
* An object containing the parameters for the `snap_updateInterface` method.
|
|
7
4
|
*/
|
|
8
5
|
export type UpdateInterfaceParams = {
|
|
6
|
+
/**
|
|
7
|
+
* The ID of the interface to update.
|
|
8
|
+
*/
|
|
9
9
|
id: string;
|
|
10
|
+
/**
|
|
11
|
+
* The new custom UI content to display in the interface.
|
|
12
|
+
*/
|
|
10
13
|
ui: ComponentOrElement;
|
|
14
|
+
/**
|
|
15
|
+
* Optional context for the interface, which can be used to provide additional
|
|
16
|
+
* information about the interface to the Snap, without being part of the UI
|
|
17
|
+
* itself.
|
|
18
|
+
*/
|
|
11
19
|
context?: InterfaceContext;
|
|
12
20
|
};
|
|
13
21
|
/**
|
|
14
|
-
*
|
|
22
|
+
* This method does not return any data, so the result is always `null`.
|
|
15
23
|
*/
|
|
16
24
|
export type UpdateInterfaceResult = null;
|
|
17
25
|
//# sourceMappingURL=update-interface.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-interface.d.cts","sourceRoot":"","sources":["../../../src/types/methods/update-interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,qBAAW;AAE/D
|
|
1
|
+
{"version":3,"file":"update-interface.d.cts","sourceRoot":"","sources":["../../../src/types/methods/update-interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,qBAAW;AAE/D;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,EAAE,EAAE,kBAAkB,CAAC;IAEvB;;;;OAIG;IACH,OAAO,CAAC,EAAE,gBAAgB,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC"}
|
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
import type { ComponentOrElement, InterfaceContext } from "../index.mjs";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* @property id - The interface id.
|
|
6
|
-
* @property ui - The components to display in the interface.
|
|
3
|
+
* An object containing the parameters for the `snap_updateInterface` method.
|
|
7
4
|
*/
|
|
8
5
|
export type UpdateInterfaceParams = {
|
|
6
|
+
/**
|
|
7
|
+
* The ID of the interface to update.
|
|
8
|
+
*/
|
|
9
9
|
id: string;
|
|
10
|
+
/**
|
|
11
|
+
* The new custom UI content to display in the interface.
|
|
12
|
+
*/
|
|
10
13
|
ui: ComponentOrElement;
|
|
14
|
+
/**
|
|
15
|
+
* Optional context for the interface, which can be used to provide additional
|
|
16
|
+
* information about the interface to the Snap, without being part of the UI
|
|
17
|
+
* itself.
|
|
18
|
+
*/
|
|
11
19
|
context?: InterfaceContext;
|
|
12
20
|
};
|
|
13
21
|
/**
|
|
14
|
-
*
|
|
22
|
+
* This method does not return any data, so the result is always `null`.
|
|
15
23
|
*/
|
|
16
24
|
export type UpdateInterfaceResult = null;
|
|
17
25
|
//# sourceMappingURL=update-interface.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-interface.d.mts","sourceRoot":"","sources":["../../../src/types/methods/update-interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,qBAAW;AAE/D
|
|
1
|
+
{"version":3,"file":"update-interface.d.mts","sourceRoot":"","sources":["../../../src/types/methods/update-interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,qBAAW;AAE/D;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,EAAE,EAAE,kBAAkB,CAAC;IAEvB;;;;OAIG;IACH,OAAO,CAAC,EAAE,gBAAgB,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-interface.mjs","sourceRoot":"","sources":["../../../src/types/methods/update-interface.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentOrElement, InterfaceContext } from '..';\n\n/**\n *
|
|
1
|
+
{"version":3,"file":"update-interface.mjs","sourceRoot":"","sources":["../../../src/types/methods/update-interface.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentOrElement, InterfaceContext } from '..';\n\n/**\n * An object containing the parameters for the `snap_updateInterface` method.\n */\nexport type UpdateInterfaceParams = {\n /**\n * The ID of the interface to update.\n */\n id: string;\n\n /**\n * The new custom UI content to display in the interface.\n */\n ui: ComponentOrElement;\n\n /**\n * Optional context for the interface, which can be used to provide additional\n * information about the interface to the Snap, without being part of the UI\n * itself.\n */\n context?: InterfaceContext;\n};\n\n/**\n * This method does not return any data, so the result is always `null`.\n */\nexport type UpdateInterfaceResult = null;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permissions.cjs","sourceRoot":"","sources":["../../src/types/permissions.ts"],"names":[],"mappings":"","sourcesContent":["import type { SupportedCurve } from '@metamask/key-tree';\nimport type { CaipChainId,
|
|
1
|
+
{"version":3,"file":"permissions.cjs","sourceRoot":"","sources":["../../src/types/permissions.ts"],"names":[],"mappings":"","sourcesContent":["import type { SupportedCurve } from '@metamask/key-tree';\nimport type { CaipChainId, JsonRpcParams } from '@metamask/utils';\n\nexport type EmptyObject = Record<string, never>;\n\ntype CronjobRequest = {\n /**\n * The request to provide to the `onCronjob` handler for the Snap to determine\n * how to handle the request, when the cronjob is triggered.\n */\n request: {\n /**\n * The method to call. This can be an arbitrary method, and is provided to\n * the `onCronjob` handler for the Snap to determine how to handle the\n * request.\n */\n method: string;\n\n /**\n * The parameters to pass to the method. This can be used to provide\n * additional information about the request, and is provided to the\n * `onCronjob` handler for the Snap to determine how to handle the request.\n */\n params?: JsonRpcParams;\n };\n};\n\ntype CronjobWithExpression = CronjobRequest & {\n expression: string;\n};\n\ntype CronjobWithDuration = CronjobRequest & {\n duration: string;\n};\n\nexport type Cronjob = CronjobWithExpression | CronjobWithDuration;\n\nexport type NameLookupMatchers =\n | {\n tlds: string[];\n }\n | {\n schemes: string[];\n }\n | {\n tlds: string[];\n schemes: string[];\n };\n\nexport type Bip32Entropy = {\n /**\n * The curve to use for the derived key. This must be a curve supported by\n * [`@metamask/key-tree`](https://npmjs.com/package/@metamask/key-tree).\n */\n curve: SupportedCurve;\n\n /**\n * The derivation path to use for the derived key, represented as an array of\n * path segments. For example, the path `m/44'/1'/0'/0/0` would be represented\n * as `['m', \"44'\", \"1'\", \"0'\", '0', '0']`.\n */\n path: string[];\n};\n\nexport type Bip44Entropy = {\n /**\n * The coin type to use for the derived key, as specified in the\n * [SLIP-44 registry](https://github.com/satoshilabs/slips/blob/master/slip-0044.md).\n */\n coinType: number;\n};\n\nexport type RequestedSnap = {\n version?: string;\n};\n\nexport type InitialPermissions = Partial<{\n 'endowment:cronjob': {\n jobs?: Cronjob[];\n maxRequestTime?: number;\n };\n 'endowment:ethereum-provider': EmptyObject;\n 'endowment:keyring': {\n allowedOrigins?: string[];\n maxRequestTime?: number;\n };\n 'endowment:lifecycle-hooks'?: {\n maxRequestTime?: number;\n };\n 'endowment:name-lookup': {\n chains?: CaipChainId[];\n matchers?: NameLookupMatchers;\n maxRequestTime?: number;\n };\n 'endowment:network-access': EmptyObject;\n 'endowment:page-home'?: {\n maxRequestTime?: number;\n };\n 'endowment:page-settings'?: {\n maxRequestTime?: number;\n };\n 'endowment:rpc': {\n dapps?: boolean;\n snaps?: boolean;\n allowedOrigins?: string[];\n maxRequestTime?: number;\n };\n 'endowment:signature-insight': {\n allowSignatureOrigin?: boolean;\n maxRequestTime?: number;\n };\n 'endowment:transaction-insight': {\n allowTransactionOrigin?: boolean;\n maxRequestTime?: number;\n };\n 'endowment:webassembly': EmptyObject;\n\n /* eslint-disable @typescript-eslint/naming-convention */\n snap_dialog: EmptyObject;\n snap_getBip32Entropy: Bip32Entropy[];\n snap_getBip32PublicKey: Bip32Entropy[];\n snap_getBip44Entropy: Bip44Entropy[];\n snap_getEntropy: EmptyObject;\n snap_getLocale: EmptyObject;\n snap_manageAccounts: EmptyObject;\n snap_manageState: EmptyObject;\n snap_notify: EmptyObject;\n wallet_snap: Record<string, RequestedSnap>;\n /* eslint-enable @typescript-eslint/naming-convention */\n}>;\n"]}
|
|
@@ -1,8 +1,25 @@
|
|
|
1
1
|
import type { SupportedCurve } from "@metamask/key-tree";
|
|
2
|
-
import type { CaipChainId,
|
|
2
|
+
import type { CaipChainId, JsonRpcParams } from "@metamask/utils";
|
|
3
3
|
export type EmptyObject = Record<string, never>;
|
|
4
4
|
type CronjobRequest = {
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* The request to provide to the `onCronjob` handler for the Snap to determine
|
|
7
|
+
* how to handle the request, when the cronjob is triggered.
|
|
8
|
+
*/
|
|
9
|
+
request: {
|
|
10
|
+
/**
|
|
11
|
+
* The method to call. This can be an arbitrary method, and is provided to
|
|
12
|
+
* the `onCronjob` handler for the Snap to determine how to handle the
|
|
13
|
+
* request.
|
|
14
|
+
*/
|
|
15
|
+
method: string;
|
|
16
|
+
/**
|
|
17
|
+
* The parameters to pass to the method. This can be used to provide
|
|
18
|
+
* additional information about the request, and is provided to the
|
|
19
|
+
* `onCronjob` handler for the Snap to determine how to handle the request.
|
|
20
|
+
*/
|
|
21
|
+
params?: JsonRpcParams;
|
|
22
|
+
};
|
|
6
23
|
};
|
|
7
24
|
type CronjobWithExpression = CronjobRequest & {
|
|
8
25
|
expression: string;
|
|
@@ -20,10 +37,23 @@ export type NameLookupMatchers = {
|
|
|
20
37
|
schemes: string[];
|
|
21
38
|
};
|
|
22
39
|
export type Bip32Entropy = {
|
|
40
|
+
/**
|
|
41
|
+
* The curve to use for the derived key. This must be a curve supported by
|
|
42
|
+
* [`@metamask/key-tree`](https://npmjs.com/package/@metamask/key-tree).
|
|
43
|
+
*/
|
|
23
44
|
curve: SupportedCurve;
|
|
45
|
+
/**
|
|
46
|
+
* The derivation path to use for the derived key, represented as an array of
|
|
47
|
+
* path segments. For example, the path `m/44'/1'/0'/0/0` would be represented
|
|
48
|
+
* as `['m', "44'", "1'", "0'", '0', '0']`.
|
|
49
|
+
*/
|
|
24
50
|
path: string[];
|
|
25
51
|
};
|
|
26
52
|
export type Bip44Entropy = {
|
|
53
|
+
/**
|
|
54
|
+
* The coin type to use for the derived key, as specified in the
|
|
55
|
+
* [SLIP-44 registry](https://github.com/satoshilabs/slips/blob/master/slip-0044.md).
|
|
56
|
+
*/
|
|
27
57
|
coinType: number;
|
|
28
58
|
};
|
|
29
59
|
export type RequestedSnap = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permissions.d.cts","sourceRoot":"","sources":["../../src/types/permissions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,2BAA2B;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"permissions.d.cts","sourceRoot":"","sources":["../../src/types/permissions.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,8 +1,25 @@
|
|
|
1
1
|
import type { SupportedCurve } from "@metamask/key-tree";
|
|
2
|
-
import type { CaipChainId,
|
|
2
|
+
import type { CaipChainId, JsonRpcParams } from "@metamask/utils";
|
|
3
3
|
export type EmptyObject = Record<string, never>;
|
|
4
4
|
type CronjobRequest = {
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* The request to provide to the `onCronjob` handler for the Snap to determine
|
|
7
|
+
* how to handle the request, when the cronjob is triggered.
|
|
8
|
+
*/
|
|
9
|
+
request: {
|
|
10
|
+
/**
|
|
11
|
+
* The method to call. This can be an arbitrary method, and is provided to
|
|
12
|
+
* the `onCronjob` handler for the Snap to determine how to handle the
|
|
13
|
+
* request.
|
|
14
|
+
*/
|
|
15
|
+
method: string;
|
|
16
|
+
/**
|
|
17
|
+
* The parameters to pass to the method. This can be used to provide
|
|
18
|
+
* additional information about the request, and is provided to the
|
|
19
|
+
* `onCronjob` handler for the Snap to determine how to handle the request.
|
|
20
|
+
*/
|
|
21
|
+
params?: JsonRpcParams;
|
|
22
|
+
};
|
|
6
23
|
};
|
|
7
24
|
type CronjobWithExpression = CronjobRequest & {
|
|
8
25
|
expression: string;
|
|
@@ -20,10 +37,23 @@ export type NameLookupMatchers = {
|
|
|
20
37
|
schemes: string[];
|
|
21
38
|
};
|
|
22
39
|
export type Bip32Entropy = {
|
|
40
|
+
/**
|
|
41
|
+
* The curve to use for the derived key. This must be a curve supported by
|
|
42
|
+
* [`@metamask/key-tree`](https://npmjs.com/package/@metamask/key-tree).
|
|
43
|
+
*/
|
|
23
44
|
curve: SupportedCurve;
|
|
45
|
+
/**
|
|
46
|
+
* The derivation path to use for the derived key, represented as an array of
|
|
47
|
+
* path segments. For example, the path `m/44'/1'/0'/0/0` would be represented
|
|
48
|
+
* as `['m', "44'", "1'", "0'", '0', '0']`.
|
|
49
|
+
*/
|
|
24
50
|
path: string[];
|
|
25
51
|
};
|
|
26
52
|
export type Bip44Entropy = {
|
|
53
|
+
/**
|
|
54
|
+
* The coin type to use for the derived key, as specified in the
|
|
55
|
+
* [SLIP-44 registry](https://github.com/satoshilabs/slips/blob/master/slip-0044.md).
|
|
56
|
+
*/
|
|
27
57
|
coinType: number;
|
|
28
58
|
};
|
|
29
59
|
export type RequestedSnap = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permissions.d.mts","sourceRoot":"","sources":["../../src/types/permissions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,2BAA2B;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"permissions.d.mts","sourceRoot":"","sources":["../../src/types/permissions.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permissions.mjs","sourceRoot":"","sources":["../../src/types/permissions.ts"],"names":[],"mappings":"","sourcesContent":["import type { SupportedCurve } from '@metamask/key-tree';\nimport type { CaipChainId,
|
|
1
|
+
{"version":3,"file":"permissions.mjs","sourceRoot":"","sources":["../../src/types/permissions.ts"],"names":[],"mappings":"","sourcesContent":["import type { SupportedCurve } from '@metamask/key-tree';\nimport type { CaipChainId, JsonRpcParams } from '@metamask/utils';\n\nexport type EmptyObject = Record<string, never>;\n\ntype CronjobRequest = {\n /**\n * The request to provide to the `onCronjob` handler for the Snap to determine\n * how to handle the request, when the cronjob is triggered.\n */\n request: {\n /**\n * The method to call. This can be an arbitrary method, and is provided to\n * the `onCronjob` handler for the Snap to determine how to handle the\n * request.\n */\n method: string;\n\n /**\n * The parameters to pass to the method. This can be used to provide\n * additional information about the request, and is provided to the\n * `onCronjob` handler for the Snap to determine how to handle the request.\n */\n params?: JsonRpcParams;\n };\n};\n\ntype CronjobWithExpression = CronjobRequest & {\n expression: string;\n};\n\ntype CronjobWithDuration = CronjobRequest & {\n duration: string;\n};\n\nexport type Cronjob = CronjobWithExpression | CronjobWithDuration;\n\nexport type NameLookupMatchers =\n | {\n tlds: string[];\n }\n | {\n schemes: string[];\n }\n | {\n tlds: string[];\n schemes: string[];\n };\n\nexport type Bip32Entropy = {\n /**\n * The curve to use for the derived key. This must be a curve supported by\n * [`@metamask/key-tree`](https://npmjs.com/package/@metamask/key-tree).\n */\n curve: SupportedCurve;\n\n /**\n * The derivation path to use for the derived key, represented as an array of\n * path segments. For example, the path `m/44'/1'/0'/0/0` would be represented\n * as `['m', \"44'\", \"1'\", \"0'\", '0', '0']`.\n */\n path: string[];\n};\n\nexport type Bip44Entropy = {\n /**\n * The coin type to use for the derived key, as specified in the\n * [SLIP-44 registry](https://github.com/satoshilabs/slips/blob/master/slip-0044.md).\n */\n coinType: number;\n};\n\nexport type RequestedSnap = {\n version?: string;\n};\n\nexport type InitialPermissions = Partial<{\n 'endowment:cronjob': {\n jobs?: Cronjob[];\n maxRequestTime?: number;\n };\n 'endowment:ethereum-provider': EmptyObject;\n 'endowment:keyring': {\n allowedOrigins?: string[];\n maxRequestTime?: number;\n };\n 'endowment:lifecycle-hooks'?: {\n maxRequestTime?: number;\n };\n 'endowment:name-lookup': {\n chains?: CaipChainId[];\n matchers?: NameLookupMatchers;\n maxRequestTime?: number;\n };\n 'endowment:network-access': EmptyObject;\n 'endowment:page-home'?: {\n maxRequestTime?: number;\n };\n 'endowment:page-settings'?: {\n maxRequestTime?: number;\n };\n 'endowment:rpc': {\n dapps?: boolean;\n snaps?: boolean;\n allowedOrigins?: string[];\n maxRequestTime?: number;\n };\n 'endowment:signature-insight': {\n allowSignatureOrigin?: boolean;\n maxRequestTime?: number;\n };\n 'endowment:transaction-insight': {\n allowTransactionOrigin?: boolean;\n maxRequestTime?: number;\n };\n 'endowment:webassembly': EmptyObject;\n\n /* eslint-disable @typescript-eslint/naming-convention */\n snap_dialog: EmptyObject;\n snap_getBip32Entropy: Bip32Entropy[];\n snap_getBip32PublicKey: Bip32Entropy[];\n snap_getBip44Entropy: Bip44Entropy[];\n snap_getEntropy: EmptyObject;\n snap_getLocale: EmptyObject;\n snap_manageAccounts: EmptyObject;\n snap_manageState: EmptyObject;\n snap_notify: EmptyObject;\n wallet_snap: Record<string, RequestedSnap>;\n /* eslint-enable @typescript-eslint/naming-convention */\n}>;\n"]}
|
|
@@ -1,29 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.AddressStruct = void 0;
|
|
4
4
|
const superstruct_1 = require("@metamask/superstruct");
|
|
5
5
|
const utils_1 = require("@metamask/utils");
|
|
6
6
|
const internals_1 = require("../../internals/index.cjs");
|
|
7
|
-
const builder_1 = require("../builder.cjs");
|
|
8
7
|
const nodes_1 = require("../nodes.cjs");
|
|
9
8
|
exports.AddressStruct = (0, superstruct_1.assign)(nodes_1.LiteralStruct, (0, superstruct_1.object)({
|
|
10
9
|
type: (0, internals_1.literal)(nodes_1.NodeType.Address),
|
|
11
10
|
value: utils_1.HexChecksumAddressStruct,
|
|
12
11
|
}));
|
|
13
|
-
/**
|
|
14
|
-
* Create an {@link Address} node.
|
|
15
|
-
*
|
|
16
|
-
* @param args - The node arguments. This can either be a string, or an object
|
|
17
|
-
* with the `value` property.
|
|
18
|
-
* @param args.value - The address to be rendered.
|
|
19
|
-
* @returns The address node as an object.
|
|
20
|
-
* @deprecated Snaps component functions are deprecated, in favor of the new JSX
|
|
21
|
-
* components. This function will be removed in a future release.
|
|
22
|
-
* @example
|
|
23
|
-
* const node = address({ value: '0x4bbeeb066ed09b7aed07bf39eee0460dfa261520' });
|
|
24
|
-
* const node = address('0x4bbeeb066ed09b7aed07bf39eee0460dfa261520');
|
|
25
|
-
*/
|
|
26
|
-
exports.address = (0, builder_1.createBuilder)(nodes_1.NodeType.Address, exports.AddressStruct, [
|
|
27
|
-
'value',
|
|
28
|
-
]);
|
|
29
12
|
//# sourceMappingURL=address.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address.cjs","sourceRoot":"","sources":["../../../src/ui/components/address.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"address.cjs","sourceRoot":"","sources":["../../../src/ui/components/address.ts"],"names":[],"mappings":";;;AAAA,uDAAuD;AACvD,2CAA2D;AAE3D,yDAA0C;AAC1C,wCAAmD;AAEtC,QAAA,aAAa,GAAG,IAAA,oBAAM,EACjC,qBAAa,EACb,IAAA,oBAAM,EAAC;IACL,IAAI,EAAE,IAAA,mBAAO,EAAC,gBAAQ,CAAC,OAAO,CAAC;IAC/B,KAAK,EAAE,gCAAwB;CAChC,CAAC,CACH,CAAC","sourcesContent":["import { assign, object } from '@metamask/superstruct';\nimport { HexChecksumAddressStruct } from '@metamask/utils';\n\nimport { literal } from '../../internals';\nimport { LiteralStruct, NodeType } from '../nodes';\n\nexport const AddressStruct = assign(\n LiteralStruct,\n object({\n type: literal(NodeType.Address),\n value: HexChecksumAddressStruct,\n }),\n);\n"]}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Infer } from "@metamask/superstruct";
|
|
2
1
|
import { NodeType } from "../nodes.cjs";
|
|
3
2
|
export declare const AddressStruct: import("@metamask/superstruct").Struct<{
|
|
4
3
|
value: `0x${string}`;
|
|
@@ -7,31 +6,4 @@ export declare const AddressStruct: import("@metamask/superstruct").Struct<{
|
|
|
7
6
|
type: import("@metamask/superstruct").Struct<NodeType.Address, null>;
|
|
8
7
|
value: import("@metamask/superstruct").Struct<`0x${string}`, null>;
|
|
9
8
|
}>;
|
|
10
|
-
/**
|
|
11
|
-
* A address node, that renders an EVM-like address and its icon.
|
|
12
|
-
*
|
|
13
|
-
* @property type - The type of the node. Must be the string `address`.
|
|
14
|
-
* @property value - The address in hexadecimal, including 0x.
|
|
15
|
-
*/
|
|
16
|
-
export type Address = Infer<typeof AddressStruct>;
|
|
17
|
-
/**
|
|
18
|
-
* Create an {@link Address} node.
|
|
19
|
-
*
|
|
20
|
-
* @param args - The node arguments. This can either be a string, or an object
|
|
21
|
-
* with the `value` property.
|
|
22
|
-
* @param args.value - The address to be rendered.
|
|
23
|
-
* @returns The address node as an object.
|
|
24
|
-
* @deprecated Snaps component functions are deprecated, in favor of the new JSX
|
|
25
|
-
* components. This function will be removed in a future release.
|
|
26
|
-
* @example
|
|
27
|
-
* const node = address({ value: '0x4bbeeb066ed09b7aed07bf39eee0460dfa261520' });
|
|
28
|
-
* const node = address('0x4bbeeb066ed09b7aed07bf39eee0460dfa261520');
|
|
29
|
-
*/
|
|
30
|
-
export declare const address: (...args: `0x${string}`[] | [Omit<{
|
|
31
|
-
value: `0x${string}`;
|
|
32
|
-
type: NodeType.Address;
|
|
33
|
-
}, "type">]) => {
|
|
34
|
-
value: `0x${string}`;
|
|
35
|
-
type: NodeType.Address;
|
|
36
|
-
};
|
|
37
9
|
//# sourceMappingURL=address.d.cts.map
|