@safetech/inheriti-client-sdk 1.0.0

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 (257) hide show
  1. package/README.md +22 -0
  2. package/dist/index.d.ts +4 -0
  3. package/dist/index.js +2 -0
  4. package/dist/src/modules/_shared/domain/contexts/data-provider-context.d.ts +2 -0
  5. package/dist/src/modules/_shared/domain/contexts/service-provider-context.d.ts +2 -0
  6. package/dist/src/modules/_shared/domain/contexts/utils-provider-context.d.ts +5 -0
  7. package/dist/src/modules/_shared/domain/errors/getErrorMessage.d.ts +1 -0
  8. package/dist/src/modules/_shared/domain/hooks/resources/use-create.d.ts +18 -0
  9. package/dist/src/modules/_shared/domain/hooks/resources/use-delete.d.ts +19 -0
  10. package/dist/src/modules/_shared/domain/hooks/resources/use-get-list.d.ts +25 -0
  11. package/dist/src/modules/_shared/domain/hooks/resources/use-get-one.d.ts +17 -0
  12. package/dist/src/modules/_shared/domain/hooks/use-data-provider.d.ts +2 -0
  13. package/dist/src/modules/_shared/domain/hooks/use-repository.d.ts +1 -0
  14. package/dist/src/modules/_shared/domain/hooks/use-service-provider.d.ts +2 -0
  15. package/dist/src/modules/_shared/domain/hooks/use-service.d.ts +1 -0
  16. package/dist/src/modules/_shared/domain/hooks/utils-hooks.d.ts +4 -0
  17. package/dist/src/modules/_shared/domain/models/app-utils.d.ts +10 -0
  18. package/dist/src/modules/_shared/domain/models/currency-price.d.ts +39 -0
  19. package/dist/src/modules/_shared/domain/models/currency.d.ts +24 -0
  20. package/dist/src/modules/_shared/domain/models/euro-currency.d.ts +3 -0
  21. package/dist/src/modules/_shared/domain/models/mutation-options.d.ts +8 -0
  22. package/dist/src/modules/_shared/domain/models/mutation.d.ts +5 -0
  23. package/dist/src/modules/_shared/domain/models/pagination-options.d.ts +4 -0
  24. package/dist/src/modules/_shared/domain/models/query-options.d.ts +6 -0
  25. package/dist/src/modules/_shared/domain/models/query.d.ts +5 -0
  26. package/dist/src/modules/_shared/domain/models/resource-count.d.ts +3 -0
  27. package/dist/src/modules/_shared/domain/models/sort-options.d.ts +4 -0
  28. package/dist/src/modules/_shared/domain/models/use-mutation-value.d.ts +13 -0
  29. package/dist/src/modules/_shared/domain/models/use-query-value.d.ts +11 -0
  30. package/dist/src/modules/_shared/domain/services/mutation-creator.d.ts +6 -0
  31. package/dist/src/modules/_shared/domain/services/query-creator.d.ts +6 -0
  32. package/dist/src/modules/_shared/domain/utils/misc/array-utils.d.ts +48 -0
  33. package/dist/src/modules/_shared/domain/utils/misc/datetime-utils.d.ts +40 -0
  34. package/dist/src/modules/_shared/domain/utils/misc/encrypt-utils.d.ts +17 -0
  35. package/dist/src/modules/_shared/domain/utils/misc/number-utils.d.ts +4 -0
  36. package/dist/src/modules/_shared/domain/utils/misc/object-utils.d.ts +76 -0
  37. package/dist/src/modules/_shared/domain/utils/misc/text-utils.d.ts +7 -0
  38. package/dist/src/modules/_shared/domain/utils/misc/uuid-utils.d.ts +6 -0
  39. package/dist/src/modules/_shared/infrastructure/api/api-repository.d.ts +36 -0
  40. package/dist/src/modules/_shared/infrastructure/api/app-payload-encrypter.d.ts +9 -0
  41. package/dist/src/modules/_shared/infrastructure/http/HttpError.d.ts +7 -0
  42. package/dist/src/modules/_shared/infrastructure/http/fetch.d.ts +48 -0
  43. package/dist/src/modules/_shared/infrastructure/local-storage/browser-local-storage.d.ts +9 -0
  44. package/dist/src/modules/_shared/infrastructure/providers/app-data-provider.d.ts +20 -0
  45. package/dist/src/modules/_shared/infrastructure/providers/app-provider.d.ts +15 -0
  46. package/dist/src/modules/_shared/infrastructure/providers/app-service-provider.d.ts +28 -0
  47. package/dist/src/modules/_shared/infrastructure/providers/app-utils-provider.d.ts +175 -0
  48. package/dist/src/modules/_shared/infrastructure/providers/inheriti-client-provider.d.ts +46 -0
  49. package/dist/src/modules/_shared/infrastructure/secure-storage/app-secure-storage.d.ts +8 -0
  50. package/dist/src/modules/_shared/infrastructure/services/hexEncoder.d.ts +4 -0
  51. package/dist/src/modules/_shared/infrastructure/services/react-q-query-creator.d.ts +7 -0
  52. package/dist/src/modules/_shared/infrastructure/services/react-query-mutation-creator.d.ts +7 -0
  53. package/dist/src/modules/_shared/infrastructure/services/safeshareLegacy.d.ts +29 -0
  54. package/dist/src/modules/_shared/infrastructure/session-storage/browser-session-storage.d.ts +12 -0
  55. package/dist/src/modules/_shared/infrastructure/utils/context-selector.d.ts +2 -0
  56. package/dist/src/modules/_shared/infrastructure/utils/get-api-url.d.ts +1 -0
  57. package/dist/src/modules/_shared/infrastructure/utils/set-query-params.d.ts +5 -0
  58. package/dist/src/modules/auth/application/use-auth-dispatch.d.ts +1 -0
  59. package/dist/src/modules/auth/application/use-auth-provider.d.ts +4 -0
  60. package/dist/src/modules/auth/application/use-auth-state.d.ts +1 -0
  61. package/dist/src/modules/auth/application/use-client.d.ts +27 -0
  62. package/dist/src/modules/auth/application/use-ensure-connected-client.d.ts +3 -0
  63. package/dist/src/modules/auth/application/use-get-identity.d.ts +36 -0
  64. package/dist/src/modules/auth/application/use-is-logged-in.d.ts +8 -0
  65. package/dist/src/modules/auth/application/use-login-client.d.ts +6 -0
  66. package/dist/src/modules/auth/application/use-logout-client.d.ts +5 -0
  67. package/dist/src/modules/auth/domain/contexts/auth-provider-context.d.ts +2 -0
  68. package/dist/src/modules/auth/domain/models/auth-credentials.d.ts +3 -0
  69. package/dist/src/modules/auth/domain/models/user-identity.d.ts +28 -0
  70. package/dist/src/modules/auth/domain/services/auth-provider.d.ts +16 -0
  71. package/dist/src/modules/auth/index.d.ts +6 -0
  72. package/dist/src/modules/auth/infrastructure/providers/app-auth-provider.d.ts +30 -0
  73. package/dist/src/modules/auth/infrastructure/providers/app-identity-service.d.ts +9 -0
  74. package/dist/src/modules/auth/infrastructure/providers/auth-constants.d.ts +6 -0
  75. package/dist/src/modules/beneficiary/domain/models/beneficiary-device.d.ts +28 -0
  76. package/dist/src/modules/beneficiary/domain/models/beneficiary-relation.d.ts +13 -0
  77. package/dist/src/modules/beneficiary/domain/models/beneficiary-type.d.ts +16 -0
  78. package/dist/src/modules/beneficiary/domain/models/beneficiary.d.ts +54 -0
  79. package/dist/src/modules/beneficiary/index.d.ts +1 -0
  80. package/dist/src/modules/beneficiary/infrastructure/mappers/beneficiary-mapper.d.ts +6 -0
  81. package/dist/src/modules/protection-plan/application/configuration-process/blockchain/use-create-smart-contract.d.ts +9 -0
  82. package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/creation/use-create-backup-shares.d.ts +6 -0
  83. package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/creation/use-create-cold-shares.d.ts +6 -0
  84. package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/creation/use-create-mobile-shares.d.ts +6 -0
  85. package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/creation/use-create-validator-shares.d.ts +6 -0
  86. package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/distribution/use-distribute-backup-shares.d.ts +9 -0
  87. package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/distribution/use-distribute-cold-share.d.ts +8 -0
  88. package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/distribution/use-distribute-mobile-shares.d.ts +9 -0
  89. package/dist/src/modules/protection-plan/application/configuration-process/plan-shares/distribution/use-distribute-validator-shares.d.ts +9 -0
  90. package/dist/src/modules/protection-plan/application/configuration-process/use-configure-plan.d.ts +12 -0
  91. package/dist/src/modules/protection-plan/application/configuration-process/use-delete-plan-configuration-process.d.ts +8 -0
  92. package/dist/src/modules/protection-plan/application/configuration-process/use-get-plan-configuration-process.d.ts +12 -0
  93. package/dist/src/modules/protection-plan/application/configuration-process/use-save-plan-creation-process.d.ts +9 -0
  94. package/dist/src/modules/protection-plan/application/creation/use-create-protection-plan.d.ts +24 -0
  95. package/dist/src/modules/protection-plan/application/creation/use-get-available-plan-triggers.d.ts +3 -0
  96. package/dist/src/modules/protection-plan/application/creation/use-get-protection-plan-security-level.d.ts +47 -0
  97. package/dist/src/modules/protection-plan/application/creation/use-persist-protection-plan.d.ts +10 -0
  98. package/dist/src/modules/protection-plan/application/listing/use-find-protection-plan-summary-by-criteria.d.ts +13 -0
  99. package/dist/src/modules/protection-plan/application/listing/use-find-protection-plans-by-criteria.d.ts +15 -0
  100. package/dist/src/modules/protection-plan/application/listing/use-get-protection-plan-summary.d.ts +13 -0
  101. package/dist/src/modules/protection-plan/application/listing/use-is-merge-authority-mode.d.ts +3 -0
  102. package/dist/src/modules/protection-plan/application/listing/use-protection-plan-listener.d.ts +25 -0
  103. package/dist/src/modules/protection-plan/application/merging-process/merge-authority/use-authorize-merge-authority.d.ts +13 -0
  104. package/dist/src/modules/protection-plan/application/merging-process/merge-authority/use-get-merge-authority-protection-plan.d.ts +12 -0
  105. package/dist/src/modules/protection-plan/application/merging-process/merge-authority/use-merge-authority-merge-process-events.d.ts +6 -0
  106. package/dist/src/modules/protection-plan/application/merging-process/merge-triggers/use-retry-active-merge-trigger.d.ts +10 -0
  107. package/dist/src/modules/protection-plan/application/merging-process/merge-triggers/use-validate-merge-trigger.d.ts +12 -0
  108. package/dist/src/modules/protection-plan/application/merging-process/plan-shares/collection/use-collect-backup-shares.d.ts +9 -0
  109. package/dist/src/modules/protection-plan/application/merging-process/plan-shares/collection/use-collect-cold-share.d.ts +8 -0
  110. package/dist/src/modules/protection-plan/application/merging-process/plan-shares/collection/use-collect-mobile-shares.d.ts +5 -0
  111. package/dist/src/modules/protection-plan/application/merging-process/plan-shares/collection/use-collect-released-mobile-shares.d.ts +9 -0
  112. package/dist/src/modules/protection-plan/application/merging-process/plan-shares/collection/use-collect-validator-shares.d.ts +9 -0
  113. package/dist/src/modules/protection-plan/application/merging-process/plan-shares/use-check-can-collect-shares.d.ts +2 -0
  114. package/dist/src/modules/protection-plan/application/merging-process/plan-shares/use-save-release-mobile-share-request.d.ts +11 -0
  115. package/dist/src/modules/protection-plan/application/merging-process/plan-shares/use-send-plan-share-merge-status-event.d.ts +15 -0
  116. package/dist/src/modules/protection-plan/application/merging-process/plan-shares/use-send-plan-shares-merged.d.ts +10 -0
  117. package/dist/src/modules/protection-plan/application/merging-process/use-close-protection-plan.d.ts +10 -0
  118. package/dist/src/modules/protection-plan/application/merging-process/use-create-merging-process.d.ts +9 -0
  119. package/dist/src/modules/protection-plan/application/merging-process/use-delete-merging-process-by-criteria.d.ts +11 -0
  120. package/dist/src/modules/protection-plan/application/merging-process/use-delete-merging-process.d.ts +10 -0
  121. package/dist/src/modules/protection-plan/application/merging-process/use-get-merging-process-by-plan.d.ts +23 -0
  122. package/dist/src/modules/protection-plan/application/merging-process/use-merge-plan-beneficiary-selection.d.ts +27 -0
  123. package/dist/src/modules/protection-plan/application/merging-process/use-persist-merge-process.d.ts +12 -0
  124. package/dist/src/modules/protection-plan/application/merging-process/use-reveal-plan-data.d.ts +13 -0
  125. package/dist/src/modules/protection-plan/application/merging-process/use-save-merging-process.d.ts +9 -0
  126. package/dist/src/modules/protection-plan/application/merging-process/use-scan-plans-from-merge-authority-device.d.ts +10 -0
  127. package/dist/src/modules/protection-plan/application/merging-process/use-shareholder-merge-process-events.d.ts +2 -0
  128. package/dist/src/modules/protection-plan/domain/dto/plan-dto.d.ts +68 -0
  129. package/dist/src/modules/protection-plan/domain/dto/protection-plan-input.d.ts +173 -0
  130. package/dist/src/modules/protection-plan/domain/models/app-process.d.ts +29 -0
  131. package/dist/src/modules/protection-plan/domain/models/backup/backup-plan.d.ts +18 -0
  132. package/dist/src/modules/protection-plan/domain/models/backup/backup-shareholder.d.ts +9 -0
  133. package/dist/src/modules/protection-plan/domain/models/client/protection-plan-summary.d.ts +218 -0
  134. package/dist/src/modules/protection-plan/domain/models/data-asset.d.ts +113 -0
  135. package/dist/src/modules/protection-plan/domain/models/device-share-info.d.ts +10 -0
  136. package/dist/src/modules/protection-plan/domain/models/inheritance/heir.d.ts +9 -0
  137. package/dist/src/modules/protection-plan/domain/models/inheritance/inheritance-plan.d.ts +16 -0
  138. package/dist/src/modules/protection-plan/domain/models/merging-process/active-merge-process.d.ts +15 -0
  139. package/dist/src/modules/protection-plan/domain/models/merging-process/merging-process.d.ts +135 -0
  140. package/dist/src/modules/protection-plan/domain/models/plan-creation-proccess/plan-creation-process.d.ts +69 -0
  141. package/dist/src/modules/protection-plan/domain/models/plan-share.d.ts +69 -0
  142. package/dist/src/modules/protection-plan/domain/models/proccess-step.d.ts +21 -0
  143. package/dist/src/modules/protection-plan/domain/models/protection-plan-details.d.ts +70 -0
  144. package/dist/src/modules/protection-plan/domain/models/protection-plan-passphrase.d.ts +18 -0
  145. package/dist/src/modules/protection-plan/domain/models/protection-plan.d.ts +238 -0
  146. package/dist/src/modules/protection-plan/domain/models/shareholder.d.ts +32 -0
  147. package/dist/src/modules/protection-plan/domain/models/storage-option.d.ts +29 -0
  148. package/dist/src/modules/protection-plan/domain/models/trigger-settings-info.d.ts +6 -0
  149. package/dist/src/modules/protection-plan/domain/models/trigger.d.ts +46 -0
  150. package/dist/src/modules/protection-plan/domain/repositories/merge-authority-protection-plan-repository.d.ts +13 -0
  151. package/dist/src/modules/protection-plan/domain/repositories/merging-process-repository.d.ts +62 -0
  152. package/dist/src/modules/protection-plan/domain/repositories/plan-creation-repository.d.ts +7 -0
  153. package/dist/src/modules/protection-plan/domain/repositories/plan-security-repository.d.ts +7 -0
  154. package/dist/src/modules/protection-plan/domain/repositories/plan-triggers-repository.d.ts +4 -0
  155. package/dist/src/modules/protection-plan/domain/repositories/protection-plan-repository.d.ts +24 -0
  156. package/dist/src/modules/protection-plan/domain/services/blockchain-service.d.ts +32 -0
  157. package/dist/src/modules/protection-plan/domain/services/input-validation/PlanTypeInputValidator.d.ts +4 -0
  158. package/dist/src/modules/protection-plan/domain/services/input-validation/plan-beneficiaries-input-validator.d.ts +240 -0
  159. package/dist/src/modules/protection-plan/domain/services/input-validation/plan-data-assets-input-validator.d.ts +1108 -0
  160. package/dist/src/modules/protection-plan/domain/services/input-validation/plan-details-input-validator.d.ts +23 -0
  161. package/dist/src/modules/protection-plan/domain/services/input-validation/plan-shares-configuration-input-validator.d.ts +13 -0
  162. package/dist/src/modules/protection-plan/domain/services/input-validation/plan-storage-configuration-input-validator.d.ts +25 -0
  163. package/dist/src/modules/protection-plan/domain/services/input-validation/plan-triggers-input-validator.d.ts +105 -0
  164. package/dist/src/modules/protection-plan/domain/services/input-validation/utils/index.d.ts +3 -0
  165. package/dist/src/modules/protection-plan/domain/services/merge-authorization-handler.d.ts +14 -0
  166. package/dist/src/modules/protection-plan/domain/services/merge-process-event-listener.d.ts +14 -0
  167. package/dist/src/modules/protection-plan/domain/services/plan-data-assets-manager.d.ts +69 -0
  168. package/dist/src/modules/protection-plan/domain/services/plan-data-revealer.d.ts +5 -0
  169. package/dist/src/modules/protection-plan/domain/services/plan-event-listener.d.ts +10 -0
  170. package/dist/src/modules/protection-plan/domain/services/plan-merge-threshold-range-calculator.d.ts +8 -0
  171. package/dist/src/modules/protection-plan/domain/services/plan-recovery-shares-range-calculator.d.ts +8 -0
  172. package/dist/src/modules/protection-plan/domain/services/plan-shares-generator.d.ts +18 -0
  173. package/dist/src/modules/protection-plan/domain/services/vault-service.d.ts +10 -0
  174. package/dist/src/modules/protection-plan/domain/utils/plan-details-mapper.d.ts +12 -0
  175. package/dist/src/modules/protection-plan/domain/utils/plan-shares-details-mapper.d.ts +10 -0
  176. package/dist/src/modules/protection-plan/domain/utils/plan-triggers-details-mapper.d.ts +5 -0
  177. package/dist/src/modules/protection-plan/domain/utils/protection-plan-internal-mapper.d.ts +5 -0
  178. package/dist/src/modules/protection-plan/index.d.ts +28 -0
  179. package/dist/src/modules/protection-plan/infrastructure/mappers/backup-shareholder-mapper.d.ts +7 -0
  180. package/dist/src/modules/protection-plan/infrastructure/mappers/draft-protection-plan-mapper.d.ts +8 -0
  181. package/dist/src/modules/protection-plan/infrastructure/mappers/heir-mapper.d.ts +7 -0
  182. package/dist/src/modules/protection-plan/infrastructure/mappers/merging-process-mapper.d.ts +5 -0
  183. package/dist/src/modules/protection-plan/infrastructure/mappers/plan-creation-mapper.d.ts +5 -0
  184. package/dist/src/modules/protection-plan/infrastructure/mappers/protection-plan-filters-mapper.d.ts +4 -0
  185. package/dist/src/modules/protection-plan/infrastructure/mappers/protection-plan-mapper.d.ts +10 -0
  186. package/dist/src/modules/protection-plan/infrastructure/repositories/app-merging-process-repository.d.ts +65 -0
  187. package/dist/src/modules/protection-plan/infrastructure/repositories/app-plan-creation-repository.d.ts +12 -0
  188. package/dist/src/modules/protection-plan/infrastructure/repositories/app-plan-security-repository.d.ts +11 -0
  189. package/dist/src/modules/protection-plan/infrastructure/repositories/app-plan-triggers-repository.d.ts +10 -0
  190. package/dist/src/modules/protection-plan/infrastructure/repositories/protection-plan/app-merge-authority-protection-plan-repository.d.ts +17 -0
  191. package/dist/src/modules/protection-plan/infrastructure/repositories/protection-plan/app-protection-plan-repository.d.ts +13 -0
  192. package/dist/src/modules/protection-plan/infrastructure/services/app-blockchain-service.d.ts +42 -0
  193. package/dist/src/modules/protection-plan/infrastructure/services/app-plan-data-revealer.d.ts +14 -0
  194. package/dist/src/modules/protection-plan/infrastructure/services/app-plan-shares-generator.d.ts +5 -0
  195. package/dist/src/modules/protection-plan/infrastructure/services/constants/device-constants.d.ts +1 -0
  196. package/dist/src/modules/protection-plan/infrastructure/services/inheriti-vault-service.d.ts +15 -0
  197. package/dist/src/modules/protection-plan/infrastructure/services/socket-io-merge-authorization-handler.d.ts +17 -0
  198. package/dist/src/modules/protection-plan/infrastructure/services/socket-io-merge-process-event-listener.d.ts +14 -0
  199. package/dist/src/modules/protection-plan/infrastructure/services/socket-io-plan-event-listener.d.ts +14 -0
  200. package/dist/src/modules/protection-plan/ui/plan-creation-process/hooks/use-distribute-cold-shares-process.d.ts +15 -0
  201. package/dist/src/modules/protection-plan/ui/plan-creation-process/hooks/use-get-active-plan-configuration-process.d.ts +11 -0
  202. package/dist/src/modules/protection-plan/ui/plan-creation-process/hooks/use-plan-configuration-process-steps.d.ts +16 -0
  203. package/dist/src/modules/protection-plan/ui/plan-creation-process/hooks/use-plan-configuration-process.d.ts +25 -0
  204. package/dist/src/modules/protection-plan/ui/plan-creation-process/hooks/use-start-protection-plan-configuration-process.d.ts +10 -0
  205. package/dist/src/modules/protection-plan/ui/plan-creation-process/view-models/plan-configuration-process-view.d.ts +55 -0
  206. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/merge-athority/use-merge-authority-sk-mobile-plan-detection.d.ts +13 -0
  207. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/merge-athority/use-merge-authority-sk-pro-plan-detection.d.ts +12 -0
  208. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-abort-merge-process.d.ts +6 -0
  209. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-active-merge-process-listener.d.ts +9 -0
  210. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-collect-plan-cold-share-process.d.ts +13 -0
  211. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-count-down.d.ts +7 -0
  212. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-initialize-merging-process.d.ts +21 -0
  213. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-merge-process-controller.d.ts +13 -0
  214. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-merge-process-release-shares-controller.d.ts +9 -0
  215. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-plan-merge-process.d.ts +55 -0
  216. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-process-plan-merge-steps.d.ts +11 -0
  217. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-reveal-data-controller.d.ts +26 -0
  218. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-start-merge-process.d.ts +20 -0
  219. package/dist/src/modules/protection-plan/ui/plan-merge-process/hooks/use-trigger-countdown.d.ts +18 -0
  220. package/dist/src/modules/protection-plan/ui/plan-merge-process/utils/merge-process-utils.d.ts +3 -0
  221. package/dist/src/modules/protection-plan/ui/plan-merge-process/view-models/plan-merge-process-view.d.ts +173 -0
  222. package/dist/src/modules/protection-plan/ui/protection-plan/utils/plan-beneficiary-builder.d.ts +12 -0
  223. package/dist/src/modules/protection-plan/ui/protection-plan/utils/plan-data-asset-builder.d.ts +35 -0
  224. package/dist/src/modules/protection-plan/ui/protection-plan/utils/protection-plan-code.d.ts +7 -0
  225. package/dist/src/modules/protection-plan/ui/protection-plan/utils/protection-plan-id.d.ts +7 -0
  226. package/dist/src/modules/protection-plan/ui/protection-plan/utils/trigger-builder.d.ts +24 -0
  227. package/dist/src/modules/safekey/application/use-connect-safekey-pro-device.d.ts +10 -0
  228. package/dist/src/modules/safekey/application/use-disconnect-safekey-device.d.ts +8 -0
  229. package/dist/src/modules/safekey/application/use-safekey-device.d.ts +16 -0
  230. package/dist/src/modules/safekey/application/use-validate-safekey-device-pin.d.ts +12 -0
  231. package/dist/src/modules/safekey/domain/services/cold-storage-service.d.ts +55 -0
  232. package/dist/src/modules/safekey/index.d.ts +4 -0
  233. package/dist/src/modules/safekey/infrastructure/services/safekey-cold-storage-service.d.ts +45 -0
  234. package/dist/src/modules/safekey/infrastructure/services/safekey-service.d.ts +9 -0
  235. package/dist/test/index.js +14 -0
  236. package/dist/tests/modules/_shared/domain/models/FinancialMother.d.ts +11 -0
  237. package/dist/tests/modules/_shared/domain/models/date-mother.d.ts +6 -0
  238. package/dist/tests/modules/_shared/domain/models/email-mother.d.ts +3 -0
  239. package/dist/tests/modules/_shared/domain/models/id-mother.d.ts +3 -0
  240. package/dist/tests/modules/_shared/domain/models/internet-mother.d.ts +11 -0
  241. package/dist/tests/modules/_shared/domain/models/mother-creator.d.ts +3 -0
  242. package/dist/tests/modules/_shared/domain/models/name-mother.d.ts +5 -0
  243. package/dist/tests/modules/_shared/domain/models/number-mother.d.ts +7 -0
  244. package/dist/tests/modules/_shared/domain/models/random-element-picker-mother.d.ts +3 -0
  245. package/dist/tests/modules/_shared/domain/models/uuid-mother.d.ts +3 -0
  246. package/dist/tests/modules/_shared/domain/models/word-mother.d.ts +5 -0
  247. package/dist/tests/modules/index.d.ts +6 -0
  248. package/dist/tests/modules/protection-plan/domain/plan-beneficiary-input-generator.d.ts +18 -0
  249. package/dist/tests/modules/protection-plan/domain/plan-data-asset-input-generator.d.ts +13 -0
  250. package/dist/tests/modules/protection-plan/domain/plan-details-input-generator.d.ts +7 -0
  251. package/dist/tests/modules/protection-plan/domain/plan-shares-configuration-input-generator.d.ts +20 -0
  252. package/dist/tests/modules/protection-plan/domain/plan-storage-configuration-input-generator.d.ts +4 -0
  253. package/dist/tests/modules/protection-plan/domain/plan-trigger-input-generator.d.ts +27 -0
  254. package/dist/tests/modules/protection-plan/domain/protection-plan-input-generator.d.ts +4 -0
  255. package/dist/tests/modules/protection-plan/index.d.ts +8 -0
  256. package/index.ts +6 -0
  257. package/package.json +78 -0
