@tinycloud/web-sdk 3.0.0-beta.0 → 3.0.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/coordinationos-vendor.d.ts +2 -1
- package/dist/credentials/service.d.ts +2 -0
- package/dist/credentials/types.d.ts +18 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.mjs +1 -1
- package/dist/manage-key-session.d.ts +25 -0
- package/dist/modules/Storage/tinycloud/types.schema.d.ts +2 -2
- package/dist/modules/tcw.d.ts +6 -0
- package/dist/notifications/types.schema.d.ts +2 -2
- package/dist/share/index.d.ts +5 -0
- package/dist/share/receiver-credentials.d.ts +21 -0
- package/dist/share/receiver-session.d.ts +22 -0
- package/dist/share/service.d.ts +61 -0
- package/dist/share/types.d.ts +87 -0
- package/package.json +5 -3
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { TinyCloudWeb } from "./modules/tcw";
|
|
2
|
-
export { createOpenKeyCallbackSigningStrategy } from "@tinycloud/sdk-core";
|
|
2
|
+
export { createOpenKeyCallbackSigningStrategy, parseCanonicalTinyCloudIdentityClaims, requestTinyCloudManageKeyScope, } from "@tinycloud/sdk-core";
|
|
3
|
+
export { establishManageKeySession } from "./manage-key-session";
|
|
3
4
|
export { establishOpenKeySession } from "./openkey-session";
|
|
4
5
|
//# sourceMappingURL=coordinationos-vendor.d.ts.map
|
|
@@ -18,6 +18,8 @@ export declare class CredentialsService {
|
|
|
18
18
|
store(verified: VerifiedCredential, requirementValue: CredentialRequirement, options?: CredentialsOperationOptions): Promise<{
|
|
19
19
|
readonly record: StoredCredentialRecord;
|
|
20
20
|
readonly receipt: import("@tinycloud/sdk-core").CredentialStorageReceipt;
|
|
21
|
+
} | {
|
|
22
|
+
record: StoredCredentialRecord;
|
|
21
23
|
}>;
|
|
22
24
|
acquire(requirementValue: CredentialRequirement, options: CredentialsAcquireOptions): Promise<VerifiedCredential>;
|
|
23
25
|
ensure(requirementValue: CredentialRequirement, options: CredentialsEnsureOptions): Promise<CredentialsEnsureResult>;
|
|
@@ -21,6 +21,23 @@ export interface CredentialClient {
|
|
|
21
21
|
* than on {@link ClientSession} so the CID stays out of the public session.
|
|
22
22
|
*/
|
|
23
23
|
accountAuthorizationCid(): string;
|
|
24
|
+
/** Receiver-local credential custody. Its presence selects accountless mode. */
|
|
25
|
+
readonly receiverCredentialCustody?: ReceiverCredentialCustody;
|
|
26
|
+
}
|
|
27
|
+
export interface ReceiverCredentialCustody {
|
|
28
|
+
find(input: {
|
|
29
|
+
readonly requirement: CredentialRequirement;
|
|
30
|
+
readonly requirementDigest: string;
|
|
31
|
+
readonly holderDid: string;
|
|
32
|
+
readonly now?: Date;
|
|
33
|
+
}): Promise<StoredCredentialRecord | undefined>;
|
|
34
|
+
store(input: {
|
|
35
|
+
readonly verified: VerifiedCredential;
|
|
36
|
+
readonly requirement: CredentialRequirement;
|
|
37
|
+
readonly requirementDigest: string;
|
|
38
|
+
readonly holderDid: string;
|
|
39
|
+
readonly now?: Date;
|
|
40
|
+
}): Promise<StoredCredentialRecord>;
|
|
24
41
|
}
|
|
25
42
|
export interface CredentialSigningAdapter {
|
|
26
43
|
/** Return undefined when the existing exact-request auto-sign policy does not apply. */
|
|
@@ -200,6 +217,7 @@ export interface CredentialsPolicyAdmissionOptions {
|
|
|
200
217
|
readonly requestedCapabilities: readonly UnifiedPolicyCapability[];
|
|
201
218
|
readonly nodeOrigin: string;
|
|
202
219
|
readonly fetch?: typeof fetch;
|
|
220
|
+
readonly signal?: AbortSignal;
|
|
203
221
|
readonly now?: Date;
|
|
204
222
|
readonly jti?: string;
|
|
205
223
|
}
|