@tinycloud/sdk-core 3.3.0-beta.21 → 3.3.0-beta.23

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.
@@ -1,7 +1,7 @@
1
- import { P as PolicyEngineRecord, S as SignedObjectSigner, a as Policy, U as UnsignedPolicyEngineRecord } from '../credential-admission-CIMA0jGE.cjs';
2
- export { A as ATTESTED_ENFORCER_BINDING_V2_SCHEMA, b as AdmitPolicyCredentialV3Input, c as AdmitPolicyCredentialV4Input, d as AttestedEnforcerBindingV2, B as BuildPolicyCredentialPresentationV3Input, e as BuildPolicyCredentialPresentationV4Input, C as CONTENT_SOURCE_V1_DOMAIN, f as CompactPolicyDescendantInput, g as CompactPolicyInvocationInput, h as CompactUcanAuthorizationV1, E as ED25519_JCS_SIGNATURE_SUITE, i as EIP191_JCS_SIGNATURE_SUITE, J as JsonObject, L as LAST_V2_CREATE_AT, j as LAST_V2_READ_AT, M as MAX_LEGACY_ENVELOPE_EXPIRES_AT, N as NATIVE_PROJECTION_V1_DOMAIN, k as POLICY_CAPABILITY_V1_DOMAIN, l as POLICY_CAPABILITY_V1_SCHEMA, m as POLICY_CREDENTIAL_REQUIREMENT_V1_TYPE, n as POLICY_ENFORCEMENT_DELEGATION_V2_SCHEMA, o as POLICY_ENGINE_RECORD_SCHEMA, p as POLICY_PRESENTATION_V3_DOMAIN, q as POLICY_PRESENTATION_V3_SCHEMA, r as POLICY_PRESENTATION_V4_DOMAIN, s as POLICY_PRESENTATION_V4_SCHEMA, t as POLICY_SCHEMA, u as POLICY_SESSION_UCAN_V1_PROFILE, v as POLICY_STATUS_SCHEMA, w as POLICY_V1_DOMAIN, x as POLICY_V1_SCHEMA, y as POLICY_V2_DOMAIN, z as POLICY_V2_SCHEMA, D as PolicyChallengeV3, F as PolicyCredentialAdmissionV3, G as PolicyCredentialAdmissionV4, H as PolicyCredentialPresentationV3, I as PolicyCredentialPresentationV4, K as PolicyCredentialRequirementV1, O as PolicyRootStatusV3, Q as PolicyRootV3, R as PolicySessionUcanFactV1, T as PolicySessionUcanV1, V as PolicyStatus, W as ROOT_REVOCATION_V1_DOMAIN, X as ROOT_REVOCATION_V1_SCHEMA, Y as ROOT_STATUS_CHECKPOINT_V1_SCHEMA, Z as ROOT_STATUS_RENEWAL_V1_DOMAIN, _ as ROOT_STATUS_V1_DOMAIN, $ as RegisterPolicyV3Input, a0 as RegisterPolicyV3Receipt, a1 as SignCompactUcanAuthorizationInput, a2 as SignCompactUcanRootAuthorizationInput, a3 as SignatureMaterialError, a4 as SignatureSuite, a5 as SignatureVerificationError, a6 as SignedObjectCanonicalizationError, a7 as SignedObjectDigestError, a8 as SignedObjectErrorCode, a9 as SignedObjectIdError, aa as SignedObjectKind, ab as SignedObjectMaterial, ac as SignedObjectProfileError, ad as SignedObjectSchemaError, ae as SignedObjectSignature, af as SignedObjectVerificationResult, ag as SignedPolicyObject, ah as SigningKeyBindingError, ai as UnifiedContentSource, aj as UnifiedEncryptionCapability, ak as UnifiedKvCapability, al as UnifiedNativeCapability, am as UnifiedPolicyCapability, an as UnifiedPolicyV1, ao as UnifiedPolicyV2, ap as UnifiedResourceSelector, aq as UnsignedPolicy, ar as UnsignedPolicyCredentialPresentationV4, as as UnsignedPolicyObject, at as UnsignedPolicyStatus, au as UnsignedUnifiedPolicyV2, av as UnsupportedSignatureSuiteError, aw as admitPolicyCredentialV3, ax as admitPolicyCredentialV4, ay as buildPolicyCredentialPresentationV3, az as buildPolicyCredentialPresentationV4, aA as canonicalizeSignedObjectUnsigned, aB as canonicalizeUnifiedPolicyCapability, aC as compactAttenuationContains, aD as contentSourceDigestHex, aE as createAndSignPolicy, aF as createAndSignPolicyEngineRecord, aG as createAndSignPolicyStatus, aH as createAndSignSignedObject, aI as createCompactPolicyDescendant, aJ as createCompactPolicyInvocation, aK as deriveSignedObjectMaterial, aL as getPolicyRootStatusV3, aM as issuedCredentialEnvelopeFromVerified, aN as mintPolicySessionV3, aO as normalizeUnifiedPolicyCapability, aP as parseCompactUcanAuthorization, aQ as parsePolicySessionUcan, aR as parseSignedCompactUcanAttenuation, aS as policyCidFromCanonicalBytes, aT as policyDigestHex, aU as policyIdForDigestHex, aV as policyV2DigestHex, aW as projectUnifiedPolicyCapabilities, aX as projectUnifiedPolicyCapability, aY as registerPolicyV3, aZ as renewPolicyRootStatusV3, a_ as requestPolicyChallengeV3, a$ as revokePolicyRootV3, b0 as signCompactPolicyDescendant, b1 as signCompactUcanAuthorization, b2 as signCompactUcanRootAuthorization, b3 as signPolicyCredentialPresentationV4, b4 as signedObjectIdFor, b5 as toSignedObjectError, b6 as unifiedNativeProjectionHashHex, b7 as unifiedPolicyCapabilityContains, b8 as unifiedPolicyCapabilityDigestHex, b9 as unifiedPolicyCapabilityFromNative, ba as validatePolicyCredentialRequirementV1, bb as validatePolicyEngineRecordSigned, bc as validatePolicyEngineRecordSignedShape, bd as validatePolicyEngineRecordUnsigned, be as validatePolicySigned, bf as validatePolicySignedShape, bg as validatePolicyStatusSigned, bh as validatePolicyStatusSignedShape, bi as validatePolicyStatusUnsigned, bj as validatePolicyUnsigned, bk as validateUnifiedPolicyV2, bl as verifyPolicy, bm as verifyPolicyEngineRecord, bn as verifyPolicyRootRevocationV3, bo as verifyPolicyRootStatusCheckpointV3, bp as verifyPolicyStatus, bq as verifySignedObject } from '../credential-admission-CIMA0jGE.cjs';
3
- import { J as JsonObject, a as PolicyCapabilityError } from '../capability-BA49Uboq.cjs';
4
- export { b as JsonValue, P as PolicyCapability, c as PolicyCapabilityErrorCode, d as canonicalizePolicyCapability, j as jcsCanonicalize, n as normalizeJson, e as normalizePolicyCapability, p as policyCapabilityContains, f as policyCapabilityDigestHex, s as serializeJcsJson } from '../capability-BA49Uboq.cjs';
1
+ import { P as PolicyEngineRecord, S as SignedObjectSigner, a as Policy, U as UnsignedPolicyEngineRecord } from '../credential-admission-Cg1M9uyV.cjs';
2
+ export { A as ATTESTED_ENFORCER_BINDING_V2_SCHEMA, b as AdmitPolicyCredentialV3Input, c as AdmitPolicyCredentialV4Input, d as AttestedEnforcerBindingV2, B as BuildPolicyCredentialPresentationV3Input, e as BuildPolicyCredentialPresentationV4Input, C as CONTENT_SOURCE_V1_DOMAIN, f as CompactPolicyDescendantInput, g as CompactPolicyInvocationInput, h as CompactUcanAuthorizationV1, E as ED25519_JCS_SIGNATURE_SUITE, i as EIP191_JCS_SIGNATURE_SUITE, J as JsonObject, L as LAST_V2_CREATE_AT, j as LAST_V2_READ_AT, M as MAX_LEGACY_ENVELOPE_EXPIRES_AT, N as NATIVE_PROJECTION_V1_DOMAIN, k as POLICY_CAPABILITY_V1_DOMAIN, l as POLICY_CAPABILITY_V1_SCHEMA, m as POLICY_CREDENTIAL_REQUIREMENT_V1_TYPE, n as POLICY_ENFORCEMENT_DELEGATION_V2_SCHEMA, o as POLICY_ENGINE_RECORD_SCHEMA, p as POLICY_PRESENTATION_V3_DOMAIN, q as POLICY_PRESENTATION_V3_SCHEMA, r as POLICY_PRESENTATION_V4_DOMAIN, s as POLICY_PRESENTATION_V4_SCHEMA, t as POLICY_SCHEMA, u as POLICY_SESSION_UCAN_V1_PROFILE, v as POLICY_STATUS_SCHEMA, w as POLICY_V1_DOMAIN, x as POLICY_V1_SCHEMA, y as POLICY_V2_DOMAIN, z as POLICY_V2_SCHEMA, D as PolicyChallengeV3, F as PolicyCredentialAdmissionV3, G as PolicyCredentialAdmissionV4, H as PolicyCredentialPresentationV3, I as PolicyCredentialPresentationV4, K as PolicyCredentialRequirementV1, O as PolicyRootStatusV3, Q as PolicyRootV3, R as PolicySessionUcanFactV1, T as PolicySessionUcanV1, V as PolicyStatus, W as ROOT_REVOCATION_V1_DOMAIN, X as ROOT_REVOCATION_V1_SCHEMA, Y as ROOT_STATUS_CHECKPOINT_V1_SCHEMA, Z as ROOT_STATUS_RENEWAL_V1_DOMAIN, _ as ROOT_STATUS_V1_DOMAIN, $ as RegisterPolicyV3Input, a0 as RegisterPolicyV3Receipt, a1 as SignCompactUcanAuthorizationInput, a2 as SignCompactUcanRootAuthorizationInput, a3 as SignatureMaterialError, a4 as SignatureSuite, a5 as SignatureVerificationError, a6 as SignedObjectCanonicalizationError, a7 as SignedObjectDigestError, a8 as SignedObjectErrorCode, a9 as SignedObjectIdError, aa as SignedObjectKind, ab as SignedObjectMaterial, ac as SignedObjectProfileError, ad as SignedObjectSchemaError, ae as SignedObjectSignature, af as SignedObjectVerificationResult, ag as SignedPolicyObject, ah as SigningKeyBindingError, ai as UnifiedContentSource, aj as UnifiedEncryptionCapability, ak as UnifiedKvCapability, al as UnifiedNativeCapability, am as UnifiedPolicyCapability, an as UnifiedPolicyV1, ao as UnifiedPolicyV2, ap as UnifiedResourceSelector, aq as UnsignedPolicy, ar as UnsignedPolicyCredentialPresentationV4, as as UnsignedPolicyObject, at as UnsignedPolicyStatus, au as UnsignedUnifiedPolicyV2, av as UnsupportedSignatureSuiteError, aw as admitPolicyCredentialV3, ax as admitPolicyCredentialV4, ay as buildPolicyCredentialPresentationV3, az as buildPolicyCredentialPresentationV4, aA as canonicalizeSignedObjectUnsigned, aB as canonicalizeUnifiedPolicyCapability, aC as compactAttenuationContains, aD as contentSourceDigestHex, aE as createAndSignPolicy, aF as createAndSignPolicyEngineRecord, aG as createAndSignPolicyStatus, aH as createAndSignSignedObject, aI as createCompactPolicyDescendant, aJ as createCompactPolicyInvocation, aK as deriveSignedObjectMaterial, aL as getPolicyRootStatusV3, aM as issuedCredentialEnvelopeFromVerified, aN as mintPolicySessionV3, aO as normalizeUnifiedPolicyCapability, aP as parseCompactUcanAuthorization, aQ as parsePolicySessionUcan, aR as parseSignedCompactUcanAttenuation, aS as policyCidFromCanonicalBytes, aT as policyDigestHex, aU as policyIdForDigestHex, aV as policyV2DigestHex, aW as projectUnifiedPolicyCapabilities, aX as projectUnifiedPolicyCapability, aY as registerPolicyV3, aZ as renewPolicyRootStatusV3, a_ as requestPolicyChallengeV3, a$ as revokePolicyRootV3, b0 as signCompactPolicyDescendant, b1 as signCompactUcanAuthorization, b2 as signCompactUcanRootAuthorization, b3 as signPolicyCredentialPresentationV4, b4 as signedObjectIdFor, b5 as toSignedObjectError, b6 as unifiedNativeProjectionHashHex, b7 as unifiedPolicyCapabilityContains, b8 as unifiedPolicyCapabilityDigestHex, b9 as unifiedPolicyCapabilityFromNative, ba as validatePolicyCredentialRequirementV1, bb as validatePolicyEngineRecordSigned, bc as validatePolicyEngineRecordSignedShape, bd as validatePolicyEngineRecordUnsigned, be as validatePolicySigned, bf as validatePolicySignedShape, bg as validatePolicyStatusSigned, bh as validatePolicyStatusSignedShape, bi as validatePolicyStatusUnsigned, bj as validatePolicyUnsigned, bk as validateUnifiedPolicyV2, bl as verifyPolicy, bm as verifyPolicyEngineRecord, bn as verifyPolicyRootRevocationV3, bo as verifyPolicyRootStatusCheckpointV3, bp as verifyPolicyStatus, bq as verifySignedObject } from '../credential-admission-Cg1M9uyV.cjs';
3
+ import { J as JsonObject, P as PolicyCapabilityError } from '../capability-BjzXwtNw.cjs';
4
+ export { a as JsonValue, b as PolicyCapability, c as PolicyCapabilityErrorCode, d as canonicalizePolicyCapability, j as jcsCanonicalize, n as normalizeJson, e as normalizePolicyCapability, p as policyCapabilityContains, f as policyCapabilityDigestHex, s as serializeJcsJson } from '../capability-BjzXwtNw.cjs';
5
5
  import 'zod';
