@xyo-network/xl1-protocol 1.12.50 → 1.12.51
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.
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Promisable } from '@xylabs/promise';
|
|
2
1
|
import type { InvokerPermission, PermissionRequest, RequestedPermission } from './InvokerPermission.ts';
|
|
3
2
|
export interface XyoPermissions {
|
|
4
3
|
/**
|
|
@@ -9,9 +8,9 @@ export interface XyoPermissions {
|
|
|
9
8
|
*
|
|
10
9
|
* See - https://eips.ethereum.org/EIPS/eip-2255#specification
|
|
11
10
|
*/
|
|
12
|
-
getPermissions():
|
|
13
|
-
requestPermissions(permissions: PermissionRequest[]):
|
|
14
|
-
revokePermissions(permissions: PermissionRequest):
|
|
11
|
+
getPermissions(): Promise<InvokerPermission[]>;
|
|
12
|
+
requestPermissions(permissions: PermissionRequest[]): Promise<RequestedPermission[]>;
|
|
13
|
+
revokePermissions(permissions: PermissionRequest): Promise<RequestedPermission[]>;
|
|
15
14
|
}
|
|
16
15
|
export interface PermissionsProvider extends XyoPermissions {
|
|
17
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XyoPermissions.d.ts","sourceRoot":"","sources":["../../../../src/provider/permissions/XyoPermissions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"XyoPermissions.d.ts","sourceRoot":"","sources":["../../../../src/provider/permissions/XyoPermissions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EAAE,iBAAiB,EAAE,mBAAmB,EAC1D,MAAM,wBAAwB,CAAA;AAE/B,MAAM,WAAW,cAAc;IAC7B;;;;;;;OAOG;IACH,cAAc,IAAI,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAAA;IAE9C,kBAAkB,CAAC,WAAW,EAAE,iBAAiB,EAAE,GAAG,OAAO,CAAC,mBAAmB,EAAE,CAAC,CAAA;IAEpF,iBAAiB,CAAC,WAAW,EAAE,iBAAiB,GAAG,OAAO,CAAC,mBAAmB,EAAE,CAAC,CAAA;CAClF;AAGD,MAAM,WAAW,mBAAoB,SAAQ,cAAc;CAAG"}
|
package/package.json
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import type { Promisable } from '@xylabs/promise'
|
|
2
|
-
|
|
3
1
|
import type {
|
|
4
2
|
InvokerPermission, PermissionRequest, RequestedPermission,
|
|
5
3
|
} from './InvokerPermission.ts'
|
|
@@ -13,11 +11,11 @@ export interface XyoPermissions {
|
|
|
13
11
|
*
|
|
14
12
|
* See - https://eips.ethereum.org/EIPS/eip-2255#specification
|
|
15
13
|
*/
|
|
16
|
-
getPermissions():
|
|
14
|
+
getPermissions(): Promise<InvokerPermission[]>
|
|
17
15
|
// Given a permissions request, attempts to request the permissions from the user
|
|
18
|
-
requestPermissions(permissions: PermissionRequest[]):
|
|
16
|
+
requestPermissions(permissions: PermissionRequest[]): Promise<RequestedPermission[]>
|
|
19
17
|
// Given a permissions request, attempts to revoke the permissions from the user
|
|
20
|
-
revokePermissions(permissions: PermissionRequest):
|
|
18
|
+
revokePermissions(permissions: PermissionRequest): Promise<RequestedPermission[]>
|
|
21
19
|
}
|
|
22
20
|
|
|
23
21
|
// @deprecated - use XyoPermissions instead
|