@rabby-wallet/rabby-api 0.9.53 → 0.9.54
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/index.d.ts +6 -0
- package/dist/index.js +6 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1469,5 +1469,11 @@ export declare class OpenApiService {
|
|
|
1469
1469
|
}) => Promise<{
|
|
1470
1470
|
has_permission: boolean;
|
|
1471
1471
|
}>;
|
|
1472
|
+
getDappPermission: (params: {
|
|
1473
|
+
id?: string;
|
|
1474
|
+
dapp: string;
|
|
1475
|
+
}) => Promise<{
|
|
1476
|
+
has_permission: boolean;
|
|
1477
|
+
}>;
|
|
1472
1478
|
}
|
|
1473
1479
|
export {};
|
package/dist/index.js
CHANGED
|
@@ -1830,6 +1830,12 @@ export class OpenApiService {
|
|
|
1830
1830
|
});
|
|
1831
1831
|
return data;
|
|
1832
1832
|
});
|
|
1833
|
+
this.getDappPermission = (params) => __awaiter(this, void 0, void 0, function* () {
|
|
1834
|
+
const { data } = yield this.request.get('v1/user/has_dapp_permission', {
|
|
1835
|
+
params,
|
|
1836
|
+
});
|
|
1837
|
+
return data;
|
|
1838
|
+
});
|
|
1833
1839
|
if (store instanceof Promise) {
|
|
1834
1840
|
store.then((resolvedStore) => {
|
|
1835
1841
|
this.store = resolvedStore;
|