@tinycloud/web-sdk 3.0.0-beta.2 → 3.0.0-beta.4
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.
|
@@ -39,8 +39,8 @@ export declare const SessionConfigSchema: z.ZodObject<{
|
|
|
39
39
|
address?: string;
|
|
40
40
|
chainId?: number;
|
|
41
41
|
issuedAt?: string;
|
|
42
|
-
jwk?: Record<string, unknown>;
|
|
43
42
|
notBefore?: string;
|
|
43
|
+
jwk?: Record<string, unknown>;
|
|
44
44
|
expirationTime?: string;
|
|
45
45
|
parents?: string[];
|
|
46
46
|
}, {
|
|
@@ -50,8 +50,8 @@ export declare const SessionConfigSchema: z.ZodObject<{
|
|
|
50
50
|
address?: string;
|
|
51
51
|
chainId?: number;
|
|
52
52
|
issuedAt?: string;
|
|
53
|
-
jwk?: Record<string, unknown>;
|
|
54
53
|
notBefore?: string;
|
|
54
|
+
jwk?: Record<string, unknown>;
|
|
55
55
|
expirationTime?: string;
|
|
56
56
|
parents?: string[];
|
|
57
57
|
}>;
|
package/dist/share/service.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ShareMetadata } from "@tinycloud/share-sdk";
|
|
1
2
|
import { type ShareEnvelopeV3 } from "@tinycloud/share-envelope";
|
|
2
3
|
import { CredentialsService } from "../credentials";
|
|
3
4
|
import { type ReceiverSessionStorage } from "./receiver-session";
|
|
@@ -32,7 +33,7 @@ export declare function selectShareReceiverAccountSession(client: ShareReceiverC
|
|
|
32
33
|
/** @internal */
|
|
33
34
|
export declare class ReceivedShareImpl implements ReceivedShare {
|
|
34
35
|
readonly identity: ShareReceiverIdentity;
|
|
35
|
-
readonly
|
|
36
|
+
readonly metadata: ShareMetadata;
|
|
36
37
|
private readonly envelope;
|
|
37
38
|
private readonly credentials;
|
|
38
39
|
private readonly sign;
|
|
@@ -42,10 +43,11 @@ export declare class ReceivedShareImpl implements ReceivedShare {
|
|
|
42
43
|
private readonly trustedNode;
|
|
43
44
|
private content?;
|
|
44
45
|
private getPromise?;
|
|
45
|
-
constructor(identity: ShareReceiverIdentity,
|
|
46
|
+
constructor(identity: ShareReceiverIdentity, metadata: ShareMetadata, envelope: ShareEnvelopeV3, credentials: CredentialsService, sign: (bytes: Uint8Array) => Promise<Uint8Array>, options: ShareReceiveOptions, fetchFn: typeof fetch, credentialDiscoveryUrl: string, trustedNode: {
|
|
46
47
|
readonly invitationKid: string;
|
|
47
48
|
readonly invitationPublicKey: Uint8Array;
|
|
48
49
|
});
|
|
50
|
+
get shareId(): string;
|
|
49
51
|
get(): Promise<ShareReceivedContent>;
|
|
50
52
|
private load;
|
|
51
53
|
importInto(accountClient: ShareImportAccountClient, options: ShareImportOptions): Promise<ShareImportResult>;
|
package/dist/share/types.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ClientSession, IKVService } from "@tinycloud/sdk-core";
|
|
2
|
+
import type { ShareMetadata } from "@tinycloud/share-sdk";
|
|
2
3
|
import type { CredentialsService } from "../credentials";
|
|
3
4
|
export type ShareReceiverIdentity = {
|
|
4
5
|
readonly kind: "account";
|
|
@@ -70,6 +71,7 @@ export interface ShareImportAccountClient {
|
|
|
70
71
|
}
|
|
71
72
|
export interface ReceivedShare {
|
|
72
73
|
readonly identity: ShareReceiverIdentity;
|
|
74
|
+
readonly metadata: ShareMetadata;
|
|
73
75
|
readonly shareId: string;
|
|
74
76
|
get(): Promise<ShareReceivedContent>;
|
|
75
77
|
importInto(accountClient: ShareImportAccountClient, options: ShareImportOptions): Promise<ShareImportResult>;
|
package/package.json
CHANGED