@metamask/snaps-sdk 9.0.0 → 9.2.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.
Files changed (60) hide show
  1. package/CHANGELOG.md +16 -1
  2. package/dist/error-wrappers.d.cts +192 -192
  3. package/dist/error-wrappers.d.mts +192 -192
  4. package/dist/internals/error-wrappers.d.cts +12 -12
  5. package/dist/internals/error-wrappers.d.mts +12 -12
  6. package/dist/jsx/components/Row.cjs.map +1 -1
  7. package/dist/jsx/components/Row.d.cts +3 -9
  8. package/dist/jsx/components/Row.d.cts.map +1 -1
  9. package/dist/jsx/components/Row.d.mts +3 -9
  10. package/dist/jsx/components/Row.d.mts.map +1 -1
  11. package/dist/jsx/components/Row.mjs.map +1 -1
  12. package/dist/jsx/validation.cjs +3 -8
  13. package/dist/jsx/validation.cjs.map +1 -1
  14. package/dist/jsx/validation.d.cts.map +1 -1
  15. package/dist/jsx/validation.d.mts.map +1 -1
  16. package/dist/jsx/validation.mjs +3 -8
  17. package/dist/jsx/validation.mjs.map +1 -1
  18. package/dist/types/handlers/assets-lookup.cjs +74 -2
  19. package/dist/types/handlers/assets-lookup.cjs.map +1 -1
  20. package/dist/types/handlers/assets-lookup.d.cts +227 -5
  21. package/dist/types/handlers/assets-lookup.d.cts.map +1 -1
  22. package/dist/types/handlers/assets-lookup.d.mts +227 -5
  23. package/dist/types/handlers/assets-lookup.d.mts.map +1 -1
  24. package/dist/types/handlers/assets-lookup.mjs +75 -3
  25. package/dist/types/handlers/assets-lookup.mjs.map +1 -1
  26. package/dist/types/handlers/assets-market-data.cjs.map +1 -1
  27. package/dist/types/handlers/assets-market-data.d.cts +47 -5
  28. package/dist/types/handlers/assets-market-data.d.cts.map +1 -1
  29. package/dist/types/handlers/assets-market-data.d.mts +47 -5
  30. package/dist/types/handlers/assets-market-data.d.mts.map +1 -1
  31. package/dist/types/handlers/assets-market-data.mjs.map +1 -1
  32. package/dist/types/methods/end-trace.cjs +3 -0
  33. package/dist/types/methods/end-trace.cjs.map +1 -0
  34. package/dist/types/methods/end-trace.d.cts +31 -0
  35. package/dist/types/methods/end-trace.d.cts.map +1 -0
  36. package/dist/types/methods/end-trace.d.mts +31 -0
  37. package/dist/types/methods/end-trace.d.mts.map +1 -0
  38. package/dist/types/methods/end-trace.mjs +2 -0
  39. package/dist/types/methods/end-trace.mjs.map +1 -0
  40. package/dist/types/methods/index.cjs.map +1 -1
  41. package/dist/types/methods/index.d.cts +2 -0
  42. package/dist/types/methods/index.d.cts.map +1 -1
  43. package/dist/types/methods/index.d.mts +2 -0
  44. package/dist/types/methods/index.d.mts.map +1 -1
  45. package/dist/types/methods/index.mjs.map +1 -1
  46. package/dist/types/methods/methods.cjs.map +1 -1
  47. package/dist/types/methods/methods.d.cts +4 -0
  48. package/dist/types/methods/methods.d.cts.map +1 -1
  49. package/dist/types/methods/methods.d.mts +4 -0
  50. package/dist/types/methods/methods.d.mts.map +1 -1
  51. package/dist/types/methods/methods.mjs.map +1 -1
  52. package/dist/types/methods/start-trace.cjs +3 -0
  53. package/dist/types/methods/start-trace.cjs.map +1 -0
  54. package/dist/types/methods/start-trace.d.cts +58 -0
  55. package/dist/types/methods/start-trace.d.cts.map +1 -0
  56. package/dist/types/methods/start-trace.d.mts +58 -0
  57. package/dist/types/methods/start-trace.d.mts.map +1 -0
  58. package/dist/types/methods/start-trace.mjs +2 -0
  59. package/dist/types/methods/start-trace.mjs.map +1 -0
  60. package/package.json +3 -3
