@tearleads/client-sdk 0.1.111 → 0.1.113

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 (81) hide show
  1. package/Tearleads.js +0 -2
  2. package/Tearleads.js.map +1 -1
  3. package/client/containerContents/index.js +5 -1
  4. package/client/containerContents/index.js.map +1 -1
  5. package/client/deviceFirst/index.js +5 -1
  6. package/client/deviceFirst/index.js.map +1 -1
  7. package/client/identity/userIdentities.d.ts +13 -8
  8. package/client/identity/userIdentities.js +4 -22
  9. package/client/identity/userIdentities.js.map +1 -1
  10. package/client/index.d.ts +2 -2
  11. package/client/index.js +1 -0
  12. package/client/index.js.map +1 -1
  13. package/client/organizations/index.d.ts +1 -1
  14. package/client/organizations/index.js +12 -9
  15. package/client/organizations/index.js.map +1 -1
  16. package/client/organizations/organizationsTypes.d.ts +1 -2
  17. package/client/organizations/organizationsTypes.js.map +1 -1
  18. package/client/runtime/workflowRuntime.d.ts +1 -1
  19. package/client/runtime/workflowRuntime.js.map +1 -1
  20. package/data/persistence/keyingCheckpoints/keyingCheckpointAdvancePersistence.js +16 -11
  21. package/data/persistence/keyingCheckpoints/keyingCheckpointAdvancePersistence.js.map +1 -1
  22. package/data/persistence/keyingCheckpoints/keyingCheckpointPersistence.js +150 -2
  23. package/data/persistence/keyingCheckpoints/keyingCheckpointPersistence.js.map +1 -1
  24. package/data/persistence/keyingCheckpoints/principalAuthorizationCheckpoints.js +3 -2
  25. package/data/persistence/keyingCheckpoints/principalAuthorizationCheckpoints.js.map +1 -1
  26. package/data/persistence/principalHistory/principalHistoryEvidencePersistence.d.ts +14 -1
  27. package/data/persistence/principalHistory/principalHistoryEvidencePersistence.js +128 -34
  28. package/data/persistence/principalHistory/principalHistoryEvidencePersistence.js.map +1 -1
  29. package/data/persistence/principalHistory/principalHistoryNodeRetention.js +64 -24
  30. package/data/persistence/principalHistory/principalHistoryNodeRetention.js.map +1 -1
  31. package/data/persistence/principalHistory/principalHistoryPrefixPersistence.js +6 -1
  32. package/data/persistence/principalHistory/principalHistoryPrefixPersistence.js.map +1 -1
  33. package/data/persistence/principalHistory/principalHistoryRootOwnership.d.ts +45 -0
  34. package/data/persistence/principalHistory/principalHistoryRootOwnership.js +41 -4
  35. package/data/persistence/principalHistory/principalHistoryRootOwnership.js.map +1 -1
  36. package/data/persistence/principalHistory/principalHistoryStagePersistence.js +12 -8
  37. package/data/persistence/principalHistory/principalHistoryStagePersistence.js.map +1 -1
  38. package/data/persistence/principalKeys/principalGrantRetirementPersistence.js +35 -1
  39. package/data/persistence/principalKeys/principalGrantRetirementPersistence.js.map +1 -1
  40. package/data/persistence/principalPolicy/principalPolicyOrganizationPersistence.js +62 -1
  41. package/data/persistence/principalPolicy/principalPolicyOrganizationPersistence.js.map +1 -1
  42. package/data/persistence/trustedUserIdentityPinPersistence.js +70 -21
  43. package/data/persistence/trustedUserIdentityPinPersistence.js.map +1 -1
  44. package/data/persistence/verifiedManifestBundlePersistence.js +27 -10
  45. package/data/persistence/verifiedManifestBundlePersistence.js.map +1 -1
  46. package/data/sqlite/schema/index.d.ts +45 -5
  47. package/data/sqlite/schema/index.js +14 -6
  48. package/data/sqlite/schema/index.js.map +1 -1
  49. package/data/sqlite/schema/principalHistoryNodeRetentionSchema.d.ts +222 -0
  50. package/data/trustedUserIdentity/admission.d.ts +10 -0
  51. package/data/trustedUserIdentity/admission.js +15 -0
  52. package/data/trustedUserIdentity/admission.js.map +1 -0
  53. package/data/trustedUserIdentity/index.d.ts +1 -0
  54. package/data/trustedUserIdentity/index.js +1 -0
  55. package/data/trustedUserIdentity/index.js.map +1 -1
  56. package/data/trustedUserIdentity/service.d.ts +1 -5
  57. package/data/trustedUserIdentity/service.js +119 -46
  58. package/data/trustedUserIdentity/service.js.map +1 -1
  59. package/data/trustedUserIdentity/types.d.ts +12 -1
  60. package/data/trustedUserIdentity/types.js.map +1 -1
  61. package/index.d.ts +3 -3
  62. package/index.js +2 -2
  63. package/index.js.map +1 -1
  64. package/package.json +1 -1
  65. package/stores/container-contents/containerContentsStore.js +10 -1
  66. package/stores/container-contents/containerContentsStore.js.map +1 -1
  67. package/workflows/container-contents/runtime.d.ts +7 -1
  68. package/workflows/container-contents/runtime.js +2 -1
  69. package/workflows/container-contents/runtime.js.map +1 -1
  70. package/workflows/organizations/index.d.ts +0 -1
  71. package/workflows/organizations/index.js +0 -1
  72. package/workflows/organizations/index.js.map +1 -1
  73. package/workflows/principals/historyRecovery/loadRecoveredPrincipalHistoryPage.js +13 -12
  74. package/workflows/principals/historyRecovery/loadRecoveredPrincipalHistoryPage.js.map +1 -1
  75. package/workflows/principals/historyRecovery/principalHistoryRecoveryReferences.js +17 -19
  76. package/workflows/principals/historyRecovery/principalHistoryRecoveryReferences.js.map +1 -1
  77. package/workflows/principals/publicHistory/selectPublicPrincipalHistory.js +8 -10
  78. package/workflows/principals/publicHistory/selectPublicPrincipalHistory.js.map +1 -1
  79. package/workflows/organizations/organizationUserImport.d.ts +0 -8
  80. package/workflows/organizations/organizationUserImport.js +0 -10
  81. package/workflows/organizations/organizationUserImport.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"organizationUserImport.js","sourceRoot":"","sources":["organizationUserImport.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kCAAkC,GAEnC,MAAM,gCAAgC,CAAC;AAMxC,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAAC,KAG5C;IACC,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;IACnC,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACxB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,QAAQ,GAAG,MAAM,kCAAkC,CACvD,KAAK,CAAC,0BAA0B,CACjC,CAAC,MAAM,CAAC,CAAC;IACV,OAAO,QAAQ,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AACvD,CAAC","sourcesContent":["import {\n requireTrustedUserIdentityResolver,\n type TrustedUserIdentityResolver,\n} from \"../../data/trustedUserIdentity\";\n\nexport interface ImportedOrganizationUser {\n readonly userId: string;\n}\n\nexport async function importOrganizationUser(input: {\n readonly resolveTrustedUserIdentity: TrustedUserIdentityResolver;\n readonly userId: string;\n}): Promise<ImportedOrganizationUser | null> {\n const userId = input.userId.trim();\n if (userId.length === 0) {\n return null;\n }\n\n const identity = await requireTrustedUserIdentityResolver(\n input.resolveTrustedUserIdentity,\n )(userId);\n return identity ? { userId: identity.userId } : null;\n}\n"]}