@tinycloud/web-sdk 2.1.0-beta.0 → 2.1.0-beta.2
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/adapters/BrowserWasmBindings.d.ts +18 -1
- package/dist/adapters/BrowserWasmBindings.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/modules/Storage/tinycloud/types.schema.d.ts +2 -2
- package/dist/modules/requestPermissionsCore.d.ts +60 -0
- package/dist/modules/requestPermissionsCore.d.ts.map +1 -0
- package/dist/modules/tcw.d.ts +94 -1
- package/dist/modules/tcw.d.ts.map +1 -1
- package/dist/notifications/ModalManager.d.ts +3 -0
- package/dist/notifications/ModalManager.d.ts.map +1 -1
- package/dist/notifications/PermissionRequestModal.d.ts +50 -0
- package/dist/notifications/PermissionRequestModal.d.ts.map +1 -0
- package/dist/notifications/types.schema.d.ts +4 -4
- package/package.json +4 -4
|
@@ -8,7 +8,24 @@ export declare class BrowserWasmBindings implements IWasmBindings {
|
|
|
8
8
|
get completeSessionSetup(): typeof tinycloud.completeSessionSetup;
|
|
9
9
|
ensureEip55(address: string): string;
|
|
10
10
|
makeSpaceId(address: string, chainId: number, prefix: string): string;
|
|
11
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Create a multi-resource delegation UCAN.
|
|
13
|
+
*
|
|
14
|
+
* The WASM signature changed from
|
|
15
|
+
* (session, delegateDID, spaceId, path, actions, expirationSecs, notBeforeSecs)
|
|
16
|
+
* to
|
|
17
|
+
* (session, delegateDID, spaceId, abilities, expirationSecs, notBeforeSecs)
|
|
18
|
+
* where `abilities` is the same `Record<short service, Record<path,
|
|
19
|
+
* actions[]>>` shape `prepareSession` accepts. One UCAN now covers
|
|
20
|
+
* every (service, path, actions) entry in the abilities map.
|
|
21
|
+
*/
|
|
22
|
+
createDelegation(session: any, delegateDID: string, spaceId: string, abilities: Record<string, Record<string, string[]>>, expirationSecs: number, notBeforeSecs?: number): any;
|
|
23
|
+
parseRecapFromSiwe(siweString: string): {
|
|
24
|
+
service: string;
|
|
25
|
+
space: string;
|
|
26
|
+
path: string;
|
|
27
|
+
actions: string[];
|
|
28
|
+
}[];
|
|
12
29
|
generateHostSIWEMessage(params: any): string;
|
|
13
30
|
siweToDelegationHeaders(params: any): any;
|
|
14
31
|
protocolVersion(): number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BrowserWasmBindings.d.ts","sourceRoot":"","sources":["../../src/adapters/BrowserWasmBindings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,EAAE,SAAS,EAA2B,MAAM,yBAAyB,CAAC;AAK7E,qBAAa,mBAAoB,YAAW,aAAa;IACjD,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IASxC,IAAI,MAAM,+CAAqB;IAC/B,IAAI,SAAS,+BAAwB;IACrC,IAAI,cAAc,oCAA6B;IAC/C,IAAI,oBAAoB,0CAAmC;IAE3D,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;IACpC,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM;IAGrE,gBAAgB,CACd,OAAO,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"BrowserWasmBindings.d.ts","sourceRoot":"","sources":["../../src/adapters/BrowserWasmBindings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,EAAE,SAAS,EAA2B,MAAM,yBAAyB,CAAC;AAK7E,qBAAa,mBAAoB,YAAW,aAAa;IACjD,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IASxC,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