@metamask/snaps-sdk 10.3.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 +28 -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/handlers/assets-market-data.cjs.map +1 -1
- package/dist/types/handlers/assets-market-data.d.cts +1 -1
- package/dist/types/handlers/assets-market-data.d.mts +1 -1
- package/dist/types/handlers/assets-market-data.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 +1 -2
- package/dist/types/methods/index.d.cts.map +1 -1
- package/dist/types/methods/index.d.mts +1 -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 +5 -2
- package/dist/types/methods/methods.d.cts.map +1 -1
- package/dist/types/methods/methods.d.mts +5 -2
- package/dist/types/methods/methods.d.mts.map +1 -1
- package/dist/types/methods/methods.mjs.map +1 -1
- package/dist/types/methods/{provider-request.cjs → multichain/create-session.cjs} +1 -1
- package/dist/types/methods/multichain/create-session.cjs.map +1 -0
- package/dist/types/methods/multichain/create-session.d.cts +34 -0
- package/dist/types/methods/multichain/create-session.d.cts.map +1 -0
- package/dist/types/methods/multichain/create-session.d.mts +34 -0
- package/dist/types/methods/multichain/create-session.d.mts.map +1 -0
- package/dist/types/methods/multichain/create-session.mjs +2 -0
- package/dist/types/methods/multichain/create-session.mjs.map +1 -0
- package/dist/types/methods/{get-currency-rate.cjs → multichain/get-session.cjs} +1 -1
- package/dist/types/methods/multichain/get-session.cjs.map +1 -0
- package/dist/types/methods/multichain/get-session.d.cts +14 -0
- package/dist/types/methods/multichain/get-session.d.cts.map +1 -0
- package/dist/types/methods/multichain/get-session.d.mts +14 -0
- package/dist/types/methods/multichain/get-session.d.mts.map +1 -0
- package/dist/types/methods/multichain/get-session.mjs +2 -0
- package/dist/types/methods/multichain/get-session.mjs.map +1 -0
- package/dist/types/methods/multichain/index.cjs +3 -0
- package/dist/types/methods/multichain/index.cjs.map +1 -0
- package/dist/types/methods/multichain/index.d.cts +5 -0
- package/dist/types/methods/multichain/index.d.cts.map +1 -0
- package/dist/types/methods/multichain/index.d.mts +5 -0
- package/dist/types/methods/multichain/index.d.mts.map +1 -0
- package/dist/types/methods/multichain/index.mjs +2 -0
- package/dist/types/methods/multichain/index.mjs.map +1 -0
- package/dist/types/methods/multichain/invoke-method.cjs +3 -0
- package/dist/types/methods/multichain/invoke-method.cjs.map +1 -0
- package/dist/types/methods/multichain/invoke-method.d.cts +18 -0
- package/dist/types/methods/multichain/invoke-method.d.cts.map +1 -0
- package/dist/types/methods/multichain/invoke-method.d.mts +18 -0
- package/dist/types/methods/multichain/invoke-method.d.mts.map +1 -0
- package/dist/types/methods/multichain/invoke-method.mjs +2 -0
- package/dist/types/methods/multichain/invoke-method.mjs.map +1 -0
- package/dist/types/methods/multichain/revoke-session.cjs +3 -0
- package/dist/types/methods/multichain/revoke-session.cjs.map +1 -0
- package/dist/types/methods/multichain/revoke-session.d.cts +13 -0
- package/dist/types/methods/multichain/revoke-session.d.cts.map +1 -0
- package/dist/types/methods/multichain/revoke-session.d.mts +13 -0
- package/dist/types/methods/multichain/revoke-session.d.mts.map +1 -0
- package/dist/types/methods/multichain/revoke-session.mjs +2 -0
- package/dist/types/methods/multichain/revoke-session.mjs.map +1 -0
- 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.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.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 +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\n * represented in UTC.\n *\n * @property id - The unique
|
|
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\n * represented in UTC.\n *\n * @property id - The unique ID representing the event.\n * @property scheduledAt - The ISO 8601 timestamp of when the event was\n * 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\n * when the event is fired.\n */\nexport type BackgroundEvent = {\n id: string;\n scheduledAt: string;\n snapId: SnapId;\n date: string;\n request: {\n /**\n * The method to be called when the event is fired.\n */\n method: string;\n\n /**\n * The optional JSON-RPC version for the request, which is always \"2.0\" if\n * provided.\n */\n jsonrpc?: '2.0' | undefined;\n\n /**\n * The optional ID for the request.\n */\n id?: string | number | null | undefined;\n\n /**\n * The optional parameters for the request.\n */\n params?: Json[] | Record<string, Json> | undefined;\n };\n};\n\n/**\n * An array of scheduled background events.\n */\nexport type GetBackgroundEventsResult = BackgroundEvent[];\n\n/**\n * This method does not accept any parameters.\n */\nexport type GetBackgroundEventsParams = never;\n"]}
|
|
@@ -6,10 +6,10 @@ import type { SnapId } from "../snap.cjs";
|
|
|
6
6
|
* Note: The date generated when scheduling an event with a duration will be
|
|
7
7
|
* represented in UTC.
|
|
8
8
|
*
|
|
9
|
-
* @property id - The unique
|
|
10
|
-
* @property scheduledAt - The ISO 8601
|
|
9
|
+
* @property id - The unique ID representing the event.
|
|
10
|
+
* @property scheduledAt - The ISO 8601 timestamp of when the event was
|
|
11
11
|
* scheduled.
|
|
12
|
-
* @property snapId - The
|
|
12
|
+
* @property snapId - The ID of the Snap that scheduled the event.
|
|
13
13
|
* @property date - The ISO 8601 date of when the event is scheduled for.
|
|
14
14
|
* @property request - The request that is supplied to the `onCronjob` handler
|
|
15
15
|
* when the event is fired.
|
|
@@ -20,21 +20,30 @@ export type BackgroundEvent = {
|
|
|
20
20
|
snapId: SnapId;
|
|
21
21
|
date: string;
|
|
22
22
|
request: {
|
|
23
|
+
/**
|
|
24
|
+
* The method to be called when the event is fired.
|
|
25
|
+
*/
|
|
23
26
|
method: string;
|
|
27
|
+
/**
|
|
28
|
+
* The optional JSON-RPC version for the request, which is always "2.0" if
|
|
29
|
+
* provided.
|
|
30
|
+
*/
|
|
24
31
|
jsonrpc?: '2.0' | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* The optional ID for the request.
|
|
34
|
+
*/
|
|
25
35
|
id?: string | number | null | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* The optional parameters for the request.
|
|
38
|
+
*/
|
|
26
39
|
params?: Json[] | Record<string, Json> | undefined;
|
|
27
40
|
};
|
|
28
41
|
};
|
|
29
42
|
/**
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* It consists of an array background events (if any) for a snap.
|
|
43
|
+
* An array of scheduled background events.
|
|
33
44
|
*/
|
|
34
45
|
export type GetBackgroundEventsResult = BackgroundEvent[];
|
|
35
46
|
/**
|
|
36
|
-
* The request parameters for the `snap_getBackgroundEvents` method.
|
|
37
|
-
*
|
|
38
47
|
* This method does not accept any parameters.
|
|
39
48
|
*/
|
|
40
49
|
export type GetBackgroundEventsParams = never;
|
|
@@ -1 +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;;;;;;;;;;;;;GAaG;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;
|
|
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;;;;;;;;;;;;;GAaG;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;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;QAEf;;;WAGG;QACH,OAAO,CAAC,EAAE,KAAK,GAAG,SAAS,CAAC;QAE5B;;WAEG;QACH,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;QAExC;;WAEG;QACH,MAAM,CAAC,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,GAAG,SAAS,CAAC;KACpD,CAAC;CACH,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,eAAe,EAAE,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,KAAK,CAAC"}
|
|
@@ -6,10 +6,10 @@ import type { SnapId } from "../snap.mjs";
|
|
|
6
6
|
* Note: The date generated when scheduling an event with a duration will be
|
|
7
7
|
* represented in UTC.
|
|
8
8
|
*
|
|
9
|
-
* @property id - The unique
|
|
10
|
-
* @property scheduledAt - The ISO 8601
|
|
9
|
+
* @property id - The unique ID representing the event.
|
|
10
|
+
* @property scheduledAt - The ISO 8601 timestamp of when the event was
|
|
11
11
|
* scheduled.
|
|
12
|
-
* @property snapId - The
|
|
12
|
+
* @property snapId - The ID of the Snap that scheduled the event.
|
|
13
13
|
* @property date - The ISO 8601 date of when the event is scheduled for.
|
|
14
14
|
* @property request - The request that is supplied to the `onCronjob` handler
|
|
15
15
|
* when the event is fired.
|
|
@@ -20,21 +20,30 @@ export type BackgroundEvent = {
|
|
|
20
20
|
snapId: SnapId;
|
|
21
21
|
date: string;
|
|
22
22
|
request: {
|
|
23
|
+
/**
|
|
24
|
+
* The method to be called when the event is fired.
|
|
25
|
+
*/
|
|
23
26
|
method: string;
|
|
27
|
+
/**
|
|
28
|
+
* The optional JSON-RPC version for the request, which is always "2.0" if
|
|
29
|
+
* provided.
|
|
30
|
+
*/
|
|
24
31
|
jsonrpc?: '2.0' | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* The optional ID for the request.
|
|
34
|
+
*/
|
|
25
35
|
id?: string | number | null | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* The optional parameters for the request.
|
|
38
|
+
*/
|
|
26
39
|
params?: Json[] | Record<string, Json> | undefined;
|
|
27
40
|
};
|
|
28
41
|
};
|
|
29
42
|
/**
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* It consists of an array background events (if any) for a snap.
|
|
43
|
+
* An array of scheduled background events.
|
|
33
44
|
*/
|
|
34
45
|
export type GetBackgroundEventsResult = BackgroundEvent[];
|
|
35
46
|
/**
|
|
36
|
-
* The request parameters for the `snap_getBackgroundEvents` method.
|
|
37
|
-
*
|
|
38
47
|
* This method does not accept any parameters.
|
|
39
48
|
*/
|
|
40
49
|
export type GetBackgroundEventsParams = never;
|
|
@@ -1 +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;;;;;;;;;;;;;GAaG;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;
|
|
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;;;;;;;;;;;;;GAaG;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;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;QAEf;;;WAGG;QACH,OAAO,CAAC,EAAE,KAAK,GAAG,SAAS,CAAC;QAE5B;;WAEG;QACH,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;QAExC;;WAEG;QACH,MAAM,CAAC,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,GAAG,SAAS,CAAC;KACpD,CAAC;CACH,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,eAAe,EAAE,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,KAAK,CAAC"}
|
|
@@ -1 +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\n * represented in UTC.\n *\n * @property id - The unique
|
|
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\n * represented in UTC.\n *\n * @property id - The unique ID representing the event.\n * @property scheduledAt - The ISO 8601 timestamp of when the event was\n * 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\n * when the event is fired.\n */\nexport type BackgroundEvent = {\n id: string;\n scheduledAt: string;\n snapId: SnapId;\n date: string;\n request: {\n /**\n * The method to be called when the event is fired.\n */\n method: string;\n\n /**\n * The optional JSON-RPC version for the request, which is always \"2.0\" if\n * provided.\n */\n jsonrpc?: '2.0' | undefined;\n\n /**\n * The optional ID for the request.\n */\n id?: string | number | null | undefined;\n\n /**\n * The optional parameters for the request.\n */\n params?: Json[] | Record<string, Json> | undefined;\n };\n};\n\n/**\n * An array of scheduled background events.\n */\nexport type GetBackgroundEventsResult = BackgroundEvent[];\n\n/**\n * This method does not accept any parameters.\n */\nexport type GetBackgroundEventsParams = never;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-bip32-entropy.cjs","sourceRoot":"","sources":["../../../src/types/methods/get-bip32-entropy.ts"],"names":[],"mappings":"","sourcesContent":["import type { JsonSLIP10Node } from '@metamask/key-tree';\n\nimport type { Bip32Entropy } from '../permissions';\n\n/**\n *
|
|
1
|
+
{"version":3,"file":"get-bip32-entropy.cjs","sourceRoot":"","sources":["../../../src/types/methods/get-bip32-entropy.ts"],"names":[],"mappings":"","sourcesContent":["import type { JsonSLIP10Node } from '@metamask/key-tree';\n\nimport type { Bip32Entropy } from '../permissions';\n\n/**\n * An object containing the parameters for the `snap_getBip32Entropy` method.\n */\nexport type GetBip32EntropyParams = Bip32Entropy & {\n /**\n * The ID of the entropy source to use. If not specified, the primary entropy\n * source will be used. For a list of available entropy sources, see the\n * `snap_listEntropySources` method.\n */\n source?: string | undefined;\n};\n\n/**\n * A JSON-serializable SLIP-10 node containing the requested BIP-32 entropy.\n */\nexport type GetBip32EntropyResult = JsonSLIP10Node;\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { JsonSLIP10Node } from "@metamask/key-tree";
|
|
2
2
|
import type { Bip32Entropy } from "../permissions.cjs";
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* An object containing the parameters for the `snap_getBip32Entropy` method.
|
|
5
5
|
*/
|
|
6
6
|
export type GetBip32EntropyParams = Bip32Entropy & {
|
|
7
7
|
/**
|
|
@@ -12,9 +12,7 @@ export type GetBip32EntropyParams = Bip32Entropy & {
|
|
|
12
12
|
source?: string | undefined;
|
|
13
13
|
};
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* @see https://github.com/MetaMask/key-tree#usage
|
|
15
|
+
* A JSON-serializable SLIP-10 node containing the requested BIP-32 entropy.
|
|
18
16
|
*/
|
|
19
17
|
export type GetBip32EntropyResult = JsonSLIP10Node;
|
|
20
18
|
//# sourceMappingURL=get-bip32-entropy.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-bip32-entropy.d.cts","sourceRoot":"","sources":["../../../src/types/methods/get-bip32-entropy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,2BAA2B;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,2BAAuB;AAEnD;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,YAAY,GAAG;IACjD;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"get-bip32-entropy.d.cts","sourceRoot":"","sources":["../../../src/types/methods/get-bip32-entropy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,2BAA2B;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,2BAAuB;AAEnD;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,YAAY,GAAG;IACjD;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { JsonSLIP10Node } from "@metamask/key-tree";
|
|
2
2
|
import type { Bip32Entropy } from "../permissions.mjs";
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* An object containing the parameters for the `snap_getBip32Entropy` method.
|
|
5
5
|
*/
|
|
6
6
|
export type GetBip32EntropyParams = Bip32Entropy & {
|
|
7
7
|
/**
|
|
@@ -12,9 +12,7 @@ export type GetBip32EntropyParams = Bip32Entropy & {
|
|
|
12
12
|
source?: string | undefined;
|
|
13
13
|
};
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* @see https://github.com/MetaMask/key-tree#usage
|
|
15
|
+
* A JSON-serializable SLIP-10 node containing the requested BIP-32 entropy.
|
|
18
16
|
*/
|
|
19
17
|
export type GetBip32EntropyResult = JsonSLIP10Node;
|
|
20
18
|
//# sourceMappingURL=get-bip32-entropy.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-bip32-entropy.d.mts","sourceRoot":"","sources":["../../../src/types/methods/get-bip32-entropy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,2BAA2B;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,2BAAuB;AAEnD;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,YAAY,GAAG;IACjD;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"get-bip32-entropy.d.mts","sourceRoot":"","sources":["../../../src/types/methods/get-bip32-entropy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,2BAA2B;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,2BAAuB;AAEnD;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,YAAY,GAAG;IACjD;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-bip32-entropy.mjs","sourceRoot":"","sources":["../../../src/types/methods/get-bip32-entropy.ts"],"names":[],"mappings":"","sourcesContent":["import type { JsonSLIP10Node } from '@metamask/key-tree';\n\nimport type { Bip32Entropy } from '../permissions';\n\n/**\n *
|
|
1
|
+
{"version":3,"file":"get-bip32-entropy.mjs","sourceRoot":"","sources":["../../../src/types/methods/get-bip32-entropy.ts"],"names":[],"mappings":"","sourcesContent":["import type { JsonSLIP10Node } from '@metamask/key-tree';\n\nimport type { Bip32Entropy } from '../permissions';\n\n/**\n * An object containing the parameters for the `snap_getBip32Entropy` method.\n */\nexport type GetBip32EntropyParams = Bip32Entropy & {\n /**\n * The ID of the entropy source to use. If not specified, the primary entropy\n * source will be used. For a list of available entropy sources, see the\n * `snap_listEntropySources` method.\n */\n source?: string | undefined;\n};\n\n/**\n * A JSON-serializable SLIP-10 node containing the requested BIP-32 entropy.\n */\nexport type GetBip32EntropyResult = JsonSLIP10Node;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-bip32-public-key.cjs","sourceRoot":"","sources":["../../../src/types/methods/get-bip32-public-key.ts"],"names":[],"mappings":"","sourcesContent":["import type { Bip32Entropy } from '../permissions';\n\n/**\n *
|
|
1
|
+
{"version":3,"file":"get-bip32-public-key.cjs","sourceRoot":"","sources":["../../../src/types/methods/get-bip32-public-key.ts"],"names":[],"mappings":"","sourcesContent":["import type { Bip32Entropy } from '../permissions';\n\n/**\n * An object containing the parameters for the `snap_getBip32PublicKey` method.\n */\nexport type GetBip32PublicKeyParams = Bip32Entropy & {\n /**\n * Whether to return the compressed public key. Defaults to `false`.\n */\n compressed?: boolean;\n\n /**\n * The ID of the entropy source to use. If not specified, the primary entropy\n * source will be used. For a list of available entropy sources, see the\n * `snap_listEntropySources` method.\n */\n source?: string | undefined;\n};\n\n/**\n * The public key as hexadecimal string. May be compressed or uncompressed\n * depending on the `compressed` parameter provided in the request parameters.\n */\nexport type GetBip32PublicKeyResult = string;\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Bip32Entropy } from "../permissions.cjs";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* An object containing the parameters for the `snap_getBip32PublicKey` method.
|
|
4
4
|
*/
|
|
5
5
|
export type GetBip32PublicKeyParams = Bip32Entropy & {
|
|
6
6
|
/**
|
|
@@ -15,10 +15,8 @@ export type GetBip32PublicKeyParams = Bip32Entropy & {
|
|
|
15
15
|
source?: string | undefined;
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
18
|
-
* The
|
|
19
|
-
*
|
|
20
|
-
* It is the public key in hexadecimal format, in either compressed or
|
|
21
|
-
* uncompressed format, depending on the `compressed` parameter.
|
|
18
|
+
* The public key as hexadecimal string. May be compressed or uncompressed
|
|
19
|
+
* depending on the `compressed` parameter provided in the request parameters.
|
|
22
20
|
*/
|
|
23
21
|
export type GetBip32PublicKeyResult = string;
|
|
24
22
|
//# sourceMappingURL=get-bip32-public-key.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-bip32-public-key.d.cts","sourceRoot":"","sources":["../../../src/types/methods/get-bip32-public-key.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,2BAAuB;AAEnD;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,YAAY,GAAG;IACnD;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"get-bip32-public-key.d.cts","sourceRoot":"","sources":["../../../src/types/methods/get-bip32-public-key.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,2BAAuB;AAEnD;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,YAAY,GAAG;IACnD;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Bip32Entropy } from "../permissions.mjs";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* An object containing the parameters for the `snap_getBip32PublicKey` method.
|
|
4
4
|
*/
|
|
5
5
|
export type GetBip32PublicKeyParams = Bip32Entropy & {
|
|
6
6
|
/**
|
|
@@ -15,10 +15,8 @@ export type GetBip32PublicKeyParams = Bip32Entropy & {
|
|
|
15
15
|
source?: string | undefined;
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
18
|
-
* The
|
|
19
|
-
*
|
|
20
|
-
* It is the public key in hexadecimal format, in either compressed or
|
|
21
|
-
* uncompressed format, depending on the `compressed` parameter.
|
|
18
|
+
* The public key as hexadecimal string. May be compressed or uncompressed
|
|
19
|
+
* depending on the `compressed` parameter provided in the request parameters.
|
|
22
20
|
*/
|
|
23
21
|
export type GetBip32PublicKeyResult = string;
|
|
24
22
|
//# sourceMappingURL=get-bip32-public-key.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-bip32-public-key.d.mts","sourceRoot":"","sources":["../../../src/types/methods/get-bip32-public-key.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,2BAAuB;AAEnD;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,YAAY,GAAG;IACnD;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"get-bip32-public-key.d.mts","sourceRoot":"","sources":["../../../src/types/methods/get-bip32-public-key.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,2BAAuB;AAEnD;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,YAAY,GAAG;IACnD;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-bip32-public-key.mjs","sourceRoot":"","sources":["../../../src/types/methods/get-bip32-public-key.ts"],"names":[],"mappings":"","sourcesContent":["import type { Bip32Entropy } from '../permissions';\n\n/**\n *
|
|
1
|
+
{"version":3,"file":"get-bip32-public-key.mjs","sourceRoot":"","sources":["../../../src/types/methods/get-bip32-public-key.ts"],"names":[],"mappings":"","sourcesContent":["import type { Bip32Entropy } from '../permissions';\n\n/**\n * An object containing the parameters for the `snap_getBip32PublicKey` method.\n */\nexport type GetBip32PublicKeyParams = Bip32Entropy & {\n /**\n * Whether to return the compressed public key. Defaults to `false`.\n */\n compressed?: boolean;\n\n /**\n * The ID of the entropy source to use. If not specified, the primary entropy\n * source will be used. For a list of available entropy sources, see the\n * `snap_listEntropySources` method.\n */\n source?: string | undefined;\n};\n\n/**\n * The public key as hexadecimal string. May be compressed or uncompressed\n * depending on the `compressed` parameter provided in the request parameters.\n */\nexport type GetBip32PublicKeyResult = string;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-bip44-entropy.cjs","sourceRoot":"","sources":["../../../src/types/methods/get-bip44-entropy.ts"],"names":[],"mappings":"","sourcesContent":["import type { JsonBIP44CoinTypeNode } from '@metamask/key-tree';\n\nimport type { Bip44Entropy } from '../permissions';\n\n/**\n *
|
|
1
|
+
{"version":3,"file":"get-bip44-entropy.cjs","sourceRoot":"","sources":["../../../src/types/methods/get-bip44-entropy.ts"],"names":[],"mappings":"","sourcesContent":["import type { JsonBIP44CoinTypeNode } from '@metamask/key-tree';\n\nimport type { Bip44Entropy } from '../permissions';\n\n/**\n * An object containing the parameters for the `snap_getBip44Entropy` method.\n */\nexport type GetBip44EntropyParams = Bip44Entropy & {\n /**\n * The ID of the entropy source to use. If not specified, the primary entropy\n * source will be used. For a list of available entropy sources, see the\n * `snap_listEntropySources` method.\n */\n source?: string | undefined;\n};\n\n/**\n * A JSON-serializable BIP-44 coin type node containing the requested BIP-44\n * entropy.\n */\nexport type GetBip44EntropyResult = JsonBIP44CoinTypeNode;\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { JsonBIP44CoinTypeNode } from "@metamask/key-tree";
|
|
2
2
|
import type { Bip44Entropy } from "../permissions.cjs";
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* An object containing the parameters for the `snap_getBip44Entropy` method.
|
|
5
5
|
*/
|
|
6
6
|
export type GetBip44EntropyParams = Bip44Entropy & {
|
|
7
7
|
/**
|
|
@@ -12,9 +12,8 @@ export type GetBip44EntropyParams = Bip44Entropy & {
|
|
|
12
12
|
source?: string | undefined;
|
|
13
13
|
};
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* @see https://github.com/MetaMask/key-tree#usage
|
|
15
|
+
* A JSON-serializable BIP-44 coin type node containing the requested BIP-44
|
|
16
|
+
* entropy.
|
|
18
17
|
*/
|
|
19
18
|
export type GetBip44EntropyResult = JsonBIP44CoinTypeNode;
|
|
20
19
|
//# sourceMappingURL=get-bip44-entropy.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-bip44-entropy.d.cts","sourceRoot":"","sources":["../../../src/types/methods/get-bip44-entropy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,2BAA2B;AAEhE,OAAO,KAAK,EAAE,YAAY,EAAE,2BAAuB;AAEnD;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,YAAY,GAAG;IACjD;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"get-bip44-entropy.d.cts","sourceRoot":"","sources":["../../../src/types/methods/get-bip44-entropy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,2BAA2B;AAEhE,OAAO,KAAK,EAAE,YAAY,EAAE,2BAAuB;AAEnD;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,YAAY,GAAG;IACjD;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG,qBAAqB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { JsonBIP44CoinTypeNode } from "@metamask/key-tree";
|
|
2
2
|
import type { Bip44Entropy } from "../permissions.mjs";
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* An object containing the parameters for the `snap_getBip44Entropy` method.
|
|
5
5
|
*/
|
|
6
6
|
export type GetBip44EntropyParams = Bip44Entropy & {
|
|
7
7
|
/**
|
|
@@ -12,9 +12,8 @@ export type GetBip44EntropyParams = Bip44Entropy & {
|
|
|
12
12
|
source?: string | undefined;
|
|
13
13
|
};
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* @see https://github.com/MetaMask/key-tree#usage
|
|
15
|
+
* A JSON-serializable BIP-44 coin type node containing the requested BIP-44
|
|
16
|
+
* entropy.
|
|
18
17
|
*/
|
|
19
18
|
export type GetBip44EntropyResult = JsonBIP44CoinTypeNode;
|
|
20
19
|
//# sourceMappingURL=get-bip44-entropy.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-bip44-entropy.d.mts","sourceRoot":"","sources":["../../../src/types/methods/get-bip44-entropy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,2BAA2B;AAEhE,OAAO,KAAK,EAAE,YAAY,EAAE,2BAAuB;AAEnD;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,YAAY,GAAG;IACjD;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"get-bip44-entropy.d.mts","sourceRoot":"","sources":["../../../src/types/methods/get-bip44-entropy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,2BAA2B;AAEhE,OAAO,KAAK,EAAE,YAAY,EAAE,2BAAuB;AAEnD;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,YAAY,GAAG;IACjD;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG,qBAAqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-bip44-entropy.mjs","sourceRoot":"","sources":["../../../src/types/methods/get-bip44-entropy.ts"],"names":[],"mappings":"","sourcesContent":["import type { JsonBIP44CoinTypeNode } from '@metamask/key-tree';\n\nimport type { Bip44Entropy } from '../permissions';\n\n/**\n *
|
|
1
|
+
{"version":3,"file":"get-bip44-entropy.mjs","sourceRoot":"","sources":["../../../src/types/methods/get-bip44-entropy.ts"],"names":[],"mappings":"","sourcesContent":["import type { JsonBIP44CoinTypeNode } from '@metamask/key-tree';\n\nimport type { Bip44Entropy } from '../permissions';\n\n/**\n * An object containing the parameters for the `snap_getBip44Entropy` method.\n */\nexport type GetBip44EntropyParams = Bip44Entropy & {\n /**\n * The ID of the entropy source to use. If not specified, the primary entropy\n * source will be used. For a list of available entropy sources, see the\n * `snap_listEntropySources` method.\n */\n source?: string | undefined;\n};\n\n/**\n * A JSON-serializable BIP-44 coin type node containing the requested BIP-44\n * entropy.\n */\nexport type GetBip44EntropyResult = JsonBIP44CoinTypeNode;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-client-status.cjs","sourceRoot":"","sources":["../../../src/types/methods/get-client-status.ts"],"names":[],"mappings":"","sourcesContent":["/**\n *
|
|
1
|
+
{"version":3,"file":"get-client-status.cjs","sourceRoot":"","sources":["../../../src/types/methods/get-client-status.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * This method does not accept any parameters.\n */\nexport type GetClientStatusParams = never;\n\n/**\n * An object containing information about the client that the Snap is running\n * in.\n */\nexport type GetClientStatusResult = {\n /**\n * The semantic version of the client that the Snap is running in.\n */\n clientVersion: string;\n\n /**\n * The Snaps platform version that the client is running.\n */\n platformVersion: string;\n\n /**\n * A boolean flag that indicates whether the client is locked or not.\n */\n locked: boolean;\n\n /**\n * A boolean flag that indicates whether the client is active or not. The\n * client is considered active if the client is visible.\n */\n active: boolean;\n};\n"]}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The request parameters for the `snap_getClientStatus` method.
|
|
3
|
-
*
|
|
4
2
|
* This method does not accept any parameters.
|
|
5
3
|
*/
|
|
6
4
|
export type GetClientStatusParams = never;
|
|
7
5
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* It returns an object containing useful information about the client.
|
|
6
|
+
* An object containing information about the client that the Snap is running
|
|
7
|
+
* in.
|
|
11
8
|
*/
|
|
12
9
|
export type GetClientStatusResult = {
|
|
13
10
|
/**
|
|
@@ -15,7 +12,7 @@ export type GetClientStatusResult = {
|
|
|
15
12
|
*/
|
|
16
13
|
clientVersion: string;
|
|
17
14
|
/**
|
|
18
|
-
* The Snaps
|
|
15
|
+
* The Snaps platform version that the client is running.
|
|
19
16
|
*/
|
|
20
17
|
platformVersion: string;
|
|
21
18
|
/**
|
|
@@ -23,7 +20,8 @@ export type GetClientStatusResult = {
|
|
|
23
20
|
*/
|
|
24
21
|
locked: boolean;
|
|
25
22
|
/**
|
|
26
|
-
* A boolean flag that indicates whether the client is active or not.
|
|
23
|
+
* A boolean flag that indicates whether the client is active or not. The
|
|
24
|
+
* client is considered active if the client is visible.
|
|
27
25
|
*/
|
|
28
26
|
active: boolean;
|
|
29
27
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-client-status.d.cts","sourceRoot":"","sources":["../../../src/types/methods/get-client-status.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"get-client-status.d.cts","sourceRoot":"","sources":["../../../src/types/methods/get-client-status.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC;AAE1C;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;;OAGG;IACH,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC"}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The request parameters for the `snap_getClientStatus` method.
|
|
3
|
-
*
|
|
4
2
|
* This method does not accept any parameters.
|
|
5
3
|
*/
|
|
6
4
|
export type GetClientStatusParams = never;
|
|
7
5
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* It returns an object containing useful information about the client.
|
|
6
|
+
* An object containing information about the client that the Snap is running
|
|
7
|
+
* in.
|
|
11
8
|
*/
|
|
12
9
|
export type GetClientStatusResult = {
|
|
13
10
|
/**
|
|
@@ -15,7 +12,7 @@ export type GetClientStatusResult = {
|
|
|
15
12
|
*/
|
|
16
13
|
clientVersion: string;
|
|
17
14
|
/**
|
|
18
|
-
* The Snaps
|
|
15
|
+
* The Snaps platform version that the client is running.
|
|
19
16
|
*/
|
|
20
17
|
platformVersion: string;
|
|
21
18
|
/**
|
|
@@ -23,7 +20,8 @@ export type GetClientStatusResult = {
|
|
|
23
20
|
*/
|
|
24
21
|
locked: boolean;
|
|
25
22
|
/**
|
|
26
|
-
* A boolean flag that indicates whether the client is active or not.
|
|
23
|
+
* A boolean flag that indicates whether the client is active or not. The
|
|
24
|
+
* client is considered active if the client is visible.
|
|
27
25
|
*/
|
|
28
26
|
active: boolean;
|
|
29
27
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-client-status.d.mts","sourceRoot":"","sources":["../../../src/types/methods/get-client-status.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"get-client-status.d.mts","sourceRoot":"","sources":["../../../src/types/methods/get-client-status.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC;AAE1C;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;;OAGG;IACH,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-client-status.mjs","sourceRoot":"","sources":["../../../src/types/methods/get-client-status.ts"],"names":[],"mappings":"","sourcesContent":["/**\n *
|
|
1
|
+
{"version":3,"file":"get-client-status.mjs","sourceRoot":"","sources":["../../../src/types/methods/get-client-status.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * This method does not accept any parameters.\n */\nexport type GetClientStatusParams = never;\n\n/**\n * An object containing information about the client that the Snap is running\n * in.\n */\nexport type GetClientStatusResult = {\n /**\n * The semantic version of the client that the Snap is running in.\n */\n clientVersion: string;\n\n /**\n * The Snaps platform version that the client is running.\n */\n platformVersion: string;\n\n /**\n * A boolean flag that indicates whether the client is locked or not.\n */\n locked: boolean;\n\n /**\n * A boolean flag that indicates whether the client is active or not. The\n * client is considered active if the client is visible.\n */\n active: boolean;\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-entropy.cjs","sourceRoot":"","sources":["../../../src/types/methods/get-entropy.ts"],"names":[],"mappings":"","sourcesContent":["import type { Hex } from '@metamask/utils';\n\n/**\n *
|
|
1
|
+
{"version":3,"file":"get-entropy.cjs","sourceRoot":"","sources":["../../../src/types/methods/get-entropy.ts"],"names":[],"mappings":"","sourcesContent":["import type { Hex } from '@metamask/utils';\n\n/**\n * An object containing the parameters for the `snap_getEntropy` method.\n */\nexport type GetEntropyParams = {\n /**\n * The version of the entropy to retrieve. This is reserved for future use,\n * and as of now, only version 1 is supported.\n */\n version: 1;\n\n /**\n * An arbitrary string to be used as a salt for the entropy. This can be used\n * to generate different entropy for different purposes.\n */\n salt?: string | undefined;\n\n /**\n * The ID of the entropy source to use. If not specified, the primary entropy\n * source will be used. For a list of available entropy sources, see the\n * `snap_listEntropySources` method.\n */\n source?: string | undefined;\n};\n\n/**\n * The entropy as a hexadecimal string.\n */\nexport type GetEntropyResult = Hex;\n"]}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import type { Hex } from "@metamask/utils";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* An object containing the parameters for the `snap_getEntropy` method.
|
|
4
4
|
*/
|
|
5
5
|
export type GetEntropyParams = {
|
|
6
6
|
/**
|
|
7
|
-
* The version of the entropy to retrieve. This is
|
|
8
|
-
*
|
|
7
|
+
* The version of the entropy to retrieve. This is reserved for future use,
|
|
8
|
+
* and as of now, only version 1 is supported.
|
|
9
9
|
*/
|
|
10
10
|
version: 1;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* An arbitrary string to be used as a salt for the entropy. This can be used
|
|
13
|
+
* to generate different entropy for different purposes.
|
|
13
14
|
*/
|
|
14
15
|
salt?: string | undefined;
|
|
15
16
|
/**
|
|
@@ -20,7 +21,7 @@ export type GetEntropyParams = {
|
|
|
20
21
|
source?: string | undefined;
|
|
21
22
|
};
|
|
22
23
|
/**
|
|
23
|
-
* The
|
|
24
|
+
* The entropy as a hexadecimal string.
|
|
24
25
|
*/
|
|
25
26
|
export type GetEntropyResult = Hex;
|
|
26
27
|
//# sourceMappingURL=get-entropy.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-entropy.d.cts","sourceRoot":"","sources":["../../../src/types/methods/get-entropy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,wBAAwB;AAE3C;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;OAGG;IACH,OAAO,EAAE,CAAC,CAAC;IAEX
|
|
1
|
+
{"version":3,"file":"get-entropy.d.cts","sourceRoot":"","sources":["../../../src/types/methods/get-entropy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,wBAAwB;AAE3C;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;OAGG;IACH,OAAO,EAAE,CAAC,CAAC;IAEX;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE1B;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,GAAG,CAAC"}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import type { Hex } from "@metamask/utils";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* An object containing the parameters for the `snap_getEntropy` method.
|
|
4
4
|
*/
|
|
5
5
|
export type GetEntropyParams = {
|
|
6
6
|
/**
|
|
7
|
-
* The version of the entropy to retrieve. This is
|
|
8
|
-
*
|
|
7
|
+
* The version of the entropy to retrieve. This is reserved for future use,
|
|
8
|
+
* and as of now, only version 1 is supported.
|
|
9
9
|
*/
|
|
10
10
|
version: 1;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* An arbitrary string to be used as a salt for the entropy. This can be used
|
|
13
|
+
* to generate different entropy for different purposes.
|
|
13
14
|
*/
|
|
14
15
|
salt?: string | undefined;
|
|
15
16
|
/**
|
|
@@ -20,7 +21,7 @@ export type GetEntropyParams = {
|
|
|
20
21
|
source?: string | undefined;
|
|
21
22
|
};
|
|
22
23
|
/**
|
|
23
|
-
* The
|
|
24
|
+
* The entropy as a hexadecimal string.
|
|
24
25
|
*/
|
|
25
26
|
export type GetEntropyResult = Hex;
|
|
26
27
|
//# sourceMappingURL=get-entropy.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-entropy.d.mts","sourceRoot":"","sources":["../../../src/types/methods/get-entropy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,wBAAwB;AAE3C;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;OAGG;IACH,OAAO,EAAE,CAAC,CAAC;IAEX
|
|
1
|
+
{"version":3,"file":"get-entropy.d.mts","sourceRoot":"","sources":["../../../src/types/methods/get-entropy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,wBAAwB;AAE3C;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;OAGG;IACH,OAAO,EAAE,CAAC,CAAC;IAEX;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE1B;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,GAAG,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-entropy.mjs","sourceRoot":"","sources":["../../../src/types/methods/get-entropy.ts"],"names":[],"mappings":"","sourcesContent":["import type { Hex } from '@metamask/utils';\n\n/**\n *
|
|
1
|
+
{"version":3,"file":"get-entropy.mjs","sourceRoot":"","sources":["../../../src/types/methods/get-entropy.ts"],"names":[],"mappings":"","sourcesContent":["import type { Hex } from '@metamask/utils';\n\n/**\n * An object containing the parameters for the `snap_getEntropy` method.\n */\nexport type GetEntropyParams = {\n /**\n * The version of the entropy to retrieve. This is reserved for future use,\n * and as of now, only version 1 is supported.\n */\n version: 1;\n\n /**\n * An arbitrary string to be used as a salt for the entropy. This can be used\n * to generate different entropy for different purposes.\n */\n salt?: string | undefined;\n\n /**\n * The ID of the entropy source to use. If not specified, the primary entropy\n * source will be used. For a list of available entropy sources, see the\n * `snap_listEntropySources` method.\n */\n source?: string | undefined;\n};\n\n/**\n * The entropy as a hexadecimal string.\n */\nexport type GetEntropyResult = Hex;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-file.cjs","sourceRoot":"","sources":["../../../src/types/methods/get-file.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACH,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,0CAAiB,CAAA;IACjB,oCAAW,CAAA;IACX,sCAAa,CAAA;AACf,CAAC,EAJW,qBAAqB,qCAArB,qBAAqB,QAIhC","sourcesContent":["import type { EnumToUnion } from '../../internals';\n\n/**\n * The encoding to use when retrieving the file. Defaults to `Base64`.\n */\nexport enum AuxiliaryFileEncoding {\n Base64 = 'base64',\n Hex = 'hex',\n Utf8 = 'utf8',\n}\n\n/**\n *
|
|
1
|
+
{"version":3,"file":"get-file.cjs","sourceRoot":"","sources":["../../../src/types/methods/get-file.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACH,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,0CAAiB,CAAA;IACjB,oCAAW,CAAA;IACX,sCAAa,CAAA;AACf,CAAC,EAJW,qBAAqB,qCAArB,qBAAqB,QAIhC","sourcesContent":["import type { EnumToUnion } from '../../internals';\n\n/**\n * The encoding to use when retrieving the file. Defaults to `Base64`.\n */\nexport enum AuxiliaryFileEncoding {\n Base64 = 'base64',\n Hex = 'hex',\n Utf8 = 'utf8',\n}\n\n/**\n * An object containing the parameters for the `snap_getFile` method.\n */\nexport type GetFileParams = {\n /**\n * The path to the file, relative to the Snap's package directory\n * (that is, one level above `src`).\n */\n path: string;\n\n /**\n * The encoding to use when retrieving the file. Defaults to `base64`.\n */\n encoding?: EnumToUnion<AuxiliaryFileEncoding>;\n};\n\n/**\n * The file content as a string in the requested encoding.\n */\nexport type GetFileResult = string;\n"]}
|
|
@@ -8,17 +8,21 @@ export declare enum AuxiliaryFileEncoding {
|
|
|
8
8
|
Utf8 = "utf8"
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* @property path - The path to the file to retrieve.
|
|
14
|
-
* @property encoding - The encoding to use when retrieving the file.
|
|
11
|
+
* An object containing the parameters for the `snap_getFile` method.
|
|
15
12
|
*/
|
|
16
13
|
export type GetFileParams = {
|
|
14
|
+
/**
|
|
15
|
+
* The path to the file, relative to the Snap's package directory
|
|
16
|
+
* (that is, one level above `src`).
|
|
17
|
+
*/
|
|
17
18
|
path: string;
|
|
19
|
+
/**
|
|
20
|
+
* The encoding to use when retrieving the file. Defaults to `base64`.
|
|
21
|
+
*/
|
|
18
22
|
encoding?: EnumToUnion<AuxiliaryFileEncoding>;
|
|
19
23
|
};
|
|
20
24
|
/**
|
|
21
|
-
* The
|
|
25
|
+
* The file content as a string in the requested encoding.
|
|
22
26
|
*/
|
|
23
27
|
export type GetFileResult = string;
|
|
24
28
|
//# sourceMappingURL=get-file.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-file.d.cts","sourceRoot":"","sources":["../../../src/types/methods/get-file.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,kCAAwB;AAEnD;;GAEG;AACH,oBAAY,qBAAqB;IAC/B,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,IAAI,SAAS;CACd;AAED
|
|
1
|
+
{"version":3,"file":"get-file.d.cts","sourceRoot":"","sources":["../../../src/types/methods/get-file.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,kCAAwB;AAEnD;;GAEG;AACH,oBAAY,qBAAqB;IAC/B,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,IAAI,SAAS;CACd;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,CAAC,EAAE,WAAW,CAAC,qBAAqB,CAAC,CAAC;CAC/C,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC"}
|