6
6
 
7
7
  declare const TRANSCRIPT_SHARE_BOOTSTRAP_SCHEMA: "xyz.tinycloud.exchange/transcript-bootstrap/v0";
@@ -1,7 +1,7 @@
1
- import { P as PolicyEngineRecord, S as SignedObjectSigner, a as Policy, U as UnsignedPolicyEngineRecord } from '../credential-admission-CJbnvwJa.js';
2
- export { A as ATTESTED_ENFORCER_BINDING_V2_SCHEMA, b as AdmitPolicyCredentialV3Input, c as AdmitPolicyCredentialV4Input, d as AttestedEnforcerBindingV2, B as BuildPolicyCredentialPresentationV3Input, e as BuildPolicyCredentialPresentationV4Input, C as CONTENT_SOURCE_V1_DOMAIN, f as CompactPolicyDescendantInput, g as CompactPolicyInvocationInput, h as CompactUcanAuthorizationV1, E as ED25519_JCS_SIGNATURE_SUITE, i as EIP191_JCS_SIGNATURE_SUITE, J as JsonObject, L as LAST_V2_CREATE_AT, j as LAST_V2_READ_AT, M as MAX_LEGACY_ENVELOPE_EXPIRES_AT, N as NATIVE_PROJECTION_V1_DOMAIN, k as POLICY_CAPABILITY_V1_DOMAIN, l as POLICY_CAPABILITY_V1_SCHEMA, m as POLICY_CREDENTIAL_REQUIREMENT_V1_TYPE, n as POLICY_ENFORCEMENT_DELEGATION_V2_SCHEMA, o as POLICY_ENGINE_RECORD_SCHEMA, p as POLICY_PRESENTATION_V3_DOMAIN, q as POLICY_PRESENTATION_V3_SCHEMA, r as POLICY_PRESENTATION_V4_DOMAIN, s as POLICY_PRESENTATION_V4_SCHEMA, t as POLICY_SCHEMA, u as POLICY_SESSION_UCAN_V1_PROFILE, v as POLICY_STATUS_SCHEMA, w as POLICY_V1_DOMAIN, x as POLICY_V1_SCHEMA, y as POLICY_V2_DOMAIN, z as POLICY_V2_SCHEMA, D as PolicyChallengeV3, F as PolicyCredentialAdmissionV3, G as PolicyCredentialAdmissionV4, H as PolicyCredentialPresentationV3, I as PolicyCredentialPresentationV4, K as PolicyCredentialRequirementV1, O as PolicyRootStatusV3, Q as PolicyRootV3, R as PolicySessionUcanFactV1, T as PolicySessionUcanV1, V as PolicyStatus, W as ROOT_REVOCATION_V1_DOMAIN, X as ROOT_REVOCATION_V1_SCHEMA, Y as ROOT_STATUS_CHECKPOINT_V1_SCHEMA, Z as ROOT_STATUS_RENEWAL_V1_DOMAIN, _ as ROOT_STATUS_V1_DOMAIN, $ as RegisterPolicyV3Input, a0 as RegisterPolicyV3Receipt, a1 as SignCompactUcanAuthorizationInput, a2 as SignCompactUcanRootAuthorizationInput, a3 as SignatureMaterialError, a4 as SignatureSuite, a5 as SignatureVerificationError, a6 as SignedObjectCanonicalizationError, a7 as SignedObjectDigestError, a8 as SignedObjectErrorCode, a9 as SignedObjectIdError, aa as SignedObjectKind, ab as SignedObjectMaterial, ac as SignedObjectProfileError, ad as SignedObjectSchemaError, ae as SignedObjectSignature, af as SignedObjectVerificationResult, ag as SignedPolicyObject, ah as SigningKeyBindingError, ai as UnifiedContentSource, aj as UnifiedEncryptionCapability, ak as UnifiedKvCapability, al as UnifiedNativeCapability, am as UnifiedPolicyCapability, an as UnifiedPolicyV1, ao as UnifiedPolicyV2, ap as UnifiedResourceSelector, aq as UnsignedPolicy, ar as UnsignedPolicyCredentialPresentationV4, as as UnsignedPolicyObject, at as UnsignedPolicyStatus, au as UnsignedUnifiedPolicyV2, av as UnsupportedSignatureSuiteError, aw as admitPolicyCredentialV3, ax as admitPolicyCredentialV4, ay as buildPolicyCredentialPresentationV3, az as buildPolicyCredentialPresentationV4, aA as canonicalizeSignedObjectUnsigned, aB as canonicalizeUnifiedPolicyCapability, aC as compactAttenuationContains, aD as contentSourceDigestHex, aE as createAndSignPolicy, aF as createAndSignPolicyEngineRecord, aG as createAndSignPolicyStatus, aH as createAndSignSignedObject, aI as createCompactPolicyDescendant, aJ as createCompactPolicyInvocation, aK as deriveSignedObjectMaterial, aL as getPolicyRootStatusV3, aM as issuedCredentialEnvelopeFromVerified, aN as mintPolicySessionV3, aO as normalizeUnifiedPolicyCapability, aP as parseCompactUcanAuthorization, aQ as parsePolicySessionUcan, aR as parseSignedCompactUcanAttenuation, aS as policyCidFromCanonicalBytes, aT as policyDigestHex, aU as policyIdForDigestHex, aV as policyV2DigestHex, aW as projectUnifiedPolicyCapabilities, aX as projectUnifiedPolicyCapability, aY as registerPolicyV3, aZ as renewPolicyRootStatusV3, a_ as requestPolicyChallengeV3, a$ as revokePolicyRootV3, b0 as signCompactPolicyDescendant, b1 as signCompactUcanAuthorization, b2 as signCompactUcanRootAuthorization, b3 as signPolicyCredentialPresentationV4, b4 as signedObjectIdFor, b5 as toSignedObjectError, b6 as unifiedNativeProjectionHashHex, b7 as unifiedPolicyCapabilityContains, b8 as unifiedPolicyCapabilityDigestHex, b9 as unifiedPolicyCapabilityFromNative, ba as validatePolicyCredentialRequirementV1, bb as validatePolicyEngineRecordSigned, bc as validatePolicyEngineRecordSignedShape, bd as validatePolicyEngineRecordUnsigned, be as validatePolicySigned, bf as validatePolicySignedShape, bg as validatePolicyStatusSigned, bh as validatePolicyStatusSignedShape, bi as validatePolicyStatusUnsigned, bj as validatePolicyUnsigned, bk as validateUnifiedPolicyV2, bl as verifyPolicy, bm as verifyPolicyEngineRecord, bn as verifyPolicyRootRevocationV3, bo as verifyPolicyRootStatusCheckpointV3, bp as verifyPolicyStatus, bq as verifySignedObject } from '../credential-admission-CJbnvwJa.js';
3
- import { J as JsonObject, a as PolicyCapabilityError } from '../capability-BA49Uboq.js';
4
- export { b as JsonValue, P as PolicyCapability, c as PolicyCapabilityErrorCode, d as canonicalizePolicyCapability, j as jcsCanonicalize, n as normalizeJson, e as normalizePolicyCapability, p as policyCapabilityContains, f as policyCapabilityDigestHex, s as serializeJcsJson } from '../capability-BA49Uboq.js';
1
+ import { P as PolicyEngineRecord, S as SignedObjectSigner, a as Policy, U as UnsignedPolicyEngineRecord } from '../credential-admission-7I_ymo-C.js';
2
+ export { A as ATTESTED_ENFORCER_BINDING_V2_SCHEMA, b as AdmitPolicyCredentialV3Input, c as AdmitPolicyCredentialV4Input, d as AttestedEnforcerBindingV2, B as BuildPolicyCredentialPresentationV3Input, e as BuildPolicyCredentialPresentationV4Input, C as CONTENT_SOURCE_V1_DOMAIN, f as CompactPolicyDescendantInput, g as CompactPolicyInvocationInput, h as CompactUcanAuthorizationV1, E as ED25519_JCS_SIGNATURE_SUITE, i as EIP191_JCS_SIGNATURE_SUITE, J as JsonObject, L as LAST_V2_CREATE_AT, j as LAST_V2_READ_AT, M as MAX_LEGACY_ENVELOPE_EXPIRES_AT, N as NATIVE_PROJECTION_V1_DOMAIN, k as POLICY_CAPABILITY_V1_DOMAIN, l as POLICY_CAPABILITY_V1_SCHEMA, m as POLICY_CREDENTIAL_REQUIREMENT_V1_TYPE, n as POLICY_ENFORCEMENT_DELEGATION_V2_SCHEMA, o as POLICY_ENGINE_RECORD_SCHEMA, p as POLICY_PRESENTATION_V3_DOMAIN, q as POLICY_PRESENTATION_V3_SCHEMA, r as POLICY_PRESENTATION_V4_DOMAIN, s as POLICY_PRESENTATION_V4_SCHEMA, t as POLICY_SCHEMA, u as POLICY_SESSION_UCAN_V1_PROFILE, v as POLICY_STATUS_SCHEMA, w as POLICY_V1_DOMAIN, x as POLICY_V1_SCHEMA, y as POLICY_V2_DOMAIN, z as POLICY_V2_SCHEMA, D as PolicyChallengeV3, F as PolicyCredentialAdmissionV3, G as PolicyCredentialAdmissionV4, H as PolicyCredentialPresentationV3, I as PolicyCredentialPresentationV4, K as PolicyCredentialRequirementV1, O as PolicyRootStatusV3, Q as PolicyRootV3, R as PolicySessionUcanFactV1, T as PolicySessionUcanV1, V as PolicyStatus, W as ROOT_REVOCATION_V1_DOMAIN, X as ROOT_REVOCATION_V1_SCHEMA, Y as ROOT_STATUS_CHECKPOINT_V1_SCHEMA, Z as ROOT_STATUS_RENEWAL_V1_DOMAIN, _ as ROOT_STATUS_V1_DOMAIN, $ as RegisterPolicyV3Input, a0 as RegisterPolicyV3Receipt, a1 as SignCompactUcanAuthorizationInput, a2 as SignCompactUcanRootAuthorizationInput, a3 as SignatureMaterialError, a4 as SignatureSuite, a5 as SignatureVerificationError, a6 as SignedObjectCanonicalizationError, a7 as SignedObjectDigestError, a8 as SignedObjectErrorCode, a9 as SignedObjectIdError, aa as SignedObjectKind, ab as SignedObjectMaterial, ac as SignedObjectProfileError, ad as SignedObjectSchemaError, ae as SignedObjectSignature, af as SignedObjectVerificationResult, ag as SignedPolicyObject, ah as SigningKeyBindingError, ai as UnifiedContentSource, aj as UnifiedEncryptionCapability, ak as UnifiedKvCapability, al as UnifiedNativeCapability, am as UnifiedPolicyCapability, an as UnifiedPolicyV1, ao as UnifiedPolicyV2, ap as UnifiedResourceSelector, aq as UnsignedPolicy, ar as UnsignedPolicyCredentialPresentationV4, as as UnsignedPolicyObject, at as UnsignedPolicyStatus, au as UnsignedUnifiedPolicyV2, av as UnsupportedSignatureSuiteError, aw as admitPolicyCredentialV3, ax as admitPolicyCredentialV4, ay as buildPolicyCredentialPresentationV3, az as buildPolicyCredentialPresentationV4, aA as canonicalizeSignedObjectUnsigned, aB as canonicalizeUnifiedPolicyCapability, aC as compactAttenuationContains, aD as contentSourceDigestHex, aE as createAndSignPolicy, aF as createAndSignPolicyEngineRecord, aG as createAndSignPolicyStatus, aH as createAndSignSignedObject, aI as createCompactPolicyDescendant, aJ as createCompactPolicyInvocation, aK as deriveSignedObjectMaterial, aL as getPolicyRootStatusV3, aM as issuedCredentialEnvelopeFromVerified, aN as mintPolicySessionV3, aO as normalizeUnifiedPolicyCapability, aP as parseCompactUcanAuthorization, aQ as parsePolicySessionUcan, aR as parseSignedCompactUcanAttenuation, aS as policyCidFromCanonicalBytes, aT as policyDigestHex, aU as policyIdForDigestHex, aV as policyV2DigestHex, aW as projectUnifiedPolicyCapabilities, aX as projectUnifiedPolicyCapability, aY as registerPolicyV3, aZ as renewPolicyRootStatusV3, a_ as requestPolicyChallengeV3, a$ as revokePolicyRootV3, b0 as signCompactPolicyDescendant, b1 as signCompactUcanAuthorization, b2 as signCompactUcanRootAuthorization, b3 as signPolicyCredentialPresentationV4, b4 as signedObjectIdFor, b5 as toSignedObjectError, b6 as unifiedNativeProjectionHashHex, b7 as unifiedPolicyCapabilityContains, b8 as unifiedPolicyCapabilityDigestHex, b9 as unifiedPolicyCapabilityFromNative, ba as validatePolicyCredentialRequirementV1, bb as validatePolicyEngineRecordSigned, bc as validatePolicyEngineRecordSignedShape, bd as validatePolicyEngineRecordUnsigned, be as validatePolicySigned, bf as validatePolicySignedShape, bg as validatePolicyStatusSigned, bh as validatePolicyStatusSignedShape, bi as validatePolicyStatusUnsigned, bj as validatePolicyUnsigned, bk as validateUnifiedPolicyV2, bl as verifyPolicy, bm as verifyPolicyEngineRecord, bn as verifyPolicyRootRevocationV3, bo as verifyPolicyRootStatusCheckpointV3, bp as verifyPolicyStatus, bq as verifySignedObject } from '../credential-admission-7I_ymo-C.js';
3
+ import { J as JsonObject, P as PolicyCapabilityError } from '../capability-BjzXwtNw.js';
4
+ export { a as JsonValue, b as PolicyCapability, c as PolicyCapabilityErrorCode, d as canonicalizePolicyCapability, j as jcsCanonicalize, n as normalizeJson, e as normalizePolicyCapability, p as policyCapabilityContains, f as policyCapabilityDigestHex, s as serializeJcsJson } from '../capability-BjzXwtNw.js';
5
5
  import 'zod';