@@ -0,0 +1,31 @@
1
+ import type { TraceName } from "./start-trace.cjs";
2
+ /**
3
+ * A request to end a pending trace.
4
+ */
5
+ export type EndTraceRequest = {
6
+ /**
7
+ * The unique identifier of the trace.
8
+ * Defaults to 'default' if not provided.
9
+ */
10
+ id?: string;
11
+ /**
12
+ * The name of the trace.
13
+ */
14
+ name: TraceName;
15
+ /**
16
+ * Override the end time of the trace.
17
+ */
18
+ timestamp?: number;
19
+ };
20
+ /**
21
+ * The request parameters for the `snap_endTrace` method. This method is used
22
+ * to end a performance trace in Sentry.
23
+ *
24
+ * Note that this method is only available to preinstalled Snaps.
25
+ */
26
+ export type EndTraceParams = EndTraceRequest;
27
+ /**
28
+ * The result returned by the `snap_endTrace` method.
29
+ */
30
+ export type EndTraceResult = null;
31
+ //# sourceMappingURL=end-trace.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"end-trace.d.cts","sourceRoot":"","sources":["../../../src/types/methods/end-trace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAsB;AAE/C;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;IAEhB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC;AAE7C;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC"}
@@ -0,0 +1,31 @@
1
+ import type { TraceName } from "./start-trace.mjs";
2
+ /**
3
+ * A request to end a pending trace.
4
+ */
5
+ export type EndTraceRequest = {
6
+ /**
7
+ * The unique identifier of the trace.
8
+ * Defaults to 'default' if not provided.
9
+ */
10
+ id?: string;
11
+ /**
12
+ * The name of the trace.
13
+ */
14
+ name: TraceName;
15
+ /**
16
+ * Override the end time of the trace.
17
+ */
18
+ timestamp?: number;
19
+ };
20
+ /**
21
+ * The request parameters for the `snap_endTrace` method. This method is used
22
+ * to end a performance trace in Sentry.
23
+ *
24
+ * Note that this method is only available to preinstalled Snaps.
25
+ */
26
+ export type EndTraceParams = EndTraceRequest;
27
+ /**
28
+ * The result returned by the `snap_endTrace` method.
29
+ */
30
+ export type EndTraceResult = null;
31
+ //# sourceMappingURL=end-trace.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"end-trace.d.mts","sourceRoot":"","sources":["../../../src/types/methods/end-trace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAsB;AAE/C;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;IAEhB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC;AAE7C;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=end-trace.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"end-trace.mjs","sourceRoot":"","sources":["../../../src/types/methods/end-trace.ts"],"names":[],"mappings":"","sourcesContent":["import type { TraceName } from './start-trace';\n\n/**\n * A request to end a pending trace.\n */\nexport type EndTraceRequest = {\n /**\n * The unique identifier of the trace.\n * Defaults to 'default' if not provided.\n */\n id?: string;\n\n /**\n * The name of the trace.\n */\n name: TraceName;\n\n /**\n * Override the end time of the trace.\n */\n timestamp?: number;\n};\n\n/**\n * The request parameters for the `snap_endTrace` method. This method is used\n * to end a performance trace in Sentry.\n *\n * Note that this method is only available to preinstalled Snaps.\n */\nexport type EndTraceParams = EndTraceRequest;\n\n/**\n * The result returned by the `snap_endTrace` method.\n */\nexport type EndTraceResult = null;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/types/methods/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAEA,+CAAyB;AAOzB,iDAA2B;AAW3B,qDAA+B;AAE/B,+CAAyB","sourcesContent":["export type * from './clear-state';\nexport type * from './create-interface';\nexport * from './dialog';\nexport type * from './get-bip32-entropy';\nexport type * from './get-bip32-public-key';\nexport type * from './get-bip44-entropy';\nexport type * from './get-client-status';\nexport type * from './get-currency-rate';\nexport type * from './get-entropy';\nexport * from './get-file';\nexport type * from './get-interface-context';\nexport type * from './get-interface-state';\nexport type * from './get-locale';\nexport type * from './get-preferences';\nexport type * from './get-snaps';\nexport type * from './get-state';\nexport type * from './invoke-keyring';\nexport type * from './invoke-snap';\nexport type * from './list-entropy-sources';\nexport type * from './manage-accounts';\nexport * from './manage-state';\nexport type * from './methods';\nexport * from './notify';\nexport type * from './provider-request';\nexport type * from './request-snaps';\nexport type * from './update-interface';\nexport type * from './resolve-interface';\nexport type * from './schedule-background-event';\nexport type * from './cancel-background-event';\nexport type * from './get-background-events';\nexport type * from './set-state';\nexport type * from './track-error';\nexport type * from './track-event';\nexport type * from './open-web-socket';\nexport type * from './close-web-socket';\nexport type * from './send-web-socket-message';\nexport type * from './get-web-sockets';\n"]}
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/types/methods/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAEA,+CAAyB;AAQzB,iDAA2B;AAW3B,qDAA+B;AAE/B,+CAAyB","sourcesContent":["export type * from './clear-state';\nexport type * from './create-interface';\nexport * from './dialog';\nexport type * from './end-trace';\nexport type * from './get-bip32-entropy';\nexport type * from './get-bip32-public-key';\nexport type * from './get-bip44-entropy';\nexport type * from './get-client-status';\nexport type * from './get-currency-rate';\nexport type * from './get-entropy';\nexport * from './get-file';\nexport type * from './get-interface-context';\nexport type * from './get-interface-state';\nexport type * from './get-locale';\nexport type * from './get-preferences';\nexport type * from './get-snaps';\nexport type * from './get-state';\nexport type * from './invoke-keyring';\nexport type * from './invoke-snap';\nexport type * from './list-entropy-sources';\nexport type * from './manage-accounts';\nexport * from './manage-state';\nexport type * from './methods';\nexport * from './notify';\nexport type * from './provider-request';\nexport type * from './request-snaps';\nexport type * from './start-trace';\nexport type * from './update-interface';\nexport type * from './resolve-interface';\nexport type * from './schedule-background-event';\nexport type * from './cancel-background-event';\nexport type * from './get-background-events';\nexport type * from './set-state';\nexport type * from './track-error';\nexport type * from './track-event';\nexport type * from './open-web-socket';\nexport type * from './close-web-socket';\nexport type * from './send-web-socket-message';\nexport type * from './get-web-sockets';\n"]}
@@ -1,6 +1,7 @@
1
1
  export type * from "./clear-state.cjs";
