@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
|
@@ -9,60 +9,63 @@ export declare enum ManageStateOperation {
|
|
|
9
9
|
UpdateState = "update"
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
-
* The clear
|
|
13
|
-
*
|
|
14
|
-
* @property operation - The operation to perform on the state. Must be `clear`.
|
|
15
|
-
* @property encrypted - Whether to use the separate encrypted state, or the
|
|
16
|
-
* unencrypted state. Defaults to the encrypted state. Encrypted state can only
|
|
17
|
-
* be used if the extension is unlocked, while unencrypted state can be used
|
|
18
|
-
* whether the extension is locked or unlocked.
|
|
12
|
+
* The `clear` operation, which deletes all stored state.
|
|
19
13
|
*/
|
|
20
14
|
export type ClearStateOperation = {
|
|
15
|
+
/**
|
|
16
|
+
* The literal string "clear" to indicate that this is a clear operation.
|
|
17
|
+
*/
|
|
21
18
|
operation: EnumToUnion<ManageStateOperation.ClearState>;
|
|
19
|
+
/**
|
|
20
|
+
* Whether to use the encrypted or unencrypted state. Defaults to `true`
|
|
21
|
+
* (encrypted). Encrypted state is only accessible when the wallet is
|
|
22
|
+
* unlocked, while unencrypted state is accessible whether the wallet is
|
|
23
|
+
* locked or unlocked. State can be cleared regardless of the wallet's lock
|
|
24
|
+
* state, but this parameter determines which state is cleared.
|
|
25
|
+
*/
|
|
22
26
|
encrypted?: boolean;
|
|
23
27
|
};
|
|
24
28
|
/**
|
|
25
|
-
* The get
|
|
26
|
-
*
|
|
27
|
-
* @property operation - The operation to perform on the state. Must be `get`.
|
|
28
|
-
* @property encrypted - Whether to use the separate encrypted state, or the
|
|
29
|
-
* unencrypted state. Defaults to the encrypted state. Encrypted state can only
|
|
30
|
-
* be used if the extension is unlocked, while unencrypted state can be used
|
|
31
|
-
* whether the extension is locked or unlocked.
|
|
29
|
+
* The `get` operation, which retrieves the stored state.
|
|
32
30
|
*/
|
|
33
31
|
export type GetStateOperation = {
|
|
32
|
+
/**
|
|
33
|
+
* The literal string "get" to indicate that this is a get operation.
|
|
34
|
+
*/
|
|
34
35
|
operation: EnumToUnion<ManageStateOperation.GetState>;
|
|
36
|
+
/**
|
|
37
|
+
* Whether to use the encrypted or unencrypted state. Defaults to `true`
|
|
38
|
+
* (encrypted). Encrypted state is only accessible when the wallet is
|
|
39
|
+
* unlocked, while unencrypted state is accessible whether the wallet is
|
|
40
|
+
* locked or unlocked.
|
|
41
|
+
*/
|
|
35
42
|
encrypted?: boolean;
|
|
36
43
|
};
|
|
37
44
|
/**
|
|
38
|
-
* The update
|
|
39
|
-
*
|
|
40
|
-
* @property operation - The operation to perform on the state. Must be
|
|
41
|
-
* `update`.
|
|
42
|
-
* @property encrypted - Whether to use the separate encrypted state, or the
|
|
43
|
-
* unencrypted state. Defaults to the encrypted state. Encrypted state can only
|
|
44
|
-
* be used if the extension is unlocked, while unencrypted state can be used
|
|
45
|
-
* whether the extension is locked or unlocked.
|
|
46
|
-
* @property newState - The new state to set.
|
|
45
|
+
* The `update` operation, which replaces the stored state with a new value.
|
|
47
46
|
*/
|
|
48
47
|
export type UpdateStateOperation = {
|
|
48
|
+
/**
|
|
49
|
+
* The literal string "update" to indicate that this is an update operation.
|
|
50
|
+
*/
|
|
49
51
|
operation: EnumToUnion<ManageStateOperation.UpdateState>;
|
|
52
|
+
/**
|
|
53
|
+
* Whether to use the encrypted or unencrypted state. Defaults to `true`
|
|
54
|
+
* (encrypted). Encrypted state is only accessible when the wallet is
|
|
55
|
+
* unlocked, while unencrypted state is accessible whether the wallet is
|
|
56
|
+
* locked or unlocked.
|
|
57
|
+
*/
|
|
50
58
|
encrypted?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* The new state to store. Must be a JSON-serializable object.
|
|
61
|
+
*/
|
|
51
62
|
newState: Record<string, Json>;
|
|
52
63
|
};
|
|
53
64
|
/**
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
* @property operation - The operation to perform on the state.
|
|
57
|
-
* @property encrypted - Whether to use the separate encrypted state, or the
|
|
58
|
-
* unencrypted state. Defaults to the encrypted state.
|
|
59
|
-
* @property newState - The new state to set. Only applicable for the `set`
|
|
60
|
-
* operation.
|
|
65
|
+
* An object containing the parameters for the `snap_manageState` method.
|
|
61
66
|
*/
|
|
62
67
|
export type ManageStateParams = ClearStateOperation | GetStateOperation | UpdateStateOperation;
|
|
63
68
|
/**
|
|
64
|
-
* The result returned by the `snap_manageState` method.
|
|
65
|
-
*
|
|
66
69
|
* If the operation is `get`, the result is the state. Otherwise, the result is
|
|
67
70
|
* `null`.
|
|
68
71
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manage-state.d.mts","sourceRoot":"","sources":["../../../src/types/methods/manage-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,wBAAwB;AAE5C,OAAO,KAAK,EAAE,WAAW,EAAE,kCAAwB;AAEnD;;GAEG;AACH,oBAAY,oBAAoB;IAC9B,UAAU,UAAU;IACpB,QAAQ,QAAQ;IAChB,WAAW,WAAW;CACvB;AAED
|
|
1
|
+
{"version":3,"file":"manage-state.d.mts","sourceRoot":"","sources":["../../../src/types/methods/manage-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,wBAAwB;AAE5C,OAAO,KAAK,EAAE,WAAW,EAAE,kCAAwB;AAEnD;;GAEG;AACH,oBAAY,oBAAoB;IAC9B,UAAU,UAAU;IACpB,QAAQ,QAAQ;IAChB,WAAW,WAAW;CACvB;AAED;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,SAAS,EAAE,WAAW,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC;IAExD;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,SAAS,EAAE,WAAW,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAC;IAEtD;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,SAAS,EAAE,WAAW,CAAC,oBAAoB,CAAC,WAAW,CAAC,CAAC;IAEzD;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;CAChC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,iBAAiB,GACzB,mBAAmB,GACnB,iBAAiB,GACjB,oBAAoB,CAAC;AAEzB;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,GAAG,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manage-state.mjs","sourceRoot":"","sources":["../../../src/types/methods/manage-state.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,CAAN,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC9B,4CAAoB,CAAA;IACpB,wCAAgB,CAAA;IAChB,8CAAsB,CAAA;AACxB,CAAC,EAJW,oBAAoB,KAApB,oBAAoB,QAI/B","sourcesContent":["import type { Json } from '@metamask/utils';\n\nimport type { EnumToUnion } from '../../internals';\n\n/**\n * The operations that can be performed on the state.\n */\nexport enum ManageStateOperation {\n ClearState = 'clear',\n GetState = 'get',\n UpdateState = 'update',\n}\n\n/**\n * The clear
|
|
1
|
+
{"version":3,"file":"manage-state.mjs","sourceRoot":"","sources":["../../../src/types/methods/manage-state.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,CAAN,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC9B,4CAAoB,CAAA;IACpB,wCAAgB,CAAA;IAChB,8CAAsB,CAAA;AACxB,CAAC,EAJW,oBAAoB,KAApB,oBAAoB,QAI/B","sourcesContent":["import type { Json } from '@metamask/utils';\n\nimport type { EnumToUnion } from '../../internals';\n\n/**\n * The operations that can be performed on the state.\n */\nexport enum ManageStateOperation {\n ClearState = 'clear',\n GetState = 'get',\n UpdateState = 'update',\n}\n\n/**\n * The `clear` operation, which deletes all stored state.\n */\nexport type ClearStateOperation = {\n /**\n * The literal string \"clear\" to indicate that this is a clear operation.\n */\n operation: EnumToUnion<ManageStateOperation.ClearState>;\n\n /**\n * Whether to use the encrypted or unencrypted state. Defaults to `true`\n * (encrypted). Encrypted state is only accessible when the wallet is\n * unlocked, while unencrypted state is accessible whether the wallet is\n * locked or unlocked. State can be cleared regardless of the wallet's lock\n * state, but this parameter determines which state is cleared.\n */\n encrypted?: boolean;\n};\n\n/**\n * The `get` operation, which retrieves the stored state.\n */\nexport type GetStateOperation = {\n /**\n * The literal string \"get\" to indicate that this is a get operation.\n */\n operation: EnumToUnion<ManageStateOperation.GetState>;\n\n /**\n * Whether to use the encrypted or unencrypted state. Defaults to `true`\n * (encrypted). Encrypted state is only accessible when the wallet is\n * unlocked, while unencrypted state is accessible whether the wallet is\n * locked or unlocked.\n */\n encrypted?: boolean;\n};\n\n/**\n * The `update` operation, which replaces the stored state with a new value.\n */\nexport type UpdateStateOperation = {\n /**\n * The literal string \"update\" to indicate that this is an update operation.\n */\n operation: EnumToUnion<ManageStateOperation.UpdateState>;\n\n /**\n * Whether to use the encrypted or unencrypted state. Defaults to `true`\n * (encrypted). Encrypted state is only accessible when the wallet is\n * unlocked, while unencrypted state is accessible whether the wallet is\n * locked or unlocked.\n */\n encrypted?: boolean;\n\n /**\n * The new state to store. Must be a JSON-serializable object.\n */\n newState: Record<string, Json>;\n};\n\n/**\n * An object containing the parameters for the `snap_manageState` method.\n */\nexport type ManageStateParams =\n | ClearStateOperation\n | GetStateOperation\n | UpdateStateOperation;\n\n/**\n * If the operation is `get`, the result is the state. Otherwise, the result is\n * `null`.\n */\nexport type ManageStateResult = Record<string, Json> | null;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"methods.cjs","sourceRoot":"","sources":["../../../src/types/methods/methods.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n CancelBackgroundEventParams,\n CancelBackgroundEventResult,\n} from './cancel-background-event';\nimport type { ClearStateParams, ClearStateResult } from './clear-state';\nimport type {\n CloseWebSocketParams,\n CloseWebSocketResult,\n} from './close-web-socket';\nimport type {\n CreateInterfaceParams,\n CreateInterfaceResult,\n} from './create-interface';\nimport type { DialogParams, DialogResult } from './dialog';\nimport type { EndTraceParams, EndTraceResult } from './end-trace';\nimport type {\n GetBackgroundEventsParams,\n GetBackgroundEventsResult,\n} from './get-background-events';\nimport type {\n GetBip32EntropyParams,\n GetBip32EntropyResult,\n} from './get-bip32-entropy';\nimport type {\n GetBip32PublicKeyParams,\n GetBip32PublicKeyResult,\n} from './get-bip32-public-key';\nimport type {\n GetBip44EntropyParams,\n GetBip44EntropyResult,\n} from './get-bip44-entropy';\nimport type {\n GetClientStatusParams,\n GetClientStatusResult,\n} from './get-client-status';\nimport type {
|
|
1
|
+
{"version":3,"file":"methods.cjs","sourceRoot":"","sources":["../../../src/types/methods/methods.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n CancelBackgroundEventParams,\n CancelBackgroundEventResult,\n} from './cancel-background-event';\nimport type { ClearStateParams, ClearStateResult } from './clear-state';\nimport type {\n CloseWebSocketParams,\n CloseWebSocketResult,\n} from './close-web-socket';\nimport type {\n CreateInterfaceParams,\n CreateInterfaceResult,\n} from './create-interface';\nimport type { DialogParams, DialogResult } from './dialog';\nimport type { EndTraceParams, EndTraceResult } from './end-trace';\nimport type {\n GetBackgroundEventsParams,\n GetBackgroundEventsResult,\n} from './get-background-events';\nimport type {\n GetBip32EntropyParams,\n GetBip32EntropyResult,\n} from './get-bip32-entropy';\nimport type {\n GetBip32PublicKeyParams,\n GetBip32PublicKeyResult,\n} from './get-bip32-public-key';\nimport type {\n GetBip44EntropyParams,\n GetBip44EntropyResult,\n} from './get-bip44-entropy';\nimport type {\n GetClientStatusParams,\n GetClientStatusResult,\n} from './get-client-status';\nimport type { GetEntropyParams, GetEntropyResult } from './get-entropy';\nimport type { GetFileParams, GetFileResult } from './get-file';\nimport type {\n GetInterfaceContextParams,\n GetInterfaceContextResult,\n} from './get-interface-context';\nimport type {\n GetInterfaceStateParams,\n GetInterfaceStateResult,\n} from './get-interface-state';\nimport type { GetLocaleParams, GetLocaleResult } from './get-locale';\nimport type {\n GetPreferencesParams,\n GetPreferencesResult,\n} from './get-preferences';\nimport type { GetSnapsParams, GetSnapsResult } from './get-snaps';\nimport type { GetStateParams, GetStateResult } from './get-state';\nimport type {\n GetWebSocketsParams,\n GetWebSocketsResult,\n} from './get-web-sockets';\nimport type {\n InvokeKeyringParams,\n InvokeKeyringResult,\n} from './invoke-keyring';\nimport type { InvokeSnapParams, InvokeSnapResult } from './invoke-snap';\nimport type {\n ListEntropySourcesParams,\n ListEntropySourcesResult,\n} from './list-entropy-sources';\nimport type {\n ManageAccountsParams,\n ManageAccountsResult,\n} from './manage-accounts';\nimport type { ManageStateParams, ManageStateResult } from './manage-state';\nimport type {\n CreateSessionParams,\n CreateSessionResult,\n GetSessionParams,\n GetSessionResult,\n InvokeMethodParams,\n InvokeMethodResult,\n RevokeSessionParams,\n RevokeSessionResult,\n} from './multichain';\nimport type { NotifyParams, NotifyResult } from './notify';\nimport type {\n OpenWebSocketParams,\n OpenWebSocketResult,\n} from './open-web-socket';\nimport type { RequestSnapsParams, RequestSnapsResult } from './request-snaps';\nimport type {\n ResolveInterfaceParams,\n ResolveInterfaceResult,\n} from './resolve-interface';\nimport type {\n ScheduleBackgroundEventParams,\n ScheduleBackgroundEventResult,\n} from './schedule-background-event';\nimport type {\n SendWebSocketMessageParams,\n SendWebSocketMessageResult,\n} from './send-web-socket-message';\nimport type { SetStateParams, SetStateResult } from './set-state';\nimport type { StartTraceParams, StartTraceResult } from './start-trace';\nimport type { TrackErrorParams, TrackErrorResult } from './track-error';\nimport type { TrackEventParams, TrackEventResult } from './track-event';\nimport type {\n UpdateInterfaceParams,\n UpdateInterfaceResult,\n} from './update-interface';\nimport type { Method } from '../../internals';\n\n/**\n * The methods that are available to the Snap. Each method is a tuple of the\n * request parameters and the result returned by the method.\n */\nexport type SnapMethods = {\n /* eslint-disable @typescript-eslint/naming-convention */\n snap_clearState: [ClearStateParams, ClearStateResult];\n snap_dialog: [DialogParams, DialogResult];\n snap_endTrace: [EndTraceParams, EndTraceResult];\n snap_getBip32Entropy: [GetBip32EntropyParams, GetBip32EntropyResult];\n snap_getBip32PublicKey: [GetBip32PublicKeyParams, GetBip32PublicKeyResult];\n snap_getBip44Entropy: [GetBip44EntropyParams, GetBip44EntropyResult];\n snap_getClientStatus: [GetClientStatusParams, GetClientStatusResult];\n snap_getEntropy: [GetEntropyParams, GetEntropyResult];\n snap_getFile: [GetFileParams, GetFileResult];\n snap_getLocale: [GetLocaleParams, GetLocaleResult];\n snap_getPreferences: [GetPreferencesParams, GetPreferencesResult];\n snap_getState: [GetStateParams, GetStateResult];\n snap_listEntropySources: [ListEntropySourcesParams, ListEntropySourcesResult];\n snap_manageAccounts: [ManageAccountsParams, ManageAccountsResult];\n snap_manageState: [ManageStateParams, ManageStateResult];\n snap_notify: [NotifyParams, NotifyResult];\n snap_scheduleBackgroundEvent: [\n ScheduleBackgroundEventParams,\n ScheduleBackgroundEventResult,\n ];\n snap_cancelBackgroundEvent: [\n CancelBackgroundEventParams,\n CancelBackgroundEventResult,\n ];\n snap_getBackgroundEvents: [\n GetBackgroundEventsParams,\n GetBackgroundEventsResult,\n ];\n snap_createInterface: [CreateInterfaceParams, CreateInterfaceResult];\n snap_updateInterface: [UpdateInterfaceParams, UpdateInterfaceResult];\n snap_getInterfaceState: [GetInterfaceStateParams, GetInterfaceStateResult];\n snap_getInterfaceContext: [\n GetInterfaceContextParams,\n GetInterfaceContextResult,\n ];\n snap_resolveInterface: [ResolveInterfaceParams, ResolveInterfaceResult];\n snap_setState: [SetStateParams, SetStateResult];\n snap_startTrace: [StartTraceParams, StartTraceResult];\n snap_trackEvent: [TrackEventParams, TrackEventResult];\n snap_trackError: [TrackErrorParams, TrackErrorResult];\n snap_openWebSocket: [OpenWebSocketParams, OpenWebSocketResult];\n snap_closeWebSocket: [CloseWebSocketParams, CloseWebSocketResult];\n snap_getWebSockets: [GetWebSocketsParams, GetWebSocketsResult];\n snap_sendWebSocketMessage: [\n SendWebSocketMessageParams,\n SendWebSocketMessageResult,\n ];\n wallet_createSession: [CreateSessionParams, CreateSessionResult];\n wallet_getSession: [GetSessionParams, GetSessionResult];\n wallet_getSnaps: [GetSnapsParams, GetSnapsResult];\n wallet_invokeKeyring: [InvokeKeyringParams, InvokeKeyringResult];\n wallet_invokeMethod: [InvokeMethodParams, InvokeMethodResult];\n wallet_invokeSnap: [InvokeSnapParams, InvokeSnapResult];\n wallet_snap: [InvokeSnapParams, InvokeSnapResult];\n wallet_requestSnaps: [RequestSnapsParams, RequestSnapsResult];\n wallet_revokeSession: [RevokeSessionParams, RevokeSessionResult];\n /* eslint-enable @typescript-eslint/naming-convention */\n};\n\n/**\n * The request function that is available to the Snap. It takes a request\n * object and returns a promise that resolves to the result of the request.\n *\n * @param request - The request object.\n * @param request.method - The method to call.\n * @param request.params - The parameters to pass to the method. This is\n * inferred from the method, based on the {@link SnapMethods} type, and may be\n * optional.\n * @returns A promise that resolves to the result of the request. This is\n * inferred from the request method, based on the {@link SnapMethods} type.\n * @example\n * // Get the user's locale\n * const result = await request({\n * method: 'snap_getLocale',\n * });\n * @example\n * // Get a file\n * const result = await request({\n * method: 'snap_getFile',\n * params: {\n * path: 'foo/bar.txt',\n * },\n * });\n */\nexport type RequestFunction = <MethodName extends keyof SnapMethods>(\n request: Method<MethodName, SnapMethods[MethodName][0]>,\n) => Promise<SnapMethods[MethodName][1]>;\n"]}
|
|
@@ -9,7 +9,6 @@ import type { GetBip32EntropyParams, GetBip32EntropyResult } from "./get-bip32-e
|
|
|
9
9
|
import type { GetBip32PublicKeyParams, GetBip32PublicKeyResult } from "./get-bip32-public-key.cjs";
|
|
10
10
|
import type { GetBip44EntropyParams, GetBip44EntropyResult } from "./get-bip44-entropy.cjs";
|
|
11
11
|
import type { GetClientStatusParams, GetClientStatusResult } from "./get-client-status.cjs";
|
|
12
|
-
import type { GetCurrencyRateParams, GetCurrencyRateResult } from "./get-currency-rate.cjs";
|
|
13
12
|
import type { GetEntropyParams, GetEntropyResult } from "./get-entropy.cjs";
|
|
14
13
|
import type { GetFileParams, GetFileResult } from "./get-file.cjs";
|
|
15
14
|
import type { GetInterfaceContextParams, GetInterfaceContextResult } from "./get-interface-context.cjs";
|
|
@@ -24,6 +23,7 @@ import type { InvokeSnapParams, InvokeSnapResult } from "./invoke-snap.cjs";
|
|
|
24
23
|
import type { ListEntropySourcesParams, ListEntropySourcesResult } from "./list-entropy-sources.cjs";
|
|
25
24
|
import type { ManageAccountsParams, ManageAccountsResult } from "./manage-accounts.cjs";
|
|
26
25
|
import type { ManageStateParams, ManageStateResult } from "./manage-state.cjs";
|
|
26
|
+
import type { CreateSessionParams, CreateSessionResult, GetSessionParams, GetSessionResult, InvokeMethodParams, InvokeMethodResult, RevokeSessionParams, RevokeSessionResult } from "./multichain/index.cjs";
|
|
27
27
|
import type { NotifyParams, NotifyResult } from "./notify.cjs";
|
|
28
28
|
import type { OpenWebSocketParams, OpenWebSocketResult } from "./open-web-socket.cjs";
|
|
29
29
|
import type { RequestSnapsParams, RequestSnapsResult } from "./request-snaps.cjs";
|
|
@@ -48,7 +48,6 @@ export type SnapMethods = {
|
|
|
48
48
|
snap_getBip32PublicKey: [GetBip32PublicKeyParams, GetBip32PublicKeyResult];
|
|
49
49
|
snap_getBip44Entropy: [GetBip44EntropyParams, GetBip44EntropyResult];
|
|
50
50
|
snap_getClientStatus: [GetClientStatusParams, GetClientStatusResult];
|
|
51
|
-
snap_getCurrencyRate: [GetCurrencyRateParams, GetCurrencyRateResult];
|
|
52
51
|
snap_getEntropy: [GetEntropyParams, GetEntropyResult];
|
|
53
52
|
snap_getFile: [GetFileParams, GetFileResult];
|
|
54
53
|
snap_getLocale: [GetLocaleParams, GetLocaleResult];
|
|
@@ -89,11 +88,15 @@ export type SnapMethods = {
|
|
|
89
88
|
SendWebSocketMessageParams,
|
|
90
89
|
SendWebSocketMessageResult
|
|
91
90
|
];
|
|
91
|
+
wallet_createSession: [CreateSessionParams, CreateSessionResult];
|
|
92
|
+
wallet_getSession: [GetSessionParams, GetSessionResult];
|
|
92
93
|
wallet_getSnaps: [GetSnapsParams, GetSnapsResult];
|
|
93
94
|
wallet_invokeKeyring: [InvokeKeyringParams, InvokeKeyringResult];
|
|
95
|
+
wallet_invokeMethod: [InvokeMethodParams, InvokeMethodResult];
|
|
94
96
|
wallet_invokeSnap: [InvokeSnapParams, InvokeSnapResult];
|
|
95
97
|
wallet_snap: [InvokeSnapParams, InvokeSnapResult];
|
|
96
98
|
wallet_requestSnaps: [RequestSnapsParams, RequestSnapsResult];
|
|
99
|
+
wallet_revokeSession: [RevokeSessionParams, RevokeSessionResult];
|
|
97
100
|
};
|
|
98
101
|
/**
|
|
99
102
|
* The request function that is available to the Snap. It takes a request
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"methods.d.cts","sourceRoot":"","sources":["../../../src/types/methods/methods.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC3B,2BAA2B,EAC5B,sCAAkC;AACnC,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,0BAAsB;AACxE,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EACrB,+BAA2B;AAC5B,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACtB,+BAA2B;AAC5B,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,qBAAiB;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,wBAAoB;AAClE,OAAO,KAAK,EACV,yBAAyB,EACzB,yBAAyB,EAC1B,oCAAgC;AACjC,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACtB,gCAA4B;AAC7B,OAAO,KAAK,EACV,uBAAuB,EACvB,uBAAuB,EACxB,mCAA+B;AAChC,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACtB,gCAA4B;AAC7B,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACtB,gCAA4B;AAC7B,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"methods.d.cts","sourceRoot":"","sources":["../../../src/types/methods/methods.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC3B,2BAA2B,EAC5B,sCAAkC;AACnC,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,0BAAsB;AACxE,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EACrB,+BAA2B;AAC5B,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACtB,+BAA2B;AAC5B,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,qBAAiB;AAC3D,OAAO,KA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ublicKeyParams, GetBip32PublicKeyResult } from "./get-bip32-public-key.mjs";
|
|
10
10
|
import type { GetBip44EntropyParams, GetBip44EntropyResult } from "./get-bip44-entropy.mjs";
|
|
11
11
|
import type { GetClientStatusParams, GetClientStatusResult } from "./get-client-status.mjs";
|
|
12
|
-
import type { GetCurrencyRateParams, GetCurrencyRateResult } from "./get-currency-rate.mjs";
|
|
13
12
|
import type { GetEntropyParams, GetEntropyResult } from "./get-entropy.mjs";
|
|
14
13
|
import type { GetFileParams, GetFileResult } from "./get-file.mjs";
|
|
15
14
|
import type { GetInterfaceContextParams, GetInterfaceContextResult } from "./get-interface-context.mjs";
|
|
@@ -24,6 +23,7 @@ import type { InvokeSnapParams, InvokeSnapResult } from "./invoke-snap.mjs";
|
|
|
24
23
|
import type { ListEntropySourcesParams, ListEntropySourcesResult } from "./list-entropy-sources.mjs";
|
|
25
24
|
import type { ManageAccountsParams, ManageAccountsResult } from "./manage-accounts.mjs";
|
|
26
25
|
import type { ManageStateParams, ManageStateResult } from "./manage-state.mjs";
|
|
26
|
+
import type { CreateSessionParams, CreateSessionResult, GetSessionParams, GetSessionResult, InvokeMethodParams, InvokeMethodResult, RevokeSessionParams, RevokeSessionResult } from "./multichain/index.mjs";
|
|
27
27
|
import type { NotifyParams, NotifyResult } from "./notify.mjs";
|
|
28
28
|
import type { OpenWebSocketParams, OpenWebSocketResult } from "./open-web-socket.mjs";
|
|
29
29
|
import type { RequestSnapsParams, RequestSnapsResult } from "./request-snaps.mjs";
|
|
@@ -48,7 +48,6 @@ export type SnapMethods = {
|
|
|
48
48
|
snap_getBip32PublicKey: [GetBip32PublicKeyParams, GetBip32PublicKeyResult];
|
|
49
49
|
snap_getBip44Entropy: [GetBip44EntropyParams, GetBip44EntropyResult];
|
|
50
50
|
snap_getClientStatus: [GetClientStatusParams, GetClientStatusResult];
|
|
51
|
-
snap_getCurrencyRate: [GetCurrencyRateParams, GetCurrencyRateResult];
|
|
52
51
|
snap_getEntropy: [GetEntropyParams, GetEntropyResult];
|
|
53
52
|
snap_getFile: [GetFileParams, GetFileResult];
|
|
54
53
|
snap_getLocale: [GetLocaleParams, GetLocaleResult];
|
|
@@ -89,11 +88,15 @@ export type SnapMethods = {
|
|
|
89
88
|
SendWebSocketMessageParams,
|
|
90
89
|
SendWebSocketMessageResult
|
|
91
90
|
];
|
|
91
|
+
wallet_createSession: [CreateSessionParams, CreateSessionResult];
|
|
92
|
+
wallet_getSession: [GetSessionParams, GetSessionResult];
|
|
92
93
|
wallet_getSnaps: [GetSnapsParams, GetSnapsResult];
|
|
93
94
|
wallet_invokeKeyring: [InvokeKeyringParams, InvokeKeyringResult];
|
|
95
|
+
wallet_invokeMethod: [InvokeMethodParams, InvokeMethodResult];
|
|
94
96
|
wallet_invokeSnap: [InvokeSnapParams, InvokeSnapResult];
|
|
95
97
|
wallet_snap: [InvokeSnapParams, InvokeSnapResult];
|
|
96
98
|
wallet_requestSnaps: [RequestSnapsParams, RequestSnapsResult];
|
|
99
|
+
wallet_revokeSession: [RevokeSessionParams, RevokeSessionResult];
|
|
97
100
|
};
|
|
98
101
|
/**
|
|
99
102
|
* The request function that is available to the Snap. It takes a request
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"methods.d.mts","sourceRoot":"","sources":["../../../src/types/methods/methods.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC3B,2BAA2B,EAC5B,sCAAkC;AACnC,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,0BAAsB;AACxE,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EACrB,+BAA2B;AAC5B,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACtB,+BAA2B;AAC5B,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,qBAAiB;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,wBAAoB;AAClE,OAAO,KAAK,EACV,yBAAyB,EACzB,yBAAyB,EAC1B,oCAAgC;AACjC,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACtB,gCAA4B;AAC7B,OAAO,KAAK,EACV,uBAAuB,EACvB,uBAAuB,EACxB,mCAA+B;AAChC,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACtB,gCAA4B;AAC7B,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACtB,gCAA4B;AAC7B,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"methods.d.mts","sourceRoot":"","sources":["../../../src/types/methods/methods.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC3B,2BAA2B,EAC5B,sCAAkC;AACnC,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,0BAAsB;AACxE,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EACrB,+BAA2B;AAC5B,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACtB,+BAA2B;AAC5B,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,qBAAiB;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,wBAAoB;AAClE,OAAO,KAAK,EACV,yBAAyB,EACzB,yBAAyB,EAC1B,oCAAgC;AACjC,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACtB,gCAA4B;AAC7B,OAAO,KAAK,EACV,uBAAuB,EACvB,uBAAuB,EACxB,mCAA+B;AAChC,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACtB,gCAA4B;AAC7B,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACtB,gCAA4B;AAC7B,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,0BAAsB;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,uBAAmB;AAC/D,OAAO,KAAK,EACV,yBAAyB,EACzB,yBAAyB,EAC1B,oCAAgC;AACjC,OAAO,KAAK,EACV,uB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IACjE,mBAAmB,EAAE,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAAC;IAC9D,iBAAiB,EAAE,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,CAAC;IACxD,WAAW,EAAE,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,CAAC;IAClD,mBAAmB,EAAE,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAAC;IAC9D,oBAAoB,EAAE,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAC;CAElE,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,UAAU,SAAS,MAAM,WAAW,EACjE,OAAO,EAAE,MAAM,CAAC,UAAU,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,KACpD,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"methods.mjs","sourceRoot":"","sources":["../../../src/types/methods/methods.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n CancelBackgroundEventParams,\n CancelBackgroundEventResult,\n} from './cancel-background-event';\nimport type { ClearStateParams, ClearStateResult } from './clear-state';\nimport type {\n CloseWebSocketParams,\n CloseWebSocketResult,\n} from './close-web-socket';\nimport type {\n CreateInterfaceParams,\n CreateInterfaceResult,\n} from './create-interface';\nimport type { DialogParams, DialogResult } from './dialog';\nimport type { EndTraceParams, EndTraceResult } from './end-trace';\nimport type {\n GetBackgroundEventsParams,\n GetBackgroundEventsResult,\n} from './get-background-events';\nimport type {\n GetBip32EntropyParams,\n GetBip32EntropyResult,\n} from './get-bip32-entropy';\nimport type {\n GetBip32PublicKeyParams,\n GetBip32PublicKeyResult,\n} from './get-bip32-public-key';\nimport type {\n GetBip44EntropyParams,\n GetBip44EntropyResult,\n} from './get-bip44-entropy';\nimport type {\n GetClientStatusParams,\n GetClientStatusResult,\n} from './get-client-status';\nimport type {
|
|
1
|
+
{"version":3,"file":"methods.mjs","sourceRoot":"","sources":["../../../src/types/methods/methods.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n CancelBackgroundEventParams,\n CancelBackgroundEventResult,\n} from './cancel-background-event';\nimport type { ClearStateParams, ClearStateResult } from './clear-state';\nimport type {\n CloseWebSocketParams,\n CloseWebSocketResult,\n} from './close-web-socket';\nimport type {\n CreateInterfaceParams,\n CreateInterfaceResult,\n} from './create-interface';\nimport type { DialogParams, DialogResult } from './dialog';\nimport type { EndTraceParams, EndTraceResult } from './end-trace';\nimport type {\n GetBackgroundEventsParams,\n GetBackgroundEventsResult,\n} from './get-background-events';\nimport type {\n GetBip32EntropyParams,\n GetBip32EntropyResult,\n} from './get-bip32-entropy';\nimport type {\n GetBip32PublicKeyParams,\n GetBip32PublicKeyResult,\n} from './get-bip32-public-key';\nimport type {\n GetBip44EntropyParams,\n GetBip44EntropyResult,\n} from './get-bip44-entropy';\nimport type {\n GetClientStatusParams,\n GetClientStatusResult,\n} from './get-client-status';\nimport type { GetEntropyParams, GetEntropyResult } from './get-entropy';\nimport type { GetFileParams, GetFileResult } from './get-file';\nimport type {\n GetInterfaceContextParams,\n GetInterfaceContextResult,\n} from './get-interface-context';\nimport type {\n GetInterfaceStateParams,\n GetInterfaceStateResult,\n} from './get-interface-state';\nimport type { GetLocaleParams, GetLocaleResult } from './get-locale';\nimport type {\n GetPreferencesParams,\n GetPreferencesResult,\n} from './get-preferences';\nimport type { GetSnapsParams, GetSnapsResult } from './get-snaps';\nimport type { GetStateParams, GetStateResult } from './get-state';\nimport type {\n GetWebSocketsParams,\n GetWebSocketsResult,\n} from './get-web-sockets';\nimport type {\n InvokeKeyringParams,\n InvokeKeyringResult,\n} from './invoke-keyring';\nimport type { InvokeSnapParams, InvokeSnapResult } from './invoke-snap';\nimport type {\n ListEntropySourcesParams,\n ListEntropySourcesResult,\n} from './list-entropy-sources';\nimport type {\n ManageAccountsParams,\n ManageAccountsResult,\n} from './manage-accounts';\nimport type { ManageStateParams, ManageStateResult } from './manage-state';\nimport type {\n CreateSessionParams,\n CreateSessionResult,\n GetSessionParams,\n GetSessionResult,\n InvokeMethodParams,\n InvokeMethodResult,\n RevokeSessionParams,\n RevokeSessionResult,\n} from './multichain';\nimport type { NotifyParams, NotifyResult } from './notify';\nimport type {\n OpenWebSocketParams,\n OpenWebSocketResult,\n} from './open-web-socket';\nimport type { RequestSnapsParams, RequestSnapsResult } from './request-snaps';\nimport type {\n ResolveInterfaceParams,\n ResolveInterfaceResult,\n} from './resolve-interface';\nimport type {\n ScheduleBackgroundEventParams,\n ScheduleBackgroundEventResult,\n} from './schedule-background-event';\nimport type {\n SendWebSocketMessageParams,\n SendWebSocketMessageResult,\n} from './send-web-socket-message';\nimport type { SetStateParams, SetStateResult } from './set-state';\nimport type { StartTraceParams, StartTraceResult } from './start-trace';\nimport type { TrackErrorParams, TrackErrorResult } from './track-error';\nimport type { TrackEventParams, TrackEventResult } from './track-event';\nimport type {\n UpdateInterfaceParams,\n UpdateInterfaceResult,\n} from './update-interface';\nimport type { Method } from '../../internals';\n\n/**\n * The methods that are available to the Snap. Each method is a tuple of the\n * request parameters and the result returned by the method.\n */\nexport type SnapMethods = {\n /* eslint-disable @typescript-eslint/naming-convention */\n snap_clearState: [ClearStateParams, ClearStateResult];\n snap_dialog: [DialogParams, DialogResult];\n snap_endTrace: [EndTraceParams, EndTraceResult];\n snap_getBip32Entropy: [GetBip32EntropyParams, GetBip32EntropyResult];\n snap_getBip32PublicKey: [GetBip32PublicKeyParams, GetBip32PublicKeyResult];\n snap_getBip44Entropy: [GetBip44EntropyParams, GetBip44EntropyResult];\n snap_getClientStatus: [GetClientStatusParams, GetClientStatusResult];\n snap_getEntropy: [GetEntropyParams, GetEntropyResult];\n snap_getFile: [GetFileParams, GetFileResult];\n snap_getLocale: [GetLocaleParams, GetLocaleResult];\n snap_getPreferences: [GetPreferencesParams, GetPreferencesResult];\n snap_getState: [GetStateParams, GetStateResult];\n snap_listEntropySources: [ListEntropySourcesParams, ListEntropySourcesResult];\n snap_manageAccounts: [ManageAccountsParams, ManageAccountsResult];\n snap_manageState: [ManageStateParams, ManageStateResult];\n snap_notify: [NotifyParams, NotifyResult];\n snap_scheduleBackgroundEvent: [\n ScheduleBackgroundEventParams,\n ScheduleBackgroundEventResult,\n ];\n snap_cancelBackgroundEvent: [\n CancelBackgroundEventParams,\n CancelBackgroundEventResult,\n ];\n snap_getBackgroundEvents: [\n GetBackgroundEventsParams,\n GetBackgroundEventsResult,\n ];\n snap_createInterface: [CreateInterfaceParams, CreateInterfaceResult];\n snap_updateInterface: [UpdateInterfaceParams, UpdateInterfaceResult];\n snap_getInterfaceState: [GetInterfaceStateParams, GetInterfaceStateResult];\n snap_getInterfaceContext: [\n GetInterfaceContextParams,\n GetInterfaceContextResult,\n ];\n snap_resolveInterface: [ResolveInterfaceParams, ResolveInterfaceResult];\n snap_setState: [SetStateParams, SetStateResult];\n snap_startTrace: [StartTraceParams, StartTraceResult];\n snap_trackEvent: [TrackEventParams, TrackEventResult];\n snap_trackError: [TrackErrorParams, TrackErrorResult];\n snap_openWebSocket: [OpenWebSocketParams, OpenWebSocketResult];\n snap_closeWebSocket: [CloseWebSocketParams, CloseWebSocketResult];\n snap_getWebSockets: [GetWebSocketsParams, GetWebSocketsResult];\n snap_sendWebSocketMessage: [\n SendWebSocketMessageParams,\n SendWebSocketMessageResult,\n ];\n wallet_createSession: [CreateSessionParams, CreateSessionResult];\n wallet_getSession: [GetSessionParams, GetSessionResult];\n wallet_getSnaps: [GetSnapsParams, GetSnapsResult];\n wallet_invokeKeyring: [InvokeKeyringParams, InvokeKeyringResult];\n wallet_invokeMethod: [InvokeMethodParams, InvokeMethodResult];\n wallet_invokeSnap: [InvokeSnapParams, InvokeSnapResult];\n wallet_snap: [InvokeSnapParams, InvokeSnapResult];\n wallet_requestSnaps: [RequestSnapsParams, RequestSnapsResult];\n wallet_revokeSession: [RevokeSessionParams, RevokeSessionResult];\n /* eslint-enable @typescript-eslint/naming-convention */\n};\n\n/**\n * The request function that is available to the Snap. It takes a request\n * object and returns a promise that resolves to the result of the request.\n *\n * @param request - The request object.\n * @param request.method - The method to call.\n * @param request.params - The parameters to pass to the method. This is\n * inferred from the method, based on the {@link SnapMethods} type, and may be\n * optional.\n * @returns A promise that resolves to the result of the request. This is\n * inferred from the request method, based on the {@link SnapMethods} type.\n * @example\n * // Get the user's locale\n * const result = await request({\n * method: 'snap_getLocale',\n * });\n * @example\n * // Get a file\n * const result = await request({\n * method: 'snap_getFile',\n * params: {\n * path: 'foo/bar.txt',\n * },\n * });\n */\nexport type RequestFunction = <MethodName extends keyof SnapMethods>(\n request: Method<MethodName, SnapMethods[MethodName][0]>,\n) => Promise<SnapMethods[MethodName][1]>;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-session.cjs","sourceRoot":"","sources":["../../../../src/types/methods/multichain/create-session.ts"],"names":[],"mappings":"","sourcesContent":["import type { CaipAccountId, CaipChainId, Json } from '@metamask/utils';\n\n/**\n * The scopes object for a given session.\n *\n * Each key contains the methods, notifications and accounts made available for a given scope.\n */\nexport type SessionScopes = Record<\n CaipChainId,\n {\n methods: string[];\n notifications: string[];\n accounts: CaipAccountId[];\n }\n>;\n\n/**\n * The request parameters for the `wallet_createSession` method.\n *\n * @property requiredScopes - The required scopes of the session.\n * @property optionalScopes - The optional scopes of the session.\n * @property sessionProperties - The additional properties of the session.\n */\nexport type CreateSessionParams = {\n requiredScopes?: SessionScopes;\n optionalScopes?: SessionScopes;\n sessionProperties?: Json;\n};\n\n/**\n * The result returned for the `wallet_createSession` method.\n *\n * @property sessionScopes - The scopes granted for the session.\n * @property sessionProperties - The additional properties of the session.\n */\nexport type CreateSessionResult = {\n sessionScopes: SessionScopes;\n sessionProperties: Json;\n};\n"]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { CaipAccountId, CaipChainId, Json } from "@metamask/utils";
|
|
2
|
+
/**
|
|
3
|
+
* The scopes object for a given session.
|
|
4
|
+
*
|
|
5
|
+
* Each key contains the methods, notifications and accounts made available for a given scope.
|
|
6
|
+
*/
|
|
7
|
+
export type SessionScopes = Record<CaipChainId, {
|
|
8
|
+
methods: string[];
|
|
9
|
+
notifications: string[];
|
|
10
|
+
accounts: CaipAccountId[];
|
|
11
|
+
}>;
|
|
12
|
+
/**
|
|
13
|
+
* The request parameters for the `wallet_createSession` method.
|
|
14
|
+
*
|
|
15
|
+
* @property requiredScopes - The required scopes of the session.
|
|
16
|
+
* @property optionalScopes - The optional scopes of the session.
|
|
17
|
+
* @property sessionProperties - The additional properties of the session.
|
|
18
|
+
*/
|
|
19
|
+
export type CreateSessionParams = {
|
|
20
|
+
requiredScopes?: SessionScopes;
|
|
21
|
+
optionalScopes?: SessionScopes;
|
|
22
|
+
sessionProperties?: Json;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* The result returned for the `wallet_createSession` method.
|
|
26
|
+
*
|
|
27
|
+
* @property sessionScopes - The scopes granted for the session.
|
|
28
|
+
* @property sessionProperties - The additional properties of the session.
|
|
29
|
+
*/
|
|
30
|
+
export type CreateSessionResult = {
|
|
31
|
+
sessionScopes: SessionScopes;
|
|
32
|
+
sessionProperties: Json;
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=create-session.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-session.d.cts","sourceRoot":"","sources":["../../../../src/types/methods/multichain/create-session.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,IAAI,EAAE,wBAAwB;AAExE;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAChC,WAAW,EACX;IACE,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,QAAQ,EAAE,aAAa,EAAE,CAAC;CAC3B,CACF,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,cAAc,CAAC,EAAE,aAAa,CAAC;IAC/B,cAAc,CAAC,EAAE,aAAa,CAAC;IAC/B,iBAAiB,CAAC,EAAE,IAAI,CAAC;CAC1B,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,aAAa,EAAE,aAAa,CAAC;IAC7B,iBAAiB,EAAE,IAAI,CAAC;CACzB,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { CaipAccountId, CaipChainId, Json } from "@metamask/utils";
|
|
2
|
+
/**
|
|
3
|
+
* The scopes object for a given session.
|
|
4
|
+
*
|
|
5
|
+
* Each key contains the methods, notifications and accounts made available for a given scope.
|
|
6
|
+
*/
|
|
7
|
+
export type SessionScopes = Record<CaipChainId, {
|
|
8
|
+
methods: string[];
|
|
9
|
+
notifications: string[];
|
|
10
|
+
accounts: CaipAccountId[];
|
|
11
|
+
}>;
|
|
12
|
+
/**
|
|
13
|
+
* The request parameters for the `wallet_createSession` method.
|
|
14
|
+
*
|
|
15
|
+
* @property requiredScopes - The required scopes of the session.
|
|
16
|
+
* @property optionalScopes - The optional scopes of the session.
|
|
17
|
+
* @property sessionProperties - The additional properties of the session.
|
|
18
|
+
*/
|
|
19
|
+
export type CreateSessionParams = {
|
|
20
|
+
requiredScopes?: SessionScopes;
|
|
21
|
+
optionalScopes?: SessionScopes;
|
|
22
|
+
sessionProperties?: Json;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* The result returned for the `wallet_createSession` method.
|
|
26
|
+
*
|
|
27
|
+
* @property sessionScopes - The scopes granted for the session.
|
|
28
|
+
* @property sessionProperties - The additional properties of the session.
|
|
29
|
+
*/
|
|
30
|
+
export type CreateSessionResult = {
|
|
31
|
+
sessionScopes: SessionScopes;
|
|
32
|
+
sessionProperties: Json;
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=create-session.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-session.d.mts","sourceRoot":"","sources":["../../../../src/types/methods/multichain/create-session.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,IAAI,EAAE,wBAAwB;AAExE;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAChC,WAAW,EACX;IACE,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,QAAQ,EAAE,aAAa,EAAE,CAAC;CAC3B,CACF,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,cAAc,CAAC,EAAE,aAAa,CAAC;IAC/B,cAAc,CAAC,EAAE,aAAa,CAAC;IAC/B,iBAAiB,CAAC,EAAE,IAAI,CAAC;CAC1B,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,aAAa,EAAE,aAAa,CAAC;IAC7B,iBAAiB,EAAE,IAAI,CAAC;CACzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-session.mjs","sourceRoot":"","sources":["../../../../src/types/methods/multichain/create-session.ts"],"names":[],"mappings":"","sourcesContent":["import type { CaipAccountId, CaipChainId, Json } from '@metamask/utils';\n\n/**\n * The scopes object for a given session.\n *\n * Each key contains the methods, notifications and accounts made available for a given scope.\n */\nexport type SessionScopes = Record<\n CaipChainId,\n {\n methods: string[];\n notifications: string[];\n accounts: CaipAccountId[];\n }\n>;\n\n/**\n * The request parameters for the `wallet_createSession` method.\n *\n * @property requiredScopes - The required scopes of the session.\n * @property optionalScopes - The optional scopes of the session.\n * @property sessionProperties - The additional properties of the session.\n */\nexport type CreateSessionParams = {\n requiredScopes?: SessionScopes;\n optionalScopes?: SessionScopes;\n sessionProperties?: Json;\n};\n\n/**\n * The result returned for the `wallet_createSession` method.\n *\n * @property sessionScopes - The scopes granted for the session.\n * @property sessionProperties - The additional properties of the session.\n */\nexport type CreateSessionResult = {\n sessionScopes: SessionScopes;\n sessionProperties: Json;\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-session.cjs","sourceRoot":"","sources":["../../../../src/types/methods/multichain/get-session.ts"],"names":[],"mappings":"","sourcesContent":["import type { CreateSessionResult } from './create-session';\n\n/**\n * The request parameters for the `wallet_getSession` method.\n *\n * This method does not accept any parameters.\n */\nexport type GetSessionParams = never;\n\n/**\n * The result returned for the `wallet_getSession` method.\n *\n * @property sessionScopes - The scopes granted for the session.\n */\nexport type GetSessionResult = Pick<CreateSessionResult, 'sessionScopes'>;\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { CreateSessionResult } from "./create-session.cjs";
|
|
2
|
+
/**
|
|
3
|
+
* The request parameters for the `wallet_getSession` method.
|
|
4
|
+
*
|
|
5
|
+
* This method does not accept any parameters.
|
|
6
|
+
*/
|
|
7
|
+
export type GetSessionParams = never;
|
|
8
|
+
/**
|
|
9
|
+
* The result returned for the `wallet_getSession` method.
|
|
10
|
+
*
|
|
11
|
+
* @property sessionScopes - The scopes granted for the session.
|
|
12
|
+
*/
|
|
13
|
+
export type GetSessionResult = Pick<CreateSessionResult, 'sessionScopes'>;
|
|
14
|
+
//# sourceMappingURL=get-session.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-session.d.cts","sourceRoot":"","sources":["../../../../src/types/methods/multichain/get-session.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,6BAAyB;AAE5D;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC;AAErC;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,mBAAmB,EAAE,eAAe,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { CreateSessionResult } from "./create-session.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* The request parameters for the `wallet_getSession` method.
|
|
4
|
+
*
|
|
5
|
+
* This method does not accept any parameters.
|
|
6
|
+
*/
|
|
7
|
+
export type GetSessionParams = never;
|
|
8
|
+
/**
|
|
9
|
+
* The result returned for the `wallet_getSession` method.
|
|
10
|
+
*
|
|
11
|
+
* @property sessionScopes - The scopes granted for the session.
|
|
12
|
+
*/
|
|
13
|
+
export type GetSessionResult = Pick<CreateSessionResult, 'sessionScopes'>;
|
|
14
|
+
//# sourceMappingURL=get-session.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-session.d.mts","sourceRoot":"","sources":["../../../../src/types/methods/multichain/get-session.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,6BAAyB;AAE5D;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC;AAErC;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,mBAAmB,EAAE,eAAe,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-session.mjs","sourceRoot":"","sources":["../../../../src/types/methods/multichain/get-session.ts"],"names":[],"mappings":"","sourcesContent":["import type { CreateSessionResult } from './create-session';\n\n/**\n * The request parameters for the `wallet_getSession` method.\n *\n * This method does not accept any parameters.\n */\nexport type GetSessionParams = never;\n\n/**\n * The result returned for the `wallet_getSession` method.\n *\n * @property sessionScopes - The scopes granted for the session.\n */\nexport type GetSessionResult = Pick<CreateSessionResult, 'sessionScopes'>;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../../src/types/methods/multichain/index.ts"],"names":[],"mappings":"","sourcesContent":["export type * from './create-session';\nexport type * from './get-session';\nexport type * from './invoke-method';\nexport type * from './revoke-session';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../../src/types/methods/multichain/index.ts"],"names":[],"mappings":"AAAA,0CAAsC;AACtC,uCAAmC;AACnC,yCAAqC;AACrC,0CAAsC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../../src/types/methods/multichain/index.ts"],"names":[],"mappings":"AAAA,0CAAsC;AACtC,uCAAmC;AACnC,yCAAqC;AACrC,0CAAsC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../../src/types/methods/multichain/index.ts"],"names":[],"mappings":"","sourcesContent":["export type * from './create-session';\nexport type * from './get-session';\nexport type * from './invoke-method';\nexport type * from './revoke-session';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoke-method.cjs","sourceRoot":"","sources":["../../../../src/types/methods/multichain/invoke-method.ts"],"names":[],"mappings":"","sourcesContent":["import type { CaipChainId, Json, JsonRpcRequest } from '@metamask/utils';\n\n/**\n * The request parameters for the `wallet_invokeMethod` method.\n *\n * @property scope - The scope on which to invoke the method.\n * @property request - The request to send.\n */\nexport type InvokeMethodParams = {\n scope: CaipChainId;\n request: Pick<JsonRpcRequest, 'method' | 'params'>;\n};\n\n/**\n * The result returned for the `wallet_invokeMethod` method.\n *\n * This method returns the response of the wrapped request.\n */\nexport type InvokeMethodResult = Json;\n"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { CaipChainId, Json, JsonRpcRequest } from "@metamask/utils";
|
|
2
|
+
/**
|
|
3
|
+
* The request parameters for the `wallet_invokeMethod` method.
|
|
4
|
+
*
|
|
5
|
+
* @property scope - The scope on which to invoke the method.
|
|
6
|
+
* @property request - The request to send.
|
|
7
|
+
*/
|
|
8
|
+
export type InvokeMethodParams = {
|
|
9
|
+
scope: CaipChainId;
|
|
10
|
+
request: Pick<JsonRpcRequest, 'method' | 'params'>;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* The result returned for the `wallet_invokeMethod` method.
|
|
14
|
+
*
|
|
15
|
+
* This method returns the response of the wrapped request.
|
|
16
|
+
*/
|
|
17
|
+
export type InvokeMethodResult = Json;
|
|
18
|
+
//# sourceMappingURL=invoke-method.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoke-method.d.cts","sourceRoot":"","sources":["../../../../src/types/methods/multichain/invoke-method.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,cAAc,EAAE,wBAAwB;AAEzE;;;;;GAKG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,WAAW,CAAC;IACnB,OAAO,EAAE,IAAI,CAAC,cAAc,EAAE,QAAQ,GAAG,QAAQ,CAAC,CAAC;CACpD,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { CaipChainId, Json, JsonRpcRequest } from "@metamask/utils";
|
|
2
|
+
/**
|
|
3
|
+
* The request parameters for the `wallet_invokeMethod` method.
|
|
4
|
+
*
|
|
5
|
+
* @property scope - The scope on which to invoke the method.
|
|
6
|
+
* @property request - The request to send.
|
|
7
|
+
*/
|
|
8
|
+
export type InvokeMethodParams = {
|
|
9
|
+
scope: CaipChainId;
|
|
10
|
+
request: Pick<JsonRpcRequest, 'method' | 'params'>;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* The result returned for the `wallet_invokeMethod` method.
|
|
14
|
+
*
|
|
15
|
+
* This method returns the response of the wrapped request.
|
|
16
|
+
*/
|
|
17
|
+
export type InvokeMethodResult = Json;
|
|
18
|
+
//# sourceMappingURL=invoke-method.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoke-method.d.mts","sourceRoot":"","sources":["../../../../src/types/methods/multichain/invoke-method.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,cAAc,EAAE,wBAAwB;AAEzE;;;;;GAKG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,WAAW,CAAC;IACnB,OAAO,EAAE,IAAI,CAAC,cAAc,EAAE,QAAQ,GAAG,QAAQ,CAAC,CAAC;CACpD,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoke-method.mjs","sourceRoot":"","sources":["../../../../src/types/methods/multichain/invoke-method.ts"],"names":[],"mappings":"","sourcesContent":["import type { CaipChainId, Json, JsonRpcRequest } from '@metamask/utils';\n\n/**\n * The request parameters for the `wallet_invokeMethod` method.\n *\n * @property scope - The scope on which to invoke the method.\n * @property request - The request to send.\n */\nexport type InvokeMethodParams = {\n scope: CaipChainId;\n request: Pick<JsonRpcRequest, 'method' | 'params'>;\n};\n\n/**\n * The result returned for the `wallet_invokeMethod` method.\n *\n * This method returns the response of the wrapped request.\n */\nexport type InvokeMethodResult = Json;\n"]}
|