@tinycloud/sdk-core 3.0.0-beta.9 → 3.0.1-beta.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.
@@ -3498,6 +3525,10 @@ declare const CREDENTIAL_INVITATION_REQUEST_DOMAIN = "xyz.tinycloud.credentials/
3498
3525
  declare const DELIVERY_ADMISSION_DOMAIN = "xyz.tinycloud.policy/delivery-admission/v0\0";
3499
3526
  interface ShareDeliveryAuthorizationV3Request {
3500
3527
  readonly envelope: Record<string, unknown>;
3528
+ /** Base64url canonical sealed envelope bytes, bound by the Node before delivery. */
3529
+ readonly sealedEnvelope: string;
3530
+ /** Base64url 32-byte AES-GCM key; this is the #k fragment value in the return link. */
3531
+ readonly envelopeKey: string;
3501
3532
  readonly shareCid: string;
3502
3533
  readonly recipientEmail: string;
3503
3534
  readonly shareUrl: string;
@@ -4541,4 +4572,4 @@ declare const ShareNativeResponseSchema: z.ZodDiscriminatedUnion<"action", [z.Zo
4541
4572
  }>]>;
4542
4573
  type ShareNativeResponse = z.infer<typeof ShareNativeResponseSchema>;
4543
4574
 
4544
- 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, ShareRecipientClientOptionsSchema 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, ShareEnvelopeError as aA, type ShareEnvelopeV2 as aB, type ShareExpiryBounds as aC, type ShareKvContentSource as aD, type ShareLink as aE, type ShareLinkData as aF, type ShareLinkLocation as aG, type ShareListEntry as aH, type ShareListResult as aI, type ShareNativeAction as aJ, type ShareNativeInvokeEnvelopeV1 as aK, type ShareNativeInvokeErrorResult as aL, type ShareNativeInvokeInput as aM, type ShareNativeInvokeResult as aN, type ShareNativeInvokeSuccessResult as aO, type ShareNativeResponse as aP, ShareNativeResponseSchema as aQ, type SharePolicy as aR, type SharePolicyBinding as aS, type SharePolicySession as aT, type SharePolicySessionV1 as aU, type SharePolicySessionWireV1 as aV, type PortableDelegation as aW, type ShareReadInvocationV1 as aX, type ShareReadResult as aY, ShareRecipientClient as aZ, type ShareRecipientClientOptions 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 ShareDeliveryAuthorizationV3Receipt as ax, type ShareDeliveryAuthorizationV3Request as ay, type ShareDetachedProof as az, type AccountDelegationQueryOptions as b, type ShareRecipientPolicy as b0, ShareRecipientPolicySchema as b1, type ShareRecipientResult as b2, type ShareRecipientTarget as b3, ShareRecipientTargetSchema as b4, type ShareResource as b5, ShareResourceSchema as b6, type ShareSaveOptions as b7, type ShareSchema as b8, type ShareSqlContentSource as b9, normalizeShareActions as bA, normalizeShareRecipientTarget as bB, normalizeShareResource as bC, parsePortableDelegation as bD, parseShareArtifact as bE, parseShareUrl as bF, restoreDelegatedShareKey as bG, serializePortableDelegation as bH, shareCapabilityAllows as bI, signShareEnvelope as bJ, validateOwnerSharePolicyRegistration as bK, validateOwnerSharePolicyRegistrationBytes as bL, validateShareDeliveryAuthorizationV3Bytes as bM, verifyShareCid as bN, verifyShareEnvelope as bO, CapabilityKeyRegistry as bP, type CapabilityKeyRegistryErrorCode as bQ, CapabilityKeyRegistryErrorCodes as bR, type StoredDelegationChain as bS, createCapabilityKeyRegistry as bT, type ShareWireAction as ba, SharingService as bb, type SharingServiceConfig as bc, type SignedDelegation as bd, type SpaceInfo as be, type SpaceOwnership as bf, type VerifyShareEnvelopeOptions as bg, canonicalOwnerSharePolicy as bh, computeOwnerShareRegistrationCid as bi, computeShareCid as bj, createDelegatedShareKey as bk, createPolicyEnforcementDelegation as bl, createShareArtifact as bm, createShareArtifactAsync as bn, createSharePolicy as bo, createSharingService as bp, decryptShareBytesAsync as bq, delegatePortablePolicySession as br, encodeInlineShareUrl as bs, encodeShareArtifact as bt, encodeShareUrl as bu, encryptShareBytes as bv, encryptShareBytesAsync as bw, importPortableDelegation as bx, intersectShareCapabilities as by, isV2ShareLink 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.
@@ -3498,6 +3525,10 @@ declare const CREDENTIAL_INVITATION_REQUEST_DOMAIN = "xyz.tinycloud.credentials/
3498
3525
  declare const DELIVERY_ADMISSION_DOMAIN = "xyz.tinycloud.policy/delivery-admission/v0\0";
