@metamask/snaps-rpc-methods 5.0.0 → 6.0.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.
- package/CHANGELOG.md +15 -3
- package/dist/cjs/endowments/caveats/generic.js +40 -0
- package/dist/cjs/endowments/caveats/generic.js.map +1 -0
- package/dist/cjs/endowments/caveats/index.js +21 -0
- package/dist/cjs/endowments/caveats/index.js.map +1 -0
- package/dist/cjs/endowments/caveats/requestTime.js +99 -0
- package/dist/cjs/endowments/caveats/requestTime.js.map +1 -0
- package/dist/cjs/endowments/cronjob.js +100 -0
- package/dist/cjs/endowments/cronjob.js.map +1 -0
- package/dist/cjs/endowments/enum.js +26 -0
- package/dist/cjs/endowments/enum.js.map +1 -0
- package/dist/cjs/endowments/ethereum-provider.js +43 -0
- package/dist/cjs/endowments/ethereum-provider.js.map +1 -0
- package/dist/cjs/endowments/home-page.js +37 -0
- package/dist/cjs/endowments/home-page.js.map +1 -0
- package/dist/cjs/endowments/index.js +121 -0
- package/dist/cjs/endowments/index.js.map +1 -0
- package/dist/cjs/endowments/keyring.js +104 -0
- package/dist/cjs/endowments/keyring.js.map +1 -0
- package/dist/cjs/endowments/lifecycle-hooks.js +37 -0
- package/dist/cjs/endowments/lifecycle-hooks.js.map +1 -0
- package/dist/cjs/endowments/name-lookup.js +148 -0
- package/dist/cjs/endowments/name-lookup.js.map +1 -0
- package/dist/cjs/endowments/network-access.js +44 -0
- package/dist/cjs/endowments/network-access.js.map +1 -0
- package/dist/cjs/endowments/rpc.js +103 -0
- package/dist/cjs/endowments/rpc.js.map +1 -0
- package/dist/cjs/endowments/signature-insight.js +110 -0
- package/dist/cjs/endowments/signature-insight.js.map +1 -0
- package/dist/cjs/endowments/transaction-insight.js +111 -0
- package/dist/cjs/endowments/transaction-insight.js.map +1 -0
- package/dist/cjs/endowments/web-assembly.js +42 -0
- package/dist/cjs/endowments/web-assembly.js.map +1 -0
- package/dist/cjs/index.js +3 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/permissions.js +62 -0
- package/dist/cjs/permissions.js.map +1 -0
- package/dist/cjs/permitted/createInterface.js +68 -0
- package/dist/cjs/permitted/createInterface.js.map +1 -0
- package/dist/cjs/permitted/getFile.js +1 -1
- package/dist/cjs/permitted/getFile.js.map +1 -1
- package/dist/cjs/permitted/getInterfaceState.js +67 -0
- package/dist/cjs/permitted/getInterfaceState.js.map +1 -0
- package/dist/cjs/permitted/handlers.js +7 -1
- package/dist/cjs/permitted/handlers.js.map +1 -1
- package/dist/cjs/permitted/index.js.map +1 -1
- package/dist/cjs/permitted/updateInterface.js +70 -0
- package/dist/cjs/permitted/updateInterface.js.map +1 -0
- package/dist/cjs/restricted/dialog.js +51 -24
- package/dist/cjs/restricted/dialog.js.map +1 -1
- package/dist/esm/endowments/caveats/generic.js +40 -0
- package/dist/esm/endowments/caveats/generic.js.map +1 -0
- package/dist/esm/endowments/caveats/index.js +4 -0
- package/dist/esm/endowments/caveats/index.js.map +1 -0
- package/dist/esm/endowments/caveats/requestTime.js +93 -0
- package/dist/esm/endowments/caveats/requestTime.js.map +1 -0
- package/dist/esm/endowments/cronjob.js +99 -0
- package/dist/esm/endowments/cronjob.js.map +1 -0
- package/dist/esm/endowments/enum.js +16 -0
- package/dist/esm/endowments/enum.js.map +1 -0
- package/dist/esm/endowments/ethereum-provider.js +33 -0
- package/dist/esm/endowments/ethereum-provider.js.map +1 -0
- package/dist/esm/endowments/home-page.js +27 -0
- package/dist/esm/endowments/home-page.js.map +1 -0
- package/dist/esm/endowments/index.js +68 -0
- package/dist/esm/endowments/index.js.map +1 -0
- package/dist/esm/endowments/keyring.js +95 -0
- package/dist/esm/endowments/keyring.js.map +1 -0
- package/dist/esm/endowments/lifecycle-hooks.js +27 -0
- package/dist/esm/endowments/lifecycle-hooks.js.map +1 -0
- package/dist/esm/endowments/name-lookup.js +146 -0
- package/dist/esm/endowments/name-lookup.js.map +1 -0
- package/dist/esm/endowments/network-access.js +34 -0
- package/dist/esm/endowments/network-access.js.map +1 -0
- package/dist/esm/endowments/rpc.js +92 -0
- package/dist/esm/endowments/rpc.js.map +1 -0
- package/dist/esm/endowments/signature-insight.js +103 -0
- package/dist/esm/endowments/signature-insight.js.map +1 -0
- package/dist/esm/endowments/transaction-insight.js +104 -0
- package/dist/esm/endowments/transaction-insight.js.map +1 -0
- package/dist/esm/endowments/web-assembly.js +32 -0
- package/dist/esm/endowments/web-assembly.js.map +1 -0
- package/dist/esm/index.js +3 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/permissions.js +51 -0
- package/dist/esm/permissions.js.map +1 -0
- package/dist/esm/permitted/createInterface.js +58 -0
- package/dist/esm/permitted/createInterface.js.map +1 -0
- package/dist/esm/permitted/getFile.js +1 -1
- package/dist/esm/permitted/getFile.js.map +1 -1
- package/dist/esm/permitted/getInterfaceState.js +57 -0
- package/dist/esm/permitted/getInterfaceState.js.map +1 -0
- package/dist/esm/permitted/handlers.js +7 -1
- package/dist/esm/permitted/handlers.js.map +1 -1
- package/dist/esm/permitted/index.js.map +1 -1
- package/dist/esm/permitted/updateInterface.js +60 -0
- package/dist/esm/permitted/updateInterface.js.map +1 -0
- package/dist/esm/restricted/dialog.js +55 -29
- package/dist/esm/restricted/dialog.js.map +1 -1
- package/dist/types/endowments/caveats/generic.d.ts +19 -0
- package/dist/types/endowments/caveats/index.d.ts +2 -0
- package/dist/types/endowments/caveats/requestTime.d.ts +29 -0
- package/dist/types/endowments/cronjob.d.ts +51 -0
- package/dist/types/endowments/enum.d.ts +13 -0
- package/dist/types/endowments/ethereum-provider.d.ts +14 -0
- package/dist/types/endowments/home-page.d.ts +15 -0
- package/dist/types/endowments/index.d.ts +131 -0
- package/dist/types/endowments/keyring.d.ts +39 -0
- package/dist/types/endowments/lifecycle-hooks.d.ts +15 -0
- package/dist/types/endowments/name-lookup.d.ts +49 -0
- package/dist/types/endowments/network-access.d.ts +14 -0
- package/dist/types/endowments/rpc.d.ts +38 -0
- package/dist/types/endowments/signature-insight.d.ts +39 -0
- package/dist/types/endowments/transaction-insight.d.ts +39 -0
- package/dist/types/endowments/web-assembly.d.ts +14 -0
- package/dist/types/index.d.ts +4 -2
- package/dist/types/permissions.d.ts +16 -0
- package/dist/types/permitted/createInterface.d.ts +150 -0
- package/dist/types/permitted/getInterfaceState.d.ts +18 -0
- package/dist/types/permitted/handlers.d.ts +4 -1
- package/dist/types/permitted/index.d.ts +4 -1
- package/dist/types/permitted/updateInterface.d.ts +152 -0
- package/dist/types/restricted/dialog.d.ts +776 -14
- package/package.json +5 -5
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { EndowmentGetterParams, PermissionSpecificationBuilder, PermissionValidatorConstraint, CaveatSpecificationConstraint, PermissionConstraint } from '@metamask/permission-controller';
|
|
2
|
+
import { PermissionType } from '@metamask/permission-controller';
|
|
3
|
+
import { SnapCaveatType } from '@metamask/snaps-utils';
|
|
4
|
+
import type { Json, NonEmptyArray } from '@metamask/utils';
|
|
5
|
+
import { SnapEndowments } from './enum';
|
|
6
|
+
declare const permissionName = SnapEndowments.NameLookup;
|
|
7
|
+
export declare const nameLookupEndowmentBuilder: Readonly<{
|
|
8
|
+
readonly targetName: SnapEndowments.NameLookup;
|
|
9
|
+
readonly specificationBuilder: PermissionSpecificationBuilder<PermissionType.Endowment, any, {
|
|
10
|
+
permissionType: PermissionType.Endowment;
|
|
11
|
+
targetName: typeof permissionName;
|
|
12
|
+
endowmentGetter: (_options?: EndowmentGetterParams) => undefined;
|
|
13
|
+
allowedCaveats: Readonly<NonEmptyArray<string>> | null;
|
|
14
|
+
validator: PermissionValidatorConstraint;
|
|
15
|
+
}>;
|
|
16
|
+
}>;
|
|
17
|
+
/**
|
|
18
|
+
* Map a raw value from the `initialPermissions` to a caveat specification.
|
|
19
|
+
* Note that this function does not do any validation, that's handled by the
|
|
20
|
+
* PermissionsController when the permission is requested.
|
|
21
|
+
*
|
|
22
|
+
* @param value - The raw value from the `initialPermissions`.
|
|
23
|
+
* @returns The caveat specification.
|
|
24
|
+
*/
|
|
25
|
+
export declare function getNameLookupCaveatMapper(value: Json): Pick<PermissionConstraint, 'caveats'>;
|
|
26
|
+
/**
|
|
27
|
+
* Getter function to get the chainIds caveat from a permission.
|
|
28
|
+
*
|
|
29
|
+
* This does basic validation of the caveat, but does not validate the type or
|
|
30
|
+
* value of the namespaces object itself, as this is handled by the
|
|
31
|
+
* `PermissionsController` when the permission is requested.
|
|
32
|
+
*
|
|
33
|
+
* @param permission - The permission to get the `chainIds` caveat from.
|
|
34
|
+
* @returns An array of `chainIds` that the snap supports.
|
|
35
|
+
*/
|
|
36
|
+
export declare function getChainIdsCaveat(permission?: PermissionConstraint): string[] | null;
|
|
37
|
+
/**
|
|
38
|
+
* Getter function to get the matchers caveat from a permission.
|
|
39
|
+
*
|
|
40
|
+
* This does basic validation of the caveat, but does not validate the type or
|
|
41
|
+
* value of the namespaces object itself, as this is handled by the
|
|
42
|
+
* `PermissionsController` when the permission is requested.
|
|
43
|
+
*
|
|
44
|
+
* @param permission - The permission to get the `matchers` caveat from.
|
|
45
|
+
* @returns A `matchers` object that defines the input that the snap supports.
|
|
46
|
+
*/
|
|
47
|
+
export declare function getLookupMatchersCaveat(permission?: PermissionConstraint): Record<string, string[]> | null;
|
|
48
|
+
export declare const nameLookupCaveatSpecifications: Record<SnapCaveatType.ChainIds | SnapCaveatType.LookupMatchers, CaveatSpecificationConstraint>;
|
|
49
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { PermissionSpecificationBuilder } from '@metamask/permission-controller';
|
|
2
|
+
import { PermissionType } from '@metamask/permission-controller';
|
|
3
|
+
import { SnapEndowments } from './enum';
|
|
4
|
+
declare const permissionName = SnapEndowments.NetworkAccess;
|
|
5
|
+
export declare const networkAccessEndowmentBuilder: Readonly<{
|
|
6
|
+
readonly targetName: SnapEndowments.NetworkAccess;
|
|
7
|
+
readonly specificationBuilder: PermissionSpecificationBuilder<PermissionType.Endowment, any, {
|
|
8
|
+
permissionType: PermissionType.Endowment;
|
|
9
|
+
targetName: typeof permissionName;
|
|
10
|
+
endowmentGetter: (_options?: any) => ['fetch', 'Request', 'Headers', 'Response'];
|
|
11
|
+
allowedCaveats: null;
|
|
12
|
+
}>;
|
|
13
|
+
}>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { CaveatSpecificationConstraint, PermissionConstraint, PermissionSpecificationBuilder, PermissionValidatorConstraint } from '@metamask/permission-controller';
|
|
2
|
+
import { PermissionType, SubjectType } from '@metamask/permission-controller';
|
|
3
|
+
import type { RpcOrigins } from '@metamask/snaps-utils';
|
|
4
|
+
import { SnapCaveatType } from '@metamask/snaps-utils';
|
|
5
|
+
import type { Json, NonEmptyArray } from '@metamask/utils';
|
|
6
|
+
import { SnapEndowments } from './enum';
|
|
7
|
+
declare const targetName = SnapEndowments.Rpc;
|
|
8
|
+
declare type RpcSpecificationBuilderOptions = {};
|
|
9
|
+
export declare const rpcEndowmentBuilder: Readonly<{
|
|
10
|
+
readonly targetName: SnapEndowments.Rpc;
|
|
11
|
+
readonly specificationBuilder: PermissionSpecificationBuilder<PermissionType.Endowment, RpcSpecificationBuilderOptions, {
|
|
12
|
+
permissionType: PermissionType.Endowment;
|
|
13
|
+
targetName: typeof targetName;
|
|
14
|
+
endowmentGetter: (_options?: any) => undefined;
|
|
15
|
+
allowedCaveats: Readonly<NonEmptyArray<string>> | null;
|
|
16
|
+
validator: PermissionValidatorConstraint;
|
|
17
|
+
subjectTypes: readonly SubjectType[];
|
|
18
|
+
}>;
|
|
19
|
+
}>;
|
|
20
|
+
/**
|
|
21
|
+
* Map a raw value from the `initialPermissions` to a caveat specification.
|
|
22
|
+
* Note that this function does not do any validation, that's handled by the
|
|
23
|
+
* PermissionsController when the permission is requested.
|
|
24
|
+
*
|
|
25
|
+
* @param value - The raw value from the `initialPermissions`.
|
|
26
|
+
* @returns The caveat specification.
|
|
27
|
+
*/
|
|
28
|
+
export declare function getRpcCaveatMapper(value: Json): Pick<PermissionConstraint, 'caveats'>;
|
|
29
|
+
/**
|
|
30
|
+
* Getter function to get the {@link RpcOrigins} caveat value from a permission.
|
|
31
|
+
*
|
|
32
|
+
* @param permission - The permission to get the caveat value from.
|
|
33
|
+
* @returns The caveat value.
|
|
34
|
+
* @throws If the permission does not have a valid {@link RpcOrigins} caveat.
|
|
35
|
+
*/
|
|
36
|
+
export declare function getRpcCaveatOrigins(permission?: PermissionConstraint): RpcOrigins | null;
|
|
37
|
+
export declare const rpcCaveatSpecifications: Record<SnapCaveatType.RpcOrigin, CaveatSpecificationConstraint>;
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { PermissionSpecificationBuilder, EndowmentGetterParams, PermissionValidatorConstraint, PermissionConstraint, CaveatSpecificationConstraint } from '@metamask/permission-controller';
|
|
2
|
+
import { PermissionType } from '@metamask/permission-controller';
|
|
3
|
+
import { SnapCaveatType } from '@metamask/snaps-utils';
|
|
4
|
+
import type { Json, NonEmptyArray } from '@metamask/utils';
|
|
5
|
+
import { SnapEndowments } from './enum';
|
|
6
|
+
declare const permissionName = SnapEndowments.SignatureInsight;
|
|
7
|
+
export declare const signatureInsightEndowmentBuilder: Readonly<{
|
|
8
|
+
readonly targetName: SnapEndowments.SignatureInsight;
|
|
9
|
+
readonly specificationBuilder: PermissionSpecificationBuilder<PermissionType.Endowment, any, {
|
|
10
|
+
permissionType: PermissionType.Endowment;
|
|
11
|
+
targetName: typeof permissionName;
|
|
12
|
+
endowmentGetter: (_options?: EndowmentGetterParams) => undefined;
|
|
13
|
+
allowedCaveats: Readonly<NonEmptyArray<string>> | null;
|
|
14
|
+
validator: PermissionValidatorConstraint;
|
|
15
|
+
}>;
|
|
16
|
+
}>;
|
|
17
|
+
/**
|
|
18
|
+
* Map a raw value from the `initialPermissions` to a caveat specification.
|
|
19
|
+
* Note that this function does not do any validation, that's handled by the
|
|
20
|
+
* PermissionController when the permission is requested.
|
|
21
|
+
*
|
|
22
|
+
* @param value - The raw value from the `initialPermissions`.
|
|
23
|
+
* @returns The caveat specification.
|
|
24
|
+
*/
|
|
25
|
+
export declare function getSignatureInsightCaveatMapper(value: Json): Pick<PermissionConstraint, 'caveats'>;
|
|
26
|
+
/**
|
|
27
|
+
* Getter function to get the signature origin caveat from a permission.
|
|
28
|
+
*
|
|
29
|
+
* This does basic validation of the caveat, but does not validate the type or
|
|
30
|
+
* value of the namespaces object itself, as this is handled by the
|
|
31
|
+
* `PermissionsController` when the permission is requested.
|
|
32
|
+
*
|
|
33
|
+
* @param permission - The permission to get the signature origin caveat from.
|
|
34
|
+
* @returns The signature origin, or `null` if the permission does not have a
|
|
35
|
+
* signature origin caveat.
|
|
36
|
+
*/
|
|
37
|
+
export declare function getSignatureOriginCaveat(permission?: PermissionConstraint): boolean | null;
|
|
38
|
+
export declare const signatureInsightCaveatSpecifications: Record<SnapCaveatType.SignatureOrigin, CaveatSpecificationConstraint>;
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { PermissionSpecificationBuilder, EndowmentGetterParams, PermissionValidatorConstraint, PermissionConstraint, CaveatSpecificationConstraint } from '@metamask/permission-controller';
|
|
2
|
+
import { PermissionType } from '@metamask/permission-controller';
|
|
3
|
+
import { SnapCaveatType } from '@metamask/snaps-utils';
|
|
4
|
+
import type { Json, NonEmptyArray } from '@metamask/utils';
|
|
5
|
+
import { SnapEndowments } from './enum';
|
|
6
|
+
declare const permissionName = SnapEndowments.TransactionInsight;
|
|
7
|
+
export declare const transactionInsightEndowmentBuilder: Readonly<{
|
|
8
|
+
readonly targetName: SnapEndowments.TransactionInsight;
|
|
9
|
+
readonly specificationBuilder: PermissionSpecificationBuilder<PermissionType.Endowment, any, {
|
|
10
|
+
permissionType: PermissionType.Endowment;
|
|
11
|
+
targetName: typeof permissionName;
|
|
12
|
+
endowmentGetter: (_options?: EndowmentGetterParams) => undefined;
|
|
13
|
+
allowedCaveats: Readonly<NonEmptyArray<string>> | null;
|
|
14
|
+
validator: PermissionValidatorConstraint;
|
|
15
|
+
}>;
|
|
16
|
+
}>;
|
|
17
|
+
/**
|
|
18
|
+
* Map a raw value from the `initialPermissions` to a caveat specification.
|
|
19
|
+
* Note that this function does not do any validation, that's handled by the
|
|
20
|
+
* PermissionsController when the permission is requested.
|
|
21
|
+
*
|
|
22
|
+
* @param value - The raw value from the `initialPermissions`.
|
|
23
|
+
* @returns The caveat specification.
|
|
24
|
+
*/
|
|
25
|
+
export declare function getTransactionInsightCaveatMapper(value: Json): Pick<PermissionConstraint, 'caveats'>;
|
|
26
|
+
/**
|
|
27
|
+
* Getter function to get the transaction origin caveat from a permission.
|
|
28
|
+
*
|
|
29
|
+
* This does basic validation of the caveat, but does not validate the type or
|
|
30
|
+
* value of the namespaces object itself, as this is handled by the
|
|
31
|
+
* `PermissionsController` when the permission is requested.
|
|
32
|
+
*
|
|
33
|
+
* @param permission - The permission to get the transaction origin caveat from.
|
|
34
|
+
* @returns The transaction origin, or `null` if the permission does not have a
|
|
35
|
+
* transaction origin caveat.
|
|
36
|
+
*/
|
|
37
|
+
export declare function getTransactionOriginCaveat(permission?: PermissionConstraint): boolean | null;
|
|
38
|
+
export declare const transactionInsightCaveatSpecifications: Record<SnapCaveatType.TransactionOrigin, CaveatSpecificationConstraint>;
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { PermissionSpecificationBuilder } from '@metamask/permission-controller';
|
|
2
|
+
import { PermissionType } from '@metamask/permission-controller';
|
|
3
|
+
import { SnapEndowments } from './enum';
|
|
4
|
+
declare const permissionName = SnapEndowments.WebAssemblyAccess;
|
|
5
|
+
export declare const webAssemblyEndowmentBuilder: Readonly<{
|
|
6
|
+
readonly targetName: SnapEndowments.WebAssemblyAccess;
|
|
7
|
+
readonly specificationBuilder: PermissionSpecificationBuilder<PermissionType.Endowment, any, {
|
|
8
|
+
permissionType: PermissionType.Endowment;
|
|
9
|
+
targetName: typeof permissionName;
|
|
10
|
+
endowmentGetter: (_options?: any) => ['WebAssembly'];
|
|
11
|
+
allowedCaveats: null;
|
|
12
|
+
}>;
|
|
13
|
+
}>;
|
|
14
|
+
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
export type { PermittedRpcMethodHooks } from './permitted';
|
|
2
1
|
export { handlers as permittedMethods, createSnapsMethodMiddleware, } from './permitted';
|
|
3
|
-
export
|
|
2
|
+
export type { PermittedRpcMethodHooks } from './permitted';
|
|
4
3
|
export { SnapCaveatType } from '@metamask/snaps-utils';
|
|
5
4
|
export { selectHooks } from './utils';
|
|
5
|
+
export * from './endowments';
|
|
6
|
+
export * from './permissions';
|
|
7
|
+
export * from './restricted';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { PermissionConstraint, PermissionSpecificationConstraint } from '@metamask/permission-controller';
|
|
2
|
+
import type { SnapPermissions } from '@metamask/snaps-utils';
|
|
3
|
+
/**
|
|
4
|
+
* Map initial permissions as defined in a Snap manifest to something that can
|
|
5
|
+
* be processed by the PermissionsController. Each caveat mapping function
|
|
6
|
+
* should return a valid permission caveat value.
|
|
7
|
+
*
|
|
8
|
+
* This function does not validate the caveat values, since that is done by
|
|
9
|
+
* the PermissionsController itself, upon requesting the permissions.
|
|
10
|
+
*
|
|
11
|
+
* @param initialPermissions - The initial permissions to process.
|
|
12
|
+
* @returns The processed permissions.
|
|
13
|
+
*/
|
|
14
|
+
export declare function processSnapPermissions(initialPermissions: SnapPermissions): Record<string, Pick<PermissionConstraint, 'caveats'>>;
|
|
15
|
+
export declare const buildSnapEndowmentSpecifications: (excludedEndowments: string[]) => Record<string, PermissionSpecificationConstraint>;
|
|
16
|
+
export declare const buildSnapRestrictedMethodSpecifications: (excludedPermissions: string[], hooks: Record<string, unknown>) => Record<string, PermissionSpecificationConstraint>;
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import type { PermittedHandlerExport } from '@metamask/permission-controller';
|
|
2
|
+
import type { Component, CreateInterfaceParams, CreateInterfaceResult } from '@metamask/snaps-sdk';
|
|
3
|
+
import { type InferMatching } from '@metamask/snaps-utils';
|
|
4
|
+
export declare type CreateInterfaceMethodHooks = {
|
|
5
|
+
/**
|
|
6
|
+
* @param ui - The UI components.
|
|
7
|
+
* @returns The unique identifier of the interface.
|
|
8
|
+
*/
|
|
9
|
+
createInterface: (ui: Component) => Promise<string>;
|
|
10
|
+
};
|
|
11
|
+
export declare const createInterfaceHandler: PermittedHandlerExport<CreateInterfaceMethodHooks, CreateInterfaceParameters, CreateInterfaceResult>;
|
|
12
|
+
declare const CreateInterfaceParametersStruct: import("superstruct").Struct<{
|
|
13
|
+
ui: import("@metamask/snaps-sdk").Panel | {
|
|
14
|
+
value: string;
|
|
15
|
+
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
16
|
+
sensitive?: boolean | undefined;
|
|
17
|
+
} | {
|
|
18
|
+
type: import("@metamask/snaps-sdk").NodeType.Divider;
|
|
19
|
+
} | {
|
|
20
|
+
value: string;
|
|
21
|
+
type: import("@metamask/snaps-sdk").NodeType.Heading;
|
|
22
|
+
} | {
|
|
23
|
+
value: string;
|
|
24
|
+
type: import("@metamask/snaps-sdk").NodeType.Image;
|
|
25
|
+
} | {
|
|
26
|
+
type: import("@metamask/snaps-sdk").NodeType.Spinner;
|
|
27
|
+
} | {
|
|
28
|
+
value: string;
|
|
29
|
+
type: import("@metamask/snaps-sdk").NodeType.Text;
|
|
30
|
+
markdown?: boolean | undefined;
|
|
31
|
+
} | {
|
|
32
|
+
value: string;
|
|
33
|
+
type: import("@metamask/snaps-sdk").NodeType.Address;
|
|
34
|
+
} | {
|
|
35
|
+
value: {
|
|
36
|
+
value: string;
|
|
37
|
+
type: import("@metamask/snaps-sdk").NodeType.Image;
|
|
38
|
+
} | {
|
|
39
|
+
value: string;
|
|
40
|
+
type: import("@metamask/snaps-sdk").NodeType.Text;
|
|
41
|
+
markdown?: boolean | undefined;
|
|
42
|
+
} | {
|
|
43
|
+
value: string;
|
|
44
|
+
type: import("@metamask/snaps-sdk").NodeType.Address;
|
|
45
|
+
};
|
|
46
|
+
type: import("@metamask/snaps-sdk").NodeType.Row;
|
|
47
|
+
label: string;
|
|
48
|
+
variant?: "default" | "warning" | "critical" | undefined;
|
|
49
|
+
} | {
|
|
50
|
+
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
51
|
+
name: string;
|
|
52
|
+
value?: string | undefined;
|
|
53
|
+
label?: string | undefined;
|
|
54
|
+
inputType?: "number" | "text" | "password" | undefined;
|
|
55
|
+
placeholder?: string | undefined;
|
|
56
|
+
} | {
|
|
57
|
+
value: string;
|
|
58
|
+
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
59
|
+
name?: string | undefined;
|
|
60
|
+
variant?: "primary" | "secondary" | undefined;
|
|
61
|
+
buttonType?: "button" | "submit" | undefined;
|
|
62
|
+
} | {
|
|
63
|
+
type: import("@metamask/snaps-sdk").NodeType.Form;
|
|
64
|
+
name: string;
|
|
65
|
+
children: ({
|
|
66
|
+
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
67
|
+
name: string;
|
|
68
|
+
value?: string | undefined;
|
|
69
|
+
label?: string | undefined;
|
|
70
|
+
inputType?: "number" | "text" | "password" | undefined;
|
|
71
|
+
placeholder?: string | undefined;
|
|
72
|
+
} | {
|
|
73
|
+
value: string;
|
|
74
|
+
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
75
|
+
name?: string | undefined;
|
|
76
|
+
variant?: "primary" | "secondary" | undefined;
|
|
77
|
+
buttonType?: "button" | "submit" | undefined;
|
|
78
|
+
})[];
|
|
79
|
+
};
|
|
80
|
+
}, {
|
|
81
|
+
ui: import("superstruct").Struct<import("@metamask/snaps-sdk").Panel | {
|
|
82
|
+
value: string;
|
|
83
|
+
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
84
|
+
sensitive?: boolean | undefined;
|
|
85
|
+
} | {
|
|
86
|
+
type: import("@metamask/snaps-sdk").NodeType.Divider;
|
|
87
|
+
} | {
|
|
88
|
+
value: string;
|
|
89
|
+
type: import("@metamask/snaps-sdk").NodeType.Heading;
|
|
90
|
+
} | {
|
|
91
|
+
value: string;
|
|
92
|
+
type: import("@metamask/snaps-sdk").NodeType.Image;
|
|
93
|
+
} | {
|
|
94
|
+
type: import("@metamask/snaps-sdk").NodeType.Spinner;
|
|
95
|
+
} | {
|
|
96
|
+
value: string;
|
|
97
|
+
type: import("@metamask/snaps-sdk").NodeType.Text;
|
|
98
|
+
markdown?: boolean | undefined;
|
|
99
|
+
} | {
|
|
100
|
+
value: string;
|
|
101
|
+
type: import("@metamask/snaps-sdk").NodeType.Address;
|
|
102
|
+
} | {
|
|
103
|
+
value: {
|
|
104
|
+
value: string;
|
|
105
|
+
type: import("@metamask/snaps-sdk").NodeType.Image;
|
|
106
|
+
} | {
|
|
107
|
+
value: string;
|
|
108
|
+
type: import("@metamask/snaps-sdk").NodeType.Text;
|
|
109
|
+
markdown?: boolean | undefined;
|
|
110
|
+
} | {
|
|
111
|
+
value: string;
|
|
112
|
+
type: import("@metamask/snaps-sdk").NodeType.Address;
|
|
113
|
+
};
|
|
114
|
+
type: import("@metamask/snaps-sdk").NodeType.Row;
|
|
115
|
+
label: string;
|
|
116
|
+
variant?: "default" | "warning" | "critical" | undefined;
|
|
117
|
+
} | {
|
|
118
|
+
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
119
|
+
name: string;
|
|
120
|
+
value?: string | undefined;
|
|
121
|
+
label?: string | undefined;
|
|
122
|
+
inputType?: "number" | "text" | "password" | undefined;
|
|
123
|
+
placeholder?: string | undefined;
|
|
124
|
+
} | {
|
|
125
|
+
value: string;
|
|
126
|
+
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
127
|
+
name?: string | undefined;
|
|
128
|
+
variant?: "primary" | "secondary" | undefined;
|
|
129
|
+
buttonType?: "button" | "submit" | undefined;
|
|
130
|
+
} | {
|
|
131
|
+
type: import("@metamask/snaps-sdk").NodeType.Form;
|
|
132
|
+
name: string;
|
|
133
|
+
children: ({
|
|
134
|
+
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
135
|
+
name: string;
|
|
136
|
+
value?: string | undefined;
|
|
137
|
+
label?: string | undefined;
|
|
138
|
+
inputType?: "number" | "text" | "password" | undefined;
|
|
139
|
+
placeholder?: string | undefined;
|
|
140
|
+
} | {
|
|
141
|
+
value: string;
|
|
142
|
+
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
143
|
+
name?: string | undefined;
|
|
144
|
+
variant?: "primary" | "secondary" | undefined;
|
|
145
|
+
buttonType?: "button" | "submit" | undefined;
|
|
146
|
+
})[];
|
|
147
|
+
}, null>;
|
|
148
|
+
}>;
|
|
149
|
+
export declare type CreateInterfaceParameters = InferMatching<typeof CreateInterfaceParametersStruct, CreateInterfaceParams>;
|
|
150
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { PermittedHandlerExport } from '@metamask/permission-controller';
|
|
2
|
+
import type { GetInterfaceStateParams, GetInterfaceStateResult, InterfaceState } from '@metamask/snaps-sdk';
|
|
3
|
+
import { type InferMatching } from '@metamask/snaps-utils';
|
|
4
|
+
export declare type GetInterfaceStateMethodHooks = {
|
|
5
|
+
/**
|
|
6
|
+
* @param id - The interface ID.
|
|
7
|
+
* @returns The interface state.
|
|
8
|
+
*/
|
|
9
|
+
getInterfaceState: (id: string) => InterfaceState;
|
|
10
|
+
};
|
|
11
|
+
export declare const getInterfaceStateHandler: PermittedHandlerExport<GetInterfaceStateMethodHooks, GetInterfaceStateParameters, GetInterfaceStateResult>;
|
|
12
|
+
declare const GetInterfaceStateParametersStruct: import("superstruct").Struct<{
|
|
13
|
+
id: string;
|
|
14
|
+
}, {
|
|
15
|
+
id: import("superstruct").Struct<string, null>;
|
|
16
|
+
}>;
|
|
17
|
+
export declare type GetInterfaceStateParameters = InferMatching<typeof GetInterfaceStateParametersStruct, GetInterfaceStateParams>;
|
|
18
|
+
export {};
|
|
@@ -6,5 +6,8 @@ export declare const methodHandlers: {
|
|
|
6
6
|
wallet_invokeKeyring: import("@metamask/permission-controller").PermittedHandlerExport<import("./invokeKeyring").InvokeKeyringHooks, import("@metamask/snaps-sdk").InvokeSnapParams, import("@metamask/utils").Json>;
|
|
7
7
|
snap_getClientStatus: import("@metamask/permission-controller").PermittedHandlerExport<import("./getClientStatus").GetClientStatusHooks, import("@metamask/utils").JsonRpcParams, import("@metamask/snaps-sdk").GetClientStatusResult>;
|
|
8
8
|
snap_getFile: import("@metamask/permission-controller").PermittedHandlerExport<import("./getFile").GetFileHooks, import("@metamask/snaps-sdk").GetFileParams, string>;
|
|
9
|
+
snap_createInterface: import("@metamask/permission-controller").PermittedHandlerExport<import("./createInterface").CreateInterfaceMethodHooks, import("@metamask/snaps-sdk").CreateInterfaceParams, string>;
|
|
10
|
+
snap_updateInterface: import("@metamask/permission-controller").PermittedHandlerExport<import("./updateInterface").UpdateInterfaceMethodHooks, import("@metamask/snaps-sdk").UpdateInterfaceParams, null>;
|
|
11
|
+
snap_getInterfaceState: import("@metamask/permission-controller").PermittedHandlerExport<import("./getInterfaceState").GetInterfaceStateMethodHooks, import("@metamask/snaps-sdk").GetInterfaceStateParams, Record<string, string | Record<string, string | null> | null>>;
|
|
9
12
|
};
|
|
10
|
-
export declare const handlers: (import("@metamask/permission-controller").PermittedHandlerExport<import("./getAllSnaps").GetAllSnapsHooks, import("@metamask/utils").JsonRpcParams, import("@metamask/snaps-sdk").GetSnapsResult> | import("@metamask/permission-controller").PermittedHandlerExport<import("./getClientStatus").GetClientStatusHooks, import("@metamask/utils").JsonRpcParams, import("@metamask/snaps-sdk").GetClientStatusResult> | import("@metamask/permission-controller").PermittedHandlerExport<import("./getSnaps").GetSnapsHooks, import("@metamask/utils").JsonRpcParams, import("@metamask/snaps-sdk").GetSnapsResult> | import("@metamask/permission-controller").PermittedHandlerExport<import("./requestSnaps").RequestSnapsHooks, import("@metamask/snaps-sdk").RequestSnapsParams, import("@metamask/snaps-sdk").RequestSnapsResult> | import("@metamask/permission-controller").PermittedHandlerExport<import("./getFile").GetFileHooks, import("@metamask/snaps-sdk").GetFileParams, string> | import("@metamask/permission-controller").PermittedHandlerExport<void, import("@metamask/snaps-sdk").InvokeSnapParams, import("@metamask/utils").Json> | import("@metamask/permission-controller").PermittedHandlerExport<import("./invokeKeyring").InvokeKeyringHooks, import("@metamask/snaps-sdk").InvokeSnapParams, import("@metamask/utils").Json>)[];
|
|
13
|
+
export declare const handlers: (import("@metamask/permission-controller").PermittedHandlerExport<import("./createInterface").CreateInterfaceMethodHooks, import("@metamask/snaps-sdk").CreateInterfaceParams, string> | import("@metamask/permission-controller").PermittedHandlerExport<import("./getAllSnaps").GetAllSnapsHooks, import("@metamask/utils").JsonRpcParams, import("@metamask/snaps-sdk").GetSnapsResult> | import("@metamask/permission-controller").PermittedHandlerExport<import("./getClientStatus").GetClientStatusHooks, import("@metamask/utils").JsonRpcParams, import("@metamask/snaps-sdk").GetClientStatusResult> | import("@metamask/permission-controller").PermittedHandlerExport<import("./getInterfaceState").GetInterfaceStateMethodHooks, import("@metamask/snaps-sdk").GetInterfaceStateParams, Record<string, string | Record<string, string | null> | null>> | import("@metamask/permission-controller").PermittedHandlerExport<import("./getSnaps").GetSnapsHooks, import("@metamask/utils").JsonRpcParams, import("@metamask/snaps-sdk").GetSnapsResult> | import("@metamask/permission-controller").PermittedHandlerExport<import("./requestSnaps").RequestSnapsHooks, import("@metamask/snaps-sdk").RequestSnapsParams, import("@metamask/snaps-sdk").RequestSnapsResult> | import("@metamask/permission-controller").PermittedHandlerExport<import("./updateInterface").UpdateInterfaceMethodHooks, import("@metamask/snaps-sdk").UpdateInterfaceParams, null> | import("@metamask/permission-controller").PermittedHandlerExport<import("./getFile").GetFileHooks, import("@metamask/snaps-sdk").GetFileParams, string> | import("@metamask/permission-controller").PermittedHandlerExport<void, import("@metamask/snaps-sdk").InvokeSnapParams, import("@metamask/utils").Json> | import("@metamask/permission-controller").PermittedHandlerExport<import("./invokeKeyring").InvokeKeyringHooks, import("@metamask/snaps-sdk").InvokeSnapParams, import("@metamask/utils").Json>)[];
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import type { CreateInterfaceMethodHooks } from './createInterface';
|
|
1
2
|
import type { GetAllSnapsHooks } from './getAllSnaps';
|
|
2
3
|
import type { GetClientStatusHooks } from './getClientStatus';
|
|
4
|
+
import type { GetInterfaceStateMethodHooks } from './getInterfaceState';
|
|
3
5
|
import type { GetSnapsHooks } from './getSnaps';
|
|
4
6
|
import type { RequestSnapsHooks } from './requestSnaps';
|
|
5
|
-
|
|
7
|
+
import type { UpdateInterfaceMethodHooks } from './updateInterface';
|
|
8
|
+
export declare type PermittedRpcMethodHooks = GetAllSnapsHooks & GetClientStatusHooks & GetSnapsHooks & RequestSnapsHooks & CreateInterfaceMethodHooks & UpdateInterfaceMethodHooks & GetInterfaceStateMethodHooks;
|
|
6
9
|
export * from './handlers';
|
|
7
10
|
export * from './middleware';
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import type { PermittedHandlerExport } from '@metamask/permission-controller';
|
|
2
|
+
import type { Component, UpdateInterfaceParams, UpdateInterfaceResult } from '@metamask/snaps-sdk';
|
|
3
|
+
import { type InferMatching } from '@metamask/snaps-utils';
|
|
4
|
+
export declare type UpdateInterfaceMethodHooks = {
|
|
5
|
+
/**
|
|
6
|
+
* @param id - The interface ID.
|
|
7
|
+
* @param ui - The UI components.
|
|
8
|
+
*/
|
|
9
|
+
updateInterface: (id: string, ui: Component) => Promise<void>;
|
|
10
|
+
};
|
|
11
|
+
export declare const updateInterfaceHandler: PermittedHandlerExport<UpdateInterfaceMethodHooks, UpdateInterfaceParameters, UpdateInterfaceResult>;
|
|
12
|
+
declare const UpdateInterfaceParametersStruct: import("superstruct").Struct<{
|
|
13
|
+
id: string;
|
|
14
|
+
ui: import("@metamask/snaps-sdk").Panel | {
|
|
15
|
+
value: string;
|
|
16
|
+
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
17
|
+
sensitive?: boolean | undefined;
|
|
18
|
+
} | {
|
|
19
|
+
type: import("@metamask/snaps-sdk").NodeType.Divider;
|
|
20
|
+
} | {
|
|
21
|
+
value: string;
|
|
22
|
+
type: import("@metamask/snaps-sdk").NodeType.Heading;
|
|
23
|
+
} | {
|
|
24
|
+
value: string;
|
|
25
|
+
type: import("@metamask/snaps-sdk").NodeType.Image;
|
|
26
|
+
} | {
|
|
27
|
+
type: import("@metamask/snaps-sdk").NodeType.Spinner;
|
|
28
|
+
} | {
|
|
29
|
+
value: string;
|
|
30
|
+
type: import("@metamask/snaps-sdk").NodeType.Text;
|
|
31
|
+
markdown?: boolean | undefined;
|
|
32
|
+
} | {
|
|
33
|
+
value: string;
|
|
34
|
+
type: import("@metamask/snaps-sdk").NodeType.Address;
|
|
35
|
+
} | {
|
|
36
|
+
value: {
|
|
37
|
+
value: string;
|
|
38
|
+
type: import("@metamask/snaps-sdk").NodeType.Image;
|
|
39
|
+
} | {
|
|
40
|
+
value: string;
|
|
41
|
+
type: import("@metamask/snaps-sdk").NodeType.Text;
|
|
42
|
+
markdown?: boolean | undefined;
|
|
43
|
+
} | {
|
|
44
|
+
value: string;
|
|
45
|
+
type: import("@metamask/snaps-sdk").NodeType.Address;
|
|
46
|
+
};
|
|
47
|
+
type: import("@metamask/snaps-sdk").NodeType.Row;
|
|
48
|
+
label: string;
|
|
49
|
+
variant?: "default" | "warning" | "critical" | undefined;
|
|
50
|
+
} | {
|
|
51
|
+
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
52
|
+
name: string;
|
|
53
|
+
value?: string | undefined;
|
|
54
|
+
label?: string | undefined;
|
|
55
|
+
inputType?: "number" | "text" | "password" | undefined;
|
|
56
|
+
placeholder?: string | undefined;
|
|
57
|
+
} | {
|
|
58
|
+
value: string;
|
|
59
|
+
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
60
|
+
name?: string | undefined;
|
|
61
|
+
variant?: "primary" | "secondary" | undefined;
|
|
62
|
+
buttonType?: "button" | "submit" | undefined;
|
|
63
|
+
} | {
|
|
64
|
+
type: import("@metamask/snaps-sdk").NodeType.Form;
|
|
65
|
+
name: string;
|
|
66
|
+
children: ({
|
|
67
|
+
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
68
|
+
name: string;
|
|
69
|
+
value?: string | undefined;
|
|
70
|
+
label?: string | undefined;
|
|
71
|
+
inputType?: "number" | "text" | "password" | undefined;
|
|
72
|
+
placeholder?: string | undefined;
|
|
73
|
+
} | {
|
|
74
|
+
value: string;
|
|
75
|
+
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
76
|
+
name?: string | undefined;
|
|
77
|
+
variant?: "primary" | "secondary" | undefined;
|
|
78
|
+
buttonType?: "button" | "submit" | undefined;
|
|
79
|
+
})[];
|
|
80
|
+
};
|
|
81
|
+
}, {
|
|
82
|
+
id: import("superstruct").Struct<string, null>;
|
|
83
|
+
ui: import("superstruct").Struct<import("@metamask/snaps-sdk").Panel | {
|
|
84
|
+
value: string;
|
|
85
|
+
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
86
|
+
sensitive?: boolean | undefined;
|
|
87
|
+
} | {
|
|
88
|
+
type: import("@metamask/snaps-sdk").NodeType.Divider;
|
|
89
|
+
} | {
|
|
90
|
+
value: string;
|
|
91
|
+
type: import("@metamask/snaps-sdk").NodeType.Heading;
|
|
92
|
+
} | {
|
|
93
|
+
value: string;
|
|
94
|
+
type: import("@metamask/snaps-sdk").NodeType.Image;
|
|
95
|
+
} | {
|
|
96
|
+
type: import("@metamask/snaps-sdk").NodeType.Spinner;
|
|
97
|
+
} | {
|
|
98
|
+
value: string;
|
|
99
|
+
type: import("@metamask/snaps-sdk").NodeType.Text;
|
|
100
|
+
markdown?: boolean | undefined;
|
|
101
|
+
} | {
|
|
102
|
+
value: string;
|
|
103
|
+
type: import("@metamask/snaps-sdk").NodeType.Address;
|
|
104
|
+
} | {
|
|
105
|
+
value: {
|
|
106
|
+
value: string;
|
|
107
|
+
type: import("@metamask/snaps-sdk").NodeType.Image;
|
|
108
|
+
} | {
|
|
109
|
+
value: string;
|
|
110
|
+
type: import("@metamask/snaps-sdk").NodeType.Text;
|
|
111
|
+
markdown?: boolean | undefined;
|
|
112
|
+
} | {
|
|
113
|
+
value: string;
|
|
114
|
+
type: import("@metamask/snaps-sdk").NodeType.Address;
|
|
115
|
+
};
|
|
116
|
+
type: import("@metamask/snaps-sdk").NodeType.Row;
|
|
117
|
+
label: string;
|
|
118
|
+
variant?: "default" | "warning" | "critical" | undefined;
|
|
119
|
+
} | {
|
|
120
|
+
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
121
|
+
name: string;
|
|
122
|
+
value?: string | undefined;
|
|
123
|
+
label?: string | undefined;
|
|
124
|
+
inputType?: "number" | "text" | "password" | undefined;
|
|
125
|
+
placeholder?: string | undefined;
|
|
126
|
+
} | {
|
|
127
|
+
value: string;
|
|
128
|
+
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
129
|
+
name?: string | undefined;
|
|
130
|
+
variant?: "primary" | "secondary" | undefined;
|
|
131
|
+
buttonType?: "button" | "submit" | undefined;
|
|
132
|
+
} | {
|
|
133
|
+
type: import("@metamask/snaps-sdk").NodeType.Form;
|
|
134
|
+
name: string;
|
|
135
|
+
children: ({
|
|
136
|
+
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
137
|
+
name: string;
|
|
138
|
+
value?: string | undefined;
|
|
139
|
+
label?: string | undefined;
|
|
140
|
+
inputType?: "number" | "text" | "password" | undefined;
|
|
141
|
+
placeholder?: string | undefined;
|
|
142
|
+
} | {
|
|
143
|
+
value: string;
|
|
144
|
+
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
145
|
+
name?: string | undefined;
|
|
146
|
+
variant?: "primary" | "secondary" | undefined;
|
|
147
|
+
buttonType?: "button" | "submit" | undefined;
|
|
148
|
+
})[];
|
|
149
|
+
}, null>;
|
|
150
|
+
}>;
|
|
151
|
+
export declare type UpdateInterfaceParameters = InferMatching<typeof UpdateInterfaceParametersStruct, UpdateInterfaceParams>;
|
|
152
|
+
export {};
|