@metamask-previews/keyring-internal-api 10.0.0-25e4b24 → 10.0.0-cd75414
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/dist/compatibility/keyring-request.d.cts +5 -5
- package/dist/compatibility/keyring-request.d.mts +5 -5
- package/dist/types.d.cts +176 -176
- package/dist/types.d.mts +176 -176
- package/package.json +1 -1
|
@@ -5,12 +5,12 @@ import { type Infer } from "@metamask/superstruct";
|
|
|
5
5
|
*/
|
|
6
6
|
export declare const KeyringRequestWithoutOriginStruct: import("@metamask/superstruct").Struct<{
|
|
7
7
|
id: string;
|
|
8
|
+
scope: string;
|
|
9
|
+
account: string;
|
|
8
10
|
request: {
|
|
9
11
|
method: string;
|
|
10
12
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
11
13
|
};
|
|
12
|
-
scope: string;
|
|
13
|
-
account: string;
|
|
14
14
|
}, Omit<{
|
|
15
15
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
16
16
|
scope: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -21,7 +21,7 @@ export declare const KeyringRequestWithoutOriginStruct: import("@metamask/supers
|
|
|
21
21
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
22
22
|
}, {
|
|
23
23
|
method: import("@metamask/superstruct").Struct<string, null>;
|
|
24
|
-
params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/utils").
|
|
24
|
+
params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/keyring-utils").ExactOptionalTag | import("@metamask/utils").Json[], null>;
|
|
25
25
|
}>;
|
|
26
26
|
}, "origin">>;
|
|
27
27
|
export type KeyringRequestWithoutOrigin = Infer<typeof KeyringRequestWithoutOriginStruct>;
|
|
@@ -35,8 +35,8 @@ export declare const KeyringResponseWithoutOriginStruct: import("@metamask/super
|
|
|
35
35
|
url?: string;
|
|
36
36
|
};
|
|
37
37
|
} | {
|
|
38
|
-
result: import("@metamask/utils").Json;
|
|
39
38
|
pending: false;
|
|
39
|
+
result: import("@metamask/utils").Json;
|
|
40
40
|
}, null>;
|
|
41
41
|
export type KeyringResponseWithoutOrigin = Infer<typeof KeyringResponseWithoutOriginStruct>;
|
|
42
42
|
export declare const SubmitRequestResponseV1Struct: import("@metamask/superstruct").Struct<{
|
|
@@ -46,8 +46,8 @@ export declare const SubmitRequestResponseV1Struct: import("@metamask/superstruc
|
|
|
46
46
|
url?: string;
|
|
47
47
|
};
|
|
48
48
|
} | {
|
|
49
|
-
result: import("@metamask/utils").Json;
|
|
50
49
|
pending: false;
|
|
50
|
+
result: import("@metamask/utils").Json;
|
|
51
51
|
}, null>;
|
|
52
52
|
/**
|
|
53
53
|
* Converts a keyring request to a keyring request v1.
|
|
@@ -5,12 +5,12 @@ import { type Infer } from "@metamask/superstruct";
|
|
|
5
5
|
*/
|
|
6
6
|
export declare const KeyringRequestWithoutOriginStruct: import("@metamask/superstruct").Struct<{
|
|
7
7
|
id: string;
|
|
8
|
+
scope: string;
|
|
9
|
+
account: string;
|
|
8
10
|
request: {
|
|
9
11
|
method: string;
|
|
10
12
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
11
13
|
};
|
|
12
|
-
scope: string;
|
|
13
|
-
account: string;
|
|
14
14
|
}, Omit<{
|
|
15
15
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
16
16
|
scope: import("@metamask/superstruct").Struct<string, null>;
|
|
@@ -21,7 +21,7 @@ export declare const KeyringRequestWithoutOriginStruct: import("@metamask/supers
|
|
|
21
21
|
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
22
22
|
}, {
|
|
23
23
|
method: import("@metamask/superstruct").Struct<string, null>;
|
|
24
|
-
params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/utils").
|
|
24
|
+
params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/keyring-utils").ExactOptionalTag | import("@metamask/utils").Json[], null>;
|
|
25
25
|
}>;
|
|
26
26
|
}, "origin">>;
|
|
27
27
|
export type KeyringRequestWithoutOrigin = Infer<typeof KeyringRequestWithoutOriginStruct>;
|
|
@@ -35,8 +35,8 @@ export declare const KeyringResponseWithoutOriginStruct: import("@metamask/super
|
|
|
35
35
|
url?: string;
|
|
36
36
|
};
|
|
37
37
|
} | {
|
|
38
|
-
result: import("@metamask/utils").Json;
|
|
39
38
|
pending: false;
|
|
39
|
+
result: import("@metamask/utils").Json;
|
|
40
40
|
}, null>;
|
|
41
41
|
export type KeyringResponseWithoutOrigin = Infer<typeof KeyringResponseWithoutOriginStruct>;
|
|
42
42
|
export declare const SubmitRequestResponseV1Struct: import("@metamask/superstruct").Struct<{
|
|
@@ -46,8 +46,8 @@ export declare const SubmitRequestResponseV1Struct: import("@metamask/superstruc
|
|
|
46
46
|
url?: string;
|
|
47
47
|
};
|
|
48
48
|
} | {
|
|
49
|
-
result: import("@metamask/utils").Json;
|
|
50
49
|
pending: false;
|
|
50
|
+
result: import("@metamask/utils").Json;
|
|
51
51
|
}, null>;
|
|
52
52
|
/**
|
|
53
53
|
* Converts a keyring request to a keyring request v1.
|