@xyo-network/xl1-protocol 1.7.20 → 1.7.21
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/neutral/provider/v1/PermissionsProvider.d.ts +54 -0
- package/dist/neutral/provider/v1/PermissionsProvider.d.ts.map +1 -0
- package/dist/neutral/provider/v1/XyoClient.d.ts +7 -0
- package/dist/neutral/provider/v1/XyoClient.d.ts.map +1 -0
- package/dist/neutral/provider/v1/XyoGateway.d.ts +28 -47
- package/dist/neutral/provider/v1/XyoGateway.d.ts.map +1 -1
- package/dist/neutral/provider/v1/index.d.ts +2 -0
- package/dist/neutral/provider/v1/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/provider/v1/PermissionsProvider.ts +60 -0
- package/src/provider/v1/XyoClient.ts +7 -0
- package/src/provider/v1/XyoGateway.ts +28 -53
- package/src/provider/v1/index.ts +2 -0
- package/documents/proof-of-perfect/proof-of-perfect-draft.log +0 -741
- package/documents/xyol1-white-paper/white-paper-draft.log +0 -547
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { JsonValue } from '@xylabs/object';
|
|
2
|
+
import type { Promisable } from '@xylabs/promise';
|
|
3
|
+
/**
|
|
4
|
+
* Modeled after EIP-2255
|
|
5
|
+
* See - https://eips.ethereum.org/EIPS/eip-2255#specification
|
|
6
|
+
*/
|
|
7
|
+
export interface PermissionRequest {
|
|
8
|
+
[capability: string]: {
|
|
9
|
+
[caveatName: string]: JsonValue;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Modeled after EIP-2255
|
|
14
|
+
* See - https://eips.ethereum.org/EIPS/eip-2255#specification
|
|
15
|
+
*/
|
|
16
|
+
export interface RequestedPermission {
|
|
17
|
+
/** Permission identifier (i.e. RPC method, action, etc.) */
|
|
18
|
+
capability: string;
|
|
19
|
+
/** Optional timestamp for when the permission was granted */
|
|
20
|
+
date?: number;
|
|
21
|
+
}
|
|
22
|
+
export type CaveatTypes = 'chain' | 'expiration' | 'filteredResponse' | 'rateLimit';
|
|
23
|
+
/**
|
|
24
|
+
* Modeled after EIP-2255
|
|
25
|
+
* See - https://eips.ethereum.org/EIPS/eip-2255#specification
|
|
26
|
+
*/
|
|
27
|
+
export interface Caveats {
|
|
28
|
+
/** Type of caveat */
|
|
29
|
+
type: CaveatTypes;
|
|
30
|
+
/** Value for the caveat (i.e. chain id, subset of accounts, expiration, max request per minute, etc.) */
|
|
31
|
+
value: JsonValue;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Modeled after EIP-2255
|
|
35
|
+
* See - https://eips.ethereum.org/EIPS/eip-2255#specification
|
|
36
|
+
*/
|
|
37
|
+
export interface Permission {
|
|
38
|
+
/** Permission identifier (i.e. RPC method, action, etc.) */
|
|
39
|
+
capability: string;
|
|
40
|
+
/** Caveats for the permission, if applicable (i.e. allowed accounts, signing, etc.) */
|
|
41
|
+
caveats?: Caveats[];
|
|
42
|
+
/** Invoker for the given permission (URI, domain, webpage, address, etc.) */
|
|
43
|
+
invoker: string;
|
|
44
|
+
}
|
|
45
|
+
export interface InvokerPermission extends Permission {
|
|
46
|
+
/** Time at which the permission was granted */
|
|
47
|
+
date?: number;
|
|
48
|
+
}
|
|
49
|
+
export interface PermissionsProvider {
|
|
50
|
+
getPermissions(): Promisable<InvokerPermission[]>;
|
|
51
|
+
requestPermissions(permissions: Permission[]): Promisable<boolean>;
|
|
52
|
+
revokePermissions(permissions: Permission[]): Promisable<boolean>;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=PermissionsProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PermissionsProvider.d.ts","sourceRoot":"","sources":["../../../../src/provider/v1/PermissionsProvider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,CAAC,UAAU,EAAE,MAAM,GAAG;QACpB,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;KAChC,CAAA;CACF;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,4DAA4D;IAC5D,UAAU,EAAE,MAAM,CAAA;IAClB,6DAA6D;IAC7D,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,YAAY,GAAG,kBAAkB,GAAG,WAAW,CAAA;AAEnF;;;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,4DAA4D;IAC5D,UAAU,EAAE,MAAM,CAAA;IAClB,uFAAuF;IACvF,OAAO,CAAC,EAAE,OAAO,EAAE,CAAA;IACnB,6EAA6E;IAC7E,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,iBAAkB,SAAQ,UAAU;IACnD,+CAA+C;IAC/C,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,mBAAmB;IAClC,cAAc,IAAI,UAAU,CAAC,iBAAiB,EAAE,CAAC,CAAA;IACjD,kBAAkB,CAAC,WAAW,EAAE,UAAU,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,CAAA;IAClE,iBAAiB,CAAC,WAAW,EAAE,UAAU,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,CAAA;CAClE"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { PermissionsProvider } from './PermissionsProvider.ts';
|
|
2
|
+
import type { XyoGatewayProvider } from './XyoGateway.ts';
|
|
3
|
+
export interface XyoClient {
|
|
4
|
+
gateways: Readonly<Record<string, XyoGatewayProvider>>;
|
|
5
|
+
permissionsProvider: PermissionsProvider;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=XyoClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"XyoClient.d.ts","sourceRoot":"","sources":["../../../../src/provider/v1/XyoClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AACnE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAEzD,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC,CAAA;IACtD,mBAAmB,EAAE,mBAAmB,CAAA;CACzC"}
|
|
@@ -1,59 +1,40 @@
|
|
|
1
|
-
import type { JsonValue } from '@xylabs/object';
|
|
2
1
|
import type { Promisable } from '@xylabs/promise';
|
|
2
|
+
import type { InvokerPermission, Permission } from './PermissionsProvider.ts';
|
|
3
3
|
import type { TransactionSubmitter } from './TransactionSubmitter.ts';
|
|
4
4
|
import type { XyoConnectionProvider, XyoRpcConnectionConfig } from './XyoConnection.ts';
|
|
5
|
-
|
|
6
|
-
* Modeled after EIP-2255
|
|
7
|
-
* See - https://eips.ethereum.org/EIPS/eip-2255#specification
|
|
8
|
-
*/
|
|
9
|
-
export interface PermissionRequest {
|
|
10
|
-
[capability: string]: {
|
|
11
|
-
[caveatName: string]: JsonValue;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Modeled after EIP-2255
|
|
16
|
-
* See - https://eips.ethereum.org/EIPS/eip-2255#specification
|
|
17
|
-
*/
|
|
18
|
-
export interface RequestedPermission {
|
|
19
|
-
/** Permission identifier (i.e. RPC method, action, etc.) */
|
|
20
|
-
capability: string;
|
|
21
|
-
/** Optional timestamp for when the permission was granted */
|
|
22
|
-
date?: number;
|
|
23
|
-
}
|
|
24
|
-
export type CaveatTypes = 'chain' | 'expiration' | 'filteredResponse' | 'rateLimit';
|
|
25
|
-
/**
|
|
26
|
-
* Modeled after EIP-2255
|
|
27
|
-
* See - https://eips.ethereum.org/EIPS/eip-2255#specification
|
|
28
|
-
*/
|
|
29
|
-
export interface Caveats {
|
|
30
|
-
/** Type of caveat */
|
|
31
|
-
type: CaveatTypes;
|
|
32
|
-
/** Value for the caveat (i.e. chain id, subset of accounts, expiration, max request per minute, etc.) */
|
|
33
|
-
value: JsonValue;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Modeled after EIP-2255
|
|
37
|
-
* See - https://eips.ethereum.org/EIPS/eip-2255#specification
|
|
38
|
-
*/
|
|
39
|
-
export interface Permission {
|
|
40
|
-
/** Permission identifier (i.e. RPC method, action, etc.) */
|
|
41
|
-
capability: string;
|
|
42
|
-
/** Caveats for the permission, if applicable (i.e. allowed accounts, signing, etc.) */
|
|
43
|
-
caveats?: Caveats[];
|
|
44
|
-
/** Invoker for the given permission (URI, domain, webpage, address, etc.) */
|
|
45
|
-
invoker: string;
|
|
46
|
-
}
|
|
47
|
-
export interface InvokerPermission extends Permission {
|
|
48
|
-
/** Time at which the permission was granted */
|
|
49
|
-
date?: number;
|
|
50
|
-
}
|
|
5
|
+
import type { XyoSigner } from './XyoSigner.ts';
|
|
51
6
|
export interface XyoGatewayProvider extends TransactionSubmitter {
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated use `connection()` instead
|
|
9
|
+
*/
|
|
52
10
|
activeConnection(): Promisable<XyoConnectionProvider | undefined>;
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated use `connection()` instead
|
|
13
|
+
*/
|
|
53
14
|
addConnection(config: XyoRpcConnectionConfig): Promisable<XyoConnectionProvider>;
|
|
15
|
+
/**
|
|
16
|
+
* Returns the connection provider for this gateway.
|
|
17
|
+
*/
|
|
18
|
+
connection(): Promisable<XyoConnectionProvider>;
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated use `connection()` instead
|
|
21
|
+
*/
|
|
54
22
|
connections(): Promisable<Record<string, XyoConnectionProvider>>;
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated Permissions now at Client level
|
|
25
|
+
*/
|
|
55
26
|
getPermissions(): Promisable<InvokerPermission[]>;
|
|
27
|
+
/**
|
|
28
|
+
* @deprecated Permissions now at Client level
|
|
29
|
+
*/
|
|
56
30
|
requestPermissions(permissions: Permission[]): Promisable<boolean>;
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated Permissions now at Client level
|
|
33
|
+
*/
|
|
57
34
|
revokePermissions(permissions: Permission[]): Promisable<boolean>;
|
|
35
|
+
/**
|
|
36
|
+
* Returns the signer for this gateway.
|
|
37
|
+
*/
|
|
38
|
+
signer(): Promisable<XyoSigner>;
|
|
58
39
|
}
|
|
59
40
|
//# sourceMappingURL=XyoGateway.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XyoGateway.d.ts","sourceRoot":"","sources":["../../../../src/provider/v1/XyoGateway.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"XyoGateway.d.ts","sourceRoot":"","sources":["../../../../src/provider/v1/XyoGateway.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAC7E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AACrE,OAAO,KAAK,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAA;AACvF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE/C,MAAM,WAAW,kBAAmB,SAAQ,oBAAoB;IAC9D;;OAEG;IACH,gBAAgB,IAAI,UAAU,CAAC,qBAAqB,GAAG,SAAS,CAAC,CAAA;IACjE;;OAEG;IACH,aAAa,CAAC,MAAM,EAAE,sBAAsB,GAAG,UAAU,CAAC,qBAAqB,CAAC,CAAA;IAChF;;OAEG;IACH,UAAU,IAAI,UAAU,CAAC,qBAAqB,CAAC,CAAA;IAC/C;;OAEG;IACH,WAAW,IAAI,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC,CAAA;IAChE;;OAEG;IACH,cAAc,IAAI,UAAU,CAAC,iBAAiB,EAAE,CAAC,CAAA;IACjD;;OAEG;IACH,kBAAkB,CAAC,WAAW,EAAE,UAAU,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,CAAA;IAClE;;OAEG;IACH,iBAAiB,CAAC,WAAW,EAAE,UAAU,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,CAAA;IACjE;;OAEG;IACH,MAAM,IAAI,UAAU,CAAC,SAAS,CAAC,CAAA;CAChC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/provider/v1/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/provider/v1/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA;AACxC,cAAc,2BAA2B,CAAA;AACzC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { JsonValue } from '@xylabs/object'
|
|
2
|
+
import type { Promisable } from '@xylabs/promise'
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Modeled after EIP-2255
|
|
6
|
+
* See - https://eips.ethereum.org/EIPS/eip-2255#specification
|
|
7
|
+
*/
|
|
8
|
+
export interface PermissionRequest {
|
|
9
|
+
[capability: string]: {
|
|
10
|
+
[caveatName: string]: JsonValue
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Modeled after EIP-2255
|
|
16
|
+
* See - https://eips.ethereum.org/EIPS/eip-2255#specification
|
|
17
|
+
*/
|
|
18
|
+
export interface RequestedPermission {
|
|
19
|
+
/** Permission identifier (i.e. RPC method, action, etc.) */
|
|
20
|
+
capability: string
|
|
21
|
+
/** Optional timestamp for when the permission was granted */
|
|
22
|
+
date?: number
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type CaveatTypes = 'chain' | 'expiration' | 'filteredResponse' | 'rateLimit'
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Modeled after EIP-2255
|
|
29
|
+
* See - https://eips.ethereum.org/EIPS/eip-2255#specification
|
|
30
|
+
*/
|
|
31
|
+
export interface Caveats {
|
|
32
|
+
/** Type of caveat */
|
|
33
|
+
type: CaveatTypes
|
|
34
|
+
/** Value for the caveat (i.e. chain id, subset of accounts, expiration, max request per minute, etc.) */
|
|
35
|
+
value: JsonValue
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Modeled after EIP-2255
|
|
40
|
+
* See - https://eips.ethereum.org/EIPS/eip-2255#specification
|
|
41
|
+
*/
|
|
42
|
+
export interface Permission {
|
|
43
|
+
/** Permission identifier (i.e. RPC method, action, etc.) */
|
|
44
|
+
capability: string
|
|
45
|
+
/** Caveats for the permission, if applicable (i.e. allowed accounts, signing, etc.) */
|
|
46
|
+
caveats?: Caveats[]
|
|
47
|
+
/** Invoker for the given permission (URI, domain, webpage, address, etc.) */
|
|
48
|
+
invoker: string
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface InvokerPermission extends Permission {
|
|
52
|
+
/** Time at which the permission was granted */
|
|
53
|
+
date?: number
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface PermissionsProvider {
|
|
57
|
+
getPermissions(): Promisable<InvokerPermission[]>
|
|
58
|
+
requestPermissions(permissions: Permission[]): Promisable<boolean>
|
|
59
|
+
revokePermissions(permissions: Permission[]): Promisable<boolean>
|
|
60
|
+
}
|
|
@@ -1,66 +1,41 @@
|
|
|
1
|
-
import type { JsonValue } from '@xylabs/object'
|
|
2
1
|
import type { Promisable } from '@xylabs/promise'
|
|
3
2
|
|
|
3
|
+
import type { InvokerPermission, Permission } from './PermissionsProvider.ts'
|
|
4
4
|
import type { TransactionSubmitter } from './TransactionSubmitter.ts'
|
|
5
5
|
import type { XyoConnectionProvider, XyoRpcConnectionConfig } from './XyoConnection.ts'
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Modeled after EIP-2255
|
|
9
|
-
* See - https://eips.ethereum.org/EIPS/eip-2255#specification
|
|
10
|
-
*/
|
|
11
|
-
export interface PermissionRequest {
|
|
12
|
-
[capability: string]: {
|
|
13
|
-
[caveatName: string]: JsonValue
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Modeled after EIP-2255
|
|
19
|
-
* See - https://eips.ethereum.org/EIPS/eip-2255#specification
|
|
20
|
-
*/
|
|
21
|
-
export interface RequestedPermission {
|
|
22
|
-
/** Permission identifier (i.e. RPC method, action, etc.) */
|
|
23
|
-
capability: string
|
|
24
|
-
/** Optional timestamp for when the permission was granted */
|
|
25
|
-
date?: number
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export type CaveatTypes = 'chain' | 'expiration' | 'filteredResponse' | 'rateLimit'
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Modeled after EIP-2255
|
|
32
|
-
* See - https://eips.ethereum.org/EIPS/eip-2255#specification
|
|
33
|
-
*/
|
|
34
|
-
export interface Caveats {
|
|
35
|
-
/** Type of caveat */
|
|
36
|
-
type: CaveatTypes
|
|
37
|
-
/** Value for the caveat (i.e. chain id, subset of accounts, expiration, max request per minute, etc.) */
|
|
38
|
-
value: JsonValue
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Modeled after EIP-2255
|
|
43
|
-
* See - https://eips.ethereum.org/EIPS/eip-2255#specification
|
|
44
|
-
*/
|
|
45
|
-
export interface Permission {
|
|
46
|
-
/** Permission identifier (i.e. RPC method, action, etc.) */
|
|
47
|
-
capability: string
|
|
48
|
-
/** Caveats for the permission, if applicable (i.e. allowed accounts, signing, etc.) */
|
|
49
|
-
caveats?: Caveats[]
|
|
50
|
-
/** Invoker for the given permission (URI, domain, webpage, address, etc.) */
|
|
51
|
-
invoker: string
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export interface InvokerPermission extends Permission {
|
|
55
|
-
/** Time at which the permission was granted */
|
|
56
|
-
date?: number
|
|
57
|
-
}
|
|
6
|
+
import type { XyoSigner } from './XyoSigner.ts'
|
|
58
7
|
|
|
59
8
|
export interface XyoGatewayProvider extends TransactionSubmitter {
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated use `connection()` instead
|
|
11
|
+
*/
|
|
60
12
|
activeConnection(): Promisable<XyoConnectionProvider | undefined>
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated use `connection()` instead
|
|
15
|
+
*/
|
|
61
16
|
addConnection(config: XyoRpcConnectionConfig): Promisable<XyoConnectionProvider>
|
|
17
|
+
/**
|
|
18
|
+
* Returns the connection provider for this gateway.
|
|
19
|
+
*/
|
|
20
|
+
connection(): Promisable<XyoConnectionProvider>
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated use `connection()` instead
|
|
23
|
+
*/
|
|
62
24
|
connections(): Promisable<Record<string, XyoConnectionProvider>>
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated Permissions now at Client level
|
|
27
|
+
*/
|
|
63
28
|
getPermissions(): Promisable<InvokerPermission[]>
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated Permissions now at Client level
|
|
31
|
+
*/
|
|
64
32
|
requestPermissions(permissions: Permission[]): Promisable<boolean>
|
|
33
|
+
/**
|
|
34
|
+
* @deprecated Permissions now at Client level
|
|
35
|
+
*/
|
|
65
36
|
revokePermissions(permissions: Permission[]): Promisable<boolean>
|
|
37
|
+
/**
|
|
38
|
+
* Returns the signer for this gateway.
|
|
39
|
+
*/
|
|
40
|
+
signer(): Promisable<XyoSigner>
|
|
66
41
|
}
|