@tearleads/client-sdk 0.0.0-stage → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +108 -2
- package/client/Tearleads.d.ts +111 -0
- package/client/Tearleads.js +264 -0
- package/client/Tearleads.js.map +1 -0
- package/client/apiVersion.d.ts +17 -0
- package/client/apiVersion.js +27 -0
- package/client/apiVersion.js.map +1 -0
- package/client/billing/directCheckout.d.ts +86 -0
- package/client/billing/directCheckout.js +35 -0
- package/client/billing/directCheckout.js.map +1 -0
- package/client/billing/purchaseErrors.d.ts +24 -0
- package/client/billing/purchaseErrors.js +43 -0
- package/client/billing/purchaseErrors.js.map +1 -0
- package/client/billing/purchases.d.ts +177 -0
- package/client/billing/purchases.js +165 -0
- package/client/billing/purchases.js.map +1 -0
- package/client/billing/revenueCatCheckoutGate.js +71 -0
- package/client/billing/revenueCatCheckoutGate.js.map +1 -0
- package/client/billing/revenueCatErrors.js +122 -0
- package/client/billing/revenueCatErrors.js.map +1 -0
- package/client/billing/revenueCatIdentity.js +387 -0
- package/client/billing/revenueCatIdentity.js.map +1 -0
- package/client/billing/revenueCatIdentityTypes.js +2 -0
- package/client/billing/revenueCatIdentityTypes.js.map +1 -0
- package/client/billing/revenueCatNativeSubscriptionMove.js +74 -0
- package/client/billing/revenueCatNativeSubscriptionMove.js.map +1 -0
- package/client/billing/revenueCatProviderPhase.js +34 -0
- package/client/billing/revenueCatProviderPhase.js.map +1 -0
- package/client/billing/revenueCatProviderSettlement.js +19 -0
- package/client/billing/revenueCatProviderSettlement.js.map +1 -0
- package/client/billing/revenueCatPurchaseErrorNormalization.js +26 -0
- package/client/billing/revenueCatPurchaseErrorNormalization.js.map +1 -0
- package/client/billing/revenueCatPurchasePreparation.js +18 -0
- package/client/billing/revenueCatPurchasePreparation.js.map +1 -0
- package/client/billing/revenueCatTimeoutCoordinator.js +144 -0
- package/client/billing/revenueCatTimeoutCoordinator.js.map +1 -0
- package/client/blobs.d.ts +13 -0
- package/client/blobs.js +33 -0
- package/client/blobs.js.map +1 -0
- package/client/containerContents.d.ts +15 -0
- package/client/containerContents.js +217 -0
- package/client/containerContents.js.map +1 -0
- package/client/containerContentsTypes.d.ts +230 -0
- package/client/containerContentsTypes.js +2 -0
- package/client/containerContentsTypes.js.map +1 -0
- package/client/containerDocumentDiscovery.js +48 -0
- package/client/containerDocumentDiscovery.js.map +1 -0
- package/client/database.d.ts +32 -0
- package/client/database.js +77 -0
- package/client/database.js.map +1 -0
- package/client/deviceFirst.d.ts +33 -0
- package/client/deviceFirst.js +204 -0
- package/client/deviceFirst.js.map +1 -0
- package/client/documents.d.ts +39 -0
- package/client/documents.js +76 -0
- package/client/documents.js.map +1 -0
- package/client/events.d.ts +29 -0
- package/client/events.js +60 -0
- package/client/events.js.map +1 -0
- package/client/fileSaver.d.ts +44 -0
- package/client/fileSaver.js +20 -0
- package/client/fileSaver.js.map +1 -0
- package/client/identity.d.ts +50 -0
- package/client/identity.js +163 -0
- package/client/identity.js.map +1 -0
- package/client/identityKeyPackage.d.ts +30 -0
- package/client/identityKeyPackage.js +201 -0
- package/client/identityKeyPackage.js.map +1 -0
- package/client/index.d.ts +30 -0
- package/client/index.js +17 -0
- package/client/index.js.map +1 -0
- package/client/listenerSet.js +27 -0
- package/client/listenerSet.js.map +1 -0
- package/client/localKeyring/aesGcmWrapping.js +94 -0
- package/client/localKeyring/aesGcmWrapping.js.map +1 -0
- package/client/localKeyring/browser.d.ts +52 -0
- package/client/localKeyring/browser.js +72 -0
- package/client/localKeyring/browser.js.map +1 -0
- package/client/localKeyring/envelope.d.ts +8 -0
- package/client/localKeyring/envelope.js +54 -0
- package/client/localKeyring/envelope.js.map +1 -0
- package/client/localKeyring/index.d.ts +25 -0
- package/client/localKeyring/index.js +14 -0
- package/client/localKeyring/index.js.map +1 -0
- package/client/localKeyring/indexedDbKeystore.d.ts +9 -0
- package/client/localKeyring/indexedDbKeystore.js +146 -0
- package/client/localKeyring/indexedDbKeystore.js.map +1 -0
- package/client/localKeyring/indexedDbManifestStore.d.ts +8 -0
- package/client/localKeyring/indexedDbManifestStore.js +85 -0
- package/client/localKeyring/indexedDbManifestStore.js.map +1 -0
- package/client/localKeyring/indexedDbStoreConnection.js +129 -0
- package/client/localKeyring/indexedDbStoreConnection.js.map +1 -0
- package/client/localKeyring/indexedDbWrappingKeyRecord.js +90 -0
- package/client/localKeyring/indexedDbWrappingKeyRecord.js.map +1 -0
- package/client/localKeyring/jsonReaders.d.ts +8 -0
- package/client/localKeyring/jsonReaders.js +47 -0
- package/client/localKeyring/jsonReaders.js.map +1 -0
- package/client/localKeyring/localKeyringPinCode.d.ts +18 -0
- package/client/localKeyring/localKeyringPinCode.js +142 -0
- package/client/localKeyring/localKeyringPinCode.js.map +1 -0
- package/client/localKeyring/localKeyringPinCodeSupport.d.ts +34 -0
- package/client/localKeyring/localKeyringPinCodeSupport.js +135 -0
- package/client/localKeyring/localKeyringPinCodeSupport.js.map +1 -0
- package/client/localKeyring/localStorageManifestStore.d.ts +6 -0
- package/client/localKeyring/localStorageManifestStore.js +34 -0
- package/client/localKeyring/localStorageManifestStore.js.map +1 -0
- package/client/localKeyring/manifest.d.ts +5 -0
- package/client/localKeyring/manifest.js +43 -0
- package/client/localKeyring/manifest.js.map +1 -0
- package/client/localKeyring/memory.d.ts +3 -0
- package/client/localKeyring/memory.js +64 -0
- package/client/localKeyring/memory.js.map +1 -0
- package/client/localKeyring/primitives.d.ts +4 -0
- package/client/localKeyring/primitives.js +18 -0
- package/client/localKeyring/primitives.js.map +1 -0
- package/client/localKeyring/rootKey.js +22 -0
- package/client/localKeyring/rootKey.js.map +1 -0
- package/client/localKeyring/scope.d.ts +8 -0
- package/client/localKeyring/scope.js +46 -0
- package/client/localKeyring/scope.js.map +1 -0
- package/client/localKeyring/service.d.ts +2 -0
- package/client/localKeyring/service.js +116 -0
- package/client/localKeyring/service.js.map +1 -0
- package/client/localKeyring/session.js +76 -0
- package/client/localKeyring/session.js.map +1 -0
- package/client/localKeyring/sqliteKey.d.ts +2 -0
- package/client/localKeyring/sqliteKey.js +9 -0
- package/client/localKeyring/sqliteKey.js.map +1 -0
- package/client/localKeyring/types.d.ts +106 -0
- package/client/localKeyring/types.js +3 -0
- package/client/localKeyring/types.js.map +1 -0
- package/client/logger.d.ts +5 -0
- package/client/logger.js +8 -0
- package/client/logger.js.map +1 -0
- package/client/network.d.ts +87 -0
- package/client/network.js +105 -0
- package/client/network.js.map +1 -0
- package/client/organizations/index.d.ts +46 -0
- package/client/organizations/index.js +201 -0
- package/client/organizations/index.js.map +1 -0
- package/client/organizations/organizationAccessRestoration.js +38 -0
- package/client/organizations/organizationAccessRestoration.js.map +1 -0
- package/client/organizations/organizationDataUsage.d.ts +8 -0
- package/client/organizations/organizationDataUsage.js +75 -0
- package/client/organizations/organizationDataUsage.js.map +1 -0
- package/client/organizations/organizationGroupNameHydration.js +28 -0
- package/client/organizations/organizationGroupNameHydration.js.map +1 -0
- package/client/organizations/organizationGroupPresentation.d.ts +21 -0
- package/client/organizations/organizationGroupPresentation.js +17 -0
- package/client/organizations/organizationGroupPresentation.js.map +1 -0
- package/client/organizations/organizationMetadataProfileSync.js +38 -0
- package/client/organizations/organizationMetadataProfileSync.js.map +1 -0
- package/client/organizations/organizationReadModels.d.ts +22 -0
- package/client/organizations/organizationReadModels.js +279 -0
- package/client/organizations/organizationReadModels.js.map +1 -0
- package/client/organizations/organizationWorkflowRuntime.js +37 -0
- package/client/organizations/organizationWorkflowRuntime.js.map +1 -0
- package/client/organizations/principalContainerMutations.js +27 -0
- package/client/organizations/principalContainerMutations.js.map +1 -0
- package/client/organizations/principalMutationScope.js +20 -0
- package/client/organizations/principalMutationScope.js.map +1 -0
- package/client/organizations/principalMutations.d.ts +891 -0
- package/client/organizations/principalMutations.js +194 -0
- package/client/organizations/principalMutations.js.map +1 -0
- package/client/principalHistoryProtection.d.ts +19 -0
- package/client/principalHistoryProtection.js +76 -0
- package/client/principalHistoryProtection.js.map +1 -0
- package/client/root/index.d.ts +43 -0
- package/client/root/index.js +104 -0
- package/client/root/index.js.map +1 -0
- package/client/rootContainerAdoption.js +18 -0
- package/client/rootContainerAdoption.js.map +1 -0
- package/client/securityIncidents.d.ts +37 -0
- package/client/securityIncidents.js +287 -0
- package/client/securityIncidents.js.map +1 -0
- package/client/session/index.js +340 -0
- package/client/session/index.js.map +1 -0
- package/client/session/sessionContext.js +45 -0
- package/client/session/sessionContext.js.map +1 -0
- package/client/session/sessionIdentityTrust.d.ts +35 -0
- package/client/session/sessionIdentityTrust.js +62 -0
- package/client/session/sessionIdentityTrust.js.map +1 -0
- package/client/session/sessionListing.js +16 -0
- package/client/session/sessionListing.js.map +1 -0
- package/client/session/sessionLoginRefusal.js +16 -0
- package/client/session/sessionLoginRefusal.js.map +1 -0
- package/client/session/sessionOrganizationCreation.js +53 -0
- package/client/session/sessionOrganizationCreation.js.map +1 -0
- package/client/session/sessionPurgeRecovery.js +110 -0
- package/client/session/sessionPurgeRecovery.js.map +1 -0
- package/client/session/sessionRecoveryErrors.d.ts +9 -0
- package/client/session/sessionRecoveryErrors.js +15 -0
- package/client/session/sessionRecoveryErrors.js.map +1 -0
- package/client/session/sessionRootAuthority.js +84 -0
- package/client/session/sessionRootAuthority.js.map +1 -0
- package/client/session/sessionTypes.d.ts +153 -0
- package/client/session/sessionTypes.js +2 -0
- package/client/session/sessionTypes.js.map +1 -0
- package/client/syncBillingGate.d.ts +50 -0
- package/client/syncBillingGate.js +107 -0
- package/client/syncBillingGate.js.map +1 -0
- package/client/userIdentities.d.ts +16 -0
- package/client/userIdentities.js +32 -0
- package/client/userIdentities.js.map +1 -0
- package/client/workflowRuntime.d.ts +60 -0
- package/client/workflowRuntime.js +232 -0
- package/client/workflowRuntime.js.map +1 -0
- package/data/accessLevel.js +24 -0
- package/data/accessLevel.js.map +1 -0
- package/data/blobContracts.d.ts +19 -0
- package/data/blobContracts.js +88 -0
- package/data/blobContracts.js.map +1 -0
- package/data/blobs/createBlobStore.d.ts +2 -0
- package/data/blobs/createBlobStore.js +17 -0
- package/data/blobs/createBlobStore.js.map +1 -0
- package/data/blobs/encryptedBlobByteSource.js +133 -0
- package/data/blobs/encryptedBlobByteSource.js.map +1 -0
- package/data/blobs/encryptedBlobEnvelope.d.ts +53 -0
- package/data/blobs/encryptedBlobEnvelope.js +229 -0
- package/data/blobs/encryptedBlobEnvelope.js.map +1 -0
- package/data/blobs/encryptedBlobStore.d.ts +15 -0
- package/data/blobs/encryptedBlobStore.js +216 -0
- package/data/blobs/encryptedBlobStore.js.map +1 -0
- package/data/blobs/memoryBlobStore.d.ts +2 -0
- package/data/blobs/memoryBlobStore.js +25 -0
- package/data/blobs/memoryBlobStore.js.map +1 -0
- package/data/blobs/opfsBlobStore.d.ts +10 -0
- package/data/blobs/opfsBlobStore.js +126 -0
- package/data/blobs/opfsBlobStore.js.map +1 -0
- package/data/containers/containerBinding.d.ts +55 -0
- package/data/containers/containerBinding.js +51 -0
- package/data/containers/containerBinding.js.map +1 -0
- package/data/containers/containerMetadataDocument.d.ts +15 -0
- package/data/containers/containerMetadataDocument.js +43 -0
- package/data/containers/containerMetadataDocument.js.map +1 -0
- package/data/containers/shared/authorAccess.d.ts +15 -0
- package/data/containers/shared/authorAccess.js +25 -0
- package/data/containers/shared/authorAccess.js.map +1 -0
- package/data/containers/shared/containerPathLimits.d.ts +14 -0
- package/data/containers/shared/containerPathLimits.js +25 -0
- package/data/containers/shared/containerPathLimits.js.map +1 -0
- package/data/containers/shared/events.js +123 -0
- package/data/containers/shared/events.js.map +1 -0
- package/data/containers/shared/heldContainerHeads.js +124 -0
- package/data/containers/shared/heldContainerHeads.js.map +1 -0
- package/data/containers/shared/mutationAcknowledgement.js +187 -0
- package/data/containers/shared/mutationAcknowledgement.js.map +1 -0
- package/data/containers/shared/mutationFailures.js +51 -0
- package/data/containers/shared/mutationFailures.js.map +1 -0
- package/data/containers/shared/mutationRequestOptions.d.ts +4 -0
- package/data/containers/shared/mutationRequestOptions.js +2 -0
- package/data/containers/shared/mutationRequestOptions.js.map +1 -0
- package/data/containers/shared/principalPolicies.js +34 -0
- package/data/containers/shared/principalPolicies.js.map +1 -0
- package/data/containers/shared/projection.js +158 -0
- package/data/containers/shared/projection.js.map +1 -0
- package/data/containers/shared/readers.js +103 -0
- package/data/containers/shared/readers.js.map +1 -0
- package/data/containers/shared/reciteApi.d.ts +6 -0
- package/data/containers/shared/reciteApi.js +2 -0
- package/data/containers/shared/reciteApi.js.map +1 -0
- package/data/containers/shared/types.d.ts +232 -0
- package/data/containers/shared/types.js +2 -0
- package/data/containers/shared/types.js.map +1 -0
- package/data/crdtPeerSeed.js +167 -0
- package/data/crdtPeerSeed.js.map +1 -0
- package/data/documents/attachmentContentIdentity.js +17 -0
- package/data/documents/attachmentContentIdentity.js.map +1 -0
- package/data/documents/blob/shared/blobEnvelopeStream.js +58 -0
- package/data/documents/blob/shared/blobEnvelopeStream.js.map +1 -0
- package/data/documents/blob/shared/blobRecordCrypto.js +84 -0
- package/data/documents/blob/shared/blobRecordCrypto.js.map +1 -0
- package/data/documents/blob/shared/blobSourceSnapshot.d.ts +9 -0
- package/data/documents/blob/shared/blobSourceSnapshot.js +70 -0
- package/data/documents/blob/shared/blobSourceSnapshot.js.map +1 -0
- package/data/documents/blob/shared/chunkedBlobCrypto.js +174 -0
- package/data/documents/blob/shared/chunkedBlobCrypto.js.map +1 -0
- package/data/documents/blob/shared/crypto.js +3 -0
- package/data/documents/blob/shared/crypto.js.map +1 -0
- package/data/documents/blob/shared/events.js +85 -0
- package/data/documents/blob/shared/events.js.map +1 -0
- package/data/documents/blob/shared/projection.js +126 -0
- package/data/documents/blob/shared/projection.js.map +1 -0
- package/data/documents/blob/shared/readers.js +55 -0
- package/data/documents/blob/shared/readers.js.map +1 -0
- package/data/documents/blob/shared/responses.js +111 -0
- package/data/documents/blob/shared/responses.js.map +1 -0
- package/data/documents/blob/shared/types.d.ts +173 -0
- package/data/documents/blob/shared/types.js +7 -0
- package/data/documents/blob/shared/types.js.map +1 -0
- package/data/documents/documentConstants.d.ts +4 -0
- package/data/documents/documentConstants.js +12 -0
- package/data/documents/documentConstants.js.map +1 -0
- package/data/documents/documentContent.d.ts +15 -0
- package/data/documents/documentContent.js +124 -0
- package/data/documents/documentContent.js.map +1 -0
- package/data/documents/documentKinds.d.ts +100 -0
- package/data/documents/documentKinds.js +231 -0
- package/data/documents/documentKinds.js.map +1 -0
- package/data/documents/documentRowList.d.ts +31 -0
- package/data/documents/documentRowList.js +162 -0
- package/data/documents/documentRowList.js.map +1 -0
- package/data/documents/documentSummary.d.ts +24 -0
- package/data/documents/documentSummary.js +5 -0
- package/data/documents/documentSummary.js.map +1 -0
- package/data/documents/documentSync.js +68 -0
- package/data/documents/documentSync.js.map +1 -0
- package/data/documents/editAttribution.d.ts +77 -0
- package/data/documents/editAttribution.js +131 -0
- package/data/documents/editAttribution.js.map +1 -0
- package/data/documents/editAttributionBlame.d.ts +59 -0
- package/data/documents/editAttributionBlame.js +165 -0
- package/data/documents/editAttributionBlame.js.map +1 -0
- package/data/documents/editAttributionTypes.d.ts +14 -0
- package/data/documents/editAttributionTypes.js +5 -0
- package/data/documents/editAttributionTypes.js.map +1 -0
- package/data/documents/shared/containerKekCurrency.d.ts +22 -0
- package/data/documents/shared/containerKekCurrency.js +42 -0
- package/data/documents/shared/containerKekCurrency.js.map +1 -0
- package/data/documents/shared/containerKekEntryVerification.js +15 -0
- package/data/documents/shared/containerKekEntryVerification.js.map +1 -0
- package/data/documents/shared/containerKekLogFetch.d.ts +18 -0
- package/data/documents/shared/containerKekLogFetch.js +76 -0
- package/data/documents/shared/containerKekLogFetch.js.map +1 -0
- package/data/documents/shared/containerKekPath.d.ts +18 -0
- package/data/documents/shared/containerKekPath.js +265 -0
- package/data/documents/shared/containerKekPath.js.map +1 -0
- package/data/documents/shared/containerKekPathHistory.d.ts +61 -0
- package/data/documents/shared/containerKekPathHistory.js +223 -0
- package/data/documents/shared/containerKekPathHistory.js.map +1 -0
- package/data/documents/shared/containerKekPathVerification.d.ts +15 -0
- package/data/documents/shared/containerKekPathVerification.js +23 -0
- package/data/documents/shared/containerKekPathVerification.js.map +1 -0
- package/data/documents/shared/containerKekWrapping.js +61 -0
- package/data/documents/shared/containerKekWrapping.js.map +1 -0
- package/data/documents/shared/contentRecordAdditionalData.js +14 -0
- package/data/documents/shared/contentRecordAdditionalData.js.map +1 -0
- package/data/documents/shared/contentRecordKeys.js +40 -0
- package/data/documents/shared/contentRecordKeys.js.map +1 -0
- package/data/documents/shared/crypto.js +172 -0
- package/data/documents/shared/crypto.js.map +1 -0
- package/data/documents/shared/documentSyncUpdateDecryption.js +238 -0
- package/data/documents/shared/documentSyncUpdateDecryption.js.map +1 -0
- package/data/documents/shared/documentSyncUpdateIsolation.d.ts +55 -0
- package/data/documents/shared/documentSyncUpdateIsolation.js +298 -0
- package/data/documents/shared/documentSyncUpdateIsolation.js.map +1 -0
- package/data/documents/shared/documentUpdateIntegrity.js +18 -0
- package/data/documents/shared/documentUpdateIntegrity.js.map +1 -0
- package/data/documents/shared/events.js +121 -0
- package/data/documents/shared/events.js.map +1 -0
- package/data/documents/shared/keyringLogWalk.d.ts +45 -0
- package/data/documents/shared/keyringLogWalk.js +204 -0
- package/data/documents/shared/keyringLogWalk.js.map +1 -0
- package/data/documents/shared/keyringRebuild.d.ts +60 -0
- package/data/documents/shared/keyringRebuild.js +242 -0
- package/data/documents/shared/keyringRebuild.js.map +1 -0
- package/data/documents/shared/manifestBundleReaders.js +59 -0
- package/data/documents/shared/manifestBundleReaders.js.map +1 -0
- package/data/documents/shared/mutationAcknowledgement.js +10 -0
- package/data/documents/shared/mutationAcknowledgement.js.map +1 -0
- package/data/documents/shared/plaintextHash.js +8 -0
- package/data/documents/shared/plaintextHash.js.map +1 -0
- package/data/documents/shared/projection.d.ts +25 -0
- package/data/documents/shared/projection.js +132 -0
- package/data/documents/shared/projection.js.map +1 -0
- package/data/documents/shared/projectionContentKeys.d.ts +90 -0
- package/data/documents/shared/projectionContentKeys.js +262 -0
- package/data/documents/shared/projectionContentKeys.js.map +1 -0
- package/data/documents/shared/projectionTargets.d.ts +38 -0
- package/data/documents/shared/projectionTargets.js +164 -0
- package/data/documents/shared/projectionTargets.js.map +1 -0
- package/data/documents/shared/pullContinuation.d.ts +17 -0
- package/data/documents/shared/pullContinuation.js +53 -0
- package/data/documents/shared/pullContinuation.js.map +1 -0
- package/data/documents/shared/readers.js +156 -0
- package/data/documents/shared/readers.js.map +1 -0
- package/data/documents/shared/responses.d.ts +14 -0
- package/data/documents/shared/responses.js +133 -0
- package/data/documents/shared/responses.js.map +1 -0
- package/data/documents/shared/stableDocumentId.js +20 -0
- package/data/documents/shared/stableDocumentId.js.map +1 -0
- package/data/documents/shared/syncPagination.d.ts +20 -0
- package/data/documents/shared/syncPagination.js +109 -0
- package/data/documents/shared/syncPagination.js.map +1 -0
- package/data/documents/shared/syncResponseAuthorization.js +63 -0
- package/data/documents/shared/syncResponseAuthorization.js.map +1 -0
- package/data/documents/shared/syncResponses.d.ts +11 -0
- package/data/documents/shared/syncResponses.js +287 -0
- package/data/documents/shared/syncResponses.js.map +1 -0
- package/data/documents/shared/syncSubmitFailure.d.ts +9 -0
- package/data/documents/shared/syncSubmitFailure.js +2 -0
- package/data/documents/shared/syncSubmitFailure.js.map +1 -0
- package/data/documents/shared/types.d.ts +330 -0
- package/data/documents/shared/types.js +58 -0
- package/data/documents/shared/types.js.map +1 -0
- package/data/domainScope.d.ts +6 -0
- package/data/domainScope.js +5 -0
- package/data/domainScope.js.map +1 -0
- package/data/errorMessage.js +10 -0
- package/data/errorMessage.js.map +1 -0
- package/data/keyingCanonicalJson.js +83 -0
- package/data/keyingCanonicalJson.js.map +1 -0
- package/data/keyingProjectionVerification/accessManifestCheckpointEnforcement.js +57 -0
- package/data/keyingProjectionVerification/accessManifestCheckpointEnforcement.js.map +1 -0
- package/data/keyingProjectionVerification/bundleVerification.js +61 -0
- package/data/keyingProjectionVerification/bundleVerification.js.map +1 -0
- package/data/keyingProjectionVerification/checkpointContext.d.ts +32 -0
- package/data/keyingProjectionVerification/checkpointContext.js +82 -0
- package/data/keyingProjectionVerification/checkpointContext.js.map +1 -0
- package/data/keyingProjectionVerification/containerAncestorCitations.js +164 -0
- package/data/keyingProjectionVerification/containerAncestorCitations.js.map +1 -0
- package/data/keyingProjectionVerification/containerCreateManifest.js +28 -0
- package/data/keyingProjectionVerification/containerCreateManifest.js.map +1 -0
- package/data/keyingProjectionVerification/containerDestinationVerification.js +39 -0
- package/data/keyingProjectionVerification/containerDestinationVerification.js.map +1 -0
- package/data/keyingProjectionVerification/containerManifestVerification.js +285 -0
- package/data/keyingProjectionVerification/containerManifestVerification.js.map +1 -0
- package/data/keyingProjectionVerification/containerPathVerification.js +51 -0
- package/data/keyingProjectionVerification/containerPathVerification.js.map +1 -0
- package/data/keyingProjectionVerification/containerProjectionVerification.d.ts +24 -0
- package/data/keyingProjectionVerification/containerProjectionVerification.js +249 -0
- package/data/keyingProjectionVerification/containerProjectionVerification.js.map +1 -0
- package/data/keyingProjectionVerification/dependencyUnavailable.js +8 -0
- package/data/keyingProjectionVerification/dependencyUnavailable.js.map +1 -0
- package/data/keyingProjectionVerification/documentContainerProjections.js +8 -0
- package/data/keyingProjectionVerification/documentContainerProjections.js.map +1 -0
- package/data/keyingProjectionVerification/documentDependencyPaths.d.ts +17 -0
- package/data/keyingProjectionVerification/documentDependencyPaths.js +70 -0
- package/data/keyingProjectionVerification/documentDependencyPaths.js.map +1 -0
- package/data/keyingProjectionVerification/documentManifestPolicies.js +32 -0
- package/data/keyingProjectionVerification/documentManifestPolicies.js.map +1 -0
- package/data/keyingProjectionVerification/documentManifestPredecessor.js +12 -0
- package/data/keyingProjectionVerification/documentManifestPredecessor.js.map +1 -0
- package/data/keyingProjectionVerification/documentManifestVerification.js +135 -0
- package/data/keyingProjectionVerification/documentManifestVerification.js.map +1 -0
- package/data/keyingProjectionVerification/documentProjectionVerification.d.ts +25 -0
- package/data/keyingProjectionVerification/documentProjectionVerification.js +162 -0
- package/data/keyingProjectionVerification/documentProjectionVerification.js.map +1 -0
- package/data/keyingProjectionVerification/documentPurgeCheckpointCurrency.js +74 -0
- package/data/keyingProjectionVerification/documentPurgeCheckpointCurrency.js.map +1 -0
- package/data/keyingProjectionVerification/documentPurgeCheckpointEnforcement.js +8 -0
- package/data/keyingProjectionVerification/documentPurgeCheckpointEnforcement.js.map +1 -0
- package/data/keyingProjectionVerification/documentPurgeDocumentChainVerification.js +177 -0
- package/data/keyingProjectionVerification/documentPurgeDocumentChainVerification.js.map +1 -0
- package/data/keyingProjectionVerification/documentPurgePrincipalEvidence.js +104 -0
- package/data/keyingProjectionVerification/documentPurgePrincipalEvidence.js.map +1 -0
- package/data/keyingProjectionVerification/documentPurgeProofVerification.d.ts +32 -0
- package/data/keyingProjectionVerification/documentPurgeProofVerification.js +164 -0
- package/data/keyingProjectionVerification/documentPurgeProofVerification.js.map +1 -0
- package/data/keyingProjectionVerification/error.js +139 -0
- package/data/keyingProjectionVerification/error.js.map +1 -0
- package/data/keyingProjectionVerification/manifestCheckpointVerification.js +64 -0
- package/data/keyingProjectionVerification/manifestCheckpointVerification.js.map +1 -0
- package/data/keyingProjectionVerification/mergeProjectionPolicyEvidence.js +43 -0
- package/data/keyingProjectionVerification/mergeProjectionPolicyEvidence.js.map +1 -0
- package/data/keyingProjectionVerification/organizationFounderBinding.js +41 -0
- package/data/keyingProjectionVerification/organizationFounderBinding.js.map +1 -0
- package/data/keyingProjectionVerification/principalPolicyCache.js +76 -0
- package/data/keyingProjectionVerification/principalPolicyCache.js.map +1 -0
- package/data/keyingProjectionVerification/principalPolicySnapshotVerification.js +208 -0
- package/data/keyingProjectionVerification/principalPolicySnapshotVerification.js.map +1 -0
- package/data/keyingProjectionVerification/principalPolicyVerification.js +253 -0
- package/data/keyingProjectionVerification/principalPolicyVerification.js.map +1 -0
- package/data/keyingProjectionVerification/projectionAuthorizationEvidence.js +36 -0
- package/data/keyingProjectionVerification/projectionAuthorizationEvidence.js.map +1 -0
- package/data/keyingProjectionVerification/projectionPolicyEvidence.js +70 -0
- package/data/keyingProjectionVerification/projectionPolicyEvidence.js.map +1 -0
- package/data/keyingProjectionVerification/readers.d.ts +8 -0
- package/data/keyingProjectionVerification/readers.js +153 -0
- package/data/keyingProjectionVerification/readers.js.map +1 -0
- package/data/keyingProjectionVerification/resolvedPrincipalPolicy.js +70 -0
- package/data/keyingProjectionVerification/resolvedPrincipalPolicy.js.map +1 -0
- package/data/keyingProjectionVerification/snapshotVerificationCache.js +39 -0
- package/data/keyingProjectionVerification/snapshotVerificationCache.js.map +1 -0
- package/data/keyingProjectionVerification/types.d.ts +47 -0
- package/data/keyingProjectionVerification/types.js +72 -0
- package/data/keyingProjectionVerification/types.js.map +1 -0
- package/data/keyingProjectionVerification/userKeyResolver.d.ts +7 -0
- package/data/keyingProjectionVerification/userKeyResolver.js +17 -0
- package/data/keyingProjectionVerification/userKeyResolver.js.map +1 -0
- package/data/keyingProjectionVerification.d.ts +9 -0
- package/data/keyingProjectionVerification.js +16 -0
- package/data/keyingProjectionVerification.js.map +1 -0
- package/data/persistence/container-contents/containerContentsPersistence.d.ts +4 -0
- package/data/persistence/container-contents/containerContentsPersistence.js +199 -0
- package/data/persistence/container-contents/containerContentsPersistence.js.map +1 -0
- package/data/persistence/container-contents/containerContentsPersistenceTypes.d.ts +340 -0
- package/data/persistence/container-contents/containerContentsPersistenceTypes.js +3 -0
- package/data/persistence/container-contents/containerContentsPersistenceTypes.js.map +1 -0
- package/data/persistence/container-contents/containerCreateIntentSettlement.js +115 -0
- package/data/persistence/container-contents/containerCreateIntentSettlement.js.map +1 -0
- package/data/persistence/container-contents/containerDeletionPersistence.js +168 -0
- package/data/persistence/container-contents/containerDeletionPersistence.js.map +1 -0
- package/data/persistence/container-contents/containerDocumentReassignment.js +127 -0
- package/data/persistence/container-contents/containerDocumentReassignment.js.map +1 -0
- package/data/persistence/container-contents/containerHydrationPersistence.js +182 -0
- package/data/persistence/container-contents/containerHydrationPersistence.js.map +1 -0
- package/data/persistence/container-contents/containerIntentPersistence.js +207 -0
- package/data/persistence/container-contents/containerIntentPersistence.js.map +1 -0
- package/data/persistence/container-contents/containerMetadataMutationPersistence.js +259 -0
- package/data/persistence/container-contents/containerMetadataMutationPersistence.js.map +1 -0
- package/data/persistence/container-contents/containerMetadataPullContinuationPersistence.js +32 -0
- package/data/persistence/container-contents/containerMetadataPullContinuationPersistence.js.map +1 -0
- package/data/persistence/container-contents/containerMetadataRows.js +160 -0
- package/data/persistence/container-contents/containerMetadataRows.js.map +1 -0
- package/data/persistence/container-contents/containerMoveAbandonPersistence.js +29 -0
- package/data/persistence/container-contents/containerMoveAbandonPersistence.js.map +1 -0
- package/data/persistence/container-contents/containerMoveIntentRows.js +37 -0
- package/data/persistence/container-contents/containerMoveIntentRows.js.map +1 -0
- package/data/persistence/container-contents/containerPendingUpdatePersistence.js +57 -0
- package/data/persistence/container-contents/containerPendingUpdatePersistence.js.map +1 -0
- package/data/persistence/container-contents/containerRebindPersistence.js +75 -0
- package/data/persistence/container-contents/containerRebindPersistence.js.map +1 -0
- package/data/persistence/container-contents/containerReconcilePersistence.js +144 -0
- package/data/persistence/container-contents/containerReconcilePersistence.js.map +1 -0
- package/data/persistence/container-contents/containerRecoveryPersistence.js +139 -0
- package/data/persistence/container-contents/containerRecoveryPersistence.js.map +1 -0
- package/data/persistence/container-contents/containerRemovalWork.js +30 -0
- package/data/persistence/container-contents/containerRemovalWork.js.map +1 -0
- package/data/persistence/container-contents/containerStructuralRepair.js +224 -0
- package/data/persistence/container-contents/containerStructuralRepair.js.map +1 -0
- package/data/persistence/container-contents/documentLinkRemovalRepair.js +135 -0
- package/data/persistence/container-contents/documentLinkRemovalRepair.js.map +1 -0
- package/data/persistence/container-contents/documentMoveIntentPersistence.js +213 -0
- package/data/persistence/container-contents/documentMoveIntentPersistence.js.map +1 -0
- package/data/persistence/container-contents/documentPlacementIntentEnqueue.js +149 -0
- package/data/persistence/container-contents/documentPlacementIntentEnqueue.js.map +1 -0
- package/data/persistence/container-contents/dormantContainerMetadata.d.ts +12 -0
- package/data/persistence/container-contents/dormantContainerMetadata.js +57 -0
- package/data/persistence/container-contents/dormantContainerMetadata.js.map +1 -0
- package/data/persistence/container-contents/dormantMetadataSweep.d.ts +20 -0
- package/data/persistence/container-contents/dormantMetadataSweep.js +102 -0
- package/data/persistence/container-contents/dormantMetadataSweep.js.map +1 -0
- package/data/persistence/container-contents/pendingContainerCreate.js +21 -0
- package/data/persistence/container-contents/pendingContainerCreate.js.map +1 -0
- package/data/persistence/container-contents/supersededContainerBindings.js +27 -0
- package/data/persistence/container-contents/supersededContainerBindings.js.map +1 -0
- package/data/persistence/containers/containerPersistence.d.ts +35 -0
- package/data/persistence/containers/containerPersistence.js +204 -0
- package/data/persistence/containers/containerPersistence.js.map +1 -0
- package/data/persistence/containers/containerSyncWatermarkPersistence.d.ts +48 -0
- package/data/persistence/containers/containerSyncWatermarkPersistence.js +238 -0
- package/data/persistence/containers/containerSyncWatermarkPersistence.js.map +1 -0
- package/data/persistence/containers/documentContainerProjectionPersistence.js +130 -0
- package/data/persistence/containers/documentContainerProjectionPersistence.js.map +1 -0
- package/data/persistence/containers/documentPlacement.js +51 -0
- package/data/persistence/containers/documentPlacement.js.map +1 -0
- package/data/persistence/documentPurgeCheckpointPersistence.d.ts +10 -0
- package/data/persistence/documentPurgeCheckpointPersistence.js +43 -0
- package/data/persistence/documentPurgeCheckpointPersistence.js.map +1 -0
- package/data/persistence/documents/containerDocumentTombstoneHoldsPersistence.js +108 -0
- package/data/persistence/documents/containerDocumentTombstoneHoldsPersistence.js.map +1 -0
- package/data/persistence/documents/documentDiscoveryCandidate.d.ts +6 -0
- package/data/persistence/documents/documentDiscoveryCandidate.js +33 -0
- package/data/persistence/documents/documentDiscoveryCandidate.js.map +1 -0
- package/data/persistence/documents/documentDiscoveryEvidencePersistence.d.ts +26 -0
- package/data/persistence/documents/documentDiscoveryEvidencePersistence.js +237 -0
- package/data/persistence/documents/documentDiscoveryEvidencePersistence.js.map +1 -0
- package/data/persistence/documents/documentDiscoveryReset.js +31 -0
- package/data/persistence/documents/documentDiscoveryReset.js.map +1 -0
- package/data/persistence/documents/documentsPersistence.d.ts +12 -0
- package/data/persistence/documents/documentsPersistence.js +233 -0
- package/data/persistence/documents/documentsPersistence.js.map +1 -0
- package/data/persistence/documents/internal/attachmentRows.js +78 -0
- package/data/persistence/documents/internal/attachmentRows.js.map +1 -0
- package/data/persistence/documents/internal/attachmentStagingPersistence.js +99 -0
- package/data/persistence/documents/internal/attachmentStagingPersistence.js.map +1 -0
- package/data/persistence/documents/internal/constants.d.ts +1 -0
- package/data/persistence/documents/internal/constants.js +2 -0
- package/data/persistence/documents/internal/constants.js.map +1 -0
- package/data/persistence/documents/internal/containerDocumentTombstoneHolds.js +182 -0
- package/data/persistence/documents/internal/containerDocumentTombstoneHolds.js.map +1 -0
- package/data/persistence/documents/internal/containerDocumentTombstones.js +164 -0
- package/data/persistence/documents/internal/containerDocumentTombstones.js.map +1 -0
- package/data/persistence/documents/internal/createDocumentWithHistoryCheckpoint.js +60 -0
- package/data/persistence/documents/internal/createDocumentWithHistoryCheckpoint.js.map +1 -0
- package/data/persistence/documents/internal/discardDocument.js +167 -0
- package/data/persistence/documents/internal/discardDocument.js.map +1 -0
- package/data/persistence/documents/internal/discoveredDocumentPlacement.js +30 -0
- package/data/persistence/documents/internal/discoveredDocumentPlacement.js.map +1 -0
- package/data/persistence/documents/internal/documentDeletionPersistence.js +152 -0
- package/data/persistence/documents/internal/documentDeletionPersistence.js.map +1 -0
- package/data/persistence/documents/internal/documentHistoryStatePersistence.js +10 -0
- package/data/persistence/documents/internal/documentHistoryStatePersistence.js.map +1 -0
- package/data/persistence/documents/internal/documentMutationPersistence.js +228 -0
- package/data/persistence/documents/internal/documentMutationPersistence.js.map +1 -0
- package/data/persistence/documents/internal/documentProjectionRows.js +65 -0
- package/data/persistence/documents/internal/documentProjectionRows.js.map +1 -0
- package/data/persistence/documents/internal/documentPullContinuationPersistence.js +20 -0
- package/data/persistence/documents/internal/documentPullContinuationPersistence.js.map +1 -0
- package/data/persistence/documents/internal/documentRecordIdentity.js +20 -0
- package/data/persistence/documents/internal/documentRecordIdentity.js.map +1 -0
- package/data/persistence/documents/internal/documentRows.js +178 -0
- package/data/persistence/documents/internal/documentRows.js.map +1 -0
- package/data/persistence/documents/internal/documentRuntimeState.js +39 -0
- package/data/persistence/documents/internal/documentRuntimeState.js.map +1 -0
- package/data/persistence/documents/internal/documentStoreStatePersistence.js +17 -0
- package/data/persistence/documents/internal/documentStoreStatePersistence.js.map +1 -0
- package/data/persistence/documents/internal/documentSummaryQueries.js +89 -0
- package/data/persistence/documents/internal/documentSummaryQueries.js.map +1 -0
- package/data/persistence/documents/internal/ensureDocumentsSchema.js +15 -0
- package/data/persistence/documents/internal/ensureDocumentsSchema.js.map +1 -0
- package/data/persistence/documents/internal/hydratedAttachmentPersistence.js +47 -0
- package/data/persistence/documents/internal/hydratedAttachmentPersistence.js.map +1 -0
- package/data/persistence/documents/internal/orphanSideRows.js +204 -0
- package/data/persistence/documents/internal/orphanSideRows.js.map +1 -0
- package/data/persistence/documents/internal/pendingCreateAdoption.js +43 -0
- package/data/persistence/documents/internal/pendingCreateAdoption.js.map +1 -0
- package/data/persistence/documents/internal/rowQueryPersistence.js +95 -0
- package/data/persistence/documents/internal/rowQueryPersistence.js.map +1 -0
- package/data/persistence/documents/internal/syncQueuePersistence.js +197 -0
- package/data/persistence/documents/internal/syncQueuePersistence.js.map +1 -0
- package/data/persistence/documents/types.d.ts +322 -0
- package/data/persistence/documents/types.js +2 -0
- package/data/persistence/documents/types.js.map +1 -0
- package/data/persistence/keyingCheckpointAdvancePersistence.js +200 -0
- package/data/persistence/keyingCheckpointAdvancePersistence.js.map +1 -0
- package/data/persistence/keyingCheckpointEvidence.js +32 -0
- package/data/persistence/keyingCheckpointEvidence.js.map +1 -0
- package/data/persistence/keyingCheckpointPersistence.js +133 -0
- package/data/persistence/keyingCheckpointPersistence.js.map +1 -0
- package/data/persistence/latestTimestamp.js +15 -0
- package/data/persistence/latestTimestamp.js.map +1 -0
- package/data/persistence/locallyAcknowledgedCheckpointPersistence.d.ts +53 -0
- package/data/persistence/locallyAcknowledgedCheckpointPersistence.js +167 -0
- package/data/persistence/locallyAcknowledgedCheckpointPersistence.js.map +1 -0
- package/data/persistence/organizationFounderPersistence.js +59 -0
- package/data/persistence/organizationFounderPersistence.js.map +1 -0
- package/data/persistence/organizationReplacementCheckpointPersistence.js +72 -0
- package/data/persistence/organizationReplacementCheckpointPersistence.js.map +1 -0
- package/data/persistence/organizations/organizationAccessRevocationPersistence.js +45 -0
- package/data/persistence/organizations/organizationAccessRevocationPersistence.js.map +1 -0
- package/data/persistence/organizations/organizationDataUsagePersistence.js +219 -0
- package/data/persistence/organizations/organizationDataUsagePersistence.js.map +1 -0
- package/data/persistence/organizations/organizationGroupNamePersistence.js +33 -0
- package/data/persistence/organizations/organizationGroupNamePersistence.js.map +1 -0
- package/data/persistence/organizations/organizationPresentationDenialPersistence.js +52 -0
- package/data/persistence/organizations/organizationPresentationDenialPersistence.js.map +1 -0
- package/data/persistence/organizations/organizationProfileDocumentPointers.js +32 -0
- package/data/persistence/organizations/organizationProfileDocumentPointers.js.map +1 -0
- package/data/persistence/organizations/organizationProvisioningAttemptPersistence.js +69 -0
- package/data/persistence/organizations/organizationProvisioningAttemptPersistence.js.map +1 -0
- package/data/persistence/organizations/organizationReadModelGrantPersistence.js +91 -0
- package/data/persistence/organizations/organizationReadModelGrantPersistence.js.map +1 -0
- package/data/persistence/organizations/organizationReadModelInvalidation.d.ts +11 -0
- package/data/persistence/organizations/organizationReadModelInvalidation.js +35 -0
- package/data/persistence/organizations/organizationReadModelInvalidation.js.map +1 -0
- package/data/persistence/organizations/organizationReadModelMemberLoad.js +96 -0
- package/data/persistence/organizations/organizationReadModelMemberLoad.js.map +1 -0
- package/data/persistence/organizations/organizationReadModelMembershipPersistence.js +161 -0
- package/data/persistence/organizations/organizationReadModelMembershipPersistence.js.map +1 -0
- package/data/persistence/organizations/organizationReadModelPersistence.js +301 -0
- package/data/persistence/organizations/organizationReadModelPersistence.js.map +1 -0
- package/data/persistence/organizations/organizationReadModelPolicyHeadPersistence.js +64 -0
- package/data/persistence/organizations/organizationReadModelPolicyHeadPersistence.js.map +1 -0
- package/data/persistence/organizations/organizationReadModelProjection.js +228 -0
- package/data/persistence/organizations/organizationReadModelProjection.js.map +1 -0
- package/data/persistence/organizations/organizationReadModelProtocol.js +14 -0
- package/data/persistence/organizations/organizationReadModelProtocol.js.map +1 -0
- package/data/persistence/organizations/organizationReadModelPurge.js +113 -0
- package/data/persistence/organizations/organizationReadModelPurge.js.map +1 -0
- package/data/persistence/organizations/organizationReadModelResponseAssertions.js +42 -0
- package/data/persistence/organizations/organizationReadModelResponseAssertions.js.map +1 -0
- package/data/persistence/principalGrantRetirementPersistence.d.ts +9 -0
- package/data/persistence/principalGrantRetirementPersistence.js +40 -0
- package/data/persistence/principalGrantRetirementPersistence.js.map +1 -0
- package/data/persistence/principalHistoryEvidencePersistence.js +91 -0
- package/data/persistence/principalHistoryEvidencePersistence.js.map +1 -0
- package/data/persistence/principalHistoryPrefixPersistence.js +52 -0
- package/data/persistence/principalHistoryPrefixPersistence.js.map +1 -0
- package/data/persistence/principalHistoryStagePersistence.js +61 -0
- package/data/persistence/principalHistoryStagePersistence.js.map +1 -0
- package/data/persistence/principalKeyEnvelopeCandidates.js +67 -0
- package/data/persistence/principalKeyEnvelopeCandidates.js.map +1 -0
- package/data/persistence/principalPolicyBundleIntegrity.js +49 -0
- package/data/persistence/principalPolicyBundleIntegrity.js.map +1 -0
- package/data/persistence/principalPolicyCheckpointSelection.js +26 -0
- package/data/persistence/principalPolicyCheckpointSelection.js.map +1 -0
- package/data/persistence/principalPolicyOrganizationPersistence.js +42 -0
- package/data/persistence/principalPolicyOrganizationPersistence.js.map +1 -0
- package/data/persistence/principalPolicyPersistence.js +279 -0
- package/data/persistence/principalPolicyPersistence.js.map +1 -0
- package/data/persistence/principalPolicyReferenceCheckpoint.js +27 -0
- package/data/persistence/principalPolicyReferenceCheckpoint.js.map +1 -0
- package/data/persistence/principalPolicyReferenceIndexPersistence.js +52 -0
- package/data/persistence/principalPolicyReferenceIndexPersistence.js.map +1 -0
- package/data/persistence/principalPolicyReferencePersistence.js +215 -0
- package/data/persistence/principalPolicyReferencePersistence.js.map +1 -0
- package/data/persistence/securityIncidentPersistence.js +156 -0
- package/data/persistence/securityIncidentPersistence.js.map +1 -0
- package/data/persistence/storedPrincipalPolicyBundle.js +17 -0
- package/data/persistence/storedPrincipalPolicyBundle.js.map +1 -0
- package/data/persistence/trustedUserIdentityPinPersistence.js +252 -0
- package/data/persistence/trustedUserIdentityPinPersistence.js.map +1 -0
- package/data/persistence/trustedUserIdentityPinTransaction.js +51 -0
- package/data/persistence/trustedUserIdentityPinTransaction.js.map +1 -0
- package/data/persistence/verifiedPrincipalPolicyBundle.js +77 -0
- package/data/persistence/verifiedPrincipalPolicyBundle.js.map +1 -0
- package/data/persistence/verifiedPrincipalPolicyRetentionPersistence.js +18 -0
- package/data/persistence/verifiedPrincipalPolicyRetentionPersistence.js.map +1 -0
- package/data/principalPolicyStates.js +24 -0
- package/data/principalPolicyStates.js.map +1 -0
- package/data/principals/organizationAuthorityDescriptor.d.ts +22 -0
- package/data/principals/organizationAuthorityDescriptor.js +138 -0
- package/data/principals/organizationAuthorityDescriptor.js.map +1 -0
- package/data/principals/organizationGroupRoles.js +27 -0
- package/data/principals/organizationGroupRoles.js.map +1 -0
- package/data/principals/principalHistoryPrefixProtection.js +29 -0
- package/data/principals/principalHistoryPrefixProtection.js.map +1 -0
- package/data/principals/principalHistoryProtection.d.ts +10 -0
- package/data/principals/principalHistoryProtection.js +14 -0
- package/data/principals/principalHistoryProtection.js.map +1 -0
- package/data/principals/principalHistoryStageProtection.js +67 -0
- package/data/principals/principalHistoryStageProtection.js.map +1 -0
- package/data/principals/principalKeyValidation.js +19 -0
- package/data/principals/principalKeyValidation.js.map +1 -0
- package/data/principals/principalPolicyAdminSigners.js +81 -0
- package/data/principals/principalPolicyAdminSigners.js.map +1 -0
- package/data/principals/principalPolicyCrypto.js +73 -0
- package/data/principals/principalPolicyCrypto.js.map +1 -0
- package/data/principals/principalPolicyEvidence.d.ts +4 -0
- package/data/principals/principalPolicyEvidence.js +12 -0
- package/data/principals/principalPolicyEvidence.js.map +1 -0
- package/data/recordReaders.d.ts +17 -0
- package/data/recordReaders.js +76 -0
- package/data/recordReaders.js.map +1 -0
- package/data/securityIncidents.d.ts +26 -0
- package/data/securityIncidents.js +2 -0
- package/data/securityIncidents.js.map +1 -0
- package/data/sqlite/containerDocumentTombstoneHoldSchema.d.ts +142 -0
- package/data/sqlite/containerDocumentTombstoneHoldSchema.js +35 -0
- package/data/sqlite/containerDocumentTombstoneHoldSchema.js.map +1 -0
- package/data/sqlite/containerSchema.d.ts +1289 -0
- package/data/sqlite/containerSchema.js +112 -0
- package/data/sqlite/containerSchema.js.map +1 -0
- package/data/sqlite/documentAttachmentSchema.d.ts +513 -0
- package/data/sqlite/documentAttachmentSchema.js +94 -0
- package/data/sqlite/documentAttachmentSchema.js.map +1 -0
- package/data/sqlite/documentDiscoveryEvidenceSchema.js +28 -0
- package/data/sqlite/documentDiscoveryEvidenceSchema.js.map +1 -0
- package/data/sqlite/documentHistoryPersistence.d.ts +80 -0
- package/data/sqlite/documentHistoryPersistence.js +281 -0
- package/data/sqlite/documentHistoryPersistence.js.map +1 -0
- package/data/sqlite/documentOrphanBlobReclaims.js +6 -0
- package/data/sqlite/documentOrphanBlobReclaims.js.map +1 -0
- package/data/sqlite/documentPendingUpdatePersistence.d.ts +56 -0
- package/data/sqlite/documentPendingUpdatePersistence.js +169 -0
- package/data/sqlite/documentPendingUpdatePersistence.js.map +1 -0
- package/data/sqlite/documentPersistence.d.ts +22 -0
- package/data/sqlite/documentPersistence.js +35 -0
- package/data/sqlite/documentPersistence.js.map +1 -0
- package/data/sqlite/documentPersistenceTypes.d.ts +79 -0
- package/data/sqlite/documentPersistenceTypes.js +2 -0
- package/data/sqlite/documentPersistenceTypes.js.map +1 -0
- package/data/sqlite/documentPlacementIntentSchema.d.ts +327 -0
- package/data/sqlite/documentPlacementIntentSchema.js +60 -0
- package/data/sqlite/documentPlacementIntentSchema.js.map +1 -0
- package/data/sqlite/documentRecordPersistence.d.ts +275 -0
- package/data/sqlite/documentRecordPersistence.js +102 -0
- package/data/sqlite/documentRecordPersistence.js.map +1 -0
- package/data/sqlite/documentSyncFailurePersistence.d.ts +29 -0
- package/data/sqlite/documentSyncFailurePersistence.js +91 -0
- package/data/sqlite/documentSyncFailurePersistence.js.map +1 -0
- package/data/sqlite/organizationDataUsageSchema.js +40 -0
- package/data/sqlite/organizationDataUsageSchema.js.map +1 -0
- package/data/sqlite/organizationFounderSchema.js +9 -0
- package/data/sqlite/organizationFounderSchema.js.map +1 -0
- package/data/sqlite/organizationProvisioningAttemptSchema.js +23 -0
- package/data/sqlite/organizationProvisioningAttemptSchema.js.map +1 -0
- package/data/sqlite/organizationReadModelSchema.js +133 -0
- package/data/sqlite/organizationReadModelSchema.js.map +1 -0
- package/data/sqlite/organizationReadModelTableRegistry.d.ts +1479 -0
- package/data/sqlite/organizationReadModelTableRegistry.js +28 -0
- package/data/sqlite/organizationReadModelTableRegistry.js.map +1 -0
- package/data/sqlite/principalGrantRetirementSchema.js +12 -0
- package/data/sqlite/principalGrantRetirementSchema.js.map +1 -0
- package/data/sqlite/principalHistoryEvidenceSchema.js +46 -0
- package/data/sqlite/principalHistoryEvidenceSchema.js.map +1 -0
- package/data/sqlite/principalHistoryStageSchema.js +17 -0
- package/data/sqlite/principalHistoryStageSchema.js.map +1 -0
- package/data/sqlite/principalKeyFingerprintJson.js +9 -0
- package/data/sqlite/principalKeyFingerprintJson.js.map +1 -0
- package/data/sqlite/principalPolicySchema.d.ts +716 -0
- package/data/sqlite/principalPolicySchema.js +72 -0
- package/data/sqlite/principalPolicySchema.js.map +1 -0
- package/data/sqlite/schema.d.ts +9024 -0
- package/data/sqlite/schema.js +635 -0
- package/data/sqlite/schema.js.map +1 -0
- package/data/sqlite/securityIncidentSchema.d.ts +224 -0
- package/data/sqlite/securityIncidentSchema.js +28 -0
- package/data/sqlite/securityIncidentSchema.js.map +1 -0
- package/data/sqlite/sqlExec.d.ts +39 -0
- package/data/sqlite/sqlExec.js +118 -0
- package/data/sqlite/sqlExec.js.map +1 -0
- package/data/sqlite/sqlSchema.d.ts +4 -0
- package/data/sqlite/sqlSchema.js +3 -0
- package/data/sqlite/sqlSchema.js.map +1 -0
- package/data/sqlite/sqlTableSchema.d.ts +19 -0
- package/data/sqlite/sqlTableSchema.js +138 -0
- package/data/sqlite/sqlTableSchema.js.map +1 -0
- package/data/sqlite/sqlitePersistenceRuntime.d.ts +34 -0
- package/data/sqlite/sqlitePersistenceRuntime.js +204 -0
- package/data/sqlite/sqlitePersistenceRuntime.js.map +1 -0
- package/data/sqlite/storagePersistence.d.ts +68 -0
- package/data/sqlite/storagePersistence.js +81 -0
- package/data/sqlite/storagePersistence.js.map +1 -0
- package/data/stableUuid.js +39 -0
- package/data/stableUuid.js.map +1 -0
- package/data/sync/coordinatorPump.d.ts +10 -0
- package/data/sync/coordinatorPump.js +305 -0
- package/data/sync/coordinatorPump.js.map +1 -0
- package/data/sync/coordinatorState.d.ts +43 -0
- package/data/sync/coordinatorState.js +72 -0
- package/data/sync/coordinatorState.js.map +1 -0
- package/data/sync/databaseUnavailable.d.ts +4 -0
- package/data/sync/databaseUnavailable.js +47 -0
- package/data/sync/databaseUnavailable.js.map +1 -0
- package/data/sync/documentSyncOutgoingBatch.d.ts +17 -0
- package/data/sync/documentSyncOutgoingBatch.js +93 -0
- package/data/sync/documentSyncOutgoingBatch.js.map +1 -0
- package/data/sync/outgoingUpdateSettlement.d.ts +54 -0
- package/data/sync/outgoingUpdateSettlement.js +60 -0
- package/data/sync/outgoingUpdateSettlement.js.map +1 -0
- package/data/sync/sequence.d.ts +8 -0
- package/data/sync/sequence.js +9 -0
- package/data/sync/sequence.js.map +1 -0
- package/data/sync/syncCoordinator.d.ts +32 -0
- package/data/sync/syncCoordinator.js +160 -0
- package/data/sync/syncCoordinator.js.map +1 -0
- package/data/sync/syncLaneConfig.d.ts +16 -0
- package/data/sync/syncLaneConfig.js +2 -0
- package/data/sync/syncLaneConfig.js.map +1 -0
- package/data/sync/syncPrerequisites.d.ts +12 -0
- package/data/sync/syncPrerequisites.js +8 -0
- package/data/sync/syncPrerequisites.js.map +1 -0
- package/data/sync/syncTelemetry.d.ts +86 -0
- package/data/sync/syncTelemetry.js +69 -0
- package/data/sync/syncTelemetry.js.map +1 -0
- package/data/sync/uploadLane.d.ts +18 -0
- package/data/sync/uploadLane.js +116 -0
- package/data/sync/uploadLane.js.map +1 -0
- package/data/trustedUserIdentity/apiAdapter.d.ts +12 -0
- package/data/trustedUserIdentity/apiAdapter.js +33 -0
- package/data/trustedUserIdentity/apiAdapter.js.map +1 -0
- package/data/trustedUserIdentity/index.d.ts +6 -0
- package/data/trustedUserIdentity/index.js +6 -0
- package/data/trustedUserIdentity/index.js.map +1 -0
- package/data/trustedUserIdentity/requiredResolver.d.ts +3 -0
- package/data/trustedUserIdentity/requiredResolver.js +27 -0
- package/data/trustedUserIdentity/requiredResolver.js.map +1 -0
- package/data/trustedUserIdentity/service.d.ts +2 -0
- package/data/trustedUserIdentity/service.js +125 -0
- package/data/trustedUserIdentity/service.js.map +1 -0
- package/data/trustedUserIdentity/testFixtures.d.ts +15 -0
- package/data/trustedUserIdentity/testFixtures.js +33 -0
- package/data/trustedUserIdentity/testFixtures.js.map +1 -0
- package/data/trustedUserIdentity/trustDomain.d.ts +13 -0
- package/data/trustedUserIdentity/trustDomain.js +66 -0
- package/data/trustedUserIdentity/trustDomain.js.map +1 -0
- package/data/trustedUserIdentity/types.d.ts +69 -0
- package/data/trustedUserIdentity/types.js +18 -0
- package/data/trustedUserIdentity/types.js.map +1 -0
- package/data/trustedUserIdentity/validation.d.ts +16 -0
- package/data/trustedUserIdentity/validation.js +109 -0
- package/data/trustedUserIdentity/validation.js.map +1 -0
- package/documents.d.ts +7 -0
- package/documents.js +7 -0
- package/documents.js.map +1 -0
- package/index.d.ts +26 -0
- package/index.js +14 -0
- package/index.js.map +1 -0
- package/internal/api-client/ApiCache.js +112 -0
- package/internal/api-client/ApiCache.js.map +1 -0
- package/internal/api-client/ApiClient.d.ts +3968 -0
- package/internal/api-client/ApiClient.js +844 -0
- package/internal/api-client/ApiClient.js.map +1 -0
- package/internal/api-client/apiRequestRuntime.d.ts +48 -0
- package/internal/api-client/apiRequestRuntime.js +305 -0
- package/internal/api-client/apiRequestRuntime.js.map +1 -0
- package/internal/api-client/binaryRequestOperationTransport.js +41 -0
- package/internal/api-client/binaryRequestOperationTransport.js.map +1 -0
- package/internal/api-client/binaryResponseOperationTransport.d.ts +22 -0
- package/internal/api-client/binaryResponseOperationTransport.js +42 -0
- package/internal/api-client/binaryResponseOperationTransport.js.map +1 -0
- package/internal/api-client/index.d.ts +5 -0
- package/internal/api-client/index.js +3 -0
- package/internal/api-client/index.js.map +1 -0
- package/internal/api-client/operationResponse.d.ts +39 -0
- package/internal/api-client/operationResponse.js +78 -0
- package/internal/api-client/operationResponse.js.map +1 -0
- package/internal/api-client/operationTransport.d.ts +38 -0
- package/internal/api-client/operationTransport.js +118 -0
- package/internal/api-client/operationTransport.js.map +1 -0
- package/internal/api-client/operationTransportFactory.js +11 -0
- package/internal/api-client/operationTransportFactory.js.map +1 -0
- package/internal/api-client/operationTransportSurface.js +48 -0
- package/internal/api-client/operationTransportSurface.js.map +1 -0
- package/internal/api-client/principalHistoryRequest.js +90 -0
- package/internal/api-client/principalHistoryRequest.js.map +1 -0
- package/internal/api-client/principalHistoryRequestContext.js +67 -0
- package/internal/api-client/principalHistoryRequestContext.js.map +1 -0
- package/internal/api-client/principalPolicyPages.d.ts +20 -0
- package/internal/api-client/principalPolicyPages.js +181 -0
- package/internal/api-client/principalPolicyPages.js.map +1 -0
- package/internal/api-client/principalPolicyRequests.js +68 -0
- package/internal/api-client/principalPolicyRequests.js.map +1 -0
- package/internal/api-client/projectionHistoryTransport.js +107 -0
- package/internal/api-client/projectionHistoryTransport.js.map +1 -0
- package/internal/api-client/requestInternals.js +294 -0
- package/internal/api-client/requestInternals.js.map +1 -0
- package/internal/api-client/responseBodyFailure.js +13 -0
- package/internal/api-client/responseBodyFailure.js.map +1 -0
- package/internal/api-client/routes/auth/session.js +31 -0
- package/internal/api-client/routes/auth/session.js.map +1 -0
- package/internal/api-client/routes/blobs/attachments.js +21 -0
- package/internal/api-client/routes/blobs/attachments.js.map +1 -0
- package/internal/api-client/routes/blobs/get.d.ts +14 -0
- package/internal/api-client/routes/blobs/get.js +46 -0
- package/internal/api-client/routes/blobs/get.js.map +1 -0
- package/internal/api-client/routes/blobs/multipart.js +25 -0
- package/internal/api-client/routes/blobs/multipart.js.map +1 -0
- package/internal/api-client/routes/containers/mutations.js +54 -0
- package/internal/api-client/routes/containers/mutations.js.map +1 -0
- package/internal/api-client/routes/containers/reads.d.ts +22 -0
- package/internal/api-client/routes/containers/reads.js +31 -0
- package/internal/api-client/routes/containers/reads.js.map +1 -0
- package/internal/api-client/routes/documents/attachments.js +11 -0
- package/internal/api-client/routes/documents/attachments.js.map +1 -0
- package/internal/api-client/routes/documents/attributionRequests.js +72 -0
- package/internal/api-client/routes/documents/attributionRequests.js.map +1 -0
- package/internal/api-client/routes/documents/mutations.d.ts +32 -0
- package/internal/api-client/routes/documents/mutations.js +36 -0
- package/internal/api-client/routes/documents/mutations.js.map +1 -0
- package/internal/api-client/routes/organizations/billing.js +49 -0
- package/internal/api-client/routes/organizations/billing.js.map +1 -0
- package/internal/api-client/routes/organizations/createGroup.js +12 -0
- package/internal/api-client/routes/organizations/createGroup.js.map +1 -0
- package/internal/api-client/routes/organizations/dataUsage.js +11 -0
- package/internal/api-client/routes/organizations/dataUsage.js.map +1 -0
- package/internal/api-client/routes/organizations/deleteGroup.js +12 -0
- package/internal/api-client/routes/organizations/deleteGroup.js.map +1 -0
- package/internal/api-client/routes/organizations/groupMembers.js +12 -0
- package/internal/api-client/routes/organizations/groupMembers.js.map +1 -0
- package/internal/api-client/routes/organizations/profile.js +12 -0
- package/internal/api-client/routes/organizations/profile.js.map +1 -0
- package/internal/api-client/routes/organizations/roster.js +13 -0
- package/internal/api-client/routes/organizations/roster.js.map +1 -0
- package/internal/api-client/routes/organizations/stripeCheckout.js +42 -0
- package/internal/api-client/routes/organizations/stripeCheckout.js.map +1 -0
- package/internal/api-client/routes/path.js +4 -0
- package/internal/api-client/routes/path.js.map +1 -0
- package/internal/api-client/routes/principals/policy.js +34 -0
- package/internal/api-client/routes/principals/policy.js.map +1 -0
- package/internal/api-client/routes/writerProjections.js +56 -0
- package/internal/api-client/routes/writerProjections.js.map +1 -0
- package/internal/api-client/sessionRefresh.js +39 -0
- package/internal/api-client/sessionRefresh.js.map +1 -0
- package/internal/api-client/types.d.ts +61 -0
- package/internal/api-client/types.js +2 -0
- package/internal/api-client/types.js.map +1 -0
- package/internal/api-client/verifiedProjectionHistory.d.ts +4 -0
- package/internal/api-client/verifiedProjectionHistory.js +12 -0
- package/internal/api-client/verifiedProjectionHistory.js.map +1 -0
- package/internal/api-client/writerProjectionCitations.js +95 -0
- package/internal/api-client/writerProjectionCitations.js.map +1 -0
- package/internal/api-client/writerProjectionPrime.js +25 -0
- package/internal/api-client/writerProjectionPrime.js.map +1 -0
- package/internal/crypto/blobEnvelopeError.d.ts +8 -0
- package/internal/crypto/blobEnvelopeError.js +12 -0
- package/internal/crypto/blobEnvelopeError.js.map +1 -0
- package/internal/crypto/blobEnvelopeFields.js +34 -0
- package/internal/crypto/blobEnvelopeFields.js.map +1 -0
- package/internal/crypto/blobEnvelopeReader.d.ts +30 -0
- package/internal/crypto/blobEnvelopeReader.js +182 -0
- package/internal/crypto/blobEnvelopeReader.js.map +1 -0
- package/internal/crypto/blobEnvelopeV2.d.ts +38 -0
- package/internal/crypto/blobEnvelopeV2.js +100 -0
- package/internal/crypto/blobEnvelopeV2.js.map +1 -0
- package/internal/crypto/canonicalOrdering.d.ts +7 -0
- package/internal/crypto/canonicalOrdering.js +10 -0
- package/internal/crypto/canonicalOrdering.js.map +1 -0
- package/internal/crypto/challenge.d.ts +16 -0
- package/internal/crypto/challenge.js +53 -0
- package/internal/crypto/challenge.js.map +1 -0
- package/internal/crypto/contentKeyEnvelope.d.ts +48 -0
- package/internal/crypto/contentKeyEnvelope.js +96 -0
- package/internal/crypto/contentKeyEnvelope.js.map +1 -0
- package/internal/crypto/encapsulation/decryptAsRecipient.d.ts +6 -0
- package/internal/crypto/encapsulation/decryptAsRecipient.js +44 -0
- package/internal/crypto/encapsulation/decryptAsRecipient.js.map +1 -0
- package/internal/crypto/encapsulation/encryptForRecipients.d.ts +6 -0
- package/internal/crypto/encapsulation/encryptForRecipients.js +15 -0
- package/internal/crypto/encapsulation/encryptForRecipients.js.map +1 -0
- package/internal/crypto/encapsulation/generateKeyPair.d.ts +10 -0
- package/internal/crypto/encapsulation/generateKeyPair.js +17 -0
- package/internal/crypto/encapsulation/generateKeyPair.js.map +1 -0
- package/internal/crypto/encapsulation/types.d.ts +10 -0
- package/internal/crypto/encapsulation/types.js +2 -0
- package/internal/crypto/encapsulation/types.js.map +1 -0
- package/internal/crypto/encapsulation/unwrapDek.d.ts +6 -0
- package/internal/crypto/encapsulation/unwrapDek.js +37 -0
- package/internal/crypto/encapsulation/unwrapDek.js.map +1 -0
- package/internal/crypto/encapsulation/wrapDek.d.ts +7 -0
- package/internal/crypto/encapsulation/wrapDek.js +38 -0
- package/internal/crypto/encapsulation/wrapDek.js.map +1 -0
- package/internal/crypto/fingerprint.d.ts +1 -0
- package/internal/crypto/fingerprint.js +5 -0
- package/internal/crypto/fingerprint.js.map +1 -0
- package/internal/crypto/groupMetadata.d.ts +31 -0
- package/internal/crypto/groupMetadata.js +100 -0
- package/internal/crypto/groupMetadata.js.map +1 -0
- package/internal/crypto/hex.d.ts +2 -0
- package/internal/crypto/hex.js +14 -0
- package/internal/crypto/hex.js.map +1 -0
- package/internal/crypto/identitySeedPhrase.d.ts +16 -0
- package/internal/crypto/identitySeedPhrase.js +71 -0
- package/internal/crypto/identitySeedPhrase.js.map +1 -0
- package/internal/crypto/incrementalSha256.d.ts +6 -0
- package/internal/crypto/incrementalSha256.js +22 -0
- package/internal/crypto/incrementalSha256.js.map +1 -0
- package/internal/crypto/index.d.ts +38 -0
- package/internal/crypto/index.js +29 -0
- package/internal/crypto/index.js.map +1 -0
- package/internal/crypto/keying/accessEvent.d.ts +11 -0
- package/internal/crypto/keying/accessEvent.js +273 -0
- package/internal/crypto/keying/accessEvent.js.map +1 -0
- package/internal/crypto/keying/accessManifestSnapshot.d.ts +14 -0
- package/internal/crypto/keying/accessManifestSnapshot.js +52 -0
- package/internal/crypto/keying/accessManifestSnapshot.js.map +1 -0
- package/internal/crypto/keying/accessManifestSnapshotTypes.d.ts +11 -0
- package/internal/crypto/keying/accessManifestSnapshotTypes.js +8 -0
- package/internal/crypto/keying/accessManifestSnapshotTypes.js.map +1 -0
- package/internal/crypto/keying/accessManifestVerificationRevision.d.ts +8 -0
- package/internal/crypto/keying/accessManifestVerificationRevision.js +9 -0
- package/internal/crypto/keying/accessManifestVerificationRevision.js.map +1 -0
- package/internal/crypto/keying/canonical.d.ts +12 -0
- package/internal/crypto/keying/canonical.js +126 -0
- package/internal/crypto/keying/canonical.js.map +1 -0
- package/internal/crypto/keying/checkpoints.d.ts +16 -0
- package/internal/crypto/keying/checkpoints.js +149 -0
- package/internal/crypto/keying/checkpoints.js.map +1 -0
- package/internal/crypto/keying/containerAccess.d.ts +6 -0
- package/internal/crypto/keying/containerAccess.js +58 -0
- package/internal/crypto/keying/containerAccess.js.map +1 -0
- package/internal/crypto/keying/containerAccessBodies.d.ts +2 -0
- package/internal/crypto/keying/containerAccessBodies.js +160 -0
- package/internal/crypto/keying/containerAccessBodies.js.map +1 -0
- package/internal/crypto/keying/containerAccessReciteBody.d.ts +3 -0
- package/internal/crypto/keying/containerAccessReciteBody.js +19 -0
- package/internal/crypto/keying/containerAccessReciteBody.js.map +1 -0
- package/internal/crypto/keying/containerAccessRekeyBody.js +35 -0
- package/internal/crypto/keying/containerAccessRekeyBody.js.map +1 -0
- package/internal/crypto/keying/containerAccessState.d.ts +16 -0
- package/internal/crypto/keying/containerAccessState.js +166 -0
- package/internal/crypto/keying/containerAccessState.js.map +1 -0
- package/internal/crypto/keying/containerAccessStructure.js +44 -0
- package/internal/crypto/keying/containerAccessStructure.js.map +1 -0
- package/internal/crypto/keying/containerAccessTransitionBase.js +111 -0
- package/internal/crypto/keying/containerAccessTransitionBase.js.map +1 -0
- package/internal/crypto/keying/containerAccessTransitions.js +182 -0
- package/internal/crypto/keying/containerAccessTransitions.js.map +1 -0
- package/internal/crypto/keying/containerGrantPrincipalHead.js +20 -0
- package/internal/crypto/keying/containerGrantPrincipalHead.js.map +1 -0
- package/internal/crypto/keying/containerKek/contentKeyTargets.d.ts +6 -0
- package/internal/crypto/keying/containerKek/contentKeyTargets.js +294 -0
- package/internal/crypto/keying/containerKek/contentKeyTargets.js.map +1 -0
- package/internal/crypto/keying/containerKek.d.ts +8 -0
- package/internal/crypto/keying/containerKek.js +326 -0
- package/internal/crypto/keying/containerKek.js.map +1 -0
- package/internal/crypto/keying/containerKekCacheToken.js +31 -0
- package/internal/crypto/keying/containerKekCacheToken.js.map +1 -0
- package/internal/crypto/keying/containerKekEpochBinding.js +69 -0
- package/internal/crypto/keying/containerKekEpochBinding.js.map +1 -0
- package/internal/crypto/keying/containerKekKeyring.d.ts +39 -0
- package/internal/crypto/keying/containerKekKeyring.js +236 -0
- package/internal/crypto/keying/containerKekKeyring.js.map +1 -0
- package/internal/crypto/keying/containerKekMaterial.d.ts +13 -0
- package/internal/crypto/keying/containerKekMaterial.js +71 -0
- package/internal/crypto/keying/containerKekMaterial.js.map +1 -0
- package/internal/crypto/keying/containerKekParent.js +86 -0
- package/internal/crypto/keying/containerKekParent.js.map +1 -0
- package/internal/crypto/keying/containerKekPredecessor.d.ts +14 -0
- package/internal/crypto/keying/containerKekPredecessor.js +135 -0
- package/internal/crypto/keying/containerKekPredecessor.js.map +1 -0
- package/internal/crypto/keying/containerKekWrapping.d.ts +12 -0
- package/internal/crypto/keying/containerKekWrapping.js +125 -0
- package/internal/crypto/keying/containerKekWrapping.js.map +1 -0
- package/internal/crypto/keying/containerParentAuthority.d.ts +16 -0
- package/internal/crypto/keying/containerParentAuthority.js +53 -0
- package/internal/crypto/keying/containerParentAuthority.js.map +1 -0
- package/internal/crypto/keying/containerPathAccess.d.ts +45 -0
- package/internal/crypto/keying/containerPathAccess.js +111 -0
- package/internal/crypto/keying/containerPathAccess.js.map +1 -0
- package/internal/crypto/keying/containerPrincipalReferences.js +34 -0
- package/internal/crypto/keying/containerPrincipalReferences.js.map +1 -0
- package/internal/crypto/keying/containerSystemTopology.js +18 -0
- package/internal/crypto/keying/containerSystemTopology.js.map +1 -0
- package/internal/crypto/keying/containerUserRecipientKey.js +15 -0
- package/internal/crypto/keying/containerUserRecipientKey.js.map +1 -0
- package/internal/crypto/keying/documentAccess.d.ts +14 -0
- package/internal/crypto/keying/documentAccess.js +447 -0
- package/internal/crypto/keying/documentAccess.js.map +1 -0
- package/internal/crypto/keying/documentAccessAuthorization.d.ts +33 -0
- package/internal/crypto/keying/documentAccessAuthorization.js +89 -0
- package/internal/crypto/keying/documentAccessAuthorization.js.map +1 -0
- package/internal/crypto/keying/documentAccessBody.d.ts +2 -0
- package/internal/crypto/keying/documentAccessBody.js +35 -0
- package/internal/crypto/keying/documentAccessBody.js.map +1 -0
- package/internal/crypto/keying/documentBlobRewraps.js +82 -0
- package/internal/crypto/keying/documentBlobRewraps.js.map +1 -0
- package/internal/crypto/keying/documentCitationScope.js +55 -0
- package/internal/crypto/keying/documentCitationScope.js.map +1 -0
- package/internal/crypto/keying/documentContentWriteAuthority.d.ts +18 -0
- package/internal/crypto/keying/documentContentWriteAuthority.js +81 -0
- package/internal/crypto/keying/documentContentWriteAuthority.js.map +1 -0
- package/internal/crypto/keying/documentPurge.d.ts +17 -0
- package/internal/crypto/keying/documentPurge.js +124 -0
- package/internal/crypto/keying/documentPurge.js.map +1 -0
- package/internal/crypto/keying/index.d.ts +35 -0
- package/internal/crypto/keying/index.js +31 -0
- package/internal/crypto/keying/index.js.map +1 -0
- package/internal/crypto/keying/keyingHashDomains.d.ts +1 -0
- package/internal/crypto/keying/keyingHashDomains.js +2 -0
- package/internal/crypto/keying/keyingHashDomains.js.map +1 -0
- package/internal/crypto/keying/principalPolicy.d.ts +8 -0
- package/internal/crypto/keying/principalPolicy.js +189 -0
- package/internal/crypto/keying/principalPolicy.js.map +1 -0
- package/internal/crypto/keying/principalPolicyBundleHistory.d.ts +7 -0
- package/internal/crypto/keying/principalPolicyBundleHistory.js +75 -0
- package/internal/crypto/keying/principalPolicyBundleHistory.js.map +1 -0
- package/internal/crypto/keying/principalPolicyChainEntry.js +83 -0
- package/internal/crypto/keying/principalPolicyChainEntry.js.map +1 -0
- package/internal/crypto/keying/principalPolicyCommitments.js +37 -0
- package/internal/crypto/keying/principalPolicyCommitments.js.map +1 -0
- package/internal/crypto/keying/principalPolicyCurrent.d.ts +12 -0
- package/internal/crypto/keying/principalPolicyCurrent.js +57 -0
- package/internal/crypto/keying/principalPolicyCurrent.js.map +1 -0
- package/internal/crypto/keying/principalPolicyExternalAuthority.js +66 -0
- package/internal/crypto/keying/principalPolicyExternalAuthority.js.map +1 -0
- package/internal/crypto/keying/principalPolicyExternalAuthorityTypes.d.ts +15 -0
- package/internal/crypto/keying/principalPolicyExternalAuthorityTypes.js +2 -0
- package/internal/crypto/keying/principalPolicyExternalAuthorityTypes.js.map +1 -0
- package/internal/crypto/keying/principalPolicyHistory.d.ts +12 -0
- package/internal/crypto/keying/principalPolicyHistory.js +158 -0
- package/internal/crypto/keying/principalPolicyHistory.js.map +1 -0
- package/internal/crypto/keying/principalPolicyHistoryChecks.js +60 -0
- package/internal/crypto/keying/principalPolicyHistoryChecks.js.map +1 -0
- package/internal/crypto/keying/principalPolicyHistoryIndex.d.ts +30 -0
- package/internal/crypto/keying/principalPolicyHistoryIndex.js +112 -0
- package/internal/crypto/keying/principalPolicyHistoryIndex.js.map +1 -0
- package/internal/crypto/keying/principalPolicyHistoryPage.d.ts +17 -0
- package/internal/crypto/keying/principalPolicyHistoryPage.js +87 -0
- package/internal/crypto/keying/principalPolicyHistoryPage.js.map +1 -0
- package/internal/crypto/keying/principalPolicyHistoryProgress.js +90 -0
- package/internal/crypto/keying/principalPolicyHistoryProgress.js.map +1 -0
- package/internal/crypto/keying/principalPolicyHistoryProgressEntry.js +107 -0
- package/internal/crypto/keying/principalPolicyHistoryProgressEntry.js.map +1 -0
- package/internal/crypto/keying/principalPolicyHistoryProgressProtection.js +76 -0
- package/internal/crypto/keying/principalPolicyHistoryProgressProtection.js.map +1 -0
- package/internal/crypto/keying/principalPolicyHistoryReferences.d.ts +20 -0
- package/internal/crypto/keying/principalPolicyHistoryReferences.js +81 -0
- package/internal/crypto/keying/principalPolicyHistoryReferences.js.map +1 -0
- package/internal/crypto/keying/principalPolicyHistoryTypes.d.ts +46 -0
- package/internal/crypto/keying/principalPolicyHistoryTypes.js +21 -0
- package/internal/crypto/keying/principalPolicyHistoryTypes.js.map +1 -0
- package/internal/crypto/keying/principalPolicyMemberEnvelopes.js +27 -0
- package/internal/crypto/keying/principalPolicyMemberEnvelopes.js.map +1 -0
- package/internal/crypto/keying/principalPolicyPayload.js +20 -0
- package/internal/crypto/keying/principalPolicyPayload.js.map +1 -0
- package/internal/crypto/keying/principalPolicyReference.js +33 -0
- package/internal/crypto/keying/principalPolicyReference.js.map +1 -0
- package/internal/crypto/keying/principalPolicySelection.d.ts +11 -0
- package/internal/crypto/keying/principalPolicySelection.js +32 -0
- package/internal/crypto/keying/principalPolicySelection.js.map +1 -0
- package/internal/crypto/keying/principalPolicySignatures.js +36 -0
- package/internal/crypto/keying/principalPolicySignatures.js.map +1 -0
- package/internal/crypto/keying/principalPolicySignerKeys.js +30 -0
- package/internal/crypto/keying/principalPolicySignerKeys.js.map +1 -0
- package/internal/crypto/keying/principalPolicyTransition.d.ts +21 -0
- package/internal/crypto/keying/principalPolicyTransition.js +103 -0
- package/internal/crypto/keying/principalPolicyTransition.js.map +1 -0
- package/internal/crypto/keying/principalPolicyTypes.d.ts +126 -0
- package/internal/crypto/keying/principalPolicyTypes.js +23 -0
- package/internal/crypto/keying/principalPolicyTypes.js.map +1 -0
- package/internal/crypto/keying/shared.js +252 -0
- package/internal/crypto/keying/shared.js.map +1 -0
- package/internal/crypto/keying/transparency.d.ts +8 -0
- package/internal/crypto/keying/transparency.js +266 -0
- package/internal/crypto/keying/transparency.js.map +1 -0
- package/internal/crypto/keying/transparencyProofs.d.ts +28 -0
- package/internal/crypto/keying/transparencyProofs.js +215 -0
- package/internal/crypto/keying/transparencyProofs.js.map +1 -0
- package/internal/crypto/keying/transparencyTree.d.ts +14 -0
- package/internal/crypto/keying/transparencyTree.js +137 -0
- package/internal/crypto/keying/transparencyTree.js.map +1 -0
- package/internal/crypto/keying/types.d.ts +669 -0
- package/internal/crypto/keying/types.js +124 -0
- package/internal/crypto/keying/types.js.map +1 -0
- package/internal/crypto/keying/verificationError.d.ts +14 -0
- package/internal/crypto/keying/verificationError.js +28 -0
- package/internal/crypto/keying/verificationError.js.map +1 -0
- package/internal/crypto/keying/writeHeader.d.ts +5 -0
- package/internal/crypto/keying/writeHeader.js +226 -0
- package/internal/crypto/keying/writeHeader.js.map +1 -0
- package/internal/crypto/keying/writeHeaderAuthorization.js +81 -0
- package/internal/crypto/keying/writeHeaderAuthorization.js.map +1 -0
- package/internal/crypto/keying/writeHeaderCitations.js +21 -0
- package/internal/crypto/keying/writeHeaderCitations.js.map +1 -0
- package/internal/crypto/keying.d.ts +1 -0
- package/internal/crypto/keying.js +2 -0
- package/internal/crypto/keying.js.map +1 -0
- package/internal/crypto/organizationReplacement.d.ts +18 -0
- package/internal/crypto/organizationReplacement.js +133 -0
- package/internal/crypto/organizationReplacement.js.map +1 -0
- package/internal/crypto/principalContainerGrants.d.ts +3 -0
- package/internal/crypto/principalContainerGrants.js +39 -0
- package/internal/crypto/principalContainerGrants.js.map +1 -0
- package/internal/crypto/principalMemberEnvelopes.d.ts +7 -0
- package/internal/crypto/principalMemberEnvelopes.js +69 -0
- package/internal/crypto/principalMemberEnvelopes.js.map +1 -0
- package/internal/crypto/principalPolicyValidationError.d.ts +6 -0
- package/internal/crypto/principalPolicyValidationError.js +12 -0
- package/internal/crypto/principalPolicyValidationError.js.map +1 -0
- package/internal/crypto/principalState.d.ts +17 -0
- package/internal/crypto/principalState.js +280 -0
- package/internal/crypto/principalState.js.map +1 -0
- package/internal/crypto/principalStateMembers.js +39 -0
- package/internal/crypto/principalStateMembers.js.map +1 -0
- package/internal/crypto/principalStateTypes.d.ts +93 -0
- package/internal/crypto/principalStateTypes.js +2 -0
- package/internal/crypto/principalStateTypes.js.map +1 -0
- package/internal/crypto/principalStateVerification.d.ts +11 -0
- package/internal/crypto/principalStateVerification.js +47 -0
- package/internal/crypto/principalStateVerification.js.map +1 -0
- package/internal/crypto/projectionHistory.d.ts +14 -0
- package/internal/crypto/projectionHistory.js +90 -0
- package/internal/crypto/projectionHistory.js.map +1 -0
- package/internal/crypto/projectionHistorySlots.d.ts +13 -0
- package/internal/crypto/projectionHistorySlots.js +85 -0
- package/internal/crypto/projectionHistorySlots.js.map +1 -0
- package/internal/crypto/signing/generateKeyPair.d.ts +9 -0
- package/internal/crypto/signing/generateKeyPair.js +17 -0
- package/internal/crypto/signing/generateKeyPair.js.map +1 -0
- package/internal/crypto/signing/sign.d.ts +1 -0
- package/internal/crypto/signing/sign.js +9 -0
- package/internal/crypto/signing/sign.js.map +1 -0
- package/internal/crypto/signing/verifiedHistorySignature.js +37 -0
- package/internal/crypto/signing/verifiedHistorySignature.js.map +1 -0
- package/internal/crypto/signing/verifiedSignatureHistory.js +60 -0
- package/internal/crypto/signing/verifiedSignatureHistory.js.map +1 -0
- package/internal/crypto/signing/verify.d.ts +1 -0
- package/internal/crypto/signing/verify.js +16 -0
- package/internal/crypto/signing/verify.js.map +1 -0
- package/internal/crypto/symmetric.d.ts +11 -0
- package/internal/crypto/symmetric.js +54 -0
- package/internal/crypto/symmetric.js.map +1 -0
- package/internal/encoding/base64.js +16 -0
- package/internal/encoding/base64.js.map +1 -0
- package/internal/encoding/index.js +2 -0
- package/internal/encoding/index.js.map +1 -0
- package/internal/loro/document.d.ts +109 -0
- package/internal/loro/document.js +301 -0
- package/internal/loro/document.js.map +1 -0
- package/internal/loro/historyCanonicalization.js +74 -0
- package/internal/loro/historyCanonicalization.js.map +1 -0
- package/internal/loro/importMetadata.d.ts +8 -0
- package/internal/loro/importMetadata.js +17 -0
- package/internal/loro/importMetadata.js.map +1 -0
- package/internal/loro/index.d.ts +4 -0
- package/internal/loro/index.js +5 -0
- package/internal/loro/index.js.map +1 -0
- package/internal/loro/shared/index.d.ts +1 -0
- package/internal/loro/shared/index.js +2 -0
- package/internal/loro/shared/index.js.map +1 -0
- package/internal/loro/shared/validators.d.ts +12 -0
- package/internal/loro/shared/validators.js +2 -0
- package/internal/loro/shared/validators.js.map +1 -0
- package/internal/loro/updateIdentity.d.ts +8 -0
- package/internal/loro/updateIdentity.js +89 -0
- package/internal/loro/updateIdentity.js.map +1 -0
- package/internal/sqlite-worker/client.d.ts +27 -0
- package/internal/sqlite-worker/client.js +105 -0
- package/internal/sqlite-worker/client.js.map +1 -0
- package/internal/sqlite-worker/crossTabLocalClient.js +58 -0
- package/internal/sqlite-worker/crossTabLocalClient.js.map +1 -0
- package/internal/sqlite-worker/crossTabLocks.js +118 -0
- package/internal/sqlite-worker/crossTabLocks.js.map +1 -0
- package/internal/sqlite-worker/crossTabOwner.js +210 -0
- package/internal/sqlite-worker/crossTabOwner.js.map +1 -0
- package/internal/sqlite-worker/crossTabOwnership.js +53 -0
- package/internal/sqlite-worker/crossTabOwnership.js.map +1 -0
- package/internal/sqlite-worker/crossTabProtocol.js +53 -0
- package/internal/sqlite-worker/crossTabProtocol.js.map +1 -0
- package/internal/sqlite-worker/crossTabRuntime.js +387 -0
- package/internal/sqlite-worker/crossTabRuntime.js.map +1 -0
- package/internal/sqlite-worker/purgeOpfsDatabase.d.ts +13 -0
- package/internal/sqlite-worker/purgeOpfsDatabase.js +53 -0
- package/internal/sqlite-worker/purgeOpfsDatabase.js.map +1 -0
- package/internal/sqlite-worker/renewedClientTransport.d.ts +19 -0
- package/internal/sqlite-worker/renewedClientTransport.js +102 -0
- package/internal/sqlite-worker/renewedClientTransport.js.map +1 -0
- package/internal/sqlite-worker/runtime.d.ts +96 -0
- package/internal/sqlite-worker/runtime.js +280 -0
- package/internal/sqlite-worker/runtime.js.map +1 -0
- package/internal/sqlite-worker/sahPoolStorage.js +37 -0
- package/internal/sqlite-worker/sahPoolStorage.js.map +1 -0
- package/internal/sqlite-worker/types.d.ts +94 -0
- package/internal/sqlite-worker/types.js +4 -0
- package/internal/sqlite-worker/types.js.map +1 -0
- package/internal/sqlite-worker/workerCrash.js +40 -0
- package/internal/sqlite-worker/workerCrash.js.map +1 -0
- package/internal/validators/billing.d.ts +42 -0
- package/internal/validators/billing.js +86 -0
- package/internal/validators/billing.js.map +1 -0
- package/internal/validators/billingWebhookRefinements.js +9 -0
- package/internal/validators/billingWebhookRefinements.js.map +1 -0
- package/internal/validators/containerReadRefinements.js +32 -0
- package/internal/validators/containerReadRefinements.js.map +1 -0
- package/internal/validators/containerReadSchemas.js +4 -0
- package/internal/validators/containerReadSchemas.js.map +1 -0
- package/internal/validators/containerSystemSlot.d.ts +12 -0
- package/internal/validators/containerSystemSlot.js +44 -0
- package/internal/validators/containerSystemSlot.js.map +1 -0
- package/internal/validators/documentAttributionRefinements.js +8 -0
- package/internal/validators/documentAttributionRefinements.js.map +1 -0
- package/internal/validators/documentSyncCheckpoint.js +17 -0
- package/internal/validators/documentSyncCheckpoint.js.map +1 -0
- package/internal/validators/documentSyncRefinements.js +69 -0
- package/internal/validators/documentSyncRefinements.js.map +1 -0
- package/internal/validators/documentSyncRequestMode.js +9 -0
- package/internal/validators/documentSyncRequestMode.js.map +1 -0
- package/internal/validators/isPlainObject.js +8 -0
- package/internal/validators/isPlainObject.js.map +1 -0
- package/internal/validators/jsonSchema.js +295 -0
- package/internal/validators/jsonSchema.js.map +1 -0
- package/internal/validators/jsonSchemaEncoding.js +88 -0
- package/internal/validators/jsonSchemaEncoding.js.map +1 -0
- package/internal/validators/operation/apiVersion.d.ts +9 -0
- package/internal/validators/operation/apiVersion.js +16 -0
- package/internal/validators/operation/apiVersion.js.map +1 -0
- package/internal/validators/operation/attachments.d.ts +1313 -0
- package/internal/validators/operation/attachments.js +83 -0
- package/internal/validators/operation/attachments.js.map +1 -0
- package/internal/validators/operation/auth.d.ts +8306 -0
- package/internal/validators/operation/auth.js +164 -0
- package/internal/validators/operation/auth.js.map +1 -0
- package/internal/validators/operation/billingWebhooks.d.ts +379 -0
- package/internal/validators/operation/billingWebhooks.js +66 -0
- package/internal/validators/operation/billingWebhooks.js.map +1 -0
- package/internal/validators/operation/blobBytes.d.ts +377 -0
- package/internal/validators/operation/blobBytes.js +122 -0
- package/internal/validators/operation/blobBytes.js.map +1 -0
- package/internal/validators/operation/containerMutations.d.ts +12465 -0
- package/internal/validators/operation/containerMutations.js +131 -0
- package/internal/validators/operation/containerMutations.js.map +1 -0
- package/internal/validators/operation/containerReads.d.ts +695 -0
- package/internal/validators/operation/containerReads.js +124 -0
- package/internal/validators/operation/containerReads.js.map +1 -0
- package/internal/validators/operation/containerReplacement.d.ts +172 -0
- package/internal/validators/operation/containerReplacement.js +29 -0
- package/internal/validators/operation/containerReplacement.js.map +1 -0
- package/internal/validators/operation/definition.d.ts +49 -0
- package/internal/validators/operation/definition.js +76 -0
- package/internal/validators/operation/definition.js.map +1 -0
- package/internal/validators/operation/documentAttribution.d.ts +482 -0
- package/internal/validators/operation/documentAttribution.js +140 -0
- package/internal/validators/operation/documentAttribution.js.map +1 -0
- package/internal/validators/operation/documentMutations.d.ts +3386 -0
- package/internal/validators/operation/documentMutations.js +92 -0
- package/internal/validators/operation/documentMutations.js.map +1 -0
- package/internal/validators/operation/documentSync.d.ts +1236 -0
- package/internal/validators/operation/documentSync.js +46 -0
- package/internal/validators/operation/documentSync.js.map +1 -0
- package/internal/validators/operation/headerNames.d.ts +3 -0
- package/internal/validators/operation/headerNames.js +32 -0
- package/internal/validators/operation/headerNames.js.map +1 -0
- package/internal/validators/operation/health.d.ts +66 -0
- package/internal/validators/operation/health.js +21 -0
- package/internal/validators/operation/health.js.map +1 -0
- package/internal/validators/operation/index.d.ts +25 -0
- package/internal/validators/operation/index.js +26 -0
- package/internal/validators/operation/index.js.map +1 -0
- package/internal/validators/operation/multipartBlobs.d.ts +567 -0
- package/internal/validators/operation/multipartBlobs.js +74 -0
- package/internal/validators/operation/multipartBlobs.js.map +1 -0
- package/internal/validators/operation/organizationBilling.d.ts +1175 -0
- package/internal/validators/operation/organizationBilling.js +105 -0
- package/internal/validators/operation/organizationBilling.js.map +1 -0
- package/internal/validators/operation/organizationPolicyHistory.d.ts +480 -0
- package/internal/validators/operation/organizationPolicyHistory.js +23 -0
- package/internal/validators/operation/organizationPolicyHistory.js.map +1 -0
- package/internal/validators/operation/organizations.d.ts +11315 -0
- package/internal/validators/operation/organizations.js +203 -0
- package/internal/validators/operation/organizations.js.map +1 -0
- package/internal/validators/operation/principalPolicyPageQuery.d.ts +6 -0
- package/internal/validators/operation/principalPolicyPageQuery.js +20 -0
- package/internal/validators/operation/principalPolicyPageQuery.js.map +1 -0
- package/internal/validators/operation/principals.d.ts +3672 -0
- package/internal/validators/operation/principals.js +96 -0
- package/internal/validators/operation/principals.js.map +1 -0
- package/internal/validators/operation/registry.d.ts +94 -0
- package/internal/validators/operation/registry.js +97 -0
- package/internal/validators/operation/registry.js.map +1 -0
- package/internal/validators/operation/root.d.ts +583 -0
- package/internal/validators/operation/root.js +79 -0
- package/internal/validators/operation/root.js.map +1 -0
- package/internal/validators/operation/rootOrganizations.d.ts +1165 -0
- package/internal/validators/operation/rootOrganizations.js +86 -0
- package/internal/validators/operation/rootOrganizations.js.map +1 -0
- package/internal/validators/operation/stripeCheckout.d.ts +901 -0
- package/internal/validators/operation/stripeCheckout.js +86 -0
- package/internal/validators/operation/stripeCheckout.js.map +1 -0
- package/internal/validators/operation/writerProjections.d.ts +2338 -0
- package/internal/validators/operation/writerProjections.js +59 -0
- package/internal/validators/operation/writerProjections.js.map +1 -0
- package/internal/validators/organizationBillingRefinements.js +5 -0
- package/internal/validators/organizationBillingRefinements.js.map +1 -0
- package/internal/validators/organizationDataUsageRefinements.js +18 -0
- package/internal/validators/organizationDataUsageRefinements.js.map +1 -0
- package/internal/validators/organizationProvisioningRefinements.js +25 -0
- package/internal/validators/organizationProvisioningRefinements.js.map +1 -0
- package/internal/validators/organizationReadModelRefinements.js +8 -0
- package/internal/validators/organizationReadModelRefinements.js.map +1 -0
- package/internal/validators/projectionHistoryRefinements.js +5 -0
- package/internal/validators/projectionHistoryRefinements.js.map +1 -0
- package/internal/validators/realtime/index.js +5 -0
- package/internal/validators/realtime/index.js.map +1 -0
- package/internal/validators/realtime/wsClientDeclarations.js +57 -0
- package/internal/validators/realtime/wsClientDeclarations.js.map +1 -0
- package/internal/validators/realtime/wsInvalidationHints.js +76 -0
- package/internal/validators/realtime/wsInvalidationHints.js.map +1 -0
- package/internal/validators/realtime/wsServerFrames.js +64 -0
- package/internal/validators/realtime/wsServerFrames.js.map +1 -0
- package/internal/validators/realtime/wsShared.js +18 -0
- package/internal/validators/realtime/wsShared.js.map +1 -0
- package/internal/validators/request/auth/challenge.d.ts +12 -0
- package/internal/validators/request/auth/challenge.js +8 -0
- package/internal/validators/request/auth/challenge.js.map +1 -0
- package/internal/validators/request/auth/index.d.ts +2 -0
- package/internal/validators/request/auth/index.js +3 -0
- package/internal/validators/request/auth/index.js.map +1 -0
- package/internal/validators/request/auth/verify.d.ts +16 -0
- package/internal/validators/request/auth/verify.js +10 -0
- package/internal/validators/request/auth/verify.js.map +1 -0
- package/internal/validators/request/blob.d.ts +645 -0
- package/internal/validators/request/blob.js +68 -0
- package/internal/validators/request/blob.js.map +1 -0
- package/internal/validators/request/container.d.ts +598 -0
- package/internal/validators/request/container.js +60 -0
- package/internal/validators/request/container.js.map +1 -0
- package/internal/validators/request/containerMetadata.d.ts +961 -0
- package/internal/validators/request/containerMetadata.js +15 -0
- package/internal/validators/request/containerMetadata.js.map +1 -0
- package/internal/validators/request/containerParentLanes.d.ts +22 -0
- package/internal/validators/request/containerParentLanes.js +52 -0
- package/internal/validators/request/containerParentLanes.js.map +1 -0
- package/internal/validators/request/contentKeyEnvelopeSchema.js +23 -0
- package/internal/validators/request/contentKeyEnvelopeSchema.js.map +1 -0
- package/internal/validators/request/document.d.ts +838 -0
- package/internal/validators/request/document.js +81 -0
- package/internal/validators/request/document.js.map +1 -0
- package/internal/validators/request/documentSyncSchema.d.ts +485 -0
- package/internal/validators/request/documentSyncSchema.js +208 -0
- package/internal/validators/request/documentSyncSchema.js.map +1 -0
- package/internal/validators/request/index.d.ts +14 -0
- package/internal/validators/request/index.js +14 -0
- package/internal/validators/request/index.js.map +1 -0
- package/internal/validators/request/organization.d.ts +1529 -0
- package/internal/validators/request/organization.js +41 -0
- package/internal/validators/request/organization.js.map +1 -0
- package/internal/validators/request/organizationProvisioning.d.ts +18090 -0
- package/internal/validators/request/organizationProvisioning.js +123 -0
- package/internal/validators/request/organizationProvisioning.js.map +1 -0
- package/internal/validators/request/principal.d.ts +1677 -0
- package/internal/validators/request/principal.js +86 -0
- package/internal/validators/request/principal.js.map +1 -0
- package/internal/validators/request/registration.d.ts +5684 -0
- package/internal/validators/request/registration.js +12 -0
- package/internal/validators/request/registration.js.map +1 -0
- package/internal/validators/request/revenuecatWebhook.d.ts +385 -0
- package/internal/validators/request/revenuecatWebhook.js +72 -0
- package/internal/validators/request/revenuecatWebhook.js.map +1 -0
- package/internal/validators/request/stripeCheckout.d.ts +13 -0
- package/internal/validators/request/stripeCheckout.js +12 -0
- package/internal/validators/request/stripeCheckout.js.map +1 -0
- package/internal/validators/request/stripeWebhook.d.ts +5 -0
- package/internal/validators/request/stripeWebhook.js +7 -0
- package/internal/validators/request/stripeWebhook.js.map +1 -0
- package/internal/validators/response/accessLevel.d.ts +4 -0
- package/internal/validators/response/accessLevel.js +6 -0
- package/internal/validators/response/accessLevel.js.map +1 -0
- package/internal/validators/response/auth/challenge.d.ts +24 -0
- package/internal/validators/response/auth/challenge.js +11 -0
- package/internal/validators/response/auth/challenge.js.map +1 -0
- package/internal/validators/response/auth/index.d.ts +6 -0
- package/internal/validators/response/auth/index.js +7 -0
- package/internal/validators/response/auth/index.js.map +1 -0
- package/internal/validators/response/auth/sessionFailure.d.ts +28 -0
- package/internal/validators/response/auth/sessionFailure.js +22 -0
- package/internal/validators/response/auth/sessionFailure.js.map +1 -0
- package/internal/validators/response/auth/sessions.d.ts +90 -0
- package/internal/validators/response/auth/sessions.js +27 -0
- package/internal/validators/response/auth/sessions.js.map +1 -0
- package/internal/validators/response/auth/userIdentity.d.ts +28 -0
- package/internal/validators/response/auth/userIdentity.js +13 -0
- package/internal/validators/response/auth/userIdentity.js.map +1 -0
- package/internal/validators/response/auth/verify.d.ts +71 -0
- package/internal/validators/response/auth/verify.js +26 -0
- package/internal/validators/response/auth/verify.js.map +1 -0
- package/internal/validators/response/auth/wsTicket.d.ts +12 -0
- package/internal/validators/response/auth/wsTicket.js +9 -0
- package/internal/validators/response/auth/wsTicket.js.map +1 -0
- package/internal/validators/response/billingWebhooks.d.ts +31 -0
- package/internal/validators/response/billingWebhooks.js +17 -0
- package/internal/validators/response/billingWebhooks.js.map +1 -0
- package/internal/validators/response/blob.d.ts +854 -0
- package/internal/validators/response/blob.js +121 -0
- package/internal/validators/response/blob.js.map +1 -0
- package/internal/validators/response/blobMutationError.d.ts +17 -0
- package/internal/validators/response/blobMutationError.js +17 -0
- package/internal/validators/response/blobMutationError.js.map +1 -0
- package/internal/validators/response/container.d.ts +2484 -0
- package/internal/validators/response/container.js +188 -0
- package/internal/validators/response/container.js.map +1 -0
- package/internal/validators/response/containerMetadata.d.ts +392 -0
- package/internal/validators/response/containerMetadata.js +12 -0
- package/internal/validators/response/containerMetadata.js.map +1 -0
- package/internal/validators/response/containerMutationError.d.ts +443 -0
- package/internal/validators/response/containerMutationError.js +53 -0
- package/internal/validators/response/containerMutationError.js.map +1 -0
- package/internal/validators/response/containerNotFoundError.d.ts +12 -0
- package/internal/validators/response/containerNotFoundError.js +12 -0
- package/internal/validators/response/containerNotFoundError.js.map +1 -0
- package/internal/validators/response/containerParentLanes.d.ts +80 -0
- package/internal/validators/response/containerParentLanes.js +30 -0
- package/internal/validators/response/containerParentLanes.js.map +1 -0
- package/internal/validators/response/containerUnavailableError.d.ts +11 -0
- package/internal/validators/response/containerUnavailableError.js +11 -0
- package/internal/validators/response/containerUnavailableError.js.map +1 -0
- package/internal/validators/response/descendantRekeysRequiredError.js +9 -0
- package/internal/validators/response/descendantRekeysRequiredError.js.map +1 -0
- package/internal/validators/response/document.d.ts +374 -0
- package/internal/validators/response/document.js +95 -0
- package/internal/validators/response/document.js.map +1 -0
- package/internal/validators/response/documentMutation.d.ts +2585 -0
- package/internal/validators/response/documentMutation.js +100 -0
- package/internal/validators/response/documentMutation.js.map +1 -0
- package/internal/validators/response/documentMutationError.d.ts +17 -0
- package/internal/validators/response/documentMutationError.js +28 -0
- package/internal/validators/response/documentMutationError.js.map +1 -0
- package/internal/validators/response/documentSyncError.d.ts +470 -0
- package/internal/validators/response/documentSyncError.js +91 -0
- package/internal/validators/response/documentSyncError.js.map +1 -0
- package/internal/validators/response/documentSyncSchema.d.ts +477 -0
- package/internal/validators/response/documentSyncSchema.js +107 -0
- package/internal/validators/response/documentSyncSchema.js.map +1 -0
- package/internal/validators/response/error.d.ts +12 -0
- package/internal/validators/response/error.js +9 -0
- package/internal/validators/response/error.js.map +1 -0
- package/internal/validators/response/health.d.ts +12 -0
- package/internal/validators/response/health.js +9 -0
- package/internal/validators/response/health.js.map +1 -0
- package/internal/validators/response/index.d.ts +39 -0
- package/internal/validators/response/index.js +40 -0
- package/internal/validators/response/index.js.map +1 -0
- package/internal/validators/response/multipartBlobStageError.d.ts +37 -0
- package/internal/validators/response/multipartBlobStageError.js +34 -0
- package/internal/validators/response/multipartBlobStageError.js.map +1 -0
- package/internal/validators/response/organization.d.ts +2210 -0
- package/internal/validators/response/organization.js +186 -0
- package/internal/validators/response/organization.js.map +1 -0
- package/internal/validators/response/organizationBilling.d.ts +136 -0
- package/internal/validators/response/organizationBilling.js +104 -0
- package/internal/validators/response/organizationBilling.js.map +1 -0
- package/internal/validators/response/organizationBillingHistory.d.ts +243 -0
- package/internal/validators/response/organizationBillingHistory.js +75 -0
- package/internal/validators/response/organizationBillingHistory.js.map +1 -0
- package/internal/validators/response/organizationBillingManagementUrl.d.ts +28 -0
- package/internal/validators/response/organizationBillingManagementUrl.js +24 -0
- package/internal/validators/response/organizationBillingManagementUrl.js.map +1 -0
- package/internal/validators/response/organizationDataUsage.d.ts +50 -0
- package/internal/validators/response/organizationDataUsage.js +80 -0
- package/internal/validators/response/organizationDataUsage.js.map +1 -0
- package/internal/validators/response/organizationNativePurchaseEligibility.d.ts +36 -0
- package/internal/validators/response/organizationNativePurchaseEligibility.js +31 -0
- package/internal/validators/response/organizationNativePurchaseEligibility.js.map +1 -0
- package/internal/validators/response/organizationPolicyHistory.d.ts +380 -0
- package/internal/validators/response/organizationPolicyHistory.js +10 -0
- package/internal/validators/response/organizationPolicyHistory.js.map +1 -0
- package/internal/validators/response/organizationPresentationError.d.ts +17 -0
- package/internal/validators/response/organizationPresentationError.js +18 -0
- package/internal/validators/response/organizationPresentationError.js.map +1 -0
- package/internal/validators/response/organizationProvisioning.d.ts +4799 -0
- package/internal/validators/response/organizationProvisioning.js +71 -0
- package/internal/validators/response/organizationProvisioning.js.map +1 -0
- package/internal/validators/response/organizationReadModel.d.ts +733 -0
- package/internal/validators/response/organizationReadModel.js +159 -0
- package/internal/validators/response/organizationReadModel.js.map +1 -0
- package/internal/validators/response/organizationReadModelError.d.ts +16 -0
- package/internal/validators/response/organizationReadModelError.js +15 -0
- package/internal/validators/response/organizationReadModelError.js.map +1 -0
- package/internal/validators/response/principal.d.ts +2573 -0
- package/internal/validators/response/principal.js +66 -0
- package/internal/validators/response/principal.js.map +1 -0
- package/internal/validators/response/principalHistoryPreparation.js +9 -0
- package/internal/validators/response/principalHistoryPreparation.js.map +1 -0
- package/internal/validators/response/principalPolicyPage.d.ts +429 -0
- package/internal/validators/response/principalPolicyPage.js +16 -0
- package/internal/validators/response/principalPolicyPage.js.map +1 -0
- package/internal/validators/response/principalReference.d.ts +40 -0
- package/internal/validators/response/principalReference.js +15 -0
- package/internal/validators/response/principalReference.js.map +1 -0
- package/internal/validators/response/principalSnapshot.d.ts +775 -0
- package/internal/validators/response/principalSnapshot.js +88 -0
- package/internal/validators/response/principalSnapshot.js.map +1 -0
- package/internal/validators/response/projectionPolicyEvidence.d.ts +700 -0
- package/internal/validators/response/projectionPolicyEvidence.js +9 -0
- package/internal/validators/response/projectionPolicyEvidence.js.map +1 -0
- package/internal/validators/response/registration.d.ts +1668 -0
- package/internal/validators/response/registration.js +12 -0
- package/internal/validators/response/registration.js.map +1 -0
- package/internal/validators/response/root.d.ts +419 -0
- package/internal/validators/response/root.js +68 -0
- package/internal/validators/response/root.js.map +1 -0
- package/internal/validators/response/rootOrganizations.d.ts +561 -0
- package/internal/validators/response/rootOrganizations.js +64 -0
- package/internal/validators/response/rootOrganizations.js.map +1 -0
- package/internal/validators/response/stripeCheckout.d.ts +143 -0
- package/internal/validators/response/stripeCheckout.js +57 -0
- package/internal/validators/response/stripeCheckout.js.map +1 -0
- package/internal/validators/response/syncWatermark.d.ts +16 -0
- package/internal/validators/response/syncWatermark.js +10 -0
- package/internal/validators/response/syncWatermark.js.map +1 -0
- package/internal/validators/schema.js +158 -0
- package/internal/validators/schema.js.map +1 -0
- package/internal/validators/stripeCheckoutRefinements.js +5 -0
- package/internal/validators/stripeCheckoutRefinements.js.map +1 -0
- package/internal/validators/util/accessManifestBundle.d.ts +84 -0
- package/internal/validators/util/accessManifestBundle.js +34 -0
- package/internal/validators/util/accessManifestBundle.js.map +1 -0
- package/internal/validators/util/blob.d.ts +2 -0
- package/internal/validators/util/blob.js +3 -0
- package/internal/validators/util/blob.js.map +1 -0
- package/internal/validators/util/containerKekKeyringWire.d.ts +105 -0
- package/internal/validators/util/containerKekKeyringWire.js +98 -0
- package/internal/validators/util/containerKekKeyringWire.js.map +1 -0
- package/internal/validators/util/containerLimits.d.ts +2 -0
- package/internal/validators/util/containerLimits.js +3 -0
- package/internal/validators/util/containerLimits.js.map +1 -0
- package/internal/validators/util/documentSyncLimits.d.ts +10 -0
- package/internal/validators/util/documentSyncLimits.js +27 -0
- package/internal/validators/util/documentSyncLimits.js.map +1 -0
- package/internal/validators/util/index.d.ts +14 -0
- package/internal/validators/util/index.js +15 -0
- package/internal/validators/util/index.js.map +1 -0
- package/internal/validators/util/keyEnvelope.d.ts +7 -0
- package/internal/validators/util/keyEnvelope.js +12 -0
- package/internal/validators/util/keyEnvelope.js.map +1 -0
- package/internal/validators/util/organizationReplacement.d.ts +18 -0
- package/internal/validators/util/organizationReplacement.js +21 -0
- package/internal/validators/util/organizationReplacement.js.map +1 -0
- package/internal/validators/util/principalHistoryWire.d.ts +2 -0
- package/internal/validators/util/principalHistoryWire.js +3 -0
- package/internal/validators/util/principalHistoryWire.js.map +1 -0
- package/internal/validators/util/projectionHistoryWire.d.ts +23 -0
- package/internal/validators/util/projectionHistoryWire.js +33 -0
- package/internal/validators/util/projectionHistoryWire.js.map +1 -0
- package/internal/validators/util/properties.d.ts +17 -0
- package/internal/validators/util/properties.js +58 -0
- package/internal/validators/util/properties.js.map +1 -0
- package/internal/validators/util/protocol.d.ts +9 -0
- package/internal/validators/util/protocol.js +26 -0
- package/internal/validators/util/protocol.js.map +1 -0
- package/internal/validators/util/signedAt.d.ts +14 -0
- package/internal/validators/util/signedAt.js +21 -0
- package/internal/validators/util/signedAt.js.map +1 -0
- package/internal/validators/util/uuid.d.ts +2 -0
- package/internal/validators/util/uuid.js +5 -0
- package/internal/validators/util/uuid.js.map +1 -0
- package/internal/validators/util/walLsn.d.ts +3 -0
- package/internal/validators/util/walLsn.js +22 -0
- package/internal/validators/util/walLsn.js.map +1 -0
- package/internal/validators/writerProjectionRefinements.js +10 -0
- package/internal/validators/writerProjectionRefinements.js.map +1 -0
- package/package.json +35 -4
- package/sqlite.d.ts +18 -0
- package/sqlite.js +11 -0
- package/sqlite.js.map +1 -0
- package/stores/container-contents/accessRestorationSweep.js +146 -0
- package/stores/container-contents/accessRestorationSweep.js.map +1 -0
- package/stores/container-contents/backgroundHydration.js +32 -0
- package/stores/container-contents/backgroundHydration.js.map +1 -0
- package/stores/container-contents/containerContentsStore.d.ts +18 -0
- package/stores/container-contents/containerContentsStore.js +190 -0
- package/stores/container-contents/containerContentsStore.js.map +1 -0
- package/stores/container-contents/containerPurgeCore.js +98 -0
- package/stores/container-contents/containerPurgeCore.js.map +1 -0
- package/stores/container-contents/containerStateMap.js +49 -0
- package/stores/container-contents/containerStateMap.js.map +1 -0
- package/stores/container-contents/containerStatePersistence.js +57 -0
- package/stores/container-contents/containerStatePersistence.js.map +1 -0
- package/stores/container-contents/documentRecovery.js +114 -0
- package/stores/container-contents/documentRecovery.js.map +1 -0
- package/stores/container-contents/documentRotation.js +13 -0
- package/stores/container-contents/documentRotation.js.map +1 -0
- package/stores/container-contents/documentWork.js +29 -0
- package/stores/container-contents/documentWork.js.map +1 -0
- package/stores/container-contents/emptyTrashOperation.js +20 -0
- package/stores/container-contents/emptyTrashOperation.js.map +1 -0
- package/stores/container-contents/existingSystemContainer.js +58 -0
- package/stores/container-contents/existingSystemContainer.js.map +1 -0
- package/stores/container-contents/groupRewrapOperation.js +52 -0
- package/stores/container-contents/groupRewrapOperation.js.map +1 -0
- package/stores/container-contents/index.d.ts +6 -0
- package/stores/container-contents/index.js +6 -0
- package/stores/container-contents/index.js.map +1 -0
- package/stores/container-contents/localRefresh.js +189 -0
- package/stores/container-contents/localRefresh.js.map +1 -0
- package/stores/container-contents/logLabel.js +4 -0
- package/stores/container-contents/logLabel.js.map +1 -0
- package/stores/container-contents/metadataSyncSignal.js +37 -0
- package/stores/container-contents/metadataSyncSignal.js.map +1 -0
- package/stores/container-contents/missingContainerState.js +10 -0
- package/stores/container-contents/missingContainerState.js.map +1 -0
- package/stores/container-contents/missingSyncedContainerState.js +10 -0
- package/stores/container-contents/missingSyncedContainerState.js.map +1 -0
- package/stores/container-contents/operations.js +301 -0
- package/stores/container-contents/operations.js.map +1 -0
- package/stores/container-contents/organizationMetadataSystemContainer.js +44 -0
- package/stores/container-contents/organizationMetadataSystemContainer.js.map +1 -0
- package/stores/container-contents/purgeContainerOperation.js +17 -0
- package/stores/container-contents/purgeContainerOperation.js.map +1 -0
- package/stores/container-contents/reconcilableContainer.d.ts +48 -0
- package/stores/container-contents/reconcilableContainer.js +78 -0
- package/stores/container-contents/reconcilableContainer.js.map +1 -0
- package/stores/container-contents/remoteBackedContainerState.js +9 -0
- package/stores/container-contents/remoteBackedContainerState.js.map +1 -0
- package/stores/container-contents/remoteContainerIngestion.js +59 -0
- package/stores/container-contents/remoteContainerIngestion.js.map +1 -0
- package/stores/container-contents/remoteEventProjectionInvalidation.js +36 -0
- package/stores/container-contents/remoteEventProjectionInvalidation.js.map +1 -0
- package/stores/container-contents/remoteEventSync.js +38 -0
- package/stores/container-contents/remoteEventSync.js.map +1 -0
- package/stores/container-contents/remoteHydrationRefresh.js +113 -0
- package/stores/container-contents/remoteHydrationRefresh.js.map +1 -0
- package/stores/container-contents/remoteHydrationRequest.js +245 -0
- package/stores/container-contents/remoteHydrationRequest.js.map +1 -0
- package/stores/container-contents/remoteWriteGuards.js +54 -0
- package/stores/container-contents/remoteWriteGuards.js.map +1 -0
- package/stores/container-contents/remoteWriteQueue.js +51 -0
- package/stores/container-contents/remoteWriteQueue.js.map +1 -0
- package/stores/container-contents/reportShareFailure.js +44 -0
- package/stores/container-contents/reportShareFailure.js.map +1 -0
- package/stores/container-contents/setContainerIconOperation.js +47 -0
- package/stores/container-contents/setContainerIconOperation.js.map +1 -0
- package/stores/container-contents/shareOperations.js +90 -0
- package/stores/container-contents/shareOperations.js.map +1 -0
- package/stores/container-contents/startupHydration.js +110 -0
- package/stores/container-contents/startupHydration.js.map +1 -0
- package/stores/container-contents/state.d.ts +14 -0
- package/stores/container-contents/state.js +224 -0
- package/stores/container-contents/state.js.map +1 -0
- package/stores/container-contents/syncAgent.d.ts +8 -0
- package/stores/container-contents/syncAgent.js +241 -0
- package/stores/container-contents/syncAgent.js.map +1 -0
- package/stores/container-contents/syncAgentTypes.d.ts +81 -0
- package/stores/container-contents/syncAgentTypes.js +2 -0
- package/stores/container-contents/syncAgentTypes.js.map +1 -0
- package/stores/container-contents/syncLaneIteration.js +237 -0
- package/stores/container-contents/syncLaneIteration.js.map +1 -0
- package/stores/container-contents/systemContainerHydration.js +30 -0
- package/stores/container-contents/systemContainerHydration.js.map +1 -0
- package/stores/container-contents/systemContainerIcon.js +42 -0
- package/stores/container-contents/systemContainerIcon.js.map +1 -0
- package/stores/container-contents/systemContainerLookup.js +65 -0
- package/stores/container-contents/systemContainerLookup.js.map +1 -0
- package/stores/container-contents/systemContainerPostCreate.js +109 -0
- package/stores/container-contents/systemContainerPostCreate.js.map +1 -0
- package/stores/container-contents/systemContainerPromotion.js +49 -0
- package/stores/container-contents/systemContainerPromotion.js.map +1 -0
- package/stores/container-contents/types.d.ts +88 -0
- package/stores/container-contents/types.js +2 -0
- package/stores/container-contents/types.js.map +1 -0
- package/stores/container-contents/utils.js +63 -0
- package/stores/container-contents/utils.js.map +1 -0
- package/stores/container-contents/writeGeneration.js +37 -0
- package/stores/container-contents/writeGeneration.js.map +1 -0
- package/stores/documents/documentStore/ancestorRepairPark.js +29 -0
- package/stores/documents/documentStore/ancestorRepairPark.js.map +1 -0
- package/stores/documents/documentStore/attachmentDetachState.js +54 -0
- package/stores/documents/documentStore/attachmentDetachState.js.map +1 -0
- package/stores/documents/documentStore/attachmentHydration.js +54 -0
- package/stores/documents/documentStore/attachmentHydration.js.map +1 -0
- package/stores/documents/documentStore/attachmentHydrationCommit.js +53 -0
- package/stores/documents/documentStore/attachmentHydrationCommit.js.map +1 -0
- package/stores/documents/documentStore/attachmentIntents.js +39 -0
- package/stores/documents/documentStore/attachmentIntents.js.map +1 -0
- package/stores/documents/documentStore/attachmentMutationPersistence.js +37 -0
- package/stores/documents/documentStore/attachmentMutationPersistence.js.map +1 -0
- package/stores/documents/documentStore/attachmentPersistFollowup.js +16 -0
- package/stores/documents/documentStore/attachmentPersistFollowup.js.map +1 -0
- package/stores/documents/documentStore/attachmentPersistence.js +106 -0
- package/stores/documents/documentStore/attachmentPersistence.js.map +1 -0
- package/stores/documents/documentStore/attachmentSnapshot.js +33 -0
- package/stores/documents/documentStore/attachmentSnapshot.js.map +1 -0
- package/stores/documents/documentStore/attachmentSourceUpload.js +39 -0
- package/stores/documents/documentStore/attachmentSourceUpload.js.map +1 -0
- package/stores/documents/documentStore/attachmentStaging.js +73 -0
- package/stores/documents/documentStore/attachmentStaging.js.map +1 -0
- package/stores/documents/documentStore/attachmentUploadAttempt.js +97 -0
- package/stores/documents/documentStore/attachmentUploadAttempt.js.map +1 -0
- package/stores/documents/documentStore/attachmentUploadLane.js +49 -0
- package/stores/documents/documentStore/attachmentUploadLane.js.map +1 -0
- package/stores/documents/documentStore/attachmentUploadResume.js +95 -0
- package/stores/documents/documentStore/attachmentUploadResume.js.map +1 -0
- package/stores/documents/documentStore/attachmentWriteGeneration.js +32 -0
- package/stores/documents/documentStore/attachmentWriteGeneration.js.map +1 -0
- package/stores/documents/documentStore/attachments.js +330 -0
- package/stores/documents/documentStore/attachments.js.map +1 -0
- package/stores/documents/documentStore/discard.js +88 -0
- package/stores/documents/documentStore/discard.js.map +1 -0
- package/stores/documents/documentStore/documentHistoryCompaction.js +67 -0
- package/stores/documents/documentStore/documentHistoryCompaction.js.map +1 -0
- package/stores/documents/documentStore/durableDocumentReload.js +79 -0
- package/stores/documents/documentStore/durableDocumentReload.js.map +1 -0
- package/stores/documents/documentStore/historyRebuild.js +75 -0
- package/stores/documents/documentStore/historyRebuild.js.map +1 -0
- package/stores/documents/documentStore/identityWriteChain.js +20 -0
- package/stores/documents/documentStore/identityWriteChain.js.map +1 -0
- package/stores/documents/documentStore/initialization.js +318 -0
- package/stores/documents/documentStore/initialization.js.map +1 -0
- package/stores/documents/documentStore/initializationAttachments.js +9 -0
- package/stores/documents/documentStore/initializationAttachments.js.map +1 -0
- package/stores/documents/documentStore/initializationHistory.js +33 -0
- package/stores/documents/documentStore/initializationHistory.js.map +1 -0
- package/stores/documents/documentStore/initializationRecovery.js +107 -0
- package/stores/documents/documentStore/initializationRecovery.js.map +1 -0
- package/stores/documents/documentStore/internalRelink.js +12 -0
- package/stores/documents/documentStore/internalRelink.js.map +1 -0
- package/stores/documents/documentStore/mutationIdentityRevalidation.js +8 -0
- package/stores/documents/documentStore/mutationIdentityRevalidation.js.map +1 -0
- package/stores/documents/documentStore/mutations.js +254 -0
- package/stores/documents/documentStore/mutations.js.map +1 -0
- package/stores/documents/documentStore/orphanMaintenance.js +8 -0
- package/stores/documents/documentStore/orphanMaintenance.js.map +1 -0
- package/stores/documents/documentStore/pendingUpdateRefusal.js +15 -0
- package/stores/documents/documentStore/pendingUpdateRefusal.js.map +1 -0
- package/stores/documents/documentStore/persistence.js +268 -0
- package/stores/documents/documentStore/persistence.js.map +1 -0
- package/stores/documents/documentStore/pullContinuationInvalidation.js +61 -0
- package/stores/documents/documentStore/pullContinuationInvalidation.js.map +1 -0
- package/stores/documents/documentStore/remoteRevalidationTelemetry.js +15 -0
- package/stores/documents/documentStore/remoteRevalidationTelemetry.js.map +1 -0
- package/stores/documents/documentStore/remoteWork.js +43 -0
- package/stores/documents/documentStore/remoteWork.js.map +1 -0
- package/stores/documents/documentStore/reportWriteFailure.js +49 -0
- package/stores/documents/documentStore/reportWriteFailure.js.map +1 -0
- package/stores/documents/documentStore/rotation.js +307 -0
- package/stores/documents/documentStore/rotation.js.map +1 -0
- package/stores/documents/documentStore/rotationProvenance.js +52 -0
- package/stores/documents/documentStore/rotationProvenance.js.map +1 -0
- package/stores/documents/documentStore/rotationSettlement.js +222 -0
- package/stores/documents/documentStore/rotationSettlement.js.map +1 -0
- package/stores/documents/documentStore/rows.js +133 -0
- package/stores/documents/documentStore/rows.js.map +1 -0
- package/stores/documents/documentStore/state.js +223 -0
- package/stores/documents/documentStore/state.js.map +1 -0
- package/stores/documents/documentStore/storedDocument.js +29 -0
- package/stores/documents/documentStore/storedDocument.js.map +1 -0
- package/stores/documents/documentStore/sync.js +292 -0
- package/stores/documents/documentStore/sync.js.map +1 -0
- package/stores/documents/documentStore/syncAcceptedUpdateIds.js +35 -0
- package/stores/documents/documentStore/syncAcceptedUpdateIds.js.map +1 -0
- package/stores/documents/documentStore/syncAttachmentSettlement.js +72 -0
- package/stores/documents/documentStore/syncAttachmentSettlement.js.map +1 -0
- package/stores/documents/documentStore/syncAttachments.js +323 -0
- package/stores/documents/documentStore/syncAttachments.js.map +1 -0
- package/stores/documents/documentStore/syncDetachedAttachments.js +125 -0
- package/stores/documents/documentStore/syncDetachedAttachments.js.map +1 -0
- package/stores/documents/documentStore/syncFinalize.js +200 -0
- package/stores/documents/documentStore/syncFinalize.js.map +1 -0
- package/stores/documents/documentStore/syncGeneration.js +193 -0
- package/stores/documents/documentStore/syncGeneration.js.map +1 -0
- package/stores/documents/documentStore/syncOutgoingCoverage.js +96 -0
- package/stores/documents/documentStore/syncOutgoingCoverage.js.map +1 -0
- package/stores/documents/documentStore/syncRemoteSignals.js +67 -0
- package/stores/documents/documentStore/syncRemoteSignals.js.map +1 -0
- package/stores/documents/documentStore/syncRequest.js +158 -0
- package/stores/documents/documentStore/syncRequest.js.map +1 -0
- package/stores/documents/documentStore/syncShared.js +211 -0
- package/stores/documents/documentStore/syncShared.js.map +1 -0
- package/stores/documents/documentStore/syncUpdateImport.js +62 -0
- package/stores/documents/documentStore/syncUpdateImport.js.map +1 -0
- package/stores/documents/documentStore/versionCoverage.js +45 -0
- package/stores/documents/documentStore/versionCoverage.js.map +1 -0
- package/stores/documents/documentStore/writerProjectionGeneration.js +20 -0
- package/stores/documents/documentStore/writerProjectionGeneration.js.map +1 -0
- package/stores/documents/documentStore.d.ts +8 -0
- package/stores/documents/documentStore.js +212 -0
- package/stores/documents/documentStore.js.map +1 -0
- package/stores/documents/index.d.ts +2 -0
- package/stores/documents/index.js +3 -0
- package/stores/documents/index.js.map +1 -0
- package/stores/documents/registry.d.ts +43 -0
- package/stores/documents/registry.js +206 -0
- package/stores/documents/registry.js.map +1 -0
- package/stores/documents/types.d.ts +85 -0
- package/stores/documents/types.js +2 -0
- package/stores/documents/types.js.map +1 -0
- package/stores/local-projection/index.d.ts +3 -0
- package/stores/local-projection/index.js +2 -0
- package/stores/local-projection/index.js.map +1 -0
- package/stores/local-projection/localProjectionStore.d.ts +31 -0
- package/stores/local-projection/localProjectionStore.js +299 -0
- package/stores/local-projection/localProjectionStore.js.map +1 -0
- package/stores/local-projection/registry.d.ts +15 -0
- package/stores/local-projection/registry.js +24 -0
- package/stores/local-projection/registry.js.map +1 -0
- package/stores/local-projection/summaryCache.js +93 -0
- package/stores/local-projection/summaryCache.js.map +1 -0
- package/stores/local-projection/types.d.ts +45 -0
- package/stores/local-projection/types.js +2 -0
- package/stores/local-projection/types.js.map +1 -0
- package/sync/reconciliation/documentContentPull.js +49 -0
- package/sync/reconciliation/documentContentPull.js.map +1 -0
- package/sync/reconciliation/idleBackfill.js +37 -0
- package/sync/reconciliation/idleBackfill.js.map +1 -0
- package/sync/reconciliation/index.d.ts +3 -0
- package/sync/reconciliation/index.js +3 -0
- package/sync/reconciliation/index.js.map +1 -0
- package/sync/reconciliation/initialDocumentProbe.d.ts +37 -0
- package/sync/reconciliation/initialDocumentProbe.js +269 -0
- package/sync/reconciliation/initialDocumentProbe.js.map +1 -0
- package/sync/reconciliation/knownContainerSweep.js +126 -0
- package/sync/reconciliation/knownContainerSweep.js.map +1 -0
- package/sync/reconciliation/laneFailure.js +36 -0
- package/sync/reconciliation/laneFailure.js.map +1 -0
- package/sync/reconciliation/originatedDocuments.js +49 -0
- package/sync/reconciliation/originatedDocuments.js.map +1 -0
- package/sync/reconciliation/queue.d.ts +18 -0
- package/sync/reconciliation/queue.js +32 -0
- package/sync/reconciliation/queue.js.map +1 -0
- package/sync/reconciliation/reconcileContainer.js +31 -0
- package/sync/reconciliation/reconcileContainer.js.map +1 -0
- package/sync/reconciliation/service.d.ts +2 -0
- package/sync/reconciliation/service.js +282 -0
- package/sync/reconciliation/service.js.map +1 -0
- package/sync/reconciliation/serviceTypes.d.ts +66 -0
- package/sync/reconciliation/serviceTypes.js +2 -0
- package/sync/reconciliation/serviceTypes.js.map +1 -0
- package/sync/reconciliation/triggers.d.ts +28 -0
- package/sync/reconciliation/triggers.js +93 -0
- package/sync/reconciliation/triggers.js.map +1 -0
- package/workflows/blobs/attachmentBindingVerification.js +49 -0
- package/workflows/blobs/attachmentBindingVerification.js.map +1 -0
- package/workflows/blobs/attachmentDecryptor.js +41 -0
- package/workflows/blobs/attachmentDecryptor.js.map +1 -0
- package/workflows/blobs/attachmentKeyAuthenticator.js +68 -0
- package/workflows/blobs/attachmentKeyAuthenticator.js.map +1 -0
- package/workflows/blobs/automaticMultipartUpload.js +9 -0
- package/workflows/blobs/automaticMultipartUpload.js.map +1 -0
- package/workflows/blobs/blobChunkDecryption.js +34 -0
- package/workflows/blobs/blobChunkDecryption.js.map +1 -0
- package/workflows/blobs/decrypt.d.ts +12 -0
- package/workflows/blobs/decrypt.js +244 -0
- package/workflows/blobs/decrypt.js.map +1 -0
- package/workflows/blobs/detach.js +57 -0
- package/workflows/blobs/detach.js.map +1 -0
- package/workflows/blobs/hydrate.d.ts +52 -0
- package/workflows/blobs/hydrate.js +174 -0
- package/workflows/blobs/hydrate.js.map +1 -0
- package/workflows/blobs/hydrationResults.js +23 -0
- package/workflows/blobs/hydrationResults.js.map +1 -0
- package/workflows/blobs/index.d.ts +11 -0
- package/workflows/blobs/index.js +9 -0
- package/workflows/blobs/index.js.map +1 -0
- package/workflows/blobs/multipartStageFailures.js +36 -0
- package/workflows/blobs/multipartStageFailures.js.map +1 -0
- package/workflows/blobs/multipartUpload.js +288 -0
- package/workflows/blobs/multipartUpload.js.map +1 -0
- package/workflows/blobs/retainedAttachmentVerification.js +38 -0
- package/workflows/blobs/retainedAttachmentVerification.js.map +1 -0
- package/workflows/blobs/upload.d.ts +10 -0
- package/workflows/blobs/upload.js +243 -0
- package/workflows/blobs/upload.js.map +1 -0
- package/workflows/blobs/verifiedWrapScope.js +20 -0
- package/workflows/blobs/verifiedWrapScope.js.map +1 -0
- package/workflows/blobs/writerProjection.js +29 -0
- package/workflows/blobs/writerProjection.js.map +1 -0
- package/workflows/container-contents/availableDocumentLinkIntent.js +32 -0
- package/workflows/container-contents/availableDocumentLinkIntent.js.map +1 -0
- package/workflows/container-contents/blobInfo.d.ts +6 -0
- package/workflows/container-contents/blobInfo.js +323 -0
- package/workflows/container-contents/blobInfo.js.map +1 -0
- package/workflows/container-contents/blobInfoRows.js +72 -0
- package/workflows/container-contents/blobInfoRows.js.map +1 -0
- package/workflows/container-contents/blobInfoTypes.d.ts +48 -0
- package/workflows/container-contents/blobInfoTypes.js +2 -0
- package/workflows/container-contents/blobInfoTypes.js.map +1 -0
- package/workflows/container-contents/container-state/createAdoption.js +191 -0
- package/workflows/container-contents/container-state/createAdoption.js.map +1 -0
- package/workflows/container-contents/container-state/createChild.js +217 -0
- package/workflows/container-contents/container-state/createChild.js.map +1 -0
- package/workflows/container-contents/container-state/createIntentDepth.js +36 -0
- package/workflows/container-contents/container-state/createIntentDepth.js.map +1 -0
- package/workflows/container-contents/container-state/createIntentSettlement.js +21 -0
- package/workflows/container-contents/container-state/createIntentSettlement.js.map +1 -0
- package/workflows/container-contents/container-state/createIntentSync.js +354 -0
- package/workflows/container-contents/container-state/createIntentSync.js.map +1 -0
- package/workflows/container-contents/container-state/createTerminalFailure.js +19 -0
- package/workflows/container-contents/container-state/createTerminalFailure.js.map +1 -0
- package/workflows/container-contents/container-state/createWithMetadata.js +332 -0
- package/workflows/container-contents/container-state/createWithMetadata.js.map +1 -0
- package/workflows/container-contents/container-state/delete.js +34 -0
- package/workflows/container-contents/container-state/delete.js.map +1 -0
- package/workflows/container-contents/container-state/groupGrantVerification.js +93 -0
- package/workflows/container-contents/container-state/groupGrantVerification.js.map +1 -0
- package/workflows/container-contents/container-state/localPathDepth.js +60 -0
- package/workflows/container-contents/container-state/localPathDepth.js.map +1 -0
- package/workflows/container-contents/container-state/moveIntentSync.js +345 -0
- package/workflows/container-contents/container-state/moveIntentSync.js.map +1 -0
- package/workflows/container-contents/container-state/projectionCache.js +71 -0
- package/workflows/container-contents/container-state/projectionCache.js.map +1 -0
- package/workflows/container-contents/container-state/purgeProgress.d.ts +9 -0
- package/workflows/container-contents/container-state/purgeProgress.js +2 -0
- package/workflows/container-contents/container-state/purgeProgress.js.map +1 -0
- package/workflows/container-contents/container-state/purgeTree.js +251 -0
- package/workflows/container-contents/container-state/purgeTree.js.map +1 -0
- package/workflows/container-contents/container-state/purgeTreeCollection.js +34 -0
- package/workflows/container-contents/container-state/purgeTreeCollection.js.map +1 -0
- package/workflows/container-contents/container-state/purgeTreeContainerDeletion.js +67 -0
- package/workflows/container-contents/container-state/purgeTreeContainerDeletion.js.map +1 -0
- package/workflows/container-contents/container-state/remote.js +156 -0
- package/workflows/container-contents/container-state/remote.js.map +1 -0
- package/workflows/container-contents/container-state/share.js +305 -0
- package/workflows/container-contents/container-state/share.js.map +1 -0
- package/workflows/container-contents/container-state/sharePersistence.js +136 -0
- package/workflows/container-contents/container-state/sharePersistence.js.map +1 -0
- package/workflows/container-contents/container-state/types.js +2 -0
- package/workflows/container-contents/container-state/types.js.map +1 -0
- package/workflows/container-contents/containerDocumentListing.js +52 -0
- package/workflows/container-contents/containerDocumentListing.js.map +1 -0
- package/workflows/container-contents/containerEvents.js +112 -0
- package/workflows/container-contents/containerEvents.js.map +1 -0
- package/workflows/container-contents/containerInfo.d.ts +77 -0
- package/workflows/container-contents/containerInfo.js +200 -0
- package/workflows/container-contents/containerInfo.js.map +1 -0
- package/workflows/container-contents/containerPersistence.d.ts +21 -0
- package/workflows/container-contents/containerPersistence.js +40 -0
- package/workflows/container-contents/containerPersistence.js.map +1 -0
- package/workflows/container-contents/deferredDocumentLinks.js +9 -0
- package/workflows/container-contents/deferredDocumentLinks.js.map +1 -0
- package/workflows/container-contents/documentAttributionRanges.d.ts +26 -0
- package/workflows/container-contents/documentAttributionRanges.js +15 -0
- package/workflows/container-contents/documentAttributionRanges.js.map +1 -0
- package/workflows/container-contents/documentCharacterBlame.js +33 -0
- package/workflows/container-contents/documentCharacterBlame.js.map +1 -0
- package/workflows/container-contents/documentDiscovery.d.ts +12 -0
- package/workflows/container-contents/documentDiscovery.js +255 -0
- package/workflows/container-contents/documentDiscovery.js.map +1 -0
- package/workflows/container-contents/documentDiscoveryCandidates.js +29 -0
- package/workflows/container-contents/documentDiscoveryCandidates.js.map +1 -0
- package/workflows/container-contents/documentDiscoveryEvidence.js +91 -0
- package/workflows/container-contents/documentDiscoveryEvidence.js.map +1 -0
- package/workflows/container-contents/documentDiscoveryInputs.js +85 -0
- package/workflows/container-contents/documentDiscoveryInputs.js.map +1 -0
- package/workflows/container-contents/documentDiscoveryTypes.d.ts +154 -0
- package/workflows/container-contents/documentDiscoveryTypes.js +2 -0
- package/workflows/container-contents/documentDiscoveryTypes.js.map +1 -0
- package/workflows/container-contents/documentFieldBlame.js +26 -0
- package/workflows/container-contents/documentFieldBlame.js.map +1 -0
- package/workflows/container-contents/documentHeadScope.js +9 -0
- package/workflows/container-contents/documentHeadScope.js.map +1 -0
- package/workflows/container-contents/documentHydrationProbe.js +146 -0
- package/workflows/container-contents/documentHydrationProbe.js.map +1 -0
- package/workflows/container-contents/documentInfo.d.ts +18 -0
- package/workflows/container-contents/documentInfo.js +306 -0
- package/workflows/container-contents/documentInfo.js.map +1 -0
- package/workflows/container-contents/documentInfoTypes.d.ts +92 -0
- package/workflows/container-contents/documentInfoTypes.js +2 -0
- package/workflows/container-contents/documentInfoTypes.js.map +1 -0
- package/workflows/container-contents/documentLinkIntent.js +82 -0
- package/workflows/container-contents/documentLinkIntent.js.map +1 -0
- package/workflows/container-contents/documentLinks.d.ts +59 -0
- package/workflows/container-contents/documentLinks.js +262 -0
- package/workflows/container-contents/documentLinks.js.map +1 -0
- package/workflows/container-contents/documentLocalRelink.js +23 -0
- package/workflows/container-contents/documentLocalRelink.js.map +1 -0
- package/workflows/container-contents/documentMoveDeniedReplay.js +20 -0
- package/workflows/container-contents/documentMoveDeniedReplay.js.map +1 -0
- package/workflows/container-contents/documentMoveFailure.js +35 -0
- package/workflows/container-contents/documentMoveFailure.js.map +1 -0
- package/workflows/container-contents/documentMoveIntent.js +77 -0
- package/workflows/container-contents/documentMoveIntent.js.map +1 -0
- package/workflows/container-contents/documentMoveIntentErrors.js +17 -0
- package/workflows/container-contents/documentMoveIntentErrors.js.map +1 -0
- package/workflows/container-contents/documentMoveIntentSettlement.js +25 -0
- package/workflows/container-contents/documentMoveIntentSettlement.js.map +1 -0
- package/workflows/container-contents/documentMoveIntentSync.js +346 -0
- package/workflows/container-contents/documentMoveIntentSync.js.map +1 -0
- package/workflows/container-contents/documentMoveUnlinkIds.js +21 -0
- package/workflows/container-contents/documentMoveUnlinkIds.js.map +1 -0
- package/workflows/container-contents/documentMoveVanishedRefresh.js +100 -0
- package/workflows/container-contents/documentMoveVanishedRefresh.js.map +1 -0
- package/workflows/container-contents/documentPriming.js +248 -0
- package/workflows/container-contents/documentPriming.js.map +1 -0
- package/workflows/container-contents/documentPurge.d.ts +31 -0
- package/workflows/container-contents/documentPurge.js +129 -0
- package/workflows/container-contents/documentPurge.js.map +1 -0
- package/workflows/container-contents/documentQueries/rows.js +113 -0
- package/workflows/container-contents/documentQueries/rows.js.map +1 -0
- package/workflows/container-contents/documentQueries/sql.js +337 -0
- package/workflows/container-contents/documentQueries/sql.js.map +1 -0
- package/workflows/container-contents/documentQueries/types.d.ts +99 -0
- package/workflows/container-contents/documentQueries/types.js +2 -0
- package/workflows/container-contents/documentQueries/types.js.map +1 -0
- package/workflows/container-contents/documentQueries.d.ts +57 -0
- package/workflows/container-contents/documentQueries.js +205 -0
- package/workflows/container-contents/documentQueries.js.map +1 -0
- package/workflows/container-contents/documentRuntimeTargetSync.js +55 -0
- package/workflows/container-contents/documentRuntimeTargetSync.js.map +1 -0
- package/workflows/container-contents/documentStructure.d.ts +53 -0
- package/workflows/container-contents/documentStructure.js +183 -0
- package/workflows/container-contents/documentStructure.js.map +1 -0
- package/workflows/container-contents/documentStructureTypes.d.ts +32 -0
- package/workflows/container-contents/documentStructureTypes.js +2 -0
- package/workflows/container-contents/documentStructureTypes.js.map +1 -0
- package/workflows/container-contents/documentSubtreeQueries.js +169 -0
- package/workflows/container-contents/documentSubtreeQueries.js.map +1 -0
- package/workflows/container-contents/documentTombstoneEvidence.js +162 -0
- package/workflows/container-contents/documentTombstoneEvidence.js.map +1 -0
- package/workflows/container-contents/documentTombstoneGate.js +94 -0
- package/workflows/container-contents/documentTombstoneGate.js.map +1 -0
- package/workflows/container-contents/folderRecovery.d.ts +19 -0
- package/workflows/container-contents/folderRecovery.js +32 -0
- package/workflows/container-contents/folderRecovery.js.map +1 -0
- package/workflows/container-contents/index.d.ts +20 -0
- package/workflows/container-contents/index.js +19 -0
- package/workflows/container-contents/index.js.map +1 -0
- package/workflows/container-contents/localState.js +17 -0
- package/workflows/container-contents/localState.js.map +1 -0
- package/workflows/container-contents/metadata.d.ts +25 -0
- package/workflows/container-contents/metadata.js +217 -0
- package/workflows/container-contents/metadata.js.map +1 -0
- package/workflows/container-contents/metadataEvents.d.ts +7 -0
- package/workflows/container-contents/metadataEvents.js +47 -0
- package/workflows/container-contents/metadataEvents.js.map +1 -0
- package/workflows/container-contents/metadataIncomingUpdateIsolation.js +40 -0
- package/workflows/container-contents/metadataIncomingUpdateIsolation.js.map +1 -0
- package/workflows/container-contents/metadataMutationPreparation.d.ts +75 -0
- package/workflows/container-contents/metadataMutationPreparation.js +177 -0
- package/workflows/container-contents/metadataMutationPreparation.js.map +1 -0
- package/workflows/container-contents/metadataPersistence.d.ts +34 -0
- package/workflows/container-contents/metadataPersistence.js +254 -0
- package/workflows/container-contents/metadataPersistence.js.map +1 -0
- package/workflows/container-contents/metadataPullContinuationInvalidation.js +65 -0
- package/workflows/container-contents/metadataPullContinuationInvalidation.js.map +1 -0
- package/workflows/container-contents/metadataReadState.d.ts +2 -0
- package/workflows/container-contents/metadataReadState.js +11 -0
- package/workflows/container-contents/metadataReadState.js.map +1 -0
- package/workflows/container-contents/metadataRecord.js +43 -0
- package/workflows/container-contents/metadataRecord.js.map +1 -0
- package/workflows/container-contents/metadataRemoteSync.d.ts +38 -0
- package/workflows/container-contents/metadataRemoteSync.js +91 -0
- package/workflows/container-contents/metadataRemoteSync.js.map +1 -0
- package/workflows/container-contents/metadataStateInstallation.d.ts +3 -0
- package/workflows/container-contents/metadataStateInstallation.js +5 -0
- package/workflows/container-contents/metadataStateInstallation.js.map +1 -0
- package/workflows/container-contents/metadataStateIsolation.js +80 -0
- package/workflows/container-contents/metadataStateIsolation.js.map +1 -0
- package/workflows/container-contents/metadataSyncErrors.js +41 -0
- package/workflows/container-contents/metadataSyncErrors.js.map +1 -0
- package/workflows/container-contents/metadataSyncFollowup.js +11 -0
- package/workflows/container-contents/metadataSyncFollowup.js.map +1 -0
- package/workflows/container-contents/metadataSyncRegistrations.d.ts +4 -0
- package/workflows/container-contents/metadataSyncRegistrations.js +35 -0
- package/workflows/container-contents/metadataSyncRegistrations.js.map +1 -0
- package/workflows/container-contents/metadataSyncSettlement.d.ts +13 -0
- package/workflows/container-contents/metadataSyncSettlement.js +27 -0
- package/workflows/container-contents/metadataSyncSettlement.js.map +1 -0
- package/workflows/container-contents/metadataTypes.d.ts +54 -0
- package/workflows/container-contents/metadataTypes.js +2 -0
- package/workflows/container-contents/metadataTypes.js.map +1 -0
- package/workflows/container-contents/orphanedDocumentSql.js +39 -0
- package/workflows/container-contents/orphanedDocumentSql.js.map +1 -0
- package/workflows/container-contents/pendingWrites/aggregation.js +138 -0
- package/workflows/container-contents/pendingWrites/aggregation.js.map +1 -0
- package/workflows/container-contents/pendingWrites/deferredTails.js +213 -0
- package/workflows/container-contents/pendingWrites/deferredTails.js.map +1 -0
- package/workflows/container-contents/pendingWrites/rowReaders.js +12 -0
- package/workflows/container-contents/pendingWrites/rowReaders.js.map +1 -0
- package/workflows/container-contents/pendingWrites/sources.js +437 -0
- package/workflows/container-contents/pendingWrites/sources.js.map +1 -0
- package/workflows/container-contents/pendingWrites.d.ts +26 -0
- package/workflows/container-contents/pendingWrites.js +113 -0
- package/workflows/container-contents/pendingWrites.js.map +1 -0
- package/workflows/container-contents/pendingWritesTypes.d.ts +36 -0
- package/workflows/container-contents/pendingWritesTypes.js +2 -0
- package/workflows/container-contents/pendingWritesTypes.js.map +1 -0
- package/workflows/container-contents/projectionGeneration.js +10 -0
- package/workflows/container-contents/projectionGeneration.js.map +1 -0
- package/workflows/container-contents/projectionKeys.d.ts +15 -0
- package/workflows/container-contents/projectionKeys.js +25 -0
- package/workflows/container-contents/projectionKeys.js.map +1 -0
- package/workflows/container-contents/projectionView.js +25 -0
- package/workflows/container-contents/projectionView.js.map +1 -0
- package/workflows/container-contents/remoteContainerPageHydration.js +244 -0
- package/workflows/container-contents/remoteContainerPageHydration.js.map +1 -0
- package/workflows/container-contents/remoteContainerState.js +260 -0
- package/workflows/container-contents/remoteContainerState.js.map +1 -0
- package/workflows/container-contents/remoteHydration/childIndex.js +36 -0
- package/workflows/container-contents/remoteHydration/childIndex.js.map +1 -0
- package/workflows/container-contents/remoteHydration/completeHydration.js +25 -0
- package/workflows/container-contents/remoteHydration/completeHydration.js.map +1 -0
- package/workflows/container-contents/remoteHydration/containerStateFingerprint.js +14 -0
- package/workflows/container-contents/remoteHydration/containerStateFingerprint.js.map +1 -0
- package/workflows/container-contents/remoteHydration/destinationPrefetch.js +26 -0
- package/workflows/container-contents/remoteHydration/destinationPrefetch.js.map +1 -0
- package/workflows/container-contents/remoteHydration/destinationRoleCache.js +39 -0
- package/workflows/container-contents/remoteHydration/destinationRoleCache.js.map +1 -0
- package/workflows/container-contents/remoteHydration/destinationRootReload.js +10 -0
- package/workflows/container-contents/remoteHydration/destinationRootReload.js.map +1 -0
- package/workflows/container-contents/remoteHydration/heldContainerRebind.js +36 -0
- package/workflows/container-contents/remoteHydration/heldContainerRebind.js.map +1 -0
- package/workflows/container-contents/remoteHydration/insertRemoteContainer.js +135 -0
- package/workflows/container-contents/remoteHydration/insertRemoteContainer.js.map +1 -0
- package/workflows/container-contents/remoteHydration/laneFetchMarkers.js +27 -0
- package/workflows/container-contents/remoteHydration/laneFetchMarkers.js.map +1 -0
- package/workflows/container-contents/remoteHydration/parentLaneFetch.js +61 -0
- package/workflows/container-contents/remoteHydration/parentLaneFetch.js.map +1 -0
- package/workflows/container-contents/remoteHydration/parentLaneQueue.js +30 -0
- package/workflows/container-contents/remoteHydration/parentLaneQueue.js.map +1 -0
- package/workflows/container-contents/remoteHydration/principalPolicyCache.js +26 -0
- package/workflows/container-contents/remoteHydration/principalPolicyCache.js.map +1 -0
- package/workflows/container-contents/remoteHydration/reattachMetadata.js +49 -0
- package/workflows/container-contents/remoteHydration/reattachMetadata.js.map +1 -0
- package/workflows/container-contents/remoteHydration/reconciliation.js +322 -0
- package/workflows/container-contents/remoteHydration/reconciliation.js.map +1 -0
- package/workflows/container-contents/remoteHydration/remoteContainerTimestamps.js +31 -0
- package/workflows/container-contents/remoteHydration/remoteContainerTimestamps.js.map +1 -0
- package/workflows/container-contents/remoteHydration/replacementBinding.js +75 -0
- package/workflows/container-contents/remoteHydration/replacementBinding.js.map +1 -0
- package/workflows/container-contents/remoteHydration/tombstoneApplication.js +149 -0
- package/workflows/container-contents/remoteHydration/tombstoneApplication.js.map +1 -0
- package/workflows/container-contents/remoteHydration/tombstoneReasons.js +108 -0
- package/workflows/container-contents/remoteHydration/tombstoneReasons.js.map +1 -0
- package/workflows/container-contents/remoteHydration/types.d.ts +90 -0
- package/workflows/container-contents/remoteHydration/types.js +2 -0
- package/workflows/container-contents/remoteHydration/types.js.map +1 -0
- package/workflows/container-contents/remoteHydration/verifiedDestination.js +294 -0
- package/workflows/container-contents/remoteHydration/verifiedDestination.js.map +1 -0
- package/workflows/container-contents/remoteHydration.d.ts +28 -0
- package/workflows/container-contents/remoteHydration.js +302 -0
- package/workflows/container-contents/remoteHydration.js.map +1 -0
- package/workflows/container-contents/remoteHydrationLog.js +20 -0
- package/workflows/container-contents/remoteHydrationLog.js.map +1 -0
- package/workflows/container-contents/runtime.d.ts +69 -0
- package/workflows/container-contents/runtime.js +45 -0
- package/workflows/container-contents/runtime.js.map +1 -0
- package/workflows/container-contents/staleRootRecovery.js +111 -0
- package/workflows/container-contents/staleRootRecovery.js.map +1 -0
- package/workflows/container-contents/storedContainerState.js +84 -0
- package/workflows/container-contents/storedContainerState.js.map +1 -0
- package/workflows/container-contents/syncLane.d.ts +12 -0
- package/workflows/container-contents/syncLane.js +20 -0
- package/workflows/container-contents/syncLane.js.map +1 -0
- package/workflows/container-contents/syncState.d.ts +16 -0
- package/workflows/container-contents/syncState.js +28 -0
- package/workflows/container-contents/syncState.js.map +1 -0
- package/workflows/container-contents/systemSlot.d.ts +11 -0
- package/workflows/container-contents/systemSlot.js +19 -0
- package/workflows/container-contents/systemSlot.js.map +1 -0
- package/workflows/containers/child/carriedDescendantRekeys.js +118 -0
- package/workflows/containers/child/carriedDescendantRekeys.js.map +1 -0
- package/workflows/containers/child/create.d.ts +24 -0
- package/workflows/containers/child/create.js +337 -0
- package/workflows/containers/child/create.js.map +1 -0
- package/workflows/containers/child/createProjection.d.ts +6 -0
- package/workflows/containers/child/createProjection.js +43 -0
- package/workflows/containers/child/createProjection.js.map +1 -0
- package/workflows/containers/child/createSubmission.d.ts +58 -0
- package/workflows/containers/child/createSubmission.js +45 -0
- package/workflows/containers/child/createSubmission.js.map +1 -0
- package/workflows/containers/child/keyringOverrideLineage.d.ts +22 -0
- package/workflows/containers/child/keyringOverrideLineage.js +39 -0
- package/workflows/containers/child/keyringOverrideLineage.js.map +1 -0
- package/workflows/containers/child/move.d.ts +23 -0
- package/workflows/containers/child/move.js +268 -0
- package/workflows/containers/child/move.js.map +1 -0
- package/workflows/containers/child/moveArtifacts.js +102 -0
- package/workflows/containers/child/moveArtifacts.js.map +1 -0
- package/workflows/containers/child/moveRotation.js +88 -0
- package/workflows/containers/child/moveRotation.js.map +1 -0
- package/workflows/containers/child/moveWraps.js +49 -0
- package/workflows/containers/child/moveWraps.js.map +1 -0
- package/workflows/containers/child/mutationRequestCore.js +39 -0
- package/workflows/containers/child/mutationRequestCore.js.map +1 -0
- package/workflows/containers/child/mutationSubmit.js +122 -0
- package/workflows/containers/child/mutationSubmit.js.map +1 -0
- package/workflows/containers/child/policyRepair.js +23 -0
- package/workflows/containers/child/policyRepair.js.map +1 -0
- package/workflows/containers/child/recite.js +175 -0
- package/workflows/containers/child/recite.js.map +1 -0
- package/workflows/containers/child/recitePlan.js +80 -0
- package/workflows/containers/child/recitePlan.js.map +1 -0
- package/workflows/containers/child/rekey.d.ts +32 -0
- package/workflows/containers/child/rekey.js +227 -0
- package/workflows/containers/child/rekey.js.map +1 -0
- package/workflows/containers/child/rekeyProjection.d.ts +41 -0
- package/workflows/containers/child/rekeyProjection.js +110 -0
- package/workflows/containers/child/rekeyProjection.js.map +1 -0
- package/workflows/containers/child/rekeyRemote.d.ts +24 -0
- package/workflows/containers/child/rekeyRemote.js +64 -0
- package/workflows/containers/child/rekeyRemote.js.map +1 -0
- package/workflows/containers/child/revoke.d.ts +44 -0
- package/workflows/containers/child/revoke.js +229 -0
- package/workflows/containers/child/revoke.js.map +1 -0
- package/workflows/containers/child/revokeManifest.d.ts +12 -0
- package/workflows/containers/child/revokeManifest.js +48 -0
- package/workflows/containers/child/revokeManifest.js.map +1 -0
- package/workflows/containers/child/rotationContext.js +64 -0
- package/workflows/containers/child/rotationContext.js.map +1 -0
- package/workflows/containers/child/rotationPrincipalPolicies.js +19 -0
- package/workflows/containers/child/rotationPrincipalPolicies.js.map +1 -0
- package/workflows/containers/child/rotationWraps.js +85 -0
- package/workflows/containers/child/rotationWraps.js.map +1 -0
- package/workflows/containers/child/share.d.ts +65 -0
- package/workflows/containers/child/share.js +265 -0
- package/workflows/containers/child/share.js.map +1 -0
- package/workflows/containers/child/shareAncestorRepair.js +95 -0
- package/workflows/containers/child/shareAncestorRepair.js.map +1 -0
- package/workflows/containers/child/shareMaterialization.d.ts +25 -0
- package/workflows/containers/child/shareMaterialization.js +164 -0
- package/workflows/containers/child/shareMaterialization.js.map +1 -0
- package/workflows/containers/child/sharePlanCore.d.ts +82 -0
- package/workflows/containers/child/sharePlanCore.js +191 -0
- package/workflows/containers/child/sharePlanCore.js.map +1 -0
- package/workflows/containers/child/sharePrincipalPolicy.d.ts +50 -0
- package/workflows/containers/child/sharePrincipalPolicy.js +194 -0
- package/workflows/containers/child/sharePrincipalPolicy.js.map +1 -0
- package/workflows/containers/index.d.ts +22 -0
- package/workflows/containers/index.js +27 -0
- package/workflows/containers/index.js.map +1 -0
- package/workflows/containers/mutationResponse.d.ts +13 -0
- package/workflows/containers/mutationResponse.js +29 -0
- package/workflows/containers/mutationResponse.js.map +1 -0
- package/workflows/containers/root/create.d.ts +16 -0
- package/workflows/containers/root/create.js +290 -0
- package/workflows/containers/root/create.js.map +1 -0
- package/workflows/containers/root/initialGroupPolicy.js +35 -0
- package/workflows/containers/root/initialGroupPolicy.js.map +1 -0
- package/workflows/containers/writeRefusal.d.ts +22 -0
- package/workflows/containers/writeRefusal.js +32 -0
- package/workflows/containers/writeRefusal.js.map +1 -0
- package/workflows/documents/attachmentPersistence.d.ts +58 -0
- package/workflows/documents/attachmentPersistence.js +31 -0
- package/workflows/documents/attachmentPersistence.js.map +1 -0
- package/workflows/documents/author.d.ts +15 -0
- package/workflows/documents/author.js +17 -0
- package/workflows/documents/author.js.map +1 -0
- package/workflows/documents/authorAccessFailure.js +14 -0
- package/workflows/documents/authorAccessFailure.js.map +1 -0
- package/workflows/documents/blobMutationLock.d.ts +8 -0
- package/workflows/documents/blobMutationLock.js +35 -0
- package/workflows/documents/blobMutationLock.js.map +1 -0
- package/workflows/documents/create.d.ts +69 -0
- package/workflows/documents/create.js +313 -0
- package/workflows/documents/create.js.map +1 -0
- package/workflows/documents/createAdoption.js +100 -0
- package/workflows/documents/createAdoption.js.map +1 -0
- package/workflows/documents/createProjectionFetch.d.ts +27 -0
- package/workflows/documents/createProjectionFetch.js +26 -0
- package/workflows/documents/createProjectionFetch.js.map +1 -0
- package/workflows/documents/documentCreationPersistence.js +16 -0
- package/workflows/documents/documentCreationPersistence.js.map +1 -0
- package/workflows/documents/documentMutationCommit.d.ts +32 -0
- package/workflows/documents/documentMutationCommit.js +296 -0
- package/workflows/documents/documentMutationCommit.js.map +1 -0
- package/workflows/documents/documentMutationPreparation.d.ts +31 -0
- package/workflows/documents/documentMutationPreparation.js +146 -0
- package/workflows/documents/documentMutationPreparation.js.map +1 -0
- package/workflows/documents/documentPersistGuards.js +15 -0
- package/workflows/documents/documentPersistGuards.js.map +1 -0
- package/workflows/documents/historyContent.d.ts +28 -0
- package/workflows/documents/historyContent.js +56 -0
- package/workflows/documents/historyContent.js.map +1 -0
- package/workflows/documents/index.d.ts +35 -0
- package/workflows/documents/index.js +31 -0
- package/workflows/documents/index.js.map +1 -0
- package/workflows/documents/initialSync.js +65 -0
- package/workflows/documents/initialSync.js.map +1 -0
- package/workflows/documents/linkSet.d.ts +18 -0
- package/workflows/documents/linkSet.js +288 -0
- package/workflows/documents/linkSet.js.map +1 -0
- package/workflows/documents/linkSetAuthority.js +61 -0
- package/workflows/documents/linkSetAuthority.js.map +1 -0
- package/workflows/documents/linkSetBlobRewraps.js +141 -0
- package/workflows/documents/linkSetBlobRewraps.js.map +1 -0
- package/workflows/documents/linkSetProjectionSeed.js +119 -0
- package/workflows/documents/linkSetProjectionSeed.js.map +1 -0
- package/workflows/documents/linkSetRemote.d.ts +20 -0
- package/workflows/documents/linkSetRemote.js +184 -0
- package/workflows/documents/linkSetRemote.js.map +1 -0
- package/workflows/documents/orphanBlobReclaims.d.ts +5 -0
- package/workflows/documents/orphanBlobReclaims.js +141 -0
- package/workflows/documents/orphanBlobReclaims.js.map +1 -0
- package/workflows/documents/pendingUpdatePersistence.d.ts +22 -0
- package/workflows/documents/pendingUpdatePersistence.js +22 -0
- package/workflows/documents/pendingUpdatePersistence.js.map +1 -0
- package/workflows/documents/persistedDocumentRemoval.d.ts +44 -0
- package/workflows/documents/persistedDocumentRemoval.js +70 -0
- package/workflows/documents/persistedDocumentRemoval.js.map +1 -0
- package/workflows/documents/persistence.d.ts +23 -0
- package/workflows/documents/persistence.js +54 -0
- package/workflows/documents/persistence.js.map +1 -0
- package/workflows/documents/projectionKeys.d.ts +14 -0
- package/workflows/documents/projectionKeys.js +22 -0
- package/workflows/documents/projectionKeys.js.map +1 -0
- package/workflows/documents/purge.d.ts +46 -0
- package/workflows/documents/purge.js +184 -0
- package/workflows/documents/purge.js.map +1 -0
- package/workflows/documents/readOnlyProjectionFailure.js +30 -0
- package/workflows/documents/readOnlyProjectionFailure.js.map +1 -0
- package/workflows/documents/readOnlySync.d.ts +71 -0
- package/workflows/documents/readOnlySync.js +269 -0
- package/workflows/documents/readOnlySync.js.map +1 -0
- package/workflows/documents/reportDocumentSyncQuarantine.js +19 -0
- package/workflows/documents/reportDocumentSyncQuarantine.js.map +1 -0
- package/workflows/documents/rotationBaseline.js +76 -0
- package/workflows/documents/rotationBaseline.js.map +1 -0
- package/workflows/documents/runtime.d.ts +38 -0
- package/workflows/documents/runtime.js +19 -0
- package/workflows/documents/runtime.js.map +1 -0
- package/workflows/documents/sync.d.ts +4 -0
- package/workflows/documents/sync.js +285 -0
- package/workflows/documents/sync.js.map +1 -0
- package/workflows/documents/syncAbandon.js +51 -0
- package/workflows/documents/syncAbandon.js.map +1 -0
- package/workflows/documents/syncAttemptPlanning.js +79 -0
- package/workflows/documents/syncAttemptPlanning.js.map +1 -0
- package/workflows/documents/syncAttemptState.d.ts +27 -0
- package/workflows/documents/syncAttemptState.js +2 -0
- package/workflows/documents/syncAttemptState.js.map +1 -0
- package/workflows/documents/syncAutomaticContainerRekeys.js +119 -0
- package/workflows/documents/syncAutomaticContainerRekeys.js.map +1 -0
- package/workflows/documents/syncContainerRekeyPreparation.js +227 -0
- package/workflows/documents/syncContainerRekeyPreparation.js.map +1 -0
- package/workflows/documents/syncContainerRekeyProjection.js +79 -0
- package/workflows/documents/syncContainerRekeyProjection.js.map +1 -0
- package/workflows/documents/syncContainerRekeys.js +72 -0
- package/workflows/documents/syncContainerRekeys.js.map +1 -0
- package/workflows/documents/syncContentKeys.d.ts +39 -0
- package/workflows/documents/syncContentKeys.js +259 -0
- package/workflows/documents/syncContentKeys.js.map +1 -0
- package/workflows/documents/syncFailureClassification.d.ts +74 -0
- package/workflows/documents/syncFailureClassification.js +120 -0
- package/workflows/documents/syncFailureClassification.js.map +1 -0
- package/workflows/documents/syncFailureClearance.d.ts +17 -0
- package/workflows/documents/syncFailureClearance.js +12 -0
- package/workflows/documents/syncFailureClearance.js.map +1 -0
- package/workflows/documents/syncFailures.js +252 -0
- package/workflows/documents/syncFailures.js.map +1 -0
- package/workflows/documents/syncLane.d.ts +19 -0
- package/workflows/documents/syncLane.js +93 -0
- package/workflows/documents/syncLane.js.map +1 -0
- package/workflows/documents/syncPlanIdentity.js +203 -0
- package/workflows/documents/syncPlanIdentity.js.map +1 -0
- package/workflows/documents/syncPlanMaterial.js +306 -0
- package/workflows/documents/syncPlanMaterial.js.map +1 -0
- package/workflows/documents/syncPlanProjection.js +24 -0
- package/workflows/documents/syncPlanProjection.js.map +1 -0
- package/workflows/documents/syncPlanRequestBounds.js +54 -0
- package/workflows/documents/syncPlanRequestBounds.js.map +1 -0
- package/workflows/documents/syncPolicyRepair.js +48 -0
- package/workflows/documents/syncPolicyRepair.js.map +1 -0
- package/workflows/documents/syncRecoveryRekey.d.ts +70 -0
- package/workflows/documents/syncRecoveryRekey.js +120 -0
- package/workflows/documents/syncRecoveryRekey.js.map +1 -0
- package/workflows/documents/syncRekeyCommit.js +18 -0
- package/workflows/documents/syncRekeyCommit.js.map +1 -0
- package/workflows/documents/syncRepairAbandon.js +27 -0
- package/workflows/documents/syncRepairAbandon.js.map +1 -0
- package/workflows/documents/syncRepairAccess.js +42 -0
- package/workflows/documents/syncRepairAccess.js.map +1 -0
- package/workflows/documents/syncResponseResult.js +134 -0
- package/workflows/documents/syncResponseResult.js.map +1 -0
- package/workflows/documents/syncSubmittedResult.js +119 -0
- package/workflows/documents/syncSubmittedResult.js.map +1 -0
- package/workflows/documents/syncTrace.d.ts +75 -0
- package/workflows/documents/syncTrace.js +148 -0
- package/workflows/documents/syncTrace.js.map +1 -0
- package/workflows/documents/writerKeys.d.ts +14 -0
- package/workflows/documents/writerKeys.js +55 -0
- package/workflows/documents/writerKeys.js.map +1 -0
- package/workflows/organizations/billing.d.ts +111 -0
- package/workflows/organizations/billing.js +92 -0
- package/workflows/organizations/billing.js.map +1 -0
- package/workflows/organizations/containerGrantRevocation.d.ts +31 -0
- package/workflows/organizations/containerGrantRevocation.js +37 -0
- package/workflows/organizations/containerGrantRevocation.js.map +1 -0
- package/workflows/organizations/createOrganization.d.ts +59 -0
- package/workflows/organizations/createOrganization.js +127 -0
- package/workflows/organizations/createOrganization.js.map +1 -0
- package/workflows/organizations/dataUsageReadModel.d.ts +19 -0
- package/workflows/organizations/dataUsageReadModel.js +64 -0
- package/workflows/organizations/dataUsageReadModel.js.map +1 -0
- package/workflows/organizations/deleteOrganizationGroup.d.ts +18 -0
- package/workflows/organizations/deleteOrganizationGroup.js +64 -0
- package/workflows/organizations/deleteOrganizationGroup.js.map +1 -0
- package/workflows/organizations/groupCreation.d.ts +20 -0
- package/workflows/organizations/groupCreation.js +59 -0
- package/workflows/organizations/groupCreation.js.map +1 -0
- package/workflows/organizations/groupMembershipName.d.ts +8 -0
- package/workflows/organizations/groupMembershipName.js +18 -0
- package/workflows/organizations/groupMembershipName.js.map +1 -0
- package/workflows/organizations/groupMetadataAccess.d.ts +33 -0
- package/workflows/organizations/groupMetadataAccess.js +114 -0
- package/workflows/organizations/groupMetadataAccess.js.map +1 -0
- package/workflows/organizations/groupMetadataBinding.js +19 -0
- package/workflows/organizations/groupMetadataBinding.js.map +1 -0
- package/workflows/organizations/groupMetadataContainerAuthority.js +86 -0
- package/workflows/organizations/groupMetadataContainerAuthority.js.map +1 -0
- package/workflows/organizations/groupMetadataErrors.js +40 -0
- package/workflows/organizations/groupMetadataErrors.js.map +1 -0
- package/workflows/organizations/groupMetadataRuntime.js +28 -0
- package/workflows/organizations/groupMetadataRuntime.js.map +1 -0
- package/workflows/organizations/groupMutationAuthorization.js +10 -0
- package/workflows/organizations/groupMutationAuthorization.js.map +1 -0
- package/workflows/organizations/groupNameUniqueness.js +151 -0
- package/workflows/organizations/groupNameUniqueness.js.map +1 -0
- package/workflows/organizations/groupPolicyMutationAcknowledgement.js +239 -0
- package/workflows/organizations/groupPolicyMutationAcknowledgement.js.map +1 -0
- package/workflows/organizations/groupPolicyMutationContext.d.ts +95 -0
- package/workflows/organizations/groupPolicyMutationContext.js +228 -0
- package/workflows/organizations/groupPolicyMutationContext.js.map +1 -0
- package/workflows/organizations/groupPolicyMutationHead.js +26 -0
- package/workflows/organizations/groupPolicyMutationHead.js.map +1 -0
- package/workflows/organizations/groupPolicyRequests.js +175 -0
- package/workflows/organizations/groupPolicyRequests.js.map +1 -0
- package/workflows/organizations/groupPolicyVerification.js +74 -0
- package/workflows/organizations/groupPolicyVerification.js.map +1 -0
- package/workflows/organizations/index.d.ts +15 -0
- package/workflows/organizations/index.js +16 -0
- package/workflows/organizations/index.js.map +1 -0
- package/workflows/organizations/listLocalOrganizations.d.ts +20 -0
- package/workflows/organizations/listLocalOrganizations.js +137 -0
- package/workflows/organizations/listLocalOrganizations.js.map +1 -0
- package/workflows/organizations/loadPolicyHistoryDetails.js +79 -0
- package/workflows/organizations/loadPolicyHistoryDetails.js.map +1 -0
- package/workflows/organizations/localReadModelDetails.d.ts +25 -0
- package/workflows/organizations/localReadModelDetails.js +182 -0
- package/workflows/organizations/localReadModelDetails.js.map +1 -0
- package/workflows/organizations/organizationGroupDirectory.js +147 -0
- package/workflows/organizations/organizationGroupDirectory.js.map +1 -0
- package/workflows/organizations/organizationGroupNamePolicies.js +34 -0
- package/workflows/organizations/organizationGroupNamePolicies.js.map +1 -0
- package/workflows/organizations/organizationGroupNames.js +53 -0
- package/workflows/organizations/organizationGroupNames.js.map +1 -0
- package/workflows/organizations/organizationPolicyHistoryDetails.js +88 -0
- package/workflows/organizations/organizationPolicyHistoryDetails.js.map +1 -0
- package/workflows/organizations/organizationPolicyHistoryVerification.js +80 -0
- package/workflows/organizations/organizationPolicyHistoryVerification.js.map +1 -0
- package/workflows/organizations/organizationPresentationAccessState.js +173 -0
- package/workflows/organizations/organizationPresentationAccessState.js.map +1 -0
- package/workflows/organizations/organizationPresentationFailures.js +7 -0
- package/workflows/organizations/organizationPresentationFailures.js.map +1 -0
- package/workflows/organizations/organizationProfile.d.ts +16 -0
- package/workflows/organizations/organizationProfile.js +36 -0
- package/workflows/organizations/organizationProfile.js.map +1 -0
- package/workflows/organizations/organizationProvisioningAttempt.d.ts +36 -0
- package/workflows/organizations/organizationProvisioningAttempt.js +205 -0
- package/workflows/organizations/organizationProvisioningAttempt.js.map +1 -0
- package/workflows/organizations/organizationReplacementVerification.js +26 -0
- package/workflows/organizations/organizationReplacementVerification.js.map +1 -0
- package/workflows/organizations/organizationUserImport.d.ts +8 -0
- package/workflows/organizations/organizationUserImport.js +10 -0
- package/workflows/organizations/organizationUserImport.js.map +1 -0
- package/workflows/organizations/policyHistoryAccessDenial.js +19 -0
- package/workflows/organizations/policyHistoryAccessDenial.js.map +1 -0
- package/workflows/organizations/policyHistoryCache.js +39 -0
- package/workflows/organizations/policyHistoryCache.js.map +1 -0
- package/workflows/organizations/policyHistoryReadModel.d.ts +9 -0
- package/workflows/organizations/policyHistoryReadModel.js +98 -0
- package/workflows/organizations/policyHistoryReadModel.js.map +1 -0
- package/workflows/organizations/policyHistoryTypes.d.ts +54 -0
- package/workflows/organizations/policyHistoryTypes.js +2 -0
- package/workflows/organizations/policyHistoryTypes.js.map +1 -0
- package/workflows/organizations/principalContainerRematerialization.js +279 -0
- package/workflows/organizations/principalContainerRematerialization.js.map +1 -0
- package/workflows/organizations/principalContainerRematerializationPlanning.js +71 -0
- package/workflows/organizations/principalContainerRematerializationPlanning.js.map +1 -0
- package/workflows/organizations/principalContainerRematerializationTargets.js +90 -0
- package/workflows/organizations/principalContainerRematerializationTargets.js.map +1 -0
- package/workflows/organizations/principalPolicy.d.ts +98 -0
- package/workflows/organizations/principalPolicy.js +256 -0
- package/workflows/organizations/principalPolicy.js.map +1 -0
- package/workflows/organizations/principalPolicyRecipients.js +43 -0
- package/workflows/organizations/principalPolicyRecipients.js.map +1 -0
- package/workflows/organizations/principalPolicyRequest.d.ts +67 -0
- package/workflows/organizations/principalPolicyRequest.js +176 -0
- package/workflows/organizations/principalPolicyRequest.js.map +1 -0
- package/workflows/organizations/readModel.d.ts +65 -0
- package/workflows/organizations/readModel.js +10 -0
- package/workflows/organizations/readModel.js.map +1 -0
- package/workflows/organizations/readModelProjection.d.ts +39 -0
- package/workflows/organizations/readModelProjection.js +255 -0
- package/workflows/organizations/readModelProjection.js.map +1 -0
- package/workflows/organizations/rosterProfileContainer.d.ts +23 -0
- package/workflows/organizations/rosterProfileContainer.js +41 -0
- package/workflows/organizations/rosterProfileContainer.js.map +1 -0
- package/workflows/organizations/trustedOrganizationUsers.js +16 -0
- package/workflows/organizations/trustedOrganizationUsers.js.map +1 -0
- package/workflows/principals/externalAdminPolicy.d.ts +29 -0
- package/workflows/principals/externalAdminPolicy.js +176 -0
- package/workflows/principals/externalAdminPolicy.js.map +1 -0
- package/workflows/principals/index.d.ts +4 -0
- package/workflows/principals/index.js +5 -0
- package/workflows/principals/index.js.map +1 -0
- package/workflows/principals/policyCache.d.ts +19 -0
- package/workflows/principals/policyCache.js +242 -0
- package/workflows/principals/policyCache.js.map +1 -0
- package/workflows/principals/policyRepairBudget.d.ts +7 -0
- package/workflows/principals/policyRepairBudget.js +17 -0
- package/workflows/principals/policyRepairBudget.js.map +1 -0
- package/workflows/principals/policyVerification.js +51 -0
- package/workflows/principals/policyVerification.js.map +1 -0
- package/workflows/principals/principalHistoryRecoveryPrefix.js +65 -0
- package/workflows/principals/principalHistoryRecoveryPrefix.js.map +1 -0
- package/workflows/principals/principalHistoryRecoveryReferences.js +60 -0
- package/workflows/principals/principalHistoryRecoveryReferences.js.map +1 -0
- package/workflows/principals/principalHistoryRecoveryStage.js +61 -0
- package/workflows/principals/principalHistoryRecoveryStage.js.map +1 -0
- package/workflows/principals/principalHistoryRecoveryTypes.d.ts +34 -0
- package/workflows/principals/principalHistoryRecoveryTypes.js +16 -0
- package/workflows/principals/principalHistoryRecoveryTypes.js.map +1 -0
- package/workflows/principals/principalHistoryRecoveryVerification.js +24 -0
- package/workflows/principals/principalHistoryRecoveryVerification.js.map +1 -0
- package/workflows/principals/principalPolicyCacheAdvance.js +39 -0
- package/workflows/principals/principalPolicyCacheAdvance.js.map +1 -0
- package/workflows/principals/principalPolicyCacheScope.js +34 -0
- package/workflows/principals/principalPolicyCacheScope.js.map +1 -0
- package/workflows/principals/principalPolicyCacheValidation.js +149 -0
- package/workflows/principals/principalPolicyCacheValidation.js.map +1 -0
- package/workflows/principals/principalPolicyOrganizationScope.js +67 -0
- package/workflows/principals/principalPolicyOrganizationScope.js.map +1 -0
- package/workflows/principals/principalRecoveryDirectory.d.ts +10 -0
- package/workflows/principals/principalRecoveryDirectory.js +107 -0
- package/workflows/principals/principalRecoveryDirectory.js.map +1 -0
- package/workflows/principals/principalRecoveryMemo.js +46 -0
- package/workflows/principals/principalRecoveryMemo.js.map +1 -0
- package/workflows/principals/principalRecoveryOutage.js +40 -0
- package/workflows/principals/principalRecoveryOutage.js.map +1 -0
- package/workflows/principals/principalRecoveryQueue.js +22 -0
- package/workflows/principals/principalRecoveryQueue.js.map +1 -0
- package/workflows/principals/recoverPrincipalPolicyHistory.d.ts +7 -0
- package/workflows/principals/recoverPrincipalPolicyHistory.js +245 -0
- package/workflows/principals/recoverPrincipalPolicyHistory.js.map +1 -0
- package/workflows/principals/recoverScopedPrincipalPolicyHistory.d.ts +13 -0
- package/workflows/principals/recoverScopedPrincipalPolicyHistory.js +150 -0
- package/workflows/principals/recoverScopedPrincipalPolicyHistory.js.map +1 -0
- package/workflows/principals/runtimePolicyRecovery.js +65 -0
- package/workflows/principals/runtimePolicyRecovery.js.map +1 -0
- package/workflows/principals/runtimePolicyWarmer.js +33 -0
- package/workflows/principals/runtimePolicyWarmer.js.map +1 -0
- package/workflows/registration/bootstrapRootContainer.d.ts +7 -0
- package/workflows/registration/bootstrapRootContainer.js +33 -0
- package/workflows/registration/bootstrapRootContainer.js.map +1 -0
- package/workflows/registration/index.d.ts +5 -0
- package/workflows/registration/index.js +6 -0
- package/workflows/registration/index.js.map +1 -0
- package/workflows/registration/organizationProvisioningArtifacts.d.ts +60 -0
- package/workflows/registration/organizationProvisioningArtifacts.js +2 -0
- package/workflows/registration/organizationProvisioningArtifacts.js.map +1 -0
- package/workflows/registration/organizationProvisioningPersistence.d.ts +18 -0
- package/workflows/registration/organizationProvisioningPersistence.js +164 -0
- package/workflows/registration/organizationProvisioningPersistence.js.map +1 -0
- package/workflows/registration/persistRegistrationBootstrap.d.ts +93 -0
- package/workflows/registration/persistRegistrationBootstrap.js +204 -0
- package/workflows/registration/persistRegistrationBootstrap.js.map +1 -0
- package/workflows/registration/profileBootstrapPersistence.js +47 -0
- package/workflows/registration/profileBootstrapPersistence.js.map +1 -0
- package/workflows/registration/provisionedProfileDocument.js +34 -0
- package/workflows/registration/provisionedProfileDocument.js.map +1 -0
- package/workflows/registration/provisioningAcknowledgement.js +85 -0
- package/workflows/registration/provisioningAcknowledgement.js.map +1 -0
- package/workflows/registration/provisioningBootstrapBuilders.d.ts +450 -0
- package/workflows/registration/provisioningBootstrapBuilders.js +275 -0
- package/workflows/registration/provisioningBootstrapBuilders.js.map +1 -0
- package/workflows/registration/registerIdentity.d.ts +83 -0
- package/workflows/registration/registerIdentity.js +272 -0
- package/workflows/registration/registerIdentity.js.map +1 -0
- package/workflows/registration/registrationBootstrapPendingUpdates.js +16 -0
- package/workflows/registration/registrationBootstrapPendingUpdates.js.map +1 -0
- package/workflows/registration/registrationPrincipalPolicyPersistence.d.ts +13 -0
- package/workflows/registration/registrationPrincipalPolicyPersistence.js +74 -0
- package/workflows/registration/registrationPrincipalPolicyPersistence.js.map +1 -0
- package/workflows/registration/rootMetadataBootstrap.d.ts +5 -0
- package/workflows/registration/rootMetadataBootstrap.js +13 -0
- package/workflows/registration/rootMetadataBootstrap.js.map +1 -0
- package/workflows/root/dataUsage.d.ts +11 -0
- package/workflows/root/dataUsage.js +8 -0
- package/workflows/root/dataUsage.js.map +1 -0
- package/workflows/root/identities.d.ts +38 -0
- package/workflows/root/identities.js +19 -0
- package/workflows/root/identities.js.map +1 -0
- package/workflows/root/index.d.ts +3 -0
- package/workflows/root/index.js +4 -0
- package/workflows/root/index.js.map +1 -0
- package/workflows/root/organizations.d.ts +19 -0
- package/workflows/root/organizations.js +11 -0
- package/workflows/root/organizations.js.map +1 -0
- package/workflows/runtimeInput.d.ts +61 -0
- package/workflows/runtimeInput.js +2 -0
- package/workflows/runtimeInput.js.map +1 -0
- package/workflows/sync/index.d.ts +4 -0
- package/workflows/sync/index.js +4 -0
- package/workflows/sync/index.js.map +1 -0
- package/workflows/sync/remoteReset.d.ts +16 -0
- package/workflows/sync/remoteReset.js +293 -0
- package/workflows/sync/remoteReset.js.map +1 -0
- package/workflows/sync/remoteResetAttachments.js +26 -0
- package/workflows/sync/remoteResetAttachments.js.map +1 -0
- package/workflows/sync/remoteResetBatches.js +13 -0
- package/workflows/sync/remoteResetBatches.js.map +1 -0
- package/workflows/sync/remoteResetCursorScope.js +44 -0
- package/workflows/sync/remoteResetCursorScope.js.map +1 -0
- package/workflows/sync/remoteResetPlans.d.ts +26 -0
- package/workflows/sync/remoteResetPlans.js +227 -0
- package/workflows/sync/remoteResetPlans.js.map +1 -0
- package/workflows/sync/remoteResetPrincipalScope.d.ts +22 -0
- package/workflows/sync/remoteResetPrincipalScope.js +98 -0
- package/workflows/sync/remoteResetPrincipalScope.js.map +1 -0
- package/workflows/sync/remoteResetScope.d.ts +33 -0
- package/workflows/sync/remoteResetScope.js +121 -0
- package/workflows/sync/remoteResetScope.js.map +1 -0
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
import type { BlobBytesResponse } from "../../../internal/api-client/index.js";
|
|
2
|
+
import type { AccessEvent, AccessManifest, DocumentContentKeyTarget, DocumentLinkAccessEventBody, DocumentLinkSetManifestState, DocumentUnlinkAccessEventBody } from "../../../internal/crypto/index.js";
|
|
3
|
+
import type { ContainerManifestRef, DocumentContentKeyTargetEnvelope, DocumentCreateRequest, DocumentLinkSetMutationRequest, DocumentOutgoingUpdate, DocumentSyncRequest } from "../../../internal/validators/request/index.js";
|
|
4
|
+
import type { ContainerWriterProjectionResponse, DocumentCreateResponse, DocumentLinkSetMutationResponse, DocumentPurgeProofResponse, DocumentSyncResponse, DocumentWriterProjectionResponse, ListDocumentAttachmentsResponse } from "../../../internal/validators/response/index.js";
|
|
5
|
+
import type { ContainerMutationAuthor, ContainerRekeyApi } from "../../containers/shared/types.js";
|
|
6
|
+
import type { ProjectionUserKeyResolver, ReferencedPrincipalPolicyWarmer, DocumentWriterProjectionAuthorization as WriterAuthorization } from "../../keyingProjectionVerification.js";
|
|
7
|
+
import type { DocumentRecord } from "../../sqlite/documentPersistence.js";
|
|
8
|
+
import type { ExecSql } from "../../sqlite/sqlSchema.js";
|
|
9
|
+
import type { DocumentSyncSubmitFailure } from "./syncSubmitFailure.js";
|
|
10
|
+
export type { DocumentSyncSubmitFailure } from "./syncSubmitFailure.js";
|
|
11
|
+
export declare const DOCUMENT_ENCRYPTED_LORO_UPDATE_FORMAT = "tearleads.document.loro-update";
|
|
12
|
+
export declare const DOCUMENT_CONTENT_RECORD_KEY_INFO_DOMAIN = "tearleads.document.content-record-key-info";
|
|
13
|
+
export declare const DOCUMENT_CONTENT_RECORD_PLAINTEXT_HASH_KEY_INFO_DOMAIN = "tearleads.document.content-record-plaintext-hash-key-info";
|
|
14
|
+
export declare const DOCUMENT_CONTENT_RECORD_AAD_DOMAIN = "tearleads.document.content-record-aad";
|
|
15
|
+
export declare const DOCUMENT_CONTENT_RECORD_HKDF_SALT: Uint8Array<ArrayBuffer>;
|
|
16
|
+
export declare const DOCUMENT_ENCRYPTED_UPDATE_KEYS: Set<string>;
|
|
17
|
+
export declare const TEXT_ENCODER: TextEncoder;
|
|
18
|
+
interface ProjectionVerificationBase {
|
|
19
|
+
readonly stillCurrent?: (() => boolean) | undefined;
|
|
20
|
+
readonly warmReferencedPrincipalPolicies?: ReferencedPrincipalPolicyWarmer | undefined;
|
|
21
|
+
}
|
|
22
|
+
export type ProjectionVerificationOptions = ProjectionVerificationBase & ({
|
|
23
|
+
readonly execSql: ExecSql;
|
|
24
|
+
readonly resolveProjectionUserKey: ProjectionUserKeyResolver;
|
|
25
|
+
readonly trustedLocalProjection?: undefined;
|
|
26
|
+
} | {
|
|
27
|
+
readonly execSql?: ExecSql | undefined;
|
|
28
|
+
readonly resolveProjectionUserKey?: undefined;
|
|
29
|
+
readonly trustedLocalProjection: true;
|
|
30
|
+
});
|
|
31
|
+
export declare function resolveProjectionVerifier(input: ProjectionVerificationOptions, label: string): ProjectionUserKeyResolver | null;
|
|
32
|
+
export declare function projectionVerificationOptions(input: ProjectionVerificationOptions): ProjectionVerificationOptions;
|
|
33
|
+
export type DocumentCreateAuthor = ContainerMutationAuthor;
|
|
34
|
+
export interface BuildDocumentCreatePlanInput {
|
|
35
|
+
author: DocumentCreateAuthor;
|
|
36
|
+
containerProjection: ContainerWriterProjectionResponse;
|
|
37
|
+
contentKeyEpoch?: number;
|
|
38
|
+
documentId?: string;
|
|
39
|
+
eventId?: string;
|
|
40
|
+
signedAt?: string;
|
|
41
|
+
targetEnvelopes: readonly DocumentContentKeyTargetEnvelope[];
|
|
42
|
+
}
|
|
43
|
+
export interface DocumentCreatePlan {
|
|
44
|
+
body: DocumentLinkAccessEventBody;
|
|
45
|
+
documentId: string;
|
|
46
|
+
event: AccessEvent;
|
|
47
|
+
eventHash: string;
|
|
48
|
+
manifest: AccessManifest;
|
|
49
|
+
manifestHash: string;
|
|
50
|
+
request: DocumentCreateRequest;
|
|
51
|
+
state: DocumentLinkSetManifestState;
|
|
52
|
+
targetHash: string;
|
|
53
|
+
targets: DocumentContentKeyTarget[];
|
|
54
|
+
}
|
|
55
|
+
export interface MaterializedDocumentCreatePlan {
|
|
56
|
+
contentKey: Uint8Array;
|
|
57
|
+
plan: DocumentCreatePlan;
|
|
58
|
+
}
|
|
59
|
+
export interface DocumentCreateApi {
|
|
60
|
+
createDocumentResult(input: DocumentCreateRequest, options?: DocumentSyncRequestResultOptions | undefined): Promise<{
|
|
61
|
+
readonly data: DocumentCreateResponse;
|
|
62
|
+
readonly ok: true;
|
|
63
|
+
} | DocumentSyncSubmitFailure>;
|
|
64
|
+
getContainerWriterProjection(containerId: string): Promise<ContainerWriterProjectionResponse | null>;
|
|
65
|
+
getContainerWriterProjectionResult(containerId: string, options?: DocumentSyncRequestResultOptions | undefined): Promise<{
|
|
66
|
+
readonly data: ContainerWriterProjectionResponse;
|
|
67
|
+
readonly ok: true;
|
|
68
|
+
} | DocumentSyncSubmitFailure>;
|
|
69
|
+
getDocumentWriterProjection(documentId: string): Promise<DocumentWriterProjectionResponse | null>;
|
|
70
|
+
evictContainerWriterProjection(containerId: string): void;
|
|
71
|
+
primeDocumentWriterProjection(documentId: string, projection: DocumentWriterProjectionResponse): void;
|
|
72
|
+
}
|
|
73
|
+
export interface CreateRemoteDocumentResult {
|
|
74
|
+
contentKey: Uint8Array;
|
|
75
|
+
documentId: string;
|
|
76
|
+
persistedState: PersistedDocumentCreateState;
|
|
77
|
+
plan?: DocumentCreatePlan | undefined;
|
|
78
|
+
response?: DocumentCreateResponse | undefined;
|
|
79
|
+
writerProjection: DocumentWriterProjectionResponse;
|
|
80
|
+
}
|
|
81
|
+
export type DocumentLinkSetMutationOperation = "link" | "unlink";
|
|
82
|
+
export type DocumentLinkSetMutationBody = DocumentLinkAccessEventBody | DocumentUnlinkAccessEventBody;
|
|
83
|
+
export interface DocumentLinkSetTargetState {
|
|
84
|
+
readonly currentTargets: readonly DocumentContentKeyTarget[];
|
|
85
|
+
readonly linkedContainerIds: readonly string[];
|
|
86
|
+
readonly target: DocumentContentKeyTarget;
|
|
87
|
+
readonly targets: readonly DocumentContentKeyTarget[];
|
|
88
|
+
}
|
|
89
|
+
export interface BuildDocumentLinkSetMutationPlanInput {
|
|
90
|
+
blobRewraps: DocumentLinkAccessEventBody["blobRewraps"];
|
|
91
|
+
author: DocumentCreateAuthor;
|
|
92
|
+
contentKeyEpoch: number;
|
|
93
|
+
eventId?: string | undefined;
|
|
94
|
+
operation: DocumentLinkSetMutationOperation;
|
|
95
|
+
signedAt?: string | undefined;
|
|
96
|
+
targetContainerProjection: ContainerWriterProjectionResponse;
|
|
97
|
+
targetEnvelopes: readonly DocumentContentKeyTargetEnvelope[];
|
|
98
|
+
writerProjection: DocumentWriterProjectionResponse;
|
|
99
|
+
}
|
|
100
|
+
export interface DocumentLinkSetMutationPlan {
|
|
101
|
+
body: DocumentLinkSetMutationBody;
|
|
102
|
+
contentKeyEpoch: number;
|
|
103
|
+
documentId: string;
|
|
104
|
+
event: AccessEvent;
|
|
105
|
+
eventHash: string;
|
|
106
|
+
manifest: AccessManifest;
|
|
107
|
+
manifestHash: string;
|
|
108
|
+
operation: DocumentLinkSetMutationOperation;
|
|
109
|
+
request: DocumentLinkSetMutationRequest;
|
|
110
|
+
state: DocumentLinkSetManifestState;
|
|
111
|
+
targetHash: string;
|
|
112
|
+
targets: DocumentContentKeyTarget[];
|
|
113
|
+
}
|
|
114
|
+
export interface MaterializedDocumentLinkSetMutationPlan {
|
|
115
|
+
contentKey: Uint8Array;
|
|
116
|
+
contentKeyRotated: boolean;
|
|
117
|
+
plan: DocumentLinkSetMutationPlan;
|
|
118
|
+
}
|
|
119
|
+
export interface DocumentLinkSetEventPlan {
|
|
120
|
+
authorizingContainerPathRefs: ContainerManifestRef[][];
|
|
121
|
+
body: DocumentLinkSetMutationBody;
|
|
122
|
+
event: AccessEvent;
|
|
123
|
+
eventHash: string;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* What a failed link-set mutation could tell the caller: the HTTP status (or
|
|
127
|
+
* null for network/local failures) and a short message. Threaded up to the
|
|
128
|
+
* move-intent queue so a permission failure reads as one, instead of the
|
|
129
|
+
* generic "rejected or unavailable".
|
|
130
|
+
*/
|
|
131
|
+
export type DocumentLinkSetMutationFailure = Pick<DocumentSyncSubmitFailure, "code" | "message" | "status">;
|
|
132
|
+
export type DocumentLinkSetFailureHandler = (failure: DocumentLinkSetMutationFailure) => void;
|
|
133
|
+
type DocumentLinkSetMutationResult = {
|
|
134
|
+
readonly data: DocumentLinkSetMutationResponse;
|
|
135
|
+
readonly ok: true;
|
|
136
|
+
} | (DocumentLinkSetMutationFailure & {
|
|
137
|
+
readonly ok: false;
|
|
138
|
+
});
|
|
139
|
+
export interface DocumentLinkSetMutationApi {
|
|
140
|
+
getBlobBytes(blobId: string): Promise<BlobBytesResponse | null>;
|
|
141
|
+
listDocumentAttachments(documentId: string): Promise<ListDocumentAttachmentsResponse | null>;
|
|
142
|
+
getContainerWriterProjection(containerId: string): Promise<ContainerWriterProjectionResponse | null>;
|
|
143
|
+
getContainerWriterProjectionResult(containerId: string, options?: DocumentSyncRequestResultOptions | undefined): Promise<{
|
|
144
|
+
readonly data: ContainerWriterProjectionResponse;
|
|
145
|
+
readonly ok: true;
|
|
146
|
+
} | DocumentSyncSubmitFailure>;
|
|
147
|
+
getDocumentWriterProjection(documentId: string): Promise<DocumentWriterProjectionResponse | null>;
|
|
148
|
+
getDocumentWriterProjectionResult(documentId: string, options?: DocumentSyncRequestResultOptions | undefined): Promise<{
|
|
149
|
+
readonly data: DocumentWriterProjectionResponse;
|
|
150
|
+
readonly ok: true;
|
|
151
|
+
} | DocumentSyncSubmitFailure>;
|
|
152
|
+
primeDocumentWriterProjection(documentId: string, projection: DocumentWriterProjectionResponse): void;
|
|
153
|
+
linkDocumentResult(documentId: string, input: DocumentLinkSetMutationRequest, options?: DocumentSyncRequestResultOptions): Promise<DocumentLinkSetMutationResult>;
|
|
154
|
+
unlinkDocumentResult(documentId: string, input: DocumentLinkSetMutationRequest, options?: DocumentSyncRequestResultOptions): Promise<DocumentLinkSetMutationResult>;
|
|
155
|
+
}
|
|
156
|
+
export interface RelinkRemoteDocumentResult {
|
|
157
|
+
contentKey: Uint8Array;
|
|
158
|
+
contentKeyRotated: boolean;
|
|
159
|
+
documentId: string;
|
|
160
|
+
linkedContainerIds: readonly string[];
|
|
161
|
+
persistedState: PersistedDocumentCreateState;
|
|
162
|
+
plan: DocumentLinkSetMutationPlan;
|
|
163
|
+
response: DocumentLinkSetMutationResponse;
|
|
164
|
+
}
|
|
165
|
+
export interface DocumentSyncPreparedUpdate {
|
|
166
|
+
checkpointKind?: DocumentOutgoingUpdate["checkpointKind"] | undefined;
|
|
167
|
+
checkpointPayloadKind?: DocumentOutgoingUpdate["checkpointPayloadKind"] | undefined;
|
|
168
|
+
ciphertextHash: string;
|
|
169
|
+
contentRecordId?: string | undefined;
|
|
170
|
+
encryptedData: string;
|
|
171
|
+
id: string;
|
|
172
|
+
metadataHash: string;
|
|
173
|
+
partialEndVersionVector: string;
|
|
174
|
+
partialStartVersionVector: string;
|
|
175
|
+
plaintextHash: string;
|
|
176
|
+
signedAt?: string | undefined;
|
|
177
|
+
sourceVersionVector?: string | undefined;
|
|
178
|
+
}
|
|
179
|
+
export interface DocumentEncryptedPendingUpdate {
|
|
180
|
+
contentRecordId: string;
|
|
181
|
+
encryptedData: string;
|
|
182
|
+
metadataHash: string;
|
|
183
|
+
ciphertextHash: string;
|
|
184
|
+
plaintextHash: string;
|
|
185
|
+
}
|
|
186
|
+
export interface ParsedDocumentEncryptedUpdate {
|
|
187
|
+
ciphertext: Uint8Array;
|
|
188
|
+
contentKeyEpoch: number;
|
|
189
|
+
contentRecordId: string;
|
|
190
|
+
metadataHash: string;
|
|
191
|
+
nonceDomainHash: string;
|
|
192
|
+
iv: Uint8Array;
|
|
193
|
+
}
|
|
194
|
+
export interface DecryptedDocumentSyncUpdate {
|
|
195
|
+
checkpointKind?: "rotate_baseline";
|
|
196
|
+
checkpointPayloadKind?: "full_history_snapshot";
|
|
197
|
+
id: string;
|
|
198
|
+
partialEndVersionVector: string;
|
|
199
|
+
partialStartVersionVector: string;
|
|
200
|
+
sourceVersionVector?: string;
|
|
201
|
+
updateData: Uint8Array;
|
|
202
|
+
}
|
|
203
|
+
export interface BuildDocumentSyncPlanInput {
|
|
204
|
+
author: DocumentCreateAuthor;
|
|
205
|
+
authorizingContainerPathRefs?: readonly (readonly ContainerManifestRef[])[];
|
|
206
|
+
containerRekeys?: DocumentSyncRequest["containerRekeys"];
|
|
207
|
+
contentKeyBundle: DocumentCreateResponse["contentKeyBundle"];
|
|
208
|
+
documentId?: string | undefined;
|
|
209
|
+
documentKekTargets: DocumentSyncResponse["documentKekTargets"];
|
|
210
|
+
documentManifest: DocumentCreateResponse["accessManifest"];
|
|
211
|
+
historyMode?: "raw" | undefined;
|
|
212
|
+
inlineRekeyCommitId?: string | undefined;
|
|
213
|
+
localVersionVector: string | null;
|
|
214
|
+
minLsn?: string | undefined;
|
|
215
|
+
outgoingUpdates?: readonly DocumentSyncPreparedUpdate[] | undefined;
|
|
216
|
+
pullCursor?: string | undefined;
|
|
217
|
+
signedAt?: string | undefined;
|
|
218
|
+
}
|
|
219
|
+
export interface DocumentSyncPlan {
|
|
220
|
+
contentKeyEpoch: number;
|
|
221
|
+
documentId: string;
|
|
222
|
+
documentKekTargets: DocumentSyncResponse["documentKekTargets"];
|
|
223
|
+
documentManifest: DocumentCreateResponse["accessManifest"];
|
|
224
|
+
documentWriterAuthorization?: WriterAuthorization | undefined;
|
|
225
|
+
expectedLinkSetManifestHash: string;
|
|
226
|
+
expectedTargetHash: string;
|
|
227
|
+
minLsn?: string | undefined;
|
|
228
|
+
organizationId: string;
|
|
229
|
+
request: DocumentSyncRequest;
|
|
230
|
+
sourceContentKeyBundle: DocumentCreateResponse["contentKeyBundle"];
|
|
231
|
+
}
|
|
232
|
+
export interface MaterializedDocumentSyncPlan {
|
|
233
|
+
contentKey: Uint8Array;
|
|
234
|
+
/**
|
|
235
|
+
* True when the plan carries a re-wrapped content-key bundle at the next
|
|
236
|
+
* epoch to heal a stale bundle (a linked container's KEK rotated under it).
|
|
237
|
+
* On submit success the caller must evict this document's cached writer
|
|
238
|
+
* projection so later passes see the healed state instead of re-healing.
|
|
239
|
+
*/
|
|
240
|
+
healedStaleContentKeyBundle: boolean;
|
|
241
|
+
/**
|
|
242
|
+
* Pending-queue ids a heal deliberately did NOT submit (superseded rotation
|
|
243
|
+
* checkpoints). On heal success they are reported as settled — the
|
|
244
|
+
* committed covering baseline subsumes their content, and resubmitting them
|
|
245
|
+
* post-heal could mask it as the latest baseline at the healed epoch.
|
|
246
|
+
*/
|
|
247
|
+
heldBackPendingUpdateIds: readonly string[];
|
|
248
|
+
plan: DocumentSyncPlan;
|
|
249
|
+
writerProjection: DocumentWriterProjectionResponse;
|
|
250
|
+
/** Synthetic baseline id; its ack does not settle a pending queue row. */
|
|
251
|
+
staleRecoveryBaselineUpdateId?: string;
|
|
252
|
+
}
|
|
253
|
+
export interface SyncRemoteDocumentResult {
|
|
254
|
+
contentKey: Uint8Array;
|
|
255
|
+
decryptedUpdates: DecryptedDocumentSyncUpdate[];
|
|
256
|
+
/**
|
|
257
|
+
* Pending updates whose persisted re-key bound is exhausted. Non-zero means
|
|
258
|
+
* a terminal failure was just recorded for them — callers must not treat
|
|
259
|
+
* the pass as clean and clear it.
|
|
260
|
+
*/
|
|
261
|
+
exhaustedPendingUpdateCount: number;
|
|
262
|
+
/**
|
|
263
|
+
* True only when this bounded pass made durable progress but left pending
|
|
264
|
+
* work. Headless hosts should refresh the queue and schedule another
|
|
265
|
+
* pass. Terminal exhaustion reports false and uses the failure callback.
|
|
266
|
+
*/
|
|
267
|
+
hasDeferredPendingUpdates: boolean;
|
|
268
|
+
/** Verified page progress was persisted, but remote pages remain. */
|
|
269
|
+
hasIncompletePull: boolean;
|
|
270
|
+
persistedState: PersistedDocumentSyncState;
|
|
271
|
+
plan: DocumentSyncPlan;
|
|
272
|
+
rekeyedPendingUpdateIds: readonly string[];
|
|
273
|
+
response: DocumentSyncResponse;
|
|
274
|
+
settledPendingUpdateIds: readonly string[];
|
|
275
|
+
acceptedRecoveryBaseline: boolean;
|
|
276
|
+
writerProjection?: DocumentWriterProjectionResponse | undefined;
|
|
277
|
+
}
|
|
278
|
+
export interface DocumentSyncRequestResultOptions {
|
|
279
|
+
readonly expectedPaymentRequiredOrganizationId?: string | undefined;
|
|
280
|
+
readonly reportErrors?: boolean | undefined;
|
|
281
|
+
}
|
|
282
|
+
export interface DocumentSyncApi {
|
|
283
|
+
rekeyContainer: ContainerRekeyApi["rekeyContainer"];
|
|
284
|
+
/**
|
|
285
|
+
* Optional status-bearing rekey. Present on the real client; an adapter that
|
|
286
|
+
* omits it still repairs, but a permanent refusal cannot then be told from a
|
|
287
|
+
* transient one and is reported as a plain abandon.
|
|
288
|
+
*/
|
|
289
|
+
rekeyContainerResult?: ContainerRekeyApi["rekeyContainerResult"];
|
|
290
|
+
/**
|
|
291
|
+
* Optional. A repair that must carry descendant rekeys reads each one's
|
|
292
|
+
* projection; without this such a repair is refused and the pass abandons.
|
|
293
|
+
*/
|
|
294
|
+
getContainerWriterProjection?: ContainerRekeyApi["getContainerWriterProjection"];
|
|
295
|
+
clearWriterProjectionCaches?(): void;
|
|
296
|
+
evictDocumentWriterProjection?(documentId: string): void;
|
|
297
|
+
getDocumentPurgeProof?(documentId: string, options?: {
|
|
298
|
+
readonly documentCheckpointManifestHash?: string;
|
|
299
|
+
}, requestOptions?: DocumentSyncRequestResultOptions): Promise<DocumentPurgeProofResponse | null>;
|
|
300
|
+
getDocumentWriterProjection(documentId: string): Promise<DocumentWriterProjectionResponse | null>;
|
|
301
|
+
getDocumentWriterProjectionResult(documentId: string, options?: DocumentSyncRequestResultOptions | undefined): Promise<{
|
|
302
|
+
readonly data: DocumentWriterProjectionResponse;
|
|
303
|
+
readonly ok: true;
|
|
304
|
+
} | DocumentSyncSubmitFailure>;
|
|
305
|
+
syncDocumentResult(documentId: string, input: DocumentSyncRequest, options?: DocumentSyncRequestResultOptions): Promise<{
|
|
306
|
+
readonly data: DocumentSyncResponse;
|
|
307
|
+
readonly ok: true;
|
|
308
|
+
} | DocumentSyncSubmitFailure>;
|
|
309
|
+
}
|
|
310
|
+
export type DocumentWriterPublicKeyResolver = (input: {
|
|
311
|
+
writerSigningKeyFingerprint: string;
|
|
312
|
+
writerUserId: string;
|
|
313
|
+
}) => Promise<Uint8Array | null>;
|
|
314
|
+
export type PersistedDocumentCreateState = Pick<DocumentRecord, "documentId" | "contentKeyBundle" | "documentKekTargets" | "documentManifestBundle">;
|
|
315
|
+
export type PersistedDocumentSyncState = PersistedDocumentCreateState;
|
|
316
|
+
export interface UnwrappedContainerKek {
|
|
317
|
+
containerId: string;
|
|
318
|
+
/**
|
|
319
|
+
* Null for keyring-recovered historical keys, which carry key material and
|
|
320
|
+
* the epoch id committing to it but no epoch record to hash.
|
|
321
|
+
*
|
|
322
|
+
* Such a key still satisfies a parent wrap: the epoch-record fingerprint is
|
|
323
|
+
* a selector for choosing among envelopes, not the security boundary, so a
|
|
324
|
+
* null hash falls back to selecting on the epoch id while AEAD authenticates
|
|
325
|
+
* (see `containerKekPath.ts`). That is what lets a descendant pinned to a
|
|
326
|
+
* rotated parent be opened rather than stranded.
|
|
327
|
+
*/
|
|
328
|
+
keyEpochHash: string | null;
|
|
329
|
+
keyMaterial: Uint8Array;
|
|
330
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { requireProjectionUserKeyResolver } from "../../keyingProjectionVerification.js";
|
|
2
|
+
export const DOCUMENT_ENCRYPTED_LORO_UPDATE_FORMAT = "tearleads.document.loro-update";
|
|
3
|
+
export const DOCUMENT_CONTENT_RECORD_KEY_INFO_DOMAIN = "tearleads.document.content-record-key-info";
|
|
4
|
+
export const DOCUMENT_CONTENT_RECORD_PLAINTEXT_HASH_KEY_INFO_DOMAIN = "tearleads.document.content-record-plaintext-hash-key-info";
|
|
5
|
+
export const DOCUMENT_CONTENT_RECORD_AAD_DOMAIN = "tearleads.document.content-record-aad";
|
|
6
|
+
export const DOCUMENT_CONTENT_RECORD_HKDF_SALT = new TextEncoder().encode("tearleads.document.content-record-hkdf-salt");
|
|
7
|
+
export const DOCUMENT_ENCRYPTED_UPDATE_KEYS = new Set([
|
|
8
|
+
"ciphertext",
|
|
9
|
+
"contentKeyEpoch",
|
|
10
|
+
"contentRecordId",
|
|
11
|
+
"encryptionSuite",
|
|
12
|
+
"format",
|
|
13
|
+
"iv",
|
|
14
|
+
"metadataHash",
|
|
15
|
+
"nonceDomainHash",
|
|
16
|
+
"version",
|
|
17
|
+
]);
|
|
18
|
+
export const TEXT_ENCODER = new TextEncoder();
|
|
19
|
+
export function resolveProjectionVerifier(input, label) {
|
|
20
|
+
if (input.resolveProjectionUserKey) {
|
|
21
|
+
if (input.trustedLocalProjection === true) {
|
|
22
|
+
throw new Error(`${label} cannot combine projection key verification with local projection trust`);
|
|
23
|
+
}
|
|
24
|
+
return requireProjectionUserKeyResolver(input.resolveProjectionUserKey, label);
|
|
25
|
+
}
|
|
26
|
+
if (input.trustedLocalProjection === true) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
throw new Error(`${label} requires projection key verification or an explicitly trusted local projection`);
|
|
30
|
+
}
|
|
31
|
+
export function projectionVerificationOptions(input) {
|
|
32
|
+
const warm = input.warmReferencedPrincipalPolicies;
|
|
33
|
+
const shared = {
|
|
34
|
+
...(input.stillCurrent ? { stillCurrent: input.stillCurrent } : {}),
|
|
35
|
+
...(warm ? { warmReferencedPrincipalPolicies: warm } : {}),
|
|
36
|
+
};
|
|
37
|
+
if (input.resolveProjectionUserKey) {
|
|
38
|
+
if (input.trustedLocalProjection === true) {
|
|
39
|
+
throw new Error("Projection use cannot combine key verification with local projection trust");
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
execSql: input.execSql,
|
|
43
|
+
...shared,
|
|
44
|
+
resolveProjectionUserKey: input.resolveProjectionUserKey,
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
if (input.trustedLocalProjection === true) {
|
|
48
|
+
return input.execSql
|
|
49
|
+
? {
|
|
50
|
+
execSql: input.execSql,
|
|
51
|
+
...shared,
|
|
52
|
+
trustedLocalProjection: true,
|
|
53
|
+
}
|
|
54
|
+
: { ...shared, trustedLocalProjection: true };
|
|
55
|
+
}
|
|
56
|
+
throw new Error("Projection use requires key verification or an explicitly trusted local projection");
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAmCA,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAOtF,MAAM,CAAC,MAAM,qCAAqC,GAChD,gCAAgC,CAAC;AACnC,MAAM,CAAC,MAAM,uCAAuC,GAClD,4CAA4C,CAAC;AAC/C,MAAM,CAAC,MAAM,sDAAsD,GACjE,2DAA2D,CAAC;AAC9D,MAAM,CAAC,MAAM,kCAAkC,GAC7C,uCAAuC,CAAC;AAC1C,MAAM,CAAC,MAAM,iCAAiC,GAC5C,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,6CAA6C,CAAC,CAAC;AAC1E,MAAM,CAAC,MAAM,8BAA8B,GAAG,IAAI,GAAG,CAAC;IACpD,YAAY;IACZ,iBAAiB;IACjB,iBAAiB;IACjB,iBAAiB;IACjB,QAAQ;IACR,IAAI;IACJ,cAAc;IACd,iBAAiB;IACjB,SAAS;CACV,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,WAAW,EAAE,CAAC;AAsB9C,MAAM,UAAU,yBAAyB,CACvC,KAAoC,EACpC,KAAa;IAEb,IAAI,KAAK,CAAC,wBAAwB,EAAE,CAAC;QACnC,IAAI,KAAK,CAAC,sBAAsB,KAAK,IAAI,EAAE,CAAC;YAC1C,MAAM,IAAI,KAAK,CACb,GAAG,KAAK,yEAAyE,CAClF,CAAC;QACJ,CAAC;QACD,OAAO,gCAAgC,CACrC,KAAK,CAAC,wBAAwB,EAC9B,KAAK,CACN,CAAC;IACJ,CAAC;IACD,IAAI,KAAK,CAAC,sBAAsB,KAAK,IAAI,EAAE,CAAC;QAC1C,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,IAAI,KAAK,CACb,GAAG,KAAK,iFAAiF,CAC1F,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,6BAA6B,CAC3C,KAAoC;IAEpC,MAAM,IAAI,GAAG,KAAK,CAAC,+BAA+B,CAAC;IACnD,MAAM,MAAM,GAAG;QACb,GAAG,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,KAAK,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACnE,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,+BAA+B,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAC3D,CAAC;IACF,IAAI,KAAK,CAAC,wBAAwB,EAAE,CAAC;QACnC,IAAI,KAAK,CAAC,sBAAsB,KAAK,IAAI,EAAE,CAAC;YAC1C,MAAM,IAAI,KAAK,CACb,4EAA4E,CAC7E,CAAC;QACJ,CAAC;QACD,OAAO;YACL,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,GAAG,MAAM;YACT,wBAAwB,EAAE,KAAK,CAAC,wBAAwB;SACzD,CAAC;IACJ,CAAC;IACD,IAAI,KAAK,CAAC,sBAAsB,KAAK,IAAI,EAAE,CAAC;QAC1C,OAAO,KAAK,CAAC,OAAO;YAClB,CAAC,CAAC;gBACE,OAAO,EAAE,KAAK,CAAC,OAAO;gBACtB,GAAG,MAAM;gBACT,sBAAsB,EAAE,IAAI;aAC7B;YACH,CAAC,CAAC,EAAE,GAAG,MAAM,EAAE,sBAAsB,EAAE,IAAI,EAAE,CAAC;IAClD,CAAC;IAED,MAAM,IAAI,KAAK,CACb,oFAAoF,CACrF,CAAC;AACJ,CAAC","sourcesContent":["import type { BlobBytesResponse } from \"@tearleads/api-client\";\nimport type {\n AccessEvent,\n AccessManifest,\n DocumentContentKeyTarget,\n DocumentLinkAccessEventBody,\n DocumentLinkSetManifestState,\n DocumentUnlinkAccessEventBody,\n} from \"@tearleads/crypto\";\nimport type {\n ContainerManifestRef,\n DocumentContentKeyTargetEnvelope,\n DocumentCreateRequest,\n DocumentLinkSetMutationRequest,\n DocumentOutgoingUpdate,\n DocumentSyncRequest,\n} from \"@tearleads/validators/request\";\nimport type {\n ContainerWriterProjectionResponse,\n DocumentCreateResponse,\n DocumentLinkSetMutationResponse,\n DocumentPurgeProofResponse,\n DocumentSyncResponse,\n DocumentWriterProjectionResponse,\n ListDocumentAttachmentsResponse,\n} from \"@tearleads/validators/response\";\nimport type {\n ContainerMutationAuthor,\n ContainerRekeyApi,\n} from \"../../containers/shared/types\";\nimport type {\n ProjectionUserKeyResolver,\n ReferencedPrincipalPolicyWarmer,\n DocumentWriterProjectionAuthorization as WriterAuthorization,\n} from \"../../keyingProjectionVerification\";\nimport { requireProjectionUserKeyResolver } from \"../../keyingProjectionVerification\";\nimport type { DocumentRecord } from \"../../sqlite/documentPersistence\";\nimport type { ExecSql } from \"../../sqlite/sqlSchema\";\nimport type { DocumentSyncSubmitFailure } from \"./syncSubmitFailure\";\n\nexport type { DocumentSyncSubmitFailure } from \"./syncSubmitFailure\";\n\nexport const DOCUMENT_ENCRYPTED_LORO_UPDATE_FORMAT =\n \"tearleads.document.loro-update\";\nexport const DOCUMENT_CONTENT_RECORD_KEY_INFO_DOMAIN =\n \"tearleads.document.content-record-key-info\";\nexport const DOCUMENT_CONTENT_RECORD_PLAINTEXT_HASH_KEY_INFO_DOMAIN =\n \"tearleads.document.content-record-plaintext-hash-key-info\";\nexport const DOCUMENT_CONTENT_RECORD_AAD_DOMAIN =\n \"tearleads.document.content-record-aad\";\nexport const DOCUMENT_CONTENT_RECORD_HKDF_SALT: Uint8Array<ArrayBuffer> =\n new TextEncoder().encode(\"tearleads.document.content-record-hkdf-salt\");\nexport const DOCUMENT_ENCRYPTED_UPDATE_KEYS = new Set([\n \"ciphertext\",\n \"contentKeyEpoch\",\n \"contentRecordId\",\n \"encryptionSuite\",\n \"format\",\n \"iv\",\n \"metadataHash\",\n \"nonceDomainHash\",\n \"version\",\n]);\nexport const TEXT_ENCODER = new TextEncoder();\ninterface ProjectionVerificationBase {\n readonly stillCurrent?: (() => boolean) | undefined;\n readonly warmReferencedPrincipalPolicies?:\n | ReferencedPrincipalPolicyWarmer\n | undefined;\n}\n\nexport type ProjectionVerificationOptions = ProjectionVerificationBase &\n (\n | {\n readonly execSql: ExecSql;\n readonly resolveProjectionUserKey: ProjectionUserKeyResolver;\n readonly trustedLocalProjection?: undefined;\n }\n | {\n readonly execSql?: ExecSql | undefined;\n readonly resolveProjectionUserKey?: undefined;\n readonly trustedLocalProjection: true;\n }\n );\n\nexport function resolveProjectionVerifier(\n input: ProjectionVerificationOptions,\n label: string,\n): ProjectionUserKeyResolver | null {\n if (input.resolveProjectionUserKey) {\n if (input.trustedLocalProjection === true) {\n throw new Error(\n `${label} cannot combine projection key verification with local projection trust`,\n );\n }\n return requireProjectionUserKeyResolver(\n input.resolveProjectionUserKey,\n label,\n );\n }\n if (input.trustedLocalProjection === true) {\n return null;\n }\n throw new Error(\n `${label} requires projection key verification or an explicitly trusted local projection`,\n );\n}\n\nexport function projectionVerificationOptions(\n input: ProjectionVerificationOptions,\n): ProjectionVerificationOptions {\n const warm = input.warmReferencedPrincipalPolicies;\n const shared = {\n ...(input.stillCurrent ? { stillCurrent: input.stillCurrent } : {}),\n ...(warm ? { warmReferencedPrincipalPolicies: warm } : {}),\n };\n if (input.resolveProjectionUserKey) {\n if (input.trustedLocalProjection === true) {\n throw new Error(\n \"Projection use cannot combine key verification with local projection trust\",\n );\n }\n return {\n execSql: input.execSql,\n ...shared,\n resolveProjectionUserKey: input.resolveProjectionUserKey,\n };\n }\n if (input.trustedLocalProjection === true) {\n return input.execSql\n ? {\n execSql: input.execSql,\n ...shared,\n trustedLocalProjection: true,\n }\n : { ...shared, trustedLocalProjection: true };\n }\n\n throw new Error(\n \"Projection use requires key verification or an explicitly trusted local projection\",\n );\n}\n\nexport type DocumentCreateAuthor = ContainerMutationAuthor;\n\nexport interface BuildDocumentCreatePlanInput {\n author: DocumentCreateAuthor;\n containerProjection: ContainerWriterProjectionResponse;\n contentKeyEpoch?: number;\n documentId?: string;\n eventId?: string;\n signedAt?: string;\n targetEnvelopes: readonly DocumentContentKeyTargetEnvelope[];\n}\n\nexport interface DocumentCreatePlan {\n body: DocumentLinkAccessEventBody;\n documentId: string;\n event: AccessEvent;\n eventHash: string;\n manifest: AccessManifest;\n manifestHash: string;\n request: DocumentCreateRequest;\n state: DocumentLinkSetManifestState;\n targetHash: string;\n targets: DocumentContentKeyTarget[];\n}\n\nexport interface MaterializedDocumentCreatePlan {\n contentKey: Uint8Array;\n plan: DocumentCreatePlan;\n}\n\nexport interface DocumentCreateApi {\n // Lets idempotent create inspect an expected already-exists conflict.\n createDocumentResult(\n input: DocumentCreateRequest,\n options?: DocumentSyncRequestResultOptions | undefined,\n ): Promise<\n | {\n readonly data: DocumentCreateResponse;\n readonly ok: true;\n }\n | DocumentSyncSubmitFailure\n >;\n getContainerWriterProjection(\n containerId: string,\n ): Promise<ContainerWriterProjectionResponse | null>;\n // Result-returning variant used by the create path so a terminal projection\n // fetch failure (e.g. a 402 billing block or a 403 after access revocation)\n // can be persisted to the write queue instead of collapsing to a silent\n // null.\n getContainerWriterProjectionResult(\n containerId: string,\n options?: DocumentSyncRequestResultOptions | undefined,\n ): Promise<\n | {\n readonly data: ContainerWriterProjectionResponse;\n readonly ok: true;\n }\n | DocumentSyncSubmitFailure\n >;\n // Needed to adopt an existing remote document on a create conflict: the\n // committed manifest, content-key bundle and KEK targets are refetched here\n // (the create response that carried them was lost).\n getDocumentWriterProjection(\n documentId: string,\n ): Promise<DocumentWriterProjectionResponse | null>;\n evictContainerWriterProjection(containerId: string): void;\n primeDocumentWriterProjection(\n documentId: string,\n projection: DocumentWriterProjectionResponse,\n ): void;\n}\n\nexport interface CreateRemoteDocumentResult {\n contentKey: Uint8Array;\n documentId: string;\n persistedState: PersistedDocumentCreateState;\n // `plan` and `response` are absent when the result was adopted from an\n // existing remote document on a create conflict: there is no fresh create\n // response, and the local plan does not match the committed manifest (the\n // first attempt used a different content key). Consumers read only\n // documentId/writerProjection/persistedState.\n plan?: DocumentCreatePlan | undefined;\n response?: DocumentCreateResponse | undefined;\n writerProjection: DocumentWriterProjectionResponse;\n}\n\nexport type DocumentLinkSetMutationOperation = \"link\" | \"unlink\";\nexport type DocumentLinkSetMutationBody =\n | DocumentLinkAccessEventBody\n | DocumentUnlinkAccessEventBody;\n\nexport interface DocumentLinkSetTargetState {\n readonly currentTargets: readonly DocumentContentKeyTarget[];\n readonly linkedContainerIds: readonly string[];\n readonly target: DocumentContentKeyTarget;\n readonly targets: readonly DocumentContentKeyTarget[];\n}\n\nexport interface BuildDocumentLinkSetMutationPlanInput {\n blobRewraps: DocumentLinkAccessEventBody[\"blobRewraps\"];\n author: DocumentCreateAuthor;\n contentKeyEpoch: number;\n eventId?: string | undefined;\n operation: DocumentLinkSetMutationOperation;\n signedAt?: string | undefined;\n targetContainerProjection: ContainerWriterProjectionResponse;\n targetEnvelopes: readonly DocumentContentKeyTargetEnvelope[];\n writerProjection: DocumentWriterProjectionResponse;\n}\n\nexport interface DocumentLinkSetMutationPlan {\n body: DocumentLinkSetMutationBody;\n contentKeyEpoch: number;\n documentId: string;\n event: AccessEvent;\n eventHash: string;\n manifest: AccessManifest;\n manifestHash: string;\n operation: DocumentLinkSetMutationOperation;\n request: DocumentLinkSetMutationRequest;\n state: DocumentLinkSetManifestState;\n targetHash: string;\n targets: DocumentContentKeyTarget[];\n}\n\nexport interface MaterializedDocumentLinkSetMutationPlan {\n contentKey: Uint8Array;\n contentKeyRotated: boolean;\n plan: DocumentLinkSetMutationPlan;\n}\n\nexport interface DocumentLinkSetEventPlan {\n authorizingContainerPathRefs: ContainerManifestRef[][];\n body: DocumentLinkSetMutationBody;\n event: AccessEvent;\n eventHash: string;\n}\n\n/**\n * What a failed link-set mutation could tell the caller: the HTTP status (or\n * null for network/local failures) and a short message. Threaded up to the\n * move-intent queue so a permission failure reads as one, instead of the\n * generic \"rejected or unavailable\".\n */\nexport type DocumentLinkSetMutationFailure = Pick<\n DocumentSyncSubmitFailure,\n \"code\" | \"message\" | \"status\"\n>;\n\nexport type DocumentLinkSetFailureHandler = (\n failure: DocumentLinkSetMutationFailure,\n) => void;\n\ntype DocumentLinkSetMutationResult =\n | { readonly data: DocumentLinkSetMutationResponse; readonly ok: true }\n | (DocumentLinkSetMutationFailure & { readonly ok: false });\n\nexport interface DocumentLinkSetMutationApi {\n getBlobBytes(blobId: string): Promise<BlobBytesResponse | null>;\n listDocumentAttachments(\n documentId: string,\n ): Promise<ListDocumentAttachmentsResponse | null>;\n getContainerWriterProjection(\n containerId: string,\n ): Promise<ContainerWriterProjectionResponse | null>;\n getContainerWriterProjectionResult(\n containerId: string,\n options?: DocumentSyncRequestResultOptions | undefined,\n ): Promise<\n | {\n readonly data: ContainerWriterProjectionResponse;\n readonly ok: true;\n }\n | DocumentSyncSubmitFailure\n >;\n getDocumentWriterProjection(\n documentId: string,\n ): Promise<DocumentWriterProjectionResponse | null>;\n getDocumentWriterProjectionResult(\n documentId: string,\n options?: DocumentSyncRequestResultOptions | undefined,\n ): Promise<\n | {\n readonly data: DocumentWriterProjectionResponse;\n readonly ok: true;\n }\n | DocumentSyncSubmitFailure\n >;\n primeDocumentWriterProjection(\n documentId: string,\n projection: DocumentWriterProjectionResponse,\n ): void;\n linkDocumentResult(\n documentId: string,\n input: DocumentLinkSetMutationRequest,\n options?: DocumentSyncRequestResultOptions,\n ): Promise<DocumentLinkSetMutationResult>;\n unlinkDocumentResult(\n documentId: string,\n input: DocumentLinkSetMutationRequest,\n options?: DocumentSyncRequestResultOptions,\n ): Promise<DocumentLinkSetMutationResult>;\n}\n\nexport interface RelinkRemoteDocumentResult {\n contentKey: Uint8Array;\n contentKeyRotated: boolean;\n documentId: string;\n linkedContainerIds: readonly string[];\n persistedState: PersistedDocumentCreateState;\n plan: DocumentLinkSetMutationPlan;\n response: DocumentLinkSetMutationResponse;\n}\n\nexport interface DocumentSyncPreparedUpdate {\n checkpointKind?: DocumentOutgoingUpdate[\"checkpointKind\"] | undefined;\n checkpointPayloadKind?:\n | DocumentOutgoingUpdate[\"checkpointPayloadKind\"]\n | undefined;\n ciphertextHash: string;\n contentRecordId?: string | undefined;\n encryptedData: string;\n id: string;\n metadataHash: string;\n partialEndVersionVector: string;\n partialStartVersionVector: string;\n plaintextHash: string;\n signedAt?: string | undefined;\n sourceVersionVector?: string | undefined;\n}\n\nexport interface DocumentEncryptedPendingUpdate {\n contentRecordId: string;\n encryptedData: string;\n metadataHash: string;\n ciphertextHash: string;\n plaintextHash: string;\n}\n\nexport interface ParsedDocumentEncryptedUpdate {\n ciphertext: Uint8Array;\n contentKeyEpoch: number;\n contentRecordId: string;\n metadataHash: string;\n nonceDomainHash: string;\n iv: Uint8Array;\n}\n\nexport interface DecryptedDocumentSyncUpdate {\n checkpointKind?: \"rotate_baseline\";\n checkpointPayloadKind?: \"full_history_snapshot\";\n id: string;\n partialEndVersionVector: string;\n partialStartVersionVector: string;\n sourceVersionVector?: string;\n updateData: Uint8Array;\n}\n\nexport interface BuildDocumentSyncPlanInput {\n author: DocumentCreateAuthor;\n authorizingContainerPathRefs?: readonly (readonly ContainerManifestRef[])[];\n containerRekeys?: DocumentSyncRequest[\"containerRekeys\"];\n contentKeyBundle: DocumentCreateResponse[\"contentKeyBundle\"];\n documentId?: string | undefined;\n documentKekTargets: DocumentSyncResponse[\"documentKekTargets\"];\n documentManifest: DocumentCreateResponse[\"accessManifest\"];\n historyMode?: \"raw\" | undefined;\n inlineRekeyCommitId?: string | undefined;\n localVersionVector: string | null;\n minLsn?: string | undefined;\n outgoingUpdates?: readonly DocumentSyncPreparedUpdate[] | undefined;\n pullCursor?: string | undefined;\n signedAt?: string | undefined;\n}\n\nexport interface DocumentSyncPlan {\n contentKeyEpoch: number;\n documentId: string;\n documentKekTargets: DocumentSyncResponse[\"documentKekTargets\"];\n documentManifest: DocumentCreateResponse[\"accessManifest\"];\n documentWriterAuthorization?: WriterAuthorization | undefined;\n expectedLinkSetManifestHash: string;\n expectedTargetHash: string;\n minLsn?: string | undefined;\n organizationId: string;\n request: DocumentSyncRequest;\n sourceContentKeyBundle: DocumentCreateResponse[\"contentKeyBundle\"];\n}\n\nexport interface MaterializedDocumentSyncPlan {\n contentKey: Uint8Array;\n /**\n * True when the plan carries a re-wrapped content-key bundle at the next\n * epoch to heal a stale bundle (a linked container's KEK rotated under it).\n * On submit success the caller must evict this document's cached writer\n * projection so later passes see the healed state instead of re-healing.\n */\n healedStaleContentKeyBundle: boolean;\n /**\n * Pending-queue ids a heal deliberately did NOT submit (superseded rotation\n * checkpoints). On heal success they are reported as settled — the\n * committed covering baseline subsumes their content, and resubmitting them\n * post-heal could mask it as the latest baseline at the healed epoch.\n */\n heldBackPendingUpdateIds: readonly string[];\n plan: DocumentSyncPlan;\n writerProjection: DocumentWriterProjectionResponse;\n /** Synthetic baseline id; its ack does not settle a pending queue row. */\n staleRecoveryBaselineUpdateId?: string;\n}\n\nexport interface SyncRemoteDocumentResult {\n contentKey: Uint8Array;\n decryptedUpdates: DecryptedDocumentSyncUpdate[];\n /**\n * Pending updates whose persisted re-key bound is exhausted. Non-zero means\n * a terminal failure was just recorded for them — callers must not treat\n * the pass as clean and clear it.\n */\n exhaustedPendingUpdateCount: number;\n /**\n * True only when this bounded pass made durable progress but left pending\n * work. Headless hosts should refresh the queue and schedule another\n * pass. Terminal exhaustion reports false and uses the failure callback.\n */\n hasDeferredPendingUpdates: boolean;\n /** Verified page progress was persisted, but remote pages remain. */\n hasIncompletePull: boolean;\n persistedState: PersistedDocumentSyncState;\n plan: DocumentSyncPlan;\n rekeyedPendingUpdateIds: readonly string[];\n response: DocumentSyncResponse;\n settledPendingUpdateIds: readonly string[];\n acceptedRecoveryBaseline: boolean;\n writerProjection?: DocumentWriterProjectionResponse | undefined;\n}\n\nexport interface DocumentSyncRequestResultOptions {\n readonly expectedPaymentRequiredOrganizationId?: string | undefined;\n readonly reportErrors?: boolean | undefined;\n}\n\nexport interface DocumentSyncApi {\n rekeyContainer: ContainerRekeyApi[\"rekeyContainer\"];\n /**\n * Optional status-bearing rekey. Present on the real client; an adapter that\n * omits it still repairs, but a permanent refusal cannot then be told from a\n * transient one and is reported as a plain abandon.\n */\n rekeyContainerResult?: ContainerRekeyApi[\"rekeyContainerResult\"];\n /**\n * Optional. A repair that must carry descendant rekeys reads each one's\n * projection; without this such a repair is refused and the pass abandons.\n */\n getContainerWriterProjection?: ContainerRekeyApi[\"getContainerWriterProjection\"];\n clearWriterProjectionCaches?(): void;\n evictDocumentWriterProjection?(documentId: string): void;\n getDocumentPurgeProof?(\n documentId: string,\n options?: {\n readonly documentCheckpointManifestHash?: string;\n },\n requestOptions?: DocumentSyncRequestResultOptions,\n ): Promise<DocumentPurgeProofResponse | null>;\n getDocumentWriterProjection(\n documentId: string,\n ): Promise<DocumentWriterProjectionResponse | null>;\n getDocumentWriterProjectionResult(\n documentId: string,\n options?: DocumentSyncRequestResultOptions | undefined,\n ): Promise<\n | {\n readonly data: DocumentWriterProjectionResponse;\n readonly ok: true;\n }\n | DocumentSyncSubmitFailure\n >;\n syncDocumentResult(\n documentId: string,\n input: DocumentSyncRequest,\n options?: DocumentSyncRequestResultOptions,\n ): Promise<\n | {\n readonly data: DocumentSyncResponse;\n readonly ok: true;\n }\n | DocumentSyncSubmitFailure\n >;\n}\n\nexport type DocumentWriterPublicKeyResolver = (input: {\n writerSigningKeyFingerprint: string;\n writerUserId: string;\n}) => Promise<Uint8Array | null>;\n\nexport type PersistedDocumentCreateState = Pick<\n DocumentRecord,\n | \"documentId\"\n | \"contentKeyBundle\"\n | \"documentKekTargets\"\n | \"documentManifestBundle\"\n>;\n\nexport type PersistedDocumentSyncState = PersistedDocumentCreateState;\n\nexport interface UnwrappedContainerKek {\n containerId: string;\n /**\n * Null for keyring-recovered historical keys, which carry key material and\n * the epoch id committing to it but no epoch record to hash.\n *\n * Such a key still satisfies a parent wrap: the epoch-record fingerprint is\n * a selector for choosing among envelopes, not the security boundary, so a\n * null hash falls back to selecting on the epoch id while AEAD authenticates\n * (see `containerKekPath.ts`). That is what lets a descendant pinned to a\n * rotated parent be opened rather than stranded.\n */\n keyEpochHash: string | null;\n keyMaterial: Uint8Array;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domainScope.js","sourceRoot":"","sources":["domainScope.ts"],"names":[],"mappings":"AAAA,MAAM,gBAAgB,GAAG,MAAM,CAAC,uBAAuB,CAAC,CAAC;AAQzD,MAAM,UAAU,iBAAiB;IAC/B,OAAO,EAAE,CAAC,gBAAgB,CAAC,EAAE,IAAI,EAAwB,CAAC;AAC5D,CAAC","sourcesContent":["const domainScopeBrand = Symbol(\"tearleads.domainScope\");\n\n// Identity token for in-process caches that must rotate together when the\n// active database or signing identity changes.\nexport interface DomainScope {\n readonly [domainScopeBrand]: true;\n}\n\nexport function createDomainScope(): DomainScope {\n return { [domainScopeBrand]: true } satisfies DomainScope;\n}\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The one way this package renders an unknown thrown value for a log line or
|
|
3
|
+
* wrapped error message. Classifier code that matches known message strings
|
|
4
|
+
* (and must fail closed on non-Error throwables) should not use this — see
|
|
5
|
+
* isStaleContainerMetadataSecurityStateError and classifyHealBlockedReason.
|
|
6
|
+
*/
|
|
7
|
+
export function errorMessage(error) {
|
|
8
|
+
return error instanceof Error ? error.message : String(error);
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=errorMessage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errorMessage.js","sourceRoot":"","sources":["errorMessage.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,UAAU,YAAY,CAAC,KAAc;IACzC,OAAO,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAChE,CAAC","sourcesContent":["/**\n * The one way this package renders an unknown thrown value for a log line or\n * wrapped error message. Classifier code that matches known message strings\n * (and must fail closed on non-Error throwables) should not use this — see\n * isStaleContainerMetadataSecurityStateError and classifyHealBlockedReason.\n */\nexport function errorMessage(error: unknown): string {\n return error instanceof Error ? error.message : String(error);\n}\n"]}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { serializeKeyingCanonicalJson } from "../internal/crypto/index.js";
|
|
2
|
+
import { isPlainObject } from "../internal/validators/isPlainObject.js";
|
|
3
|
+
function isCanonicalJsonScalar(value) {
|
|
4
|
+
return (value === null ||
|
|
5
|
+
typeof value === "string" ||
|
|
6
|
+
typeof value === "boolean" ||
|
|
7
|
+
(typeof value === "number" && Number.isFinite(value)));
|
|
8
|
+
}
|
|
9
|
+
function pushCanonicalJsonChildren(value, active, pending) {
|
|
10
|
+
if (Array.isArray(value)) {
|
|
11
|
+
if (active.has(value)) {
|
|
12
|
+
return false;
|
|
13
|
+
}
|
|
14
|
+
active.add(value);
|
|
15
|
+
pending.push({ leave: value });
|
|
16
|
+
for (let index = 0; index < value.length; index += 1) {
|
|
17
|
+
if (!(index in value)) {
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
pending.push({ value: value[index] });
|
|
21
|
+
}
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
if (!isPlainObject(value)) {
|
|
25
|
+
return false;
|
|
26
|
+
}
|
|
27
|
+
if (active.has(value)) {
|
|
28
|
+
return false;
|
|
29
|
+
}
|
|
30
|
+
active.add(value);
|
|
31
|
+
pending.push({ leave: value });
|
|
32
|
+
for (const key of Object.keys(value)) {
|
|
33
|
+
pending.push({ value: Reflect.get(value, key) });
|
|
34
|
+
}
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function isCanonicalJson(value) {
|
|
38
|
+
const pending = [{ value }];
|
|
39
|
+
const active = new WeakSet();
|
|
40
|
+
while (pending.length > 0) {
|
|
41
|
+
const frame = pending.pop();
|
|
42
|
+
if (!frame) {
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
if (frame.leave) {
|
|
46
|
+
active.delete(frame.leave);
|
|
47
|
+
continue;
|
|
48
|
+
}
|
|
49
|
+
const item = frame.value;
|
|
50
|
+
if (isCanonicalJsonScalar(item)) {
|
|
51
|
+
continue;
|
|
52
|
+
}
|
|
53
|
+
if (!pushCanonicalJsonChildren(item, active, pending)) {
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
export function readCanonicalJson(value, label) {
|
|
60
|
+
if (!isCanonicalJson(value)) {
|
|
61
|
+
throw new Error(`${label} must be canonical JSON`);
|
|
62
|
+
}
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
export function readCanonicalRecord(value, label) {
|
|
66
|
+
if (!isPlainObject(value)) {
|
|
67
|
+
throw new Error(`${label} must be an object`);
|
|
68
|
+
}
|
|
69
|
+
readCanonicalJson(value, label);
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
export function readCanonicalRecords(values, label) {
|
|
73
|
+
return values.map((value, index) => readCanonicalRecord(value, `${label}[${index}]`));
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Canonicalize-then-serialize, the one string form every keying equality
|
|
77
|
+
* check compares. Both halves are shared already; composing them per-file
|
|
78
|
+
* invited the composition itself to drift.
|
|
79
|
+
*/
|
|
80
|
+
export function canonicalKeyingJsonString(value, label) {
|
|
81
|
+
return serializeKeyingCanonicalJson(readCanonicalJson(value, label));
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=keyingCanonicalJson.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keyingCanonicalJson.js","sourceRoot":"","sources":["keyingCanonicalJson.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,4BAA4B,EAAE,MAAM,mBAAmB,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAOpE,SAAS,qBAAqB,CAAC,KAAc;IAC3C,OAAO,CACL,KAAK,KAAK,IAAI;QACd,OAAO,KAAK,KAAK,QAAQ;QACzB,OAAO,KAAK,KAAK,SAAS;QAC1B,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CACtD,CAAC;AACJ,CAAC;AAED,SAAS,yBAAyB,CAChC,KAAc,EACd,MAAuB,EACvB,OAA6B;IAE7B,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACzB,IAAI,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;YACtB,OAAO,KAAK,CAAC;QACf,CAAC;QACD,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QAClB,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;QAC/B,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,KAAK,IAAI,CAAC,EAAE,CAAC;YACrD,IAAI,CAAC,CAAC,KAAK,IAAI,KAAK,CAAC,EAAE,CAAC;gBACtB,OAAO,KAAK,CAAC;YACf,CAAC;YACD,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QACxC,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC;QAC1B,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;QACtB,OAAO,KAAK,CAAC;IACf,CAAC;IACD,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAClB,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;IAC/B,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QACrC,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC;IACnD,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAS,eAAe,CAAC,KAAc;IACrC,MAAM,OAAO,GAAyB,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IAClD,MAAM,MAAM,GAAG,IAAI,OAAO,EAAU,CAAC;IAErC,OAAO,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC1B,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;QAC5B,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,MAAM;QACR,CAAC;QACD,IAAI,KAAK,CAAC,KAAK,EAAE,CAAC;YAChB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YAC3B,SAAS;QACX,CAAC;QAED,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC;QACzB,IAAI,qBAAqB,CAAC,IAAI,CAAC,EAAE,CAAC;YAChC,SAAS;QACX,CAAC;QACD,IAAI,CAAC,yBAAyB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;YACtD,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,UAAU,iBAAiB,CAC/B,KAAc,EACd,KAAa;IAEb,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE,CAAC;QAC5B,MAAM,IAAI,KAAK,CAAC,GAAG,KAAK,yBAAyB,CAAC,CAAC;IACrD,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,UAAU,mBAAmB,CACjC,KAAc,EACd,KAAa;IAEb,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CAAC,GAAG,KAAK,oBAAoB,CAAC,CAAC;IAChD,CAAC;IACD,iBAAiB,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAChC,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,MAA0B,EAC1B,KAAa;IAEb,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CACjC,mBAAmB,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,KAAK,GAAG,CAAC,CACjD,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,yBAAyB,CACvC,KAAc,EACd,KAAa;IAEb,OAAO,4BAA4B,CAAC,iBAAiB,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;AACvE,CAAC","sourcesContent":["import type { KeyingCanonicalJson } from \"@tearleads/crypto\";\nimport { serializeKeyingCanonicalJson } from \"@tearleads/crypto\";\nimport { isPlainObject } from \"@tearleads/validators/isPlainObject\";\n\ninterface CanonicalJsonFrame {\n leave?: object;\n value?: unknown;\n}\n\nfunction isCanonicalJsonScalar(value: unknown): boolean {\n return (\n value === null ||\n typeof value === \"string\" ||\n typeof value === \"boolean\" ||\n (typeof value === \"number\" && Number.isFinite(value))\n );\n}\n\nfunction pushCanonicalJsonChildren(\n value: unknown,\n active: WeakSet<object>,\n pending: CanonicalJsonFrame[],\n): boolean {\n if (Array.isArray(value)) {\n if (active.has(value)) {\n return false;\n }\n active.add(value);\n pending.push({ leave: value });\n for (let index = 0; index < value.length; index += 1) {\n if (!(index in value)) {\n return false;\n }\n pending.push({ value: value[index] });\n }\n return true;\n }\n\n if (!isPlainObject(value)) {\n return false;\n }\n if (active.has(value)) {\n return false;\n }\n active.add(value);\n pending.push({ leave: value });\n for (const key of Object.keys(value)) {\n pending.push({ value: Reflect.get(value, key) });\n }\n return true;\n}\n\nfunction isCanonicalJson(value: unknown): value is KeyingCanonicalJson {\n const pending: CanonicalJsonFrame[] = [{ value }];\n const active = new WeakSet<object>();\n\n while (pending.length > 0) {\n const frame = pending.pop();\n if (!frame) {\n break;\n }\n if (frame.leave) {\n active.delete(frame.leave);\n continue;\n }\n\n const item = frame.value;\n if (isCanonicalJsonScalar(item)) {\n continue;\n }\n if (!pushCanonicalJsonChildren(item, active, pending)) {\n return false;\n }\n }\n\n return true;\n}\n\nexport function readCanonicalJson(\n value: unknown,\n label: string,\n): KeyingCanonicalJson {\n if (!isCanonicalJson(value)) {\n throw new Error(`${label} must be canonical JSON`);\n }\n return value;\n}\n\nexport function readCanonicalRecord(\n value: unknown,\n label: string,\n): Record<string, unknown> {\n if (!isPlainObject(value)) {\n throw new Error(`${label} must be an object`);\n }\n readCanonicalJson(value, label);\n return value;\n}\n\nexport function readCanonicalRecords(\n values: readonly unknown[],\n label: string,\n): Record<string, unknown>[] {\n return values.map((value, index) =>\n readCanonicalRecord(value, `${label}[${index}]`),\n );\n}\n\n/**\n * Canonicalize-then-serialize, the one string form every keying equality\n * check compares. Both halves are shared already; composing them per-file\n * invited the composition itself to drift.\n */\nexport function canonicalKeyingJsonString(\n value: unknown,\n label: string,\n): string {\n return serializeKeyingCanonicalJson(readCanonicalJson(value, label));\n}\n"]}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { KeyingVerificationError, } from "../../internal/crypto/index.js";
|
|
2
|
+
import { advanceKeyingCheckpointsAtomically, validateKeyingCheckpointsAtomically, } from "../persistence/keyingCheckpointAdvancePersistence.js";
|
|
3
|
+
function objectKey(manifest) {
|
|
4
|
+
const { objectKind, organizationId, objectId } = manifest.checkpoint;
|
|
5
|
+
return JSON.stringify([objectKind, organizationId, objectId]);
|
|
6
|
+
}
|
|
7
|
+
function manifestsByObject(manifests) {
|
|
8
|
+
const byObject = new Map();
|
|
9
|
+
for (const manifest of manifests) {
|
|
10
|
+
const key = objectKey(manifest);
|
|
11
|
+
let byHash = byObject.get(key);
|
|
12
|
+
if (!byHash) {
|
|
13
|
+
byHash = new Map();
|
|
14
|
+
byObject.set(key, byHash);
|
|
15
|
+
}
|
|
16
|
+
byHash.set(manifest.manifestHash, manifest);
|
|
17
|
+
}
|
|
18
|
+
return byObject;
|
|
19
|
+
}
|
|
20
|
+
function accessManifestCheckpointAdvances(input) {
|
|
21
|
+
const evidenceByObject = manifestsByObject(input.verifiedManifests);
|
|
22
|
+
const headsByObject = manifestsByObject(input.verifiedHeads);
|
|
23
|
+
const advances = [];
|
|
24
|
+
for (const [key, headsByHash] of headsByObject) {
|
|
25
|
+
if (headsByHash.size !== 1) {
|
|
26
|
+
throw new KeyingVerificationError("equivocation", `projection declares conflicting access manifest heads for ${key}`);
|
|
27
|
+
}
|
|
28
|
+
const head = headsByHash.values().next().value;
|
|
29
|
+
if (!head) {
|
|
30
|
+
continue;
|
|
31
|
+
}
|
|
32
|
+
const predecessors = [
|
|
33
|
+
...(evidenceByObject.get(key)?.values() ?? []),
|
|
34
|
+
].filter((manifest) => manifest.manifestHash !== head.manifestHash);
|
|
35
|
+
advances.push({ head, predecessors });
|
|
36
|
+
}
|
|
37
|
+
return advances;
|
|
38
|
+
}
|
|
39
|
+
export async function validateAccessManifestCheckpoints(input) {
|
|
40
|
+
await validateKeyingCheckpointsAtomically({
|
|
41
|
+
access: accessManifestCheckpointAdvances(input),
|
|
42
|
+
execSql: input.execSql,
|
|
43
|
+
policies: input.policies,
|
|
44
|
+
stillCurrent: input.stillCurrent,
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
export async function enforceAccessManifestCheckpoints(input) {
|
|
48
|
+
await advanceKeyingCheckpointsAtomically({
|
|
49
|
+
access: accessManifestCheckpointAdvances(input),
|
|
50
|
+
documentPurgeCheckpoint: input.documentPurgeCheckpoint,
|
|
51
|
+
execSql: input.execSql,
|
|
52
|
+
organizationId: input.organizationId,
|
|
53
|
+
policies: input.policies,
|
|
54
|
+
stillCurrent: input.stillCurrent,
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=accessManifestCheckpointEnforcement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accessManifestCheckpointEnforcement.js","sourceRoot":"","sources":["accessManifestCheckpointEnforcement.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,GAExB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAEL,kCAAkC,EAClC,mCAAmC,GACpC,MAAM,mDAAmD,CAAC;AAI3D,SAAS,SAAS,CAAC,QAAkD;IACnE,MAAM,EAAE,UAAU,EAAE,cAAc,EAAE,QAAQ,EAAE,GAAG,QAAQ,CAAC,UAAU,CAAC;IACrE,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,cAAc,EAAE,QAAQ,CAAC,CAAC,CAAC;AAChE,CAAC;AAED,SAAS,iBAAiB,CACxB,SAA8D;IAE9D,MAAM,QAAQ,GAAG,IAAI,GAAG,EAGrB,CAAC;IACJ,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE,CAAC;QACjC,MAAM,GAAG,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAC;QAChC,IAAI,MAAM,GAAG,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAC/B,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,MAAM,GAAG,IAAI,GAAG,EAAE,CAAC;YACnB,QAAQ,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;QAC5B,CAAC;QACD,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;IAC9C,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,SAAS,gCAAgC,CAAC,KAGzC;IACC,MAAM,gBAAgB,GAAG,iBAAiB,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACpE,MAAM,aAAa,GAAG,iBAAiB,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;IAC7D,MAAM,QAAQ,GAAsC,EAAE,CAAC;IAEvD,KAAK,MAAM,CAAC,GAAG,EAAE,WAAW,CAAC,IAAI,aAAa,EAAE,CAAC;QAC/C,IAAI,WAAW,CAAC,IAAI,KAAK,CAAC,EAAE,CAAC;YAC3B,MAAM,IAAI,uBAAuB,CAC/B,cAAc,EACd,6DAA6D,GAAG,EAAE,CACnE,CAAC;QACJ,CAAC;QACD,MAAM,IAAI,GAAG,WAAW,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC;QAC/C,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,SAAS;QACX,CAAC;QACD,MAAM,YAAY,GAAG;YACnB,GAAG,CAAC,gBAAgB,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;SAC/C,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,YAAY,KAAK,IAAI,CAAC,YAAY,CAAC,CAAC;QACpE,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,CAAC;IACxC,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,iCAAiC,CAAC,KAMvD;IACC,MAAM,mCAAmC,CAAC;QACxC,MAAM,EAAE,gCAAgC,CAAC,KAAK,CAAC;QAC/C,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,YAAY,EAAE,KAAK,CAAC,YAAY;KACjC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,gCAAgC,CAAC,KAQtD;IACC,MAAM,kCAAkC,CAAC;QACvC,MAAM,EAAE,gCAAgC,CAAC,KAAK,CAAC;QAC/C,uBAAuB,EAAE,KAAK,CAAC,uBAAuB;QACtD,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,cAAc,EAAE,KAAK,CAAC,cAAc;QACpC,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,YAAY,EAAE,KAAK,CAAC,YAAY;KACjC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import {\n KeyingVerificationError,\n type VerifiedAccessManifestCheckpointEvidence,\n} from \"@tearleads/crypto\";\nimport type { DocumentPurgeCheckpoint } from \"../persistence/documentPurgeCheckpointPersistence\";\nimport {\n type AccessManifestCheckpointAdvance,\n advanceKeyingCheckpointsAtomically,\n validateKeyingCheckpointsAtomically,\n} from \"../persistence/keyingCheckpointAdvancePersistence\";\nimport type { PrincipalPolicyCheckpointEvidence } from \"../principals/principalPolicyEvidence\";\nimport type { ExecSql } from \"../sqlite/sqlSchema\";\n\nfunction objectKey(manifest: VerifiedAccessManifestCheckpointEvidence): string {\n const { objectKind, organizationId, objectId } = manifest.checkpoint;\n return JSON.stringify([objectKind, organizationId, objectId]);\n}\n\nfunction manifestsByObject(\n manifests: readonly VerifiedAccessManifestCheckpointEvidence[],\n): Map<string, Map<string, VerifiedAccessManifestCheckpointEvidence>> {\n const byObject = new Map<\n string,\n Map<string, VerifiedAccessManifestCheckpointEvidence>\n >();\n for (const manifest of manifests) {\n const key = objectKey(manifest);\n let byHash = byObject.get(key);\n if (!byHash) {\n byHash = new Map();\n byObject.set(key, byHash);\n }\n byHash.set(manifest.manifestHash, manifest);\n }\n return byObject;\n}\n\nfunction accessManifestCheckpointAdvances(input: {\n readonly verifiedHeads: readonly VerifiedAccessManifestCheckpointEvidence[];\n readonly verifiedManifests: readonly VerifiedAccessManifestCheckpointEvidence[];\n}): AccessManifestCheckpointAdvance[] {\n const evidenceByObject = manifestsByObject(input.verifiedManifests);\n const headsByObject = manifestsByObject(input.verifiedHeads);\n const advances: AccessManifestCheckpointAdvance[] = [];\n\n for (const [key, headsByHash] of headsByObject) {\n if (headsByHash.size !== 1) {\n throw new KeyingVerificationError(\n \"equivocation\",\n `projection declares conflicting access manifest heads for ${key}`,\n );\n }\n const head = headsByHash.values().next().value;\n if (!head) {\n continue;\n }\n const predecessors = [\n ...(evidenceByObject.get(key)?.values() ?? []),\n ].filter((manifest) => manifest.manifestHash !== head.manifestHash);\n advances.push({ head, predecessors });\n }\n\n return advances;\n}\n\nexport async function validateAccessManifestCheckpoints(input: {\n readonly execSql: ExecSql;\n readonly policies: readonly PrincipalPolicyCheckpointEvidence[];\n readonly stillCurrent?: (() => boolean) | undefined;\n readonly verifiedHeads: readonly VerifiedAccessManifestCheckpointEvidence[];\n readonly verifiedManifests: readonly VerifiedAccessManifestCheckpointEvidence[];\n}): Promise<void> {\n await validateKeyingCheckpointsAtomically({\n access: accessManifestCheckpointAdvances(input),\n execSql: input.execSql,\n policies: input.policies,\n stillCurrent: input.stillCurrent,\n });\n}\n\nexport async function enforceAccessManifestCheckpoints(input: {\n readonly execSql: ExecSql;\n readonly organizationId?: string | undefined;\n readonly documentPurgeCheckpoint?: DocumentPurgeCheckpoint | undefined;\n readonly policies: readonly PrincipalPolicyCheckpointEvidence[];\n readonly stillCurrent?: (() => boolean) | undefined;\n readonly verifiedHeads: readonly VerifiedAccessManifestCheckpointEvidence[];\n readonly verifiedManifests: readonly VerifiedAccessManifestCheckpointEvidence[];\n}): Promise<void> {\n await advanceKeyingCheckpointsAtomically({\n access: accessManifestCheckpointAdvances(input),\n documentPurgeCheckpoint: input.documentPurgeCheckpoint,\n execSql: input.execSql,\n organizationId: input.organizationId,\n policies: input.policies,\n stillCurrent: input.stillCurrent,\n });\n}\n"]}
|