2
2
  export type * from "./create-interface.cjs";
3
3
  export * from "./dialog.cjs";
4
+ export type * from "./end-trace.cjs";
4
5
  export type * from "./get-bip32-entropy.cjs";
5
6
  export type * from "./get-bip32-public-key.cjs";
6
7
  export type * from "./get-bip44-entropy.cjs";
@@ -23,6 +24,7 @@ export type * from "./methods.cjs";
23
24
  export * from "./notify.cjs";
24
25
  export type * from "./provider-request.cjs";
25
26
  export type * from "./request-snaps.cjs";
27
+ export type * from "./start-trace.cjs";
26
28
  export type * from "./update-interface.cjs";
27
29
  export type * from "./resolve-interface.cjs";
28
30
  export type * from "./schedule-background-event.cjs";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/types/methods/index.ts"],"names":[],"mappings":"AAAA,uCAAmC;AACnC,4CAAwC;AACxC,6BAAyB;AACzB,6CAAyC;AACzC,gDAA4C;AAC5C,6CAAyC;AACzC,6CAAyC;AACzC,6CAAyC;AACzC,uCAAmC;AACnC,+BAA2B;AAC3B,iDAA6C;AAC7C,+CAA2C;AAC3C,sCAAkC;AAClC,2CAAuC;AACvC,qCAAiC;AACjC,qCAAiC;AACjC,0CAAsC;AACtC,uCAAmC;AACnC,gDAA4C;AAC5C,2CAAuC;AACvC,mCAA+B;AAC/B,mCAA+B;AAC/B,6BAAyB;AACzB,4CAAwC;AACxC,yCAAqC;AACrC,4CAAwC;AACxC,6CAAyC;AACzC,qDAAiD;AACjD,mDAA+C;AAC/C,iDAA6C;AAC7C,qCAAiC;AACjC,uCAAmC;AACnC,uCAAmC;AACnC,2CAAuC;AACvC,4CAAwC;AACxC,mDAA+C;AAC/C,2CAAuC"}
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/types/methods/index.ts"],"names":[],"mappings":"AAAA,uCAAmC;AACnC,4CAAwC;AACxC,6BAAyB;AACzB,qCAAiC;AACjC,6CAAyC;AACzC,gDAA4C;AAC5C,6CAAyC;AACzC,6CAAyC;AACzC,6CAAyC;AACzC,uCAAmC;AACnC,+BAA2B;AAC3B,iDAA6C;AAC7C,+CAA2C;AAC3C,sCAAkC;AAClC,2CAAuC;AACvC,qCAAiC;AACjC,qCAAiC;AACjC,0CAAsC;AACtC,uCAAmC;AACnC,gDAA4C;AAC5C,2CAAuC;AACvC,mCAA+B;AAC/B,mCAA+B;AAC/B,6BAAyB;AACzB,4CAAwC;AACxC,yCAAqC;AACrC,uCAAmC;AACnC,4CAAwC;AACxC,6CAAyC;AACzC,qDAAiD;AACjD,mDAA+C;AAC/C,iDAA6C;AAC7C,qCAAiC;AACjC,uCAAmC;AACnC,uCAAmC;AACnC,2CAAuC;AACvC,4CAAwC;AACxC,mDAA+C;AAC/C,2CAAuC"}
@@ -1,6 +1,7 @@
1
1
  export type * from "./clear-state.mjs";
