@tinycloud/sdk-core 3.0.0-beta.8 → 3.0.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.
@@ -210,6 +210,7 @@ type DelegationError = z.infer<typeof DelegationErrorSchema>;
210
210
  */
211
211
  declare const DelegationErrorCodes: {
212
212
  readonly AUTH_REQUIRED: "AUTH_REQUIRED";
213
+ readonly AUTH_UNAUTHORIZED: "AUTH_UNAUTHORIZED";
213
214
  readonly AUTH_EXPIRED: "AUTH_EXPIRED";
214
215
  readonly NOT_INITIALIZED: "NOT_INITIALIZED";
215
216
  readonly NOT_FOUND: "NOT_FOUND";
@@ -3044,6 +3045,13 @@ interface SharingServiceConfig {
3044
3045
  /** Reject operations after the host session/service graph has been retired. */
3045
3046
  assertActive?: () => void;
3046
3047
  }
3048
+ /**
3049
+ * Whether a session can issue a sharing delegation from its own authority:
3050
+ * `"ok"` (an uncaveated entry covers it), `"caveated"` (only caveated entries
3051
+ * cover it; their caveats cannot be carried into a child delegation) or
3052
+ * `"not-covered"`.
3053
+ */
3054
+ type ShareDelegationPreflight = "ok" | "caveated" | "not-covered";
3047
3055
  /**
3048
3056
  * Interface for the SharingService.
3049
3057
  */
@@ -3055,6 +3063,12 @@ interface ISharingService {
3055
3063
  * the key and delegation into a shareable link.
3056
3064
  */
3057
3065
  generate(params: GenerateShareParams): Promise<Result<ShareLink, DelegationError>>;
3066
+ /**
3067
+ * Report, without side effects, whether the session's own authority can
3068
+ * issue the delegation {@link generate} would create for these parameters.
3069
+ * Does not consult `onRootDelegationNeeded`.
3070
+ */
3071
+ preflightGenerate(params: Pick<GenerateShareParams, "path" | "actions" | "expiry">): ShareDelegationPreflight;
3058
3072
  /**
3059
3073
  * Receive and activate a sharing link.
3060
3074
  *
@@ -3162,15 +3176,28 @@ declare class SharingService implements ISharingService {
3162
3176
  */
3163
3177
  generate(params: GenerateShareParams): Promise<Result<ShareLink, DelegationError>>;
3164
3178
  /**
3165
- * Check if any key in the registry can satisfy the delegation request.
3166
- * A key can satisfy if it has a delegation that:
3167
- * 1. Covers the required path (exact match or parent path)
3168
- * 2. Has all required actions
3169
- * 3. Has sufficient expiry (delegation.expiry >= requestedExpiry)
3170
- * 4. Allows sub-delegation
3179
+ * Report, without side effects, whether this session's registry authority
3180
+ * can issue the child delegation {@link generate} would create for the same
3181
+ * `path`, `actions` and `expiry` (defaults and `pathPrefix` applied the
3182
+ * same way):
3183
+ *
3184
+ * - `"ok"`: an uncaveated entry covers it.
3185
+ * - `"caveated"`: only caveated entries cover it. SharingService cannot
3186
+ * carry signed ReCap caveats into a child delegation.
3187
+ * - `"not-covered"`: no entry covers it, or there is no session.
3188
+ *
3189
+ * It does not consult `onRootDelegationNeeded`, so a signer-backed session
3190
+ * may still generate when this is not `"ok"`.
3191
+ */
3192
+ preflightGenerate(params: Pick<GenerateShareParams, "path" | "actions" | "expiry">): ShareDelegationPreflight;
3193
+ /**
3194
+ * Classify the registry's authority for a child delegation. An entry
3195
+ * satisfies it when it is in the session space, valid, lasts at least until
3196
+ * `requestedExpiry`, allows sub-delegation, covers `path` (exact or parent)
3197
+ * and grants every action. Satisfying entries with caveats are unusable.
3171
3198
  * @internal
3172
3199
  */
3173
- private findSuitableKeyForDelegation;
3200
+ private classifyDelegationAuthority;
3174
3201
  private retiredGraphError;
3175
3202
  /**
3176
3203
  * Check if a delegation path matches/covers the requested path.
@@ -3494,107 +3521,13 @@ declare function validateOwnerSharePolicyRegistration(value: unknown, expected:
3494
3521
  /** Validate the exact UTF-8 response bytes emitted by the registration route. */
3495
3522
  declare function validateOwnerSharePolicyRegistrationBytes(bytesValue: Uint8Array, expected: RegisterOwnerSharePolicyParams): OwnerSharePolicyRegistrationReceipt;
3496
3523
 
3497
- /** Matches V2_DELIVERY_DOMAIN in tinycloud-node-server/src/share_v2.rs. */
3498
- declare const SHARE_DELIVERY_AUTHORIZATION_DOMAIN = "xyz.tinycloud.share/delivery-authorization/v2\0";
3499
- /** Exact camelCase mirror of the Rust `V2DeliveryRequest` wire struct. */
3500
- interface ShareDeliveryAuthorizationRequest {
3501
- readonly envelopeCid: string;
3502
- readonly shareCid: string;
3503
- readonly shareId: string;
3504
- readonly registrationCid: string;
3505
- readonly policyCid: string;
3506
- readonly delegationCid: string;
3507
- readonly enforcementDelegationCid: string;
3508
- readonly recipientEmail: string;
3509
- readonly shareUrl: string;
3510
- readonly documentName: string;
3511
- readonly jti: string;
3512
- readonly idempotencyKey: string;
3513
- readonly expiresAt: string;
3514
- readonly requestBodyDigest: string;
3515
- }
3516
- /** Exact mirror of the `authorization` object the Node route signs and returns. */
3517
- interface ShareDeliveryAuthorization {
3518
- readonly type: "TinyCloudShareDeliveryAuthorization";
3519
- readonly version: 2;
3520
- readonly jti: string;
3521
- readonly shareCid: string;
3522
- readonly shareId: string;
3523
- readonly registrationCid: string;
3524
- readonly delegationCid: string;
3525
- readonly enforcementDelegationCid: string;
3526
- readonly envelopeCid: string;
3527
- readonly policyCid: string;
3528
- readonly nodeAudience: string;
3529
- readonly targetOrigin: string;
3530
- /**
3531
- * The OpenCredentials witness this delivery is scoped to, sourced from
3532
- * Node's own trusted credentials origin. Deliberately distinct from
3533
- * `nodeAudience` (the node's own DID) and `returnOrigin` (Share's page
3534
- * origin) — conflating any of these three would let a party impersonate
3535
- * another's audience.
3536
- */
3537
- readonly openCredentialsAudience: string;
3538
- readonly holder: string;
3539
- readonly recipientMatcher: unknown;
3540
- readonly deliveryEmail: string;
3541
- readonly shareUrl: string;
3542
- readonly returnOrigin: string;
3543
- readonly documentName: string;
3544
- readonly senderDid: string;
3545
- readonly senderTrust: string;
3546
- readonly contentSource: unknown;
3547
- readonly contentSourceDigest: string;
3548
- readonly shareExpiresAt: string;
3549
- readonly issuedAt: string;
3550
- readonly reportAbuseToken: string;
3551
- readonly actions: readonly string[];
3552
- readonly resource: string;
3553
- readonly authorityMaterialHandle: string;
3554
- readonly authorityMaterialDigest: string;
3555
- readonly requestBodyDigest: string;
3556
- readonly idempotencyKey: string;
3557
- readonly expiresAt: string;
3558
- readonly dataAuthority: false;
3559
- }
3560
- interface ShareDeliveryAuthorizationReceipt {
3561
- readonly authorization: ShareDeliveryAuthorization;
3562
- readonly proof: {
3563
- readonly alg: "EdDSA";
3564
- readonly kid: string;
3565
- readonly signature: string;
3566
- };
3567
- }
3568
- interface ValidateShareDeliveryAuthorizationExpected {
3569
- readonly request: ShareDeliveryAuthorizationRequest;
3570
- /** The enrolled receipt key from the node trust bundle. */
3571
- readonly nodeProof: {
3572
- readonly kid: string;
3573
- readonly publicKey: Uint8Array;
3574
- };
3575
- /**
3576
- * The OpenCredentials witness origin the caller trusts, from the same
3577
- * trust bundle as `nodeProof`. Validated independently of the
3578
- * authorization's own `nodeAudience`/`returnOrigin` fields so a Node that
3579
- * mislabels or omits its credentials origin fails closed here rather than
3580
- * silently inheriting one of those unrelated identities.
3581
- */
3582
- readonly credentialsAudience: string;
3583
- }
3584
- /**
3585
- * Validate the exact UTF-8 response bytes emitted by
3586
- * `POST /share/v2/deliveries/authorize`, bind them to the submitted
3587
- * request, and verify the Node's detached EdDSA proof.
3588
- */
3589
- declare function validateShareDeliveryAuthorizationBytes(bytesValue: Uint8Array, expected: ValidateShareDeliveryAuthorizationExpected): ShareDeliveryAuthorizationReceipt;
3590
- /** Build the trusted-signer descriptor `did:key:...#z...` expects from a raw node signing key. */
3591
- declare function shareDeliveryTrustedKid(publicKey: Uint8Array): string;
3592
-
3593
3524
  declare const CREDENTIAL_INVITATION_REQUEST_DOMAIN = "xyz.tinycloud.credentials/invitation-request/v1\0";
3594
3525
  declare const DELIVERY_ADMISSION_DOMAIN = "xyz.tinycloud.policy/delivery-admission/v0\0";
3595
3526
  interface ShareDeliveryAuthorizationV3Request {
3596
3527
  readonly envelope: Record<string, unknown>;
3528
+ /** Base64url canonical sealed envelope bytes, bound by the Node before delivery. */
3597
3529
  readonly sealedEnvelope: string;
3530
+ /** Base64url 32-byte AES-GCM key; this is the #k fragment value in the return link. */
3598
3531
  readonly envelopeKey: string;
3599
3532
  readonly shareCid: string;
3600
3533
  readonly recipientEmail: string;
@@ -3612,6 +3545,8 @@ interface CredentialInvitationRequest {
3612
3545
  readonly credentialType: string;
3613
3546
  readonly returnLink: string;
3614
3547
  readonly envelopeRef: string;
3548
+ readonly label: string;
3549
+ readonly shareExpiresAt: string;
3615
3550
  readonly audience: string;
3616
3551
  readonly issuedAt: string;
3617
3552
  readonly expiresAt: string;
@@ -3627,6 +3562,8 @@ interface DeliveryAdmission {
3627
3562
  readonly credentialType: string;
3628
3563
  readonly returnLink: string;
3629
3564
  readonly envelopeRef: string;
3565
+ readonly label: string;
3566
+ readonly shareExpiresAt: string;
3630
3567
  readonly senderKeyDid: string;
3631
3568
  readonly audience: string;
3632
3569
  readonly issuedAt: string;
@@ -3650,7 +3587,7 @@ interface ShareDeliveryAuthorizationV3Receipt {
3650
3587
  declare function validateShareDeliveryAuthorizationV3Bytes(bytes: Uint8Array, expected: {
3651
3588
  readonly request: ShareDeliveryAuthorizationV3Request;
3652
3589
  readonly senderKeyDid: string;
3653
- readonly credentialsAudience: string;
3590
+ readonly deliveryAudience: string;
3654
3591
  }): Omit<ShareDeliveryAuthorizationV3Receipt, "proof">;
3655
3592
 
3656
3593
  /**
@@ -4635,4 +4572,4 @@ declare const ShareNativeResponseSchema: z.ZodDiscriminatedUnion<"action", [z.Zo
4635
4572
  }>]>;
4636
4573
  type ShareNativeResponse = z.infer<typeof ShareNativeResponseSchema>;
4637
4574
 
4638
- export { type OwnerSharePolicyRegistration as $, type AccountDelegationPage as A, type DelegationStatus as B, CREDENTIAL_INVITATION_REQUEST_DOMAIN as C, DelegationManager as D, type DeliveryAdmission as E, type EncodedShareData as F, type GenerateShareParams as G, type ISharingService as H, type ICapabilityKeyRegistry as I, type IngestOptions as J, type JWK as K, type KeyInfo as L, type KeyProvider as M, type KeyType as N, MAX_CONTENT_BYTES as O, MAX_SEALED_SHARE_CONTENT_BYTES as P, MAX_SHARE_ARTIFACT_BYTES as Q, type Result as R, MAX_SHARE_CONTENT_BYTES as S, MemorySenderShareKeyStorage as T, MemorySenderShareRecordStorage as U, MemoryShareCache as V, type OwnerDelegationPermission as W, type OwnerDelegationReceipt as X, type OwnerShareAction as Y, type OwnerShareDecryption as Z, type OwnerShareMatcher as _, type DelegationError as a, type ShareReadInvocationV1 as a$, type OwnerSharePolicyRegistrationReceipt as a0, type OwnerSharePolicyV2 as a1, type PortableDelegationImportReceipt as a2, type ReceiveOptions as a3, type RegisterOwnerSharePolicyParams as a4, SHARE_DELIVERY_AUTHORIZATION_DOMAIN as a5, type SenderShareKeyStorage as a6, type SenderShareRecord as a7, type SenderShareRecordStorage as a8, type SenderShareRevocationScope as a9, type ShareDeliveryAuthorizationRequest as aA, type ShareDeliveryAuthorizationV3Receipt as aB, type ShareDeliveryAuthorizationV3Request as aC, type ShareDetachedProof as aD, ShareEnvelopeError as aE, type ShareEnvelopeV2 as aF, type ShareExpiryBounds as aG, type ShareKvContentSource as aH, type ShareLink as aI, type ShareLinkData as aJ, type ShareLinkLocation as aK, type ShareListEntry as aL, type ShareListResult as aM, type ShareNativeAction as aN, type ShareNativeInvokeEnvelopeV1 as aO, type ShareNativeInvokeErrorResult as aP, type ShareNativeInvokeInput as aQ, type ShareNativeInvokeResult as aR, type ShareNativeInvokeSuccessResult as aS, type ShareNativeResponse as aT, ShareNativeResponseSchema as aU, type SharePolicy as aV, type SharePolicyBinding as aW, type SharePolicySession as aX, type SharePolicySessionV1 as aY, type SharePolicySessionWireV1 as aZ, type PortableDelegation as a_, SenderShareStore as aa, type ShareAccess as ab, ShareAccessError as ac, type ShareAccessV2 as ad, type ShareAction as ae, ShareActionSchema as af, type ShareAddressedDelegationEnvelopeV2 as ag, ShareAddressedDelegationEnvelopeV2Schema as ah, type ShareAddressedDelegationRequestV2 as ai, ShareAddressedDelegationRequestV2Schema as aj, type ShareAddressedDelegationResponseV2 as ak, ShareAddressedDelegationResponseV2Schema as al, type ShareAddressedRecipientMatcher as am, type ShareArtifactInput as an, type ShareArtifactResult as ao, type ShareArtifactV2 as ap, type ShareCache as aq, type ShareCacheEntry as ar, type ShareCacheKey as as, type ShareCacheMetadata as at, type ShareCapabilityLike as au, ShareConflict as av, type ShareContentMetadata as aw, type ShareContentSource as ax, type ShareDeliveryAuthorization as ay, type ShareDeliveryAuthorizationReceipt as az, type AccountDelegationQueryOptions as b, type ShareReadResult as b0, ShareRecipientClient as b1, type ShareRecipientClientOptions as b2, ShareRecipientClientOptionsSchema as b3, type ShareRecipientPolicy as b4, ShareRecipientPolicySchema as b5, type ShareRecipientResult as b6, type ShareRecipientTarget as b7, ShareRecipientTargetSchema as b8, type ShareResource as b9, encryptShareBytes as bA, encryptShareBytesAsync as bB, importPortableDelegation as bC, intersectShareCapabilities as bD, isV2ShareLink as bE, normalizeShareActions as bF, normalizeShareRecipientTarget as bG, normalizeShareResource as bH, parsePortableDelegation as bI, parseShareArtifact as bJ, parseShareUrl as bK, restoreDelegatedShareKey as bL, serializePortableDelegation as bM, shareCapabilityAllows as bN, shareDeliveryTrustedKid as bO, signShareEnvelope as bP, validateOwnerSharePolicyRegistration as bQ, validateOwnerSharePolicyRegistrationBytes as bR, validateShareDeliveryAuthorizationBytes as bS, validateShareDeliveryAuthorizationV3Bytes as bT, verifyShareCid as bU, verifyShareEnvelope as bV, CapabilityKeyRegistry as bW, type CapabilityKeyRegistryErrorCode as bX, CapabilityKeyRegistryErrorCodes as bY, type StoredDelegationChain as bZ, createCapabilityKeyRegistry as b_, ShareResourceSchema as ba, type ShareSaveOptions as bb, type ShareSchema as bc, type ShareSqlContentSource as bd, type ShareWireAction as be, SharingService as bf, type SharingServiceConfig as bg, type SignedDelegation as bh, type SpaceInfo as bi, type SpaceOwnership as bj, type ValidateShareDeliveryAuthorizationExpected as bk, type VerifyShareEnvelopeOptions as bl, canonicalOwnerSharePolicy as bm, computeOwnerShareRegistrationCid as bn, computeShareCid as bo, createDelegatedShareKey as bp, createPolicyEnforcementDelegation as bq, createShareArtifact as br, createShareArtifactAsync as bs, createSharePolicy as bt, createSharingService as bu, decryptShareBytesAsync as bv, delegatePortablePolicySession as bw, encodeInlineShareUrl as bx, encodeShareArtifact as by, encodeShareUrl as bz, type AccountDelegationRecord as c, type AccountDelegationResource as d, type CapabilityEntry as e, type CreateDelegationParams as f, type CreateDelegationWasmParams as g, type CreateDelegationWasmResult as h, type CreateOwnerDelegationParams as i, type CredentialInvitationRequest as j, DELIVERY_ADMISSION_DOMAIN as k, type DelegateReceivedShareParams as l, type DelegatedResource as m, type DelegatedShareAccess as n, type DelegatedShareKey as o, type Delegation as p, type DelegationApiResponse as q, type DelegationChain as r, type DelegationChainV2 as s, type DelegationDirection as t, type DelegationErrorCode as u, DelegationErrorCodes as v, type DelegationFilters as w, type DelegationManagerConfig as x, type DelegationRecord as y, type DelegationRevocationReceipt as z };
4575
+ export { type OwnerSharePolicyRegistration as $, type AccountDelegationPage as A, type DelegationStatus as B, CREDENTIAL_INVITATION_REQUEST_DOMAIN as C, DelegationManager as D, type DeliveryAdmission as E, type EncodedShareData as F, type GenerateShareParams as G, type ISharingService as H, type ICapabilityKeyRegistry as I, type IngestOptions as J, type JWK as K, type KeyInfo as L, type KeyProvider as M, type KeyType as N, MAX_CONTENT_BYTES as O, MAX_SEALED_SHARE_CONTENT_BYTES as P, MAX_SHARE_ARTIFACT_BYTES as Q, type Result as R, MAX_SHARE_CONTENT_BYTES as S, MemorySenderShareKeyStorage as T, MemorySenderShareRecordStorage as U, MemoryShareCache as V, type OwnerDelegationPermission as W, type OwnerDelegationReceipt as X, type OwnerShareAction as Y, type OwnerShareDecryption as Z, type OwnerShareMatcher as _, type DelegationError as a, type ShareRecipientClientOptions as a$, type OwnerSharePolicyRegistrationReceipt as a0, type OwnerSharePolicyV2 as a1, type PortableDelegationImportReceipt as a2, type ReceiveOptions as a3, type RegisterOwnerSharePolicyParams as a4, type SenderShareKeyStorage as a5, type SenderShareRecord as a6, type SenderShareRecordStorage as a7, type SenderShareRevocationScope as a8, SenderShareStore as a9, type ShareDetachedProof as aA, ShareEnvelopeError as aB, type ShareEnvelopeV2 as aC, type ShareExpiryBounds as aD, type ShareKvContentSource as aE, type ShareLink as aF, type ShareLinkData as aG, type ShareLinkLocation as aH, type ShareListEntry as aI, type ShareListResult as aJ, type ShareNativeAction as aK, type ShareNativeInvokeEnvelopeV1 as aL, type ShareNativeInvokeErrorResult as aM, type ShareNativeInvokeInput as aN, type ShareNativeInvokeResult as aO, type ShareNativeInvokeSuccessResult as aP, type ShareNativeResponse as aQ, ShareNativeResponseSchema as aR, type SharePolicy as aS, type SharePolicyBinding as aT, type SharePolicySession as aU, type SharePolicySessionV1 as aV, type SharePolicySessionWireV1 as aW, type PortableDelegation as aX, type ShareReadInvocationV1 as aY, type ShareReadResult as aZ, ShareRecipientClient as a_, type ShareAccess as aa, ShareAccessError as ab, type ShareAccessV2 as ac, type ShareAction as ad, ShareActionSchema as ae, type ShareAddressedDelegationEnvelopeV2 as af, ShareAddressedDelegationEnvelopeV2Schema as ag, type ShareAddressedDelegationRequestV2 as ah, ShareAddressedDelegationRequestV2Schema as ai, type ShareAddressedDelegationResponseV2 as aj, ShareAddressedDelegationResponseV2Schema as ak, type ShareAddressedRecipientMatcher as al, type ShareArtifactInput as am, type ShareArtifactResult as an, type ShareArtifactV2 as ao, type ShareCache as ap, type ShareCacheEntry as aq, type ShareCacheKey as ar, type ShareCacheMetadata as as, type ShareCapabilityLike as at, ShareConflict as au, type ShareContentMetadata as av, type ShareContentSource as aw, type ShareDelegationPreflight as ax, type ShareDeliveryAuthorizationV3Receipt as ay, type ShareDeliveryAuthorizationV3Request as az, type AccountDelegationQueryOptions as b, ShareRecipientClientOptionsSchema as b0, type ShareRecipientPolicy as b1, ShareRecipientPolicySchema as b2, type ShareRecipientResult as b3, type ShareRecipientTarget as b4, ShareRecipientTargetSchema as b5, type ShareResource as b6, ShareResourceSchema as b7, type ShareSaveOptions as b8, type ShareSchema as b9, isV2ShareLink as bA, normalizeShareActions as bB, normalizeShareRecipientTarget as bC, normalizeShareResource as bD, parsePortableDelegation as bE, parseShareArtifact as bF, parseShareUrl as bG, restoreDelegatedShareKey as bH, serializePortableDelegation as bI, shareCapabilityAllows as bJ, signShareEnvelope as bK, validateOwnerSharePolicyRegistration as bL, validateOwnerSharePolicyRegistrationBytes as bM, validateShareDeliveryAuthorizationV3Bytes as bN, verifyShareCid as bO, verifyShareEnvelope as bP, CapabilityKeyRegistry as bQ, type CapabilityKeyRegistryErrorCode as bR, CapabilityKeyRegistryErrorCodes as bS, type StoredDelegationChain as bT, createCapabilityKeyRegistry as bU, type ShareSqlContentSource as ba, type ShareWireAction as bb, SharingService as bc, type SharingServiceConfig as bd, type SignedDelegation as be, type SpaceInfo as bf, type SpaceOwnership as bg, type VerifyShareEnvelopeOptions as bh, canonicalOwnerSharePolicy as bi, computeOwnerShareRegistrationCid as bj, computeShareCid as bk, createDelegatedShareKey as bl, createPolicyEnforcementDelegation as bm, createShareArtifact as bn, createShareArtifactAsync as bo, createSharePolicy as bp, createSharingService as bq, decryptShareBytesAsync as br, delegatePortablePolicySession as bs, encodeInlineShareUrl as bt, encodeShareArtifact as bu, encodeShareUrl as bv, encryptShareBytes as bw, encryptShareBytesAsync as bx, importPortableDelegation as by, intersectShareCapabilities as bz, type AccountDelegationRecord as c, type AccountDelegationResource as d, type CapabilityEntry as e, type CreateDelegationParams as f, type CreateDelegationWasmParams as g, type CreateDelegationWasmResult as h, type CreateOwnerDelegationParams as i, type CredentialInvitationRequest as j, DELIVERY_ADMISSION_DOMAIN as k, type DelegateReceivedShareParams as l, type DelegatedResource as m, type DelegatedShareAccess as n, type DelegatedShareKey as o, type Delegation as p, type DelegationApiResponse as q, type DelegationChain as r, type DelegationChainV2 as s, type DelegationDirection as t, type DelegationErrorCode as u, DelegationErrorCodes as v, type DelegationFilters as w, type DelegationManagerConfig as x, type DelegationRecord as y, type DelegationRevocationReceipt as z };
@@ -210,6 +210,7 @@ type DelegationError = z.infer<typeof DelegationErrorSchema>;
210
210
  */
211
211
  declare const DelegationErrorCodes: {
212
212
  readonly AUTH_REQUIRED: "AUTH_REQUIRED";
213
+ readonly AUTH_UNAUTHORIZED: "AUTH_UNAUTHORIZED";
213
214
  readonly AUTH_EXPIRED: "AUTH_EXPIRED";
214
215
  readonly NOT_INITIALIZED: "NOT_INITIALIZED";
215
216
  readonly NOT_FOUND: "NOT_FOUND";
@@ -3044,6 +3045,13 @@ interface SharingServiceConfig {
3044
3045
  /** Reject operations after the host session/service graph has been retired. */
3045
3046
  assertActive?: () => void;
3046
3047
  }
3048
+ /**
3049
+ * Whether a session can issue a sharing delegation from its own authority:
3050
+ * `"ok"` (an uncaveated entry covers it), `"caveated"` (only caveated entries
3051
+ * cover it; their caveats cannot be carried into a child delegation) or
3052
+ * `"not-covered"`.
3053
+ */
3054
+ type ShareDelegationPreflight = "ok" | "caveated" | "not-covered";
3047
3055
  /**
3048
3056
  * Interface for the SharingService.
3049
3057
  */
@@ -3055,6 +3063,12 @@ interface ISharingService {
3055
3063
  * the key and delegation into a shareable link.
3056
3064
  */
3057
3065
  generate(params: GenerateShareParams): Promise<Result<ShareLink, DelegationError>>;
3066
+ /**
3067
+ * Report, without side effects, whether the session's own authority can
3068
+ * issue the delegation {@link generate} would create for these parameters.
3069
+ * Does not consult `onRootDelegationNeeded`.
3070
+ */
3071
+ preflightGenerate(params: Pick<GenerateShareParams, "path" | "actions" | "expiry">): ShareDelegationPreflight;
3058
3072
  /**
3059
3073
  * Receive and activate a sharing link.
3060
3074
  *
@@ -3162,15 +3176,28 @@ declare class SharingService implements ISharingService {
3162
3176
  */
3163
3177
  generate(params: GenerateShareParams): Promise<Result<ShareLink, DelegationError>>;
3164
3178
  /**
3165
- * Check if any key in the registry can satisfy the delegation request.
3166
- * A key can satisfy if it has a delegation that:
3167
- * 1. Covers the required path (exact match or parent path)
3168
- * 2. Has all required actions
3169
- * 3. Has sufficient expiry (delegation.expiry >= requestedExpiry)
3170
- * 4. Allows sub-delegation
3179
+ * Report, without side effects, whether this session's registry authority
3180
+ * can issue the child delegation {@link generate} would create for the same
3181
+ * `path`, `actions` and `expiry` (defaults and `pathPrefix` applied the
3182
+ * same way):
3183
+ *
3184
+ * - `"ok"`: an uncaveated entry covers it.
3185
+ * - `"caveated"`: only caveated entries cover it. SharingService cannot
3186
+ * carry signed ReCap caveats into a child delegation.
3187
+ * - `"not-covered"`: no entry covers it, or there is no session.
3188
+ *
3189
+ * It does not consult `onRootDelegationNeeded`, so a signer-backed session
3190
+ * may still generate when this is not `"ok"`.
3191
+ */
3192
+ preflightGenerate(params: Pick<GenerateShareParams, "path" | "actions" | "expiry">): ShareDelegationPreflight;
3193
+ /**
3194
+ * Classify the registry's authority for a child delegation. An entry
3195
+ * satisfies it when it is in the session space, valid, lasts at least until
3196
+ * `requestedExpiry`, allows sub-delegation, covers `path` (exact or parent)
3197
+ * and grants every action. Satisfying entries with caveats are unusable.
3171
3198
  * @internal
3172
3199
  */
3173
- private findSuitableKeyForDelegation;
3200
+ private classifyDelegationAuthority;
3174
3201
  private retiredGraphError;
3175
3202
  /**
3176
3203
  * Check if a delegation path matches/covers the requested path.
@@ -3494,107 +3521,13 @@ declare function validateOwnerSharePolicyRegistration(value: unknown, expected:
3494
3521
  /** Validate the exact UTF-8 response bytes emitted by the registration route. */
3495
3522
  declare function validateOwnerSharePolicyRegistrationBytes(bytesValue: Uint8Array, expected: RegisterOwnerSharePolicyParams): OwnerSharePolicyRegistrationReceipt;
3496
3523
 
3497
- /** Matches V2_DELIVERY_DOMAIN in tinycloud-node-server/src/share_v2.rs. */
3498
- declare const SHARE_DELIVERY_AUTHORIZATION_DOMAIN = "xyz.tinycloud.share/delivery-authorization/v2\0";
3499
- /** Exact camelCase mirror of the Rust `V2DeliveryRequest` wire struct. */
3500
- interface ShareDeliveryAuthorizationRequest {
3501
- readonly envelopeCid: string;
3502
- readonly shareCid: string;
3503
- readonly shareId: string;
3504
- readonly registrationCid: string;
3505
- readonly policyCid: string;
3506
- readonly delegationCid: string;
3507
- readonly enforcementDelegationCid: string;
3508
- readonly recipientEmail: string;
3509
- readonly shareUrl: string;
3510
- readonly documentName: string;
3511
- readonly jti: string;
3512
- readonly idempotencyKey: string;
3513
- readonly expiresAt: string;
3514
- readonly requestBodyDigest: string;
3515
- }
3516
- /** Exact mirror of the `authorization` object the Node route signs and returns. */
3517
- interface ShareDeliveryAuthorization {
3518
- readonly type: "TinyCloudShareDeliveryAuthorization";
3519
- readonly version: 2;
3520
- readonly jti: string;
3521
- readonly shareCid: string;
3522
- readonly shareId: string;
3523
- readonly registrationCid: string;
3524
- readonly delegationCid: string;
3525
- readonly enforcementDelegationCid: string;
3526
- readonly envelopeCid: string;
3527
- readonly policyCid: string;
3528
- readonly nodeAudience: string;
3529
- readonly targetOrigin: string;
3530
- /**
3531
- * The OpenCredentials witness this delivery is scoped to, sourced from
3532
- * Node's own trusted credentials origin. Deliberately distinct from
3533
- * `nodeAudience` (the node's own DID) and `returnOrigin` (Share's page
3534
- * origin) — conflating any of these three would let a party impersonate
3535
- * another's audience.
3536
- */
3537
- readonly openCredentialsAudience: string;
3538
- readonly holder: string;
3539
- readonly recipientMatcher: unknown;
3540
- readonly deliveryEmail: string;
3541
- readonly shareUrl: string;
3542
- readonly returnOrigin: string;
3543
- readonly documentName: string;
3544
- readonly senderDid: string;
3545
- readonly senderTrust: string;
3546
- readonly contentSource: unknown;
3547
- readonly contentSourceDigest: string;
3548
- readonly shareExpiresAt: string;
3549
- readonly issuedAt: string;
3550
- readonly reportAbuseToken: string;
3551
- readonly actions: readonly string[];
3552
- readonly resource: string;
3553
- readonly authorityMaterialHandle: string;
3554
- readonly authorityMaterialDigest: string;
3555
- readonly requestBodyDigest: string;
3556
- readonly idempotencyKey: string;
3557
- readonly expiresAt: string;
3558
- readonly dataAuthority: false;
3559
- }
3560
- interface ShareDeliveryAuthorizationReceipt {
3561
- readonly authorization: ShareDeliveryAuthorization;
3562
- readonly proof: {
3563
- readonly alg: "EdDSA";
3564
- readonly kid: string;
3565
- readonly signature: string;
3566
- };
3567
- }
3568
- interface ValidateShareDeliveryAuthorizationExpected {
3569
- readonly request: ShareDeliveryAuthorizationRequest;
3570
- /** The enrolled receipt key from the node trust bundle. */
3571
- readonly nodeProof: {
3572
- readonly kid: string;
3573
- readonly publicKey: Uint8Array;
3574
- };
3575
- /**
3576
- * The OpenCredentials witness origin the caller trusts, from the same
3577
- * trust bundle as `nodeProof`. Validated independently of the
3578
- * authorization's own `nodeAudience`/`returnOrigin` fields so a Node that
3579
- * mislabels or omits its credentials origin fails closed here rather than
3580
- * silently inheriting one of those unrelated identities.
3581
- */
3582
- readonly credentialsAudience: string;
3583
- }
3584
- /**
3585
- * Validate the exact UTF-8 response bytes emitted by
3586
- * `POST /share/v2/deliveries/authorize`, bind them to the submitted
3587
- * request, and verify the Node's detached EdDSA proof.
3588
- */
3589
- declare function validateShareDeliveryAuthorizationBytes(bytesValue: Uint8Array, expected: ValidateShareDeliveryAuthorizationExpected): ShareDeliveryAuthorizationReceipt;
3590
- /** Build the trusted-signer descriptor `did:key:...#z...` expects from a raw node signing key. */
3591
- declare function shareDeliveryTrustedKid(publicKey: Uint8Array): string;
3592
-
3593
3524
  declare const CREDENTIAL_INVITATION_REQUEST_DOMAIN = "xyz.tinycloud.credentials/invitation-request/v1\0";
3594
3525
  declare const DELIVERY_ADMISSION_DOMAIN = "xyz.tinycloud.policy/delivery-admission/v0\0";
3595
3526
  interface ShareDeliveryAuthorizationV3Request {
3596
3527
  readonly envelope: Record<string, unknown>;
3528
+ /** Base64url canonical sealed envelope bytes, bound by the Node before delivery. */
3597
3529
  readonly sealedEnvelope: string;
3530
+ /** Base64url 32-byte AES-GCM key; this is the #k fragment value in the return link. */
3598
3531
  readonly envelopeKey: string;
3599
3532
  readonly shareCid: string;
3600
3533
  readonly recipientEmail: string;
@@ -3612,6 +3545,8 @@ interface CredentialInvitationRequest {
3612
3545
  readonly credentialType: string;
3613
3546
  readonly returnLink: string;
3614
3547
  readonly envelopeRef: string;
3548
+ readonly label: string;
3549
+ readonly shareExpiresAt: string;
3615
3550
  readonly audience: string;
3616
3551
  readonly issuedAt: string;
3617
3552
  readonly expiresAt: string;
@@ -3627,6 +3562,8 @@ interface DeliveryAdmission {
3627
3562
  readonly credentialType: string;
3628
3563
  readonly returnLink: string;
3629
3564
  readonly envelopeRef: string;
3565
+ readonly label: string;
3566
+ readonly shareExpiresAt: string;
3630
3567
  readonly senderKeyDid: string;
3631
3568
  readonly audience: string;
3632
3569
  readonly issuedAt: string;
@@ -3650,7 +3587,7 @@ interface ShareDeliveryAuthorizationV3Receipt {
3650
3587
  declare function validateShareDeliveryAuthorizationV3Bytes(bytes: Uint8Array, expected: {
3651
3588
  readonly request: ShareDeliveryAuthorizationV3Request;
3652
3589
  readonly senderKeyDid: string;
3653
- readonly credentialsAudience: string;
3590
+ readonly deliveryAudience: string;
3654
3591
  }): Omit<ShareDeliveryAuthorizationV3Receipt, "proof">;
3655
3592
 
3656
3593
  /**
@@ -4635,4 +4572,4 @@ declare const ShareNativeResponseSchema: z.ZodDiscriminatedUnion<"action", [z.Zo
4635
4572
  }>]>;
4636
4573
  type ShareNativeResponse = z.infer<typeof ShareNativeResponseSchema>;
4637
4574
 
4638
- export { type OwnerSharePolicyRegistration as $, type AccountDelegationPage as A, type DelegationStatus as B, CREDENTIAL_INVITATION_REQUEST_DOMAIN as C, DelegationManager as D, type DeliveryAdmission as E, type EncodedShareData as F, type GenerateShareParams as G, type ISharingService as H, type ICapabilityKeyRegistry as I, type IngestOptions as J, type JWK as K, type KeyInfo as L, type KeyProvider as M, type KeyType as N, MAX_CONTENT_BYTES as O, MAX_SEALED_SHARE_CONTENT_BYTES as P, MAX_SHARE_ARTIFACT_BYTES as Q, type Result as R, MAX_SHARE_CONTENT_BYTES as S, MemorySenderShareKeyStorage as T, MemorySenderShareRecordStorage as U, MemoryShareCache as V, type OwnerDelegationPermission as W, type OwnerDelegationReceipt as X, type OwnerShareAction as Y, type OwnerShareDecryption as Z, type OwnerShareMatcher as _, type DelegationError as a, type ShareReadInvocationV1 as a$, type OwnerSharePolicyRegistrationReceipt as a0, type OwnerSharePolicyV2 as a1, type PortableDelegationImportReceipt as a2, type ReceiveOptions as a3, type RegisterOwnerSharePolicyParams as a4, SHARE_DELIVERY_AUTHORIZATION_DOMAIN as a5, type SenderShareKeyStorage as a6, type SenderShareRecord as a7, type SenderShareRecordStorage as a8, type SenderShareRevocationScope as a9, type ShareDeliveryAuthorizationRequest as aA, type ShareDeliveryAuthorizationV3Receipt as aB, type ShareDeliveryAuthorizationV3Request as aC, type ShareDetachedProof as aD, ShareEnvelopeError as aE, type ShareEnvelopeV2 as aF, type ShareExpiryBounds as aG, type ShareKvContentSource as aH, type ShareLink as aI, type ShareLinkData as aJ, type ShareLinkLocation as aK, type ShareListEntry as aL, type ShareListResult as aM, type ShareNativeAction as aN, type ShareNativeInvokeEnvelopeV1 as aO, type ShareNativeInvokeErrorResult as aP, type ShareNativeInvokeInput as aQ, type ShareNativeInvokeResult as aR, type ShareNativeInvokeSuccessResult as aS, type ShareNativeResponse as aT, ShareNativeResponseSchema as aU, type SharePolicy as aV, type SharePolicyBinding as aW, type SharePolicySession as aX, type SharePolicySessionV1 as aY, type SharePolicySessionWireV1 as aZ, type PortableDelegation as a_, SenderShareStore as aa, type ShareAccess as ab, ShareAccessError as ac, type ShareAccessV2 as ad, type ShareAction as ae, ShareActionSchema as af, type ShareAddressedDelegationEnvelopeV2 as ag, ShareAddressedDelegationEnvelopeV2Schema as ah, type ShareAddressedDelegationRequestV2 as ai, ShareAddressedDelegationRequestV2Schema as aj, type ShareAddressedDelegationResponseV2 as ak, ShareAddressedDelegationResponseV2Schema as al, type ShareAddressedRecipientMatcher as am, type ShareArtifactInput as an, type ShareArtifactResult as ao, type ShareArtifactV2 as ap, type ShareCache as aq, type ShareCacheEntry as ar, type ShareCacheKey as as, type ShareCacheMetadata as at, type ShareCapabilityLike as au, ShareConflict as av, type ShareContentMetadata as aw, type ShareContentSource as ax, type ShareDeliveryAuthorization as ay, type ShareDeliveryAuthorizationReceipt as az, type AccountDelegationQueryOptions as b, type ShareReadResult as b0, ShareRecipientClient as b1, type ShareRecipientClientOptions as b2, ShareRecipientClientOptionsSchema as b3, type ShareRecipientPolicy as b4, ShareRecipientPolicySchema as b5, type ShareRecipientResult as b6, type ShareRecipientTarget as b7, ShareRecipientTargetSchema as b8, type ShareResource as b9, encryptShareBytes as bA, encryptShareBytesAsync as bB, importPortableDelegation as bC, intersectShareCapabilities as bD, isV2ShareLink as bE, normalizeShareActions as bF, normalizeShareRecipientTarget as bG, normalizeShareResource as bH, parsePortableDelegation as bI, parseShareArtifact as bJ, parseShareUrl as bK, restoreDelegatedShareKey as bL, serializePortableDelegation as bM, shareCapabilityAllows as bN, shareDeliveryTrustedKid as bO, signShareEnvelope as bP, validateOwnerSharePolicyRegistration as bQ, validateOwnerSharePolicyRegistrationBytes as bR, validateShareDeliveryAuthorizationBytes as bS, validateShareDeliveryAuthorizationV3Bytes as bT, verifyShareCid as bU, verifyShareEnvelope as bV, CapabilityKeyRegistry as bW, type CapabilityKeyRegistryErrorCode as bX, CapabilityKeyRegistryErrorCodes as bY, type StoredDelegationChain as bZ, createCapabilityKeyRegistry as b_, ShareResourceSchema as ba, type ShareSaveOptions as bb, type ShareSchema as bc, type ShareSqlContentSource as bd, type ShareWireAction as be, SharingService as bf, type SharingServiceConfig as bg, type SignedDelegation as bh, type SpaceInfo as bi, type SpaceOwnership as bj, type ValidateShareDeliveryAuthorizationExpected as bk, type VerifyShareEnvelopeOptions as bl, canonicalOwnerSharePolicy as bm, computeOwnerShareRegistrationCid as bn, computeShareCid as bo, createDelegatedShareKey as bp, createPolicyEnforcementDelegation as bq, createShareArtifact as br, createShareArtifactAsync as bs, createSharePolicy as bt, createSharingService as bu, decryptShareBytesAsync as bv, delegatePortablePolicySession as bw, encodeInlineShareUrl as bx, encodeShareArtifact as by, encodeShareUrl as bz, type AccountDelegationRecord as c, type AccountDelegationResource as d, type CapabilityEntry as e, type CreateDelegationParams as f, type CreateDelegationWasmParams as g, type CreateDelegationWasmResult as h, type CreateOwnerDelegationParams as i, type CredentialInvitationRequest as j, DELIVERY_ADMISSION_DOMAIN as k, type DelegateReceivedShareParams as l, type DelegatedResource as m, type DelegatedShareAccess as n, type DelegatedShareKey as o, type Delegation as p, type DelegationApiResponse as q, type DelegationChain as r, type DelegationChainV2 as s, type DelegationDirection as t, type DelegationErrorCode as u, DelegationErrorCodes as v, type DelegationFilters as w, type DelegationManagerConfig as x, type DelegationRecord as y, type DelegationRevocationReceipt as z };
4575
+ export { type OwnerSharePolicyRegistration as $, type AccountDelegationPage as A, type DelegationStatus as B, CREDENTIAL_INVITATION_REQUEST_DOMAIN as C, DelegationManager as D, type DeliveryAdmission as E, type EncodedShareData as F, type GenerateShareParams as G, type ISharingService as H, type ICapabilityKeyRegistry as I, type IngestOptions as J, type JWK as K, type KeyInfo as L, type KeyProvider as M, type KeyType as N, MAX_CONTENT_BYTES as O, MAX_SEALED_SHARE_CONTENT_BYTES as P, MAX_SHARE_ARTIFACT_BYTES as Q, type Result as R, MAX_SHARE_CONTENT_BYTES as S, MemorySenderShareKeyStorage as T, MemorySenderShareRecordStorage as U, MemoryShareCache as V, type OwnerDelegationPermission as W, type OwnerDelegationReceipt as X, type OwnerShareAction as Y, type OwnerShareDecryption as Z, type OwnerShareMatcher as _, type DelegationError as a, type ShareRecipientClientOptions as a$, type OwnerSharePolicyRegistrationReceipt as a0, type OwnerSharePolicyV2 as a1, type PortableDelegationImportReceipt as a2, type ReceiveOptions as a3, type RegisterOwnerSharePolicyParams as a4, type SenderShareKeyStorage as a5, type SenderShareRecord as a6, type SenderShareRecordStorage as a7, type SenderShareRevocationScope as a8, SenderShareStore as a9, type ShareDetachedProof as aA, ShareEnvelopeError as aB, type ShareEnvelopeV2 as aC, type ShareExpiryBounds as aD, type ShareKvContentSource as aE, type ShareLink as aF, type ShareLinkData as aG, type ShareLinkLocation as aH, type ShareListEntry as aI, type ShareListResult as aJ, type ShareNativeAction as aK, type ShareNativeInvokeEnvelopeV1 as aL, type ShareNativeInvokeErrorResult as aM, type ShareNativeInvokeInput as aN, type ShareNativeInvokeResult as aO, type ShareNativeInvokeSuccessResult as aP, type ShareNativeResponse as aQ, ShareNativeResponseSchema as aR, type SharePolicy as aS, type SharePolicyBinding as aT, type SharePolicySession as aU, type SharePolicySessionV1 as aV, type SharePolicySessionWireV1 as aW, type PortableDelegation as aX, type ShareReadInvocationV1 as aY, type ShareReadResult as aZ, ShareRecipientClient as a_, type ShareAccess as aa, ShareAccessError as ab, type ShareAccessV2 as ac, type ShareAction as ad, ShareActionSchema as ae, type ShareAddressedDelegationEnvelopeV2 as af, ShareAddressedDelegationEnvelopeV2Schema as ag, type ShareAddressedDelegationRequestV2 as ah, ShareAddressedDelegationRequestV2Schema as ai, type ShareAddressedDelegationResponseV2 as aj, ShareAddressedDelegationResponseV2Schema as ak, type ShareAddressedRecipientMatcher as al, type ShareArtifactInput as am, type ShareArtifactResult as an, type ShareArtifactV2 as ao, type ShareCache as ap, type ShareCacheEntry as aq, type ShareCacheKey as ar, type ShareCacheMetadata as as, type ShareCapabilityLike as at, ShareConflict as au, type ShareContentMetadata as av, type ShareContentSource as aw, type ShareDelegationPreflight as ax, type ShareDeliveryAuthorizationV3Receipt as ay, type ShareDeliveryAuthorizationV3Request as az, type AccountDelegationQueryOptions as b, ShareRecipientClientOptionsSchema as b0, type ShareRecipientPolicy as b1, ShareRecipientPolicySchema as b2, type ShareRecipientResult as b3, type ShareRecipientTarget as b4, ShareRecipientTargetSchema as b5, type ShareResource as b6, ShareResourceSchema as b7, type ShareSaveOptions as b8, type ShareSchema as b9, isV2ShareLink as bA, normalizeShareActions as bB, normalizeShareRecipientTarget as bC, normalizeShareResource as bD, parsePortableDelegation as bE, parseShareArtifact as bF, parseShareUrl as bG, restoreDelegatedShareKey as bH, serializePortableDelegation as bI, shareCapabilityAllows as bJ, signShareEnvelope as bK, validateOwnerSharePolicyRegistration as bL, validateOwnerSharePolicyRegistrationBytes as bM, validateShareDeliveryAuthorizationV3Bytes as bN, verifyShareCid as bO, verifyShareEnvelope as bP, CapabilityKeyRegistry as bQ, type CapabilityKeyRegistryErrorCode as bR, CapabilityKeyRegistryErrorCodes as bS, type StoredDelegationChain as bT, createCapabilityKeyRegistry as bU, type ShareSqlContentSource as ba, type ShareWireAction as bb, SharingService as bc, type SharingServiceConfig as bd, type SignedDelegation as be, type SpaceInfo as bf, type SpaceOwnership as bg, type VerifyShareEnvelopeOptions as bh, canonicalOwnerSharePolicy as bi, computeOwnerShareRegistrationCid as bj, computeShareCid as bk, createDelegatedShareKey as bl, createPolicyEnforcementDelegation as bm, createShareArtifact as bn, createShareArtifactAsync as bo, createSharePolicy as bp, createSharingService as bq, decryptShareBytesAsync as br, delegatePortablePolicySession as bs, encodeInlineShareUrl as bt, encodeShareArtifact as bu, encodeShareUrl as bv, encryptShareBytes as bw, encryptShareBytesAsync as bx, importPortableDelegation as by, intersectShareCapabilities as bz, type AccountDelegationRecord as c, type AccountDelegationResource as d, type CapabilityEntry as e, type CreateDelegationParams as f, type CreateDelegationWasmParams as g, type CreateDelegationWasmResult as h, type CreateOwnerDelegationParams as i, type CredentialInvitationRequest as j, DELIVERY_ADMISSION_DOMAIN as k, type DelegateReceivedShareParams as l, type DelegatedResource as m, type DelegatedShareAccess as n, type DelegatedShareKey as o, type Delegation as p, type DelegationApiResponse as q, type DelegationChain as r, type DelegationChainV2 as s, type DelegationDirection as t, type DelegationErrorCode as u, DelegationErrorCodes as v, type DelegationFilters as w, type DelegationManagerConfig as x, type DelegationRecord as y, type DelegationRevocationReceipt as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinycloud/sdk-core",
3
- "version": "3.0.0-beta.8",
3
+ "version": "3.0.0",
4
4
  "description": "Core TinyCloud SDK - shared interfaces and TinyCloud class",
5
5
  "author": "TinyCloud, Inc.",
6
6
  "license": "EGPL",
@@ -53,10 +53,10 @@
53
53
  "@multiformats/multiaddr-to-uri": "^12.0.0",
54
54
  "@multiformats/uri-to-multiaddr": "^10.0.0",
55
55
  "@noble/curves": "^1.9.7",
56
- "@tinycloud/share-envelope": "0.2.1-beta.2",
57
- "@tinycloud/share-sdk": "0.3.0-beta.2",
56
+ "@tinycloud/share-envelope": "1.0.0",
57
+ "@tinycloud/share-sdk": "1.0.0",
58
58
  "@tinycloud/bootstrap": "2.7.0",
59
- "@tinycloud/sdk-services": "3.0.0-beta.8",
59
+ "@tinycloud/sdk-services": "3.0.0",
60
60
  "multiformats": "^13.4.1",
61
61
  "ms": "^2.1.3",
62
62
  "siwe": "^3.0.0",