@tearleads/client-sdk 0.1.62 → 0.1.64

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.
Files changed (1588) hide show
  1. package/client/organizations/currentPrincipalMutations.js +5 -5
  2. package/client/organizations/currentPrincipalMutations.js.map +1 -1
  3. package/client/organizations/organizationDataUsage.js +1 -1
  4. package/client/organizations/organizationDataUsage.js.map +1 -1
  5. package/client/organizations/organizationGroupHistory.js +1 -1
  6. package/client/organizations/organizationGroupHistory.js.map +1 -1
  7. package/client/organizations/organizationGroupNameHydration.js +3 -3
  8. package/client/organizations/organizationGroupNameHydration.js.map +1 -1
  9. package/client/organizations/organizationHistory.js +2 -2
  10. package/client/organizations/organizationHistory.js.map +1 -1
  11. package/client/organizations/organizationReadModels.js +1 -1
  12. package/client/organizations/organizationReadModels.js.map +1 -1
  13. package/client/organizations/principalContainerMutations.js +1 -1
  14. package/client/organizations/principalContainerMutations.js.map +1 -1
  15. package/client/organizations/principalMutationRecovery.js.map +1 -1
  16. package/client/organizations/principalMutations.js +5 -5
  17. package/client/organizations/principalMutations.js.map +1 -1
  18. package/client/runtime/principalMutationApi.d.ts +1 -1
  19. package/client/runtime/principalMutationApi.js +2 -2
  20. package/client/runtime/principalMutationApi.js.map +1 -1
  21. package/client/runtime/principalMutationDispatch.js +1 -1
  22. package/client/runtime/principalMutationDispatch.js.map +1 -1
  23. package/client/session/index.js +1 -1
  24. package/client/session/index.js.map +1 -1
  25. package/client/session/sessionOrganizationCreation.js +1 -1
  26. package/client/session/sessionOrganizationCreation.js.map +1 -1
  27. package/client/session/sessionPurgeRecovery.js +2 -2
  28. package/client/session/sessionPurgeRecovery.js.map +1 -1
  29. package/data/documents/blob/shared/projection.js +1 -1
  30. package/data/documents/blob/shared/projection.js.map +1 -1
  31. package/data/documents/shared/projectionContentKeys.js +1 -1
  32. package/data/documents/shared/projectionContentKeys.js.map +1 -1
  33. package/data/documents/shared/syncResponseAuthorization.js +1 -1
  34. package/data/documents/shared/syncResponseAuthorization.js.map +1 -1
  35. package/data/keyingProjectionVerification/checkpoints/accessManifestCheckpointEnforcement.js +61 -0
  36. package/data/keyingProjectionVerification/checkpoints/accessManifestCheckpointEnforcement.js.map +1 -0
  37. package/data/keyingProjectionVerification/checkpoints/bundleVerification.js +61 -0
  38. package/data/keyingProjectionVerification/checkpoints/bundleVerification.js.map +1 -0
  39. package/data/keyingProjectionVerification/checkpoints/checkpointContext.d.ts +45 -0
  40. package/data/keyingProjectionVerification/checkpoints/checkpointContext.js +120 -0
  41. package/data/keyingProjectionVerification/checkpoints/checkpointContext.js.map +1 -0
  42. package/data/keyingProjectionVerification/checkpoints/manifestCheckpointVerification.js +64 -0
  43. package/data/keyingProjectionVerification/checkpoints/manifestCheckpointVerification.js.map +1 -0
  44. package/data/keyingProjectionVerification/container/containerAncestorCitations.js +164 -0
  45. package/data/keyingProjectionVerification/container/containerAncestorCitations.js.map +1 -0
  46. package/data/keyingProjectionVerification/container/containerCreateManifest.js +28 -0
  47. package/data/keyingProjectionVerification/container/containerDestinationVerification.js +51 -0
  48. package/data/keyingProjectionVerification/container/containerDestinationVerification.js.map +1 -0
  49. package/data/keyingProjectionVerification/container/containerManifestVerification.js +285 -0
  50. package/data/keyingProjectionVerification/container/containerManifestVerification.js.map +1 -0
  51. package/data/keyingProjectionVerification/container/containerPathVerification.js +51 -0
  52. package/data/keyingProjectionVerification/container/containerPathVerification.js.map +1 -0
  53. package/data/keyingProjectionVerification/container/containerProjectionVerification.d.ts +25 -0
  54. package/data/keyingProjectionVerification/container/containerProjectionVerification.js +254 -0
  55. package/data/keyingProjectionVerification/container/containerProjectionVerification.js.map +1 -0
  56. package/data/keyingProjectionVerification/document/documentDependencyPaths.d.ts +17 -0
  57. package/data/keyingProjectionVerification/document/documentDependencyPaths.js +70 -0
  58. package/data/keyingProjectionVerification/document/documentDependencyPaths.js.map +1 -0
  59. package/data/keyingProjectionVerification/document/documentManifestPolicies.js +32 -0
  60. package/data/keyingProjectionVerification/document/documentManifestPolicies.js.map +1 -0
  61. package/data/keyingProjectionVerification/document/documentManifestPredecessor.js +12 -0
  62. package/data/keyingProjectionVerification/document/documentManifestVerification.js +135 -0
  63. package/data/keyingProjectionVerification/document/documentManifestVerification.js.map +1 -0
  64. package/data/keyingProjectionVerification/document/documentProjectionVerification.d.ts +24 -0
  65. package/data/keyingProjectionVerification/document/documentProjectionVerification.js +172 -0
  66. package/data/keyingProjectionVerification/document/documentProjectionVerification.js.map +1 -0
  67. package/data/keyingProjectionVerification/documentPurge/documentPurgeCheckpointCurrency.js +100 -0
  68. package/data/keyingProjectionVerification/documentPurge/documentPurgeCheckpointCurrency.js.map +1 -0
  69. package/data/keyingProjectionVerification/documentPurge/documentPurgeCheckpointEnforcement.js +8 -0
  70. package/data/keyingProjectionVerification/documentPurge/documentPurgeCheckpointEnforcement.js.map +1 -0
  71. package/data/keyingProjectionVerification/documentPurge/documentPurgeDocumentChainVerification.js +177 -0
  72. package/data/keyingProjectionVerification/documentPurge/documentPurgeDocumentChainVerification.js.map +1 -0
  73. package/data/keyingProjectionVerification/documentPurge/documentPurgePolicyCheckpoints.js +17 -0
  74. package/data/keyingProjectionVerification/documentPurge/documentPurgePolicyCheckpoints.js.map +1 -0
  75. package/data/keyingProjectionVerification/documentPurge/documentPurgePolicyCurrency.js +55 -0
  76. package/data/keyingProjectionVerification/documentPurge/documentPurgePolicyCurrency.js.map +1 -0
  77. package/data/keyingProjectionVerification/documentPurge/documentPurgePrincipalEvidence.js +116 -0
  78. package/data/keyingProjectionVerification/documentPurge/documentPurgePrincipalEvidence.js.map +1 -0
  79. package/data/keyingProjectionVerification/documentPurge/documentPurgeProofVerification.d.ts +34 -0
  80. package/data/keyingProjectionVerification/documentPurge/documentPurgeProofVerification.js +208 -0
  81. package/data/keyingProjectionVerification/documentPurge/documentPurgeProofVerification.js.map +1 -0
  82. package/data/keyingProjectionVerification/index.d.ts +4 -4
  83. package/data/keyingProjectionVerification/index.js +4 -4
  84. package/data/keyingProjectionVerification/index.js.map +1 -1
  85. package/data/keyingProjectionVerification/principalPolicy/mergeProjectionPolicyEvidence.js +45 -0
  86. package/data/keyingProjectionVerification/principalPolicy/mergeProjectionPolicyEvidence.js.map +1 -0
  87. package/data/keyingProjectionVerification/principalPolicy/organizationFounderBinding.js +41 -0
  88. package/data/keyingProjectionVerification/principalPolicy/organizationFounderBinding.js.map +1 -0
  89. package/data/keyingProjectionVerification/principalPolicy/principalPolicyCache.js +76 -0
  90. package/data/keyingProjectionVerification/principalPolicy/principalPolicyCache.js.map +1 -0
  91. package/data/keyingProjectionVerification/principalPolicy/principalPolicyVerification.js +252 -0
  92. package/data/keyingProjectionVerification/principalPolicy/principalPolicyVerification.js.map +1 -0
  93. package/data/keyingProjectionVerification/principalPolicy/projectionAuthorizationEvidence.js +63 -0
  94. package/data/keyingProjectionVerification/principalPolicy/projectionAuthorizationEvidence.js.map +1 -0
  95. package/data/keyingProjectionVerification/principalPolicy/projectionPolicyEvidence.js +23 -0
  96. package/data/keyingProjectionVerification/principalPolicy/projectionPolicyEvidence.js.map +1 -0
  97. package/data/keyingProjectionVerification/principalPolicy/resolvedPrincipalPolicy.js +72 -0
  98. package/data/keyingProjectionVerification/principalPolicy/resolvedPrincipalPolicy.js.map +1 -0
  99. package/package.json +1 -1
  100. package/stores/container-contents/accessRestorationSweep.js +1 -1
  101. package/stores/container-contents/accessRestorationSweep.js.map +1 -1
  102. package/stores/container-contents/containerContentsStore.d.ts +1 -1
  103. package/stores/container-contents/containerContentsStore.js +12 -12
  104. package/stores/container-contents/containerContentsStore.js.map +1 -1
  105. package/stores/container-contents/containerState/containerStateMap.js.map +1 -0
  106. package/stores/container-contents/containerState/containerStatePersistence.js +57 -0
  107. package/stores/container-contents/containerState/containerStatePersistence.js.map +1 -0
  108. package/stores/container-contents/containerState/missingContainerState.js +10 -0
  109. package/stores/container-contents/containerState/missingContainerState.js.map +1 -0
  110. package/stores/container-contents/containerState/missingSyncedContainerState.js.map +1 -0
  111. package/stores/container-contents/containerState/reconcilableContainer.d.ts +48 -0
  112. package/stores/container-contents/containerState/reconcilableContainer.js.map +1 -0
  113. package/stores/container-contents/documentWork/documentRecovery.js +114 -0
  114. package/stores/container-contents/documentWork/documentRecovery.js.map +1 -0
  115. package/stores/container-contents/documentWork/documentRotation.js +13 -0
  116. package/stores/container-contents/documentWork/documentRotation.js.map +1 -0
  117. package/stores/container-contents/documentWork/index.js +29 -0
  118. package/stores/container-contents/documentWork/index.js.map +1 -0
  119. package/stores/container-contents/hydration/backgroundHydration.js +32 -0
  120. package/stores/container-contents/hydration/backgroundHydration.js.map +1 -0
  121. package/stores/container-contents/hydration/remoteHydrationRequest.js +245 -0
  122. package/stores/container-contents/hydration/remoteHydrationRequest.js.map +1 -0
  123. package/stores/container-contents/hydration/startupHydration.js +110 -0
  124. package/stores/container-contents/hydration/startupHydration.js.map +1 -0
  125. package/stores/container-contents/index.d.ts +3 -3
  126. package/stores/container-contents/index.js +2 -2
  127. package/stores/container-contents/index.js.map +1 -1
  128. package/stores/container-contents/localRefresh.js +2 -2
  129. package/stores/container-contents/localRefresh.js.map +1 -1
  130. package/stores/container-contents/operations/containerPurgeCore.js +98 -0
  131. package/stores/container-contents/operations/containerPurgeCore.js.map +1 -0
  132. package/stores/container-contents/operations/emptyTrashOperation.js.map +1 -0
  133. package/stores/container-contents/operations/groupRewrapOperation.js +52 -0
  134. package/stores/container-contents/operations/groupRewrapOperation.js.map +1 -0
  135. package/stores/container-contents/operations/index.js +301 -0
  136. package/stores/container-contents/operations/index.js.map +1 -0
  137. package/stores/container-contents/operations/purgeContainerOperation.js.map +1 -0
  138. package/stores/container-contents/operations/reportShareFailure.js +44 -0
  139. package/stores/container-contents/operations/reportShareFailure.js.map +1 -0
  140. package/stores/container-contents/operations/setContainerIconOperation.js +47 -0
  141. package/stores/container-contents/operations/setContainerIconOperation.js.map +1 -0
  142. package/stores/container-contents/operations/shareOperations.js +90 -0
  143. package/stores/container-contents/operations/shareOperations.js.map +1 -0
  144. package/stores/container-contents/remoteEvents/remoteBackedContainerState.js.map +1 -0
  145. package/stores/container-contents/remoteEvents/remoteContainerIngestion.js +59 -0
  146. package/stores/container-contents/remoteEvents/remoteContainerIngestion.js.map +1 -0
  147. package/stores/container-contents/remoteEvents/remoteEventProjectionInvalidation.js +36 -0
  148. package/stores/container-contents/remoteEvents/remoteEventProjectionInvalidation.js.map +1 -0
  149. package/stores/container-contents/remoteEvents/remoteEventSync.js +38 -0
  150. package/stores/container-contents/remoteEvents/remoteEventSync.js.map +1 -0
  151. package/stores/container-contents/remoteWrites/remoteWriteGuards.js +54 -0
  152. package/stores/container-contents/remoteWrites/remoteWriteGuards.js.map +1 -0
  153. package/stores/container-contents/remoteWrites/remoteWriteQueue.js +51 -0
  154. package/stores/container-contents/remoteWrites/remoteWriteQueue.js.map +1 -0
  155. package/stores/container-contents/remoteWrites/writeGeneration.js.map +1 -0
  156. package/stores/container-contents/state.d.ts +1 -1
  157. package/stores/container-contents/state.js +2 -2
  158. package/stores/container-contents/state.js.map +1 -1
  159. package/stores/container-contents/syncAgent/index.d.ts +8 -0
  160. package/stores/container-contents/syncAgent/index.js +241 -0
  161. package/stores/container-contents/syncAgent/index.js.map +1 -0
  162. package/stores/container-contents/syncAgent/metadataSyncSignal.js +37 -0
  163. package/stores/container-contents/syncAgent/metadataSyncSignal.js.map +1 -0
  164. package/stores/container-contents/syncAgent/syncAgentTypes.d.ts +81 -0
  165. package/stores/container-contents/syncAgent/syncAgentTypes.js.map +1 -0
  166. package/stores/container-contents/syncAgent/syncLaneIteration.js +237 -0
  167. package/stores/container-contents/syncAgent/syncLaneIteration.js.map +1 -0
  168. package/stores/container-contents/systemContainers/existingSystemContainer.js +58 -0
  169. package/stores/container-contents/systemContainers/existingSystemContainer.js.map +1 -0
  170. package/stores/container-contents/systemContainers/organizationMetadataSystemContainer.js +44 -0
  171. package/stores/container-contents/systemContainers/organizationMetadataSystemContainer.js.map +1 -0
  172. package/stores/container-contents/systemContainers/systemContainerHydration.js +30 -0
  173. package/stores/container-contents/systemContainers/systemContainerHydration.js.map +1 -0
  174. package/stores/container-contents/systemContainers/systemContainerIcon.js +42 -0
  175. package/stores/container-contents/systemContainers/systemContainerIcon.js.map +1 -0
  176. package/stores/container-contents/systemContainers/systemContainerLookup.js.map +1 -0
  177. package/stores/container-contents/systemContainers/systemContainerPostCreate.js +109 -0
  178. package/stores/container-contents/systemContainers/systemContainerPostCreate.js.map +1 -0
  179. package/stores/container-contents/systemContainers/systemContainerPromotion.js +49 -0
  180. package/stores/container-contents/systemContainers/systemContainerPromotion.js.map +1 -0
  181. package/stores/container-contents/types.d.ts +2 -2
  182. package/stores/container-contents/types.js.map +1 -1
  183. package/stores/documents/documentStore/attachmentUpload/attachmentSourceUpload.js +39 -0
  184. package/stores/documents/documentStore/attachmentUpload/attachmentSourceUpload.js.map +1 -0
  185. package/stores/documents/documentStore/attachmentUpload/attachmentStaging.js +84 -0
  186. package/stores/documents/documentStore/attachmentUpload/attachmentStaging.js.map +1 -0
  187. package/stores/documents/documentStore/attachmentUpload/attachmentUploadAttempt.js +97 -0
  188. package/stores/documents/documentStore/attachmentUpload/attachmentUploadAttempt.js.map +1 -0
  189. package/stores/documents/documentStore/attachmentUpload/attachmentUploadLane.js +49 -0
  190. package/stores/documents/documentStore/attachmentUpload/attachmentUploadLane.js.map +1 -0
  191. package/stores/documents/documentStore/attachmentUpload/attachmentUploadResume.js +95 -0
  192. package/stores/documents/documentStore/attachmentUpload/attachmentUploadResume.js.map +1 -0
  193. package/stores/documents/documentStore/attachments/attachmentDetachState.js +54 -0
  194. package/stores/documents/documentStore/attachments/attachmentDetachState.js.map +1 -0
  195. package/stores/documents/documentStore/attachments/attachmentHydration.js +90 -0
  196. package/stores/documents/documentStore/attachments/attachmentHydration.js.map +1 -0
  197. package/stores/documents/documentStore/attachments/attachmentHydrationCommit.js +53 -0
  198. package/stores/documents/documentStore/attachments/attachmentHydrationCommit.js.map +1 -0
  199. package/stores/documents/documentStore/attachments/attachmentIntents.js +39 -0
  200. package/stores/documents/documentStore/attachments/attachmentIntents.js.map +1 -0
  201. package/stores/documents/documentStore/attachments/attachmentMutationPersistence.js +37 -0
  202. package/stores/documents/documentStore/attachments/attachmentMutationPersistence.js.map +1 -0
  203. package/stores/documents/documentStore/attachments/attachmentPersistFollowup.js.map +1 -0
  204. package/stores/documents/documentStore/attachments/attachmentPersistence.js +106 -0
  205. package/stores/documents/documentStore/attachments/attachmentPersistence.js.map +1 -0
  206. package/stores/documents/documentStore/attachments/attachmentRemoval.js +136 -0
  207. package/stores/documents/documentStore/attachments/attachmentRemoval.js.map +1 -0
  208. package/stores/documents/documentStore/attachments/attachmentSnapshot.js.map +1 -0
  209. package/stores/documents/documentStore/attachments/attachmentWriteGeneration.js +32 -0
  210. package/stores/documents/documentStore/attachments/attachmentWriteGeneration.js.map +1 -0
  211. package/stores/documents/documentStore/attachments/index.js +241 -0
  212. package/stores/documents/documentStore/attachments/index.js.map +1 -0
  213. package/stores/documents/documentStore/history/documentHistoryCompaction.js +67 -0
  214. package/stores/documents/documentStore/history/documentHistoryCompaction.js.map +1 -0
  215. package/stores/documents/documentStore/history/durableDocumentReload.js +79 -0
  216. package/stores/documents/documentStore/history/durableDocumentReload.js.map +1 -0
  217. package/stores/documents/documentStore/history/historyRebuild.js +75 -0
  218. package/stores/documents/documentStore/history/historyRebuild.js.map +1 -0
  219. package/stores/documents/documentStore/index.d.ts +8 -0
  220. package/stores/documents/documentStore/index.js +215 -0
  221. package/stores/documents/documentStore/index.js.map +1 -0
  222. package/stores/documents/documentStore/initialization/deferredInitialUpdate.js +116 -0
  223. package/stores/documents/documentStore/initialization/deferredInitialUpdate.js.map +1 -0
  224. package/stores/documents/documentStore/initialization/index.js +330 -0
  225. package/stores/documents/documentStore/initialization/index.js.map +1 -0
  226. package/stores/documents/documentStore/initialization/initializationAttachments.js +9 -0
  227. package/stores/documents/documentStore/initialization/initializationAttachments.js.map +1 -0
  228. package/stores/documents/documentStore/initialization/initializationHistory.js +33 -0
  229. package/stores/documents/documentStore/initialization/initializationHistory.js.map +1 -0
  230. package/stores/documents/documentStore/initialization/initializationRecovery.js +107 -0
  231. package/stores/documents/documentStore/initialization/initializationRecovery.js.map +1 -0
  232. package/stores/documents/documentStore/mutationIdentityRevalidation.js.map +1 -1
  233. package/stores/documents/documentStore/mutations.js +2 -2
  234. package/stores/documents/documentStore/mutations.js.map +1 -1
  235. package/stores/documents/documentStore/pendingUpdateRefusal.js +1 -1
  236. package/stores/documents/documentStore/pendingUpdateRefusal.js.map +1 -1
  237. package/stores/documents/documentStore/persistence.js +3 -3
  238. package/stores/documents/documentStore/persistence.js.map +1 -1
  239. package/stores/documents/documentStore/rotation/index.js +307 -0
  240. package/stores/documents/documentStore/rotation/index.js.map +1 -0
  241. package/stores/documents/documentStore/rotation/rotationProvenance.js +52 -0
  242. package/stores/documents/documentStore/rotation/rotationProvenance.js.map +1 -0
  243. package/stores/documents/documentStore/rotation/rotationSettlement.js +222 -0
  244. package/stores/documents/documentStore/rotation/rotationSettlement.js.map +1 -0
  245. package/stores/documents/documentStore/rows.js +2 -2
  246. package/stores/documents/documentStore/rows.js.map +1 -1
  247. package/stores/documents/documentStore/state.js +1 -1
  248. package/stores/documents/documentStore/state.js.map +1 -1
  249. package/stores/documents/documentStore/sync/index.js +299 -0
  250. package/stores/documents/documentStore/sync/index.js.map +1 -0
  251. package/stores/documents/documentStore/sync/pullContinuationInvalidation.js +61 -0
  252. package/stores/documents/documentStore/sync/pullContinuationInvalidation.js.map +1 -0
  253. package/stores/documents/documentStore/sync/remoteRevalidationTelemetry.js +15 -0
  254. package/stores/documents/documentStore/sync/remoteRevalidationTelemetry.js.map +1 -0
  255. package/stores/documents/documentStore/sync/remoteWork.js.map +1 -0
  256. package/stores/documents/documentStore/sync/syncAcceptedUpdateIds.js.map +1 -0
  257. package/stores/documents/documentStore/sync/syncAttachmentSettlement.js +72 -0
  258. package/stores/documents/documentStore/sync/syncAttachmentSettlement.js.map +1 -0
  259. package/stores/documents/documentStore/sync/syncAttachments.js +323 -0
  260. package/stores/documents/documentStore/sync/syncAttachments.js.map +1 -0
  261. package/stores/documents/documentStore/sync/syncDetachedAttachments.js +129 -0
  262. package/stores/documents/documentStore/sync/syncDetachedAttachments.js.map +1 -0
  263. package/stores/documents/documentStore/sync/syncFinalize.js +204 -0
  264. package/stores/documents/documentStore/sync/syncFinalize.js.map +1 -0
  265. package/stores/documents/documentStore/sync/syncGeneration.js.map +1 -0
  266. package/stores/documents/documentStore/sync/syncOutgoingCoverage.js +96 -0
  267. package/stores/documents/documentStore/sync/syncOutgoingCoverage.js.map +1 -0
  268. package/stores/documents/documentStore/sync/syncRemoteSignals.js +67 -0
  269. package/stores/documents/documentStore/sync/syncRemoteSignals.js.map +1 -0
  270. package/stores/documents/documentStore/sync/syncRequest.js +157 -0
  271. package/stores/documents/documentStore/sync/syncRequest.js.map +1 -0
  272. package/stores/documents/documentStore/sync/syncShared.js +211 -0
  273. package/stores/documents/documentStore/sync/syncShared.js.map +1 -0
  274. package/stores/documents/documentStore/sync/syncUpdateImport.js +62 -0
  275. package/stores/documents/documentStore/sync/syncUpdateImport.js.map +1 -0
  276. package/stores/documents/documentStore/sync/versionCoverage.js +45 -0
  277. package/stores/documents/index.d.ts +1 -1
  278. package/stores/documents/index.js +1 -1
  279. package/stores/local-projection/localProjectionStore.d.ts +1 -1
  280. package/stores/local-projection/localProjectionStore.js +1 -1
  281. package/stores/local-projection/localProjectionStore.js.map +1 -1
  282. package/stores/local-projection/registry.d.ts +1 -1
  283. package/stores/local-projection/types.d.ts +1 -1
  284. package/workflows/blobs/detach.js +1 -1
  285. package/workflows/blobs/detach.js.map +1 -1
  286. package/workflows/blobs/hydration/blobChunkDecryption.js +34 -0
  287. package/workflows/blobs/hydration/blobChunkDecryption.js.map +1 -0
  288. package/workflows/blobs/hydration/decrypt.d.ts +12 -0
  289. package/workflows/blobs/hydration/decrypt.js +246 -0
  290. package/workflows/blobs/hydration/decrypt.js.map +1 -0
  291. package/workflows/blobs/hydration/hydrate.d.ts +56 -0
  292. package/workflows/blobs/hydration/hydrate.js +190 -0
  293. package/workflows/blobs/hydration/hydrate.js.map +1 -0
  294. package/workflows/blobs/hydration/hydrationResults.js +23 -0
  295. package/workflows/blobs/hydration/hydrationResults.js.map +1 -0
  296. package/workflows/blobs/index.d.ts +3 -3
  297. package/workflows/blobs/index.js +3 -3
  298. package/workflows/blobs/index.js.map +1 -1
  299. package/workflows/blobs/upload/automaticMultipartUpload.js +9 -0
  300. package/workflows/blobs/upload/automaticMultipartUpload.js.map +1 -0
  301. package/workflows/blobs/upload/index.d.ts +10 -0
  302. package/workflows/blobs/upload/index.js +243 -0
  303. package/workflows/blobs/upload/index.js.map +1 -0
  304. package/workflows/blobs/upload/multipartFirstParts.js +82 -0
  305. package/workflows/blobs/upload/multipartFirstParts.js.map +1 -0
  306. package/workflows/blobs/upload/multipartStageFailures.js +36 -0
  307. package/workflows/blobs/upload/multipartStageFailures.js.map +1 -0
  308. package/workflows/blobs/upload/multipartStageResolution.js.map +1 -0
  309. package/workflows/blobs/upload/multipartUpload.js +274 -0
  310. package/workflows/blobs/upload/multipartUpload.js.map +1 -0
  311. package/workflows/blobs/verification/attachmentBindingVerification.js +49 -0
  312. package/workflows/blobs/verification/attachmentBindingVerification.js.map +1 -0
  313. package/workflows/blobs/verification/attachmentDecryptor.js +41 -0
  314. package/workflows/blobs/verification/attachmentDecryptor.js.map +1 -0
  315. package/workflows/blobs/verification/attachmentKeyAuthenticator.js +68 -0
  316. package/workflows/blobs/verification/attachmentKeyAuthenticator.js.map +1 -0
  317. package/workflows/blobs/verification/retainedAttachmentVerification.js +40 -0
  318. package/workflows/blobs/verification/retainedAttachmentVerification.js.map +1 -0
  319. package/workflows/blobs/verification/verifiedWrapScope.js +20 -0
  320. package/workflows/blobs/verification/verifiedWrapScope.js.map +1 -0
  321. package/workflows/blobs/verification/writerProjection.js +29 -0
  322. package/workflows/blobs/verification/writerProjection.js.map +1 -0
  323. package/workflows/container-contents/container-state/create/createAdoption.js +193 -0
  324. package/workflows/container-contents/container-state/create/createAdoption.js.map +1 -0
  325. package/workflows/container-contents/container-state/create/createChild.js +217 -0
  326. package/workflows/container-contents/container-state/create/createChild.js.map +1 -0
  327. package/workflows/container-contents/container-state/create/createIntentDepth.js +36 -0
  328. package/workflows/container-contents/container-state/create/createIntentDepth.js.map +1 -0
  329. package/workflows/container-contents/container-state/create/createIntentSettlement.js.map +1 -0
  330. package/workflows/container-contents/container-state/create/createIntentSync.js +354 -0
  331. package/workflows/container-contents/container-state/create/createIntentSync.js.map +1 -0
  332. package/workflows/container-contents/container-state/create/createTerminalFailure.js +19 -0
  333. package/workflows/container-contents/container-state/create/createTerminalFailure.js.map +1 -0
  334. package/workflows/container-contents/container-state/create/createWithMetadata.js +270 -0
  335. package/workflows/container-contents/container-state/create/createWithMetadata.js.map +1 -0
  336. package/workflows/container-contents/container-state/create/createWithMetadataPlan.js +68 -0
  337. package/workflows/container-contents/container-state/create/createWithMetadataPlan.js.map +1 -0
  338. package/workflows/container-contents/container-state/purge/localPurgeScope.js +49 -0
  339. package/workflows/container-contents/container-state/purge/localPurgeScope.js.map +1 -0
  340. package/workflows/container-contents/container-state/purge/purgeTree.js +298 -0
  341. package/workflows/container-contents/container-state/purge/purgeTree.js.map +1 -0
  342. package/workflows/container-contents/container-state/purge/purgeTreeCollection.js.map +1 -0
  343. package/workflows/container-contents/container-state/purge/purgeTreeContainerDeletion.js +75 -0
  344. package/workflows/container-contents/container-state/purge/purgeTreeContainerDeletion.js.map +1 -0
  345. package/workflows/container-contents/container-state/purge/purgeTreeScope.js +175 -0
  346. package/workflows/container-contents/container-state/purge/purgeTreeScope.js.map +1 -0
  347. package/workflows/container-contents/container-state/purge/readLocalPurgeScope.js +18 -0
  348. package/workflows/container-contents/container-state/purge/readLocalPurgeScope.js.map +1 -0
  349. package/workflows/container-contents/container-state/remote.js +3 -3
  350. package/workflows/container-contents/container-state/remote.js.map +1 -1
  351. package/workflows/container-contents/container-state/share/groupGrantVerification.js +71 -0
  352. package/workflows/container-contents/container-state/share/groupGrantVerification.js.map +1 -0
  353. package/workflows/container-contents/container-state/share/groupShareEpoch.js +16 -0
  354. package/workflows/container-contents/container-state/share/groupShareEpoch.js.map +1 -0
  355. package/workflows/container-contents/container-state/share/index.js +283 -0
  356. package/workflows/container-contents/container-state/share/index.js.map +1 -0
  357. package/workflows/container-contents/container-state/share/sharePersistence.js +136 -0
  358. package/workflows/container-contents/container-state/share/sharePersistence.js.map +1 -0
  359. package/workflows/container-contents/documentDiscovery/documentDiscoveryApply.js +1 -1
  360. package/workflows/container-contents/documentDiscovery/documentDiscoveryApply.js.map +1 -1
  361. package/workflows/container-contents/documentDiscovery/index.js +1 -1
  362. package/workflows/container-contents/documentDiscovery/index.js.map +1 -1
  363. package/workflows/container-contents/documentLinks/index.d.ts +1 -1
  364. package/workflows/container-contents/documentLinks/index.js.map +1 -1
  365. package/workflows/container-contents/info/containerInfo.d.ts +1 -1
  366. package/workflows/container-contents/metadata/metadataIncomingUpdateIsolation.js +1 -1
  367. package/workflows/container-contents/metadata/metadataIncomingUpdateIsolation.js.map +1 -1
  368. package/workflows/container-contents/metadata/metadataSyncErrors.js +1 -1
  369. package/workflows/container-contents/metadata/metadataSyncErrors.js.map +1 -1
  370. package/workflows/container-contents/remoteHydration/destination/destinationPrefetch.js.map +1 -0
  371. package/workflows/container-contents/remoteHydration/destination/destinationRoleCache.js.map +1 -0
  372. package/workflows/container-contents/remoteHydration/destination/destinationRootReload.js +10 -0
  373. package/workflows/container-contents/remoteHydration/destination/destinationRootReload.js.map +1 -0
  374. package/workflows/container-contents/remoteHydration/destination/replacementBinding.js +75 -0
  375. package/workflows/container-contents/remoteHydration/destination/replacementBinding.js.map +1 -0
  376. package/workflows/container-contents/remoteHydration/destination/verifiedDestination.js +296 -0
  377. package/workflows/container-contents/remoteHydration/destination/verifiedDestination.js.map +1 -0
  378. package/workflows/container-contents/remoteHydration/index.js +4 -4
  379. package/workflows/container-contents/remoteHydration/index.js.map +1 -1
  380. package/workflows/container-contents/remoteHydration/lanes/childIndex.js.map +1 -0
  381. package/workflows/container-contents/remoteHydration/lanes/laneFetchMarkers.js +21 -0
  382. package/workflows/container-contents/remoteHydration/lanes/laneFetchMarkers.js.map +1 -0
  383. package/workflows/container-contents/remoteHydration/lanes/parentLaneFetch.js +61 -0
  384. package/workflows/container-contents/remoteHydration/lanes/parentLaneFetch.js.map +1 -0
  385. package/workflows/container-contents/remoteHydration/lanes/parentLaneQueue.js.map +1 -0
  386. package/workflows/container-contents/remoteHydration/principalPolicyCache.js +1 -1
  387. package/workflows/container-contents/remoteHydration/principalPolicyCache.js.map +1 -1
  388. package/workflows/container-contents/remoteHydration/reconciliation.js +2 -2
  389. package/workflows/container-contents/remoteHydration/reconciliation.js.map +1 -1
  390. package/workflows/container-contents/remoteHydration/remoteContainers/containerStateFingerprint.js.map +1 -0
  391. package/workflows/container-contents/remoteHydration/remoteContainers/insertRemoteContainer.js +135 -0
  392. package/workflows/container-contents/remoteHydration/remoteContainers/insertRemoteContainer.js.map +1 -0
  393. package/workflows/container-contents/remoteHydration/remoteContainers/remoteContainerPageHydration.js +244 -0
  394. package/workflows/container-contents/remoteHydration/remoteContainers/remoteContainerPageHydration.js.map +1 -0
  395. package/workflows/container-contents/remoteHydration/remoteContainers/remoteContainerState.js +263 -0
  396. package/workflows/container-contents/remoteHydration/remoteContainers/remoteContainerState.js.map +1 -0
  397. package/workflows/container-contents/remoteHydration/remoteContainers/remoteContainerTimestamps.js.map +1 -0
  398. package/workflows/container-contents/remoteHydration/tombstoneApplication.js +2 -2
  399. package/workflows/container-contents/remoteHydration/tombstoneApplication.js.map +1 -1
  400. package/workflows/container-contents/tombstones/documentPurge.d.ts +1 -1
  401. package/workflows/container-contents/tombstones/documentPurge.js.map +1 -1
  402. package/workflows/containers/child/create/createProjection.d.ts +6 -0
  403. package/workflows/containers/child/create/createProjection.js +43 -0
  404. package/workflows/containers/child/create/createProjection.js.map +1 -0
  405. package/workflows/containers/child/create/createSubmission.d.ts +56 -0
  406. package/workflows/containers/child/create/createSubmission.js +43 -0
  407. package/workflows/containers/child/create/createSubmission.js.map +1 -0
  408. package/workflows/containers/child/create/index.d.ts +24 -0
  409. package/workflows/containers/child/create/index.js +335 -0
  410. package/workflows/containers/child/create/index.js.map +1 -0
  411. package/workflows/containers/child/move/index.d.ts +23 -0
  412. package/workflows/containers/child/move/index.js +268 -0
  413. package/workflows/containers/child/move/index.js.map +1 -0
  414. package/workflows/containers/child/move/moveArtifacts.js +102 -0
  415. package/workflows/containers/child/move/moveArtifacts.js.map +1 -0
  416. package/workflows/containers/child/move/moveRotation.js +88 -0
  417. package/workflows/containers/child/move/moveRotation.js.map +1 -0
  418. package/workflows/containers/child/move/moveWraps.js +49 -0
  419. package/workflows/containers/child/move/moveWraps.js.map +1 -0
  420. package/workflows/containers/child/mutationSubmit.js +1 -1
  421. package/workflows/containers/child/mutationSubmit.js.map +1 -1
  422. package/workflows/containers/child/rekey/carriedDescendantRekeys.js +126 -0
  423. package/workflows/containers/child/rekey/carriedDescendantRekeys.js.map +1 -0
  424. package/workflows/containers/child/rekey/index.d.ts +32 -0
  425. package/workflows/containers/child/rekey/index.js +227 -0
  426. package/workflows/containers/child/rekey/index.js.map +1 -0
  427. package/workflows/containers/child/rekey/keyringOverrideLineage.d.ts +22 -0
  428. package/workflows/containers/child/rekey/keyringOverrideLineage.js +39 -0
  429. package/workflows/containers/child/rekey/rekeyProjection.d.ts +46 -0
  430. package/workflows/containers/child/rekey/rekeyProjection.js +151 -0
  431. package/workflows/containers/child/rekey/rekeyProjection.js.map +1 -0
  432. package/workflows/containers/child/rekey/rekeyRemote.d.ts +24 -0
  433. package/workflows/containers/child/rekey/rekeyRemote.js +64 -0
  434. package/workflows/containers/child/rekey/rekeyRemote.js.map +1 -0
  435. package/workflows/containers/child/revoke.js +5 -5
  436. package/workflows/containers/child/revoke.js.map +1 -1
  437. package/workflows/containers/child/rotation/replacementPrincipalPolicyReferences.js +19 -0
  438. package/workflows/containers/child/rotation/replacementPrincipalPolicyReferences.js.map +1 -0
  439. package/workflows/containers/child/rotation/rotationContext.js +64 -0
  440. package/workflows/containers/child/rotation/rotationContext.js.map +1 -0
  441. package/workflows/containers/child/rotation/rotationPrincipalPolicies.js +19 -0
  442. package/workflows/containers/child/rotation/rotationPrincipalPolicies.js.map +1 -0
  443. package/workflows/containers/child/rotation/rotationWraps.js +85 -0
  444. package/workflows/containers/child/rotation/rotationWraps.js.map +1 -0
  445. package/workflows/containers/child/share/currentShareGrantMutation.js +82 -0
  446. package/workflows/containers/child/share/currentShareGrantMutation.js.map +1 -0
  447. package/workflows/containers/child/share/currentSharePrincipalPolicy.js +83 -0
  448. package/workflows/containers/child/share/currentSharePrincipalPolicy.js.map +1 -0
  449. package/workflows/containers/child/share/index.d.ts +65 -0
  450. package/workflows/containers/child/share/index.js +256 -0
  451. package/workflows/containers/child/share/index.js.map +1 -0
  452. package/workflows/containers/child/share/runtimeCurrentGroupShare.js +79 -0
  453. package/workflows/containers/child/share/runtimeCurrentGroupShare.js.map +1 -0
  454. package/workflows/containers/child/share/shareAncestorRepair.js +95 -0
  455. package/workflows/containers/child/share/shareAncestorRepair.js.map +1 -0
  456. package/workflows/containers/child/share/shareMaterialization.d.ts +25 -0
  457. package/workflows/containers/child/share/shareMaterialization.js +164 -0
  458. package/workflows/containers/child/share/shareMaterialization.js.map +1 -0
  459. package/workflows/containers/child/share/sharePlanCore.d.ts +82 -0
  460. package/workflows/containers/child/share/sharePlanCore.js +191 -0
  461. package/workflows/containers/child/share/sharePlanCore.js.map +1 -0
  462. package/workflows/containers/child/share/sharePrincipalPolicy.d.ts +51 -0
  463. package/workflows/containers/child/share/sharePrincipalPolicy.js +194 -0
  464. package/workflows/containers/child/share/sharePrincipalPolicy.js.map +1 -0
  465. package/workflows/containers/child/share/shareProjection.js.map +1 -0
  466. package/workflows/containers/index.d.ts +10 -10
  467. package/workflows/containers/index.js +10 -10
  468. package/workflows/containers/index.js.map +1 -1
  469. package/workflows/documents/attachments/attachmentPersistence.d.ts +58 -0
  470. package/workflows/documents/attachments/attachmentPersistence.js.map +1 -0
  471. package/workflows/documents/attachments/blobMutationLock.d.ts +8 -0
  472. package/workflows/documents/attachments/blobMutationLock.js +35 -0
  473. package/workflows/documents/attachments/blobMutationLock.js.map +1 -0
  474. package/workflows/documents/attachments/orphanBlobReclaimState.js.map +1 -0
  475. package/workflows/documents/attachments/orphanBlobReclaims.d.ts +6 -0
  476. package/workflows/documents/attachments/orphanBlobReclaims.js +143 -0
  477. package/workflows/documents/attachments/orphanBlobReclaims.js.map +1 -0
  478. package/workflows/documents/authorAccessFailure.js.map +1 -1
  479. package/workflows/documents/create/createAdoption.js +100 -0
  480. package/workflows/documents/create/createAdoption.js.map +1 -0
  481. package/workflows/documents/create/createProjection.d.ts +14 -0
  482. package/workflows/documents/create/createProjectionFetch.d.ts +27 -0
  483. package/workflows/documents/create/createProjectionFetch.js.map +1 -0
  484. package/workflows/documents/create/createResponse.js +49 -0
  485. package/workflows/documents/create/createResponse.js.map +1 -0
  486. package/workflows/documents/create/documentCreationPersistence.js +16 -0
  487. package/workflows/documents/create/documentCreationPersistence.js.map +1 -0
  488. package/workflows/documents/create/index.d.ts +56 -0
  489. package/workflows/documents/create/index.js +258 -0
  490. package/workflows/documents/create/index.js.map +1 -0
  491. package/workflows/documents/documentMutationCommit.js +1 -1
  492. package/workflows/documents/documentMutationCommit.js.map +1 -1
  493. package/workflows/documents/index.d.ts +17 -17
  494. package/workflows/documents/index.js +14 -14
  495. package/workflows/documents/index.js.map +1 -1
  496. package/workflows/documents/linkSet/index.d.ts +20 -0
  497. package/workflows/documents/linkSet/index.js +290 -0
  498. package/workflows/documents/linkSet/index.js.map +1 -0
  499. package/workflows/documents/linkSet/linkSetAuthority.js +61 -0
  500. package/workflows/documents/linkSet/linkSetAuthority.js.map +1 -0
  501. package/workflows/documents/linkSet/linkSetBlobRewraps.js +143 -0
  502. package/workflows/documents/linkSet/linkSetBlobRewraps.js.map +1 -0
  503. package/workflows/documents/linkSet/linkSetProjectionSeed.js +119 -0
  504. package/workflows/documents/linkSet/linkSetProjectionSeed.js.map +1 -0
  505. package/workflows/documents/linkSet/linkSetRemote.d.ts +23 -0
  506. package/workflows/documents/linkSet/linkSetRemote.js +187 -0
  507. package/workflows/documents/linkSet/linkSetRemote.js.map +1 -0
  508. package/workflows/documents/purge/index.d.ts +53 -0
  509. package/workflows/documents/purge/index.js +204 -0
  510. package/workflows/documents/purge/index.js.map +1 -0
  511. package/workflows/documents/purge/persistedDocumentRemoval.d.ts +44 -0
  512. package/workflows/documents/purge/persistedDocumentRemoval.js +70 -0
  513. package/workflows/documents/purge/persistedDocumentRemoval.js.map +1 -0
  514. package/workflows/documents/purge/subtreePurgeScope.d.ts +8 -0
  515. package/workflows/documents/purge/subtreePurgeScope.js +18 -0
  516. package/workflows/documents/purge/subtreePurgeScope.js.map +1 -0
  517. package/workflows/documents/rotationBaseline.js +1 -1
  518. package/workflows/documents/rotationBaseline.js.map +1 -1
  519. package/workflows/documents/sync/index.d.ts +4 -0
  520. package/workflows/documents/sync/index.js +287 -0
  521. package/workflows/documents/sync/index.js.map +1 -0
  522. package/workflows/documents/sync/initialSync.js +65 -0
  523. package/workflows/documents/sync/initialSync.js.map +1 -0
  524. package/workflows/documents/sync/readOnlyProjectionFailure.js +30 -0
  525. package/workflows/documents/sync/readOnlyProjectionFailure.js.map +1 -0
  526. package/workflows/documents/sync/readOnlySync.d.ts +71 -0
  527. package/workflows/documents/sync/readOnlySync.js +269 -0
  528. package/workflows/documents/sync/readOnlySync.js.map +1 -0
  529. package/workflows/documents/sync/reportDocumentSyncQuarantine.js.map +1 -0
  530. package/workflows/documents/sync/syncAttemptPlanning.js +79 -0
  531. package/workflows/documents/sync/syncAttemptPlanning.js.map +1 -0
  532. package/workflows/documents/sync/syncAttemptState.d.ts +27 -0
  533. package/workflows/documents/sync/syncAttemptState.js.map +1 -0
  534. package/workflows/documents/sync/syncLane.d.ts +20 -0
  535. package/workflows/documents/sync/syncLane.js +94 -0
  536. package/workflows/documents/sync/syncLane.js.map +1 -0
  537. package/workflows/documents/sync/syncResponseResult.js +134 -0
  538. package/workflows/documents/sync/syncResponseResult.js.map +1 -0
  539. package/workflows/documents/sync/syncSubmittedResult.js +119 -0
  540. package/workflows/documents/sync/syncSubmittedResult.js.map +1 -0
  541. package/workflows/documents/sync/syncTrace.js +148 -0
  542. package/workflows/documents/syncFailures/index.js +252 -0
  543. package/workflows/documents/syncFailures/index.js.map +1 -0
  544. package/workflows/documents/syncFailures/syncAbandon.js +51 -0
  545. package/workflows/documents/syncFailures/syncAbandon.js.map +1 -0
  546. package/workflows/documents/syncFailures/syncFailureClassification.d.ts +74 -0
  547. package/workflows/documents/syncFailures/syncFailureClassification.js +122 -0
  548. package/workflows/documents/syncFailures/syncFailureClassification.js.map +1 -0
  549. package/workflows/documents/syncFailures/syncPolicyRepair.js +50 -0
  550. package/workflows/documents/syncFailures/syncPolicyRepair.js.map +1 -0
  551. package/workflows/documents/syncFailures/syncRepairAbandon.js.map +1 -0
  552. package/workflows/documents/syncFailures/syncRepairAccess.js +42 -0
  553. package/workflows/documents/syncFailures/syncRepairAccess.js.map +1 -0
  554. package/workflows/documents/syncPlan/syncContentKeys.d.ts +39 -0
  555. package/workflows/documents/syncPlan/syncContentKeys.js +254 -0
  556. package/workflows/documents/syncPlan/syncContentKeys.js.map +1 -0
  557. package/workflows/documents/syncPlan/syncPlanIdentity.js +203 -0
  558. package/workflows/documents/syncPlan/syncPlanIdentity.js.map +1 -0
  559. package/workflows/documents/syncPlan/syncPlanMaterial.js +306 -0
  560. package/workflows/documents/syncPlan/syncPlanMaterial.js.map +1 -0
  561. package/workflows/documents/syncPlan/syncPlanProjection.js.map +1 -0
  562. package/workflows/documents/syncPlan/syncPlanRequestBounds.js +54 -0
  563. package/workflows/documents/syncPlan/syncPlanRequestBounds.js.map +1 -0
  564. package/workflows/documents/syncRekeys/syncAutomaticContainerRekeys.js +119 -0
  565. package/workflows/documents/syncRekeys/syncAutomaticContainerRekeys.js.map +1 -0
  566. package/workflows/documents/syncRekeys/syncContainerRekeyPreparation.js +227 -0
  567. package/workflows/documents/syncRekeys/syncContainerRekeyPreparation.js.map +1 -0
  568. package/workflows/documents/syncRekeys/syncContainerRekeyProjection.js +79 -0
  569. package/workflows/documents/syncRekeys/syncContainerRekeyProjection.js.map +1 -0
  570. package/workflows/documents/syncRekeys/syncContainerRekeys.js +72 -0
  571. package/workflows/documents/syncRekeys/syncContainerRekeys.js.map +1 -0
  572. package/workflows/documents/syncRekeys/syncRecoveryRekey.d.ts +70 -0
  573. package/workflows/documents/syncRekeys/syncRecoveryRekey.js +120 -0
  574. package/workflows/documents/syncRekeys/syncRecoveryRekey.js.map +1 -0
  575. package/workflows/documents/syncRekeys/syncRekeyCommit.js +18 -0
  576. package/workflows/organizations/groupMetadata/currentGroupMetadataAuthority.js +53 -0
  577. package/workflows/organizations/groupMetadata/currentGroupMetadataAuthority.js.map +1 -0
  578. package/workflows/organizations/groupMetadata/groupMetadataAccess.d.ts +33 -0
  579. package/workflows/organizations/groupMetadata/groupMetadataAccess.js +114 -0
  580. package/workflows/organizations/groupMetadata/groupMetadataAccess.js.map +1 -0
  581. package/workflows/organizations/groupMetadata/groupMetadataBinding.js +19 -0
  582. package/workflows/organizations/groupMetadata/groupMetadataBinding.js.map +1 -0
  583. package/workflows/organizations/groupMetadata/groupMetadataContainerAuthority.js +41 -0
  584. package/workflows/organizations/groupMetadata/groupMetadataContainerAuthority.js.map +1 -0
  585. package/workflows/organizations/groupMetadata/groupMetadataErrors.js +40 -0
  586. package/workflows/organizations/groupMetadata/groupMetadataRootBinding.js +51 -0
  587. package/workflows/organizations/groupMetadata/groupMetadataRootBinding.js.map +1 -0
  588. package/workflows/organizations/groupMetadata/groupMetadataRuntime.js +47 -0
  589. package/workflows/organizations/groupMetadata/groupMetadataRuntime.js.map +1 -0
  590. package/workflows/organizations/groupMetadata/runtimeGroupMetadataAuthority.js +16 -0
  591. package/workflows/organizations/groupMetadata/runtimeGroupMetadataAuthority.js.map +1 -0
  592. package/workflows/organizations/groupNames/currentOrganizationGroupNames.js +72 -0
  593. package/workflows/organizations/groupNames/currentOrganizationGroupNames.js.map +1 -0
  594. package/workflows/organizations/groupNames/groupMembershipName.d.ts +8 -0
  595. package/workflows/organizations/groupNames/groupMembershipName.js +18 -0
  596. package/workflows/organizations/groupNames/groupMembershipName.js.map +1 -0
  597. package/workflows/organizations/groupNames/groupNameUniqueness.js +151 -0
  598. package/workflows/organizations/groupNames/groupNameUniqueness.js.map +1 -0
  599. package/workflows/organizations/groupNames/organizationGroupNamePolicies.js +48 -0
  600. package/workflows/organizations/groupNames/organizationGroupNamePolicies.js.map +1 -0
  601. package/workflows/organizations/groupNames/organizationGroupNames.js +13 -0
  602. package/workflows/organizations/groupNames/organizationGroupNames.js.map +1 -0
  603. package/workflows/organizations/groupPolicy/commitCurrentGroupPolicyMutation.js +139 -0
  604. package/workflows/organizations/groupPolicy/commitCurrentGroupPolicyMutation.js.map +1 -0
  605. package/workflows/organizations/groupPolicy/currentGroupPolicyMutationContext.js +79 -0
  606. package/workflows/organizations/groupPolicy/currentGroupPolicyMutationContext.js.map +1 -0
  607. package/workflows/organizations/groupPolicy/currentPolicyMutationAcknowledgement.js +65 -0
  608. package/workflows/organizations/groupPolicy/currentPolicyMutationAcknowledgement.js.map +1 -0
  609. package/workflows/organizations/groupPolicy/groupPolicyMutationAcknowledgement.js +174 -0
  610. package/workflows/organizations/groupPolicy/groupPolicyMutationAcknowledgement.js.map +1 -0
  611. package/workflows/organizations/groupPolicy/groupPolicyMutationContext.d.ts +58 -0
  612. package/workflows/organizations/groupPolicy/groupPolicyMutationContext.js +166 -0
  613. package/workflows/organizations/groupPolicy/groupPolicyMutationContext.js.map +1 -0
  614. package/workflows/organizations/groupPolicy/groupPolicyMutationEvidence.d.ts +26 -0
  615. package/workflows/organizations/groupPolicy/groupPolicyMutationEvidence.js +64 -0
  616. package/workflows/organizations/groupPolicy/groupPolicyMutationEvidence.js.map +1 -0
  617. package/workflows/organizations/groupPolicy/groupPolicyMutationHead.js +26 -0
  618. package/workflows/organizations/groupPolicy/groupPolicyRequests.js +181 -0
  619. package/workflows/organizations/groupPolicy/groupPolicyRequests.js.map +1 -0
  620. package/workflows/organizations/groupPolicy/groupPolicyVerification.js +74 -0
  621. package/workflows/organizations/groupPolicy/groupPolicyVerification.js.map +1 -0
  622. package/workflows/organizations/groupPolicy/submitGroupPolicyCommit.d.ts +22 -0
  623. package/workflows/organizations/groupPolicy/submitGroupPolicyCommit.js +71 -0
  624. package/workflows/organizations/groupPolicy/submitGroupPolicyCommit.js.map +1 -0
  625. package/workflows/organizations/groups/createCurrentOrganizationGroup.js +85 -0
  626. package/workflows/organizations/groups/createCurrentOrganizationGroup.js.map +1 -0
  627. package/workflows/organizations/groups/deleteCurrentOrganizationGroup.js +35 -0
  628. package/workflows/organizations/groups/deleteCurrentOrganizationGroup.js.map +1 -0
  629. package/workflows/organizations/groups/deleteOrganizationGroup.d.ts +19 -0
  630. package/workflows/organizations/groups/deleteOrganizationGroup.js +75 -0
  631. package/workflows/organizations/groups/deleteOrganizationGroup.js.map +1 -0
  632. package/workflows/organizations/groups/groupCreation.d.ts +21 -0
  633. package/workflows/organizations/groups/groupCreation.js +68 -0
  634. package/workflows/organizations/groups/groupCreation.js.map +1 -0
  635. package/workflows/organizations/groups/organizationGroupDirectory.js +153 -0
  636. package/workflows/organizations/groups/organizationGroupDirectory.js.map +1 -0
  637. package/workflows/organizations/index.d.ts +13 -13
  638. package/workflows/organizations/index.js +12 -12
  639. package/workflows/organizations/index.js.map +1 -1
  640. package/workflows/organizations/policyHistory/groupPolicyHistoryPage.js.map +1 -0
  641. package/workflows/organizations/policyHistory/loadPolicyHistoryDetails.js +78 -0
  642. package/workflows/organizations/policyHistory/loadPolicyHistoryDetails.js.map +1 -0
  643. package/workflows/organizations/policyHistory/organizationPolicyHistoryDetails.js +110 -0
  644. package/workflows/organizations/policyHistory/organizationPolicyHistoryDetails.js.map +1 -0
  645. package/workflows/organizations/policyHistory/organizationPolicyHistoryVerification.js +67 -0
  646. package/workflows/organizations/policyHistory/organizationPolicyHistoryVerification.js.map +1 -0
  647. package/workflows/organizations/policyHistory/policyHistoryAccessDenial.js +19 -0
  648. package/workflows/organizations/policyHistory/policyHistoryAccessDenial.js.map +1 -0
  649. package/workflows/organizations/policyHistory/policyHistoryCache.js +42 -0
  650. package/workflows/organizations/policyHistory/policyHistoryCache.js.map +1 -0
  651. package/workflows/organizations/policyHistory/policyHistoryReadModel.d.ts +9 -0
  652. package/workflows/organizations/policyHistory/policyHistoryTypes.d.ts +58 -0
  653. package/workflows/organizations/principalMutations/acknowledgedDirectoryBindings.js +18 -0
  654. package/workflows/organizations/principalMutations/acknowledgedDirectoryBindings.js.map +1 -0
  655. package/workflows/organizations/principalMutations/currentGroupMutationReferences.js +35 -0
  656. package/workflows/organizations/principalMutations/currentGroupMutationReferences.js.map +1 -0
  657. package/workflows/organizations/principalMutations/currentOrganizationMutationAuthority.js +16 -0
  658. package/workflows/organizations/principalMutations/currentOrganizationMutationAuthority.js.map +1 -0
  659. package/workflows/organizations/principalMutations/currentOrganizationMutationRetention.js +64 -0
  660. package/workflows/organizations/principalMutations/currentOrganizationMutationRetention.js.map +1 -0
  661. package/workflows/organizations/principalMutations/currentPrincipalMutationLease.js +39 -0
  662. package/workflows/organizations/principalMutations/currentPrincipalMutationLease.js.map +1 -0
  663. package/workflows/organizations/principalMutations/principalMutationJournalManagement.d.ts +26 -0
  664. package/workflows/organizations/principalMutations/principalMutationJournalManagement.js +104 -0
  665. package/workflows/organizations/principalMutations/principalMutationJournalManagement.js.map +1 -0
  666. package/workflows/organizations/principalMutations/principalMutationJournalSession.d.ts +26 -0
  667. package/workflows/organizations/principalMutations/principalMutationJournalSession.js +85 -0
  668. package/workflows/organizations/principalMutations/principalMutationJournalSession.js.map +1 -0
  669. package/workflows/organizations/principalMutations/principalMutationReceipt.js +28 -0
  670. package/workflows/organizations/principalMutations/principalMutationReceipt.js.map +1 -0
  671. package/workflows/organizations/principalMutations/principalOperationReceipt.d.ts +5 -0
  672. package/workflows/organizations/principalMutations/principalOperationReceipt.js +36 -0
  673. package/workflows/organizations/principalMutations/principalOperationReceipt.js.map +1 -0
  674. package/workflows/organizations/principalMutations/retainAcknowledgedPrincipalCurrents.d.ts +6 -0
  675. package/workflows/organizations/principalMutations/retainAcknowledgedPrincipalCurrents.js +20 -0
  676. package/workflows/organizations/principalMutations/retainAcknowledgedPrincipalCurrents.js.map +1 -0
  677. package/workflows/organizations/principalMutations/runtimeCurrentGroupMutation.js +113 -0
  678. package/workflows/organizations/principalMutations/runtimeCurrentGroupMutation.js.map +1 -0
  679. package/workflows/organizations/principalMutations/runtimeCurrentOrganizationMutation.js +48 -0
  680. package/workflows/organizations/principalMutations/runtimeCurrentOrganizationMutation.js.map +1 -0
  681. package/workflows/organizations/principalPolicy/index.d.ts +98 -0
  682. package/workflows/organizations/principalPolicy/index.js +256 -0
  683. package/workflows/organizations/principalPolicy/index.js.map +1 -0
  684. package/workflows/organizations/principalPolicy/principalPolicyApi.d.ts +33 -0
  685. package/workflows/organizations/principalPolicy/principalPolicyApi.js.map +1 -0
  686. package/workflows/organizations/principalPolicy/principalPolicyReceiptArtifacts.js +74 -0
  687. package/workflows/organizations/principalPolicy/principalPolicyReceiptArtifacts.js.map +1 -0
  688. package/workflows/organizations/principalPolicy/principalPolicyRecipients.js +43 -0
  689. package/workflows/organizations/principalPolicy/principalPolicyRecipients.js.map +1 -0
  690. package/workflows/organizations/principalPolicy/principalPolicyRequest.d.ts +68 -0
  691. package/workflows/organizations/principalPolicy/principalPolicyRequest.js +176 -0
  692. package/workflows/organizations/provisioning/createOrganization.d.ts +62 -0
  693. package/workflows/organizations/provisioning/createOrganization.js +128 -0
  694. package/workflows/organizations/provisioning/createOrganization.js.map +1 -0
  695. package/workflows/organizations/provisioning/organizationProvisioningAttempt.d.ts +36 -0
  696. package/workflows/organizations/provisioning/organizationProvisioningAttempt.js +205 -0
  697. package/workflows/organizations/provisioning/organizationProvisioningAttempt.js.map +1 -0
  698. package/workflows/organizations/provisioning/organizationReplacementVerification.js +26 -0
  699. package/workflows/organizations/provisioning/organizationReplacementVerification.js.map +1 -0
  700. package/workflows/organizations/readModel/dataUsageReadModel.d.ts +19 -0
  701. package/workflows/organizations/readModel/dataUsageReadModel.js +64 -0
  702. package/workflows/organizations/readModel/dataUsageReadModel.js.map +1 -0
  703. package/workflows/organizations/readModel/index.d.ts +70 -0
  704. package/workflows/organizations/readModel/index.js +10 -0
  705. package/workflows/organizations/readModel/index.js.map +1 -0
  706. package/workflows/organizations/readModel/listLocalOrganizations.d.ts +20 -0
  707. package/workflows/organizations/readModel/listLocalOrganizations.js +137 -0
  708. package/workflows/organizations/readModel/listLocalOrganizations.js.map +1 -0
  709. package/workflows/organizations/readModel/localReadModelDetails.d.ts +25 -0
  710. package/workflows/organizations/readModel/localReadModelDetails.js +182 -0
  711. package/workflows/organizations/readModel/localReadModelDetails.js.map +1 -0
  712. package/workflows/organizations/readModel/organizationPresentationAccessState.js +173 -0
  713. package/workflows/organizations/readModel/organizationPresentationAccessState.js.map +1 -0
  714. package/workflows/organizations/readModel/organizationPresentationFailures.js +7 -0
  715. package/workflows/organizations/readModel/readModelProjection.d.ts +29 -0
  716. package/workflows/organizations/readModel/readModelProjection.js +255 -0
  717. package/workflows/organizations/readModel/readModelProjection.js.map +1 -0
  718. package/workflows/organizations/rematerialization/authoredPrincipalPolicyWarmer.js +25 -0
  719. package/workflows/organizations/rematerialization/authoredPrincipalPolicyWarmer.js.map +1 -0
  720. package/workflows/organizations/rematerialization/precedingPrincipalRematerialization.js +31 -0
  721. package/workflows/organizations/rematerialization/precedingPrincipalRematerialization.js.map +1 -0
  722. package/workflows/organizations/rematerialization/principalContainerRematerialization.js +321 -0
  723. package/workflows/organizations/rematerialization/principalContainerRematerialization.js.map +1 -0
  724. package/workflows/organizations/rematerialization/principalContainerRematerializationPlanning.js +77 -0
  725. package/workflows/organizations/rematerialization/principalContainerRematerializationPlanning.js.map +1 -0
  726. package/workflows/organizations/rematerialization/principalContainerRematerializationTargets.js +79 -0
  727. package/workflows/organizations/rematerialization/principalContainerRematerializationTargets.js.map +1 -0
  728. package/workflows/principals/acknowledgements/acknowledgedPrincipalCurrents.d.ts +33 -0
  729. package/workflows/principals/acknowledgements/acknowledgedPrincipalCurrents.js +140 -0
  730. package/workflows/principals/acknowledgements/acknowledgedPrincipalCurrents.js.map +1 -0
  731. package/workflows/principals/acknowledgements/acknowledgedPrincipalPredecessor.d.ts +39 -0
  732. package/workflows/principals/acknowledgements/acknowledgedPrincipalPredecessor.js +87 -0
  733. package/workflows/principals/acknowledgements/acknowledgedPrincipalPredecessor.js.map +1 -0
  734. package/workflows/principals/acknowledgements/initialPrincipalCurrentPublication.js +84 -0
  735. package/workflows/principals/acknowledgements/initialPrincipalCurrentPublication.js.map +1 -0
  736. package/workflows/principals/acknowledgements/principalAcknowledgementChecks.d.ts +30 -0
  737. package/workflows/principals/acknowledgements/principalCurrentPublicationSeal.js +51 -0
  738. package/workflows/principals/acknowledgements/principalCurrentPublicationSeal.js.map +1 -0
  739. package/workflows/principals/acknowledgements/reconcileAcknowledgedPrincipalCurrent.js +68 -0
  740. package/workflows/principals/acknowledgements/reconcileAcknowledgedPrincipalCurrent.js.map +1 -0
  741. package/workflows/principals/historyRecovery/loadRecoveredPrincipalHistoryPage.d.ts +10 -0
  742. package/workflows/principals/historyRecovery/loadRecoveredPrincipalHistoryPage.js +119 -0
  743. package/workflows/principals/historyRecovery/loadRecoveredPrincipalHistoryPage.js.map +1 -0
  744. package/workflows/principals/historyRecovery/principalHistoryRecoveryAuthority.js +20 -0
  745. package/workflows/principals/historyRecovery/principalHistoryRecoveryAuthority.js.map +1 -0
  746. package/workflows/principals/historyRecovery/principalHistoryRecoveryPrefix.js +69 -0
  747. package/workflows/principals/historyRecovery/principalHistoryRecoveryPrefix.js.map +1 -0
  748. package/workflows/principals/historyRecovery/principalHistoryRecoveryReferences.js +68 -0
  749. package/workflows/principals/historyRecovery/principalHistoryRecoveryReferences.js.map +1 -0
  750. package/workflows/principals/historyRecovery/principalHistoryRecoveryStage.js +61 -0
  751. package/workflows/principals/historyRecovery/principalHistoryRecoveryStage.js.map +1 -0
  752. package/workflows/principals/historyRecovery/principalHistoryRecoveryTypes.d.ts +35 -0
  753. package/workflows/principals/historyRecovery/principalHistoryRecoveryTypes.js +16 -0
  754. package/workflows/principals/historyRecovery/principalHistoryRecoveryTypes.js.map +1 -0
  755. package/workflows/principals/historyRecovery/principalHistoryRecoveryVerification.js +29 -0
  756. package/workflows/principals/historyRecovery/recoverCurrentOrganizationPolicy.js +38 -0
  757. package/workflows/principals/historyRecovery/recoverCurrentOrganizationPolicy.js.map +1 -0
  758. package/workflows/principals/historyRecovery/recoverPrincipalHistoryPage.js +31 -0
  759. package/workflows/principals/historyRecovery/recoverPrincipalPolicyHistory.js +295 -0
  760. package/workflows/principals/historyRecovery/recoverPrincipalPolicyHistory.js.map +1 -0
  761. package/workflows/principals/historyRecovery/recoverScopedPrincipalPolicyHistory.d.ts +27 -0
  762. package/workflows/principals/historyRecovery/recoverScopedPrincipalPolicyHistory.js +163 -0
  763. package/workflows/principals/historyRecovery/recoverScopedPrincipalPolicyHistory.js.map +1 -0
  764. package/workflows/principals/index.d.ts +6 -6
  765. package/workflows/principals/index.js +6 -6
  766. package/workflows/principals/index.js.map +1 -1
  767. package/workflows/principals/policyCache/index.d.ts +20 -0
  768. package/workflows/principals/policyCache/index.js +242 -0
  769. package/workflows/principals/policyCache/index.js.map +1 -0
  770. package/workflows/principals/policyCache/principalPolicyCacheAdvance.js +39 -0
  771. package/workflows/principals/policyCache/principalPolicyCacheAdvance.js.map +1 -0
  772. package/workflows/principals/policyCache/principalPolicyCacheValidation.js +149 -0
  773. package/workflows/principals/policyCache/principalPolicyCacheValidation.js.map +1 -0
  774. package/workflows/principals/policyCache/principalPolicyOrganizationScope.js +67 -0
  775. package/workflows/principals/policyCache/principalPolicyOrganizationScope.js.map +1 -0
  776. package/workflows/principals/policyRepair.js +1 -1
  777. package/workflows/principals/policyRepair.js.map +1 -1
  778. package/workflows/principals/publicHistory/publicPrincipalHistoryAuthority.js +60 -0
  779. package/workflows/principals/publicHistory/publicPrincipalHistoryAuthority.js.map +1 -0
  780. package/workflows/principals/publicHistory/publicPrincipalHistoryPage.js +88 -0
  781. package/workflows/principals/publicHistory/publicPrincipalHistoryPage.js.map +1 -0
  782. package/workflows/principals/publicHistory/publicPrincipalHistoryProgress.js +179 -0
  783. package/workflows/principals/publicHistory/publicPrincipalHistoryProgress.js.map +1 -0
  784. package/workflows/principals/publicHistory/publicPrincipalHistoryTypes.d.ts +41 -0
  785. package/workflows/principals/publicHistory/publicPrincipalHistoryTypes.js.map +1 -0
  786. package/workflows/principals/publicHistory/publicProjectionDirectory.js +40 -0
  787. package/workflows/principals/publicHistory/publicProjectionDirectory.js.map +1 -0
  788. package/workflows/principals/publicHistory/publicProjectionPrincipal.js +54 -0
  789. package/workflows/principals/publicHistory/publicProjectionPrincipal.js.map +1 -0
  790. package/workflows/principals/publicHistory/recoverProjectionPolicyHistory.d.ts +9 -0
  791. package/workflows/principals/publicHistory/recoverProjectionPolicyHistory.js +98 -0
  792. package/workflows/principals/publicHistory/recoverProjectionPolicyHistory.js.map +1 -0
  793. package/workflows/principals/publicHistory/recoverPublicPrincipalHistory.js +178 -0
  794. package/workflows/principals/publicHistory/recoverPublicPrincipalHistory.js.map +1 -0
  795. package/workflows/principals/publicHistory/selectPublicPrincipalHistory.js +96 -0
  796. package/workflows/principals/publicHistory/selectPublicPrincipalHistory.js.map +1 -0
  797. package/workflows/principals/recoveryOperation/principalCurrentRecoveryBatch.js +14 -0
  798. package/workflows/principals/recoveryOperation/principalCurrentRecoveryBatch.js.map +1 -0
  799. package/workflows/principals/recoveryOperation/principalRecoveryDirectory.d.ts +10 -0
  800. package/workflows/principals/recoveryOperation/principalRecoveryDirectory.js +127 -0
  801. package/workflows/principals/recoveryOperation/principalRecoveryDirectory.js.map +1 -0
  802. package/workflows/principals/recoveryOperation/principalRecoveryDiscoveryPage.js.map +1 -0
  803. package/workflows/principals/recoveryOperation/principalRecoveryLocalPreference.js +30 -0
  804. package/workflows/principals/recoveryOperation/principalRecoveryLocalPreference.js.map +1 -0
  805. package/workflows/principals/recoveryOperation/principalRecoveryMemo.d.ts +21 -0
  806. package/workflows/principals/recoveryOperation/principalRecoveryMemo.js +178 -0
  807. package/workflows/principals/recoveryOperation/principalRecoveryMemo.js.map +1 -0
  808. package/workflows/principals/recoveryOperation/principalRecoveryMemoValidity.js +33 -0
  809. package/workflows/principals/recoveryOperation/principalRecoveryMemoValidity.js.map +1 -0
  810. package/workflows/principals/recoveryOperation/principalRecoveryOutage.js +40 -0
  811. package/workflows/principals/recoveryOperation/principalRecoveryOutage.js.map +1 -0
  812. package/workflows/principals/runtimePolicyRecovery.js +3 -3
  813. package/workflows/principals/runtimePolicyRecovery.js.map +1 -1
  814. package/workflows/principals/runtimeProjectionPolicyRecovery.js +3 -3
  815. package/workflows/principals/runtimeProjectionPolicyRecovery.js.map +1 -1
  816. package/workflows/registration/organizationProvisioningArtifacts.d.ts +2 -2
  817. package/workflows/registration/provisionedPrincipalHistory.js +1 -1
  818. package/workflows/registration/provisionedPrincipalHistory.js.map +1 -1
  819. package/workflows/registration/provisionedProfileDocument.js +1 -1
  820. package/workflows/registration/provisionedProfileDocument.js.map +1 -1
  821. package/workflows/registration/provisioningBootstrapBuilders.js +3 -3
  822. package/workflows/registration/provisioningBootstrapBuilders.js.map +1 -1
  823. package/workflows/registration/registerIdentity.js +2 -2
  824. package/workflows/registration/registerIdentity.js.map +1 -1
  825. package/workflows/sync/remoteReset.js +1 -1
  826. package/workflows/sync/remoteReset.js.map +1 -1
  827. package/data/keyingProjectionVerification/accessManifestCheckpointEnforcement.js +0 -61
  828. package/data/keyingProjectionVerification/accessManifestCheckpointEnforcement.js.map +0 -1
  829. package/data/keyingProjectionVerification/bundleVerification.js +0 -61
  830. package/data/keyingProjectionVerification/bundleVerification.js.map +0 -1
  831. package/data/keyingProjectionVerification/checkpointContext.d.ts +0 -45
  832. package/data/keyingProjectionVerification/checkpointContext.js +0 -120
  833. package/data/keyingProjectionVerification/checkpointContext.js.map +0 -1
  834. package/data/keyingProjectionVerification/containerAncestorCitations.js +0 -164
  835. package/data/keyingProjectionVerification/containerAncestorCitations.js.map +0 -1
  836. package/data/keyingProjectionVerification/containerCreateManifest.js +0 -28
  837. package/data/keyingProjectionVerification/containerDestinationVerification.js +0 -51
  838. package/data/keyingProjectionVerification/containerDestinationVerification.js.map +0 -1
  839. package/data/keyingProjectionVerification/containerManifestVerification.js +0 -285
  840. package/data/keyingProjectionVerification/containerManifestVerification.js.map +0 -1
  841. package/data/keyingProjectionVerification/containerPathVerification.js +0 -51
  842. package/data/keyingProjectionVerification/containerPathVerification.js.map +0 -1
  843. package/data/keyingProjectionVerification/containerProjectionVerification.d.ts +0 -25
  844. package/data/keyingProjectionVerification/containerProjectionVerification.js +0 -254
  845. package/data/keyingProjectionVerification/containerProjectionVerification.js.map +0 -1
  846. package/data/keyingProjectionVerification/documentDependencyPaths.d.ts +0 -17
  847. package/data/keyingProjectionVerification/documentDependencyPaths.js +0 -70
  848. package/data/keyingProjectionVerification/documentDependencyPaths.js.map +0 -1
  849. package/data/keyingProjectionVerification/documentManifestPolicies.js +0 -32
  850. package/data/keyingProjectionVerification/documentManifestPolicies.js.map +0 -1
  851. package/data/keyingProjectionVerification/documentManifestPredecessor.js +0 -12
  852. package/data/keyingProjectionVerification/documentManifestVerification.js +0 -135
  853. package/data/keyingProjectionVerification/documentManifestVerification.js.map +0 -1
  854. package/data/keyingProjectionVerification/documentProjectionVerification.d.ts +0 -24
  855. package/data/keyingProjectionVerification/documentProjectionVerification.js +0 -172
  856. package/data/keyingProjectionVerification/documentProjectionVerification.js.map +0 -1
  857. package/data/keyingProjectionVerification/documentPurgeCheckpointCurrency.js +0 -100
  858. package/data/keyingProjectionVerification/documentPurgeCheckpointCurrency.js.map +0 -1
  859. package/data/keyingProjectionVerification/documentPurgeCheckpointEnforcement.js +0 -8
  860. package/data/keyingProjectionVerification/documentPurgeCheckpointEnforcement.js.map +0 -1
  861. package/data/keyingProjectionVerification/documentPurgeDocumentChainVerification.js +0 -177
  862. package/data/keyingProjectionVerification/documentPurgeDocumentChainVerification.js.map +0 -1
  863. package/data/keyingProjectionVerification/documentPurgePolicyCheckpoints.js +0 -17
  864. package/data/keyingProjectionVerification/documentPurgePolicyCheckpoints.js.map +0 -1
  865. package/data/keyingProjectionVerification/documentPurgePolicyCurrency.js +0 -55
  866. package/data/keyingProjectionVerification/documentPurgePolicyCurrency.js.map +0 -1
  867. package/data/keyingProjectionVerification/documentPurgePrincipalEvidence.js +0 -116
  868. package/data/keyingProjectionVerification/documentPurgePrincipalEvidence.js.map +0 -1
  869. package/data/keyingProjectionVerification/documentPurgeProofVerification.d.ts +0 -34
  870. package/data/keyingProjectionVerification/documentPurgeProofVerification.js +0 -208
  871. package/data/keyingProjectionVerification/documentPurgeProofVerification.js.map +0 -1
  872. package/data/keyingProjectionVerification/manifestCheckpointVerification.js +0 -64
  873. package/data/keyingProjectionVerification/manifestCheckpointVerification.js.map +0 -1
  874. package/data/keyingProjectionVerification/mergeProjectionPolicyEvidence.js +0 -45
  875. package/data/keyingProjectionVerification/mergeProjectionPolicyEvidence.js.map +0 -1
  876. package/data/keyingProjectionVerification/organizationFounderBinding.js +0 -41
  877. package/data/keyingProjectionVerification/organizationFounderBinding.js.map +0 -1
  878. package/data/keyingProjectionVerification/principalPolicyCache.js +0 -76
  879. package/data/keyingProjectionVerification/principalPolicyCache.js.map +0 -1
  880. package/data/keyingProjectionVerification/principalPolicyVerification.js +0 -252
  881. package/data/keyingProjectionVerification/principalPolicyVerification.js.map +0 -1
  882. package/data/keyingProjectionVerification/projectionAuthorizationEvidence.js +0 -63
  883. package/data/keyingProjectionVerification/projectionAuthorizationEvidence.js.map +0 -1
  884. package/data/keyingProjectionVerification/projectionPolicyEvidence.js +0 -23
  885. package/data/keyingProjectionVerification/projectionPolicyEvidence.js.map +0 -1
  886. package/data/keyingProjectionVerification/resolvedPrincipalPolicy.js +0 -72
  887. package/data/keyingProjectionVerification/resolvedPrincipalPolicy.js.map +0 -1
  888. package/stores/container-contents/backgroundHydration.js +0 -32
  889. package/stores/container-contents/backgroundHydration.js.map +0 -1
  890. package/stores/container-contents/containerPurgeCore.js +0 -98
  891. package/stores/container-contents/containerPurgeCore.js.map +0 -1
  892. package/stores/container-contents/containerStateMap.js.map +0 -1
  893. package/stores/container-contents/containerStatePersistence.js +0 -57
  894. package/stores/container-contents/containerStatePersistence.js.map +0 -1
  895. package/stores/container-contents/documentRecovery.js +0 -114
  896. package/stores/container-contents/documentRecovery.js.map +0 -1
  897. package/stores/container-contents/documentRotation.js +0 -13
  898. package/stores/container-contents/documentRotation.js.map +0 -1
  899. package/stores/container-contents/documentWork.js +0 -29
  900. package/stores/container-contents/documentWork.js.map +0 -1
  901. package/stores/container-contents/emptyTrashOperation.js.map +0 -1
  902. package/stores/container-contents/existingSystemContainer.js +0 -58
  903. package/stores/container-contents/existingSystemContainer.js.map +0 -1
  904. package/stores/container-contents/groupRewrapOperation.js +0 -52
  905. package/stores/container-contents/groupRewrapOperation.js.map +0 -1
  906. package/stores/container-contents/metadataSyncSignal.js +0 -37
  907. package/stores/container-contents/metadataSyncSignal.js.map +0 -1
  908. package/stores/container-contents/missingContainerState.js +0 -10
  909. package/stores/container-contents/missingContainerState.js.map +0 -1
  910. package/stores/container-contents/missingSyncedContainerState.js.map +0 -1
  911. package/stores/container-contents/operations.js +0 -301
  912. package/stores/container-contents/operations.js.map +0 -1
  913. package/stores/container-contents/organizationMetadataSystemContainer.js +0 -44
  914. package/stores/container-contents/organizationMetadataSystemContainer.js.map +0 -1
  915. package/stores/container-contents/purgeContainerOperation.js.map +0 -1
  916. package/stores/container-contents/reconcilableContainer.d.ts +0 -48
  917. package/stores/container-contents/reconcilableContainer.js.map +0 -1
  918. package/stores/container-contents/remoteBackedContainerState.js.map +0 -1
  919. package/stores/container-contents/remoteContainerIngestion.js +0 -59
  920. package/stores/container-contents/remoteContainerIngestion.js.map +0 -1
  921. package/stores/container-contents/remoteEventProjectionInvalidation.js +0 -36
  922. package/stores/container-contents/remoteEventProjectionInvalidation.js.map +0 -1
  923. package/stores/container-contents/remoteEventSync.js +0 -38
  924. package/stores/container-contents/remoteEventSync.js.map +0 -1
  925. package/stores/container-contents/remoteHydrationRequest.js +0 -245
  926. package/stores/container-contents/remoteHydrationRequest.js.map +0 -1
  927. package/stores/container-contents/remoteWriteGuards.js +0 -54
  928. package/stores/container-contents/remoteWriteGuards.js.map +0 -1
  929. package/stores/container-contents/remoteWriteQueue.js +0 -51
  930. package/stores/container-contents/remoteWriteQueue.js.map +0 -1
  931. package/stores/container-contents/reportShareFailure.js +0 -44
  932. package/stores/container-contents/reportShareFailure.js.map +0 -1
  933. package/stores/container-contents/setContainerIconOperation.js +0 -47
  934. package/stores/container-contents/setContainerIconOperation.js.map +0 -1
  935. package/stores/container-contents/shareOperations.js +0 -90
  936. package/stores/container-contents/shareOperations.js.map +0 -1
  937. package/stores/container-contents/startupHydration.js +0 -110
  938. package/stores/container-contents/startupHydration.js.map +0 -1
  939. package/stores/container-contents/syncAgent.d.ts +0 -8
  940. package/stores/container-contents/syncAgent.js +0 -241
  941. package/stores/container-contents/syncAgent.js.map +0 -1
  942. package/stores/container-contents/syncAgentTypes.d.ts +0 -81
  943. package/stores/container-contents/syncAgentTypes.js.map +0 -1
  944. package/stores/container-contents/syncLaneIteration.js +0 -237
  945. package/stores/container-contents/syncLaneIteration.js.map +0 -1
  946. package/stores/container-contents/systemContainerHydration.js +0 -30
  947. package/stores/container-contents/systemContainerHydration.js.map +0 -1
  948. package/stores/container-contents/systemContainerIcon.js +0 -42
  949. package/stores/container-contents/systemContainerIcon.js.map +0 -1
  950. package/stores/container-contents/systemContainerLookup.js.map +0 -1
  951. package/stores/container-contents/systemContainerPostCreate.js +0 -109
  952. package/stores/container-contents/systemContainerPostCreate.js.map +0 -1
  953. package/stores/container-contents/systemContainerPromotion.js +0 -49
  954. package/stores/container-contents/systemContainerPromotion.js.map +0 -1
  955. package/stores/container-contents/writeGeneration.js.map +0 -1
  956. package/stores/documents/documentStore/attachmentDetachState.js +0 -54
  957. package/stores/documents/documentStore/attachmentDetachState.js.map +0 -1
  958. package/stores/documents/documentStore/attachmentHydration.js +0 -90
  959. package/stores/documents/documentStore/attachmentHydration.js.map +0 -1
  960. package/stores/documents/documentStore/attachmentHydrationCommit.js +0 -53
  961. package/stores/documents/documentStore/attachmentHydrationCommit.js.map +0 -1
  962. package/stores/documents/documentStore/attachmentIntents.js +0 -39
  963. package/stores/documents/documentStore/attachmentIntents.js.map +0 -1
  964. package/stores/documents/documentStore/attachmentMutationPersistence.js +0 -37
  965. package/stores/documents/documentStore/attachmentMutationPersistence.js.map +0 -1
  966. package/stores/documents/documentStore/attachmentPersistFollowup.js.map +0 -1
  967. package/stores/documents/documentStore/attachmentPersistence.js +0 -106
  968. package/stores/documents/documentStore/attachmentPersistence.js.map +0 -1
  969. package/stores/documents/documentStore/attachmentRemoval.js +0 -136
  970. package/stores/documents/documentStore/attachmentRemoval.js.map +0 -1
  971. package/stores/documents/documentStore/attachmentSnapshot.js.map +0 -1
  972. package/stores/documents/documentStore/attachmentSourceUpload.js +0 -39
  973. package/stores/documents/documentStore/attachmentSourceUpload.js.map +0 -1
  974. package/stores/documents/documentStore/attachmentStaging.js +0 -84
  975. package/stores/documents/documentStore/attachmentStaging.js.map +0 -1
  976. package/stores/documents/documentStore/attachmentUploadAttempt.js +0 -97
  977. package/stores/documents/documentStore/attachmentUploadAttempt.js.map +0 -1
  978. package/stores/documents/documentStore/attachmentUploadLane.js +0 -49
  979. package/stores/documents/documentStore/attachmentUploadLane.js.map +0 -1
  980. package/stores/documents/documentStore/attachmentUploadResume.js +0 -95
  981. package/stores/documents/documentStore/attachmentUploadResume.js.map +0 -1
  982. package/stores/documents/documentStore/attachmentWriteGeneration.js +0 -32
  983. package/stores/documents/documentStore/attachmentWriteGeneration.js.map +0 -1
  984. package/stores/documents/documentStore/attachments.js +0 -241
  985. package/stores/documents/documentStore/attachments.js.map +0 -1
  986. package/stores/documents/documentStore/deferredInitialUpdate.js +0 -116
  987. package/stores/documents/documentStore/deferredInitialUpdate.js.map +0 -1
  988. package/stores/documents/documentStore/documentHistoryCompaction.js +0 -67
  989. package/stores/documents/documentStore/documentHistoryCompaction.js.map +0 -1
  990. package/stores/documents/documentStore/durableDocumentReload.js +0 -79
  991. package/stores/documents/documentStore/durableDocumentReload.js.map +0 -1
  992. package/stores/documents/documentStore/historyRebuild.js +0 -75
  993. package/stores/documents/documentStore/historyRebuild.js.map +0 -1
  994. package/stores/documents/documentStore/initialization.js +0 -330
  995. package/stores/documents/documentStore/initialization.js.map +0 -1
  996. package/stores/documents/documentStore/initializationAttachments.js +0 -9
  997. package/stores/documents/documentStore/initializationAttachments.js.map +0 -1
  998. package/stores/documents/documentStore/initializationHistory.js +0 -33
  999. package/stores/documents/documentStore/initializationHistory.js.map +0 -1
  1000. package/stores/documents/documentStore/initializationRecovery.js +0 -107
  1001. package/stores/documents/documentStore/initializationRecovery.js.map +0 -1
  1002. package/stores/documents/documentStore/pullContinuationInvalidation.js +0 -61
  1003. package/stores/documents/documentStore/pullContinuationInvalidation.js.map +0 -1
  1004. package/stores/documents/documentStore/remoteRevalidationTelemetry.js +0 -15
  1005. package/stores/documents/documentStore/remoteRevalidationTelemetry.js.map +0 -1
  1006. package/stores/documents/documentStore/remoteWork.js.map +0 -1
  1007. package/stores/documents/documentStore/rotation.js +0 -307
  1008. package/stores/documents/documentStore/rotation.js.map +0 -1
  1009. package/stores/documents/documentStore/rotationProvenance.js +0 -52
  1010. package/stores/documents/documentStore/rotationProvenance.js.map +0 -1
  1011. package/stores/documents/documentStore/rotationSettlement.js +0 -222
  1012. package/stores/documents/documentStore/rotationSettlement.js.map +0 -1
  1013. package/stores/documents/documentStore/sync.js +0 -299
  1014. package/stores/documents/documentStore/sync.js.map +0 -1
  1015. package/stores/documents/documentStore/syncAcceptedUpdateIds.js.map +0 -1
  1016. package/stores/documents/documentStore/syncAttachmentSettlement.js +0 -72
  1017. package/stores/documents/documentStore/syncAttachmentSettlement.js.map +0 -1
  1018. package/stores/documents/documentStore/syncAttachments.js +0 -323
  1019. package/stores/documents/documentStore/syncAttachments.js.map +0 -1
  1020. package/stores/documents/documentStore/syncDetachedAttachments.js +0 -129
  1021. package/stores/documents/documentStore/syncDetachedAttachments.js.map +0 -1
  1022. package/stores/documents/documentStore/syncFinalize.js +0 -204
  1023. package/stores/documents/documentStore/syncFinalize.js.map +0 -1
  1024. package/stores/documents/documentStore/syncGeneration.js.map +0 -1
  1025. package/stores/documents/documentStore/syncOutgoingCoverage.js +0 -96
  1026. package/stores/documents/documentStore/syncOutgoingCoverage.js.map +0 -1
  1027. package/stores/documents/documentStore/syncRemoteSignals.js +0 -67
  1028. package/stores/documents/documentStore/syncRemoteSignals.js.map +0 -1
  1029. package/stores/documents/documentStore/syncRequest.js +0 -157
  1030. package/stores/documents/documentStore/syncRequest.js.map +0 -1
  1031. package/stores/documents/documentStore/syncShared.js +0 -211
  1032. package/stores/documents/documentStore/syncShared.js.map +0 -1
  1033. package/stores/documents/documentStore/syncUpdateImport.js +0 -62
  1034. package/stores/documents/documentStore/syncUpdateImport.js.map +0 -1
  1035. package/stores/documents/documentStore/versionCoverage.js +0 -45
  1036. package/stores/documents/documentStore.d.ts +0 -8
  1037. package/stores/documents/documentStore.js +0 -215
  1038. package/stores/documents/documentStore.js.map +0 -1
  1039. package/workflows/blobs/attachmentBindingVerification.js +0 -49
  1040. package/workflows/blobs/attachmentBindingVerification.js.map +0 -1
  1041. package/workflows/blobs/attachmentDecryptor.js +0 -41
  1042. package/workflows/blobs/attachmentDecryptor.js.map +0 -1
  1043. package/workflows/blobs/attachmentKeyAuthenticator.js +0 -68
  1044. package/workflows/blobs/attachmentKeyAuthenticator.js.map +0 -1
  1045. package/workflows/blobs/automaticMultipartUpload.js +0 -9
  1046. package/workflows/blobs/automaticMultipartUpload.js.map +0 -1
  1047. package/workflows/blobs/blobChunkDecryption.js +0 -34
  1048. package/workflows/blobs/blobChunkDecryption.js.map +0 -1
  1049. package/workflows/blobs/decrypt.d.ts +0 -12
  1050. package/workflows/blobs/decrypt.js +0 -246
  1051. package/workflows/blobs/decrypt.js.map +0 -1
  1052. package/workflows/blobs/hydrate.d.ts +0 -56
  1053. package/workflows/blobs/hydrate.js +0 -190
  1054. package/workflows/blobs/hydrate.js.map +0 -1
  1055. package/workflows/blobs/hydrationResults.js +0 -23
  1056. package/workflows/blobs/hydrationResults.js.map +0 -1
  1057. package/workflows/blobs/multipartFirstParts.js +0 -82
  1058. package/workflows/blobs/multipartFirstParts.js.map +0 -1
  1059. package/workflows/blobs/multipartStageFailures.js +0 -36
  1060. package/workflows/blobs/multipartStageFailures.js.map +0 -1
  1061. package/workflows/blobs/multipartStageResolution.js.map +0 -1
  1062. package/workflows/blobs/multipartUpload.js +0 -274
  1063. package/workflows/blobs/multipartUpload.js.map +0 -1
  1064. package/workflows/blobs/retainedAttachmentVerification.js +0 -40
  1065. package/workflows/blobs/retainedAttachmentVerification.js.map +0 -1
  1066. package/workflows/blobs/upload.d.ts +0 -10
  1067. package/workflows/blobs/upload.js +0 -243
  1068. package/workflows/blobs/upload.js.map +0 -1
  1069. package/workflows/blobs/verifiedWrapScope.js +0 -20
  1070. package/workflows/blobs/verifiedWrapScope.js.map +0 -1
  1071. package/workflows/blobs/writerProjection.js +0 -29
  1072. package/workflows/blobs/writerProjection.js.map +0 -1
  1073. package/workflows/container-contents/container-state/createAdoption.js +0 -193
  1074. package/workflows/container-contents/container-state/createAdoption.js.map +0 -1
  1075. package/workflows/container-contents/container-state/createChild.js +0 -217
  1076. package/workflows/container-contents/container-state/createChild.js.map +0 -1
  1077. package/workflows/container-contents/container-state/createIntentDepth.js +0 -36
  1078. package/workflows/container-contents/container-state/createIntentDepth.js.map +0 -1
  1079. package/workflows/container-contents/container-state/createIntentSettlement.js.map +0 -1
  1080. package/workflows/container-contents/container-state/createIntentSync.js +0 -354
  1081. package/workflows/container-contents/container-state/createIntentSync.js.map +0 -1
  1082. package/workflows/container-contents/container-state/createTerminalFailure.js +0 -19
  1083. package/workflows/container-contents/container-state/createTerminalFailure.js.map +0 -1
  1084. package/workflows/container-contents/container-state/createWithMetadata.js +0 -270
  1085. package/workflows/container-contents/container-state/createWithMetadata.js.map +0 -1
  1086. package/workflows/container-contents/container-state/createWithMetadataPlan.js +0 -68
  1087. package/workflows/container-contents/container-state/createWithMetadataPlan.js.map +0 -1
  1088. package/workflows/container-contents/container-state/groupGrantVerification.js +0 -71
  1089. package/workflows/container-contents/container-state/groupGrantVerification.js.map +0 -1
  1090. package/workflows/container-contents/container-state/groupShareEpoch.js +0 -16
  1091. package/workflows/container-contents/container-state/groupShareEpoch.js.map +0 -1
  1092. package/workflows/container-contents/container-state/localPurgeScope.js +0 -49
  1093. package/workflows/container-contents/container-state/localPurgeScope.js.map +0 -1
  1094. package/workflows/container-contents/container-state/purgeTree.js +0 -298
  1095. package/workflows/container-contents/container-state/purgeTree.js.map +0 -1
  1096. package/workflows/container-contents/container-state/purgeTreeCollection.js.map +0 -1
  1097. package/workflows/container-contents/container-state/purgeTreeContainerDeletion.js +0 -75
  1098. package/workflows/container-contents/container-state/purgeTreeContainerDeletion.js.map +0 -1
  1099. package/workflows/container-contents/container-state/purgeTreeScope.js +0 -175
  1100. package/workflows/container-contents/container-state/purgeTreeScope.js.map +0 -1
  1101. package/workflows/container-contents/container-state/readLocalPurgeScope.js +0 -18
  1102. package/workflows/container-contents/container-state/readLocalPurgeScope.js.map +0 -1
  1103. package/workflows/container-contents/container-state/share.js +0 -283
  1104. package/workflows/container-contents/container-state/share.js.map +0 -1
  1105. package/workflows/container-contents/container-state/sharePersistence.js +0 -136
  1106. package/workflows/container-contents/container-state/sharePersistence.js.map +0 -1
  1107. package/workflows/container-contents/remoteHydration/childIndex.js.map +0 -1
  1108. package/workflows/container-contents/remoteHydration/containerStateFingerprint.js.map +0 -1
  1109. package/workflows/container-contents/remoteHydration/destinationPrefetch.js.map +0 -1
  1110. package/workflows/container-contents/remoteHydration/destinationRoleCache.js.map +0 -1
  1111. package/workflows/container-contents/remoteHydration/destinationRootReload.js +0 -10
  1112. package/workflows/container-contents/remoteHydration/destinationRootReload.js.map +0 -1
  1113. package/workflows/container-contents/remoteHydration/insertRemoteContainer.js +0 -135
  1114. package/workflows/container-contents/remoteHydration/insertRemoteContainer.js.map +0 -1
  1115. package/workflows/container-contents/remoteHydration/laneFetchMarkers.js +0 -21
  1116. package/workflows/container-contents/remoteHydration/laneFetchMarkers.js.map +0 -1
  1117. package/workflows/container-contents/remoteHydration/parentLaneFetch.js +0 -61
  1118. package/workflows/container-contents/remoteHydration/parentLaneFetch.js.map +0 -1
  1119. package/workflows/container-contents/remoteHydration/parentLaneQueue.js.map +0 -1
  1120. package/workflows/container-contents/remoteHydration/remoteContainerPageHydration.js +0 -244
  1121. package/workflows/container-contents/remoteHydration/remoteContainerPageHydration.js.map +0 -1
  1122. package/workflows/container-contents/remoteHydration/remoteContainerState.js +0 -263
  1123. package/workflows/container-contents/remoteHydration/remoteContainerState.js.map +0 -1
  1124. package/workflows/container-contents/remoteHydration/remoteContainerTimestamps.js.map +0 -1
  1125. package/workflows/container-contents/remoteHydration/replacementBinding.js +0 -75
  1126. package/workflows/container-contents/remoteHydration/replacementBinding.js.map +0 -1
  1127. package/workflows/container-contents/remoteHydration/verifiedDestination.js +0 -296
  1128. package/workflows/container-contents/remoteHydration/verifiedDestination.js.map +0 -1
  1129. package/workflows/containers/child/carriedDescendantRekeys.js +0 -126
  1130. package/workflows/containers/child/carriedDescendantRekeys.js.map +0 -1
  1131. package/workflows/containers/child/create.d.ts +0 -24
  1132. package/workflows/containers/child/create.js +0 -335
  1133. package/workflows/containers/child/create.js.map +0 -1
  1134. package/workflows/containers/child/createProjection.d.ts +0 -6
  1135. package/workflows/containers/child/createProjection.js +0 -43
  1136. package/workflows/containers/child/createProjection.js.map +0 -1
  1137. package/workflows/containers/child/createSubmission.d.ts +0 -56
  1138. package/workflows/containers/child/createSubmission.js +0 -43
  1139. package/workflows/containers/child/createSubmission.js.map +0 -1
  1140. package/workflows/containers/child/currentShareGrantMutation.js +0 -82
  1141. package/workflows/containers/child/currentShareGrantMutation.js.map +0 -1
  1142. package/workflows/containers/child/currentSharePrincipalPolicy.js +0 -83
  1143. package/workflows/containers/child/currentSharePrincipalPolicy.js.map +0 -1
  1144. package/workflows/containers/child/keyringOverrideLineage.d.ts +0 -22
  1145. package/workflows/containers/child/keyringOverrideLineage.js +0 -39
  1146. package/workflows/containers/child/move.d.ts +0 -23
  1147. package/workflows/containers/child/move.js +0 -268
  1148. package/workflows/containers/child/move.js.map +0 -1
  1149. package/workflows/containers/child/moveArtifacts.js +0 -102
  1150. package/workflows/containers/child/moveArtifacts.js.map +0 -1
  1151. package/workflows/containers/child/moveRotation.js +0 -88
  1152. package/workflows/containers/child/moveRotation.js.map +0 -1
  1153. package/workflows/containers/child/moveWraps.js +0 -49
  1154. package/workflows/containers/child/moveWraps.js.map +0 -1
  1155. package/workflows/containers/child/rekey.d.ts +0 -32
  1156. package/workflows/containers/child/rekey.js +0 -227
  1157. package/workflows/containers/child/rekey.js.map +0 -1
  1158. package/workflows/containers/child/rekeyProjection.d.ts +0 -46
  1159. package/workflows/containers/child/rekeyProjection.js +0 -151
  1160. package/workflows/containers/child/rekeyProjection.js.map +0 -1
  1161. package/workflows/containers/child/rekeyRemote.d.ts +0 -24
  1162. package/workflows/containers/child/rekeyRemote.js +0 -64
  1163. package/workflows/containers/child/rekeyRemote.js.map +0 -1
  1164. package/workflows/containers/child/replacementPrincipalPolicyReferences.js +0 -19
  1165. package/workflows/containers/child/replacementPrincipalPolicyReferences.js.map +0 -1
  1166. package/workflows/containers/child/rotationContext.js +0 -64
  1167. package/workflows/containers/child/rotationContext.js.map +0 -1
  1168. package/workflows/containers/child/rotationPrincipalPolicies.js +0 -19
  1169. package/workflows/containers/child/rotationPrincipalPolicies.js.map +0 -1
  1170. package/workflows/containers/child/rotationWraps.js +0 -85
  1171. package/workflows/containers/child/rotationWraps.js.map +0 -1
  1172. package/workflows/containers/child/runtimeCurrentGroupShare.js +0 -79
  1173. package/workflows/containers/child/runtimeCurrentGroupShare.js.map +0 -1
  1174. package/workflows/containers/child/share.d.ts +0 -65
  1175. package/workflows/containers/child/share.js +0 -256
  1176. package/workflows/containers/child/share.js.map +0 -1
  1177. package/workflows/containers/child/shareAncestorRepair.js +0 -95
  1178. package/workflows/containers/child/shareAncestorRepair.js.map +0 -1
  1179. package/workflows/containers/child/shareMaterialization.d.ts +0 -25
  1180. package/workflows/containers/child/shareMaterialization.js +0 -164
  1181. package/workflows/containers/child/shareMaterialization.js.map +0 -1
  1182. package/workflows/containers/child/sharePlanCore.d.ts +0 -82
  1183. package/workflows/containers/child/sharePlanCore.js +0 -191
  1184. package/workflows/containers/child/sharePlanCore.js.map +0 -1
  1185. package/workflows/containers/child/sharePrincipalPolicy.d.ts +0 -51
  1186. package/workflows/containers/child/sharePrincipalPolicy.js +0 -194
  1187. package/workflows/containers/child/sharePrincipalPolicy.js.map +0 -1
  1188. package/workflows/containers/child/shareProjection.js.map +0 -1
  1189. package/workflows/documents/attachmentPersistence.d.ts +0 -58
  1190. package/workflows/documents/attachmentPersistence.js.map +0 -1
  1191. package/workflows/documents/blobMutationLock.d.ts +0 -8
  1192. package/workflows/documents/blobMutationLock.js +0 -35
  1193. package/workflows/documents/blobMutationLock.js.map +0 -1
  1194. package/workflows/documents/create.d.ts +0 -56
  1195. package/workflows/documents/create.js +0 -258
  1196. package/workflows/documents/create.js.map +0 -1
  1197. package/workflows/documents/createAdoption.js +0 -100
  1198. package/workflows/documents/createAdoption.js.map +0 -1
  1199. package/workflows/documents/createProjection.d.ts +0 -14
  1200. package/workflows/documents/createProjectionFetch.d.ts +0 -27
  1201. package/workflows/documents/createProjectionFetch.js.map +0 -1
  1202. package/workflows/documents/createResponse.js +0 -49
  1203. package/workflows/documents/createResponse.js.map +0 -1
  1204. package/workflows/documents/documentCreationPersistence.js +0 -16
  1205. package/workflows/documents/documentCreationPersistence.js.map +0 -1
  1206. package/workflows/documents/initialSync.js +0 -65
  1207. package/workflows/documents/initialSync.js.map +0 -1
  1208. package/workflows/documents/linkSet.d.ts +0 -20
  1209. package/workflows/documents/linkSet.js +0 -290
  1210. package/workflows/documents/linkSet.js.map +0 -1
  1211. package/workflows/documents/linkSetAuthority.js +0 -61
  1212. package/workflows/documents/linkSetAuthority.js.map +0 -1
  1213. package/workflows/documents/linkSetBlobRewraps.js +0 -143
  1214. package/workflows/documents/linkSetBlobRewraps.js.map +0 -1
  1215. package/workflows/documents/linkSetProjectionSeed.js +0 -119
  1216. package/workflows/documents/linkSetProjectionSeed.js.map +0 -1
  1217. package/workflows/documents/linkSetRemote.d.ts +0 -23
  1218. package/workflows/documents/linkSetRemote.js +0 -187
  1219. package/workflows/documents/linkSetRemote.js.map +0 -1
  1220. package/workflows/documents/orphanBlobReclaimState.js.map +0 -1
  1221. package/workflows/documents/orphanBlobReclaims.d.ts +0 -6
  1222. package/workflows/documents/orphanBlobReclaims.js +0 -143
  1223. package/workflows/documents/orphanBlobReclaims.js.map +0 -1
  1224. package/workflows/documents/persistedDocumentRemoval.d.ts +0 -44
  1225. package/workflows/documents/persistedDocumentRemoval.js +0 -70
  1226. package/workflows/documents/persistedDocumentRemoval.js.map +0 -1
  1227. package/workflows/documents/purge.d.ts +0 -53
  1228. package/workflows/documents/purge.js +0 -204
  1229. package/workflows/documents/purge.js.map +0 -1
  1230. package/workflows/documents/readOnlyProjectionFailure.js +0 -30
  1231. package/workflows/documents/readOnlyProjectionFailure.js.map +0 -1
  1232. package/workflows/documents/readOnlySync.d.ts +0 -71
  1233. package/workflows/documents/readOnlySync.js +0 -269
  1234. package/workflows/documents/readOnlySync.js.map +0 -1
  1235. package/workflows/documents/reportDocumentSyncQuarantine.js.map +0 -1
  1236. package/workflows/documents/subtreePurgeScope.d.ts +0 -8
  1237. package/workflows/documents/subtreePurgeScope.js +0 -18
  1238. package/workflows/documents/subtreePurgeScope.js.map +0 -1
  1239. package/workflows/documents/sync.d.ts +0 -4
  1240. package/workflows/documents/sync.js +0 -287
  1241. package/workflows/documents/sync.js.map +0 -1
  1242. package/workflows/documents/syncAbandon.js +0 -51
  1243. package/workflows/documents/syncAbandon.js.map +0 -1
  1244. package/workflows/documents/syncAttemptPlanning.js +0 -79
  1245. package/workflows/documents/syncAttemptPlanning.js.map +0 -1
  1246. package/workflows/documents/syncAttemptState.d.ts +0 -27
  1247. package/workflows/documents/syncAttemptState.js.map +0 -1
  1248. package/workflows/documents/syncAutomaticContainerRekeys.js +0 -119
  1249. package/workflows/documents/syncAutomaticContainerRekeys.js.map +0 -1
  1250. package/workflows/documents/syncContainerRekeyPreparation.js +0 -227
  1251. package/workflows/documents/syncContainerRekeyPreparation.js.map +0 -1
  1252. package/workflows/documents/syncContainerRekeyProjection.js +0 -79
  1253. package/workflows/documents/syncContainerRekeyProjection.js.map +0 -1
  1254. package/workflows/documents/syncContainerRekeys.js +0 -72
  1255. package/workflows/documents/syncContainerRekeys.js.map +0 -1
  1256. package/workflows/documents/syncContentKeys.d.ts +0 -39
  1257. package/workflows/documents/syncContentKeys.js +0 -254
  1258. package/workflows/documents/syncContentKeys.js.map +0 -1
  1259. package/workflows/documents/syncFailureClassification.d.ts +0 -74
  1260. package/workflows/documents/syncFailureClassification.js +0 -122
  1261. package/workflows/documents/syncFailureClassification.js.map +0 -1
  1262. package/workflows/documents/syncFailures.js +0 -252
  1263. package/workflows/documents/syncFailures.js.map +0 -1
  1264. package/workflows/documents/syncLane.d.ts +0 -20
  1265. package/workflows/documents/syncLane.js +0 -94
  1266. package/workflows/documents/syncLane.js.map +0 -1
  1267. package/workflows/documents/syncPlanIdentity.js +0 -203
  1268. package/workflows/documents/syncPlanIdentity.js.map +0 -1
  1269. package/workflows/documents/syncPlanMaterial.js +0 -306
  1270. package/workflows/documents/syncPlanMaterial.js.map +0 -1
  1271. package/workflows/documents/syncPlanProjection.js.map +0 -1
  1272. package/workflows/documents/syncPlanRequestBounds.js +0 -54
  1273. package/workflows/documents/syncPlanRequestBounds.js.map +0 -1
  1274. package/workflows/documents/syncPolicyRepair.js +0 -50
  1275. package/workflows/documents/syncPolicyRepair.js.map +0 -1
  1276. package/workflows/documents/syncRecoveryRekey.d.ts +0 -70
  1277. package/workflows/documents/syncRecoveryRekey.js +0 -120
  1278. package/workflows/documents/syncRecoveryRekey.js.map +0 -1
  1279. package/workflows/documents/syncRekeyCommit.js +0 -18
  1280. package/workflows/documents/syncRepairAbandon.js.map +0 -1
  1281. package/workflows/documents/syncRepairAccess.js +0 -42
  1282. package/workflows/documents/syncRepairAccess.js.map +0 -1
  1283. package/workflows/documents/syncResponseResult.js +0 -134
  1284. package/workflows/documents/syncResponseResult.js.map +0 -1
  1285. package/workflows/documents/syncSubmittedResult.js +0 -119
  1286. package/workflows/documents/syncSubmittedResult.js.map +0 -1
  1287. package/workflows/documents/syncTrace.js +0 -148
  1288. package/workflows/organizations/acknowledgedDirectoryBindings.js +0 -18
  1289. package/workflows/organizations/acknowledgedDirectoryBindings.js.map +0 -1
  1290. package/workflows/organizations/authoredPrincipalPolicyWarmer.js +0 -25
  1291. package/workflows/organizations/authoredPrincipalPolicyWarmer.js.map +0 -1
  1292. package/workflows/organizations/commitCurrentGroupPolicyMutation.js +0 -139
  1293. package/workflows/organizations/commitCurrentGroupPolicyMutation.js.map +0 -1
  1294. package/workflows/organizations/createCurrentOrganizationGroup.js +0 -85
  1295. package/workflows/organizations/createCurrentOrganizationGroup.js.map +0 -1
  1296. package/workflows/organizations/createOrganization.d.ts +0 -62
  1297. package/workflows/organizations/createOrganization.js +0 -128
  1298. package/workflows/organizations/createOrganization.js.map +0 -1
  1299. package/workflows/organizations/currentGroupMetadataAuthority.js +0 -53
  1300. package/workflows/organizations/currentGroupMetadataAuthority.js.map +0 -1
  1301. package/workflows/organizations/currentGroupMutationReferences.js +0 -35
  1302. package/workflows/organizations/currentGroupMutationReferences.js.map +0 -1
  1303. package/workflows/organizations/currentGroupPolicyMutationContext.js +0 -79
  1304. package/workflows/organizations/currentGroupPolicyMutationContext.js.map +0 -1
  1305. package/workflows/organizations/currentOrganizationGroupNames.js +0 -72
  1306. package/workflows/organizations/currentOrganizationGroupNames.js.map +0 -1
  1307. package/workflows/organizations/currentOrganizationMutationAuthority.js +0 -16
  1308. package/workflows/organizations/currentOrganizationMutationAuthority.js.map +0 -1
  1309. package/workflows/organizations/currentOrganizationMutationRetention.js +0 -64
  1310. package/workflows/organizations/currentOrganizationMutationRetention.js.map +0 -1
  1311. package/workflows/organizations/currentPolicyMutationAcknowledgement.js +0 -65
  1312. package/workflows/organizations/currentPolicyMutationAcknowledgement.js.map +0 -1
  1313. package/workflows/organizations/currentPrincipalMutationLease.js +0 -39
  1314. package/workflows/organizations/currentPrincipalMutationLease.js.map +0 -1
  1315. package/workflows/organizations/dataUsageReadModel.d.ts +0 -19
  1316. package/workflows/organizations/dataUsageReadModel.js +0 -64
  1317. package/workflows/organizations/dataUsageReadModel.js.map +0 -1
  1318. package/workflows/organizations/deleteCurrentOrganizationGroup.js +0 -35
  1319. package/workflows/organizations/deleteCurrentOrganizationGroup.js.map +0 -1
  1320. package/workflows/organizations/deleteOrganizationGroup.d.ts +0 -19
  1321. package/workflows/organizations/deleteOrganizationGroup.js +0 -75
  1322. package/workflows/organizations/deleteOrganizationGroup.js.map +0 -1
  1323. package/workflows/organizations/groupCreation.d.ts +0 -21
  1324. package/workflows/organizations/groupCreation.js +0 -68
  1325. package/workflows/organizations/groupCreation.js.map +0 -1
  1326. package/workflows/organizations/groupMembershipName.d.ts +0 -8
  1327. package/workflows/organizations/groupMembershipName.js +0 -18
  1328. package/workflows/organizations/groupMembershipName.js.map +0 -1
  1329. package/workflows/organizations/groupMetadataAccess.d.ts +0 -33
  1330. package/workflows/organizations/groupMetadataAccess.js +0 -114
  1331. package/workflows/organizations/groupMetadataAccess.js.map +0 -1
  1332. package/workflows/organizations/groupMetadataBinding.js +0 -19
  1333. package/workflows/organizations/groupMetadataBinding.js.map +0 -1
  1334. package/workflows/organizations/groupMetadataContainerAuthority.js +0 -41
  1335. package/workflows/organizations/groupMetadataContainerAuthority.js.map +0 -1
  1336. package/workflows/organizations/groupMetadataErrors.js +0 -40
  1337. package/workflows/organizations/groupMetadataRootBinding.js +0 -51
  1338. package/workflows/organizations/groupMetadataRootBinding.js.map +0 -1
  1339. package/workflows/organizations/groupMetadataRuntime.js +0 -47
  1340. package/workflows/organizations/groupMetadataRuntime.js.map +0 -1
  1341. package/workflows/organizations/groupNameUniqueness.js +0 -151
  1342. package/workflows/organizations/groupNameUniqueness.js.map +0 -1
  1343. package/workflows/organizations/groupPolicyHistoryPage.js.map +0 -1
  1344. package/workflows/organizations/groupPolicyMutationAcknowledgement.js +0 -174
  1345. package/workflows/organizations/groupPolicyMutationAcknowledgement.js.map +0 -1
  1346. package/workflows/organizations/groupPolicyMutationContext.d.ts +0 -58
  1347. package/workflows/organizations/groupPolicyMutationContext.js +0 -166
  1348. package/workflows/organizations/groupPolicyMutationContext.js.map +0 -1
  1349. package/workflows/organizations/groupPolicyMutationEvidence.d.ts +0 -26
  1350. package/workflows/organizations/groupPolicyMutationEvidence.js +0 -64
  1351. package/workflows/organizations/groupPolicyMutationEvidence.js.map +0 -1
  1352. package/workflows/organizations/groupPolicyMutationHead.js +0 -26
  1353. package/workflows/organizations/groupPolicyRequests.js +0 -181
  1354. package/workflows/organizations/groupPolicyRequests.js.map +0 -1
  1355. package/workflows/organizations/groupPolicyVerification.js +0 -74
  1356. package/workflows/organizations/groupPolicyVerification.js.map +0 -1
  1357. package/workflows/organizations/listLocalOrganizations.d.ts +0 -20
  1358. package/workflows/organizations/listLocalOrganizations.js +0 -137
  1359. package/workflows/organizations/listLocalOrganizations.js.map +0 -1
  1360. package/workflows/organizations/loadPolicyHistoryDetails.js +0 -78
  1361. package/workflows/organizations/loadPolicyHistoryDetails.js.map +0 -1
  1362. package/workflows/organizations/localReadModelDetails.d.ts +0 -25
  1363. package/workflows/organizations/localReadModelDetails.js +0 -182
  1364. package/workflows/organizations/localReadModelDetails.js.map +0 -1
  1365. package/workflows/organizations/organizationGroupDirectory.js +0 -153
  1366. package/workflows/organizations/organizationGroupDirectory.js.map +0 -1
  1367. package/workflows/organizations/organizationGroupNamePolicies.js +0 -48
  1368. package/workflows/organizations/organizationGroupNamePolicies.js.map +0 -1
  1369. package/workflows/organizations/organizationGroupNames.js +0 -13
  1370. package/workflows/organizations/organizationGroupNames.js.map +0 -1
  1371. package/workflows/organizations/organizationPolicyHistoryDetails.js +0 -110
  1372. package/workflows/organizations/organizationPolicyHistoryDetails.js.map +0 -1
  1373. package/workflows/organizations/organizationPolicyHistoryVerification.js +0 -67
  1374. package/workflows/organizations/organizationPolicyHistoryVerification.js.map +0 -1
  1375. package/workflows/organizations/organizationPresentationAccessState.js +0 -173
  1376. package/workflows/organizations/organizationPresentationAccessState.js.map +0 -1
  1377. package/workflows/organizations/organizationPresentationFailures.js +0 -7
  1378. package/workflows/organizations/organizationProvisioningAttempt.d.ts +0 -36
  1379. package/workflows/organizations/organizationProvisioningAttempt.js +0 -205
  1380. package/workflows/organizations/organizationProvisioningAttempt.js.map +0 -1
  1381. package/workflows/organizations/organizationReplacementVerification.js +0 -26
  1382. package/workflows/organizations/organizationReplacementVerification.js.map +0 -1
  1383. package/workflows/organizations/policyHistoryAccessDenial.js +0 -19
  1384. package/workflows/organizations/policyHistoryAccessDenial.js.map +0 -1
  1385. package/workflows/organizations/policyHistoryCache.js +0 -42
  1386. package/workflows/organizations/policyHistoryCache.js.map +0 -1
  1387. package/workflows/organizations/policyHistoryReadModel.d.ts +0 -9
  1388. package/workflows/organizations/policyHistoryTypes.d.ts +0 -58
  1389. package/workflows/organizations/precedingPrincipalRematerialization.js +0 -31
  1390. package/workflows/organizations/precedingPrincipalRematerialization.js.map +0 -1
  1391. package/workflows/organizations/principalContainerRematerialization.js +0 -321
  1392. package/workflows/organizations/principalContainerRematerialization.js.map +0 -1
  1393. package/workflows/organizations/principalContainerRematerializationPlanning.js +0 -77
  1394. package/workflows/organizations/principalContainerRematerializationPlanning.js.map +0 -1
  1395. package/workflows/organizations/principalContainerRematerializationTargets.js +0 -79
  1396. package/workflows/organizations/principalContainerRematerializationTargets.js.map +0 -1
  1397. package/workflows/organizations/principalMutationJournalManagement.d.ts +0 -26
  1398. package/workflows/organizations/principalMutationJournalManagement.js +0 -104
  1399. package/workflows/organizations/principalMutationJournalManagement.js.map +0 -1
  1400. package/workflows/organizations/principalMutationJournalSession.d.ts +0 -26
  1401. package/workflows/organizations/principalMutationJournalSession.js +0 -85
  1402. package/workflows/organizations/principalMutationJournalSession.js.map +0 -1
  1403. package/workflows/organizations/principalMutationReceipt.js +0 -28
  1404. package/workflows/organizations/principalMutationReceipt.js.map +0 -1
  1405. package/workflows/organizations/principalOperationReceipt.d.ts +0 -5
  1406. package/workflows/organizations/principalOperationReceipt.js +0 -36
  1407. package/workflows/organizations/principalOperationReceipt.js.map +0 -1
  1408. package/workflows/organizations/principalPolicy.d.ts +0 -98
  1409. package/workflows/organizations/principalPolicy.js +0 -256
  1410. package/workflows/organizations/principalPolicy.js.map +0 -1
  1411. package/workflows/organizations/principalPolicyApi.d.ts +0 -33
  1412. package/workflows/organizations/principalPolicyApi.js.map +0 -1
  1413. package/workflows/organizations/principalPolicyReceiptArtifacts.js +0 -74
  1414. package/workflows/organizations/principalPolicyReceiptArtifacts.js.map +0 -1
  1415. package/workflows/organizations/principalPolicyRecipients.js +0 -43
  1416. package/workflows/organizations/principalPolicyRecipients.js.map +0 -1
  1417. package/workflows/organizations/principalPolicyRequest.d.ts +0 -68
  1418. package/workflows/organizations/principalPolicyRequest.js +0 -176
  1419. package/workflows/organizations/readModel.d.ts +0 -70
  1420. package/workflows/organizations/readModel.js +0 -10
  1421. package/workflows/organizations/readModel.js.map +0 -1
  1422. package/workflows/organizations/readModelProjection.d.ts +0 -29
  1423. package/workflows/organizations/readModelProjection.js +0 -255
  1424. package/workflows/organizations/readModelProjection.js.map +0 -1
  1425. package/workflows/organizations/retainAcknowledgedPrincipalCurrents.d.ts +0 -6
  1426. package/workflows/organizations/retainAcknowledgedPrincipalCurrents.js +0 -20
  1427. package/workflows/organizations/retainAcknowledgedPrincipalCurrents.js.map +0 -1
  1428. package/workflows/organizations/runtimeCurrentGroupMutation.js +0 -113
  1429. package/workflows/organizations/runtimeCurrentGroupMutation.js.map +0 -1
  1430. package/workflows/organizations/runtimeCurrentOrganizationMutation.js +0 -48
  1431. package/workflows/organizations/runtimeCurrentOrganizationMutation.js.map +0 -1
  1432. package/workflows/organizations/runtimeGroupMetadataAuthority.js +0 -16
  1433. package/workflows/organizations/runtimeGroupMetadataAuthority.js.map +0 -1
  1434. package/workflows/organizations/submitGroupPolicyCommit.d.ts +0 -22
  1435. package/workflows/organizations/submitGroupPolicyCommit.js +0 -71
  1436. package/workflows/organizations/submitGroupPolicyCommit.js.map +0 -1
  1437. package/workflows/principals/acknowledgedPrincipalCurrents.d.ts +0 -33
  1438. package/workflows/principals/acknowledgedPrincipalCurrents.js +0 -140
  1439. package/workflows/principals/acknowledgedPrincipalCurrents.js.map +0 -1
  1440. package/workflows/principals/acknowledgedPrincipalPredecessor.d.ts +0 -39
  1441. package/workflows/principals/acknowledgedPrincipalPredecessor.js +0 -87
  1442. package/workflows/principals/acknowledgedPrincipalPredecessor.js.map +0 -1
  1443. package/workflows/principals/initialPrincipalCurrentPublication.js +0 -84
  1444. package/workflows/principals/initialPrincipalCurrentPublication.js.map +0 -1
  1445. package/workflows/principals/loadRecoveredPrincipalHistoryPage.d.ts +0 -10
  1446. package/workflows/principals/loadRecoveredPrincipalHistoryPage.js +0 -119
  1447. package/workflows/principals/loadRecoveredPrincipalHistoryPage.js.map +0 -1
  1448. package/workflows/principals/policyCache.d.ts +0 -20
  1449. package/workflows/principals/policyCache.js +0 -242
  1450. package/workflows/principals/policyCache.js.map +0 -1
  1451. package/workflows/principals/principalAcknowledgementChecks.d.ts +0 -30
  1452. package/workflows/principals/principalCurrentPublicationSeal.js +0 -51
  1453. package/workflows/principals/principalCurrentPublicationSeal.js.map +0 -1
  1454. package/workflows/principals/principalCurrentRecoveryBatch.js +0 -14
  1455. package/workflows/principals/principalCurrentRecoveryBatch.js.map +0 -1
  1456. package/workflows/principals/principalHistoryRecoveryAuthority.js +0 -20
  1457. package/workflows/principals/principalHistoryRecoveryAuthority.js.map +0 -1
  1458. package/workflows/principals/principalHistoryRecoveryPrefix.js +0 -69
  1459. package/workflows/principals/principalHistoryRecoveryPrefix.js.map +0 -1
  1460. package/workflows/principals/principalHistoryRecoveryReferences.js +0 -68
  1461. package/workflows/principals/principalHistoryRecoveryReferences.js.map +0 -1
  1462. package/workflows/principals/principalHistoryRecoveryStage.js +0 -61
  1463. package/workflows/principals/principalHistoryRecoveryStage.js.map +0 -1
  1464. package/workflows/principals/principalHistoryRecoveryTypes.d.ts +0 -35
  1465. package/workflows/principals/principalHistoryRecoveryTypes.js +0 -16
  1466. package/workflows/principals/principalHistoryRecoveryTypes.js.map +0 -1
  1467. package/workflows/principals/principalHistoryRecoveryVerification.js +0 -29
  1468. package/workflows/principals/principalPolicyCacheAdvance.js +0 -39
  1469. package/workflows/principals/principalPolicyCacheAdvance.js.map +0 -1
  1470. package/workflows/principals/principalPolicyCacheValidation.js +0 -149
  1471. package/workflows/principals/principalPolicyCacheValidation.js.map +0 -1
  1472. package/workflows/principals/principalPolicyOrganizationScope.js +0 -67
  1473. package/workflows/principals/principalPolicyOrganizationScope.js.map +0 -1
  1474. package/workflows/principals/principalRecoveryDirectory.d.ts +0 -10
  1475. package/workflows/principals/principalRecoveryDirectory.js +0 -127
  1476. package/workflows/principals/principalRecoveryDirectory.js.map +0 -1
  1477. package/workflows/principals/principalRecoveryDiscoveryPage.js.map +0 -1
  1478. package/workflows/principals/principalRecoveryLocalPreference.js +0 -30
  1479. package/workflows/principals/principalRecoveryLocalPreference.js.map +0 -1
  1480. package/workflows/principals/principalRecoveryMemo.d.ts +0 -21
  1481. package/workflows/principals/principalRecoveryMemo.js +0 -178
  1482. package/workflows/principals/principalRecoveryMemo.js.map +0 -1
  1483. package/workflows/principals/principalRecoveryMemoValidity.js +0 -33
  1484. package/workflows/principals/principalRecoveryMemoValidity.js.map +0 -1
  1485. package/workflows/principals/principalRecoveryOutage.js +0 -40
  1486. package/workflows/principals/principalRecoveryOutage.js.map +0 -1
  1487. package/workflows/principals/publicPrincipalHistoryAuthority.js +0 -60
  1488. package/workflows/principals/publicPrincipalHistoryAuthority.js.map +0 -1
  1489. package/workflows/principals/publicPrincipalHistoryPage.js +0 -88
  1490. package/workflows/principals/publicPrincipalHistoryPage.js.map +0 -1
  1491. package/workflows/principals/publicPrincipalHistoryProgress.js +0 -179
  1492. package/workflows/principals/publicPrincipalHistoryProgress.js.map +0 -1
  1493. package/workflows/principals/publicPrincipalHistoryTypes.d.ts +0 -41
  1494. package/workflows/principals/publicPrincipalHistoryTypes.js.map +0 -1
  1495. package/workflows/principals/publicProjectionDirectory.js +0 -40
  1496. package/workflows/principals/publicProjectionDirectory.js.map +0 -1
  1497. package/workflows/principals/publicProjectionPrincipal.js +0 -54
  1498. package/workflows/principals/publicProjectionPrincipal.js.map +0 -1
  1499. package/workflows/principals/reconcileAcknowledgedPrincipalCurrent.js +0 -68
  1500. package/workflows/principals/reconcileAcknowledgedPrincipalCurrent.js.map +0 -1
  1501. package/workflows/principals/recoverCurrentOrganizationPolicy.js +0 -38
  1502. package/workflows/principals/recoverCurrentOrganizationPolicy.js.map +0 -1
  1503. package/workflows/principals/recoverPrincipalHistoryPage.js +0 -31
  1504. package/workflows/principals/recoverPrincipalPolicyHistory.js +0 -295
  1505. package/workflows/principals/recoverPrincipalPolicyHistory.js.map +0 -1
  1506. package/workflows/principals/recoverProjectionPolicyHistory.d.ts +0 -9
  1507. package/workflows/principals/recoverProjectionPolicyHistory.js +0 -98
  1508. package/workflows/principals/recoverProjectionPolicyHistory.js.map +0 -1
  1509. package/workflows/principals/recoverPublicPrincipalHistory.js +0 -178
  1510. package/workflows/principals/recoverPublicPrincipalHistory.js.map +0 -1
  1511. package/workflows/principals/recoverScopedPrincipalPolicyHistory.d.ts +0 -27
  1512. package/workflows/principals/recoverScopedPrincipalPolicyHistory.js +0 -163
  1513. package/workflows/principals/recoverScopedPrincipalPolicyHistory.js.map +0 -1
  1514. package/workflows/principals/selectPublicPrincipalHistory.js +0 -96
  1515. package/workflows/principals/selectPublicPrincipalHistory.js.map +0 -1
  1516. /package/data/keyingProjectionVerification/{containerCreateManifest.js.map → container/containerCreateManifest.js.map} +0 -0
  1517. /package/data/keyingProjectionVerification/{documentContainerProjections.js → document/documentContainerProjections.js} +0 -0
  1518. /package/data/keyingProjectionVerification/{documentContainerProjections.js.map → document/documentContainerProjections.js.map} +0 -0
  1519. /package/data/keyingProjectionVerification/{documentManifestPredecessor.js.map → document/documentManifestPredecessor.js.map} +0 -0
  1520. /package/stores/container-contents/{containerStateMap.js → containerState/containerStateMap.js} +0 -0
  1521. /package/stores/container-contents/{missingSyncedContainerState.js → containerState/missingSyncedContainerState.js} +0 -0
  1522. /package/stores/container-contents/{reconcilableContainer.js → containerState/reconcilableContainer.js} +0 -0
  1523. /package/stores/container-contents/{remoteHydrationRefresh.js → hydration/remoteHydrationRefresh.js} +0 -0
  1524. /package/stores/container-contents/{remoteHydrationRefresh.js.map → hydration/remoteHydrationRefresh.js.map} +0 -0
  1525. /package/stores/container-contents/{emptyTrashOperation.js → operations/emptyTrashOperation.js} +0 -0
  1526. /package/stores/container-contents/{purgeContainerOperation.js → operations/purgeContainerOperation.js} +0 -0
  1527. /package/stores/container-contents/{remoteBackedContainerState.js → remoteEvents/remoteBackedContainerState.js} +0 -0
  1528. /package/stores/container-contents/{writeGeneration.js → remoteWrites/writeGeneration.js} +0 -0
  1529. /package/stores/container-contents/{syncAgentTypes.js → syncAgent/syncAgentTypes.js} +0 -0
  1530. /package/stores/container-contents/{systemContainerLookup.js → systemContainers/systemContainerLookup.js} +0 -0
  1531. /package/stores/documents/documentStore/{attachmentPersistFollowup.js → attachments/attachmentPersistFollowup.js} +0 -0
  1532. /package/stores/documents/documentStore/{attachmentSnapshot.js → attachments/attachmentSnapshot.js} +0 -0
  1533. /package/stores/documents/documentStore/{remoteWork.js → sync/remoteWork.js} +0 -0
  1534. /package/stores/documents/documentStore/{syncAcceptedUpdateIds.js → sync/syncAcceptedUpdateIds.js} +0 -0
  1535. /package/stores/documents/documentStore/{syncGeneration.js → sync/syncGeneration.js} +0 -0
  1536. /package/stores/documents/documentStore/{versionCoverage.js.map → sync/versionCoverage.js.map} +0 -0
  1537. /package/workflows/blobs/{readAttachmentTransfer.js → hydration/readAttachmentTransfer.js} +0 -0
  1538. /package/workflows/blobs/{readAttachmentTransfer.js.map → hydration/readAttachmentTransfer.js.map} +0 -0
  1539. /package/workflows/blobs/{multipartStageResolution.js → upload/multipartStageResolution.js} +0 -0
  1540. /package/workflows/container-contents/container-state/{createIntentSettlement.js → create/createIntentSettlement.js} +0 -0
  1541. /package/workflows/container-contents/container-state/{purgeProgress.d.ts → purge/purgeProgress.d.ts} +0 -0
  1542. /package/workflows/container-contents/container-state/{purgeProgress.js → purge/purgeProgress.js} +0 -0
  1543. /package/workflows/container-contents/container-state/{purgeProgress.js.map → purge/purgeProgress.js.map} +0 -0
  1544. /package/workflows/container-contents/container-state/{purgeTreeCollection.js → purge/purgeTreeCollection.js} +0 -0
  1545. /package/workflows/container-contents/remoteHydration/{destinationPrefetch.js → destination/destinationPrefetch.js} +0 -0
  1546. /package/workflows/container-contents/remoteHydration/{destinationRoleCache.js → destination/destinationRoleCache.js} +0 -0
  1547. /package/workflows/container-contents/remoteHydration/{childIndex.js → lanes/childIndex.js} +0 -0
  1548. /package/workflows/container-contents/remoteHydration/{parentLaneQueue.js → lanes/parentLaneQueue.js} +0 -0
  1549. /package/workflows/container-contents/remoteHydration/{containerStateFingerprint.js → remoteContainers/containerStateFingerprint.js} +0 -0
  1550. /package/workflows/container-contents/remoteHydration/{remoteContainerTimestamps.js → remoteContainers/remoteContainerTimestamps.js} +0 -0
  1551. /package/workflows/containers/child/{keyringOverrideLineage.js.map → rekey/keyringOverrideLineage.js.map} +0 -0
  1552. /package/workflows/containers/child/{shareProjection.js → share/shareProjection.js} +0 -0
  1553. /package/workflows/documents/{attachmentPersistence.js → attachments/attachmentPersistence.js} +0 -0
  1554. /package/workflows/documents/{orphanBlobReclaimState.js → attachments/orphanBlobReclaimState.js} +0 -0
  1555. /package/workflows/documents/{createProjection.js → create/createProjection.js} +0 -0
  1556. /package/workflows/documents/{createProjection.js.map → create/createProjection.js.map} +0 -0
  1557. /package/workflows/documents/{createProjectionFetch.js → create/createProjectionFetch.js} +0 -0
  1558. /package/workflows/documents/{reportDocumentSyncQuarantine.js → sync/reportDocumentSyncQuarantine.js} +0 -0
  1559. /package/workflows/documents/{syncAttemptState.js → sync/syncAttemptState.js} +0 -0
  1560. /package/workflows/documents/{syncTrace.d.ts → sync/syncTrace.d.ts} +0 -0
  1561. /package/workflows/documents/{syncTrace.js.map → sync/syncTrace.js.map} +0 -0
  1562. /package/workflows/documents/{syncFailureClearance.d.ts → syncFailures/syncFailureClearance.d.ts} +0 -0
  1563. /package/workflows/documents/{syncFailureClearance.js → syncFailures/syncFailureClearance.js} +0 -0
  1564. /package/workflows/documents/{syncFailureClearance.js.map → syncFailures/syncFailureClearance.js.map} +0 -0
  1565. /package/workflows/documents/{syncRepairAbandon.js → syncFailures/syncRepairAbandon.js} +0 -0
  1566. /package/workflows/documents/{syncPlanProjection.js → syncPlan/syncPlanProjection.js} +0 -0
  1567. /package/workflows/documents/{syncRekeyCommit.js.map → syncRekeys/syncRekeyCommit.js.map} +0 -0
  1568. /package/workflows/organizations/{groupMetadataErrors.js.map → groupMetadata/groupMetadataErrors.js.map} +0 -0
  1569. /package/workflows/organizations/{groupMutationAuthorization.js → groupPolicy/groupMutationAuthorization.js} +0 -0
  1570. /package/workflows/organizations/{groupMutationAuthorization.js.map → groupPolicy/groupMutationAuthorization.js.map} +0 -0
  1571. /package/workflows/organizations/{groupPolicyMutationHead.js.map → groupPolicy/groupPolicyMutationHead.js.map} +0 -0
  1572. /package/workflows/organizations/{groupPolicyHistoryPage.js → policyHistory/groupPolicyHistoryPage.js} +0 -0
  1573. /package/workflows/organizations/{policyHistoryReadModel.js → policyHistory/policyHistoryReadModel.js} +0 -0
  1574. /package/workflows/organizations/{policyHistoryReadModel.js.map → policyHistory/policyHistoryReadModel.js.map} +0 -0
  1575. /package/workflows/organizations/{policyHistoryTypes.js → policyHistory/policyHistoryTypes.js} +0 -0
  1576. /package/workflows/organizations/{policyHistoryTypes.js.map → policyHistory/policyHistoryTypes.js.map} +0 -0
  1577. /package/workflows/organizations/{principalPolicyApi.js → principalPolicy/principalPolicyApi.js} +0 -0
  1578. /package/workflows/organizations/{principalPolicyRequest.js.map → principalPolicy/principalPolicyRequest.js.map} +0 -0
  1579. /package/workflows/organizations/{organizationPresentationFailures.js.map → readModel/organizationPresentationFailures.js.map} +0 -0
  1580. /package/workflows/principals/{principalAcknowledgementChecks.js → acknowledgements/principalAcknowledgementChecks.js} +0 -0
  1581. /package/workflows/principals/{principalAcknowledgementChecks.js.map → acknowledgements/principalAcknowledgementChecks.js.map} +0 -0
  1582. /package/workflows/principals/{principalHistoryRecoveryVerification.js.map → historyRecovery/principalHistoryRecoveryVerification.js.map} +0 -0
  1583. /package/workflows/principals/{recoverPrincipalHistoryPage.js.map → historyRecovery/recoverPrincipalHistoryPage.js.map} +0 -0
  1584. /package/workflows/principals/{recoverPrincipalPolicyHistory.d.ts → historyRecovery/recoverPrincipalPolicyHistory.d.ts} +0 -0
  1585. /package/workflows/principals/{principalPolicyCacheScope.js → policyCache/principalPolicyCacheScope.js} +0 -0
  1586. /package/workflows/principals/{principalPolicyCacheScope.js.map → policyCache/principalPolicyCacheScope.js.map} +0 -0
  1587. /package/workflows/principals/{publicPrincipalHistoryTypes.js → publicHistory/publicPrincipalHistoryTypes.js} +0 -0
  1588. /package/workflows/principals/{principalRecoveryDiscoveryPage.js → recoveryOperation/principalRecoveryDiscoveryPage.js} +0 -0