@@ -0,0 +1,1108 @@
1
+ import { z } from 'zod';
2
+ import { DataAsset } from '../../../../protection-plan';
3
+ export declare const DataAssetSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4
+ id: z.ZodOptional<z.ZodString>;
5
+ type: z.ZodLiteral<"PLAIN-TEXT">;
6
+ meta: z.ZodObject<{
7
+ name: z.ZodString;
8
+ notes: z.ZodOptional<z.ZodString>;
9
+ }, "strip", z.ZodTypeAny, {
10
+ name: string;
11
+ notes?: string | undefined;
12
+ }, {
13
+ name: string;
14
+ notes?: string | undefined;
15
+ }>;
16
+ secret: z.ZodEffects<z.ZodObject<{
17
+ text: z.ZodOptional<z.ZodString>;
18
+ }, "strip", z.ZodTypeAny, {
19
+ text?: string | undefined;
20
+ }, {
21
+ text?: string | undefined;
22
+ }>, {
23
+ text?: string | undefined;
24
+ }, {
25
+ text?: string | undefined;
26
+ }>;
27
+ }, "strip", z.ZodTypeAny, {
28
+ type: "PLAIN-TEXT";
29
+ secret: {
30
+ text?: string | undefined;
31
+ };
32
+ meta: {
33
+ name: string;
34
+ notes?: string | undefined;
35
+ };
36
+ id?: string | undefined;
37
+ }, {
38
+ type: "PLAIN-TEXT";
39
+ secret: {
40
+ text?: string | undefined;
41
+ };
42
+ meta: {
43
+ name: string;
44
+ notes?: string | undefined;
45
+ };
46
+ id?: string | undefined;
47
+ }>, z.ZodObject<{
48
+ id: z.ZodOptional<z.ZodString>;
49
+ type: z.ZodLiteral<"ONLINE-ACCOUNT">;
50
+ meta: z.ZodObject<{
51
+ name: z.ZodString;
52
+ notes: z.ZodOptional<z.ZodString>;
53
+ }, "strip", z.ZodTypeAny, {
54
+ name: string;
55
+ notes?: string | undefined;
56
+ }, {
57
+ name: string;
58
+ notes?: string | undefined;
59
+ }>;
60
+ secret: z.ZodEffects<z.ZodObject<{
61
+ appOrWebsite: z.ZodOptional<z.ZodString>;
62
+ email: z.ZodOptional<z.ZodString>;
63
+ username: z.ZodOptional<z.ZodString>;
64
+ password: z.ZodOptional<z.ZodString>;
65
+ }, "strip", z.ZodTypeAny, {
66
+ email?: string | undefined;
67
+ appOrWebsite?: string | undefined;
68
+ username?: string | undefined;
69
+ password?: string | undefined;
70
+ }, {
71
+ email?: string | undefined;
72
+ appOrWebsite?: string | undefined;
73
+ username?: string | undefined;
74
+ password?: string | undefined;
75
+ }>, {
76
+ email?: string | undefined;
77
+ appOrWebsite?: string | undefined;
78
+ username?: string | undefined;
79
+ password?: string | undefined;
80
+ }, {
81
+ email?: string | undefined;
82
+ appOrWebsite?: string | undefined;
83
+ username?: string | undefined;
84
+ password?: string | undefined;
85
+ }>;
86
+ }, "strip", z.ZodTypeAny, {
87
+ type: "ONLINE-ACCOUNT";
88
+ secret: {
89
+ email?: string | undefined;
90
+ appOrWebsite?: string | undefined;
91
+ username?: string | undefined;
92
+ password?: string | undefined;
93
+ };
94
+ meta: {
95
+ name: string;
96
+ notes?: string | undefined;
97
+ };
98
+ id?: string | undefined;
99
+ }, {
100
+ type: "ONLINE-ACCOUNT";
101
+ secret: {
102
+ email?: string | undefined;
103
+ appOrWebsite?: string | undefined;
104
+ username?: string | undefined;
105
+ password?: string | undefined;
106
+ };
107
+ meta: {
108
+ name: string;
109
+ notes?: string | undefined;
110
+ };
111
+ id?: string | undefined;
112
+ }>, z.ZodObject<{
113
+ id: z.ZodOptional<z.ZodString>;
114
+ type: z.ZodLiteral<"RECOVERY-CODE">;
115
+ meta: z.ZodObject<{
116
+ name: z.ZodString;
117
+ notes: z.ZodOptional<z.ZodString>;
118
+ }, "strip", z.ZodTypeAny, {
119
+ name: string;
120
+ notes?: string | undefined;
121
+ }, {
122
+ name: string;
123
+ notes?: string | undefined;
124
+ }>;
125
+ secret: z.ZodEffects<z.ZodObject<{
126
+ appOrWebsite: z.ZodOptional<z.ZodString>;
127
+ code: z.ZodOptional<z.ZodString>;
128
+ }, "strip", z.ZodTypeAny, {
129
+ code?: string | undefined;
130
+ appOrWebsite?: string | undefined;
131
+ }, {
132
+ code?: string | undefined;
133
+ appOrWebsite?: string | undefined;
134
+ }>, {
135
+ code?: string | undefined;
136
+ appOrWebsite?: string | undefined;
137
+ }, {
138
+ code?: string | undefined;
139
+ appOrWebsite?: string | undefined;
140
+ }>;
141
+ }, "strip", z.ZodTypeAny, {
142
+ type: "RECOVERY-CODE";
143
+ secret: {
144
+ code?: string | undefined;
145
+ appOrWebsite?: string | undefined;
146
+ };
147
+ meta: {
148
+ name: string;
149
+ notes?: string | undefined;
150
+ };
151
+ id?: string | undefined;
152
+ }, {
153
+ type: "RECOVERY-CODE";
154
+ secret: {
155
+ code?: string | undefined;
156
+ appOrWebsite?: string | undefined;
157
+ };
158
+ meta: {
159
+ name: string;
160
+ notes?: string | undefined;
161
+ };
162
+ id?: string | undefined;
163
+ }>, z.ZodObject<{
164
+ id: z.ZodOptional<z.ZodString>;
165
+ type: z.ZodLiteral<"PIN-CODE">;
166
+ meta: z.ZodObject<{
167
+ name: z.ZodString;
168
+ notes: z.ZodOptional<z.ZodString>;
169
+ }, "strip", z.ZodTypeAny, {
170
+ name: string;
171
+ notes?: string | undefined;
172
+ }, {
173
+ name: string;
174
+ notes?: string | undefined;
175
+ }>;
176
+ secret: z.ZodEffects<z.ZodObject<{
177
+ deviceOrApp: z.ZodOptional<z.ZodString>;
178
+ code: z.ZodOptional<z.ZodString>;
179
+ }, "strip", z.ZodTypeAny, {
180
+ code?: string | undefined;
181
+ deviceOrApp?: string | undefined;
182
+ }, {
183
+ code?: string | undefined;
184
+ deviceOrApp?: string | undefined;
185
+ }>, {
186
+ code?: string | undefined;
187
+ deviceOrApp?: string | undefined;
188
+ }, {
189
+ code?: string | undefined;
190
+ deviceOrApp?: string | undefined;
191
+ }>;
192
+ }, "strip", z.ZodTypeAny, {
193
+ type: "PIN-CODE";
194
+ secret: {
195
+ code?: string | undefined;
196
+ deviceOrApp?: string | undefined;
197
+ };
198
+ meta: {
199
+ name: string;
200
+ notes?: string | undefined;
201
+ };
202
+ id?: string | undefined;
203
+ }, {
204
+ type: "PIN-CODE";
205
+ secret: {
206
+ code?: string | undefined;
207
+ deviceOrApp?: string | undefined;
208
+ };
209
+ meta: {
210
+ name: string;
211
+ notes?: string | undefined;
212
+ };
213
+ id?: string | undefined;
214
+ }>, z.ZodObject<{
215
+ id: z.ZodOptional<z.ZodString>;
216
+ type: z.ZodLiteral<"API-KEY">;
217
+ meta: z.ZodObject<{
218
+ name: z.ZodString;
219
+ notes: z.ZodOptional<z.ZodString>;
220
+ }, "strip", z.ZodTypeAny, {
221
+ name: string;
222
+ notes?: string | undefined;
223
+ }, {
224
+ name: string;
225
+ notes?: string | undefined;
226
+ }>;
227
+ secret: z.ZodEffects<z.ZodObject<{
228
+ app: z.ZodOptional<z.ZodString>;
229
+ apiKey: z.ZodOptional<z.ZodString>;
230
+ }, "strip", z.ZodTypeAny, {
231
+ app?: string | undefined;
232
+ apiKey?: string | undefined;
233
+ }, {
234
+ app?: string | undefined;
235
+ apiKey?: string | undefined;
236
+ }>, {
237
+ app?: string | undefined;
238
+ apiKey?: string | undefined;
239
+ }, {
240
+ app?: string | undefined;
241
+ apiKey?: string | undefined;
242
+ }>;
243
+ }, "strip", z.ZodTypeAny, {
244
+ type: "API-KEY";
245
+ secret: {
246
+ app?: string | undefined;
247
+ apiKey?: string | undefined;
248
+ };
249
+ meta: {
250
+ name: string;
251
+ notes?: string | undefined;
252
+ };
253
+ id?: string | undefined;
254
+ }, {
255
+ type: "API-KEY";
256
+ secret: {
257
+ app?: string | undefined;
258
+ apiKey?: string | undefined;
259
+ };
260
+ meta: {
261
+ name: string;
262
+ notes?: string | undefined;
263
+ };
264
+ id?: string | undefined;
265
+ }>, z.ZodObject<{
266
+ id: z.ZodOptional<z.ZodString>;
267
+ type: z.ZodLiteral<"PRIVATE-KEY">;
268
+ meta: z.ZodObject<{
269
+ name: z.ZodString;
270
+ notes: z.ZodOptional<z.ZodString>;
271
+ }, "strip", z.ZodTypeAny, {
272
+ name: string;
273
+ notes?: string | undefined;
274
+ }, {
275
+ name: string;
276
+ notes?: string | undefined;
277
+ }>;
278
+ secret: z.ZodEffects<z.ZodObject<{
279
+ publicAddress: z.ZodOptional<z.ZodString>;
280
+ privateKey: z.ZodOptional<z.ZodString>;
281
+ }, "strip", z.ZodTypeAny, {
282
+ publicAddress?: string | undefined;
283
+ privateKey?: string | undefined;
284
+ }, {
285
+ publicAddress?: string | undefined;
286
+ privateKey?: string | undefined;
287
+ }>, {
288
+ publicAddress?: string | undefined;
289
+ privateKey?: string | undefined;
290
+ }, {
291
+ publicAddress?: string | undefined;
292
+ privateKey?: string | undefined;
293
+ }>;
294
+ }, "strip", z.ZodTypeAny, {
295
+ type: "PRIVATE-KEY";
296
+ secret: {
297
+ publicAddress?: string | undefined;
298
+ privateKey?: string | undefined;
299
+ };
300
+ meta: {
301
+ name: string;
302
+ notes?: string | undefined;
303
+ };
304
+ id?: string | undefined;
305
+ }, {
306
+ type: "PRIVATE-KEY";
307
+ secret: {
308
+ publicAddress?: string | undefined;
309
+ privateKey?: string | undefined;
310
+ };
311
+ meta: {
312
+ name: string;
313
+ notes?: string | undefined;
314
+ };
315
+ id?: string | undefined;
316
+ }>, z.ZodObject<{
317
+ id: z.ZodOptional<z.ZodString>;
318
+ type: z.ZodLiteral<"SEED-PHRASE">;
319
+ meta: z.ZodObject<{
320
+ name: z.ZodString;
321
+ notes: z.ZodOptional<z.ZodString>;
322
+ }, "strip", z.ZodTypeAny, {
323
+ name: string;
324
+ notes?: string | undefined;
325
+ }, {
326
+ name: string;
327
+ notes?: string | undefined;
328
+ }>;
329
+ secret: z.ZodEffects<z.ZodObject<{
330
+ words: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
331
+ }, "strip", z.ZodTypeAny, {
332
+ words?: string[] | undefined;
333
+ }, {
334
+ words?: string[] | undefined;
335
+ }>, {
336
+ words?: string[] | undefined;
337
+ }, {
338
+ words?: string[] | undefined;
339
+ }>;
340
+ }, "strip", z.ZodTypeAny, {
341
+ type: "SEED-PHRASE";
342
+ secret: {
343
+ words?: string[] | undefined;
344
+ };
345
+ meta: {
346
+ name: string;
347
+ notes?: string | undefined;
348
+ };
349
+ id?: string | undefined;
350
+ }, {
351
+ type: "SEED-PHRASE";
352
+ secret: {
353
+ words?: string[] | undefined;
354
+ };
355
+ meta: {
356
+ name: string;
357
+ notes?: string | undefined;
358
+ };
359
+ id?: string | undefined;
360
+ }>, z.ZodObject<{
361
+ id: z.ZodOptional<z.ZodString>;
362
+ type: z.ZodLiteral<"PAYMENT-DEBIT-CARD">;
363
+ meta: z.ZodObject<{
364
+ name: z.ZodString;
365
+ notes: z.ZodOptional<z.ZodString>;
366
+ }, "strip", z.ZodTypeAny, {
367
+ name: string;
368
+ notes?: string | undefined;
369
+ }, {
370
+ name: string;
371
+ notes?: string | undefined;
372
+ }>;
373
+ secret: z.ZodEffects<z.ZodObject<{
374
+ cardNumber: z.ZodOptional<z.ZodString>;
375
+ bank: z.ZodOptional<z.ZodString>;
376
+ accountNumber: z.ZodOptional<z.ZodString>;
377
+ cardHolderName: z.ZodOptional<z.ZodString>;
378
+ expiryDate: z.ZodOptional<z.ZodString>;
379
+ pinCode: z.ZodOptional<z.ZodString>;
380
+ code: z.ZodOptional<z.ZodString>;
381
+ clientId: z.ZodOptional<z.ZodString>;
382
+ }, "strip", z.ZodTypeAny, {
383
+ code?: string | undefined;
384
+ clientId?: string | undefined;
385
+ cardNumber?: string | undefined;
386
+ bank?: string | undefined;
387
+ accountNumber?: string | undefined;
388
+ cardHolderName?: string | undefined;
389
+ expiryDate?: string | undefined;
390
+ pinCode?: string | undefined;
391
+ }, {
392
+ code?: string | undefined;
393
+ clientId?: string | undefined;
394
+ cardNumber?: string | undefined;
395
+ bank?: string | undefined;
396
+ accountNumber?: string | undefined;
397
+ cardHolderName?: string | undefined;
398
+ expiryDate?: string | undefined;
399
+ pinCode?: string | undefined;
400
+ }>, {
401
+ code?: string | undefined;
402
+ clientId?: string | undefined;
403
+ cardNumber?: string | undefined;
404
+ bank?: string | undefined;
405
+ accountNumber?: string | undefined;
406
+ cardHolderName?: string | undefined;
407
+ expiryDate?: string | undefined;
408
+ pinCode?: string | undefined;
409
+ }, {
410
+ code?: string | undefined;
411
+ clientId?: string | undefined;
412
+ cardNumber?: string | undefined;
413
+ bank?: string | undefined;
414
+ accountNumber?: string | undefined;
415
+ cardHolderName?: string | undefined;
416
+ expiryDate?: string | undefined;
417
+ pinCode?: string | undefined;
418
+ }>;
419
+ }, "strip", z.ZodTypeAny, {
420
+ type: "PAYMENT-DEBIT-CARD";
421
+ secret: {
422
+ code?: string | undefined;
423
+ clientId?: string | undefined;
424
+ cardNumber?: string | undefined;
425
+ bank?: string | undefined;
426
+ accountNumber?: string | undefined;
427
+ cardHolderName?: string | undefined;
428
+ expiryDate?: string | undefined;
429
+ pinCode?: string | undefined;
430
+ };
431
+ meta: {
432
+ name: string;
433
+ notes?: string | undefined;
434
+ };
435
+ id?: string | undefined;
436
+ }, {
437
+ type: "PAYMENT-DEBIT-CARD";
438
+ secret: {
439
+ code?: string | undefined;
440
+ clientId?: string | undefined;
441
+ cardNumber?: string | undefined;
442
+ bank?: string | undefined;
443
+ accountNumber?: string | undefined;
444
+ cardHolderName?: string | undefined;
445
+ expiryDate?: string | undefined;
446
+ pinCode?: string | undefined;
447
+ };
448
+ meta: {
449
+ name: string;
450
+ notes?: string | undefined;
451
+ };
452
+ id?: string | undefined;
453
+ }>, z.ZodObject<{
454
+ id: z.ZodOptional<z.ZodString>;
455
+ type: z.ZodLiteral<"PAYMENT-CREDIT-CARD">;
456
+ meta: z.ZodObject<{
457
+ name: z.ZodString;
458
+ notes: z.ZodOptional<z.ZodString>;
459
+ }, "strip", z.ZodTypeAny, {
460
+ name: string;
461
+ notes?: string | undefined;
462
+ }, {
463
+ name: string;
464
+ notes?: string | undefined;
465
+ }>;
466
+ secret: z.ZodEffects<z.ZodObject<{
467
+ cardNumber: z.ZodOptional<z.ZodString>;
468
+ bank: z.ZodOptional<z.ZodString>;
469
+ accountNumber: z.ZodOptional<z.ZodString>;
470
+ cardHolderName: z.ZodOptional<z.ZodString>;
471
+ expiryDate: z.ZodOptional<z.ZodString>;
472
+ pinCode: z.ZodOptional<z.ZodString>;
473
+ code: z.ZodOptional<z.ZodString>;
474
+ clientId: z.ZodOptional<z.ZodString>;
475
+ }, "strip", z.ZodTypeAny, {
476
+ code?: string | undefined;
477
+ clientId?: string | undefined;
478
+ cardNumber?: string | undefined;
479
+ bank?: string | undefined;
480
+ accountNumber?: string | undefined;
481
+ cardHolderName?: string | undefined;
482
+ expiryDate?: string | undefined;
483
+ pinCode?: string | undefined;
484
+ }, {
485
+ code?: string | undefined;
486
+ clientId?: string | undefined;
487
+ cardNumber?: string | undefined;
488
+ bank?: string | undefined;
489
+ accountNumber?: string | undefined;
490
+ cardHolderName?: string | undefined;
491
+ expiryDate?: string | undefined;
492
+ pinCode?: string | undefined;
493
+ }>, {
494
+ code?: string | undefined;
495
+ clientId?: string | undefined;
496
+ cardNumber?: string | undefined;
497
+ bank?: string | undefined;
498
+ accountNumber?: string | undefined;
499
+ cardHolderName?: string | undefined;
500
+ expiryDate?: string | undefined;
501
+ pinCode?: string | undefined;
502
+ }, {
503
+ code?: string | undefined;
504
+ clientId?: string | undefined;
505
+ cardNumber?: string | undefined;
506
+ bank?: string | undefined;
507
+ accountNumber?: string | undefined;
508
+ cardHolderName?: string | undefined;
509
+ expiryDate?: string | undefined;
510
+ pinCode?: string | undefined;
511
+ }>;
512
+ }, "strip", z.ZodTypeAny, {
513
+ type: "PAYMENT-CREDIT-CARD";
514
+ secret: {
515
+ code?: string | undefined;
516
+ clientId?: string | undefined;
517
+ cardNumber?: string | undefined;
518
+ bank?: string | undefined;
519
+ accountNumber?: string | undefined;
520
+ cardHolderName?: string | undefined;
521
+ expiryDate?: string | undefined;
522
+ pinCode?: string | undefined;
523
+ };
524
+ meta: {
525
+ name: string;
526
+ notes?: string | undefined;
527
+ };
528
+ id?: string | undefined;
529
+ }, {
530
+ type: "PAYMENT-CREDIT-CARD";
531
+ secret: {
532
+ code?: string | undefined;
533
+ clientId?: string | undefined;
534
+ cardNumber?: string | undefined;
535
+ bank?: string | undefined;
536
+ accountNumber?: string | undefined;
537
+ cardHolderName?: string | undefined;
538
+ expiryDate?: string | undefined;
539
+ pinCode?: string | undefined;
540
+ };
541
+ meta: {
542
+ name: string;
543
+ notes?: string | undefined;
544
+ };
545
+ id?: string | undefined;
546
+ }>]>;
547
+ export declare const DataAssetArraySchema: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
548
+ id: z.ZodOptional<z.ZodString>;
549
+ type: z.ZodLiteral<"PLAIN-TEXT">;
550
+ meta: z.ZodObject<{
551
+ name: z.ZodString;
552
+ notes: z.ZodOptional<z.ZodString>;
553
+ }, "strip", z.ZodTypeAny, {
554
+ name: string;
555
+ notes?: string | undefined;
556
+ }, {
557
+ name: string;
558
+ notes?: string | undefined;
559
+ }>;
560
+ secret: z.ZodEffects<z.ZodObject<{
561
+ text: z.ZodOptional<z.ZodString>;
562
+ }, "strip", z.ZodTypeAny, {
563
+ text?: string | undefined;
564
+ }, {
565
+ text?: string | undefined;
566
+ }>, {
567
+ text?: string | undefined;
568
+ }, {
569
+ text?: string | undefined;
570
+ }>;
571
+ }, "strip", z.ZodTypeAny, {
572
+ type: "PLAIN-TEXT";
573
+ secret: {
574
+ text?: string | undefined;
575
+ };
576
+ meta: {
577
+ name: string;
578
+ notes?: string | undefined;
579
+ };
580
+ id?: string | undefined;
581
+ }, {
582
+ type: "PLAIN-TEXT";
583
+ secret: {
584
+ text?: string | undefined;
585
+ };
586
+ meta: {
587
+ name: string;
588
+ notes?: string | undefined;
589
+ };
590
+ id?: string | undefined;
591
+ }>, z.ZodObject<{
592
+ id: z.ZodOptional<z.ZodString>;
593
+ type: z.ZodLiteral<"ONLINE-ACCOUNT">;
594
+ meta: z.ZodObject<{
595
+ name: z.ZodString;
596
+ notes: z.ZodOptional<z.ZodString>;
597
+ }, "strip", z.ZodTypeAny, {
598
+ name: string;
599
+ notes?: string | undefined;
600
+ }, {
601
+ name: string;
602
+ notes?: string | undefined;
603
+ }>;
604
+ secret: z.ZodEffects<z.ZodObject<{
605
+ appOrWebsite: z.ZodOptional<z.ZodString>;
606
+ email: z.ZodOptional<z.ZodString>;
607
+ username: z.ZodOptional<z.ZodString>;
608
+ password: z.ZodOptional<z.ZodString>;
609
+ }, "strip", z.ZodTypeAny, {
610
+ email?: string | undefined;
611
+ appOrWebsite?: string | undefined;
612
+ username?: string | undefined;
613
+ password?: string | undefined;
614
+ }, {
615
+ email?: string | undefined;
616
+ appOrWebsite?: string | undefined;
617
+ username?: string | undefined;
618
+ password?: string | undefined;
619
+ }>, {
620
+ email?: string | undefined;
621
+ appOrWebsite?: string | undefined;
622
+ username?: string | undefined;
623
+ password?: string | undefined;
624
+ }, {
625
+ email?: string | undefined;
626
+ appOrWebsite?: string | undefined;
627
+ username?: string | undefined;
628
+ password?: string | undefined;
629
+ }>;
630
+ }, "strip", z.ZodTypeAny, {
631
+ type: "ONLINE-ACCOUNT";
632
+ secret: {
633
+ email?: string | undefined;
634
+ appOrWebsite?: string | undefined;
635
+ username?: string | undefined;
636
+ password?: string | undefined;
637
+ };
638
+ meta: {
639
+ name: string;
640
+ notes?: string | undefined;
641
+ };
642
+ id?: string | undefined;
643
+ }, {
644
+ type: "ONLINE-ACCOUNT";
645
+ secret: {
646
+ email?: string | undefined;
647
+ appOrWebsite?: string | undefined;
648
+ username?: string | undefined;
649
+ password?: string | undefined;
650
+ };
651
+ meta: {
652
+ name: string;
653
+ notes?: string | undefined;
654
+ };
655
+ id?: string | undefined;
656
+ }>, z.ZodObject<{
657
+ id: z.ZodOptional<z.ZodString>;
658
+ type: z.ZodLiteral<"RECOVERY-CODE">;
659
+ meta: z.ZodObject<{
660
+ name: z.ZodString;
661
+ notes: z.ZodOptional<z.ZodString>;
662
+ }, "strip", z.ZodTypeAny, {
663
+ name: string;
664
+ notes?: string | undefined;
665
+ }, {
666
+ name: string;
667
+ notes?: string | undefined;
668
+ }>;
669
+ secret: z.ZodEffects<z.ZodObject<{
670
+ appOrWebsite: z.ZodOptional<z.ZodString>;
671
+ code: z.ZodOptional<z.ZodString>;
672
+ }, "strip", z.ZodTypeAny, {
673
+ code?: string | undefined;
674
+ appOrWebsite?: string | undefined;
675
+ }, {
676
+ code?: string | undefined;
677
+ appOrWebsite?: string | undefined;
678
+ }>, {
679
+ code?: string | undefined;
680
+ appOrWebsite?: string | undefined;
681
+ }, {
682
+ code?: string | undefined;
683
+ appOrWebsite?: string | undefined;
684
+ }>;
685
+ }, "strip", z.ZodTypeAny, {
686
+ type: "RECOVERY-CODE";
687
+ secret: {
688
+ code?: string | undefined;
689
+ appOrWebsite?: string | undefined;
690
+ };
691
+ meta: {
692
+ name: string;
693
+ notes?: string | undefined;
694
+ };
695
+ id?: string | undefined;
696
+ }, {
697
+ type: "RECOVERY-CODE";
698
+ secret: {
699
+ code?: string | undefined;
700
+ appOrWebsite?: string | undefined;
701
+ };
702
+ meta: {
703
+ name: string;
704
+ notes?: string | undefined;
705
+ };
706
+ id?: string | undefined;
707
+ }>, z.ZodObject<{
708
+ id: z.ZodOptional<z.ZodString>;
709
+ type: z.ZodLiteral<"PIN-CODE">;
710
+ meta: z.ZodObject<{
711
+ name: z.ZodString;
712
+ notes: z.ZodOptional<z.ZodString>;
713
+ }, "strip", z.ZodTypeAny, {
714
+ name: string;
715
+ notes?: string | undefined;
716
+ }, {
717
+ name: string;
718
+ notes?: string | undefined;
719
+ }>;
720
+ secret: z.ZodEffects<z.ZodObject<{
721
+ deviceOrApp: z.ZodOptional<z.ZodString>;
722
+ code: z.ZodOptional<z.ZodString>;
723
+ }, "strip", z.ZodTypeAny, {
724
+ code?: string | undefined;
725
+ deviceOrApp?: string | undefined;
726
+ }, {
727
+ code?: string | undefined;
728
+ deviceOrApp?: string | undefined;
729
+ }>, {
730
+ code?: string | undefined;
731
+ deviceOrApp?: string | undefined;
732
+ }, {
733
+ code?: string | undefined;
734
+ deviceOrApp?: string | undefined;
735
+ }>;
736
+ }, "strip", z.ZodTypeAny, {
737
+ type: "PIN-CODE";
738
+ secret: {
739
+ code?: string | undefined;
740
+ deviceOrApp?: string | undefined;
741
+ };
742
+ meta: {
743
+ name: string;
744
+ notes?: string | undefined;
745
+ };
746
+ id?: string | undefined;
747
+ }, {
748
+ type: "PIN-CODE";
749
+ secret: {
750
+ code?: string | undefined;
751
+ deviceOrApp?: string | undefined;
752
+ };
753
+ meta: {
754
+ name: string;
755
+ notes?: string | undefined;
756
+ };
757
+ id?: string | undefined;
758
+ }>, z.ZodObject<{
759
+ id: z.ZodOptional<z.ZodString>;
760
+ type: z.ZodLiteral<"API-KEY">;
761
+ meta: z.ZodObject<{
762
+ name: z.ZodString;
763
+ notes: z.ZodOptional<z.ZodString>;
764
+ }, "strip", z.ZodTypeAny, {
765
+ name: string;
766
+ notes?: string | undefined;
767
+ }, {
768
+ name: string;
769
+ notes?: string | undefined;
770
+ }>;
771
+ secret: z.ZodEffects<z.ZodObject<{
772
+ app: z.ZodOptional<z.ZodString>;
773
+ apiKey: z.ZodOptional<z.ZodString>;
774
+ }, "strip", z.ZodTypeAny, {
775
+ app?: string | undefined;
776
+ apiKey?: string | undefined;
777
+ }, {
778
+ app?: string | undefined;
779
+ apiKey?: string | undefined;
780
+ }>, {
781
+ app?: string | undefined;
782
+ apiKey?: string | undefined;
783
+ }, {
784
+ app?: string | undefined;
785
+ apiKey?: string | undefined;
786
+ }>;
787
+ }, "strip", z.ZodTypeAny, {
788
+ type: "API-KEY";
789
+ secret: {
790
+ app?: string | undefined;
791
+ apiKey?: string | undefined;
792
+ };
793
+ meta: {
794
+ name: string;
795
+ notes?: string | undefined;
796
+ };
797
+ id?: string | undefined;
798
+ }, {
799
+ type: "API-KEY";
800
+ secret: {
801
+ app?: string | undefined;
802
+ apiKey?: string | undefined;
803
+ };
804
+ meta: {
805
+ name: string;
806
+ notes?: string | undefined;
807
+ };
808
+ id?: string | undefined;
809
+ }>, z.ZodObject<{
810
+ id: z.ZodOptional<z.ZodString>;
811
+ type: z.ZodLiteral<"PRIVATE-KEY">;
812
+ meta: z.ZodObject<{
813
+ name: z.ZodString;
814
+ notes: z.ZodOptional<z.ZodString>;
815
+ }, "strip", z.ZodTypeAny, {
816
+ name: string;
817
+ notes?: string | undefined;
818
+ }, {
819
+ name: string;
820
+ notes?: string | undefined;
821
+ }>;
822
+ secret: z.ZodEffects<z.ZodObject<{
823
+ publicAddress: z.ZodOptional<z.ZodString>;
824
+ privateKey: z.ZodOptional<z.ZodString>;
825
+ }, "strip", z.ZodTypeAny, {
826
+ publicAddress?: string | undefined;
827
+ privateKey?: string | undefined;
828
+ }, {
829
+ publicAddress?: string | undefined;
830
+ privateKey?: string | undefined;
831
+ }>, {
832
+ publicAddress?: string | undefined;
833
+ privateKey?: string | undefined;
834
+ }, {
835
+ publicAddress?: string | undefined;
836
+ privateKey?: string | undefined;
837
+ }>;
838
+ }, "strip", z.ZodTypeAny, {
839
+ type: "PRIVATE-KEY";
840
+ secret: {
841
+ publicAddress?: string | undefined;
842
+ privateKey?: string | undefined;
843
+ };
844
+ meta: {
845
+ name: string;
846
+ notes?: string | undefined;
847
+ };
848
+ id?: string | undefined;
849
+ }, {
850
+ type: "PRIVATE-KEY";
851
+ secret: {
852
+ publicAddress?: string | undefined;
853
+ privateKey?: string | undefined;
854
+ };
855
+ meta: {
856
+ name: string;
857
+ notes?: string | undefined;
858
+ };
859
+ id?: string | undefined;
860
+ }>, z.ZodObject<{
861
+ id: z.ZodOptional<z.ZodString>;
862
+ type: z.ZodLiteral<"SEED-PHRASE">;
863
+ meta: z.ZodObject<{
864
+ name: z.ZodString;
865
+ notes: z.ZodOptional<z.ZodString>;
866
+ }, "strip", z.ZodTypeAny, {
867
+ name: string;
868
+ notes?: string | undefined;
869
+ }, {
870
+ name: string;
871
+ notes?: string | undefined;
872
+ }>;
873
+ secret: z.ZodEffects<z.ZodObject<{
874
+ words: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
875
+ }, "strip", z.ZodTypeAny, {
876
+ words?: string[] | undefined;
877
+ }, {
878
+ words?: string[] | undefined;
879
+ }>, {
880
+ words?: string[] | undefined;
881
+ }, {
882
+ words?: string[] | undefined;
883
+ }>;
884
+ }, "strip", z.ZodTypeAny, {
885
+ type: "SEED-PHRASE";
886
+ secret: {
887
+ words?: string[] | undefined;
888
+ };
889
+ meta: {
890
+ name: string;
891
+ notes?: string | undefined;
892
+ };
893
+ id?: string | undefined;
894
+ }, {
895
+ type: "SEED-PHRASE";
896
+ secret: {
897
+ words?: string[] | undefined;
898
+ };
899
+ meta: {
900
+ name: string;
901
+ notes?: string | undefined;
902
+ };
903
+ id?: string | undefined;
904
+ }>, z.ZodObject<{
905
+ id: z.ZodOptional<z.ZodString>;
906
+ type: z.ZodLiteral<"PAYMENT-DEBIT-CARD">;
907
+ meta: z.ZodObject<{
908
+ name: z.ZodString;
909
+ notes: z.ZodOptional<z.ZodString>;
910
+ }, "strip", z.ZodTypeAny, {
911
+ name: string;
912
+ notes?: string | undefined;
913
+ }, {
914
+ name: string;
915
+ notes?: string | undefined;
916
+ }>;
917
+ secret: z.ZodEffects<z.ZodObject<{
918
+ cardNumber: z.ZodOptional<z.ZodString>;
919
+ bank: z.ZodOptional<z.ZodString>;
920
+ accountNumber: z.ZodOptional<z.ZodString>;
921
+ cardHolderName: z.ZodOptional<z.ZodString>;
922
+ expiryDate: z.ZodOptional<z.ZodString>;
923
+ pinCode: z.ZodOptional<z.ZodString>;
924
+ code: z.ZodOptional<z.ZodString>;
925
+ clientId: z.ZodOptional<z.ZodString>;
926
+ }, "strip", z.ZodTypeAny, {
927
+ code?: string | undefined;
928
+ clientId?: string | undefined;
929
+ cardNumber?: string | undefined;
930
+ bank?: string | undefined;
931
+ accountNumber?: string | undefined;
932
+ cardHolderName?: string | undefined;
933
+ expiryDate?: string | undefined;
934
+ pinCode?: string | undefined;
935
+ }, {
936
+ code?: string | undefined;
937
+ clientId?: string | undefined;
938
+ cardNumber?: string | undefined;
939
+ bank?: string | undefined;
940
+ accountNumber?: string | undefined;
941
+ cardHolderName?: string | undefined;
942
+ expiryDate?: string | undefined;
943
+ pinCode?: string | undefined;
944
+ }>, {
945
+ code?: string | undefined;
946
+ clientId?: string | undefined;
947
+ cardNumber?: string | undefined;
948
+ bank?: string | undefined;
949
+ accountNumber?: string | undefined;
950
+ cardHolderName?: string | undefined;
951
+ expiryDate?: string | undefined;
952
+ pinCode?: string | undefined;
953
+ }, {
954
+ code?: string | undefined;
955
+ clientId?: string | undefined;
956
+ cardNumber?: string | undefined;
957
+ bank?: string | undefined;
958
+ accountNumber?: string | undefined;
959
+ cardHolderName?: string | undefined;
960
+ expiryDate?: string | undefined;
961
+ pinCode?: string | undefined;
962
+ }>;
963
+ }, "strip", z.ZodTypeAny, {
964
+ type: "PAYMENT-DEBIT-CARD";
965
+ secret: {
966
+ code?: string | undefined;
967
+ clientId?: string | undefined;
968
+ cardNumber?: string | undefined;
969
+ bank?: string | undefined;
970
+ accountNumber?: string | undefined;
971
+ cardHolderName?: string | undefined;
972
+ expiryDate?: string | undefined;
973
+ pinCode?: string | undefined;
974
+ };
975
+ meta: {
976
+ name: string;
977
+ notes?: string | undefined;
978
+ };
979
+ id?: string | undefined;
980
+ }, {
981
+ type: "PAYMENT-DEBIT-CARD";
982
+ secret: {
983
+ code?: string | undefined;
984
+ clientId?: string | undefined;
985
+ cardNumber?: string | undefined;
986
+ bank?: string | undefined;
987
+ accountNumber?: string | undefined;
988
+ cardHolderName?: string | undefined;
989
+ expiryDate?: string | undefined;
990
+ pinCode?: string | undefined;
991
+ };
992
+ meta: {
993
+ name: string;
994
+ notes?: string | undefined;
995
+ };
996
+ id?: string | undefined;
997
+ }>, z.ZodObject<{
998
+ id: z.ZodOptional<z.ZodString>;
999
+ type: z.ZodLiteral<"PAYMENT-CREDIT-CARD">;
1000
+ meta: z.ZodObject<{
1001
+ name: z.ZodString;
1002
+ notes: z.ZodOptional<z.ZodString>;
1003
+ }, "strip", z.ZodTypeAny, {
1004
+ name: string;
1005
+ notes?: string | undefined;
1006
+ }, {
1007
+ name: string;
1008
+ notes?: string | undefined;
1009
+ }>;
1010
+ secret: z.ZodEffects<z.ZodObject<{
1011
+ cardNumber: z.ZodOptional<z.ZodString>;
1012
+ bank: z.ZodOptional<z.ZodString>;
1013
+ accountNumber: z.ZodOptional<z.ZodString>;
1014
+ cardHolderName: z.ZodOptional<z.ZodString>;
1015
+ expiryDate: z.ZodOptional<z.ZodString>;
1016
+ pinCode: z.ZodOptional<z.ZodString>;
1017
+ code: z.ZodOptional<z.ZodString>;
1018
+ clientId: z.ZodOptional<z.ZodString>;
1019
+ }, "strip", z.ZodTypeAny, {
1020
+ code?: string | undefined;
1021
+ clientId?: string | undefined;
1022
+ cardNumber?: string | undefined;
1023
+ bank?: string | undefined;
1024
+ accountNumber?: string | undefined;
1025
+ cardHolderName?: string | undefined;
1026
+ expiryDate?: string | undefined;
1027
+ pinCode?: string | undefined;
1028
+ }, {
1029
+ code?: string | undefined;
1030
+ clientId?: string | undefined;
1031
+ cardNumber?: string | undefined;
1032
+ bank?: string | undefined;
1033
+ accountNumber?: string | undefined;
1034
+ cardHolderName?: string | undefined;
1035
+ expiryDate?: string | undefined;
1036
+ pinCode?: string | undefined;
1037
+ }>, {
1038
+ code?: string | undefined;
1039
+ clientId?: string | undefined;
1040
+ cardNumber?: string | undefined;
1041
+ bank?: string | undefined;
1042
+ accountNumber?: string | undefined;
1043
+ cardHolderName?: string | undefined;
1044
+ expiryDate?: string | undefined;
1045
+ pinCode?: string | undefined;
1046
+ }, {
1047
+ code?: string | undefined;
1048
+ clientId?: string | undefined;
1049
+ cardNumber?: string | undefined;
1050
+ bank?: string | undefined;
1051
+ accountNumber?: string | undefined;
1052
+ cardHolderName?: string | undefined;
1053
+ expiryDate?: string | undefined;
1054
+ pinCode?: string | undefined;
1055
+ }>;
1056
+ }, "strip", z.ZodTypeAny, {
1057
+ type: "PAYMENT-CREDIT-CARD";
1058
+ secret: {
1059
+ code?: string | undefined;
1060
+ clientId?: string | undefined;
1061
+ cardNumber?: string | undefined;
1062
+ bank?: string | undefined;
1063
+ accountNumber?: string | undefined;
1064
+ cardHolderName?: string | undefined;
1065
+ expiryDate?: string | undefined;
1066
+ pinCode?: string | undefined;
1067
+ };
1068
+ meta: {
1069
+ name: string;
1070
+ notes?: string | undefined;
1071
+ };
1072
+ id?: string | undefined;
1073
+ }, {
1074
+ type: "PAYMENT-CREDIT-CARD";
1075
+ secret: {
1076
+ code?: string | undefined;
1077
+ clientId?: string | undefined;
1078
+ cardNumber?: string | undefined;
1079
+ bank?: string | undefined;
1080
+ accountNumber?: string | undefined;
1081
+ cardHolderName?: string | undefined;
1082
+ expiryDate?: string | undefined;
1083
+ pinCode?: string | undefined;
1084
+ };
1085
+ meta: {
1086
+ name: string;
1087
+ notes?: string | undefined;
1088
+ };
1089
+ id?: string | undefined;
1090
+ }>]>, "many">;
1091
+ export declare class PlanDataAssetsInputValidator {
1092
+ static validateOne(input: unknown): DataAsset;
1093
+ static safeValidateOne(input: unknown): {
1094
+ success: true;
1095
+ data: DataAsset;
1096
+ } | {
1097
+ success: false;
1098
+ errors: string[];
1099
+ };
1100
+ static validate(input: unknown): DataAsset[];
1101
+ static safeValidate(input: unknown): {
1102
+ success: true;
1103
+ data: DataAsset[];
1104
+ } | {
1105
+ success: false;
1106
+ errors: string[];
1107
+ };
1108
+ }