@tinycloud/sdk-core 3.0.0-beta.6 → 3.0.0-beta.8

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.
@@ -3590,7 +3590,8 @@ declare function validateShareDeliveryAuthorizationBytes(bytesValue: Uint8Array,
3590
3590
  /** Build the trusted-signer descriptor `did:key:...#z...` expects from a raw node signing key. */
3591
3591
  declare function shareDeliveryTrustedKid(publicKey: Uint8Array): string;
3592
3592
 
3593
- declare const SHARE_DELIVERY_AUTHORIZATION_V3_DOMAIN = "xyz.tinycloud.share/delivery-authorization/v3\0";
3593
+ declare const CREDENTIAL_INVITATION_REQUEST_DOMAIN = "xyz.tinycloud.credentials/invitation-request/v1\0";
3594
+ declare const DELIVERY_ADMISSION_DOMAIN = "xyz.tinycloud.policy/delivery-admission/v0\0";
3594
3595
  interface ShareDeliveryAuthorizationV3Request {
3595
3596
  readonly envelope: Record<string, unknown>;
3596
3597
  readonly sealedEnvelope: string;
@@ -3603,41 +3604,43 @@ interface ShareDeliveryAuthorizationV3Request {
3603
3604
  readonly expiresAt: string;
3604
3605
  readonly requestBodyDigest: string;
3605
3606
  }
3606
- interface ShareDeliveryAuthorizationV3 {
3607
- readonly type: "TinyCloudShareDeliveryAuthorization";
3608
- readonly version: 3;
3609
- readonly jti: string;
3610
- readonly shareCid: string;
3611
- readonly shareId: string;
3612
- readonly policyCid: string;
3613
- readonly policyRootCid: string;
3614
- readonly enforcementRootCid: string;
3615
- readonly nodeAudience: string;
3616
- readonly enforcerDid: string;
3617
- readonly targetOrigin: string;
3618
- readonly openCredentialsAudience: string;
3619
- readonly holder: string;
3620
- readonly recipientMatcher: unknown;
3621
- readonly deliveryEmail: string;
3622
- readonly shareUrl: string;
3623
- readonly returnOrigin: string;
3624
- readonly documentName: string;
3625
- readonly senderDid: string;
3626
- readonly senderTrust: string;
3627
- readonly contentSource: unknown;
3628
- readonly contentSourceDigestHex: string;
3629
- readonly shareExpiresAt: string;
3607
+ interface CredentialInvitationRequest {
3608
+ readonly schema: "xyz.tinycloud.credentials/invitation-request/v1";
3609
+ readonly policyId: string;
3610
+ readonly recipient: string;
3611
+ readonly resource: string;
3612
+ readonly credentialType: string;
3613
+ readonly returnLink: string;
3614
+ readonly envelopeRef: string;
3615
+ readonly audience: string;
3630
3616
  readonly issuedAt: string;
3631
- readonly reportAbuseToken: string;
3632
- readonly actions: readonly string[];
3617
+ readonly expiresAt: string;
3618
+ readonly nonce: string;
3619
+ }
3620
+ interface DeliveryAdmission {
3621
+ readonly schema: "xyz.tinycloud.policy/delivery-admission/v0";
3622
+ readonly policyId: string;
3623
+ readonly ownerDid: string;
3624
+ readonly recipient: string;
3633
3625
  readonly resource: string;
3634
- readonly requestBodyDigest: string;
3635
- readonly idempotencyKey: string;
3626
+ readonly actions: readonly ["tinycloud.kv/get"];
3627
+ readonly credentialType: string;
3628
+ readonly returnLink: string;
3629
+ readonly envelopeRef: string;
3630
+ readonly senderKeyDid: string;
3631
+ readonly audience: string;
3632
+ readonly issuedAt: string;
3636
3633
  readonly expiresAt: string;
3637
- readonly dataAuthority: false;
3634
+ readonly nonce: string;
3635
+ readonly signature: {
3636
+ readonly suite: "eddsa-ed25519-sha256-jcs-v1";
3637
+ readonly signerDid: string;
3638
+ readonly value: string;
3639
+ };
3638
3640
  }
3639
3641
  interface ShareDeliveryAuthorizationV3Receipt {
3640
- readonly authorization: ShareDeliveryAuthorizationV3;
3642
+ readonly request: CredentialInvitationRequest;
3643
+ readonly admission: DeliveryAdmission;
3641
3644
  readonly proof: {
3642
3645
  readonly alg: "EdDSA";
3643
3646
  readonly kid: string;
@@ -3646,12 +3649,9 @@ interface ShareDeliveryAuthorizationV3Receipt {
3646
3649
  }
3647
3650
  declare function validateShareDeliveryAuthorizationV3Bytes(bytes: Uint8Array, expected: {
3648
3651
  readonly request: ShareDeliveryAuthorizationV3Request;
3649
- readonly nodeProof: {
3650
- readonly kid: string;
3651
- readonly publicKey: Uint8Array;
3652
- };
3652
+ readonly senderKeyDid: string;
3653
3653
  readonly credentialsAudience: string;
3654
- }): ShareDeliveryAuthorizationV3Receipt;
3654
+ }): Omit<ShareDeliveryAuthorizationV3Receipt, "proof">;
3655
3655
 
3656
3656
  /**
3657
3657
  * The durable record a sender needs, after a reload, to display and manage
@@ -4635,4 +4635,4 @@ declare const ShareNativeResponseSchema: z.ZodDiscriminatedUnion<"action", [z.Zo
4635
4635
  }>]>;
4636
4636
  type ShareNativeResponse = z.infer<typeof ShareNativeResponseSchema>;
4637
4637
 
4638
- export { type ReceiveOptions as $, type AccountDelegationPage as A, type KeyProvider as B, type CapabilityEntry as C, DelegationManager as D, type EncodedShareData as E, type KeyType as F, type GenerateShareParams as G, MAX_SEALED_SHARE_CONTENT_BYTES as H, type ICapabilityKeyRegistry as I, type JWK as J, type KeyInfo as K, MAX_SHARE_ARTIFACT_BYTES as L, MAX_CONTENT_BYTES as M, MAX_SHARE_CONTENT_BYTES as N, MemorySenderShareKeyStorage as O, MemorySenderShareRecordStorage as P, MemoryShareCache as Q, type Result as R, type OwnerDelegationPermission as S, type OwnerDelegationReceipt as T, type OwnerShareAction as U, type OwnerShareDecryption as V, type OwnerShareMatcher as W, type OwnerSharePolicyRegistration as X, type OwnerSharePolicyRegistrationReceipt as Y, type OwnerSharePolicyV2 as Z, type PortableDelegationImportReceipt as _, type DelegationError as a, ShareRecipientClient as a$, type RegisterOwnerSharePolicyParams as a0, SHARE_DELIVERY_AUTHORIZATION_DOMAIN as a1, SHARE_DELIVERY_AUTHORIZATION_V3_DOMAIN as a2, type SenderShareKeyStorage as a3, type SenderShareRecord as a4, type SenderShareRecordStorage as a5, type SenderShareRevocationScope as a6, SenderShareStore as a7, type ShareAccess as a8, ShareAccessError as a9, type ShareDeliveryAuthorizationV3Request as aA, type ShareDetachedProof as aB, ShareEnvelopeError as aC, type ShareEnvelopeV2 as aD, type ShareExpiryBounds as aE, type ShareKvContentSource as aF, type ShareLink as aG, type ShareLinkData as aH, type ShareLinkLocation as aI, type ShareListEntry as aJ, type ShareListResult as aK, type ShareNativeAction as aL, type ShareNativeInvokeEnvelopeV1 as aM, type ShareNativeInvokeErrorResult as aN, type ShareNativeInvokeInput as aO, type ShareNativeInvokeResult as aP, type ShareNativeInvokeSuccessResult as aQ, type ShareNativeResponse as aR, ShareNativeResponseSchema as aS, type SharePolicy as aT, type SharePolicyBinding as aU, type SharePolicySession as aV, type SharePolicySessionV1 as aW, type SharePolicySessionWireV1 as aX, type PortableDelegation as aY, type ShareReadInvocationV1 as aZ, type ShareReadResult as a_, type ShareAccessV2 as aa, type ShareAction as ab, ShareActionSchema as ac, type ShareAddressedDelegationEnvelopeV2 as ad, ShareAddressedDelegationEnvelopeV2Schema as ae, type ShareAddressedDelegationRequestV2 as af, ShareAddressedDelegationRequestV2Schema as ag, type ShareAddressedDelegationResponseV2 as ah, ShareAddressedDelegationResponseV2Schema as ai, type ShareAddressedRecipientMatcher as aj, type ShareArtifactInput as ak, type ShareArtifactResult as al, type ShareArtifactV2 as am, type ShareCache as an, type ShareCacheEntry as ao, type ShareCacheKey as ap, type ShareCacheMetadata as aq, type ShareCapabilityLike as ar, ShareConflict as as, type ShareContentMetadata as at, type ShareContentSource as au, type ShareDeliveryAuthorization as av, type ShareDeliveryAuthorizationReceipt as aw, type ShareDeliveryAuthorizationRequest as ax, type ShareDeliveryAuthorizationV3 as ay, type ShareDeliveryAuthorizationV3Receipt as az, type AccountDelegationQueryOptions as b, type ShareRecipientClientOptions as b0, ShareRecipientClientOptionsSchema as b1, type ShareRecipientPolicy as b2, ShareRecipientPolicySchema as b3, type ShareRecipientResult as b4, type ShareRecipientTarget as b5, ShareRecipientTargetSchema as b6, type ShareResource as b7, ShareResourceSchema as b8, type ShareSaveOptions as b9, importPortableDelegation as bA, intersectShareCapabilities as bB, isV2ShareLink as bC, normalizeShareActions as bD, normalizeShareRecipientTarget as bE, normalizeShareResource as bF, parsePortableDelegation as bG, parseShareArtifact as bH, parseShareUrl as bI, restoreDelegatedShareKey as bJ, serializePortableDelegation as bK, shareCapabilityAllows as bL, shareDeliveryTrustedKid as bM, signShareEnvelope as bN, validateOwnerSharePolicyRegistration as bO, validateOwnerSharePolicyRegistrationBytes as bP, validateShareDeliveryAuthorizationBytes as bQ, validateShareDeliveryAuthorizationV3Bytes as bR, verifyShareCid as bS, verifyShareEnvelope as bT, CapabilityKeyRegistry as bU, type CapabilityKeyRegistryErrorCode as bV, CapabilityKeyRegistryErrorCodes as bW, type StoredDelegationChain as bX, createCapabilityKeyRegistry as bY, type ShareSchema as ba, type ShareSqlContentSource as bb, type ShareWireAction as bc, SharingService as bd, type SharingServiceConfig as be, type SignedDelegation as bf, type SpaceInfo as bg, type SpaceOwnership as bh, type ValidateShareDeliveryAuthorizationExpected as bi, type VerifyShareEnvelopeOptions as bj, canonicalOwnerSharePolicy as bk, computeOwnerShareRegistrationCid as bl, computeShareCid as bm, createDelegatedShareKey as bn, createPolicyEnforcementDelegation as bo, createShareArtifact as bp, createShareArtifactAsync as bq, createSharePolicy as br, createSharingService as bs, decryptShareBytesAsync as bt, delegatePortablePolicySession as bu, encodeInlineShareUrl as bv, encodeShareArtifact as bw, encodeShareUrl as bx, encryptShareBytes as by, encryptShareBytesAsync as bz, type AccountDelegationRecord as c, type AccountDelegationResource as d, type CreateDelegationParams as e, type CreateDelegationWasmParams as f, type CreateDelegationWasmResult as g, type CreateOwnerDelegationParams as h, type DelegateReceivedShareParams as i, type DelegatedResource as j, type DelegatedShareAccess as k, type DelegatedShareKey as l, type Delegation as m, type DelegationApiResponse as n, type DelegationChain as o, type DelegationChainV2 as p, type DelegationDirection as q, type DelegationErrorCode as r, DelegationErrorCodes as s, type DelegationFilters as t, type DelegationManagerConfig as u, type DelegationRecord as v, type DelegationRevocationReceipt as w, type DelegationStatus as x, type ISharingService as y, type IngestOptions as z };
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 };
@@ -3590,7 +3590,8 @@ declare function validateShareDeliveryAuthorizationBytes(bytesValue: Uint8Array,
3590
3590
  /** Build the trusted-signer descriptor `did:key:...#z...` expects from a raw node signing key. */
3591
3591
  declare function shareDeliveryTrustedKid(publicKey: Uint8Array): string;
3592
3592
 
3593
- declare const SHARE_DELIVERY_AUTHORIZATION_V3_DOMAIN = "xyz.tinycloud.share/delivery-authorization/v3\0";
3593
+ declare const CREDENTIAL_INVITATION_REQUEST_DOMAIN = "xyz.tinycloud.credentials/invitation-request/v1\0";
3594
+ declare const DELIVERY_ADMISSION_DOMAIN = "xyz.tinycloud.policy/delivery-admission/v0\0";
3594
3595
  interface ShareDeliveryAuthorizationV3Request {
3595
3596
  readonly envelope: Record<string, unknown>;
3596
3597
  readonly sealedEnvelope: string;
@@ -3603,41 +3604,43 @@ interface ShareDeliveryAuthorizationV3Request {
3603
3604
  readonly expiresAt: string;
3604
3605
  readonly requestBodyDigest: string;
3605
3606
  }
3606
- interface ShareDeliveryAuthorizationV3 {
3607
- readonly type: "TinyCloudShareDeliveryAuthorization";
3608
- readonly version: 3;
3609
- readonly jti: string;
3610
- readonly shareCid: string;
3611
- readonly shareId: string;
3612
- readonly policyCid: string;
3613
- readonly policyRootCid: string;
3614
- readonly enforcementRootCid: string;
3615
- readonly nodeAudience: string;
3616
- readonly enforcerDid: string;
3617
- readonly targetOrigin: string;
3618
- readonly openCredentialsAudience: string;
3619
- readonly holder: string;
3620
- readonly recipientMatcher: unknown;
3621
- readonly deliveryEmail: string;
3622
- readonly shareUrl: string;
3623
- readonly returnOrigin: string;
3624
- readonly documentName: string;
3625
- readonly senderDid: string;
3626
- readonly senderTrust: string;
3627
- readonly contentSource: unknown;
3628
- readonly contentSourceDigestHex: string;
3629
- readonly shareExpiresAt: string;
3607
+ interface CredentialInvitationRequest {
3608
+ readonly schema: "xyz.tinycloud.credentials/invitation-request/v1";
3609
+ readonly policyId: string;
3610
+ readonly recipient: string;
3611
+ readonly resource: string;
3612
+ readonly credentialType: string;
3613
+ readonly returnLink: string;
3614
+ readonly envelopeRef: string;
3615
+ readonly audience: string;
3630
3616
  readonly issuedAt: string;
3631
- readonly reportAbuseToken: string;
3632
- readonly actions: readonly string[];
3617
+ readonly expiresAt: string;
3618
+ readonly nonce: string;
3619
+ }
3620
+ interface DeliveryAdmission {
3621
+ readonly schema: "xyz.tinycloud.policy/delivery-admission/v0";
3622
+ readonly policyId: string;
3623
+ readonly ownerDid: string;
3624
+ readonly recipient: string;
3633
3625
  readonly resource: string;
3634
- readonly requestBodyDigest: string;
3635
- readonly idempotencyKey: string;
3626
+ readonly actions: readonly ["tinycloud.kv/get"];
3627
+ readonly credentialType: string;
3628
+ readonly returnLink: string;
3629
+ readonly envelopeRef: string;
3630
+ readonly senderKeyDid: string;
3631
+ readonly audience: string;
3632
+ readonly issuedAt: string;
3636
3633
  readonly expiresAt: string;
3637
- readonly dataAuthority: false;
3634
+ readonly nonce: string;
3635
+ readonly signature: {
3636
+ readonly suite: "eddsa-ed25519-sha256-jcs-v1";
3637
+ readonly signerDid: string;
3638
+ readonly value: string;
3639
+ };
3638
3640
  }
3639
3641
  interface ShareDeliveryAuthorizationV3Receipt {
3640
- readonly authorization: ShareDeliveryAuthorizationV3;
3642
+ readonly request: CredentialInvitationRequest;
3643
+ readonly admission: DeliveryAdmission;
3641
3644
  readonly proof: {
3642
3645
  readonly alg: "EdDSA";
3643
3646
  readonly kid: string;
@@ -3646,12 +3649,9 @@ interface ShareDeliveryAuthorizationV3Receipt {
3646
3649
  }
3647
3650
  declare function validateShareDeliveryAuthorizationV3Bytes(bytes: Uint8Array, expected: {
3648
3651
  readonly request: ShareDeliveryAuthorizationV3Request;
3649
- readonly nodeProof: {
3650
- readonly kid: string;
3651
- readonly publicKey: Uint8Array;
3652
- };
3652
+ readonly senderKeyDid: string;
3653
3653
  readonly credentialsAudience: string;
3654
- }): ShareDeliveryAuthorizationV3Receipt;
3654
+ }): Omit<ShareDeliveryAuthorizationV3Receipt, "proof">;
3655
3655
 
3656
3656
  /**
3657
3657
  * The durable record a sender needs, after a reload, to display and manage
@@ -4635,4 +4635,4 @@ declare const ShareNativeResponseSchema: z.ZodDiscriminatedUnion<"action", [z.Zo
4635
4635
  }>]>;
4636
4636
  type ShareNativeResponse = z.infer<typeof ShareNativeResponseSchema>;
4637
4637
 
4638
- export { type ReceiveOptions as $, type AccountDelegationPage as A, type KeyProvider as B, type CapabilityEntry as C, DelegationManager as D, type EncodedShareData as E, type KeyType as F, type GenerateShareParams as G, MAX_SEALED_SHARE_CONTENT_BYTES as H, type ICapabilityKeyRegistry as I, type JWK as J, type KeyInfo as K, MAX_SHARE_ARTIFACT_BYTES as L, MAX_CONTENT_BYTES as M, MAX_SHARE_CONTENT_BYTES as N, MemorySenderShareKeyStorage as O, MemorySenderShareRecordStorage as P, MemoryShareCache as Q, type Result as R, type OwnerDelegationPermission as S, type OwnerDelegationReceipt as T, type OwnerShareAction as U, type OwnerShareDecryption as V, type OwnerShareMatcher as W, type OwnerSharePolicyRegistration as X, type OwnerSharePolicyRegistrationReceipt as Y, type OwnerSharePolicyV2 as Z, type PortableDelegationImportReceipt as _, type DelegationError as a, ShareRecipientClient as a$, type RegisterOwnerSharePolicyParams as a0, SHARE_DELIVERY_AUTHORIZATION_DOMAIN as a1, SHARE_DELIVERY_AUTHORIZATION_V3_DOMAIN as a2, type SenderShareKeyStorage as a3, type SenderShareRecord as a4, type SenderShareRecordStorage as a5, type SenderShareRevocationScope as a6, SenderShareStore as a7, type ShareAccess as a8, ShareAccessError as a9, type ShareDeliveryAuthorizationV3Request as aA, type ShareDetachedProof as aB, ShareEnvelopeError as aC, type ShareEnvelopeV2 as aD, type ShareExpiryBounds as aE, type ShareKvContentSource as aF, type ShareLink as aG, type ShareLinkData as aH, type ShareLinkLocation as aI, type ShareListEntry as aJ, type ShareListResult as aK, type ShareNativeAction as aL, type ShareNativeInvokeEnvelopeV1 as aM, type ShareNativeInvokeErrorResult as aN, type ShareNativeInvokeInput as aO, type ShareNativeInvokeResult as aP, type ShareNativeInvokeSuccessResult as aQ, type ShareNativeResponse as aR, ShareNativeResponseSchema as aS, type SharePolicy as aT, type SharePolicyBinding as aU, type SharePolicySession as aV, type SharePolicySessionV1 as aW, type SharePolicySessionWireV1 as aX, type PortableDelegation as aY, type ShareReadInvocationV1 as aZ, type ShareReadResult as a_, type ShareAccessV2 as aa, type ShareAction as ab, ShareActionSchema as ac, type ShareAddressedDelegationEnvelopeV2 as ad, ShareAddressedDelegationEnvelopeV2Schema as ae, type ShareAddressedDelegationRequestV2 as af, ShareAddressedDelegationRequestV2Schema as ag, type ShareAddressedDelegationResponseV2 as ah, ShareAddressedDelegationResponseV2Schema as ai, type ShareAddressedRecipientMatcher as aj, type ShareArtifactInput as ak, type ShareArtifactResult as al, type ShareArtifactV2 as am, type ShareCache as an, type ShareCacheEntry as ao, type ShareCacheKey as ap, type ShareCacheMetadata as aq, type ShareCapabilityLike as ar, ShareConflict as as, type ShareContentMetadata as at, type ShareContentSource as au, type ShareDeliveryAuthorization as av, type ShareDeliveryAuthorizationReceipt as aw, type ShareDeliveryAuthorizationRequest as ax, type ShareDeliveryAuthorizationV3 as ay, type ShareDeliveryAuthorizationV3Receipt as az, type AccountDelegationQueryOptions as b, type ShareRecipientClientOptions as b0, ShareRecipientClientOptionsSchema as b1, type ShareRecipientPolicy as b2, ShareRecipientPolicySchema as b3, type ShareRecipientResult as b4, type ShareRecipientTarget as b5, ShareRecipientTargetSchema as b6, type ShareResource as b7, ShareResourceSchema as b8, type ShareSaveOptions as b9, importPortableDelegation as bA, intersectShareCapabilities as bB, isV2ShareLink as bC, normalizeShareActions as bD, normalizeShareRecipientTarget as bE, normalizeShareResource as bF, parsePortableDelegation as bG, parseShareArtifact as bH, parseShareUrl as bI, restoreDelegatedShareKey as bJ, serializePortableDelegation as bK, shareCapabilityAllows as bL, shareDeliveryTrustedKid as bM, signShareEnvelope as bN, validateOwnerSharePolicyRegistration as bO, validateOwnerSharePolicyRegistrationBytes as bP, validateShareDeliveryAuthorizationBytes as bQ, validateShareDeliveryAuthorizationV3Bytes as bR, verifyShareCid as bS, verifyShareEnvelope as bT, CapabilityKeyRegistry as bU, type CapabilityKeyRegistryErrorCode as bV, CapabilityKeyRegistryErrorCodes as bW, type StoredDelegationChain as bX, createCapabilityKeyRegistry as bY, type ShareSchema as ba, type ShareSqlContentSource as bb, type ShareWireAction as bc, SharingService as bd, type SharingServiceConfig as be, type SignedDelegation as bf, type SpaceInfo as bg, type SpaceOwnership as bh, type ValidateShareDeliveryAuthorizationExpected as bi, type VerifyShareEnvelopeOptions as bj, canonicalOwnerSharePolicy as bk, computeOwnerShareRegistrationCid as bl, computeShareCid as bm, createDelegatedShareKey as bn, createPolicyEnforcementDelegation as bo, createShareArtifact as bp, createShareArtifactAsync as bq, createSharePolicy as br, createSharingService as bs, decryptShareBytesAsync as bt, delegatePortablePolicySession as bu, encodeInlineShareUrl as bv, encodeShareArtifact as bw, encodeShareUrl as bx, encryptShareBytes as by, encryptShareBytesAsync as bz, type AccountDelegationRecord as c, type AccountDelegationResource as d, type CreateDelegationParams as e, type CreateDelegationWasmParams as f, type CreateDelegationWasmResult as g, type CreateOwnerDelegationParams as h, type DelegateReceivedShareParams as i, type DelegatedResource as j, type DelegatedShareAccess as k, type DelegatedShareKey as l, type Delegation as m, type DelegationApiResponse as n, type DelegationChain as o, type DelegationChainV2 as p, type DelegationDirection as q, type DelegationErrorCode as r, DelegationErrorCodes as s, type DelegationFilters as t, type DelegationManagerConfig as u, type DelegationRecord as v, type DelegationRevocationReceipt as w, type DelegationStatus as x, type ISharingService as y, type IngestOptions as z };
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinycloud/sdk-core",
3
- "version": "3.0.0-beta.6",
3
+ "version": "3.0.0-beta.8",
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.1",
57
- "@tinycloud/share-sdk": "0.3.0-beta.1",
56
+ "@tinycloud/share-envelope": "0.2.1-beta.2",
57
+ "@tinycloud/share-sdk": "0.3.0-beta.2",
58
58
  "@tinycloud/bootstrap": "2.7.0",
59
- "@tinycloud/sdk-services": "2.11.0",
59
+ "@tinycloud/sdk-services": "3.0.0-beta.8",
60
60
  "multiformats": "^13.4.1",
61
61
  "ms": "^2.1.3",
62
62
  "siwe": "^3.0.0",