@silencelaboratories/walletprovider-sdk 4.0.2-hackathon → 4.1.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.
@@ -1,59 +0,0 @@
1
- import { AuthModule, UserAuthentication } from './authentication';
2
- import { KeygenResponse, SignResponse, OperationStatusResponse, RegisterPasskeyResponse } from './networkSigner';
3
- import { MetadataSetupOpts, KeygenSetupOpts, SignSetupOpts } from './setupMessage';
4
- /**
5
- * The config used to create Wallet Provider Service backend client.
6
- * Please refer to {@link https://shipyard.rs/silencelaboratories/crates/wallet-provider-service | example backend service}
7
- * implementation for requirements that the backend service must fulfill.
8
- * @alpha
9
- */
10
- export type ClientConfig = {
11
- /**
12
- * The version of the API used to connect to the service
13
- */
14
- apiVersion: ApiVersion;
15
- /**
16
- * The id of the Wallet Provider Service
17
- * @alpha
18
- */
19
- walletProviderId: string;
20
- /**
21
- * The URL used to connect to the service
22
- * @alpha
23
- */
24
- walletProviderUrl: string;
25
- };
26
- /**
27
- * The API version of the Wallet Provider Service
28
- * @public
29
- */
30
- export type ApiVersion = 'v1' | 'v2';
31
- export type Signer = (challenge: string) => Promise<UserAuthentication>;
32
- /** Interface for client of Wallet Provider Service
33
- * @alpha
34
- */
35
- export interface IWalletProviderServiceClient {
36
- getWalletId(): string;
37
- getVersion(): ApiVersion;
38
- startKeygen({ setups, authModule }: {
39
- setups: KeygenSetupOpts[];
40
- authModule: AuthModule;
41
- }): Promise<KeygenResponse[]>;
42
- startSigngen({ setup, authModule }: {
43
- setup: SignSetupOpts;
44
- authModule: AuthModule;
45
- }): Promise<SignResponse>;
46
- addEphemeralKey({ setup, authModule, }: {
47
- setup: MetadataSetupOpts;
48
- authModule: AuthModule;
49
- }): Promise<OperationStatusResponse>;
50
- revokeEphemeralKey({ setup, authModule, }: {
51
- setup: MetadataSetupOpts;
52
- authModule: AuthModule;
53
- }): Promise<OperationStatusResponse>;
54
- registerPasskey({ setup, authModule, }: {
55
- setup: MetadataSetupOpts;
56
- authModule: AuthModule;
57
- }): Promise<RegisterPasskeyResponse>;
58
- }
59
- export type QueryPath = 'signgen' | 'keygen' | 'addEphemeralKey' | 'revokeEphemeralKey' | 'registerPasskey';