@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
@@ -0,0 +1,215 @@
1
+ import { DEFAULT_DOCUMENT_KIND } from "../../../data/documents/documentConstants.js";
2
+ import { createDocumentProjectionUserKeyResolver, defaultDocumentsPersistence, didDocumentProjectionKeyRuntimeChange, didRegainSyncPrerequisites, requestDocumentSyncLaneAndWait, } from "../../../workflows/documents/index.js";
3
+ import { createDocumentStoreFacade, emitPersistedDocument, getOrCreateDocumentStoreRegistry, registerDocumentStore, registerDocumentStoreIdentity, requestDocumentStoreSync, resolveDocumentStoreKey, } from "../registry.js";
4
+ import { attachFilesToDocumentStore, replaceAttachmentInDocumentStore, } from "./attachments/index.js";
5
+ import { removeAttachmentFromDocumentStore } from "./attachments/attachmentRemoval.js";
6
+ import { discardDocumentStoreLocalState } from "./discard.js";
7
+ import { ensureDocumentStoreInitialized, ensureDocumentStoreReady, relinkDocumentStore, } from "./initialization/index.js";
8
+ import { registerInternalDocumentRelink } from "./internalRelink.js";
9
+ import { setDocumentStructuredFields, setDocumentText } from "./mutations.js";
10
+ import { assertDocumentStoreCanRotateContentKey } from "./rotation/index.js";
11
+ import { addRowToDocumentStore, removeRowFromDocumentStore, updateRowInDocumentStore, } from "./rows.js";
12
+ import { createDocumentStoreState, refreshAttachabilitySnapshot, resetDocumentStore, subscribeToDocumentStore, } from "./state.js";
13
+ import { registerDocumentStoreSyncLane } from "./sync/index.js";
14
+ import { logRevalidationScheduled } from "./sync/remoteRevalidationTelemetry.js";
15
+ import { allowDocumentStoreRemoteSync, captureDocumentStoreRemoteSyncRequestGeneration, captureDocumentStoreSyncLaneGeneration, didDocumentStoreRemoteSyncRequestComplete, hasPendingIndependentDocumentStoreRemoteSync, invalidateDocumentStoreRemoteSync, invalidateDocumentStoreSyncLane, isDocumentStoreRemoteSyncBlocked, isDocumentStoreRemoteSyncRequestGenerationCurrent, markDocumentStoreRemoteSyncPending, registerDocumentStoreRemoteSyncWaiter, } from "./sync/syncGeneration.js";
16
+ import { handleDocumentRemoteEvents } from "./sync/syncRemoteSignals.js";
17
+ export { discardRegisteredDocumentLocalState, requestDomainDocumentSync, subscribeToPersistedDocuments, } from "../registry.js";
18
+ function refreshDocumentStoreSyncLane(state, force = false) {
19
+ if (!force && state.syncLane && !state.syncLane.isDisposed?.()) {
20
+ return;
21
+ }
22
+ if (state.syncLane) {
23
+ invalidateDocumentStoreSyncLane(state);
24
+ }
25
+ let syncLaneGeneration = null;
26
+ state.syncLane = registerDocumentStoreSyncLane(state, () => syncLaneGeneration);
27
+ syncLaneGeneration = captureDocumentStoreSyncLaneGeneration(state);
28
+ }
29
+ function updateDocumentStoreRuntime(state, nextRuntime, scheduleSync) {
30
+ const previousRuntime = state.runtime;
31
+ const serverEventsReconnected = (nextRuntime.state.serverEventsConnectionGeneration ?? 0) >
32
+ (previousRuntime.state.serverEventsConnectionGeneration ?? 0);
33
+ const domainScopeChanged = previousRuntime.state.domainScope !== nextRuntime.state.domainScope;
34
+ const projectionKeyRuntimeChanged = didDocumentProjectionKeyRuntimeChange(previousRuntime, nextRuntime);
35
+ if (projectionKeyRuntimeChanged) {
36
+ state.resolveProjectionUserKey =
37
+ createDocumentProjectionUserKeyResolver(nextRuntime);
38
+ state.writerProjection = null;
39
+ }
40
+ state.runtime = nextRuntime;
41
+ refreshDocumentStoreSyncLane(state, domainScopeChanged);
42
+ if (domainScopeChanged) {
43
+ state.locallyAcceptedUpdateIds = new Set();
44
+ state.remoteUpdatePending = false;
45
+ state.writerProjection = null;
46
+ }
47
+ if (nextRuntime.infra.dbStatus !== "ready") {
48
+ if (state.snapshot.ready || state.initialized || state.initializePromise) {
49
+ resetDocumentStore(state);
50
+ }
51
+ state.lastEventCount = nextRuntime.state.events.length;
52
+ return;
53
+ }
54
+ refreshAttachabilitySnapshot(state);
55
+ ensureDocumentStoreInitialized(state, scheduleSync);
56
+ handleDocumentRemoteEvents(state, scheduleSync);
57
+ if (state.snapshot.ready) {
58
+ if (serverEventsReconnected) {
59
+ // The invalidation stream is lossy while disconnected. Once the server
60
+ // has acknowledged this socket's authoritative interest declaration,
61
+ // every already-open remote document needs one HTTP probe to cover peer
62
+ // writes made during the gap. This also closes iOS background/resume reconnects where the
63
+ // native network source remained online throughout.
64
+ requestRemoteDocumentStoreSync(state, scheduleSync);
65
+ logRevalidationScheduled(state.runtime, "reconnect");
66
+ }
67
+ else if (didRegainSyncPrerequisites(previousRuntime, state.runtime)) {
68
+ scheduleSync();
69
+ }
70
+ }
71
+ }
72
+ function requestRemoteDocumentStoreSync(state, scheduleSync, owner = "independent") {
73
+ allowDocumentStoreRemoteSync(state);
74
+ const signalSequence = markDocumentStoreRemoteSyncPending(state, owner);
75
+ scheduleSync();
76
+ return signalSequence;
77
+ }
78
+ function requestOrdinaryDocumentStoreSync(state, scheduleSync) {
79
+ // A normal UI reopen is a fresh owner for remote-only work. It may recover
80
+ // a probe that an earlier, now-unmounted owner aborted.
81
+ if (isDocumentStoreRemoteSyncBlocked(state)) {
82
+ requestRemoteDocumentStoreSync(state, scheduleSync);
83
+ return;
84
+ }
85
+ scheduleSync();
86
+ }
87
+ function requestRemoteDocumentStoreSyncAndWait(state, scheduleSync, signal) {
88
+ let requestGeneration = null;
89
+ let requestedSignalSequence = 0;
90
+ let releaseWaiter = null;
91
+ const releaseRemoteSyncWaiter = (invalidate) => {
92
+ const releasedLastWaiter = releaseWaiter?.() ?? false;
93
+ if (invalidate &&
94
+ releasedLastWaiter &&
95
+ requestGeneration !== null &&
96
+ isDocumentStoreRemoteSyncRequestGenerationCurrent(state, requestGeneration) &&
97
+ !hasPendingIndependentDocumentStoreRemoteSync(state)) {
98
+ invalidateDocumentStoreRemoteSync(state);
99
+ }
100
+ };
101
+ // A coordinator can be disposed and recreated while this same-scope store
102
+ // remains registered. Refresh its handle before requesting work.
103
+ refreshDocumentStoreSyncLane(state);
104
+ return requestDocumentSyncLaneAndWait({
105
+ didCompleteRequest: () => requestGeneration !== null &&
106
+ didDocumentStoreRemoteSyncRequestComplete(state, requestGeneration, requestedSignalSequence),
107
+ domainScope: state.runtime.state.domainScope,
108
+ localId: state.localId,
109
+ request: () => {
110
+ requestGeneration =
111
+ captureDocumentStoreRemoteSyncRequestGeneration(state);
112
+ releaseWaiter = registerDocumentStoreRemoteSyncWaiter(state, requestGeneration);
113
+ requestedSignalSequence = requestRemoteDocumentStoreSync(state, scheduleSync, "waiter");
114
+ },
115
+ onInvalidated: () => releaseRemoteSyncWaiter(true),
116
+ signal,
117
+ }).then((completed) => {
118
+ releaseRemoteSyncWaiter(!completed);
119
+ return completed;
120
+ }, (error) => {
121
+ releaseRemoteSyncWaiter(true);
122
+ throw error;
123
+ });
124
+ }
125
+ async function assertBackingDocumentStoreCanRotate(state, scheduleSync) {
126
+ if (!(await ensureDocumentStoreReady(state, scheduleSync)) || !state.doc) {
127
+ throw new Error("Document must finish loading before its content key can rotate");
128
+ }
129
+ return assertDocumentStoreCanRotateContentKey(state);
130
+ }
131
+ async function discardBackingDocumentStoreLocalState(state, scheduleSync, expectedDocumentId) {
132
+ try {
133
+ return await discardDocumentStoreLocalState(state, expectedDocumentId);
134
+ }
135
+ finally {
136
+ // Restart hydration whenever the attempt reset the store. This runs outside
137
+ // its identity-chained task because initialization also chains writes.
138
+ ensureDocumentStoreInitialized(state, scheduleSync);
139
+ scheduleSync();
140
+ }
141
+ }
142
+ function createLiveSyncLaneRequest(state) {
143
+ return (request) => {
144
+ refreshDocumentStoreSyncLane(state);
145
+ return request();
146
+ };
147
+ }
148
+ function registerBackingStoreInternalRelink(input) {
149
+ registerInternalDocumentRelink(input.store, (relinkInput, commitSideEffect) => input.withLiveSyncLane(() => relinkDocumentStore(input.state, relinkInput, input.scheduleSync, commitSideEffect)));
150
+ return input.store;
151
+ }
152
+ function createBackingStoreContext(localId, runtime, persistence, documentId, text, documentKind, options) {
153
+ const state = createDocumentStoreState(localId, runtime, persistence, {
154
+ emitPersistedDocument,
155
+ registerDocumentIdentity: registerDocumentStoreIdentity,
156
+ }, documentId, text, documentKind, (options.remoteSyncMode ?? "startup") === "startup");
157
+ if (options.deferInitialUpdate)
158
+ state.deferInitialUpdate = true;
159
+ refreshDocumentStoreSyncLane(state);
160
+ const scheduleSync = () => requestDocumentStoreSync(state);
161
+ return {
162
+ scheduleSync,
163
+ state,
164
+ withLiveSyncLane: createLiveSyncLaneRequest(state),
165
+ };
166
+ }
167
+ function createBackingDocumentStore(localId, initialRuntime, persistence = defaultDocumentsPersistence, initialDocumentId = null, initialText = "", initialDocumentKind = DEFAULT_DOCUMENT_KIND, openOptions = {}) {
168
+ const { scheduleSync, state, withLiveSyncLane } = createBackingStoreContext(localId, initialRuntime, persistence, initialDocumentId, initialText, initialDocumentKind, openOptions);
169
+ const store = {
170
+ addRow: (fields) => withLiveSyncLane(() => addRowToDocumentStore(state, scheduleSync, fields)),
171
+ assertCanRotateContentKey: () => withLiveSyncLane(() => assertBackingDocumentStoreCanRotate(state, scheduleSync)),
172
+ attachFiles: (files) => withLiveSyncLane(() => attachFilesToDocumentStore(state, scheduleSync, files)),
173
+ discardLocalState: (expectedDocumentId) => withLiveSyncLane(() => discardBackingDocumentStoreLocalState(state, scheduleSync, expectedDocumentId)),
174
+ ensureInitialized: () => withLiveSyncLane(() => ensureDocumentStoreReady(state, scheduleSync)),
175
+ getSnapshot: () => state.snapshot,
176
+ removeAttachment: (slotId) => withLiveSyncLane(() => removeAttachmentFromDocumentStore(state, scheduleSync, slotId)),
177
+ removeRow: (id) => withLiveSyncLane(() => removeRowFromDocumentStore(state, scheduleSync, id)),
178
+ replaceAttachment: (slotId, file) => withLiveSyncLane(() => replaceAttachmentInDocumentStore(state, scheduleSync, slotId, file)),
179
+ requestRemoteSync: () => withLiveSyncLane(() => requestRemoteDocumentStoreSync(state, scheduleSync)),
180
+ requestRemoteSyncAndWait: (signal) => requestRemoteDocumentStoreSyncAndWait(state, scheduleSync, signal),
181
+ requestSync: () => withLiveSyncLane(() => requestOrdinaryDocumentStoreSync(state, scheduleSync)),
182
+ relink: (input) => withLiveSyncLane(() => relinkDocumentStore(state, input, scheduleSync)),
183
+ setStructuredFields: (kind, patch, options) => withLiveSyncLane(() => setDocumentStructuredFields(state, scheduleSync, kind, patch, options)),
184
+ setText: (value) => withLiveSyncLane(() => setDocumentText(state, scheduleSync, value)),
185
+ subscribe: (listener) => subscribeToDocumentStore(state, listener),
186
+ updateRowFields: (id, patch) => withLiveSyncLane(() => updateRowInDocumentStore(state, scheduleSync, id, patch)),
187
+ updateRuntime: (runtime) => updateDocumentStoreRuntime(state, runtime, scheduleSync),
188
+ };
189
+ return registerBackingStoreInternalRelink({
190
+ scheduleSync,
191
+ state,
192
+ store,
193
+ withLiveSyncLane,
194
+ });
195
+ }
196
+ export function createDocumentStore(localId, initialRuntime, persistence = defaultDocumentsPersistence, initialDocumentId = null, initialText = "", initialDocumentKind = DEFAULT_DOCUMENT_KIND, options = {}) {
197
+ return createDocumentStoreFacade(createBackingDocumentStore(localId, initialRuntime, persistence, initialDocumentId, initialText, initialDocumentKind, options));
198
+ }
199
+ export function getOrCreateDocumentStore(domainScope, localId, runtime, initialDocumentId = null, initialText = "", initialDocumentKind = DEFAULT_DOCUMENT_KIND, options = {}) {
200
+ const registry = getOrCreateDocumentStoreRegistry(domainScope);
201
+ const existingStore = registry.storesByKey.get(resolveDocumentStoreKey(registry, localId, initialDocumentId));
202
+ if (existingStore) {
203
+ registerDocumentStore(domainScope, localId, existingStore, initialDocumentId);
204
+ return existingStore;
205
+ }
206
+ const nextStore = createDocumentStore(localId, runtime, defaultDocumentsPersistence, initialDocumentId, initialText, initialDocumentKind, options);
207
+ registerDocumentStore(domainScope, localId, nextStore, initialDocumentId);
208
+ return nextStore;
209
+ }
210
+ export function openDocumentStore(domainScope, localId, runtime, initialDocumentId = null, initialText = "", initialDocumentKind = DEFAULT_DOCUMENT_KIND, options = {}) {
211
+ const store = getOrCreateDocumentStore(domainScope, localId, runtime, initialDocumentId, initialText, initialDocumentKind, options);
212
+ store.updateRuntime(runtime);
213
+ return store;
214
+ }
215
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAC;AAGlF,OAAO,EACL,uCAAuC,EAEvC,2BAA2B,EAC3B,qCAAqC,EACrC,0BAA0B,EAC1B,8BAA8B,GAC/B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,yBAAyB,EACzB,qBAAqB,EACrB,gCAAgC,EAChC,qBAAqB,EACrB,6BAA6B,EAC7B,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,aAAa,CAAC;AAQrB,OAAO,EACL,0BAA0B,EAC1B,gCAAgC,GACjC,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,iCAAiC,EAAE,MAAM,iCAAiC,CAAC;AACpF,OAAO,EAAE,8BAA8B,EAAE,MAAM,WAAW,CAAC;AAC3D,OAAO,EACL,8BAA8B,EAC9B,wBAAwB,EACxB,mBAAmB,GACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,8BAA8B,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAAE,2BAA2B,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC3E,OAAO,EAAE,sCAAsC,EAAE,MAAM,YAAY,CAAC;AACpE,OAAO,EACL,qBAAqB,EACrB,0BAA0B,EAC1B,wBAAwB,GACzB,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,wBAAwB,EAExB,4BAA4B,EAC5B,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,6BAA6B,EAAE,MAAM,QAAQ,CAAC;AACvD,OAAO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,CAAC,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,iBAAiB,CAAC,CAAC;IAC1E,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,MAAM,UAAU,iBAAiB,CAC/B,WAAwB,EACxB,OAAe,EACf,OAAyB,EACzB,oBAAmC,IAAI,EACvC,WAAW,GAAG,EAAE,EAChB,sBAA0C,qBAAqB,EAC/D,UAAoC,EAAE;IAEtC,MAAM,KAAK,GAAG,wBAAwB,CACpC,WAAW,EACX,OAAO,EACP,OAAO,EACP,iBAAiB,EACjB,WAAW,EACX,mBAAmB,EACnB,OAAO,CACR,CAAC;IACF,KAAK,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IAC7B,OAAO,KAAK,CAAC;AACf,CAAC","sourcesContent":["import { DEFAULT_DOCUMENT_KIND } from \"../../../data/documents/documentConstants\";\nimport type { StoredDocumentKind } from \"../../../data/documents/documentKinds\";\nimport type { DomainScope } from \"../../../data/shared/domainScope\";\nimport {\n createDocumentProjectionUserKeyResolver,\n type DocumentsPersistence,\n defaultDocumentsPersistence,\n didDocumentProjectionKeyRuntimeChange,\n didRegainSyncPrerequisites,\n requestDocumentSyncLaneAndWait,\n} from \"../../../workflows/documents\";\nimport {\n createDocumentStoreFacade,\n emitPersistedDocument,\n getOrCreateDocumentStoreRegistry,\n registerDocumentStore,\n registerDocumentStoreIdentity,\n requestDocumentStoreSync,\n resolveDocumentStoreKey,\n} from \"../registry\";\nimport type {\n DocumentAttachmentUpload,\n DocumentStore,\n DocumentStoreFacade,\n DocumentStoreOpenOptions,\n DocumentsRuntime,\n} from \"../types\";\nimport {\n attachFilesToDocumentStore,\n replaceAttachmentInDocumentStore,\n} from \"./attachments\";\nimport { removeAttachmentFromDocumentStore } from \"./attachments/attachmentRemoval\";\nimport { discardDocumentStoreLocalState } from \"./discard\";\nimport {\n ensureDocumentStoreInitialized,\n ensureDocumentStoreReady,\n relinkDocumentStore,\n} from \"./initialization\";\nimport { registerInternalDocumentRelink } from \"./internalRelink\";\nimport { setDocumentStructuredFields, setDocumentText } from \"./mutations\";\nimport { assertDocumentStoreCanRotateContentKey } from \"./rotation\";\nimport {\n addRowToDocumentStore,\n removeRowFromDocumentStore,\n updateRowInDocumentStore,\n} from \"./rows\";\nimport {\n createDocumentStoreState,\n type DocumentStoreState,\n refreshAttachabilitySnapshot,\n resetDocumentStore,\n subscribeToDocumentStore,\n} from \"./state\";\nimport { registerDocumentStoreSyncLane } from \"./sync\";\nimport { logRevalidationScheduled } from \"./sync/remoteRevalidationTelemetry\";\nimport {\n allowDocumentStoreRemoteSync,\n captureDocumentStoreRemoteSyncRequestGeneration,\n captureDocumentStoreSyncLaneGeneration,\n type DocumentStoreRemoteSyncRequestGeneration,\n type DocumentStoreSyncLaneGeneration,\n didDocumentStoreRemoteSyncRequestComplete,\n hasPendingIndependentDocumentStoreRemoteSync,\n invalidateDocumentStoreRemoteSync,\n invalidateDocumentStoreSyncLane,\n isDocumentStoreRemoteSyncBlocked,\n isDocumentStoreRemoteSyncRequestGenerationCurrent,\n markDocumentStoreRemoteSyncPending,\n registerDocumentStoreRemoteSyncWaiter,\n} from \"./sync/syncGeneration\";\nimport { handleDocumentRemoteEvents } from \"./sync/syncRemoteSignals\";\n\nexport {\n discardRegisteredDocumentLocalState,\n requestDomainDocumentSync,\n subscribeToPersistedDocuments,\n} from \"../registry\";\n\nfunction refreshDocumentStoreSyncLane(\n state: DocumentStoreState,\n force = false,\n): void {\n if (!force && state.syncLane && !state.syncLane.isDisposed?.()) {\n return;\n }\n if (state.syncLane) {\n invalidateDocumentStoreSyncLane(state);\n }\n let syncLaneGeneration: DocumentStoreSyncLaneGeneration | null = null;\n state.syncLane = registerDocumentStoreSyncLane(\n state,\n () => syncLaneGeneration,\n );\n syncLaneGeneration = captureDocumentStoreSyncLaneGeneration(state);\n}\n\nfunction updateDocumentStoreRuntime(\n state: DocumentStoreState,\n nextRuntime: DocumentsRuntime,\n scheduleSync: () => void,\n) {\n const previousRuntime = state.runtime;\n const serverEventsReconnected =\n (nextRuntime.state.serverEventsConnectionGeneration ?? 0) >\n (previousRuntime.state.serverEventsConnectionGeneration ?? 0);\n const domainScopeChanged =\n previousRuntime.state.domainScope !== nextRuntime.state.domainScope;\n const projectionKeyRuntimeChanged = didDocumentProjectionKeyRuntimeChange(\n previousRuntime,\n nextRuntime,\n );\n if (projectionKeyRuntimeChanged) {\n state.resolveProjectionUserKey =\n createDocumentProjectionUserKeyResolver(nextRuntime);\n state.writerProjection = null;\n }\n state.runtime = nextRuntime;\n refreshDocumentStoreSyncLane(state, domainScopeChanged);\n if (domainScopeChanged) {\n state.locallyAcceptedUpdateIds = new Set();\n state.remoteUpdatePending = false;\n state.writerProjection = null;\n }\n\n if (nextRuntime.infra.dbStatus !== \"ready\") {\n if (state.snapshot.ready || state.initialized || state.initializePromise) {\n resetDocumentStore(state);\n }\n state.lastEventCount = nextRuntime.state.events.length;\n return;\n }\n\n refreshAttachabilitySnapshot(state);\n ensureDocumentStoreInitialized(state, scheduleSync);\n handleDocumentRemoteEvents(state, scheduleSync);\n\n if (state.snapshot.ready) {\n if (serverEventsReconnected) {\n // The invalidation stream is lossy while disconnected. Once the server\n // has acknowledged this socket's authoritative interest declaration,\n // every already-open remote document needs one HTTP probe to cover peer\n // writes made during the gap. This also closes iOS background/resume reconnects where the\n // native network source remained online throughout.\n requestRemoteDocumentStoreSync(state, scheduleSync);\n logRevalidationScheduled(state.runtime, \"reconnect\");\n } else if (didRegainSyncPrerequisites(previousRuntime, state.runtime)) {\n scheduleSync();\n }\n }\n}\n\nfunction requestRemoteDocumentStoreSync(\n state: DocumentStoreState,\n scheduleSync: () => void,\n owner: \"independent\" | \"waiter\" = \"independent\",\n): number {\n allowDocumentStoreRemoteSync(state);\n const signalSequence = markDocumentStoreRemoteSyncPending(state, owner);\n scheduleSync();\n return signalSequence;\n}\n\nfunction requestOrdinaryDocumentStoreSync(\n state: DocumentStoreState,\n scheduleSync: () => void,\n): void {\n // A normal UI reopen is a fresh owner for remote-only work. It may recover\n // a probe that an earlier, now-unmounted owner aborted.\n if (isDocumentStoreRemoteSyncBlocked(state)) {\n requestRemoteDocumentStoreSync(state, scheduleSync);\n return;\n }\n scheduleSync();\n}\n\nfunction requestRemoteDocumentStoreSyncAndWait(\n state: DocumentStoreState,\n scheduleSync: () => void,\n signal?: AbortSignal,\n): Promise<boolean> {\n let requestGeneration: DocumentStoreRemoteSyncRequestGeneration | null = null;\n let requestedSignalSequence = 0;\n let releaseWaiter: (() => boolean) | null = null;\n const releaseRemoteSyncWaiter = (invalidate: boolean) => {\n const releasedLastWaiter = releaseWaiter?.() ?? false;\n if (\n invalidate &&\n releasedLastWaiter &&\n requestGeneration !== null &&\n isDocumentStoreRemoteSyncRequestGenerationCurrent(\n state,\n requestGeneration,\n ) &&\n !hasPendingIndependentDocumentStoreRemoteSync(state)\n ) {\n invalidateDocumentStoreRemoteSync(state);\n }\n };\n // A coordinator can be disposed and recreated while this same-scope store\n // remains registered. Refresh its handle before requesting work.\n refreshDocumentStoreSyncLane(state);\n return requestDocumentSyncLaneAndWait({\n didCompleteRequest: () =>\n requestGeneration !== null &&\n didDocumentStoreRemoteSyncRequestComplete(\n state,\n requestGeneration,\n requestedSignalSequence,\n ),\n domainScope: state.runtime.state.domainScope,\n localId: state.localId,\n request: () => {\n requestGeneration =\n captureDocumentStoreRemoteSyncRequestGeneration(state);\n releaseWaiter = registerDocumentStoreRemoteSyncWaiter(\n state,\n requestGeneration,\n );\n requestedSignalSequence = requestRemoteDocumentStoreSync(\n state,\n scheduleSync,\n \"waiter\",\n );\n },\n onInvalidated: () => releaseRemoteSyncWaiter(true),\n signal,\n }).then(\n (completed) => {\n releaseRemoteSyncWaiter(!completed);\n return completed;\n },\n (error: unknown) => {\n releaseRemoteSyncWaiter(true);\n throw error;\n },\n );\n}\n\nasync function assertBackingDocumentStoreCanRotate(\n state: DocumentStoreState,\n scheduleSync: () => void,\n) {\n if (!(await ensureDocumentStoreReady(state, scheduleSync)) || !state.doc) {\n throw new Error(\n \"Document must finish loading before its content key can rotate\",\n );\n }\n return assertDocumentStoreCanRotateContentKey(state);\n}\n\nasync function discardBackingDocumentStoreLocalState(\n state: DocumentStoreState,\n scheduleSync: () => void,\n expectedDocumentId: string,\n) {\n try {\n return await discardDocumentStoreLocalState(state, expectedDocumentId);\n } finally {\n // Restart hydration whenever the attempt reset the store. This runs outside\n // its identity-chained task because initialization also chains writes.\n ensureDocumentStoreInitialized(state, scheduleSync);\n scheduleSync();\n }\n}\n\nfunction createLiveSyncLaneRequest(state: DocumentStoreState) {\n return <Result>(request: () => Result): Result => {\n refreshDocumentStoreSyncLane(state);\n return request();\n };\n}\n\nfunction registerBackingStoreInternalRelink(input: {\n scheduleSync: () => void;\n state: DocumentStoreState;\n store: DocumentStore;\n withLiveSyncLane: ReturnType<typeof createLiveSyncLaneRequest>;\n}): DocumentStore {\n registerInternalDocumentRelink(input.store, (relinkInput, commitSideEffect) =>\n input.withLiveSyncLane(() =>\n relinkDocumentStore(\n input.state,\n relinkInput,\n input.scheduleSync,\n commitSideEffect,\n ),\n ),\n );\n return input.store;\n}\n\nfunction createBackingStoreContext(\n localId: string,\n runtime: DocumentsRuntime,\n persistence: DocumentsPersistence,\n documentId: string | null,\n text: string,\n documentKind: StoredDocumentKind,\n options: DocumentStoreOpenOptions,\n) {\n const state = createDocumentStoreState(\n localId,\n runtime,\n persistence,\n {\n emitPersistedDocument,\n registerDocumentIdentity: registerDocumentStoreIdentity,\n },\n documentId,\n text,\n documentKind,\n (options.remoteSyncMode ?? \"startup\") === \"startup\",\n );\n if (options.deferInitialUpdate) state.deferInitialUpdate = true;\n refreshDocumentStoreSyncLane(state);\n const scheduleSync = () => requestDocumentStoreSync(state);\n return {\n scheduleSync,\n state,\n withLiveSyncLane: createLiveSyncLaneRequest(state),\n };\n}\n\nfunction createBackingDocumentStore(\n localId: string,\n initialRuntime: DocumentsRuntime,\n persistence: DocumentsPersistence = defaultDocumentsPersistence,\n initialDocumentId: string | null = null,\n initialText = \"\",\n initialDocumentKind: StoredDocumentKind = DEFAULT_DOCUMENT_KIND,\n openOptions: DocumentStoreOpenOptions = {},\n): DocumentStore {\n const { scheduleSync, state, withLiveSyncLane } = createBackingStoreContext(\n localId,\n initialRuntime,\n persistence,\n initialDocumentId,\n initialText,\n initialDocumentKind,\n openOptions,\n );\n\n const store: DocumentStore = {\n addRow: (fields) =>\n withLiveSyncLane(() =>\n addRowToDocumentStore(state, scheduleSync, fields),\n ),\n assertCanRotateContentKey: () =>\n withLiveSyncLane(() =>\n assertBackingDocumentStoreCanRotate(state, scheduleSync),\n ),\n attachFiles: (files: ReadonlyArray<DocumentAttachmentUpload>) =>\n withLiveSyncLane(() =>\n attachFilesToDocumentStore(state, scheduleSync, files),\n ),\n discardLocalState: (expectedDocumentId: string) =>\n withLiveSyncLane(() =>\n discardBackingDocumentStoreLocalState(\n state,\n scheduleSync,\n expectedDocumentId,\n ),\n ),\n ensureInitialized: () =>\n withLiveSyncLane(() => ensureDocumentStoreReady(state, scheduleSync)),\n getSnapshot: () => state.snapshot,\n removeAttachment: (slotId: string) =>\n withLiveSyncLane(() =>\n removeAttachmentFromDocumentStore(state, scheduleSync, slotId),\n ),\n removeRow: (id) =>\n withLiveSyncLane(() =>\n removeRowFromDocumentStore(state, scheduleSync, id),\n ),\n replaceAttachment: (slotId: string, file: DocumentAttachmentUpload) =>\n withLiveSyncLane(() =>\n replaceAttachmentInDocumentStore(state, scheduleSync, slotId, file),\n ),\n requestRemoteSync: () =>\n withLiveSyncLane(() =>\n requestRemoteDocumentStoreSync(state, scheduleSync),\n ),\n requestRemoteSyncAndWait: (signal) =>\n requestRemoteDocumentStoreSyncAndWait(state, scheduleSync, signal),\n requestSync: () =>\n withLiveSyncLane(() =>\n requestOrdinaryDocumentStoreSync(state, scheduleSync),\n ),\n relink: (input) =>\n withLiveSyncLane(() => relinkDocumentStore(state, input, scheduleSync)),\n setStructuredFields: (kind, patch, options) =>\n withLiveSyncLane(() =>\n setDocumentStructuredFields(state, scheduleSync, kind, patch, options),\n ),\n setText: (value: string) =>\n withLiveSyncLane(() => setDocumentText(state, scheduleSync, value)),\n subscribe: (listener) => subscribeToDocumentStore(state, listener),\n updateRowFields: (id, patch) =>\n withLiveSyncLane(() =>\n updateRowInDocumentStore(state, scheduleSync, id, patch),\n ),\n updateRuntime: (runtime: DocumentsRuntime) =>\n updateDocumentStoreRuntime(state, runtime, scheduleSync),\n };\n return registerBackingStoreInternalRelink({\n scheduleSync,\n state,\n store,\n withLiveSyncLane,\n });\n}\n\nexport function createDocumentStore(\n localId: string,\n initialRuntime: DocumentsRuntime,\n persistence: DocumentsPersistence = defaultDocumentsPersistence,\n initialDocumentId: string | null = null,\n initialText = \"\",\n initialDocumentKind: StoredDocumentKind = DEFAULT_DOCUMENT_KIND,\n options: DocumentStoreOpenOptions = {},\n): DocumentStoreFacade {\n return createDocumentStoreFacade(\n createBackingDocumentStore(\n localId,\n initialRuntime,\n persistence,\n initialDocumentId,\n initialText,\n initialDocumentKind,\n options,\n ),\n );\n}\n\nexport function getOrCreateDocumentStore(\n domainScope: DomainScope,\n localId: string,\n runtime: DocumentsRuntime,\n initialDocumentId: string | null = null,\n initialText = \"\",\n initialDocumentKind: StoredDocumentKind = DEFAULT_DOCUMENT_KIND,\n options: DocumentStoreOpenOptions = {},\n): DocumentStore {\n const registry = getOrCreateDocumentStoreRegistry(domainScope);\n const existingStore = registry.storesByKey.get(\n resolveDocumentStoreKey(registry, localId, initialDocumentId),\n );\n if (existingStore) {\n registerDocumentStore(\n domainScope,\n localId,\n existingStore,\n initialDocumentId,\n );\n return existingStore;\n }\n\n const nextStore = createDocumentStore(\n localId,\n runtime,\n defaultDocumentsPersistence,\n initialDocumentId,\n initialText,\n initialDocumentKind,\n options,\n );\n registerDocumentStore(domainScope, localId, nextStore, initialDocumentId);\n return nextStore;\n}\n\nexport function openDocumentStore(\n domainScope: DomainScope,\n localId: string,\n runtime: DocumentsRuntime,\n initialDocumentId: string | null = null,\n initialText = \"\",\n initialDocumentKind: StoredDocumentKind = DEFAULT_DOCUMENT_KIND,\n options: DocumentStoreOpenOptions = {},\n): DocumentStore {\n const store = getOrCreateDocumentStore(\n domainScope,\n localId,\n runtime,\n initialDocumentId,\n initialText,\n initialDocumentKind,\n options,\n );\n store.updateRuntime(runtime);\n return store;\n}\n"]}
@@ -0,0 +1,116 @@
1
+ import { encodeVersionVector, satisfiesVersionVector } from "../../../../internal/loro/index.js";
2
+ import { createPendingUpdateFields } from "../../../../data/documents/documentSync.js";
3
+ import { requestDocumentStoreSync } from "../../registry.js";
4
+ import { captureAttachmentWriteGeneration, isAttachmentWriteGenerationCurrent, } from "../attachments/attachmentWriteGeneration.js";
5
+ import { reloadDocumentFromDurableHistory } from "../history/durableDocumentReload.js";
6
+ import { advancePendingBaseVersion, pendingDeltaSinceBase, persistDocument, } from "../persistence.js";
7
+ import { resetDocumentStore } from "../state.js";
8
+ import { captureDocumentStoreSyncGeneration, isDocumentStoreSyncGenerationCurrent, } from "../sync/syncGeneration.js";
9
+ import { ensureDocumentStoreInitialized } from "./index.js";
10
+ /**
11
+ * Runs after the first attach on a store opened with `deferInitialUpdate`.
12
+ * Creation committed the birth without a pending update, leaving the marker at
13
+ * the empty version so that attach's delta would carry it, and scheduled sync
14
+ * passes wait meanwhile (see `canRunScheduledSync`) so none ships the birth on
15
+ * its own. When the attach did not land (staging failed or returned null, its
16
+ * persist was refused, or the store could not attach), enqueue the deferred
17
+ * tail now so the document still syncs, without its attachment. Either way,
18
+ * lift the hold and request the pass it skipped.
19
+ */
20
+ export async function settleDeferredInitialUpdate(state, writeGeneration) {
21
+ if (!state.deferInitialUpdate)
22
+ return;
23
+ // Before initialization finishes no attach has touched a live doc, and a
24
+ // reload here would install one behind initialization's back (or mark a
25
+ // not-yet-created document removed). Lift the hold; initialization then
26
+ // restores the empty marker and schedules the pass that ships the birth.
27
+ if (!state.initialized) {
28
+ state.deferInitialUpdate = false;
29
+ return;
30
+ }
31
+ // A pass exports the live doc, so it must hold only durable content (see
32
+ // restoreDurableLiveDocument) before the hold lifts. When that cannot be
33
+ // shown, even after a transient failure, reinitialize from durable history
34
+ // rather than latch the hold: the reset lifts it and drops the live doc.
35
+ let durable = false;
36
+ try {
37
+ durable = await restoreDurableLiveDocument(state);
38
+ }
39
+ finally {
40
+ if (!durable && state.deferInitialUpdate && state.doc) {
41
+ resetDocumentStore(state);
42
+ ensureDocumentStoreInitialized(state, () => requestDocumentStoreSync(state));
43
+ }
44
+ else if (!durable) {
45
+ // No live doc remains to leak (a concurrent removal): just lift it.
46
+ state.deferInitialUpdate = false;
47
+ }
48
+ }
49
+ if (!durable)
50
+ return;
51
+ state.deferInitialUpdate = false;
52
+ try {
53
+ await enqueueDeferredTail(state, writeGeneration);
54
+ }
55
+ finally {
56
+ requestDocumentStoreSync(state);
57
+ }
58
+ }
59
+ function isLiveDocumentDurable(state) {
60
+ return (state.doc !== null &&
61
+ state.record !== null &&
62
+ satisfiesVersionVector(state.record.snapshotEndVersion, encodeVersionVector(state.doc)));
63
+ }
64
+ /**
65
+ * A failed attach whose rollback reload could not run (its generation went
66
+ * stale mid-stage) leaves the uncommitted slot in the live doc, and that slot
67
+ * must never sync without its staged bytes. Reload durable history under a
68
+ * fresh generation before trusting the live doc.
69
+ */
70
+ async function restoreDurableLiveDocument(state) {
71
+ if (isLiveDocumentDurable(state))
72
+ return true;
73
+ const generation = captureDocumentStoreSyncGeneration(state, state.doc);
74
+ if (generation) {
75
+ await reloadDocumentFromDurableHistory({
76
+ expectedGeneration: generation,
77
+ preserveQueuedWritesWhenIdentityMatches: true,
78
+ state,
79
+ });
80
+ }
81
+ return isLiveDocumentDurable(state);
82
+ }
83
+ async function enqueueDeferredTail(state, writeGeneration) {
84
+ // A reset or relink owns the replacement store; its deferred tail stays
85
+ // durable and the next write or sync pass materializes it. With no attach
86
+ // (nothing to attach, or the store was not writable) the live store owns it.
87
+ const generation = writeGeneration ?? captureAttachmentWriteGeneration(state);
88
+ if (!generation || !isAttachmentWriteGenerationCurrent(state, generation)) {
89
+ return;
90
+ }
91
+ const currentDoc = state.doc;
92
+ const baseVersion = state.pendingBaseVersion;
93
+ if (!currentDoc || baseVersion === null)
94
+ return;
95
+ const documentVersion = encodeVersionVector(currentDoc);
96
+ // Settled: the attach (or an earlier write) already enqueued the birth.
97
+ if (satisfiesVersionVector(baseVersion, documentVersion))
98
+ return;
99
+ const syncGeneration = captureDocumentStoreSyncGeneration(state, currentDoc);
100
+ if (!syncGeneration)
101
+ return;
102
+ const pendingUpdate = createPendingUpdateFields(pendingDeltaSinceBase(state, currentDoc));
103
+ if (!pendingUpdate)
104
+ return;
105
+ const persisted = await persistDocument(state, currentDoc, { snapshotEndVersion: documentVersion }, {
106
+ pendingUpdate,
107
+ preserveSnapshotStructuredFields: true,
108
+ preserveSnapshotText: true,
109
+ }, syncGeneration);
110
+ if (!persisted ||
111
+ !isDocumentStoreSyncGenerationCurrent(state, syncGeneration)) {
112
+ return;
113
+ }
114
+ advancePendingBaseVersion(state, currentDoc);
115
+ }
116
+ //# sourceMappingURL=deferredInitialUpdate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deferredInitialUpdate.js","sourceRoot":"","sources":["deferredInitialUpdate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAC9E,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAEL,gCAAgC,EAChC,kCAAkC,GACnC,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,gCAAgC,EAAE,MAAM,kCAAkC,CAAC;AACpF,OAAO,EACL,yBAAyB,EACzB,qBAAqB,EACrB,eAAe,GAChB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAA2B,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACvE,OAAO,EACL,kCAAkC,EAClC,oCAAoC,G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CAAC,cAAc;QAAE,OAAO;IAC5B,MAAM,aAAa,GAAG,yBAAyB,CAC7C,qBAAqB,CAAC,KAAK,EAAE,UAAU,CAAC,CACzC,CAAC;IACF,IAAI,CAAC,aAAa;QAAE,OAAO;IAC3B,MAAM,SAAS,GAAG,MAAM,eAAe,CACrC,KAAK,EACL,UAAU,EACV,EAAE,kBAAkB,EAAE,eAAe,EAAE,EACvC;QACE,aAAa;QACb,gCAAgC,EAAE,IAAI;QACtC,oBAAoB,EAAE,IAAI;KAC3B,EACD,cAAc,CACf,CAAC;IACF,IACE,CAAC,SAAS;QACV,CAAC,oCAAoC,CAAC,KAAK,EAAE,cAAc,CAAC,EAC5D,CAAC;QACD,OAAO;IACT,CAAC;IACD,yBAAyB,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;AAC/C,CAAC","sourcesContent":["import { encodeVersionVector, satisfiesVersionVector } from \"@tearleads/loro\";\nimport { createPendingUpdateFields } from \"../../../../data/documents/documentSync\";\nimport { requestDocumentStoreSync } from \"../../registry\";\nimport {\n type AttachmentWriteGeneration,\n captureAttachmentWriteGeneration,\n isAttachmentWriteGenerationCurrent,\n} from \"../attachments/attachmentWriteGeneration\";\nimport { reloadDocumentFromDurableHistory } from \"../history/durableDocumentReload\";\nimport {\n advancePendingBaseVersion,\n pendingDeltaSinceBase,\n persistDocument,\n} from \"../persistence\";\nimport { type DocumentStoreState, resetDocumentStore } from \"../state\";\nimport {\n captureDocumentStoreSyncGeneration,\n isDocumentStoreSyncGenerationCurrent,\n} from \"../sync/syncGeneration\";\nimport { ensureDocumentStoreInitialized } from \"./index\";\n\n/**\n * Runs after the first attach on a store opened with `deferInitialUpdate`.\n * Creation committed the birth without a pending update, leaving the marker at\n * the empty version so that attach's delta would carry it, and scheduled sync\n * passes wait meanwhile (see `canRunScheduledSync`) so none ships the birth on\n * its own. When the attach did not land (staging failed or returned null, its\n * persist was refused, or the store could not attach), enqueue the deferred\n * tail now so the document still syncs, without its attachment. Either way,\n * lift the hold and request the pass it skipped.\n */\nexport async function settleDeferredInitialUpdate(\n state: DocumentStoreState,\n writeGeneration: AttachmentWriteGeneration | null,\n): Promise<void> {\n if (!state.deferInitialUpdate) return;\n // Before initialization finishes no attach has touched a live doc, and a\n // reload here would install one behind initialization's back (or mark a\n // not-yet-created document removed). Lift the hold; initialization then\n // restores the empty marker and schedules the pass that ships the birth.\n if (!state.initialized) {\n state.deferInitialUpdate = false;\n return;\n }\n // A pass exports the live doc, so it must hold only durable content (see\n // restoreDurableLiveDocument) before the hold lifts. When that cannot be\n // shown, even after a transient failure, reinitialize from durable history\n // rather than latch the hold: the reset lifts it and drops the live doc.\n let durable = false;\n try {\n durable = await restoreDurableLiveDocument(state);\n } finally {\n if (!durable && state.deferInitialUpdate && state.doc) {\n resetDocumentStore(state);\n ensureDocumentStoreInitialized(state, () =>\n requestDocumentStoreSync(state),\n );\n } else if (!durable) {\n // No live doc remains to leak (a concurrent removal): just lift it.\n state.deferInitialUpdate = false;\n }\n }\n if (!durable) return;\n state.deferInitialUpdate = false;\n try {\n await enqueueDeferredTail(state, writeGeneration);\n } finally {\n requestDocumentStoreSync(state);\n }\n}\n\nfunction isLiveDocumentDurable(state: DocumentStoreState): boolean {\n return (\n state.doc !== null &&\n state.record !== null &&\n satisfiesVersionVector(\n state.record.snapshotEndVersion,\n encodeVersionVector(state.doc),\n )\n );\n}\n\n/**\n * A failed attach whose rollback reload could not run (its generation went\n * stale mid-stage) leaves the uncommitted slot in the live doc, and that slot\n * must never sync without its staged bytes. Reload durable history under a\n * fresh generation before trusting the live doc.\n */\nasync function restoreDurableLiveDocument(\n state: DocumentStoreState,\n): Promise<boolean> {\n if (isLiveDocumentDurable(state)) return true;\n const generation = captureDocumentStoreSyncGeneration(state, state.doc);\n if (generation) {\n await reloadDocumentFromDurableHistory({\n expectedGeneration: generation,\n preserveQueuedWritesWhenIdentityMatches: true,\n state,\n });\n }\n return isLiveDocumentDurable(state);\n}\n\nasync function enqueueDeferredTail(\n state: DocumentStoreState,\n writeGeneration: AttachmentWriteGeneration | null,\n): Promise<void> {\n // A reset or relink owns the replacement store; its deferred tail stays\n // durable and the next write or sync pass materializes it. With no attach\n // (nothing to attach, or the store was not writable) the live store owns it.\n const generation = writeGeneration ?? captureAttachmentWriteGeneration(state);\n if (!generation || !isAttachmentWriteGenerationCurrent(state, generation)) {\n return;\n }\n const currentDoc = state.doc;\n const baseVersion = state.pendingBaseVersion;\n if (!currentDoc || baseVersion === null) return;\n const documentVersion = encodeVersionVector(currentDoc);\n // Settled: the attach (or an earlier write) already enqueued the birth.\n if (satisfiesVersionVector(baseVersion, documentVersion)) return;\n const syncGeneration = captureDocumentStoreSyncGeneration(state, currentDoc);\n if (!syncGeneration) return;\n const pendingUpdate = createPendingUpdateFields(\n pendingDeltaSinceBase(state, currentDoc),\n );\n if (!pendingUpdate) return;\n const persisted = await persistDocument(\n state,\n currentDoc,\n { snapshotEndVersion: documentVersion },\n {\n pendingUpdate,\n preserveSnapshotStructuredFields: true,\n preserveSnapshotText: true,\n },\n syncGeneration,\n );\n if (\n !persisted ||\n !isDocumentStoreSyncGenerationCurrent(state, syncGeneration)\n ) {\n return;\n }\n advancePendingBaseVersion(state, currentDoc);\n}\n"]}