@novasamatech/product-sdk 0.7.2 → 0.7.3
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/accounts.d.ts +7 -7
- package/dist/deriveEntropy.d.ts +1 -1
- package/dist/permission.d.ts +2 -2
- package/package.json +2 -2
package/dist/accounts.d.ts
CHANGED
|
@@ -11,33 +11,33 @@ export declare const createAccountsProvider: (transport?: Transport) => {
|
|
|
11
11
|
getRootAccount(): import("neverthrow").ResultAsync<{
|
|
12
12
|
publicKey: Uint8Array<ArrayBufferLike>;
|
|
13
13
|
name: string | undefined;
|
|
14
|
-
}, import("
|
|
14
|
+
}, import("@novasamatech/scale").CodecError<undefined, "RequestCredentialsErr::NotConnected"> | import("@novasamatech/scale").CodecError<undefined, "RequestCredentialsErr::Rejected"> | import("@novasamatech/scale").CodecError<undefined, "RequestCredentialsErr::DomainNotValid"> | import("@novasamatech/scale").CodecError<{
|
|
15
15
|
reason: string;
|
|
16
16
|
}, "RequestCredentialsErr::Unknown">>;
|
|
17
|
-
requestLogin(reason?: string): import("neverthrow").ResultAsync<"success" | "alreadyConnected" | "rejected", import("
|
|
17
|
+
requestLogin(reason?: string): import("neverthrow").ResultAsync<"success" | "alreadyConnected" | "rejected", import("@novasamatech/scale").CodecError<{
|
|
18
18
|
reason: string;
|
|
19
19
|
}, "LoginErr::Unknown">>;
|
|
20
20
|
getProductAccount(dotNsIdentifier: string, derivationIndex?: number): import("neverthrow").ResultAsync<{
|
|
21
21
|
publicKey: Uint8Array<ArrayBufferLike>;
|
|
22
22
|
name: string | undefined;
|
|
23
|
-
}, import("
|
|
23
|
+
}, import("@novasamatech/scale").CodecError<undefined, "RequestCredentialsErr::NotConnected"> | import("@novasamatech/scale").CodecError<undefined, "RequestCredentialsErr::Rejected"> | import("@novasamatech/scale").CodecError<undefined, "RequestCredentialsErr::DomainNotValid"> | import("@novasamatech/scale").CodecError<{
|
|
24
24
|
reason: string;
|
|
25
25
|
}, "RequestCredentialsErr::Unknown">>;
|
|
26
26
|
getProductAccountAlias(dotNsIdentifier: string, derivationIndex?: number): import("neverthrow").ResultAsync<{
|
|
27
27
|
context: Uint8Array<ArrayBufferLike>;
|
|
28
28
|
alias: Uint8Array<ArrayBufferLike>;
|
|
29
|
-
}, import("
|
|
29
|
+
}, import("@novasamatech/scale").CodecError<undefined, "RequestCredentialsErr::NotConnected"> | import("@novasamatech/scale").CodecError<undefined, "RequestCredentialsErr::Rejected"> | import("@novasamatech/scale").CodecError<undefined, "RequestCredentialsErr::DomainNotValid"> | import("@novasamatech/scale").CodecError<{
|
|
30
30
|
reason: string;
|
|
31
31
|
}, "RequestCredentialsErr::Unknown">>;
|
|
32
32
|
getLegacyAccounts(): import("neverthrow").ResultAsync<{
|
|
33
33
|
publicKey: Uint8Array<ArrayBufferLike>;
|
|
34
34
|
name: string | undefined;
|
|
35
|
-
}[], import("
|
|
35
|
+
}[], import("@novasamatech/scale").CodecError<undefined, "RequestCredentialsErr::NotConnected"> | import("@novasamatech/scale").CodecError<undefined, "RequestCredentialsErr::Rejected"> | import("@novasamatech/scale").CodecError<undefined, "RequestCredentialsErr::DomainNotValid"> | import("@novasamatech/scale").CodecError<{
|
|
36
36
|
reason: string;
|
|
37
37
|
}, "RequestCredentialsErr::Unknown">>;
|
|
38
|
-
createRingVRFProof(dotNsIdentifier: string, derivationIndex: number | undefined, location: CodecType<typeof RingLocation>, message: Uint8Array): import("neverthrow").ResultAsync<Uint8Array<ArrayBufferLike>, import("
|
|
38
|
+
createRingVRFProof(dotNsIdentifier: string, derivationIndex: number | undefined, location: CodecType<typeof RingLocation>, message: Uint8Array): import("neverthrow").ResultAsync<Uint8Array<ArrayBufferLike>, import("@novasamatech/scale").CodecError<undefined, "CreateProofErr::Rejected"> | import("@novasamatech/scale").CodecError<{
|
|
39
39
|
reason: string;
|
|
40
|
-
}, "CreateProofErr::Unknown"> | import("
|
|
40
|
+
}, "CreateProofErr::Unknown"> | import("@novasamatech/scale").CodecError<undefined, "CreateProofErr::RingNotFound">>;
|
|
41
41
|
getProductAccountSigner(account: ProductAccount): PolkadotSigner;
|
|
42
42
|
subscribeAccountConnectionStatus(callback: (status: AccountConnectionStatus) => void): Subscription<void>;
|
|
43
43
|
getLegacyAccountSigner(account: ProductAccount): PolkadotSigner;
|
package/dist/deriveEntropy.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare function deriveEntropy(key: Uint8Array): import("neverthrow").ResultAsync<Uint8Array<ArrayBufferLike>, import("
|
|
1
|
+
export declare function deriveEntropy(key: Uint8Array): import("neverthrow").ResultAsync<Uint8Array<ArrayBufferLike>, import("@novasamatech/scale").CodecError<{
|
|
2
2
|
reason: string;
|
|
3
3
|
}, "DeriveEntropyErr::Unknown">>;
|
package/dist/permission.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export type RemotePermissionItem = CodecType<typeof RemotePermission>;
|
|
|
9
9
|
* - ok(false) — permission denied by the user
|
|
10
10
|
* - err(...) — transport or encoding error
|
|
11
11
|
*/
|
|
12
|
-
export declare function requestDevicePermission(permission: DevicePermissionKind): import("neverthrow").ResultAsync<boolean, import("
|
|
12
|
+
export declare function requestDevicePermission(permission: DevicePermissionKind): import("neverthrow").ResultAsync<boolean, import("@novasamatech/scale").CodecError<{
|
|
13
13
|
reason: string;
|
|
14
14
|
}, "GenericError">>;
|
|
15
15
|
/**
|
|
@@ -19,6 +19,6 @@ export declare function requestDevicePermission(permission: DevicePermissionKind
|
|
|
19
19
|
* - ok(false) — permission denied by the user
|
|
20
20
|
* - err(...) — transport or encoding error
|
|
21
21
|
*/
|
|
22
|
-
export declare function requestPermission(permission: RemotePermissionItem): import("neverthrow").ResultAsync<boolean, import("
|
|
22
|
+
export declare function requestPermission(permission: RemotePermissionItem): import("neverthrow").ResultAsync<boolean, import("@novasamatech/scale").CodecError<{
|
|
23
23
|
reason: string;
|
|
24
24
|
}, "GenericError">>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@novasamatech/product-sdk",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.3",
|
|
5
5
|
"description": "Polkadot product SDK: integrate and run your product inside Polkadot browser.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"repository": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@polkadot/extension-inject": "^0.63.1",
|
|
29
29
|
"@polkadot-api/json-rpc-provider-proxy": "^0.4.0",
|
|
30
|
-
"@novasamatech/host-api": "0.7.
|
|
30
|
+
"@novasamatech/host-api": "0.7.3",
|
|
31
31
|
"polkadot-api": ">=2",
|
|
32
32
|
"neverthrow": "^8.2.0"
|
|
33
33
|
},
|