3499
3526
  interface ShareDeliveryAuthorizationV3Request {
3500
3527
  readonly envelope: Record<string, unknown>;
3528
+ /** Base64url canonical sealed envelope bytes, bound by the Node before delivery. */
3529
+ readonly sealedEnvelope: string;
3530
+ /** Base64url 32-byte AES-GCM key; this is the #k fragment value in the return link. */
3531
+ readonly envelopeKey: string;
3501
3532
  readonly shareCid: string;
3502
3533
  readonly recipientEmail: string;
3503
3534
  readonly shareUrl: string;
@@ -4541,4 +4572,4 @@ declare const ShareNativeResponseSchema: z.ZodDiscriminatedUnion<"action", [z.Zo
4541
4572
  }>]>;
4542
4573
  type ShareNativeResponse = z.infer<typeof ShareNativeResponseSchema>;
4543
4574
 
4544
- 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, ShareRecipientClientOptionsSchema 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, ShareEnvelopeError as aA, type ShareEnvelopeV2 as aB, type ShareExpiryBounds as aC, type ShareKvContentSource as aD, type ShareLink as aE, type ShareLinkData as aF, type ShareLinkLocation as aG, type ShareListEntry as aH, type ShareListResult as aI, type ShareNativeAction as aJ, type ShareNativeInvokeEnvelopeV1 as aK, type ShareNativeInvokeErrorResult as aL, type ShareNativeInvokeInput as aM, type ShareNativeInvokeResult as aN, type ShareNativeInvokeSuccessResult as aO, type ShareNativeResponse as aP, ShareNativeResponseSchema as aQ, type SharePolicy as aR, type SharePolicyBinding as aS, type SharePolicySession as aT, type SharePolicySessionV1 as aU, type SharePolicySessionWireV1 as aV, type PortableDelegation as aW, type ShareReadInvocationV1 as aX, type ShareReadResult as aY, ShareRecipientClient as aZ, type ShareRecipientClientOptions 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 ShareDeliveryAuthorizationV3Receipt as ax, type ShareDeliveryAuthorizationV3Request as ay, type ShareDetachedProof as az, type AccountDelegationQueryOptions as b, type ShareRecipientPolicy as b0, ShareRecipientPolicySchema as b1, type ShareRecipientResult as b2, type ShareRecipientTarget as b3, ShareRecipientTargetSchema as b4, type ShareResource as b5, ShareResourceSchema as b6, type ShareSaveOptions as b7, type ShareSchema as b8, type ShareSqlContentSource as b9, normalizeShareActions as bA, normalizeShareRecipientTarget as bB, normalizeShareResource as bC, parsePortableDelegation as bD, parseShareArtifact as bE, parseShareUrl as bF, restoreDelegatedShareKey as bG, serializePortableDelegation as bH, shareCapabilityAllows as bI, signShareEnvelope as bJ, validateOwnerSharePolicyRegistration as bK, validateOwnerSharePolicyRegistrationBytes as bL, validateShareDeliveryAuthorizationV3Bytes as bM, verifyShareCid as bN, verifyShareEnvelope as bO, CapabilityKeyRegistry as bP, type CapabilityKeyRegistryErrorCode as bQ, CapabilityKeyRegistryErrorCodes as bR, type StoredDelegationChain as bS, createCapabilityKeyRegistry as bT, type ShareWireAction as ba, SharingService as bb, type SharingServiceConfig as bc, type SignedDelegation as bd, type SpaceInfo as be, type SpaceOwnership as bf, type VerifyShareEnvelopeOptions as bg, canonicalOwnerSharePolicy as bh, computeOwnerShareRegistrationCid as bi, computeShareCid as bj, createDelegatedShareKey as bk, createPolicyEnforcementDelegation as bl, createShareArtifact as bm, createShareArtifactAsync as bn, createSharePolicy as bo, createSharingService as bp, decryptShareBytesAsync as bq, delegatePortablePolicySession as br, encodeInlineShareUrl as bs, encodeShareArtifact as bt, encodeShareUrl as bu, encryptShareBytes as bv, encryptShareBytesAsync as bw, importPortableDelegation as bx, intersectShareCapabilities as by, isV2ShareLink 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.9",
3
+ "version": "3.0.1-beta.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": "1.0.0-beta.3",
57
- "@tinycloud/share-sdk": "1.0.0-beta.3",
56
+ "@tinycloud/share-envelope": "1.1.0-beta.0",
57
+ "@tinycloud/share-sdk": "1.0.1-beta.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",