2
2
  export type * from "./create-interface.mjs";
3
3
  export * from "./dialog.mjs";
4
+ export type * from "./end-trace.mjs";
4
5
  export type * from "./get-bip32-entropy.mjs";
5
6
  export type * from "./get-bip32-public-key.mjs";
6
7
  export type * from "./get-bip44-entropy.mjs";
@@ -23,6 +24,7 @@ export type * from "./methods.mjs";
23
24
  export * from "./notify.mjs";
24
25
  export type * from "./provider-request.mjs";
25
26
  export type * from "./request-snaps.mjs";
27
+ export type * from "./start-trace.mjs";
26
28
  export type * from "./update-interface.mjs";
27
29
  export type * from "./resolve-interface.mjs";
28
30
  export type * from "./schedule-background-event.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/types/methods/index.ts"],"names":[],"mappings":"AAAA,uCAAmC;AACnC,4CAAwC;AACxC,6BAAyB;AACzB,6CAAyC;AACzC,gDAA4C;AAC5C,6CAAyC;AACzC,6CAAyC;AACzC,6CAAyC;AACzC,uCAAmC;AACnC,+BAA2B;AAC3B,iDAA6C;AAC7C,+CAA2C;AAC3C,sCAAkC;AAClC,2CAAuC;AACvC,qCAAiC;AACjC,qCAAiC;AACjC,0CAAsC;AACtC,uCAAmC;AACnC,gDAA4C;AAC5C,2CAAuC;AACvC,mCAA+B;AAC/B,mCAA+B;AAC/B,6BAAyB;AACzB,4CAAwC;AACxC,yCAAqC;AACrC,4CAAwC;AACxC,6CAAyC;AACzC,qDAAiD;AACjD,mDAA+C;AAC/C,iDAA6C;AAC7C,qCAAiC;AACjC,uCAAmC;AACnC,uCAAmC;AACnC,2CAAuC;AACvC,4CAAwC;AACxC,mDAA+C;AAC/C,2CAAuC"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/types/methods/index.ts"],"names":[],"mappings":"AAAA,uCAAmC;AACnC,4CAAwC;AACxC,6BAAyB;AACzB,qCAAiC;AACjC,6CAAyC;AACzC,gDAA4C;AAC5C,6CAAyC;AACzC,6CAAyC;AACzC,6CAAyC;AACzC,uCAAmC;AACnC,+BAA2B;AAC3B,iDAA6C;AAC7C,+CAA2C;AAC3C,sCAAkC;AAClC,2CAAuC;AACvC,qCAAiC;AACjC,qCAAiC;AACjC,0CAAsC;AACtC,uCAAmC;AACnC,gDAA4C;AAC5C,2CAAuC;AACvC,mCAA+B;AAC/B,mCAA+B;AAC/B,6BAAyB;AACzB,4CAAwC;AACxC,yCAAqC;AACrC,uCAAmC;AACnC,4CAAwC;AACxC,6CAAyC;AACzC,qDAAiD;AACjD,mDAA+C;AAC/C,iDAA6C;AAC7C,qCAAiC;AACjC,uCAAmC;AACnC,uCAAmC;AACnC,2CAAuC;AACvC,4CAAwC;AACxC,mDAA+C;AAC/C,2CAAuC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/types/methods/index.ts"],"names":[],"mappings":"AAEA,6BAAyB;AAOzB,+BAA2B;AAW3B,mCAA+B;AAE/B,6BAAyB","sourcesContent":["export type * from './clear-state';\nexport type * from './create-interface';\nexport * from './dialog';\nexport type * from './get-bip32-entropy';\nexport type * from './get-bip32-public-key';\nexport type * from './get-bip44-entropy';\nexport type * from './get-client-status';\nexport type * from './get-currency-rate';\nexport type * from './get-entropy';\nexport * from './get-file';\nexport type * from './get-interface-context';\nexport type * from './get-interface-state';\nexport type * from './get-locale';\nexport type * from './get-preferences';\nexport type * from './get-snaps';\nexport type * from './get-state';\nexport type * from './invoke-keyring';\nexport type * from './invoke-snap';\nexport type * from './list-entropy-sources';\nexport type * from './manage-accounts';\nexport * from './manage-state';\nexport type * from './methods';\nexport * from './notify';\nexport type * from './provider-request';\nexport type * from './request-snaps';\nexport type * from './update-interface';\nexport type * from './resolve-interface';\nexport type * from './schedule-background-event';\nexport type * from './cancel-background-event';\nexport type * from './get-background-events';\nexport type * from './set-state';\nexport type * from './track-error';\nexport type * from './track-event';\nexport type * from './open-web-socket';\nexport type * from './close-web-socket';\nexport type * from './send-web-socket-message';\nexport type * from './get-web-sockets';\n"]}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/types/methods/index.ts"],"names":[],"mappings":"AAEA,6BAAyB;AAQzB,+BAA2B;AAW3B,mCAA+B;AAE/B,6BAAyB","sourcesContent":["export type * from './clear-state';\nexport type * from './create-interface';\nexport * from './dialog';\nexport type * from './end-trace';\nexport type * from './get-bip32-entropy';\nexport type * from './get-bip32-public-key';\nexport type * from './get-bip44-entropy';\nexport type * from './get-client-status';\nexport type * from './get-currency-rate';\nexport type * from './get-entropy';\nexport * from './get-file';\nexport type * from './get-interface-context';\nexport type * from './get-interface-state';\nexport type * from './get-locale';\nexport type * from './get-preferences';\nexport type * from './get-snaps';\nexport type * from './get-state';\nexport type * from './invoke-keyring';\nexport type * from './invoke-snap';\nexport type * from './list-entropy-sources';\nexport type * from './manage-accounts';\nexport * from './manage-state';\nexport type * from './methods';\nexport * from './notify';\nexport type * from './provider-request';\nexport type * from './request-snaps';\nexport type * from './start-trace';\nexport type * from './update-interface';\nexport type * from './resolve-interface';\nexport type * from './schedule-background-event';\nexport type * from './cancel-background-event';\nexport type * from './get-background-events';\nexport type * from './set-state';\nexport type * from './track-error';\nexport type * from './track-event';\nexport type * from './open-web-socket';\nexport type * from './close-web-socket';\nexport type * from './send-web-socket-message';\nexport type * from './get-web-sockets';\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 {\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"]}
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 {\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 { 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_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_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_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"]}
@@ -3,6 +3,7 @@ import type { ClearStateParams, ClearStateResult } from "./clear-state.cjs";
3
3
  import type { CloseWebSocketParams, CloseWebSocketResult } from "./close-web-socket.cjs";
4
4
  import type { CreateInterfaceParams, CreateInterfaceResult } from "./create-interface.cjs";
5
5
  import type { DialogParams, DialogResult } from "./dialog.cjs";
6
+ import type { EndTraceParams, EndTraceResult } from "./end-trace.cjs";
6
7
  import type { GetBackgroundEventsParams, GetBackgroundEventsResult } from "./get-background-events.cjs";
7
8
  import type { GetBip32EntropyParams, GetBip32EntropyResult } from "./get-bip32-entropy.cjs";
8
9
  import type { GetBip32PublicKeyParams, GetBip32PublicKeyResult } from "./get-bip32-public-key.cjs";
@@ -30,6 +31,7 @@ import type { ResolveInterfaceParams, ResolveInterfaceResult } from "./resolve-i
30
31
  import type { ScheduleBackgroundEventParams, ScheduleBackgroundEventResult } from "./schedule-background-event.cjs";
31
32
  import type { SendWebSocketMessageParams, SendWebSocketMessageResult } from "./send-web-socket-message.cjs";
32
33
  import type { SetStateParams, SetStateResult } from "./set-state.cjs";
34
+ import type { StartTraceParams, StartTraceResult } from "./start-trace.cjs";
33
35
  import type { TrackErrorParams, TrackErrorResult } from "./track-error.cjs";
34
36
  import type { TrackEventParams, TrackEventResult } from "./track-event.cjs";
35
37
  import type { UpdateInterfaceParams, UpdateInterfaceResult } from "./update-interface.cjs";
@@ -41,6 +43,7 @@ import type { Method } from "../../internals/index.cjs";
41
43
  export type SnapMethods = {
42
44
  snap_clearState: [ClearStateParams, ClearStateResult];
43
45
  snap_dialog: [DialogParams, DialogResult];
46
+ snap_endTrace: [EndTraceParams, EndTraceResult];
44
47
  snap_getBip32Entropy: [GetBip32EntropyParams, GetBip32EntropyResult];
45
48
  snap_getBip32PublicKey: [GetBip32PublicKeyParams, GetBip32PublicKeyResult];
46
49
  snap_getBip44Entropy: [GetBip44EntropyParams, GetBip44EntropyResult];
@@ -76,6 +79,7 @@ export type SnapMethods = {
76
79
  ];
77
80
  snap_resolveInterface: [ResolveInterfaceParams, ResolveInterfaceResult];
78
81
  snap_setState: [SetStateParams, SetStateResult];
82
+ snap_startTrace: [StartTraceParams, StartTraceResult];
79
83
  snap_trackEvent: [TrackEventParams, TrackEventResult];
80
84
  snap_trackError: [TrackErrorParams, TrackErrorResult];
81
85
  snap_openWebSocket: [OpenWebSocketParams, OpenWebSocketResult];
@@ -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,+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AE,CAAC,oBAAoB,EAAE,oBAAoB,CAAC,CAAC;IAClE,kBAAkB,EAAE,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAC;IAC/D,yBAAyB,EAAE;QACzB,0BAA0B;QAC1B,0BAA0B;KAC3B,CAAC;IACF,eAAe,EAAE,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC;IAClD,oBAAoB,EAAE,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAC;IACjE,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;CAE/D,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"}
@@ -3,6 +3,7 @@ import type { ClearStateParams, ClearStateResult } from "./clear-state.mjs";
3
3
  import type { CloseWebSocketParams, CloseWebSocketResult } from "./close-web-socket.mjs";
4
4
  import type { CreateInterfaceParams, CreateInterfaceResult } from "./create-interface.mjs";
5
5
  import type { DialogParams, DialogResult } from "./dialog.mjs";
6
+ import type { EndTraceParams, EndTraceResult } from "./end-trace.mjs";
6
7
  import type { GetBackgroundEventsParams, GetBackgroundEventsResult } from "./get-background-events.mjs";
7
8
  import type { GetBip32EntropyParams, GetBip32EntropyResult } from "./get-bip32-entropy.mjs";
8
9
  import type { GetBip32PublicKeyParams, GetBip32PublicKeyResult } from "./get-bip32-public-key.mjs";
@@ -30,6 +31,7 @@ import type { ResolveInterfaceParams, ResolveInterfaceResult } from "./resolve-i
30
31
  import type { ScheduleBackgroundEventParams, ScheduleBackgroundEventResult } from "./schedule-background-event.mjs";
31
32
  import type { SendWebSocketMessageParams, SendWebSocketMessageResult } from "./send-web-socket-message.mjs";
32
33
  import type { SetStateParams, SetStateResult } from "./set-state.mjs";
34
+ import type { StartTraceParams, StartTraceResult } from "./start-trace.mjs";
33
35
  import type { TrackErrorParams, TrackErrorResult } from "./track-error.mjs";
34
36
  import type { TrackEventParams, TrackEventResult } from "./track-event.mjs";
35
37
  import type { UpdateInterfaceParams, UpdateInterfaceResult } from "./update-interface.mjs";
@@ -41,6 +43,7 @@ import type { Method } from "../../internals/index.mjs";
41
43
  export type SnapMethods = {
42
44
  snap_clearState: [ClearStateParams, ClearStateResult];
43
45
  snap_dialog: [DialogParams, DialogResult];
46
+ snap_endTrace: [EndTraceParams, EndTraceResult];
44
47
  snap_getBip32Entropy: [GetBip32EntropyParams, GetBip32EntropyResult];
45
48
  snap_getBip32PublicKey: [GetBip32PublicKeyParams, GetBip32PublicKeyResult];
46
49
  snap_getBip44Entropy: [GetBip44EntropyParams, GetBip44EntropyResult];
@@ -76,6 +79,7 @@ export type SnapMethods = {
76
79
  ];
77
80
  snap_resolveInterface: [ResolveInterfaceParams, ResolveInterfaceResult];
78
81
  snap_setState: [SetStateParams, SetStateResult];
82
+ snap_startTrace: [StartTraceParams, StartTraceResult];
79
83
  snap_trackEvent: [TrackEventParams, TrackEventResult];
80
84
  snap_trackError: [TrackErrorParams, TrackErrorResult];
81
85
  snap_openWebSocket: [OpenWebSocketParams, OpenWebSocketResult];
@@ -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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AAE,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAC;IAC/D,mBAAmB,EAAE,CAAC,oBAAoB,EAAE,oBAAoB,CAAC,CAAC;IAClE,kBAAkB,EAAE,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAC;IAC/D,yBAAyB,EAAE;QACzB,0BAA0B;QAC1B,0BAA0B;KAC3B,CAAC;IACF,eAAe,EAAE,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC;IAClD,oBAAoB,EAAE,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAC;IACjE,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;CAE/D,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 {\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"]}
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 {\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 { 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_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_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_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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=start-trace.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"start-trace.cjs","sourceRoot":"","sources":["../../../src/types/methods/start-trace.ts"],"names":[],"mappings":"","sourcesContent":["import type { Json } from '@metamask/utils';\n\n/**\n * The name of the trace context.\n *\n * The client uses an enum to define the trace names, but to avoid needing to\n * copy and update the enum in multiple places, we use a string type here.\n */\nexport type TraceName = string;\n\n/**\n * A context object to associate traces with each other and generate nested\n * traces.\n */\nexport type TraceContext = Json;\n\n/**\n * A request to create a new performance trace in Sentry.\n */\n// This type is copied from `metamask-extension`, and should match that type.\nexport type TraceRequest = {\n /**\n * Custom data to associate with the trace.\n */\n data?: Record<string, number | string | boolean>;\n\n /**\n * A unique identifier when not tracing a callback.\n * Defaults to 'default' if not provided.\n */\n id?: string;\n\n /**\n * The name of the trace.\n */\n name: TraceName;\n\n /**\n * The parent context of the trace.\n * If provided, the trace will be nested under the parent trace.\n */\n parentContext?: TraceContext;\n\n /**\n * Override the start time of the trace.\n */\n startTime?: number;\n\n /**\n * Custom tags to associate with the trace.\n */\n tags?: Record<string, number | string | boolean>;\n};\n\n/**\n * The request parameters for the `snap_startTrace` method. This method is used\n * to start a performance trace in Sentry.\n *\n * Note that this method is only available to preinstalled Snaps.\n */\nexport type StartTraceParams = TraceRequest;\n\n/**\n * The result returned by the `snap_startTrace` method.\n *\n * This is the trace context that can be used to end the trace later.\n */\nexport type StartTraceResult = TraceContext;\n"]}
@@ -0,0 +1,58 @@
1
+ import type { Json } from "@metamask/utils";
2
+ /**
3
+ * The name of the trace context.
4
+ *
5
+ * The client uses an enum to define the trace names, but to avoid needing to
6
+ * copy and update the enum in multiple places, we use a string type here.
7
+ */
8
+ export type TraceName = string;
9
+ /**
10
+ * A context object to associate traces with each other and generate nested
11
+ * traces.
12
+ */
13
+ export type TraceContext = Json;
14
+ /**
15
+ * A request to create a new performance trace in Sentry.
16
+ */
17
+ export type TraceRequest = {
18
+ /**
19
+ * Custom data to associate with the trace.
20
+ */
21
+ data?: Record<string, number | string | boolean>;
22
+ /**
23
+ * A unique identifier when not tracing a callback.
24
+ * Defaults to 'default' if not provided.
25
+ */
26
+ id?: string;
27
+ /**
28
+ * The name of the trace.
29
+ */
30
+ name: TraceName;
31
+ /**
32
+ * The parent context of the trace.
33
+ * If provided, the trace will be nested under the parent trace.
34
+ */
35
+ parentContext?: TraceContext;
36
+ /**
37
+ * Override the start time of the trace.
38
+ */
39
+ startTime?: number;
40
+ /**
41
+ * Custom tags to associate with the trace.
42
+ */
43
+ tags?: Record<string, number | string | boolean>;
44
+ };
45
+ /**
46
+ * The request parameters for the `snap_startTrace` method. This method is used
47
+ * to start a performance trace in Sentry.
48
+ *
49
+ * Note that this method is only available to preinstalled Snaps.
50
+ */
51
+ export type StartTraceParams = TraceRequest;
52
+ /**
53
+ * The result returned by the `snap_startTrace` method.
54
+ *
55
+ * This is the trace context that can be used to end the trace later.
56
+ */
57
+ export type StartTraceResult = TraceContext;
58
+ //# sourceMappingURL=start-trace.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"start-trace.d.cts","sourceRoot":"","sources":["../../../src/types/methods/start-trace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,wBAAwB;AAE5C;;;;;GAKG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC;AAE/B;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC;AAEhC;;GAEG;AAEH,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;IAEjD;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;IAEhB;;;OAGG;IACH,aAAa,CAAC,EAAE,YAAY,CAAC;IAE7B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;CAClD,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC;AAE5C;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC"}
@@ -0,0 +1,58 @@
1
+ import type { Json } from "@metamask/utils";
2
+ /**
3
+ * The name of the trace context.
4
+ *
5
+ * The client uses an enum to define the trace names, but to avoid needing to
6
+ * copy and update the enum in multiple places, we use a string type here.
7
+ */
8
+ export type TraceName = string;
9
+ /**
10
+ * A context object to associate traces with each other and generate nested
11
+ * traces.
12
+ */
13
+ export type TraceContext = Json;
14
+ /**
15
+ * A request to create a new performance trace in Sentry.
16
+ */
17
+ export type TraceRequest = {
18
+ /**
19
+ * Custom data to associate with the trace.
20
+ */
21
+ data?: Record<string, number | string | boolean>;
22
+ /**
23
+ * A unique identifier when not tracing a callback.
24
+ * Defaults to 'default' if not provided.
25
+ */
26
+ id?: string;
27
+ /**
28
+ * The name of the trace.
29
+ */
30
+ name: TraceName;
31
+ /**
32
+ * The parent context of the trace.
33
+ * If provided, the trace will be nested under the parent trace.
34
+ */
35
+ parentContext?: TraceContext;
36
+ /**
37
+ * Override the start time of the trace.
38
+ */
39
+ startTime?: number;
40
+ /**
41
+ * Custom tags to associate with the trace.
42
+ */
43
+ tags?: Record<string, number | string | boolean>;
44
+ };
45
+ /**
46
+ * The request parameters for the `snap_startTrace` method. This method is used
47
+ * to start a performance trace in Sentry.
48
+ *
49
+ * Note that this method is only available to preinstalled Snaps.
50
+ */
51
+ export type StartTraceParams = TraceRequest;
52
+ /**
53
+ * The result returned by the `snap_startTrace` method.
54
+ *
55
+ * This is the trace context that can be used to end the trace later.
56
+ */
57
+ export type StartTraceResult = TraceContext;
58
+ //# sourceMappingURL=start-trace.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"start-trace.d.mts","sourceRoot":"","sources":["../../../src/types/methods/start-trace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,wBAAwB;AAE5C;;;;;GAKG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC;AAE/B;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC;AAEhC;;GAEG;AAEH,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;IAEjD;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;IAEhB;;;OAGG;IACH,aAAa,CAAC,EAAE,YAAY,CAAC;IAE7B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;CAClD,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC;AAE5C;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=start-trace.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"start-trace.mjs","sourceRoot":"","sources":["../../../src/types/methods/start-trace.ts"],"names":[],"mappings":"","sourcesContent":["import type { Json } from '@metamask/utils';\n\n/**\n * The name of the trace context.\n *\n * The client uses an enum to define the trace names, but to avoid needing to\n * copy and update the enum in multiple places, we use a string type here.\n */\nexport type TraceName = string;\n\n/**\n * A context object to associate traces with each other and generate nested\n * traces.\n */\nexport type TraceContext = Json;\n\n/**\n * A request to create a new performance trace in Sentry.\n */\n// This type is copied from `metamask-extension`, and should match that type.\nexport type TraceRequest = {\n /**\n * Custom data to associate with the trace.\n */\n data?: Record<string, number | string | boolean>;\n\n /**\n * A unique identifier when not tracing a callback.\n * Defaults to 'default' if not provided.\n */\n id?: string;\n\n /**\n * The name of the trace.\n */\n name: TraceName;\n\n /**\n * The parent context of the trace.\n * If provided, the trace will be nested under the parent trace.\n */\n parentContext?: TraceContext;\n\n /**\n * Override the start time of the trace.\n */\n startTime?: number;\n\n /**\n * Custom tags to associate with the trace.\n */\n tags?: Record<string, number | string | boolean>;\n};\n\n/**\n * The request parameters for the `snap_startTrace` method. This method is used\n * to start a performance trace in Sentry.\n *\n * Note that this method is only available to preinstalled Snaps.\n */\nexport type StartTraceParams = TraceRequest;\n\n/**\n * The result returned by the `snap_startTrace` method.\n *\n * This is the trace context that can be used to end the trace later.\n */\nexport type StartTraceResult = TraceContext;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask/snaps-sdk",
3
- "version": "9.0.0",
3
+ "version": "9.2.0",
4
4
  "description": "A library containing the core functionality for building MetaMask Snaps",
5
5
  "keywords": [
6
6
  "MetaMask",
@@ -93,9 +93,9 @@
93
93
  "dependencies": {
94
94
  "@metamask/key-tree": "^10.1.1",
95
95
  "@metamask/providers": "^22.1.0",
96
- "@metamask/rpc-errors": "^7.0.2",
96
+ "@metamask/rpc-errors": "^7.0.3",
97
97
  "@metamask/superstruct": "^3.2.1",
98
- "@metamask/utils": "^11.4.0"
98
+ "@metamask/utils": "^11.4.2"
99
99
  },
100
100
  "devDependencies": {
101
101
  "@lavamoat/allow-scripts": "^3.3.4",