@@ -1,75 +0,0 @@
1
- import { bytesToBase64 } from "../../../internal/encoding/index.js";
2
- import { encodeVersionVector, exportFullHistorySnapshot, } from "../../../internal/loro/index.js";
3
- import { readPullContinuation } from "../../../data/documents/shared/syncPagination.js";
4
- import { persistDocument } from "./persistence.js";
5
- import { isDocumentStoreSyncGenerationCurrent, } from "./syncGeneration.js";
6
- import { installDocumentWriterProjection } from "./writerProjectionGeneration.js";
7
- /**
8
- * Machinery for reconstructing a full-history document from a verified remote
9
- * pull. Used by the rotation preflight (rotation.ts): it pulls the remote op
10
- * log, replays it into a fresh document alongside the durable local queue,
11
- * and installs the rebuilt document — preserving op identity end to end.
12
- */
13
- export async function installRebuiltDocument(input) {
14
- // The guarded persist makes the recovered history durable BEFORE publishing
15
- // the newer record. Checkpoint-ahead is the safe crash direction: restore
16
- // reads the checkpoint and the record catches up on the next persist.
17
- const fullHistorySnapshot = exportFullHistorySnapshot(input.rebuiltDoc);
18
- const rebuiltEndVersion = encodeVersionVector(input.rebuiltDoc);
19
- const persisted = await persistDocument(input.state, input.rebuiltDoc, {
20
- ...input.synced.persistedState,
21
- lastCommitLsn: input.synced.response.commitLsn ??
22
- input.currentRecord.lastCommitLsn ??
23
- null,
24
- pullContinuation: readPullContinuation(input.synced.response),
25
- recoveryGeneration: (input.currentRecord.recoveryGeneration ?? 0) + 1,
26
- // The guarded checkpoint below covers exactly this frontier.
27
- snapshotEndVersion: rebuiltEndVersion,
28
- }, {
29
- acceptedPendingUpdateIds: input.synced.settledPendingUpdateIds,
30
- expectedSyncState: {
31
- pullContinuation: input.consumedPullContinuation,
32
- record: input.currentRecord,
33
- },
34
- historyCheckpoint: {
35
- coveredTailIds: [],
36
- endVersionVector: rebuiltEndVersion,
37
- pruneCoveredLocalState: true,
38
- snapshot: bytesToBase64(fullHistorySnapshot),
39
- },
40
- pendingBaseVersionOverride: rebuiltEndVersion,
41
- preserveSnapshotStructuredFields: input.state.pendingLocalWrites > 0,
42
- preserveSnapshotText: input.state.pendingLocalWrites > 0,
43
- }, input.generation);
44
- if (!persisted) {
45
- if (!isDocumentStoreSyncGenerationCurrent(input.state, input.generation)) {
46
- throw new Error("Document changed during rotation recovery; retry key rotation");
47
- }
48
- // The resurrect guard refused: another subsystem deleted this document
49
- // while the rebuild was in flight, and saveDocumentRecord cleared the
50
- // zombie store — pendingBaseVersion included. Restoring the rebuilt doc,
51
- // projection, or the captured base version here would resurrect state
52
- // over that clearing.
53
- throw new Error("Document was deleted while its history rebuild was in flight");
54
- }
55
- if (!persisted.pullContinuationSuperseded &&
56
- !persisted.syncIdentitySuperseded) {
57
- input.state.pendingBaseVersion = rebuiltEndVersion;
58
- input.state.doc = input.rebuiltDoc;
59
- }
60
- if (persisted.pullContinuationSuperseded)
61
- input.state.writerProjection = null;
62
- else
63
- installDocumentWriterProjection(input.state, input.synced.writerProjection ?? input.state.writerProjection, input.writerProjectionGeneration);
64
- const installedDoc = input.state.doc ?? input.rebuiltDoc;
65
- return {
66
- fullHistorySnapshot: persisted.pullContinuationSuperseded
67
- ? exportFullHistorySnapshot(installedDoc)
68
- : fullHistorySnapshot,
69
- settlementRequiresRetry: persisted.pullContinuationSuperseded === true ||
70
- persisted.syncIdentitySuperseded === true ||
71
- persisted.record.pullContinuation != null ||
72
- persisted.record.pullContinuationRecoveryRequired === true,
73
- };
74
- }
75
- //# sourceMappingURL=historyRebuild.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"historyRebuild.js","sourceRoot":"","sources":["historyRebuild.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EACL,mBAAmB,EACn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QACvB,uBAAuB,EACrB,SAAS,CAAC,0BAA0B,KAAK,IAAI;YAC7C,SAAS,CAAC,sBAAsB,KAAK,IAAI;YACzC,SAAS,CAAC,MAAM,CAAC,gBAAgB,IAAI,IAAI;YACzC,SAAS,CAAC,MAAM,CAAC,gCAAgC,KAAK,IAAI;KAC7D,CAAC;AACJ,CAAC","sourcesContent":["import { bytesToBase64 } from \"@tearleads/encoding\";\nimport {\n encodeVersionVector,\n exportFullHistorySnapshot,\n} from \"@tearleads/loro\";\nimport { readPullContinuation } from \"../../../data/documents/shared/syncPagination\";\nimport type {\n DocumentSyncPullContinuation,\n syncRemoteDocument,\n} from \"../../../workflows/documents\";\nimport { persistDocument } from \"./persistence\";\nimport type { DocumentState, DocumentStoreState } from \"./state\";\nimport {\n type DocumentStoreSyncGeneration,\n isDocumentStoreSyncGenerationCurrent,\n} from \"./syncGeneration\";\nimport { installDocumentWriterProjection } from \"./writerProjectionGeneration\";\n\n/**\n * Machinery for reconstructing a full-history document from a verified remote\n * pull. Used by the rotation preflight (rotation.ts): it pulls the remote op\n * log, replays it into a fresh document alongside the durable local queue,\n * and installs the rebuilt document — preserving op identity end to end.\n */\n\nexport async function installRebuiltDocument(input: {\n consumedPullContinuation: DocumentSyncPullContinuation | null;\n currentRecord: NonNullable<DocumentStoreState[\"record\"]>;\n generation: DocumentStoreSyncGeneration;\n rebuiltDoc: DocumentState;\n state: DocumentStoreState;\n synced: NonNullable<Awaited<ReturnType<typeof syncRemoteDocument>>>;\n /** `state.writerProjectionGeneration` when the recovery pull started. */\n writerProjectionGeneration: number;\n}): Promise<{\n fullHistorySnapshot: Uint8Array;\n settlementRequiresRetry: boolean;\n}> {\n // The guarded persist makes the recovered history durable BEFORE publishing\n // the newer record. Checkpoint-ahead is the safe crash direction: restore\n // reads the checkpoint and the record catches up on the next persist.\n const fullHistorySnapshot = exportFullHistorySnapshot(input.rebuiltDoc);\n const rebuiltEndVersion = encodeVersionVector(input.rebuiltDoc);\n const persisted = await persistDocument(\n input.state,\n input.rebuiltDoc,\n {\n ...input.synced.persistedState,\n lastCommitLsn:\n input.synced.response.commitLsn ??\n input.currentRecord.lastCommitLsn ??\n null,\n pullContinuation: readPullContinuation(input.synced.response),\n recoveryGeneration: (input.currentRecord.recoveryGeneration ?? 0) + 1,\n // The guarded checkpoint below covers exactly this frontier.\n snapshotEndVersion: rebuiltEndVersion,\n },\n {\n acceptedPendingUpdateIds: input.synced.settledPendingUpdateIds,\n expectedSyncState: {\n pullContinuation: input.consumedPullContinuation,\n record: input.currentRecord,\n },\n historyCheckpoint: {\n coveredTailIds: [],\n endVersionVector: rebuiltEndVersion,\n pruneCoveredLocalState: true,\n snapshot: bytesToBase64(fullHistorySnapshot),\n },\n pendingBaseVersionOverride: rebuiltEndVersion,\n preserveSnapshotStructuredFields: input.state.pendingLocalWrites > 0,\n preserveSnapshotText: input.state.pendingLocalWrites > 0,\n },\n input.generation,\n );\n if (!persisted) {\n if (!isDocumentStoreSyncGenerationCurrent(input.state, input.generation)) {\n throw new Error(\n \"Document changed during rotation recovery; retry key rotation\",\n );\n }\n // The resurrect guard refused: another subsystem deleted this document\n // while the rebuild was in flight, and saveDocumentRecord cleared the\n // zombie store — pendingBaseVersion included. Restoring the rebuilt doc,\n // projection, or the captured base version here would resurrect state\n // over that clearing.\n throw new Error(\n \"Document was deleted while its history rebuild was in flight\",\n );\n }\n if (\n !persisted.pullContinuationSuperseded &&\n !persisted.syncIdentitySuperseded\n ) {\n input.state.pendingBaseVersion = rebuiltEndVersion;\n input.state.doc = input.rebuiltDoc;\n }\n if (persisted.pullContinuationSuperseded) input.state.writerProjection = null;\n else\n installDocumentWriterProjection(\n input.state,\n input.synced.writerProjection ?? input.state.writerProjection,\n input.writerProjectionGeneration,\n );\n const installedDoc = input.state.doc ?? input.rebuiltDoc;\n return {\n fullHistorySnapshot: persisted.pullContinuationSuperseded\n ? exportFullHistorySnapshot(installedDoc)\n : fullHistorySnapshot,\n settlementRequiresRetry:\n persisted.pullContinuationSuperseded === true ||\n persisted.syncIdentitySuperseded === true ||\n persisted.record.pullContinuation != null ||\n persisted.record.pullContinuationRecoveryRequired === true,\n };\n}\n"]}
@@ -1,330 +0,0 @@
1
- import { bytesToBase64 } from "../../../internal/encoding/index.js";
2
- import { emptyVersionVector, encodeVersionVector, exportAllUpdates, exportFullHistorySnapshot, mergeVersionVectors, } from "../../../internal/loro/index.js";
3
- import { DEFAULT_DOCUMENT_ACCESS_EPOCH, DEFAULT_DOCUMENT_KIND, } from "../../../data/documents/documentConstants.js";
4
- import { initializeStoredDocumentKind, readStoredDocumentState, } from "../../../data/documents/documentKinds.js";
5
- import { createPendingUpdateFields } from "../../../data/documents/documentSync.js";
6
- import { isDatabaseUnavailableError, loadPersistedDocumentStoreState, } from "../../../workflows/documents/index.js";
7
- import { chainIdentityWrite } from "./identityWriteChain.js";
8
- import { installPersistedAttachments, } from "./initializationAttachments.js";
9
- import { restoredRemoteTailCoverage, restorePersistedDocumentContent, } from "./initializationHistory.js";
10
- import { healLocalAttachmentDetachState, recoverDroppedAttachmentSlots, } from "./initializationRecovery.js";
11
- import { runDocumentOrphanMaintenance } from "./orphanMaintenance.js";
12
- import { advancePendingBaseVersion, documentSummaryFromRecord, persistDocument, saveDocumentRecord, } from "./persistence.js";
13
- import { logRevalidationScheduled } from "./remoteRevalidationTelemetry.js";
14
- import { setReadySnapshot, } from "./state.js";
15
- import { createStoredDocument } from "./storedDocument.js";
16
- import { allowDocumentStoreRemoteSync, captureDocumentStoreSyncGeneration, invalidateDocumentStoreRemoteSync, isDocumentStoreSyncGenerationCurrent, markDocumentStoreRemoteSyncPending, } from "./syncGeneration.js";
17
- async function createInitialDocumentRecord(state, nextDoc) {
18
- initializeStoredDocumentKind(nextDoc, state.initialDocumentKind, state.runtime.infra.documentProjectors);
19
- if (state.initialText.length > 0) {
20
- nextDoc.getText("text").update(state.initialText);
21
- }
22
- const initialDocumentState = readStoredDocumentState(nextDoc, state.runtime.infra.documentProjectors);
23
- const hasInitialContent = state.initialText.length > 0 ||
24
- state.initialDocumentKind !== DEFAULT_DOCUMENT_KIND;
25
- const initialUpdate = hasInitialContent
26
- ? createPendingUpdateFields(exportAllUpdates(nextDoc))
27
- : null;
28
- // A deferred birth still commits its checkpoint, but leaves the marker at the
29
- // empty version with nothing queued: the promised attach exports every op
30
- // since that marker, so one update carries the birth and the attachment.
31
- const birthDurability = !initialUpdate
32
- ? {}
33
- : state.deferInitialUpdate
34
- ? { pendingBaseVersionOverride: emptyVersionVector() }
35
- : { pendingUpdate: initialUpdate };
36
- const created = {
37
- id: state.localId,
38
- containerId: state.runtime.state.containerId ?? null,
39
- documentId: state.initialDocumentId,
40
- documentKind: initialDocumentState.documentKind,
41
- text: initialDocumentState.text,
42
- title: initialDocumentState.title,
43
- snapshotEndVersion: encodeVersionVector(nextDoc),
44
- accessEpoch: DEFAULT_DOCUMENT_ACCESS_EPOCH,
45
- accessStateHash: null,
46
- effectiveAccessLevel: "admin",
47
- lastCommitLsn: null,
48
- contentKeyBundle: null,
49
- documentKekTargets: null,
50
- documentManifestBundle: null,
51
- };
52
- // The create-only persistence primitive commits the canonical row and birth
53
- // checkpoint together. A concurrent initializer either wins both or adopts
54
- // both, so it cannot replace another pane's history or keying state.
55
- const persisted = await saveDocumentRecord(state, nextDoc, {
56
- ...created,
57
- snapshotEndVersion: encodeVersionVector(nextDoc),
58
- }, {
59
- historyCheckpoint: {
60
- coveredTailIds: [],
61
- endVersionVector: encodeVersionVector(nextDoc),
62
- pruneCoveredLocalState: false,
63
- snapshot: bytesToBase64(exportFullHistorySnapshot(nextDoc)),
64
- },
65
- ...birthDurability,
66
- });
67
- return persisted;
68
- }
69
- function installPersistedDocumentRecord(state, record) {
70
- state.record = record;
71
- state.pullContinuation = record.pullContinuation ?? null;
72
- }
73
- async function restoreLoadedInitialDocument(input) {
74
- const { initializeGeneration, persistedState, state } = input;
75
- const record = persistedState.document;
76
- if (!record)
77
- return null;
78
- const history = await restorePersistedDocumentContent(input.nextDoc, persistedState.historyRestoreState);
79
- if (state.localWriteGeneration !== initializeGeneration)
80
- return null;
81
- installPersistedDocumentRecord(state, record);
82
- return {
83
- activePersistedState: persistedState,
84
- activeRecord: record,
85
- doc: input.nextDoc,
86
- history,
87
- };
88
- }
89
- async function restoreOrCreateInitialDocument(input) {
90
- const { initializeGeneration, persistedState, state } = input;
91
- if (persistedState.document) {
92
- return restoreLoadedInitialDocument(input);
93
- }
94
- const created = await createInitialDocumentRecord(state, input.nextDoc);
95
- if (!created || state.localWriteGeneration !== initializeGeneration) {
96
- return null;
97
- }
98
- const activePersistedState = await loadPersistedDocumentStoreState({
99
- execSql: state.runtime.infra.execSql,
100
- localId: state.localId,
101
- persistence: state.persistence,
102
- });
103
- if (state.localWriteGeneration !== initializeGeneration) {
104
- return null;
105
- }
106
- if (!activePersistedState.document) {
107
- throw new Error("Document creation completed without a durable record");
108
- }
109
- const replacementDoc = await createStoredDocument(state);
110
- return restoreLoadedInitialDocument({
111
- initializeGeneration,
112
- nextDoc: replacementDoc,
113
- persistedState: activePersistedState,
114
- state,
115
- });
116
- }
117
- function restorePendingBaseVersion(input) {
118
- const { activeRecord, doc, history, state } = input;
119
- const markerBase = activeRecord.pendingBaseVersion ??
120
- (activeRecord.snapshotEndVersion.length > 0
121
- ? activeRecord.snapshotEndVersion
122
- : null);
123
- if (markerBase === null) {
124
- advancePendingBaseVersion(state, doc);
125
- return;
126
- }
127
- const remoteCoverage = restoredRemoteTailCoverage(history);
128
- state.pendingBaseVersion =
129
- remoteCoverage.length > 0
130
- ? mergeVersionVectors([markerBase, ...remoteCoverage])
131
- : markerBase;
132
- }
133
- async function initializeDocumentStore(state, scheduleSync) {
134
- if (state.runtime.infra.dbStatus !== "ready") {
135
- return;
136
- }
137
- // A store reset while this fire-and-forget initialization is loading (a
138
- // runtime swap, or a local-edits discard that re-seeds the persisted rows)
139
- // must win: assigning the state loaded BEFORE the reset would bring the
140
- // replaced record and doc back to life. Every reset bumps the local write
141
- // generation, so a stale capture here aborts before each assignment batch.
142
- const initializeGeneration = state.localWriteGeneration;
143
- const nextDoc = await createStoredDocument(state);
144
- const persistedState = await loadPersistedDocumentStoreState({
145
- execSql: state.runtime.infra.execSql,
146
- localId: state.localId,
147
- persistence: state.persistence,
148
- });
149
- if (state.localWriteGeneration !== initializeGeneration) {
150
- return;
151
- }
152
- const restored = await restoreOrCreateInitialDocument({
153
- initializeGeneration,
154
- nextDoc,
155
- persistedState,
156
- state,
157
- });
158
- if (!restored) {
159
- return;
160
- }
161
- const activePersistedState = restored.activePersistedState;
162
- installPersistedAttachments(state, activePersistedState);
163
- state.doc = restored.doc;
164
- // Restore the durable outgoing-delta marker. Re-seeding it to the restored
165
- // document's version would move it PAST any device-first `deferRemoteSync`
166
- // op (persisted into the durable history but deliberately left un-enqueued
167
- // and behind the marker), permanently dropping that op from sync across a
168
- // restart. When a marker was persisted, restore it so the next edit still
169
- // re-derives the deferred delta. Only seed for rows that never persisted
170
- // one, from the RECORD's persisted frontier rather than the restored
171
- // document: a crash between the tail append and the queue/marker writes can
172
- // resurrect ops the outgoing queue never durably received, and seeding from
173
- // the restored document would classify those as covered and orphan them
174
- // from sync forever.
175
- restorePendingBaseVersion({
176
- activeRecord: restored.activeRecord,
177
- doc: restored.doc,
178
- history: restored.history,
179
- state,
180
- });
181
- // Heal attachment slots lost to an interrupted attach write before marking
182
- // ready, so the recovered slots are in the snapshot the editor first renders
183
- // and are queued for sync. recoverDroppedAttachmentSlots advances the marker
184
- // again for whatever it re-derives. Both helpers gate every durable write
185
- // on this generation (validated inside the writes' serialized mutations),
186
- // so a reset mid-helper cannot repopulate discarded state.
187
- const writeGeneration = captureDocumentStoreSyncGeneration(state, restored.doc);
188
- if (!writeGeneration) {
189
- return;
190
- }
191
- await recoverDroppedAttachmentSlots(state, restored.doc, writeGeneration);
192
- if (state.localWriteGeneration !== initializeGeneration) {
193
- return;
194
- }
195
- await healLocalAttachmentDetachState(state, restored.doc, activePersistedState, writeGeneration);
196
- if (state.localWriteGeneration !== initializeGeneration) {
197
- return;
198
- }
199
- state.initialized = true;
200
- state.initializePromise = null;
201
- setReadySnapshot(state, restored.doc, false);
202
- if (restored.activeRecord.documentId && state.scheduleStartupRemoteSync) {
203
- // Websocket invalidations are intentionally session-local. A process can
204
- // stop before receiving a peer device's update event, and no event survives
205
- // the restart to distinguish a clean local snapshot from a stale one. Probe
206
- // each opened remote document once after loading it; unopened documents stay
207
- // lazy, while body and attachment state for a restored window converges.
208
- allowDocumentStoreRemoteSync(state);
209
- markDocumentStoreRemoteSyncPending(state, "independent");
210
- logRevalidationScheduled(state.runtime, "startup");
211
- }
212
- scheduleSync();
213
- void runDocumentOrphanMaintenance(state);
214
- }
215
- export function ensureDocumentStoreInitialized(state, scheduleSync) {
216
- if (state.initialized ||
217
- state.initializePromise ||
218
- state.runtime.infra.dbStatus !== "ready") {
219
- return;
220
- }
221
- const initializePromise = initializeDocumentStore(state, scheduleSync).catch((error) => {
222
- state.initializePromise = null;
223
- // A caller that deferred the birth for its attach may give up once
224
- // opening fails; never leave its durable birth holding sync. No attach
225
- // has reached a live doc yet, so lifting the hold ships nothing unsafe.
226
- state.deferInitialUpdate = false;
227
- if (isDatabaseUnavailableError(error)) {
228
- return;
229
- }
230
- throw error;
231
- });
232
- state.initializePromise = initializePromise;
233
- void initializePromise.catch(() => undefined);
234
- }
235
- export async function awaitInitializationForSync(state) {
236
- if (!state.initializePromise) {
237
- return true;
238
- }
239
- try {
240
- await state.initializePromise;
241
- return true;
242
- }
243
- catch (error) {
244
- if (isDatabaseUnavailableError(error)) {
245
- return false;
246
- }
247
- throw error;
248
- }
249
- }
250
- export async function ensureDocumentStoreReady(state, scheduleSync) {
251
- ensureDocumentStoreInitialized(state, scheduleSync);
252
- if (state.initialized) {
253
- return true;
254
- }
255
- if (!state.initializePromise) {
256
- return false;
257
- }
258
- return awaitInitializationForSync(state);
259
- }
260
- export async function relinkDocumentStore(state, input, scheduleSync, commitSideEffect) {
261
- if (input.stillCurrent?.() === false ||
262
- !(await ensureDocumentStoreReady(state, scheduleSync)) ||
263
- input.stillCurrent?.() === false ||
264
- !state.doc) {
265
- return null;
266
- }
267
- const currentDoc = state.doc;
268
- const generation = captureDocumentStoreSyncGeneration(state, currentDoc);
269
- if (!generation)
270
- return null;
271
- // Read the record and persist on the identity-write chain so an in-flight
272
- // eager create cannot interleave: a create that captured a null identity
273
- // before its network round trip would otherwise write the derived documentId
274
- // over the one this relink assigns.
275
- const persisted = await chainIdentityWrite(state, async () => {
276
- if (!isDocumentStoreSyncGenerationCurrent(state, generation))
277
- return null;
278
- const currentDocumentId = state.record?.documentId ?? null;
279
- const currentAccessEpoch = state.record?.accessEpoch ?? DEFAULT_DOCUMENT_ACCESS_EPOCH;
280
- const patch = {
281
- accessEpoch: Math.max(currentAccessEpoch, input.accessEpoch),
282
- accessStateHash: input.accessStateHash === undefined
283
- ? (state.record?.accessStateHash ?? null)
284
- : input.accessStateHash,
285
- containerId: input.containerId,
286
- documentId: input.documentId,
287
- };
288
- if (input.contentKeyBundle !== undefined) {
289
- patch.contentKeyBundle = input.contentKeyBundle;
290
- }
291
- if (input.documentKekTargets !== undefined) {
292
- patch.documentKekTargets = input.documentKekTargets;
293
- }
294
- if (input.documentManifestBundle !== undefined) {
295
- patch.documentManifestBundle = input.documentManifestBundle;
296
- }
297
- // Relink rewrites access/identity metadata, not content. If it lands while
298
- // the user is mid-edit, re-deriving text/structured fields from the
299
- // (possibly lagging) doc would republish a stale read over the live
300
- // optimistic snapshot and drop in-flight keystrokes; preserve the snapshot
301
- // like the keystroke and sync persists do.
302
- // A prior chained write may have cleared this store (resurrect-guard
303
- // refusal): persisting the captured doc against a null record would
304
- // resurrect the document as a create. The identity check runs inside
305
- // the chain, after every earlier write settled.
306
- if (!isDocumentStoreSyncGenerationCurrent(state, generation)) {
307
- return null;
308
- }
309
- const result = await persistDocument(state, currentDoc, patch, {
310
- preserveSnapshotStructuredFields: true,
311
- preserveSnapshotText: true,
312
- stillCurrent: input.stillCurrent,
313
- }, generation, commitSideEffect);
314
- if (result && currentDocumentId !== input.documentId) {
315
- state.writerProjection = null;
316
- invalidateDocumentStoreRemoteSync(state);
317
- }
318
- return result;
319
- });
320
- // A refused persist means the durable row vanished mid-relink (resurrect
321
- // guard); there is no summary to report.
322
- if (!persisted) {
323
- return null;
324
- }
325
- if (persisted.updatedAt === undefined) {
326
- return null;
327
- }
328
- return documentSummaryFromRecord(persisted.record, persisted.updatedAt, state.runtime.infra.documentProjectors);
329
- }
330
- //# sourceMappingURL=initialization.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"initialization.js","sourceRoot":"","sources":["initialization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,yBAAyB,EACzB,mBAAmB,GACpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,6BAA6B,EAC7B,qBAAqB,GACtB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACL,4BAA4B,EAC5B,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAE/C,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAEL,0BAA0B,EAC1B,+BAA+B,GAChC,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EACL,2BAA2B,GAE5B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAEL,0BAA0B,EAC1B,+BAA+B,GAChC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,8BAA8B,EAC9B,6BAA6B,GAC9B,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EACL,yBAAyB,EACzB,yBAAyB,EACzB,eAAe,EACf,kBAAkB,GACnB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,wB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CAAC;QACtD,CAAC;QACD,IAAI,KAAK,CAAC,sBAAsB,KAAK,SAAS,EAAE,CAAC;YAC/C,KAAK,CAAC,sBAAsB,GAAG,KAAK,CAAC,sBAAsB,CAAC;QAC9D,CAAC;QAED,2EAA2E;QAC3E,oEAAoE;QACpE,oEAAoE;QACpE,2EAA2E;QAC3E,2CAA2C;QAC3C,qEAAqE;QACrE,oEAAoE;QACpE,qEAAqE;QACrE,gDAAgD;QAChD,IAAI,CAAC,oCAAoC,CAAC,KAAK,EAAE,UAAU,CAAC,EAAE,CAAC;YAC7D,OAAO,IAAI,CAAC;QACd,CAAC;QACD,MAAM,MAAM,GAAG,MAAM,eAAe,CAClC,KAAK,EACL,UAAU,EACV,KAAK,EACL;YACE,gCAAgC,EAAE,IAAI;YACtC,oBAAoB,EAAE,IAAI;YAC1B,YAAY,EAAE,KAAK,CAAC,YAAY;SACjC,EACD,UAAU,EACV,gBAAgB,CACjB,CAAC;QACF,IAAI,MAAM,IAAI,iBAAiB,KAAK,KAAK,CAAC,UAAU,EAAE,CAAC;YACrD,KAAK,CAAC,gBAAgB,GAAG,IAAI,CAAC;YAC9B,iCAAiC,CAAC,KAAK,CAAC,CAAC;QAC3C,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC,CAAC,CAAC;IACH,yEAAyE;IACzE,yCAAyC;IACzC,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IAAI,SAAS,CAAC,SAAS,KAAK,SAAS,EAAE,CAAC;QACtC,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,yBAAyB,CAC9B,SAAS,CAAC,MAAM,EAChB,SAAS,CAAC,SAAS,EACnB,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,kBAAkB,CACvC,CAAC;AACJ,CAAC","sourcesContent":["import { bytesToBase64 } from \"@tearleads/encoding\";\nimport {\n emptyVersionVector,\n encodeVersionVector,\n exportAllUpdates,\n exportFullHistorySnapshot,\n mergeVersionVectors,\n} from \"@tearleads/loro\";\nimport {\n DEFAULT_DOCUMENT_ACCESS_EPOCH,\n DEFAULT_DOCUMENT_KIND,\n} from \"../../../data/documents/documentConstants\";\nimport {\n initializeStoredDocumentKind,\n readStoredDocumentState,\n} from \"../../../data/documents/documentKinds\";\nimport type { DocumentSummary } from \"../../../data/documents/documentSummary\";\nimport { createPendingUpdateFields } from \"../../../data/documents/documentSync\";\nimport {\n type DocumentRecord,\n isDatabaseUnavailableError,\n loadPersistedDocumentStoreState,\n} from \"../../../workflows/documents\";\nimport type { DocumentStoreRelinkInput } from \"../types\";\nimport { chainIdentityWrite } from \"./identityWriteChain\";\nimport {\n installPersistedAttachments,\n type LoadedDocumentStoreState,\n} from \"./initializationAttachments\";\nimport {\n type RestoredHistoryState,\n restoredRemoteTailCoverage,\n restorePersistedDocumentContent,\n} from \"./initializationHistory\";\nimport {\n healLocalAttachmentDetachState,\n recoverDroppedAttachmentSlots,\n} from \"./initializationRecovery\";\nimport type { DocumentRelinkCommitSideEffect } from \"./internalRelink\";\nimport { runDocumentOrphanMaintenance } from \"./orphanMaintenance\";\nimport {\n advancePendingBaseVersion,\n documentSummaryFromRecord,\n persistDocument,\n saveDocumentRecord,\n} from \"./persistence\";\nimport { logRevalidationScheduled } from \"./remoteRevalidationTelemetry\";\nimport {\n type DocumentState,\n type DocumentStoreState,\n setReadySnapshot,\n} from \"./state\";\nimport { createStoredDocument } from \"./storedDocument\";\nimport {\n allowDocumentStoreRemoteSync,\n captureDocumentStoreSyncGeneration,\n invalidateDocumentStoreRemoteSync,\n isDocumentStoreSyncGenerationCurrent,\n markDocumentStoreRemoteSyncPending,\n} from \"./syncGeneration\";\n\nasync function createInitialDocumentRecord(\n state: DocumentStoreState,\n nextDoc: DocumentState,\n): ReturnType<typeof saveDocumentRecord> {\n initializeStoredDocumentKind(\n nextDoc,\n state.initialDocumentKind,\n state.runtime.infra.documentProjectors,\n );\n if (state.initialText.length > 0) {\n nextDoc.getText(\"text\").update(state.initialText);\n }\n const initialDocumentState = readStoredDocumentState(\n nextDoc,\n state.runtime.infra.documentProjectors,\n );\n const hasInitialContent =\n state.initialText.length > 0 ||\n state.initialDocumentKind !== DEFAULT_DOCUMENT_KIND;\n const initialUpdate = hasInitialContent\n ? createPendingUpdateFields(exportAllUpdates(nextDoc))\n : null;\n // A deferred birth still commits its checkpoint, but leaves the marker at the\n // empty version with nothing queued: the promised attach exports every op\n // since that marker, so one update carries the birth and the attachment.\n const birthDurability = !initialUpdate\n ? {}\n : state.deferInitialUpdate\n ? { pendingBaseVersionOverride: emptyVersionVector() }\n : { pendingUpdate: initialUpdate };\n\n const created: DocumentRecord = {\n id: state.localId,\n containerId: state.runtime.state.containerId ?? null,\n documentId: state.initialDocumentId,\n documentKind: initialDocumentState.documentKind,\n text: initialDocumentState.text,\n title: initialDocumentState.title,\n snapshotEndVersion: encodeVersionVector(nextDoc),\n accessEpoch: DEFAULT_DOCUMENT_ACCESS_EPOCH,\n accessStateHash: null,\n effectiveAccessLevel: \"admin\",\n lastCommitLsn: null,\n contentKeyBundle: null,\n documentKekTargets: null,\n documentManifestBundle: null,\n };\n // The create-only persistence primitive commits the canonical row and birth\n // checkpoint together. A concurrent initializer either wins both or adopts\n // both, so it cannot replace another pane's history or keying state.\n const persisted = await saveDocumentRecord(\n state,\n nextDoc,\n {\n ...created,\n snapshotEndVersion: encodeVersionVector(nextDoc),\n },\n {\n historyCheckpoint: {\n coveredTailIds: [],\n endVersionVector: encodeVersionVector(nextDoc),\n pruneCoveredLocalState: false,\n snapshot: bytesToBase64(exportFullHistorySnapshot(nextDoc)),\n },\n ...birthDurability,\n },\n );\n return persisted;\n}\n\nfunction installPersistedDocumentRecord(\n state: DocumentStoreState,\n record: NonNullable<DocumentStoreState[\"record\"]>,\n): void {\n state.record = record;\n state.pullContinuation = record.pullContinuation ?? null;\n}\n\ninterface RestoredInitialDocumentState {\n activePersistedState: LoadedDocumentStoreState;\n activeRecord: NonNullable<DocumentStoreState[\"record\"]>;\n doc: DocumentState;\n history: RestoredHistoryState | null;\n}\n\nasync function restoreLoadedInitialDocument(input: {\n initializeGeneration: number;\n nextDoc: DocumentState;\n persistedState: LoadedDocumentStoreState;\n state: DocumentStoreState;\n}): Promise<RestoredInitialDocumentState | null> {\n const { initializeGeneration, persistedState, state } = input;\n const record = persistedState.document;\n if (!record) return null;\n const history = await restorePersistedDocumentContent(\n input.nextDoc,\n persistedState.historyRestoreState,\n );\n if (state.localWriteGeneration !== initializeGeneration) return null;\n installPersistedDocumentRecord(state, record);\n return {\n activePersistedState: persistedState,\n activeRecord: record,\n doc: input.nextDoc,\n history,\n };\n}\n\nasync function restoreOrCreateInitialDocument(input: {\n initializeGeneration: number;\n nextDoc: DocumentState;\n persistedState: LoadedDocumentStoreState;\n state: DocumentStoreState;\n}): Promise<RestoredInitialDocumentState | null> {\n const { initializeGeneration, persistedState, state } = input;\n if (persistedState.document) {\n return restoreLoadedInitialDocument(input);\n }\n\n const created = await createInitialDocumentRecord(state, input.nextDoc);\n if (!created || state.localWriteGeneration !== initializeGeneration) {\n return null;\n }\n const activePersistedState = await loadPersistedDocumentStoreState({\n execSql: state.runtime.infra.execSql,\n localId: state.localId,\n persistence: state.persistence,\n });\n if (state.localWriteGeneration !== initializeGeneration) {\n return null;\n }\n if (!activePersistedState.document) {\n throw new Error(\"Document creation completed without a durable record\");\n }\n const replacementDoc = await createStoredDocument(state);\n return restoreLoadedInitialDocument({\n initializeGeneration,\n nextDoc: replacementDoc,\n persistedState: activePersistedState,\n state,\n });\n}\n\nfunction restorePendingBaseVersion(input: {\n activeRecord: NonNullable<DocumentStoreState[\"record\"]>;\n doc: DocumentState;\n history: RestoredHistoryState | null;\n state: DocumentStoreState;\n}): void {\n const { activeRecord, doc, history, state } = input;\n const markerBase =\n activeRecord.pendingBaseVersion ??\n (activeRecord.snapshotEndVersion.length > 0\n ? activeRecord.snapshotEndVersion\n : null);\n if (markerBase === null) {\n advancePendingBaseVersion(state, doc);\n return;\n }\n\n const remoteCoverage = restoredRemoteTailCoverage(history);\n state.pendingBaseVersion =\n remoteCoverage.length > 0\n ? mergeVersionVectors([markerBase, ...remoteCoverage])\n : markerBase;\n}\n\nasync function initializeDocumentStore(\n state: DocumentStoreState,\n scheduleSync: () => void,\n) {\n if (state.runtime.infra.dbStatus !== \"ready\") {\n return;\n }\n\n // A store reset while this fire-and-forget initialization is loading (a\n // runtime swap, or a local-edits discard that re-seeds the persisted rows)\n // must win: assigning the state loaded BEFORE the reset would bring the\n // replaced record and doc back to life. Every reset bumps the local write\n // generation, so a stale capture here aborts before each assignment batch.\n const initializeGeneration = state.localWriteGeneration;\n\n const nextDoc = await createStoredDocument(state);\n const persistedState = await loadPersistedDocumentStoreState({\n execSql: state.runtime.infra.execSql,\n localId: state.localId,\n persistence: state.persistence,\n });\n if (state.localWriteGeneration !== initializeGeneration) {\n return;\n }\n const restored = await restoreOrCreateInitialDocument({\n initializeGeneration,\n nextDoc,\n persistedState,\n state,\n });\n if (!restored) {\n return;\n }\n const activePersistedState = restored.activePersistedState;\n installPersistedAttachments(state, activePersistedState);\n\n state.doc = restored.doc;\n // Restore the durable outgoing-delta marker. Re-seeding it to the restored\n // document's version would move it PAST any device-first `deferRemoteSync`\n // op (persisted into the durable history but deliberately left un-enqueued\n // and behind the marker), permanently dropping that op from sync across a\n // restart. When a marker was persisted, restore it so the next edit still\n // re-derives the deferred delta. Only seed for rows that never persisted\n // one, from the RECORD's persisted frontier rather than the restored\n // document: a crash between the tail append and the queue/marker writes can\n // resurrect ops the outgoing queue never durably received, and seeding from\n // the restored document would classify those as covered and orphan them\n // from sync forever.\n restorePendingBaseVersion({\n activeRecord: restored.activeRecord,\n doc: restored.doc,\n history: restored.history,\n state,\n });\n // Heal attachment slots lost to an interrupted attach write before marking\n // ready, so the recovered slots are in the snapshot the editor first renders\n // and are queued for sync. recoverDroppedAttachmentSlots advances the marker\n // again for whatever it re-derives. Both helpers gate every durable write\n // on this generation (validated inside the writes' serialized mutations),\n // so a reset mid-helper cannot repopulate discarded state.\n const writeGeneration = captureDocumentStoreSyncGeneration(\n state,\n restored.doc,\n );\n if (!writeGeneration) {\n return;\n }\n await recoverDroppedAttachmentSlots(state, restored.doc, writeGeneration);\n if (state.localWriteGeneration !== initializeGeneration) {\n return;\n }\n await healLocalAttachmentDetachState(\n state,\n restored.doc,\n activePersistedState,\n writeGeneration,\n );\n if (state.localWriteGeneration !== initializeGeneration) {\n return;\n }\n state.initialized = true;\n state.initializePromise = null;\n setReadySnapshot(state, restored.doc, false);\n\n if (restored.activeRecord.documentId && state.scheduleStartupRemoteSync) {\n // Websocket invalidations are intentionally session-local. A process can\n // stop before receiving a peer device's update event, and no event survives\n // the restart to distinguish a clean local snapshot from a stale one. Probe\n // each opened remote document once after loading it; unopened documents stay\n // lazy, while body and attachment state for a restored window converges.\n allowDocumentStoreRemoteSync(state);\n markDocumentStoreRemoteSyncPending(state, \"independent\");\n logRevalidationScheduled(state.runtime, \"startup\");\n }\n scheduleSync();\n void runDocumentOrphanMaintenance(state);\n}\n\nexport function ensureDocumentStoreInitialized(\n state: DocumentStoreState,\n scheduleSync: () => void,\n) {\n if (\n state.initialized ||\n state.initializePromise ||\n state.runtime.infra.dbStatus !== \"ready\"\n ) {\n return;\n }\n\n const initializePromise = initializeDocumentStore(state, scheduleSync).catch(\n (error: unknown) => {\n state.initializePromise = null;\n // A caller that deferred the birth for its attach may give up once\n // opening fails; never leave its durable birth holding sync. No attach\n // has reached a live doc yet, so lifting the hold ships nothing unsafe.\n state.deferInitialUpdate = false;\n\n if (isDatabaseUnavailableError(error)) {\n return;\n }\n\n throw error;\n },\n );\n state.initializePromise = initializePromise;\n void initializePromise.catch(() => undefined);\n}\n\nexport async function awaitInitializationForSync(state: DocumentStoreState) {\n if (!state.initializePromise) {\n return true;\n }\n\n try {\n await state.initializePromise;\n return true;\n } catch (error) {\n if (isDatabaseUnavailableError(error)) {\n return false;\n }\n\n throw error;\n }\n}\n\nexport async function ensureDocumentStoreReady(\n state: DocumentStoreState,\n scheduleSync: () => void,\n): Promise<boolean> {\n ensureDocumentStoreInitialized(state, scheduleSync);\n\n if (state.initialized) {\n return true;\n }\n\n if (!state.initializePromise) {\n return false;\n }\n\n return awaitInitializationForSync(state);\n}\n\nexport async function relinkDocumentStore(\n state: DocumentStoreState,\n input: DocumentStoreRelinkInput,\n scheduleSync: () => void,\n commitSideEffect?: DocumentRelinkCommitSideEffect,\n): Promise<DocumentSummary | null> {\n if (\n input.stillCurrent?.() === false ||\n !(await ensureDocumentStoreReady(state, scheduleSync)) ||\n input.stillCurrent?.() === false ||\n !state.doc\n ) {\n return null;\n }\n const currentDoc = state.doc;\n const generation = captureDocumentStoreSyncGeneration(state, currentDoc);\n if (!generation) return null;\n // Read the record and persist on the identity-write chain so an in-flight\n // eager create cannot interleave: a create that captured a null identity\n // before its network round trip would otherwise write the derived documentId\n // over the one this relink assigns.\n const persisted = await chainIdentityWrite(state, async () => {\n if (!isDocumentStoreSyncGenerationCurrent(state, generation)) return null;\n const currentDocumentId = state.record?.documentId ?? null;\n const currentAccessEpoch =\n state.record?.accessEpoch ?? DEFAULT_DOCUMENT_ACCESS_EPOCH;\n const patch: Partial<DocumentRecord> = {\n accessEpoch: Math.max(currentAccessEpoch, input.accessEpoch),\n accessStateHash:\n input.accessStateHash === undefined\n ? (state.record?.accessStateHash ?? null)\n : input.accessStateHash,\n containerId: input.containerId,\n documentId: input.documentId,\n };\n if (input.contentKeyBundle !== undefined) {\n patch.contentKeyBundle = input.contentKeyBundle;\n }\n if (input.documentKekTargets !== undefined) {\n patch.documentKekTargets = input.documentKekTargets;\n }\n if (input.documentManifestBundle !== undefined) {\n patch.documentManifestBundle = input.documentManifestBundle;\n }\n\n // Relink rewrites access/identity metadata, not content. If it lands while\n // the user is mid-edit, re-deriving text/structured fields from the\n // (possibly lagging) doc would republish a stale read over the live\n // optimistic snapshot and drop in-flight keystrokes; preserve the snapshot\n // like the keystroke and sync persists do.\n // A prior chained write may have cleared this store (resurrect-guard\n // refusal): persisting the captured doc against a null record would\n // resurrect the document as a create. The identity check runs inside\n // the chain, after every earlier write settled.\n if (!isDocumentStoreSyncGenerationCurrent(state, generation)) {\n return null;\n }\n const result = await persistDocument(\n state,\n currentDoc,\n patch,\n {\n preserveSnapshotStructuredFields: true,\n preserveSnapshotText: true,\n stillCurrent: input.stillCurrent,\n },\n generation,\n commitSideEffect,\n );\n if (result && currentDocumentId !== input.documentId) {\n state.writerProjection = null;\n invalidateDocumentStoreRemoteSync(state);\n }\n return result;\n });\n // A refused persist means the durable row vanished mid-relink (resurrect\n // guard); there is no summary to report.\n if (!persisted) {\n return null;\n }\n if (persisted.updatedAt === undefined) {\n return null;\n }\n return documentSummaryFromRecord(\n persisted.record,\n persisted.updatedAt,\n state.runtime.infra.documentProjectors,\n );\n}\n"]}
@@ -1,9 +0,0 @@
1
- import { assignLocalAttachmentSlots } from "./attachmentPersistence.js";
2
- export function installPersistedAttachments(state, persistedState) {
3
- state.pendingAttachments = persistedState.pendingAttachments;
4
- state.attachmentBlobIdBySlotId = {};
5
- state.attachmentContentSha256BySlotId = {};
6
- state.attachmentStorageKeyBySlotId = {};
7
- assignLocalAttachmentSlots(state, persistedState.localAttachments);
8
- }
9
- //# sourceMappingURL=initializationAttachments.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"initializationAttachments.js","sourceRoot":"","sources":["initializationAttachments.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAOrE,MAAM,UAAU,2BAA2B,CACzC,KAAyB,EACzB,cAAwC;IAExC,KAAK,CAAC,kBAAkB,GAAG,cAAc,CAAC,kBAAkB,CAAC;IAC7D,KAAK,CAAC,wBAAwB,GAAG,EAAE,CAAC;IACpC,KAAK,CAAC,+BAA+B,GAAG,EAAE,CAAC;IAC3C,KAAK,CAAC,4BAA4B,GAAG,EAAE,CAAC;IACxC,0BAA0B,CAAC,KAAK,EAAE,cAAc,CAAC,gBAAgB,CAAC,CAAC;AACrE,CAAC","sourcesContent":["import type { loadPersistedDocumentStoreState } from \"../../../workflows/documents\";\nimport { assignLocalAttachmentSlots } from \"./attachmentPersistence\";\nimport type { DocumentStoreState } from \"./state\";\n\nexport type LoadedDocumentStoreState = Awaited<\n ReturnType<typeof loadPersistedDocumentStoreState>\n>;\n\nexport function installPersistedAttachments(\n state: DocumentStoreState,\n persistedState: LoadedDocumentStoreState,\n): void {\n state.pendingAttachments = persistedState.pendingAttachments;\n state.attachmentBlobIdBySlotId = {};\n state.attachmentContentSha256BySlotId = {};\n state.attachmentStorageKeyBySlotId = {};\n assignLocalAttachmentSlots(state, persistedState.localAttachments);\n}\n"]}
@@ -1,33 +0,0 @@
1
- import { base64ToBytes } from "../../../internal/encoding/index.js";
2
- import { getImportBlobMetadata, importSnapshot } from "../../../internal/loro/index.js";
3
- import { importDocumentHistoryTailUpdates, } from "../../../workflows/documents/index.js";
4
- function installRestoredDocumentContent(nextDoc, history) {
5
- if (history.snapshot.length > 0) {
6
- importSnapshot(nextDoc, base64ToBytes(history.snapshot));
7
- }
8
- importDocumentHistoryTailUpdates(nextDoc, history.tailUpdates.map((update) => update.updateData));
9
- }
10
- export function restorePersistedDocumentContent(nextDoc, history) {
11
- if (!history)
12
- return null;
13
- installRestoredDocumentContent(nextDoc, history);
14
- return history;
15
- }
16
- export function restoredRemoteTailCoverage(history) {
17
- if (!history)
18
- return [];
19
- return history.tailUpdates.flatMap((update) => {
20
- if (update.origin !== "remote")
21
- return [];
22
- try {
23
- return [
24
- getImportBlobMetadata(base64ToBytes(update.updateData))
25
- .partialEndVersionVector,
26
- ];
27
- }
28
- catch {
29
- return [];
30
- }
31
- });
32
- }
33
- //# sourceMappingURL=initializationHistory.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"initializationHistory.js","sourceRoot":"","sources":["initializationHistory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,EAEL,gCAAgC,GACjC,MAAM,8BAA8B,CAAC;AAOtC,SAAS,8BAA8B,CACrC,OAAsB,EACtB,OAA6B;IAE7B,IAAI,OAAO,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAChC,cAAc,CAAC,OAAO,EAAE,aAAa,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC3D,CAAC;IACD,gCAAgC,CAC9B,OAAO,EACP,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,CACvD,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,+BAA+B,CAC7C,OAAsB,EACtB,OAAoC;IAEpC,IAAI,CAAC,OAAO;QAAE,OAAO,IAAI,CAAC;IAC1B,8BAA8B,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACjD,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,MAAM,UAAU,0BAA0B,CACxC,OAAoC;IAEpC,IAAI,CAAC,OAAO;QAAE,OAAO,EAAE,CAAC;IACxB,OAAO,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;QAC5C,IAAI,MAAM,CAAC,MAAM,KAAK,QAAQ;YAAE,OAAO,EAAE,CAAC;QAC1C,IAAI,CAAC;YACH,OAAO;gBACL,qBAAqB,CAAC,aAAa,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;qBACpD,uBAAuB;aAC3B,CAAC;QACJ,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,EAAE,CAAC;QACZ,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { base64ToBytes } from \"@tearleads/encoding\";\nimport { getImportBlobMetadata, importSnapshot } from \"@tearleads/loro\";\nimport {\n type DocumentsPersistence,\n importDocumentHistoryTailUpdates,\n} from \"../../../workflows/documents\";\nimport type { DocumentState } from \"./state\";\n\nexport type RestoredHistoryState = NonNullable<\n Awaited<ReturnType<DocumentsPersistence[\"loadHistoryRestoreState\"]>>\n>;\n\nfunction installRestoredDocumentContent(\n nextDoc: DocumentState,\n history: RestoredHistoryState,\n): void {\n if (history.snapshot.length > 0) {\n importSnapshot(nextDoc, base64ToBytes(history.snapshot));\n }\n importDocumentHistoryTailUpdates(\n nextDoc,\n history.tailUpdates.map((update) => update.updateData),\n );\n}\n\nexport function restorePersistedDocumentContent(\n nextDoc: DocumentState,\n history: RestoredHistoryState | null,\n): RestoredHistoryState | null {\n if (!history) return null;\n installRestoredDocumentContent(nextDoc, history);\n return history;\n}\n\nexport function restoredRemoteTailCoverage(\n history: RestoredHistoryState | null,\n): string[] {\n if (!history) return [];\n return history.tailUpdates.flatMap((update) => {\n if (update.origin !== \"remote\") return [];\n try {\n return [\n getImportBlobMetadata(base64ToBytes(update.updateData))\n .partialEndVersionVector,\n ];\n } catch {\n return [];\n }\n });\n}\n"]}
@@ -1,107 +0,0 @@
1
- import { encodeVersionVector } from "../../../internal/loro/index.js";
2
- import { addDocumentAttachments, getDocumentAttachments, } from "../../../data/documents/documentContent.js";
3
- import { reconcileLocalAttachmentDetachState } from "./attachmentDetachState.js";
4
- import { saveLocalAttachmentRecord } from "./attachmentPersistence.js";
5
- import { rebaseDocumentAfterPendingUpdateRefusal } from "./pendingUpdateRefusal.js";
6
- import { advancePendingBaseVersion, enqueuePendingUpdate, pendingDeltaSinceBase, persistDocument, } from "./persistence.js";
7
- import { isDocumentStoreSyncGenerationCurrent } from "./syncGeneration.js";
8
- // Re-derive any attachment slot that lives in a durable pending-upload row but
9
- // is missing (or stale) in the loaded snapshot. The attach write path persists
10
- // the blob bytes + pending-attachment row BEFORE it enqueues the slot's CRDT op
11
- // and persists the snapshot, so a crash in that window leaves bytes+row durable
12
- // but the slot gone from the document — the attachment would otherwise silently
13
- // disappear on restart while its bytes upload to a binding nothing references
14
- // (and a slot replace would keep stale metadata). Because the pending row still
15
- // carries the slot's metadata and staging digest, we can rebuild the slot without
16
- // opening bytes; normal upload reports missing sources. Runs on init only; a
17
- // no-op when every pending attachment already matches a slot.
18
- export async function recoverDroppedAttachmentSlots(state, doc, writeGeneration) {
19
- if (!doc || state.pendingAttachments.length === 0) {
20
- return;
21
- }
22
- const existingBySlotId = new Map(getDocumentAttachments(doc).map((attachment) => [
23
- attachment.slotId,
24
- attachment,
25
- ]));
26
- const recovered = [];
27
- for (const pending of state.pendingAttachments) {
28
- const mimeType = pending.mimeType ?? null;
29
- const existing = existingBySlotId.get(pending.slotId);
30
- const contentSha256 = pending.contentSha256;
31
- if (!isDocumentStoreSyncGenerationCurrent(state, writeGeneration))
32
- return;
33
- if (existing &&
34
- existing.name === pending.name &&
35
- existing.byteLength === pending.byteLength &&
36
- existing.mimeType === mimeType &&
37
- existing.contentSha256 === contentSha256) {
38
- continue;
39
- }
40
- recovered.push({
41
- contentSha256,
42
- byteLength: pending.byteLength,
43
- mimeType,
44
- name: pending.name,
45
- slotId: pending.slotId,
46
- });
47
- }
48
- if (recovered.length === 0) {
49
- return;
50
- }
51
- addDocumentAttachments(doc, recovered);
52
- const update = pendingDeltaSinceBase(state, doc);
53
- // Every durable write is gated on the captured generation — the enqueue
54
- // validates it INSIDE its serialized mutation, and the persist re-checks
55
- // via its expectedGeneration overload — so a store reset (e.g. a
56
- // local-edits discard) racing this recovery cannot see it re-enqueue or
57
- // re-persist the state the teardown just removed.
58
- if (update.byteLength > 0) {
59
- const enqueued = await enqueuePendingUpdate(state, update, undefined, writeGeneration);
60
- if (!enqueued) {
61
- const rebased = await rebaseDocumentAfterPendingUpdateRefusal(state, writeGeneration);
62
- if (rebased) {
63
- // Initialization captured the losing identity and must restart from
64
- // the winner, including its attachment rows and detach markers.
65
- throw new Error("Document identity changed during attachment recovery; retry initialization");
66
- }
67
- return;
68
- }
69
- }
70
- // Derive the snapshot from the loaded doc (do NOT preserve the snapshot). This
71
- // runs during init, before the store is ready, so state.snapshot is still the
72
- // empty initial snapshot — preserving it would publish a ready snapshot with
73
- // empty text/structured fields (a flash of empty content) over the real loaded
74
- // content. There is no in-flight user edit to protect here. The doc is
75
- // private to initialization and the enqueue above dual-wrote its delta, so
76
- // its version is a durably covered frontier.
77
- const persisted = await persistDocument(state, doc, { snapshotEndVersion: encodeVersionVector(doc) }, {}, writeGeneration);
78
- if (!persisted ||
79
- persisted.pullContinuationSuperseded ||
80
- persisted.syncIdentitySuperseded) {
81
- return;
82
- }
83
- advancePendingBaseVersion(state, doc);
84
- state.runtime.util.log(`Documents: recovered ${recovered.length} attachment slot(s) from pending uploads after an interrupted write.`);
85
- }
86
- /**
87
- * Realign detach markers with the loaded document.
88
- *
89
- * Removing an attachment marks its row detached and then persists the document;
90
- * a stop between those two writes leaves the halves disagreeing, and neither
91
- * the sync detach pass (which reads the document) nor the read models (which
92
- * read the marker) can resolve that on their own. The loaded document is the
93
- * durable truth, so the marker follows it.
94
- */
95
- export async function healLocalAttachmentDetachState(state, doc, persistedState, writeGeneration) {
96
- const healed = reconcileLocalAttachmentDetachState(persistedState.localAttachments, doc);
97
- for (const attachment of healed) {
98
- // The save validates the generation inside its serialized mutation, so a
99
- // concurrent store reset can never see this heal rewrite rows the
100
- // teardown just removed.
101
- await saveLocalAttachmentRecord(state, attachment, doc, writeGeneration);
102
- }
103
- if (healed.length > 0) {
104
- state.runtime.util.log(`Documents: realigned ${healed.length} attachment detach marker(s) with the loaded document.`);
105
- }
106
- }
107
- //# sourceMappingURL=initializationRecovery.js.map