6
6
 
7
7
  declare const TRANSCRIPT_SHARE_BOOTSTRAP_SCHEMA: "xyz.tinycloud.exchange/transcript-bootstrap/v0";
@@ -226,6 +226,7 @@ declare const DelegationErrorCodes: {
226
226
  readonly KV_SERVICE_UNAVAILABLE: "KV_SERVICE_UNAVAILABLE";
227
227
  readonly DATA_FETCH_FAILED: "DATA_FETCH_FAILED";
228
228
  readonly VALIDATION_ERROR: "VALIDATION_ERROR";
229
+ readonly UNSUPPORTED_OPERATION: "UNSUPPORTED_OPERATION";
229
230
  };
230
231
  type DelegationErrorCode = (typeof DelegationErrorCodes)[keyof typeof DelegationErrorCodes];
231
232
  /**
@@ -1727,7 +1728,7 @@ type CreateDelegationWasmResult = z.infer<typeof CreateDelegationWasmResultSchem
1727
1728
  /**
1728
1729
  * DelegationManager - Handles delegation CRUD operations.
1729
1730
  *
1730
- * This class manages the creation, revocation, listing, and querying
1731
+ * This class manages the revocation, status, and querying
1731
1732
  * of delegations within TinyCloud. It extracts and improves upon the
1732
1733
  * delegation functionality previously in ITinyCloudStorage.
1733
1734
  *
@@ -1747,16 +1748,11 @@ type CreateDelegationWasmResult = z.infer<typeof CreateDelegationWasmResultSchem
1747
1748
  * invoke,
1748
1749
  * });
1749
1750
  *
1750
- * // Create a delegation
1751
- * const result = await delegations.create({
1752
- * delegateDID: "did:pkh:eip155:1:0x...",
1753
- * path: "shared/",
1754
- * actions: ["tinycloud.kv/get", "tinycloud.kv/list"],
1755
- * expiry: new Date(Date.now() + 24 * 60 * 60 * 1000), // 24 hours
1756
- * });
1751
+ * // Revoke a delegation
1752
+ * const result = await delegations.revoke("bafy...");
1757
1753
  *
1758
1754
  * if (result.ok) {
1759
- * console.log("Created delegation:", result.data.cid);
1755
+ * console.log("Revoked");
1760
1756
  * }
1761
1757
  * ```
1762
1758
  */
