@metamask/snaps-sdk 8.0.0 → 9.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 +25 -2
- package/dist/error-wrappers.d.cts +192 -192
- package/dist/error-wrappers.d.mts +192 -192
- package/dist/errors.cjs +53 -1
- package/dist/errors.cjs.map +1 -1
- package/dist/errors.d.cts +24 -0
- package/dist/errors.d.cts.map +1 -1
- package/dist/errors.d.mts +24 -0
- package/dist/errors.d.mts.map +1 -1
- package/dist/errors.mjs +52 -1
- package/dist/errors.mjs.map +1 -1
- package/dist/internals/error-wrappers.d.cts +12 -12
- package/dist/internals/error-wrappers.d.mts +12 -12
- package/dist/internals/errors.cjs +67 -25
- package/dist/internals/errors.cjs.map +1 -1
- package/dist/internals/errors.d.cts +19 -4
- package/dist/internals/errors.d.cts.map +1 -1
- package/dist/internals/errors.d.mts +19 -4
- package/dist/internals/errors.d.mts.map +1 -1
- package/dist/internals/errors.mjs +64 -24
- package/dist/internals/errors.mjs.map +1 -1
- package/dist/jsx/validation.d.cts +3 -3
- package/dist/jsx/validation.d.mts +3 -3
- package/dist/types/handlers/assets-conversion.cjs.map +1 -1
- package/dist/types/handlers/assets-conversion.d.cts +0 -25
- package/dist/types/handlers/assets-conversion.d.cts.map +1 -1
- package/dist/types/handlers/assets-conversion.d.mts +0 -25
- package/dist/types/handlers/assets-conversion.d.mts.map +1 -1
- package/dist/types/handlers/assets-conversion.mjs.map +1 -1
- package/dist/types/handlers/assets-market-data.cjs +3 -0
- package/dist/types/handlers/assets-market-data.cjs.map +1 -0
- package/dist/types/handlers/assets-market-data.d.cts +56 -0
- package/dist/types/handlers/assets-market-data.d.cts.map +1 -0
- package/dist/types/handlers/assets-market-data.d.mts +56 -0
- package/dist/types/handlers/assets-market-data.d.mts.map +1 -0
- package/dist/types/handlers/assets-market-data.mjs +2 -0
- package/dist/types/handlers/assets-market-data.mjs.map +1 -0
- package/dist/types/handlers/index.cjs.map +1 -1
- package/dist/types/handlers/index.d.cts +2 -0
- package/dist/types/handlers/index.d.cts.map +1 -1
- package/dist/types/handlers/index.d.mts +2 -0
- package/dist/types/handlers/index.d.mts.map +1 -1
- package/dist/types/handlers/index.mjs.map +1 -1
- package/dist/types/handlers/lifecycle.cjs.map +1 -1
- package/dist/types/handlers/lifecycle.d.cts +12 -0
- package/dist/types/handlers/lifecycle.d.cts.map +1 -1
- package/dist/types/handlers/lifecycle.d.mts +12 -0
- package/dist/types/handlers/lifecycle.d.mts.map +1 -1
- package/dist/types/handlers/lifecycle.mjs.map +1 -1
- package/dist/types/handlers/user-input.d.cts +6 -6
- package/dist/types/handlers/user-input.d.mts +6 -6
- package/dist/types/handlers/web-socket-event.cjs +3 -0
- package/dist/types/handlers/web-socket-event.cjs.map +1 -0
- package/dist/types/handlers/web-socket-event.d.cts +78 -0
- package/dist/types/handlers/web-socket-event.d.cts.map +1 -0
- package/dist/types/handlers/web-socket-event.d.mts +78 -0
- package/dist/types/handlers/web-socket-event.d.mts.map +1 -0
- package/dist/types/handlers/web-socket-event.mjs +2 -0
- package/dist/types/handlers/web-socket-event.mjs.map +1 -0
- package/dist/types/interface.d.cts +5 -5
- package/dist/types/interface.d.mts +5 -5
- package/dist/types/methods/close-web-socket.cjs +3 -0
- package/dist/types/methods/close-web-socket.cjs.map +1 -0
- package/dist/types/methods/close-web-socket.d.cts +13 -0
- package/dist/types/methods/close-web-socket.d.cts.map +1 -0
- package/dist/types/methods/close-web-socket.d.mts +13 -0
- package/dist/types/methods/close-web-socket.d.mts.map +1 -0
- package/dist/types/methods/close-web-socket.mjs +2 -0
- package/dist/types/methods/close-web-socket.mjs.map +1 -0
- package/dist/types/methods/get-web-sockets.cjs +3 -0
- package/dist/types/methods/get-web-sockets.cjs.map +1 -0
- package/dist/types/methods/get-web-sockets.d.cts +15 -0
- package/dist/types/methods/get-web-sockets.d.cts.map +1 -0
- package/dist/types/methods/get-web-sockets.d.mts +15 -0
- package/dist/types/methods/get-web-sockets.d.mts.map +1 -0
- package/dist/types/methods/get-web-sockets.mjs +2 -0
- package/dist/types/methods/get-web-sockets.mjs.map +1 -0
- package/dist/types/methods/index.cjs.map +1 -1
- package/dist/types/methods/index.d.cts +5 -0
- package/dist/types/methods/index.d.cts.map +1 -1
- package/dist/types/methods/index.d.mts +5 -0
- package/dist/types/methods/index.d.mts.map +1 -1
- package/dist/types/methods/index.mjs.map +1 -1
- package/dist/types/methods/methods.cjs.map +1 -1
- package/dist/types/methods/methods.d.cts +13 -0
- package/dist/types/methods/methods.d.cts.map +1 -1
- package/dist/types/methods/methods.d.mts +13 -0
- package/dist/types/methods/methods.d.mts.map +1 -1
- package/dist/types/methods/methods.mjs.map +1 -1
- package/dist/types/methods/open-web-socket.cjs +3 -0
- package/dist/types/methods/open-web-socket.cjs.map +1 -0
- package/dist/types/methods/open-web-socket.d.cts +15 -0
- package/dist/types/methods/open-web-socket.d.cts.map +1 -0
- package/dist/types/methods/open-web-socket.d.mts +15 -0
- package/dist/types/methods/open-web-socket.d.mts.map +1 -0
- package/dist/types/methods/open-web-socket.mjs +2 -0
- package/dist/types/methods/open-web-socket.mjs.map +1 -0
- package/dist/types/methods/send-web-socket-message.cjs +3 -0
- package/dist/types/methods/send-web-socket-message.cjs.map +1 -0
- package/dist/types/methods/send-web-socket-message.d.cts +15 -0
- package/dist/types/methods/send-web-socket-message.d.cts.map +1 -0
- package/dist/types/methods/send-web-socket-message.d.mts +15 -0
- package/dist/types/methods/send-web-socket-message.d.mts.map +1 -0
- package/dist/types/methods/send-web-socket-message.mjs +2 -0
- package/dist/types/methods/send-web-socket-message.mjs.map +1 -0
- package/dist/types/methods/track-error.cjs +3 -0
- package/dist/types/methods/track-error.cjs.map +1 -0
- package/dist/types/methods/track-error.d.cts +41 -0
- package/dist/types/methods/track-error.d.cts.map +1 -0
- package/dist/types/methods/track-error.d.mts +41 -0
- package/dist/types/methods/track-error.d.mts.map +1 -0
- package/dist/types/methods/track-error.mjs +2 -0
- package/dist/types/methods/track-error.mjs.map +1 -0
- package/dist/ui/components/button.d.cts +3 -3
- package/dist/ui/components/button.d.mts +3 -3
- package/dist/ui/components/form.d.cts +17 -17
- package/dist/ui/components/form.d.mts +17 -17
- package/dist/ui/components/input.d.cts +3 -3
- package/dist/ui/components/input.d.mts +3 -3
- package/dist/ui/components/panel.d.cts +25 -25
- package/dist/ui/components/panel.d.mts +25 -25
- package/package.json +2 -2
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { CancelBackgroundEventParams, CancelBackgroundEventResult } from "./cancel-background-event.cjs";
|
|
2
2
|
import type { ClearStateParams, ClearStateResult } from "./clear-state.cjs";
|
|
3
|
+
import type { CloseWebSocketParams, CloseWebSocketResult } from "./close-web-socket.cjs";
|
|
3
4
|
import type { CreateInterfaceParams, CreateInterfaceResult } from "./create-interface.cjs";
|
|
4
5
|
import type { DialogParams, DialogResult } from "./dialog.cjs";
|
|
5
6
|
import type { GetBackgroundEventsParams, GetBackgroundEventsResult } from "./get-background-events.cjs";
|
|
@@ -16,16 +17,20 @@ import type { GetLocaleParams, GetLocaleResult } from "./get-locale.cjs";
|
|
|
16
17
|
import type { GetPreferencesParams, GetPreferencesResult } from "./get-preferences.cjs";
|
|
17
18
|
import type { GetSnapsParams, GetSnapsResult } from "./get-snaps.cjs";
|
|
18
19
|
import type { GetStateParams, GetStateResult } from "./get-state.cjs";
|
|
20
|
+
import type { GetWebSocketsParams, GetWebSocketsResult } from "./get-web-sockets.cjs";
|
|
19
21
|
import type { InvokeKeyringParams, InvokeKeyringResult } from "./invoke-keyring.cjs";
|
|
20
22
|
import type { InvokeSnapParams, InvokeSnapResult } from "./invoke-snap.cjs";
|
|
21
23
|
import type { ListEntropySourcesParams, ListEntropySourcesResult } from "./list-entropy-sources.cjs";
|
|
22
24
|
import type { ManageAccountsParams, ManageAccountsResult } from "./manage-accounts.cjs";
|
|
23
25
|
import type { ManageStateParams, ManageStateResult } from "./manage-state.cjs";
|
|
24
26
|
import type { NotifyParams, NotifyResult } from "./notify.cjs";
|
|
27
|
+
import type { OpenWebSocketParams, OpenWebSocketResult } from "./open-web-socket.cjs";
|
|
25
28
|
import type { RequestSnapsParams, RequestSnapsResult } from "./request-snaps.cjs";
|
|
26
29
|
import type { ResolveInterfaceParams, ResolveInterfaceResult } from "./resolve-interface.cjs";
|
|
27
30
|
import type { ScheduleBackgroundEventParams, ScheduleBackgroundEventResult } from "./schedule-background-event.cjs";
|
|
31
|
+
import type { SendWebSocketMessageParams, SendWebSocketMessageResult } from "./send-web-socket-message.cjs";
|
|
28
32
|
import type { SetStateParams, SetStateResult } from "./set-state.cjs";
|
|
33
|
+
import type { TrackErrorParams, TrackErrorResult } from "./track-error.cjs";
|
|
29
34
|
import type { TrackEventParams, TrackEventResult } from "./track-event.cjs";
|
|
30
35
|
import type { UpdateInterfaceParams, UpdateInterfaceResult } from "./update-interface.cjs";
|
|
31
36
|
import type { Method } from "../../internals/index.cjs";
|
|
@@ -72,6 +77,14 @@ export type SnapMethods = {
|
|
|
72
77
|
snap_resolveInterface: [ResolveInterfaceParams, ResolveInterfaceResult];
|
|
73
78
|
snap_setState: [SetStateParams, SetStateResult];
|
|
74
79
|
snap_trackEvent: [TrackEventParams, TrackEventResult];
|
|
80
|
+
snap_trackError: [TrackErrorParams, TrackErrorResult];
|
|
81
|
+
snap_openWebSocket: [OpenWebSocketParams, OpenWebSocketResult];
|
|
82
|
+
snap_closeWebSocket: [CloseWebSocketParams, CloseWebSocketResult];
|
|
83
|
+
snap_getWebSockets: [GetWebSocketsParams, GetWebSocketsResult];
|
|
84
|
+
snap_sendWebSocketMessage: [
|
|
85
|
+
SendWebSocketMessageParams,
|
|
86
|
+
SendWebSocketMessageResult
|
|
87
|
+
];
|
|
75
88
|
wallet_getSnaps: [GetSnapsParams, GetSnapsResult];
|
|
76
89
|
wallet_invokeKeyring: [InvokeKeyringParams, InvokeKeyringResult];
|
|
77
90
|
wallet_invokeSnap: [InvokeSnapParams, InvokeSnapResult];
|
|
@@ -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,qBAAqB,EACrB,qBAAqB,EACtB,+BAA2B;AAC5B,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,qBAAiB;AAC3D,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,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,uBAAuB,EACvB,uBAAuB,EACxB,kCAA8B;AAC/B,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,yBAAqB;AACrE,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EACrB,8BAA0B;AAC3B,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,wBAAoB;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,wBAAoB;AAClE,OAAO,KAAK,EACV,mBAAmB,EACnB,mBAAmB,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;;;;;;;;;;;;;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,5 +1,6 @@
|
|
|
1
1
|
import type { CancelBackgroundEventParams, CancelBackgroundEventResult } from "./cancel-background-event.mjs";
|
|
2
2
|
import type { ClearStateParams, ClearStateResult } from "./clear-state.mjs";
|
|
3
|
+
import type { CloseWebSocketParams, CloseWebSocketResult } from "./close-web-socket.mjs";
|
|
3
4
|
import type { CreateInterfaceParams, CreateInterfaceResult } from "./create-interface.mjs";
|
|
4
5
|
import type { DialogParams, DialogResult } from "./dialog.mjs";
|
|
5
6
|
import type { GetBackgroundEventsParams, GetBackgroundEventsResult } from "./get-background-events.mjs";
|
|
@@ -16,16 +17,20 @@ import type { GetLocaleParams, GetLocaleResult } from "./get-locale.mjs";
|
|
|
16
17
|
import type { GetPreferencesParams, GetPreferencesResult } from "./get-preferences.mjs";
|
|
17
18
|
import type { GetSnapsParams, GetSnapsResult } from "./get-snaps.mjs";
|
|
18
19
|
import type { GetStateParams, GetStateResult } from "./get-state.mjs";
|
|
20
|
+
import type { GetWebSocketsParams, GetWebSocketsResult } from "./get-web-sockets.mjs";
|
|
19
21
|
import type { InvokeKeyringParams, InvokeKeyringResult } from "./invoke-keyring.mjs";
|
|
20
22
|
import type { InvokeSnapParams, InvokeSnapResult } from "./invoke-snap.mjs";
|
|
21
23
|
import type { ListEntropySourcesParams, ListEntropySourcesResult } from "./list-entropy-sources.mjs";
|
|
22
24
|
import type { ManageAccountsParams, ManageAccountsResult } from "./manage-accounts.mjs";
|
|
23
25
|
import type { ManageStateParams, ManageStateResult } from "./manage-state.mjs";
|
|
24
26
|
import type { NotifyParams, NotifyResult } from "./notify.mjs";
|
|
27
|
+
import type { OpenWebSocketParams, OpenWebSocketResult } from "./open-web-socket.mjs";
|
|
25
28
|
import type { RequestSnapsParams, RequestSnapsResult } from "./request-snaps.mjs";
|
|
26
29
|
import type { ResolveInterfaceParams, ResolveInterfaceResult } from "./resolve-interface.mjs";
|
|
27
30
|
import type { ScheduleBackgroundEventParams, ScheduleBackgroundEventResult } from "./schedule-background-event.mjs";
|
|
31
|
+
import type { SendWebSocketMessageParams, SendWebSocketMessageResult } from "./send-web-socket-message.mjs";
|
|
28
32
|
import type { SetStateParams, SetStateResult } from "./set-state.mjs";
|
|
33
|
+
import type { TrackErrorParams, TrackErrorResult } from "./track-error.mjs";
|
|
29
34
|
import type { TrackEventParams, TrackEventResult } from "./track-event.mjs";
|
|
30
35
|
import type { UpdateInterfaceParams, UpdateInterfaceResult } from "./update-interface.mjs";
|
|
31
36
|
import type { Method } from "../../internals/index.mjs";
|
|
@@ -72,6 +77,14 @@ export type SnapMethods = {
|
|
|
72
77
|
snap_resolveInterface: [ResolveInterfaceParams, ResolveInterfaceResult];
|
|
73
78
|
snap_setState: [SetStateParams, SetStateResult];
|
|
74
79
|
snap_trackEvent: [TrackEventParams, TrackEventResult];
|
|
80
|
+
snap_trackError: [TrackErrorParams, TrackErrorResult];
|
|
81
|
+
snap_openWebSocket: [OpenWebSocketParams, OpenWebSocketResult];
|
|
82
|
+
snap_closeWebSocket: [CloseWebSocketParams, CloseWebSocketResult];
|
|
83
|
+
snap_getWebSockets: [GetWebSocketsParams, GetWebSocketsResult];
|
|
84
|
+
snap_sendWebSocketMessage: [
|
|
85
|
+
SendWebSocketMessageParams,
|
|
86
|
+
SendWebSocketMessageResult
|
|
87
|
+
];
|
|
75
88
|
wallet_getSnaps: [GetSnapsParams, GetSnapsResult];
|
|
76
89
|
wallet_invokeKeyring: [InvokeKeyringParams, InvokeKeyringResult];
|
|
77
90
|
wallet_invokeSnap: [InvokeSnapParams, InvokeSnapResult];
|
|
@@ -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,qBAAqB,EACrB,qBAAqB,EACtB,+BAA2B;AAC5B,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,qBAAiB;AAC3D,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,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,uBAAuB,EACvB,uBAAuB,EACxB,kCAA8B;AAC/B,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,yBAAqB;AACrE,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EACrB,8BAA0B;AAC3B,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,wBAAoB;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,wBAAoB;AAClE,OAAO,KAAK,EACV,mBAAmB,EACnB,mBAAmB,EACpB,6BAAyB;AAC1B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G;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 CreateInterfaceParams,\n CreateInterfaceResult,\n} from './create-interface';\nimport type { DialogParams, DialogResult } from './dialog';\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 {\n GetCurrencyRateParams,\n GetCurrencyRateResult,\n} from './get-currency-rate';\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 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 { NotifyParams, NotifyResult } from './notify';\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 { SetStateParams, SetStateResult } from './set-state';\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_getBip32Entropy: [GetBip32EntropyParams, GetBip32EntropyResult];\n snap_getBip32PublicKey: [GetBip32PublicKeyParams, GetBip32PublicKeyResult];\n snap_getBip44Entropy: [GetBip44EntropyParams, GetBip44EntropyResult];\n snap_getClientStatus: [GetClientStatusParams, GetClientStatusResult];\n snap_getCurrencyRate: [GetCurrencyRateParams, GetCurrencyRateResult];\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_trackEvent: [TrackEventParams, TrackEventResult];\n wallet_getSnaps: [GetSnapsParams, GetSnapsResult];\n wallet_invokeKeyring: [InvokeKeyringParams, InvokeKeyringResult];\n wallet_invokeSnap: [InvokeSnapParams, InvokeSnapResult];\n wallet_snap: [InvokeSnapParams, InvokeSnapResult];\n wallet_requestSnaps: [RequestSnapsParams, RequestSnapsResult];\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"]}
|
|
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 {\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 {\n GetCurrencyRateParams,\n GetCurrencyRateResult,\n} from './get-currency-rate';\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 { 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 { 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_getBip32Entropy: [GetBip32EntropyParams, GetBip32EntropyResult];\n snap_getBip32PublicKey: [GetBip32PublicKeyParams, GetBip32PublicKeyResult];\n snap_getBip44Entropy: [GetBip44EntropyParams, GetBip44EntropyResult];\n snap_getClientStatus: [GetClientStatusParams, GetClientStatusResult];\n snap_getCurrencyRate: [GetCurrencyRateParams, GetCurrencyRateResult];\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_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_getSnaps: [GetSnapsParams, GetSnapsResult];\n wallet_invokeKeyring: [InvokeKeyringParams, InvokeKeyringResult];\n wallet_invokeSnap: [InvokeSnapParams, InvokeSnapResult];\n wallet_snap: [InvokeSnapParams, InvokeSnapResult];\n wallet_requestSnaps: [RequestSnapsParams, RequestSnapsResult];\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":"open-web-socket.cjs","sourceRoot":"","sources":["../../../src/types/methods/open-web-socket.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * The request parameters for the `snap_openWebSocket` method.\n *\n * @property url - The URL of the WebSocket connection to open.\n * @property protocols - The protocols to use for the WebSocket connection.\n */\nexport type OpenWebSocketParams = {\n url: string;\n protocols?: string[];\n};\n\n/**\n * The result returned by the `snap_openWebSocket` method.\n */\nexport type OpenWebSocketResult = string;\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The request parameters for the `snap_openWebSocket` method.
|
|
3
|
+
*
|
|
4
|
+
* @property url - The URL of the WebSocket connection to open.
|
|
5
|
+
* @property protocols - The protocols to use for the WebSocket connection.
|
|
6
|
+
*/
|
|
7
|
+
export type OpenWebSocketParams = {
|
|
8
|
+
url: string;
|
|
9
|
+
protocols?: string[];
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* The result returned by the `snap_openWebSocket` method.
|
|
13
|
+
*/
|
|
14
|
+
export type OpenWebSocketResult = string;
|
|
15
|
+
//# sourceMappingURL=open-web-socket.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"open-web-socket.d.cts","sourceRoot":"","sources":["../../../src/types/methods/open-web-socket.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The request parameters for the `snap_openWebSocket` method.
|
|
3
|
+
*
|
|
4
|
+
* @property url - The URL of the WebSocket connection to open.
|
|
5
|
+
* @property protocols - The protocols to use for the WebSocket connection.
|
|
6
|
+
*/
|
|
7
|
+
export type OpenWebSocketParams = {
|
|
8
|
+
url: string;
|
|
9
|
+
protocols?: string[];
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* The result returned by the `snap_openWebSocket` method.
|
|
13
|
+
*/
|
|
14
|
+
export type OpenWebSocketResult = string;
|
|
15
|
+
//# sourceMappingURL=open-web-socket.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"open-web-socket.d.mts","sourceRoot":"","sources":["../../../src/types/methods/open-web-socket.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"open-web-socket.mjs","sourceRoot":"","sources":["../../../src/types/methods/open-web-socket.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * The request parameters for the `snap_openWebSocket` method.\n *\n * @property url - The URL of the WebSocket connection to open.\n * @property protocols - The protocols to use for the WebSocket connection.\n */\nexport type OpenWebSocketParams = {\n url: string;\n protocols?: string[];\n};\n\n/**\n * The result returned by the `snap_openWebSocket` method.\n */\nexport type OpenWebSocketResult = string;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-web-socket-message.cjs","sourceRoot":"","sources":["../../../src/types/methods/send-web-socket-message.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * The request parameters for the `snap_sendWebSocketMessage` method.\n *\n * @property id - The id of the WebSocket connection to send a message to.\n * @property message - The message to send.\n */\nexport type SendWebSocketMessageParams = {\n id: string;\n message: string | number[];\n};\n\n/**\n * The result returned by the `snap_sendWebSocketMessage` method.\n */\nexport type SendWebSocketMessageResult = null;\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The request parameters for the `snap_sendWebSocketMessage` method.
|
|
3
|
+
*
|
|
4
|
+
* @property id - The id of the WebSocket connection to send a message to.
|
|
5
|
+
* @property message - The message to send.
|
|
6
|
+
*/
|
|
7
|
+
export type SendWebSocketMessageParams = {
|
|
8
|
+
id: string;
|
|
9
|
+
message: string | number[];
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* The result returned by the `snap_sendWebSocketMessage` method.
|
|
13
|
+
*/
|
|
14
|
+
export type SendWebSocketMessageResult = null;
|
|
15
|
+
//# sourceMappingURL=send-web-socket-message.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-web-socket-message.d.cts","sourceRoot":"","sources":["../../../src/types/methods/send-web-socket-message.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,IAAI,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The request parameters for the `snap_sendWebSocketMessage` method.
|
|
3
|
+
*
|
|
4
|
+
* @property id - The id of the WebSocket connection to send a message to.
|
|
5
|
+
* @property message - The message to send.
|
|
6
|
+
*/
|
|
7
|
+
export type SendWebSocketMessageParams = {
|
|
8
|
+
id: string;
|
|
9
|
+
message: string | number[];
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* The result returned by the `snap_sendWebSocketMessage` method.
|
|
13
|
+
*/
|
|
14
|
+
export type SendWebSocketMessageResult = null;
|
|
15
|
+
//# sourceMappingURL=send-web-socket-message.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-web-socket-message.d.mts","sourceRoot":"","sources":["../../../src/types/methods/send-web-socket-message.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-web-socket-message.mjs","sourceRoot":"","sources":["../../../src/types/methods/send-web-socket-message.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * The request parameters for the `snap_sendWebSocketMessage` method.\n *\n * @property id - The id of the WebSocket connection to send a message to.\n * @property message - The message to send.\n */\nexport type SendWebSocketMessageParams = {\n id: string;\n message: string | number[];\n};\n\n/**\n * The result returned by the `snap_sendWebSocketMessage` method.\n */\nexport type SendWebSocketMessageResult = null;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"track-error.cjs","sourceRoot":"","sources":["../../../src/types/methods/track-error.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * An error that can be tracked by the `snap_trackError` method.\n */\nexport type TrackableError = {\n /**\n * The name of the error. This is typically the constructor name of the\n * error, such as `TypeError`, `ReferenceError`, or a custom error name.\n */\n name: string;\n\n /**\n * The error message.\n */\n message: string;\n\n /**\n * The error stack, if available. If the error does not have a stack, this\n * will be `null`.\n */\n stack: string | null;\n\n /**\n * The cause of the error, if available. This can be another error object or\n * `null` if there is no cause.\n */\n cause: TrackableError | null;\n};\n\n/**\n * The parameters for the `snap_trackError` method.\n *\n * Note that this method is only available to preinstalled Snaps.\n */\nexport type TrackErrorParams = {\n /**\n * The error object to track.\n */\n error: TrackableError;\n};\n\n/**\n * The result returned by the `snap_trackEvent` method. This is the ID of the\n * tracked error, as returned by the Sentry instance in the client.\n */\nexport type TrackErrorResult = string;\n"]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An error that can be tracked by the `snap_trackError` method.
|
|
3
|
+
*/
|
|
4
|
+
export type TrackableError = {
|
|
5
|
+
/**
|
|
6
|
+
* The name of the error. This is typically the constructor name of the
|
|
7
|
+
* error, such as `TypeError`, `ReferenceError`, or a custom error name.
|
|
8
|
+
*/
|
|
9
|
+
name: string;
|
|
10
|
+
/**
|
|
11
|
+
* The error message.
|
|
12
|
+
*/
|
|
13
|
+
message: string;
|
|
14
|
+
/**
|
|
15
|
+
* The error stack, if available. If the error does not have a stack, this
|
|
16
|
+
* will be `null`.
|
|
17
|
+
*/
|
|
18
|
+
stack: string | null;
|
|
19
|
+
/**
|
|
20
|
+
* The cause of the error, if available. This can be another error object or
|
|
21
|
+
* `null` if there is no cause.
|
|
22
|
+
*/
|
|
23
|
+
cause: TrackableError | null;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* The parameters for the `snap_trackError` method.
|
|
27
|
+
*
|
|
28
|
+
* Note that this method is only available to preinstalled Snaps.
|
|
29
|
+
*/
|
|
30
|
+
export type TrackErrorParams = {
|
|
31
|
+
/**
|
|
32
|
+
* The error object to track.
|
|
33
|
+
*/
|
|
34
|
+
error: TrackableError;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* The result returned by the `snap_trackEvent` method. This is the ID of the
|
|
38
|
+
* tracked error, as returned by the Sentry instance in the client.
|
|
39
|
+
*/
|
|
40
|
+
export type TrackErrorResult = string;
|
|
41
|
+
//# sourceMappingURL=track-error.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"track-error.d.cts","sourceRoot":"","sources":["../../../src/types/methods/track-error.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;;OAGG;IACH,KAAK,EAAE,cAAc,GAAG,IAAI,CAAC;CAC9B,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,KAAK,EAAE,cAAc,CAAC;CACvB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An error that can be tracked by the `snap_trackError` method.
|
|
3
|
+
*/
|
|
4
|
+
export type TrackableError = {
|
|
5
|
+
/**
|
|
6
|
+
* The name of the error. This is typically the constructor name of the
|
|
7
|
+
* error, such as `TypeError`, `ReferenceError`, or a custom error name.
|
|
8
|
+
*/
|
|
9
|
+
name: string;
|
|
10
|
+
/**
|
|
11
|
+
* The error message.
|
|
12
|
+
*/
|
|
13
|
+
message: string;
|
|
14
|
+
/**
|
|
15
|
+
* The error stack, if available. If the error does not have a stack, this
|
|
16
|
+
* will be `null`.
|
|
17
|
+
*/
|
|
18
|
+
stack: string | null;
|
|
19
|
+
/**
|
|
20
|
+
* The cause of the error, if available. This can be another error object or
|
|
21
|
+
* `null` if there is no cause.
|
|
22
|
+
*/
|
|
23
|
+
cause: TrackableError | null;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* The parameters for the `snap_trackError` method.
|
|
27
|
+
*
|
|
28
|
+
* Note that this method is only available to preinstalled Snaps.
|
|
29
|
+
*/
|
|
30
|
+
export type TrackErrorParams = {
|
|
31
|
+
/**
|
|
32
|
+
* The error object to track.
|
|
33
|
+
*/
|
|
34
|
+
error: TrackableError;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* The result returned by the `snap_trackEvent` method. This is the ID of the
|
|
38
|
+
* tracked error, as returned by the Sentry instance in the client.
|
|
39
|
+
*/
|
|
40
|
+
export type TrackErrorResult = string;
|
|
41
|
+
//# sourceMappingURL=track-error.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"track-error.d.mts","sourceRoot":"","sources":["../../../src/types/methods/track-error.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;;OAGG;IACH,KAAK,EAAE,cAAc,GAAG,IAAI,CAAC;CAC9B,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,KAAK,EAAE,cAAc,CAAC;CACvB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"track-error.mjs","sourceRoot":"","sources":["../../../src/types/methods/track-error.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * An error that can be tracked by the `snap_trackError` method.\n */\nexport type TrackableError = {\n /**\n * The name of the error. This is typically the constructor name of the\n * error, such as `TypeError`, `ReferenceError`, or a custom error name.\n */\n name: string;\n\n /**\n * The error message.\n */\n message: string;\n\n /**\n * The error stack, if available. If the error does not have a stack, this\n * will be `null`.\n */\n stack: string | null;\n\n /**\n * The cause of the error, if available. This can be another error object or\n * `null` if there is no cause.\n */\n cause: TrackableError | null;\n};\n\n/**\n * The parameters for the `snap_trackError` method.\n *\n * Note that this method is only available to preinstalled Snaps.\n */\nexport type TrackErrorParams = {\n /**\n * The error object to track.\n */\n error: TrackableError;\n};\n\n/**\n * The result returned by the `snap_trackEvent` method. This is the ID of the\n * tracked error, as returned by the Sentry instance in the client.\n */\nexport type TrackErrorResult = string;\n"]}
|
|
@@ -11,8 +11,8 @@ export declare enum ButtonType {
|
|
|
11
11
|
export declare const ButtonStruct: import("@metamask/superstruct").Struct<{
|
|
12
12
|
value: string;
|
|
13
13
|
type: NodeType.Button;
|
|
14
|
-
name?: string | undefined;
|
|
15
14
|
variant?: "primary" | "secondary" | undefined;
|
|
15
|
+
name?: string | undefined;
|
|
16
16
|
buttonType?: "button" | "submit" | undefined;
|
|
17
17
|
}, {
|
|
18
18
|
type: import("@metamask/superstruct").Struct<NodeType.Button, null>;
|
|
@@ -52,14 +52,14 @@ export type Button = Infer<typeof ButtonStruct>;
|
|
|
52
52
|
export declare const button: (...args: [Omit<{
|
|
53
53
|
value: string;
|
|
54
54
|
type: NodeType.Button;
|
|
55
|
-
name?: string | undefined;
|
|
56
55
|
variant?: "primary" | "secondary" | undefined;
|
|
56
|
+
name?: string | undefined;
|
|
57
57
|
buttonType?: "button" | "submit" | undefined;
|
|
58
58
|
}, "type">] | (string | undefined)[]) => {
|
|
59
59
|
value: string;
|
|
60
60
|
type: NodeType.Button;
|
|
61
|
-
name?: string | undefined;
|
|
62
61
|
variant?: "primary" | "secondary" | undefined;
|
|
62
|
+
name?: string | undefined;
|
|
63
63
|
buttonType?: "button" | "submit" | undefined;
|
|
64
64
|
};
|
|
65
65
|
//# sourceMappingURL=button.d.cts.map
|
|
@@ -11,8 +11,8 @@ export declare enum ButtonType {
|
|
|
11
11
|
export declare const ButtonStruct: import("@metamask/superstruct").Struct<{
|
|
12
12
|
value: string;
|
|
13
13
|
type: NodeType.Button;
|
|
14
|
-
name?: string | undefined;
|
|
15
14
|
variant?: "primary" | "secondary" | undefined;
|
|
15
|
+
name?: string | undefined;
|
|
16
16
|
buttonType?: "button" | "submit" | undefined;
|
|
17
17
|
}, {
|
|
18
18
|
type: import("@metamask/superstruct").Struct<NodeType.Button, null>;
|
|
@@ -52,14 +52,14 @@ export type Button = Infer<typeof ButtonStruct>;
|
|
|
52
52
|
export declare const button: (...args: [Omit<{
|
|
53
53
|
value: string;
|
|
54
54
|
type: NodeType.Button;
|
|
55
|
-
name?: string | undefined;
|
|
56
55
|
variant?: "primary" | "secondary" | undefined;
|
|
56
|
+
name?: string | undefined;
|
|
57
57
|
buttonType?: "button" | "submit" | undefined;
|
|
58
58
|
}, "type">] | (string | undefined)[]) => {
|
|
59
59
|
value: string;
|
|
60
60
|
type: NodeType.Button;
|
|
61
|
-
name?: string | undefined;
|
|
62
61
|
variant?: "primary" | "secondary" | undefined;
|
|
62
|
+
name?: string | undefined;
|
|
63
63
|
buttonType?: "button" | "submit" | undefined;
|
|
64
64
|
};
|
|
65
65
|
//# sourceMappingURL=button.d.mts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Infer } from "@metamask/superstruct";
|
|
2
2
|
import { NodeType } from "../nodes.cjs";
|
|
3
3
|
export declare const FormComponentStruct: import("@metamask/superstruct").Struct<{
|
|
4
|
-
name: string;
|
|
5
4
|
type: NodeType.Input;
|
|
5
|
+
name: string;
|
|
6
6
|
value?: string | undefined;
|
|
7
7
|
label?: string | undefined;
|
|
8
8
|
inputType?: "number" | "text" | "password" | undefined;
|
|
@@ -11,8 +11,8 @@ export declare const FormComponentStruct: import("@metamask/superstruct").Struct
|
|
|
11
11
|
} | {
|
|
12
12
|
value: string;
|
|
13
13
|
type: NodeType.Button;
|
|
14
|
-
name?: string | undefined;
|
|
15
14
|
variant?: "primary" | "secondary" | undefined;
|
|
15
|
+
name?: string | undefined;
|
|
16
16
|
buttonType?: "button" | "submit" | undefined;
|
|
17
17
|
}, null>;
|
|
18
18
|
/**
|
|
@@ -20,11 +20,11 @@ export declare const FormComponentStruct: import("@metamask/superstruct").Struct
|
|
|
20
20
|
*/
|
|
21
21
|
export type FormComponent = Infer<typeof FormComponentStruct>;
|
|
22
22
|
export declare const FormStruct: import("@metamask/superstruct").Struct<{
|
|
23
|
-
name: string;
|
|
24
23
|
type: NodeType.Form;
|
|
24
|
+
name: string;
|
|
25
25
|
children: ({
|
|
26
|
-
name: string;
|
|
27
26
|
type: NodeType.Input;
|
|
27
|
+
name: string;
|
|
28
28
|
value?: string | undefined;
|
|
29
29
|
label?: string | undefined;
|
|
30
30
|
inputType?: "number" | "text" | "password" | undefined;
|
|
@@ -33,15 +33,15 @@ export declare const FormStruct: import("@metamask/superstruct").Struct<{
|
|
|
33
33
|
} | {
|
|
34
34
|
value: string;
|
|
35
35
|
type: NodeType.Button;
|
|
36
|
-
name?: string | undefined;
|
|
37
36
|
variant?: "primary" | "secondary" | undefined;
|
|
37
|
+
name?: string | undefined;
|
|
38
38
|
buttonType?: "button" | "submit" | undefined;
|
|
39
39
|
})[];
|
|
40
40
|
}, {
|
|
41
41
|
type: import("@metamask/superstruct").Struct<NodeType.Form, null>;
|
|
42
42
|
children: import("@metamask/superstruct").Struct<({
|
|
43
|
-
name: string;
|
|
44
43
|
type: NodeType.Input;
|
|
44
|
+
name: string;
|
|
45
45
|
value?: string | undefined;
|
|
46
46
|
label?: string | undefined;
|
|
47
47
|
inputType?: "number" | "text" | "password" | undefined;
|
|
@@ -50,12 +50,12 @@ export declare const FormStruct: import("@metamask/superstruct").Struct<{
|
|
|
50
50
|
} | {
|
|
51
51
|
value: string;
|
|
52
52
|
type: NodeType.Button;
|
|
53
|
-
name?: string | undefined;
|
|
54
53
|
variant?: "primary" | "secondary" | undefined;
|
|
54
|
+
name?: string | undefined;
|
|
55
55
|
buttonType?: "button" | "submit" | undefined;
|
|
56
56
|
})[], import("@metamask/superstruct").Struct<{
|
|
57
|
-
name: string;
|
|
58
57
|
type: NodeType.Input;
|
|
58
|
+
name: string;
|
|
59
59
|
value?: string | undefined;
|
|
60
60
|
label?: string | undefined;
|
|
61
61
|
inputType?: "number" | "text" | "password" | undefined;
|
|
@@ -64,8 +64,8 @@ export declare const FormStruct: import("@metamask/superstruct").Struct<{
|
|
|
64
64
|
} | {
|
|
65
65
|
value: string;
|
|
66
66
|
type: NodeType.Button;
|
|
67
|
-
name?: string | undefined;
|
|
68
67
|
variant?: "primary" | "secondary" | undefined;
|
|
68
|
+
name?: string | undefined;
|
|
69
69
|
buttonType?: "button" | "submit" | undefined;
|
|
70
70
|
}, null>>;
|
|
71
71
|
name: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -101,11 +101,11 @@ export type Form = Infer<typeof FormStruct>;
|
|
|
101
101
|
* const node = form('myForm', [input('myInput'), button('Hello, world!')]);
|
|
102
102
|
*/
|
|
103
103
|
export declare const form: (...args: [Omit<{
|
|
104
|
-
name: string;
|
|
105
104
|
type: NodeType.Form;
|
|
105
|
+
name: string;
|
|
106
106
|
children: ({
|
|
107
|
-
name: string;
|
|
108
107
|
type: NodeType.Input;
|
|
108
|
+
name: string;
|
|
109
109
|
value?: string | undefined;
|
|
110
110
|
label?: string | undefined;
|
|
111
111
|
inputType?: "number" | "text" | "password" | undefined;
|
|
@@ -114,13 +114,13 @@ export declare const form: (...args: [Omit<{
|
|
|
114
114
|
} | {
|
|
115
115
|
value: string;
|
|
116
116
|
type: NodeType.Button;
|
|
117
|
-
name?: string | undefined;
|
|
118
117
|
variant?: "primary" | "secondary" | undefined;
|
|
118
|
+
name?: string | undefined;
|
|
119
119
|
buttonType?: "button" | "submit" | undefined;
|
|
120
120
|
})[];
|
|
121
121
|
}, "type">] | (string | ({
|
|
122
|
-
name: string;
|
|
123
122
|
type: NodeType.Input;
|
|
123
|
+
name: string;
|
|
124
124
|
value?: string | undefined;
|
|
125
125
|
label?: string | undefined;
|
|
126
126
|
inputType?: "number" | "text" | "password" | undefined;
|
|
@@ -129,15 +129,15 @@ export declare const form: (...args: [Omit<{
|
|
|
129
129
|
} | {
|
|
130
130
|
value: string;
|
|
131
131
|
type: NodeType.Button;
|
|
132
|
-
name?: string | undefined;
|
|
133
132
|
variant?: "primary" | "secondary" | undefined;
|
|
133
|
+
name?: string | undefined;
|
|
134
134
|
buttonType?: "button" | "submit" | undefined;
|
|
135
135
|
})[])[]) => {
|
|
136
|
-
name: string;
|
|
137
136
|
type: NodeType.Form;
|
|
137
|
+
name: string;
|
|
138
138
|
children: ({
|
|
139
|
-
name: string;
|
|
140
139
|
type: NodeType.Input;
|
|
140
|
+
name: string;
|
|
141
141
|
value?: string | undefined;
|
|
142
142
|
label?: string | undefined;
|
|
143
143
|
inputType?: "number" | "text" | "password" | undefined;
|
|
@@ -146,8 +146,8 @@ export declare const form: (...args: [Omit<{
|
|
|
146
146
|
} | {
|
|
147
147
|
value: string;
|
|
148
148
|
type: NodeType.Button;
|
|
149
|
-
name?: string | undefined;
|
|
150
149
|
variant?: "primary" | "secondary" | undefined;
|
|
150
|
+
name?: string | undefined;
|
|
151
151
|
buttonType?: "button" | "submit" | undefined;
|
|
152
152
|
})[];
|
|
153
153
|
};
|