@xyo-network/xl1-protocol 1.12.46 → 1.12.47
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.
|
@@ -4,7 +4,7 @@ import type { JsonValue } from '@xylabs/object';
|
|
|
4
4
|
* See - https://eips.ethereum.org/EIPS/eip-2255#specification
|
|
5
5
|
*/
|
|
6
6
|
export interface PermissionRequest {
|
|
7
|
-
[
|
|
7
|
+
[parentCapability: string]: {
|
|
8
8
|
[caveatName: string]: JsonValue;
|
|
9
9
|
};
|
|
10
10
|
}
|
|
@@ -13,10 +13,10 @@ export interface PermissionRequest {
|
|
|
13
13
|
* See - https://eips.ethereum.org/EIPS/eip-2255#specification
|
|
14
14
|
*/
|
|
15
15
|
export interface RequestedPermission {
|
|
16
|
-
/** Permission identifier (i.e. RPC method, action, etc.) */
|
|
17
|
-
capability: string;
|
|
18
16
|
/** Optional timestamp for when the permission was granted */
|
|
19
17
|
date?: number;
|
|
18
|
+
/** Permission identifier (i.e. RPC method, action, etc.) */
|
|
19
|
+
parentCapability: string;
|
|
20
20
|
}
|
|
21
21
|
export type CaveatTypes = 'chain' | 'expiration' | 'filteredResponse' | 'rateLimit' | 'restrictReturnedAccounts';
|
|
22
22
|
/**
|
|
@@ -34,12 +34,12 @@ export interface Caveats {
|
|
|
34
34
|
* See - https://eips.ethereum.org/EIPS/eip-2255#specification
|
|
35
35
|
*/
|
|
36
36
|
export interface Permission {
|
|
37
|
-
/** Permission identifier (i.e. RPC method, action, etc.) */
|
|
38
|
-
capability: string;
|
|
39
37
|
/** Caveats for the permission, if applicable (i.e. allowed accounts, signing, etc.) */
|
|
40
38
|
caveats?: Caveats[];
|
|
41
39
|
/** Invoker for the given permission (URI, domain, webpage, address, etc.) */
|
|
42
40
|
invoker: string;
|
|
41
|
+
/** Permission identifier (i.e. RPC method, action, etc.) */
|
|
42
|
+
parentCapability: string;
|
|
43
43
|
}
|
|
44
44
|
export interface InvokerPermission extends Permission {
|
|
45
45
|
/** Time at which the permission was granted */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InvokerPermission.d.ts","sourceRoot":"","sources":["../../../../src/provider/permissions/InvokerPermission.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE/C;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,CAAC,
|
|
1
|
+
{"version":3,"file":"InvokerPermission.d.ts","sourceRoot":"","sources":["../../../../src/provider/permissions/InvokerPermission.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE/C;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,CAAC,gBAAgB,EAAE,MAAM,GAAG;QAC1B,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;KAChC,CAAA;CACF;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,6DAA6D;IAC7D,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,4DAA4D;IAC5D,gBAAgB,EAAE,MAAM,CAAA;CACzB;AAED,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,YAAY,GAAG,kBAAkB,GAAG,WAAW,GAAG,0BAA0B,CAAA;AAEhH;;;GAGG;AACH,MAAM,WAAW,OAAO;IACtB,qBAAqB;IACrB,IAAI,EAAE,WAAW,CAAA;IACjB,yGAAyG;IACzG,KAAK,EAAE,SAAS,CAAA;CACjB;AAED;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB,uFAAuF;IACvF,OAAO,CAAC,EAAE,OAAO,EAAE,CAAA;IACnB,6EAA6E;IAC7E,OAAO,EAAE,MAAM,CAAA;IACf,4DAA4D;IAC5D,gBAAgB,EAAE,MAAM,CAAA;CACzB;AAED,MAAM,WAAW,iBAAkB,SAAQ,UAAU;IACnD,+CAA+C;IAC/C,IAAI,CAAC,EAAE,MAAM,CAAA;CACd"}
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ import type { JsonValue } from '@xylabs/object'
|
|
|
5
5
|
* See - https://eips.ethereum.org/EIPS/eip-2255#specification
|
|
6
6
|
*/
|
|
7
7
|
export interface PermissionRequest {
|
|
8
|
-
[
|
|
8
|
+
[parentCapability: string]: {
|
|
9
9
|
[caveatName: string]: JsonValue
|
|
10
10
|
}
|
|
11
11
|
}
|
|
@@ -15,10 +15,10 @@ export interface PermissionRequest {
|
|
|
15
15
|
* See - https://eips.ethereum.org/EIPS/eip-2255#specification
|
|
16
16
|
*/
|
|
17
17
|
export interface RequestedPermission {
|
|
18
|
-
/** Permission identifier (i.e. RPC method, action, etc.) */
|
|
19
|
-
capability: string
|
|
20
18
|
/** Optional timestamp for when the permission was granted */
|
|
21
19
|
date?: number
|
|
20
|
+
/** Permission identifier (i.e. RPC method, action, etc.) */
|
|
21
|
+
parentCapability: string
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
export type CaveatTypes = 'chain' | 'expiration' | 'filteredResponse' | 'rateLimit' | 'restrictReturnedAccounts'
|
|
@@ -39,12 +39,12 @@ export interface Caveats {
|
|
|
39
39
|
* See - https://eips.ethereum.org/EIPS/eip-2255#specification
|
|
40
40
|
*/
|
|
41
41
|
export interface Permission {
|
|
42
|
-
/** Permission identifier (i.e. RPC method, action, etc.) */
|
|
43
|
-
capability: string
|
|
44
42
|
/** Caveats for the permission, if applicable (i.e. allowed accounts, signing, etc.) */
|
|
45
43
|
caveats?: Caveats[]
|
|
46
44
|
/** Invoker for the given permission (URI, domain, webpage, address, etc.) */
|
|
47
45
|
invoker: string
|
|
46
|
+
/** Permission identifier (i.e. RPC method, action, etc.) */
|
|
47
|
+
parentCapability: string
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
export interface InvokerPermission extends Permission {
|