@@ -1788,27 +1784,6 @@ declare class DelegationManager {
1788
1784
  * Executes an invoke operation against the delegation API.
1789
1785
  */
1790
1786
  private invokeOperation;
1791
- /**
1792
- * Creates a new delegation.
1793
- *
1794
- * Delegates specific permissions to another DID for a given path.
1795
- * The delegatee can then use these permissions to access resources
1796
- * within the specified scope.
1797
- *
1798
- * @param params - Parameters for the delegation
1799
- * @returns Result containing the created Delegation or an error
1800
- *
1801
- * @example
1802
- * ```typescript
1803
- * const result = await manager.create({
1804
- * delegateDID: bob.did,
1805
- * path: "documents/shared/",
1806
- * actions: ["tinycloud.kv/get", "tinycloud.kv/put"],
1807
- * expiry: new Date(Date.now() + 7 * 24 * 60 * 60 * 1000), // 7 days
1808
- * });
1809
- * ```
1810
- */
1811
- create(params: CreateDelegationParams): Promise<Result<Delegation>>;
1812
1787
  /**
1813
1788
  * Revokes an existing delegation.
1814
1789
  *
@@ -1840,25 +1815,6 @@ declare class DelegationManager {
1840
1815
  status(cid: string): Promise<Result<DelegationStatus>>;
1841
1816
  /** Query lifecycle-complete delegation history for the authenticated account. */
1842
1817
  query(options?: AccountDelegationQueryOptions): Promise<Result<AccountDelegationPage>>;
1843
- /**
1844
- * Lists all delegations for the current session's space.
1845
- *
1846
- * Returns both delegations created by the current user (as delegator)
1847
- * and delegations granted to the current user (as delegatee).
1848
- *
1849
- * @returns Result containing an array of Delegations or an error
1850
- *
1851
- * @example
1852
- * ```typescript
1853
- * const result = await manager.list();
1854
- * if (result.ok) {
1855
- * for (const delegation of result.data) {
1856
- * console.log(`${delegation.cid}: ${delegation.path} -> ${delegation.delegateDID}`);
1857
- * }
1858
- * }
1859
- * ```
1860
- */
1861
- list(): Promise<Result<Delegation[]>>;
1862
1818
  /**
1863
1819
  * Gets the full delegation chain for a given delegation.
1864
1820
  *
@@ -2982,11 +2938,6 @@ interface SharingServiceConfig {
2982
2938
  keyProvider: KeyProvider;
2983
2939
  /** Capability key registry for key/delegation management */
2984
2940
  registry: ICapabilityKeyRegistry;
2985
- /**
2986
- * Delegation manager for creating delegations (used if createDelegation not provided).
2987
- * Required for generate(), optional for receive().
2988
- */
2989
- delegationManager?: DelegationManager;
2990
2941
  /** Factory for creating KV service instances */
2991
2942
  createKVService: (config: {
2992
2943
  hosts: string[];
@@ -2998,8 +2949,8 @@ interface SharingServiceConfig {
2998
2949
  /** Base URL for sharing links (e.g., "https://share.myapp.com") */
2999
2950
  baseUrl?: string;
3000
2951
  /**
3001
- * Custom delegation creation function. When provided, this is used instead
3002
- * of delegationManager.create(). This allows platforms to use their own
2952
+ * Custom delegation creation function. Used when no WASM creation function is
2953
+ * available. This allows platforms to use their own
3003
2954
  * delegation creation logic (e.g., SIWE-based /delegate endpoint).
3004
2955
  */
3005
2956
  createDelegation?: (params: CreateDelegationParams) => Promise<Result<Delegation, DelegationError>>;
@@ -3117,7 +3068,6 @@ interface ISharingService {
3117
3068
  * invoke,
3118
3069
  * keyProvider,
3119
3070
  * registry,
3120
- * delegationManager,
3121
3071
  * createKVService,
3122
3072
  * baseUrl: "https://share.myapp.com"
3123
3073
  * });
@@ -3148,7 +3098,6 @@ declare class SharingService implements ISharingService {
3148
3098
  private fetchFn;
3149
3099
  private keyProvider;
3150
3100
  private registry;
3151
- private delegationManager?;
3152
3101
  private createKVService;
3153
3102
  private baseUrl;
3154
3103
  private createDelegationFn?;
@@ -3172,9 +3121,9 @@ declare class SharingService implements ISharingService {
3172
3121
  updateSession(session: ServiceSession): void;
3173
3122
  /**
3174
3123
  * Updates the service configuration.
3175
- * Used to add full capabilities (session, delegationManager, createDelegation, createDelegationWasm) after signIn.
3124
+ * Used to add full capabilities (session, createDelegation, createDelegationWasm) after signIn.
3176
3125
  */
3177
- updateConfig(config: Partial<Pick<SharingServiceConfig, "session" | "delegationManager" | "createDelegation" | "createDelegationWasm" | "sessionExpiry" | "onRootDelegationNeeded" | "assertActive">>): void;
3126
+ updateConfig(config: Partial<Pick<SharingServiceConfig, "session" | "createDelegation" | "createDelegationWasm" | "sessionExpiry" | "onRootDelegationNeeded" | "assertActive">>): void;
3178
3127
  /**
3179
3128
  * Generate a sharing link with an embedded private key.
3180
3129
  *
@@ -4583,4 +4532,4 @@ declare const ShareNativeResponseSchema: z.ZodDiscriminatedUnion<"action", [z.Zo
4583
4532
  }>]>;
4584
4533
  type ShareNativeResponse = z.infer<typeof ShareNativeResponseSchema>;
4585
4534
 
4586
- 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 };
4535
+ export { type OwnerSharePolicyRegistration as $, type AccountDelegationPage as A, type DelegationStatus as B, CREDENTIAL_INVITATION_REQUEST_DOMAIN as C, type DelegationError 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 AccountDelegationQueryOptions 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 AccountDelegationRecord 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 AccountDelegationResource as c, type CapabilityEntry as d, type CreateDelegationParams as e, type CreateDelegationWasmParams as f, type CreateDelegationWasmResult as g, type CreateOwnerDelegationParams as h, type CredentialInvitationRequest as i, DELIVERY_ADMISSION_DOMAIN as j, type DelegateReceivedShareParams as k, type DelegatedResource as l, type DelegatedShareAccess as m, type DelegatedShareKey as n, type Delegation as o, type DelegationApiResponse as p, type DelegationChain as q, type DelegationChainV2 as r, type DelegationDirection as s, type DelegationErrorCode as t, DelegationErrorCodes as u, type DelegationFilters as v, DelegationManager as w, type DelegationManagerConfig as x, type DelegationRecord as y, type DelegationRevocationReceipt as z };
@@ -226,6 +226,7 @@ declare const DelegationErrorCodes: {
226
226
  readonly KV_SERVICE_UNAVAILABLE: "KV_SERVICE_UNAVAILABLE";
227
227
  readonly DATA_FETCH_FAILED: "DATA_FETCH_FAILED";
228
228
  readonly VALIDATION_ERROR: "VALIDATION_ERROR";
229
+ readonly UNSUPPORTED_OPERATION: "UNSUPPORTED_OPERATION";
229
230
  };
230
231
  type DelegationErrorCode = (typeof DelegationErrorCodes)[keyof typeof DelegationErrorCodes];
231
232
  /**
@@ -1727,7 +1728,7 @@ type CreateDelegationWasmResult = z.infer<typeof CreateDelegationWasmResultSchem
1727
1728
  /**
1728
1729
  * DelegationManager - Handles delegation CRUD operations.
1729
1730
  *
1730
- * This class manages the creation, revocation, listing, and querying
1731
+ * This class manages the revocation, status, and querying
1731
1732
  * of delegations within TinyCloud. It extracts and improves upon the
1732
1733
  * delegation functionality previously in ITinyCloudStorage.
1733
1734
  *
@@ -1747,16 +1748,11 @@ type CreateDelegationWasmResult = z.infer<typeof CreateDelegationWasmResultSchem
1747
1748
  * invoke,
1748
1749
  * });
1749
1750
  *
1750
- * // Create a delegation
1751
- * const result = await delegations.create({
1752
- * delegateDID: "did:pkh:eip155:1:0x...",
1753
- * path: "shared/",
1754
- * actions: ["tinycloud.kv/get", "tinycloud.kv/list"],
1755
- * expiry: new Date(Date.now() + 24 * 60 * 60 * 1000), // 24 hours
1756
- * });
1751
+ * // Revoke a delegation
1752
+ * const result = await delegations.revoke("bafy...");
1757
1753
  *
1758
1754
  * if (result.ok) {
1759
- * console.log("Created delegation:", result.data.cid);
1755
+ * console.log("Revoked");
1760
1756
  * }
1761
1757
  * ```
1762
1758
  */
@@ -1788,27 +1784,6 @@ declare class DelegationManager {
1788
1784
  * Executes an invoke operation against the delegation API.
1789
1785
  */
1790
1786
  private invokeOperation;
1791
- /**
1792
- * Creates a new delegation.
1793
- *
1794
- * Delegates specific permissions to another DID for a given path.
1795
- * The delegatee can then use these permissions to access resources
1796
- * within the specified scope.
1797
- *
1798
- * @param params - Parameters for the delegation
1799
- * @returns Result containing the created Delegation or an error
1800
- *
1801
- * @example
1802
- * ```typescript
1803
- * const result = await manager.create({
1804
- * delegateDID: bob.did,
1805
- * path: "documents/shared/",
1806
- * actions: ["tinycloud.kv/get", "tinycloud.kv/put"],
1807
- * expiry: new Date(Date.now() + 7 * 24 * 60 * 60 * 1000), // 7 days
1808
- * });
1809
- * ```
1810
- */
1811
- create(params: CreateDelegationParams): Promise<Result<Delegation>>;
1812
1787
  /**
1813
1788
  * Revokes an existing delegation.
1814
1789
  *
@@ -1840,25 +1815,6 @@ declare class DelegationManager {
1840
1815
  status(cid: string): Promise<Result<DelegationStatus>>;
1841
1816
  /** Query lifecycle-complete delegation history for the authenticated account. */
1842
1817
  query(options?: AccountDelegationQueryOptions): Promise<Result<AccountDelegationPage>>;
1843
- /**
1844
- * Lists all delegations for the current session's space.
1845
- *
1846
- * Returns both delegations created by the current user (as delegator)
1847
- * and delegations granted to the current user (as delegatee).
1848
- *
1849
- * @returns Result containing an array of Delegations or an error
1850
- *
1851
- * @example
1852
- * ```typescript
1853
- * const result = await manager.list();
1854
- * if (result.ok) {
1855
- * for (const delegation of result.data) {
1856
- * console.log(`${delegation.cid}: ${delegation.path} -> ${delegation.delegateDID}`);
1857
- * }
1858
- * }
1859
- * ```
1860
- */
1861
- list(): Promise<Result<Delegation[]>>;
1862
1818
  /**
1863
1819
  * Gets the full delegation chain for a given delegation.
1864
1820
  *
@@ -2982,11 +2938,6 @@ interface SharingServiceConfig {
2982
2938
  keyProvider: KeyProvider;
2983
2939
  /** Capability key registry for key/delegation management */
2984
2940
  registry: ICapabilityKeyRegistry;
2985
- /**
2986
- * Delegation manager for creating delegations (used if createDelegation not provided).
2987
- * Required for generate(), optional for receive().
2988
- */
2989
- delegationManager?: DelegationManager;
2990
2941
  /** Factory for creating KV service instances */
2991
2942
  createKVService: (config: {
2992
2943
  hosts: string[];
@@ -2998,8 +2949,8 @@ interface SharingServiceConfig {
2998
2949
  /** Base URL for sharing links (e.g., "https://share.myapp.com") */
2999
2950
  baseUrl?: string;
3000
2951
  /**
3001
- * Custom delegation creation function. When provided, this is used instead
3002
- * of delegationManager.create(). This allows platforms to use their own
2952
+ * Custom delegation creation function. Used when no WASM creation function is
2953
+ * available. This allows platforms to use their own
3003
2954
  * delegation creation logic (e.g., SIWE-based /delegate endpoint).
3004
2955
  */
3005
2956
  createDelegation?: (params: CreateDelegationParams) => Promise<Result<Delegation, DelegationError>>;
@@ -3117,7 +3068,6 @@ interface ISharingService {
3117
3068
  * invoke,
3118
3069
  * keyProvider,
3119
3070
  * registry,
3120
- * delegationManager,
3121
3071
  * createKVService,
3122
3072
  * baseUrl: "https://share.myapp.com"
3123
3073
  * });
@@ -3148,7 +3098,6 @@ declare class SharingService implements ISharingService {
3148
3098
  private fetchFn;
3149
3099
  private keyProvider;
3150
3100
  private registry;
3151
- private delegationManager?;
3152
3101
  private createKVService;
3153
3102
  private baseUrl;
3154
3103
  private createDelegationFn?;
@@ -3172,9 +3121,9 @@ declare class SharingService implements ISharingService {
3172
3121
  updateSession(session: ServiceSession): void;
3173
3122
  /**
3174
3123
  * Updates the service configuration.
3175
- * Used to add full capabilities (session, delegationManager, createDelegation, createDelegationWasm) after signIn.
3124
+ * Used to add full capabilities (session, createDelegation, createDelegationWasm) after signIn.
3176
3125
  */
3177
- updateConfig(config: Partial<Pick<SharingServiceConfig, "session" | "delegationManager" | "createDelegation" | "createDelegationWasm" | "sessionExpiry" | "onRootDelegationNeeded" | "assertActive">>): void;
3126
+ updateConfig(config: Partial<Pick<SharingServiceConfig, "session" | "createDelegation" | "createDelegationWasm" | "sessionExpiry" | "onRootDelegationNeeded" | "assertActive">>): void;
3178
3127
  /**
3179
3128
  * Generate a sharing link with an embedded private key.
3180
3129
  *
@@ -4583,4 +4532,4 @@ declare const ShareNativeResponseSchema: z.ZodDiscriminatedUnion<"action", [z.Zo
4583
4532
  }>]>;
4584
4533
  type ShareNativeResponse = z.infer<typeof ShareNativeResponseSchema>;
4585
4534
 
4586
- 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 };
4535
+ export { type OwnerSharePolicyRegistration as $, type AccountDelegationPage as A, type DelegationStatus as B, CREDENTIAL_INVITATION_REQUEST_DOMAIN as C, type DelegationError 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 AccountDelegationQueryOptions 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 AccountDelegationRecord 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 AccountDelegationResource as c, type CapabilityEntry as d, type CreateDelegationParams as e, type CreateDelegationWasmParams as f, type CreateDelegationWasmResult as g, type CreateOwnerDelegationParams as h, type CredentialInvitationRequest as i, DELIVERY_ADMISSION_DOMAIN as j, type DelegateReceivedShareParams as k, type DelegatedResource as l, type DelegatedShareAccess as m, type DelegatedShareKey as n, type Delegation as o, type DelegationApiResponse as p, type DelegationChain as q, type DelegationChainV2 as r, type DelegationDirection as s, type DelegationErrorCode as t, DelegationErrorCodes as u, type DelegationFilters as v, DelegationManager as w, type DelegationManagerConfig as x, type DelegationRecord as y, type DelegationRevocationReceipt as z };
@@ -1,5 +1,5 @@
1
1
  import { InvokeFunction, InvokeAnyFunction } from '@tinycloud/sdk-services';
2
- import { P as PolicyCapability } from '../capability-BA49Uboq.cjs';
2
+ import { b as PolicyCapability } from '../capability-BjzXwtNw.cjs';
3
3
 
4
4
  declare const REQUESTER_NEAR_EXPIRY_SECONDS = 30;
5
5
  declare const REQUESTER_ENGINE_RETRY_ATTEMPTS = 3;
@@ -1,5 +1,5 @@
1
1
  import { InvokeFunction, InvokeAnyFunction } from '@tinycloud/sdk-services';
2
- import { P as PolicyCapability } from '../capability-BA49Uboq.js';
2
+ import { b as PolicyCapability } from '../capability-BjzXwtNw.js';
3
3
 
4
4
  declare const REQUESTER_NEAR_EXPIRY_SECONDS = 30;
5
5
  declare const REQUESTER_ENGINE_RETRY_ATTEMPTS = 3;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinycloud/sdk-core",
3
- "version": "3.3.0-beta.21",
3
+ "version": "3.3.0-beta.23",
4
4
  "description": "Core TinyCloud SDK - shared interfaces and TinyCloud class",
5
5
  "author": "TinyCloud, Inc.",
6
6
  "license": "EGPL",
@@ -54,7 +54,7 @@
54
54
  "@multiformats/uri-to-multiaddr": "^10.0.0",
55
55
  "@noble/curves": "^1.9.7",
56
56
  "@tinycloud/share-envelope": "1.2.0-beta.0",
57
- "@tinycloud/share-sdk": "1.2.0-beta.5",
57
+ "@tinycloud/share-sdk": "1.2.0-beta.6",
58
58
  "@tinycloud/bootstrap": "2.8.0",
59
59
  "@tinycloud/sdk-services": "3.3.0-beta.11",
60
60
  "multiformats": "^13.4.1",