@icure/api 7.1.16 → 8.0.0-RC.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/icc-api/api/IccAccesslogApi.d.ts +12 -1
- package/icc-api/api/IccAccesslogApi.js +142 -98
- package/icc-api/api/IccAccesslogApi.js.map +1 -1
- package/icc-api/api/IccBemikronoApi.d.ts +81 -0
- package/icc-api/api/IccBemikronoApi.js +163 -0
- package/icc-api/api/IccBemikronoApi.js.map +1 -0
- package/icc-api/api/IccCalendarItemApi.d.ts +21 -1
- package/icc-api/api/IccCalendarItemApi.js +183 -117
- package/icc-api/api/IccCalendarItemApi.js.map +1 -1
- package/icc-api/api/IccClassificationApi.d.ts +21 -1
- package/icc-api/api/IccClassificationApi.js +119 -63
- package/icc-api/api/IccClassificationApi.js.map +1 -1
- package/icc-api/api/IccContactApi.d.ts +21 -1
- package/icc-api/api/IccContactApi.js +385 -294
- package/icc-api/api/IccContactApi.js.map +1 -1
- package/icc-api/api/IccDocumentApi.d.ts +38 -25
- package/icc-api/api/IccDocumentApi.js +279 -212
- package/icc-api/api/IccDocumentApi.js.map +1 -1
- package/icc-api/api/IccExchangeDataApi.d.ts +19 -0
- package/icc-api/api/IccExchangeDataApi.js +85 -0
- package/icc-api/api/IccExchangeDataApi.js.map +1 -0
- package/icc-api/api/IccExchangeDataMapApi.d.ts +18 -0
- package/icc-api/api/IccExchangeDataMapApi.js +65 -0
- package/icc-api/api/IccExchangeDataMapApi.js.map +1 -0
- package/icc-api/api/IccFormApi.d.ts +21 -1
- package/icc-api/api/IccFormApi.js +321 -229
- package/icc-api/api/IccFormApi.js.map +1 -1
- package/icc-api/api/IccHelementApi.d.ts +21 -1
- package/icc-api/api/IccHelementApi.js +207 -137
- package/icc-api/api/IccHelementApi.js.map +1 -1
- package/icc-api/api/IccInvoiceApi.d.ts +21 -1
- package/icc-api/api/IccInvoiceApi.js +404 -298
- package/icc-api/api/IccInvoiceApi.js.map +1 -1
- package/icc-api/api/IccMaintenanceTaskApi.d.ts +12 -1
- package/icc-api/api/IccMaintenanceTaskApi.js +79 -43
- package/icc-api/api/IccMaintenanceTaskApi.js.map +1 -1
- package/icc-api/api/IccMessageApi.d.ts +28 -1
- package/icc-api/api/IccMessageApi.js +294 -191
- package/icc-api/api/IccMessageApi.js.map +1 -1
- package/icc-api/api/IccPatientApi.d.ts +12 -1
- package/icc-api/api/IccPatientApi.js +447 -351
- package/icc-api/api/IccPatientApi.js.map +1 -1
- package/icc-api/api/IccReceiptApi.d.ts +22 -8
- package/icc-api/api/IccReceiptApi.js +121 -64
- package/icc-api/api/IccReceiptApi.js.map +1 -1
- package/icc-api/api/IccRestApiPath.js +1 -1
- package/icc-api/api/IccRestApiPath.js.map +1 -1
- package/icc-api/api/IccSecureDelegationKeyMapApi.d.ts +26 -0
- package/icc-api/api/IccSecureDelegationKeyMapApi.js +71 -0
- package/icc-api/api/IccSecureDelegationKeyMapApi.js.map +1 -0
- package/icc-api/api/IccTimeTableApi.d.ts +12 -1
- package/icc-api/api/IccTimeTableApi.js +86 -48
- package/icc-api/api/IccTimeTableApi.js.map +1 -1
- package/icc-api/api/IccTopicApi.d.ts +90 -0
- package/icc-api/api/IccTopicApi.js +193 -0
- package/icc-api/api/IccTopicApi.js.map +1 -0
- package/icc-api/index.d.ts +2 -0
- package/icc-api/index.js +2 -0
- package/icc-api/index.js.map +1 -1
- package/icc-api/model/AbstractFilterMessage.d.ts +15 -0
- package/icc-api/model/AbstractFilterMessage.js +21 -0
- package/icc-api/model/AbstractFilterMessage.js.map +1 -0
- package/icc-api/model/AbstractFilterTopic.d.ts +15 -0
- package/icc-api/model/AbstractFilterTopic.js +21 -0
- package/icc-api/model/AbstractFilterTopic.js.map +1 -0
- package/icc-api/model/AccessLog.d.ts +2 -0
- package/icc-api/model/AccessLog.js.map +1 -1
- package/icc-api/model/Article.d.ts +2 -0
- package/icc-api/model/Article.js.map +1 -1
- package/icc-api/model/CalendarItem.d.ts +2 -0
- package/icc-api/model/CalendarItem.js.map +1 -1
- package/icc-api/model/Classification.d.ts +2 -0
- package/icc-api/model/Classification.js.map +1 -1
- package/icc-api/model/ClassificationTemplate.d.ts +2 -0
- package/icc-api/model/ClassificationTemplate.js.map +1 -1
- package/icc-api/model/Connection.d.ts +1 -1
- package/icc-api/model/Connection.js.map +1 -1
- package/icc-api/model/Contact.d.ts +2 -0
- package/icc-api/model/Contact.js.map +1 -1
- package/icc-api/model/Device.d.ts +4 -4
- package/icc-api/model/Device.js.map +1 -1
- package/icc-api/model/Document.d.ts +2 -0
- package/icc-api/model/Document.js.map +1 -1
- package/icc-api/model/ExchangeDataMapCreationBatch.d.ts +13 -0
- package/icc-api/model/ExchangeDataMapCreationBatch.js +10 -0
- package/icc-api/model/ExchangeDataMapCreationBatch.js.map +1 -0
- package/icc-api/model/FilterChainMessage.d.ts +19 -0
- package/icc-api/model/FilterChainMessage.js +11 -0
- package/icc-api/model/FilterChainMessage.js.map +1 -0
- package/icc-api/model/FilterChainTopic.d.ts +19 -0
- package/icc-api/model/FilterChainTopic.js +11 -0
- package/icc-api/model/FilterChainTopic.js.map +1 -0
- package/icc-api/model/Form.d.ts +2 -0
- package/icc-api/model/Form.js.map +1 -1
- package/icc-api/model/HealthElement.d.ts +2 -0
- package/icc-api/model/HealthElement.js.map +1 -1
- package/icc-api/model/HealthcareParty.d.ts +2 -2
- package/icc-api/model/HealthcareParty.js +13 -1
- package/icc-api/model/HealthcareParty.js.map +1 -1
- package/icc-api/model/IcureStub.d.ts +2 -0
- package/icc-api/model/IcureStub.js.map +1 -1
- package/icc-api/model/Invoice.d.ts +2 -0
- package/icc-api/model/Invoice.js.map +1 -1
- package/icc-api/model/MaintenanceTask.d.ts +13 -10
- package/icc-api/model/MaintenanceTask.js +13 -11
- package/icc-api/model/MaintenanceTask.js.map +1 -1
- package/icc-api/model/Message.d.ts +2 -0
- package/icc-api/model/Message.js.map +1 -1
- package/icc-api/model/PaginatedListExchangeData.d.ts +9 -0
- package/icc-api/model/PaginatedListExchangeData.js +10 -0
- package/icc-api/model/PaginatedListExchangeData.js.map +1 -0
- package/icc-api/model/PaginatedListTopic.d.ts +20 -0
- package/icc-api/model/PaginatedListTopic.js +10 -0
- package/icc-api/model/PaginatedListTopic.js.map +1 -0
- package/icc-api/model/Patient.d.ts +4 -2
- package/icc-api/model/Patient.js.map +1 -1
- package/icc-api/model/PatientByHcPartyGenderEducationProfession.d.ts +31 -0
- package/icc-api/model/PatientByHcPartyGenderEducationProfession.js +32 -0
- package/icc-api/model/PatientByHcPartyGenderEducationProfession.js.map +1 -0
- package/icc-api/model/Receipt.d.ts +2 -0
- package/icc-api/model/Receipt.js.map +1 -1
- package/icc-api/model/SecureDelegation.d.ts +52 -0
- package/icc-api/model/SecureDelegation.js +16 -0
- package/icc-api/model/SecureDelegation.js.map +1 -0
- package/icc-api/model/SecurityMetadata.d.ts +33 -0
- package/icc-api/model/SecurityMetadata.js +13 -0
- package/icc-api/model/SecurityMetadata.js.map +1 -0
- package/icc-api/model/Service.d.ts +2 -0
- package/icc-api/model/Service.js.map +1 -1
- package/icc-api/model/TimeTable.d.ts +2 -0
- package/icc-api/model/TimeTable.js.map +1 -1
- package/icc-api/model/Topic.d.ts +95 -0
- package/icc-api/model/Topic.js +16 -0
- package/icc-api/model/Topic.js.map +1 -0
- package/icc-api/model/internal/ExchangeData.d.ts +64 -0
- package/icc-api/model/internal/ExchangeData.js +15 -0
- package/icc-api/model/internal/ExchangeData.js.map +1 -0
- package/icc-api/model/internal/ExchangeDataMap.d.ts +24 -0
- package/icc-api/model/internal/ExchangeDataMap.js +13 -0
- package/icc-api/model/internal/ExchangeDataMap.js.map +1 -0
- package/icc-api/model/internal/SecureDelegationKeyMap.d.ts +14 -0
- package/icc-api/model/internal/SecureDelegationKeyMap.js +13 -0
- package/icc-api/model/internal/SecureDelegationKeyMap.js.map +1 -0
- package/icc-api/model/models.d.ts +26 -40
- package/icc-api/model/models.js +19 -37
- package/icc-api/model/models.js.map +1 -1
- package/icc-api/model/requests/EntityBulkShareResult.d.ts +28 -0
- package/icc-api/model/requests/EntityBulkShareResult.js +16 -0
- package/icc-api/model/requests/EntityBulkShareResult.js.map +1 -0
- package/icc-api/model/requests/EntityShareOrMetadataUpdateRequest.d.ts +10 -0
- package/icc-api/model/requests/EntityShareOrMetadataUpdateRequest.js +17 -0
- package/icc-api/model/requests/EntityShareOrMetadataUpdateRequest.js.map +1 -0
- package/icc-api/model/requests/EntityShareRequest.d.ts +110 -0
- package/icc-api/model/requests/EntityShareRequest.js +63 -0
- package/icc-api/model/requests/EntityShareRequest.js.map +1 -0
- package/icc-api/model/requests/EntitySharedMetadataUpdateRequest.d.ts +54 -0
- package/icc-api/model/requests/EntitySharedMetadataUpdateRequest.js +24 -0
- package/icc-api/model/requests/EntitySharedMetadataUpdateRequest.js.map +1 -0
- package/icc-api/model/requests/MinimalEntityBulkShareResult.d.ts +23 -0
- package/icc-api/model/requests/MinimalEntityBulkShareResult.js +13 -0
- package/icc-api/model/requests/MinimalEntityBulkShareResult.js.map +1 -0
- package/icc-api/model/requests/RejectedShareOrMetadataUpdateRequest.d.ts +21 -0
- package/icc-api/model/requests/RejectedShareOrMetadataUpdateRequest.js +14 -0
- package/icc-api/model/requests/RejectedShareOrMetadataUpdateRequest.js.map +1 -0
- package/icc-x-api/basexapi/EncryptedEntityXApi.d.ts +55 -6
- package/icc-x-api/basexapi/EncryptedEntityXApi.js.map +1 -1
- package/icc-x-api/crypto/AES.js +1 -1
- package/icc-x-api/crypto/AES.js.map +1 -1
- package/icc-x-api/crypto/AccessControlKeysHeadersProvider.d.ts +18 -0
- package/icc-x-api/crypto/AccessControlKeysHeadersProvider.js +50 -0
- package/icc-x-api/crypto/AccessControlKeysHeadersProvider.js.map +1 -0
- package/icc-x-api/crypto/AccessControlSecretUtils.d.ts +43 -0
- package/icc-x-api/crypto/AccessControlSecretUtils.js +97 -0
- package/icc-x-api/crypto/AccessControlSecretUtils.js.map +1 -0
- package/icc-x-api/crypto/BaseExchangeDataManager.d.ts +146 -0
- package/icc-x-api/crypto/BaseExchangeDataManager.js +342 -0
- package/icc-x-api/crypto/BaseExchangeDataManager.js.map +1 -0
- package/icc-x-api/crypto/BaseExchangeKeysManager.d.ts +0 -18
- package/icc-x-api/crypto/BaseExchangeKeysManager.js +11 -85
- package/icc-x-api/crypto/BaseExchangeKeysManager.js.map +1 -1
- package/icc-x-api/crypto/ConfidentialEntities.d.ts +26 -16
- package/icc-x-api/crypto/ConfidentialEntities.js +30 -17
- package/icc-x-api/crypto/ConfidentialEntities.js.map +1 -1
- package/icc-x-api/crypto/CryptoStrategies.d.ts +8 -1
- package/icc-x-api/crypto/CryptoStrategies.js.map +1 -1
- package/icc-x-api/crypto/DelegationsDeAnonymization.d.ts +44 -0
- package/icc-x-api/crypto/DelegationsDeAnonymization.js +235 -0
- package/icc-x-api/crypto/DelegationsDeAnonymization.js.map +1 -0
- package/icc-x-api/crypto/ExchangeDataManager.d.ts +97 -0
- package/icc-x-api/crypto/ExchangeDataManager.js +501 -0
- package/icc-x-api/crypto/ExchangeDataManager.js.map +1 -0
- package/icc-x-api/crypto/ExchangeDataMapManager.d.ts +32 -0
- package/icc-x-api/crypto/ExchangeDataMapManager.js +70 -0
- package/icc-x-api/crypto/ExchangeDataMapManager.js.map +1 -0
- package/icc-x-api/crypto/ExchangeKeysManager.d.ts +4 -16
- package/icc-x-api/crypto/ExchangeKeysManager.js +4 -62
- package/icc-x-api/crypto/ExchangeKeysManager.js.map +1 -1
- package/icc-x-api/crypto/ExtendedApisUtils.d.ts +326 -0
- package/icc-x-api/crypto/ExtendedApisUtils.js +3 -0
- package/icc-x-api/crypto/ExtendedApisUtils.js.map +1 -0
- package/icc-x-api/crypto/ExtendedApisUtilsImpl.d.ts +174 -0
- package/icc-x-api/crypto/ExtendedApisUtilsImpl.js +559 -0
- package/icc-x-api/crypto/ExtendedApisUtilsImpl.js.map +1 -0
- package/icc-x-api/crypto/KeyRecovery.d.ts +5 -2
- package/icc-x-api/crypto/KeyRecovery.js +59 -29
- package/icc-x-api/crypto/KeyRecovery.js.map +1 -1
- package/icc-x-api/crypto/LegacyCryptoStrategies.d.ts +7 -2
- package/icc-x-api/crypto/LegacyCryptoStrategies.js +8 -1
- package/icc-x-api/crypto/LegacyCryptoStrategies.js.map +1 -1
- package/icc-x-api/crypto/LegacyDelegationSecurityMetadataDecryptor.d.ts +33 -0
- package/icc-x-api/crypto/LegacyDelegationSecurityMetadataDecryptor.js +141 -0
- package/icc-x-api/crypto/LegacyDelegationSecurityMetadataDecryptor.js.map +1 -0
- package/icc-x-api/crypto/RSA.d.ts +34 -8
- package/icc-x-api/crypto/RSA.js +80 -13
- package/icc-x-api/crypto/RSA.js.map +1 -1
- package/icc-x-api/crypto/SecureDelegationsEncryption.d.ts +54 -0
- package/icc-x-api/crypto/SecureDelegationsEncryption.js +178 -0
- package/icc-x-api/crypto/SecureDelegationsEncryption.js.map +1 -0
- package/icc-x-api/crypto/SecureDelegationsManager.d.ts +66 -0
- package/icc-x-api/crypto/SecureDelegationsManager.js +261 -0
- package/icc-x-api/crypto/SecureDelegationsManager.js.map +1 -0
- package/icc-x-api/crypto/SecureDelegationsSecurityMetadataDecryptor.d.ts +46 -0
- package/icc-x-api/crypto/SecureDelegationsSecurityMetadataDecryptor.js +312 -0
- package/icc-x-api/crypto/SecureDelegationsSecurityMetadataDecryptor.js.map +1 -0
- package/icc-x-api/crypto/SecurityMetadataDecryptor.d.ts +97 -0
- package/icc-x-api/crypto/SecurityMetadataDecryptor.js +79 -0
- package/icc-x-api/crypto/SecurityMetadataDecryptor.js.map +1 -0
- package/icc-x-api/crypto/ShamirKeysManager.d.ts +5 -5
- package/icc-x-api/crypto/ShamirKeysManager.js +6 -9
- package/icc-x-api/crypto/ShamirKeysManager.js.map +1 -1
- package/icc-x-api/crypto/TransferKeysManager.d.ts +8 -6
- package/icc-x-api/crypto/TransferKeysManager.js +75 -52
- package/icc-x-api/crypto/TransferKeysManager.js.map +1 -1
- package/icc-x-api/crypto/{KeyManager.d.ts → UserEncryptionKeysManager.d.ts} +4 -6
- package/icc-x-api/crypto/{KeyManager.js → UserEncryptionKeysManager.js} +43 -23
- package/icc-x-api/crypto/UserEncryptionKeysManager.js.map +1 -0
- package/icc-x-api/crypto/UserSignatureKeysManager.d.ts +26 -0
- package/icc-x-api/crypto/UserSignatureKeysManager.js +74 -0
- package/icc-x-api/crypto/UserSignatureKeysManager.js.map +1 -0
- package/icc-x-api/crypto/utils.d.ts +61 -11
- package/icc-x-api/crypto/utils.js +113 -44
- package/icc-x-api/crypto/utils.js.map +1 -1
- package/icc-x-api/filters/LatestMessageByHcPartyTransportGuidFilter.d.ts +8 -0
- package/icc-x-api/filters/LatestMessageByHcPartyTransportGuidFilter.js +13 -0
- package/icc-x-api/filters/LatestMessageByHcPartyTransportGuidFilter.js.map +1 -0
- package/icc-x-api/filters/MessageByHcPartyFilter.d.ts +7 -0
- package/icc-x-api/filters/MessageByHcPartyFilter.js +13 -0
- package/icc-x-api/filters/MessageByHcPartyFilter.js.map +1 -0
- package/icc-x-api/filters/MessageByHcPartyTransportGuidFilter.d.ts +8 -0
- package/icc-x-api/filters/MessageByHcPartyTransportGuidFilter.js +13 -0
- package/icc-x-api/filters/MessageByHcPartyTransportGuidFilter.js.map +1 -0
- package/icc-x-api/filters/TopicByHcPartyFilter.d.ts +7 -0
- package/icc-x-api/filters/TopicByHcPartyFilter.js +13 -0
- package/icc-x-api/filters/TopicByHcPartyFilter.js.map +1 -0
- package/icc-x-api/filters/TopicByParticipantFilter.d.ts +7 -0
- package/icc-x-api/filters/TopicByParticipantFilter.js +13 -0
- package/icc-x-api/filters/TopicByParticipantFilter.js.map +1 -0
- package/icc-x-api/filters/filters.d.ts +5 -0
- package/icc-x-api/filters/filters.js +5 -0
- package/icc-x-api/filters/filters.js.map +1 -1
- package/icc-x-api/icc-accesslog-x-api.d.ts +49 -12
- package/icc-x-api/icc-accesslog-x-api.js +81 -44
- package/icc-x-api/icc-accesslog-x-api.js.map +1 -1
- package/icc-x-api/icc-calendar-item-x-api.d.ts +53 -15
- package/icc-x-api/icc-calendar-item-x-api.js +105 -51
- package/icc-x-api/icc-calendar-item-x-api.js.map +1 -1
- package/icc-x-api/icc-classification-x-api.d.ts +47 -10
- package/icc-x-api/icc-classification-x-api.js +62 -33
- package/icc-x-api/icc-classification-x-api.js.map +1 -1
- package/icc-x-api/icc-contact-x-api.d.ts +59 -33
- package/icc-x-api/icc-contact-x-api.js +101 -66
- package/icc-x-api/icc-contact-x-api.js.map +1 -1
- package/icc-x-api/icc-crypto-x-api.d.ts +33 -333
- package/icc-x-api/icc-crypto-x-api.js +47 -764
- package/icc-x-api/icc-crypto-x-api.js.map +1 -1
- package/icc-x-api/icc-data-owner-x-api.d.ts +20 -8
- package/icc-x-api/icc-data-owner-x-api.js +31 -10
- package/icc-x-api/icc-data-owner-x-api.js.map +1 -1
- package/icc-x-api/icc-document-x-api.d.ts +51 -12
- package/icc-x-api/icc-document-x-api.js +117 -66
- package/icc-x-api/icc-document-x-api.js.map +1 -1
- package/icc-x-api/icc-form-x-api.d.ts +48 -11
- package/icc-x-api/icc-form-x-api.js +71 -37
- package/icc-x-api/icc-form-x-api.js.map +1 -1
- package/icc-x-api/icc-hcparty-x-api.d.ts +2 -2
- package/icc-x-api/icc-hcparty-x-api.js +3 -3
- package/icc-x-api/icc-hcparty-x-api.js.map +1 -1
- package/icc-x-api/icc-helement-x-api.d.ts +59 -20
- package/icc-x-api/icc-helement-x-api.js +78 -43
- package/icc-x-api/icc-helement-x-api.js.map +1 -1
- package/icc-x-api/icc-icure-maintenance-x-api.d.ts +7 -2
- package/icc-x-api/icc-icure-maintenance-x-api.js +38 -27
- package/icc-x-api/icc-icure-maintenance-x-api.js.map +1 -1
- package/icc-x-api/icc-invoice-x-api.d.ts +53 -16
- package/icc-x-api/icc-invoice-x-api.js +69 -35
- package/icc-x-api/icc-invoice-x-api.js.map +1 -1
- package/icc-x-api/icc-maintenance-task-x-api.d.ts +56 -22
- package/icc-x-api/icc-maintenance-task-x-api.js +77 -36
- package/icc-x-api/icc-maintenance-task-x-api.js.map +1 -1
- package/icc-x-api/icc-message-x-api.d.ts +75 -19
- package/icc-x-api/icc-message-x-api.js +126 -37
- package/icc-x-api/icc-message-x-api.js.map +1 -1
- package/icc-x-api/icc-patient-x-api.d.ts +86 -29
- package/icc-x-api/icc-patient-x-api.js +318 -379
- package/icc-x-api/icc-patient-x-api.js.map +1 -1
- package/icc-x-api/icc-receipt-x-api.d.ts +47 -13
- package/icc-x-api/icc-receipt-x-api.js +72 -36
- package/icc-x-api/icc-receipt-x-api.js.map +1 -1
- package/icc-x-api/icc-time-table-x-api.d.ts +46 -13
- package/icc-x-api/icc-time-table-x-api.js +61 -27
- package/icc-x-api/icc-time-table-x-api.js.map +1 -1
- package/icc-x-api/icc-topic-x-api.d.ts +191 -0
- package/icc-x-api/icc-topic-x-api.js +307 -0
- package/icc-x-api/icc-topic-x-api.js.map +1 -0
- package/icc-x-api/icc-user-x-api.d.ts +2 -2
- package/icc-x-api/icc-user-x-api.js +3 -3
- package/icc-x-api/icc-user-x-api.js.map +1 -1
- package/icc-x-api/index.d.ts +18 -2
- package/icc-x-api/index.js +203 -156
- package/icc-x-api/index.js.map +1 -1
- package/icc-x-api/maintenance/KeyPairUpdateRequest.d.ts +1 -1
- package/icc-x-api/storage/DefaultStorageEntryKeysFactory.d.ts +2 -0
- package/icc-x-api/storage/DefaultStorageEntryKeysFactory.js +9 -2
- package/icc-x-api/storage/DefaultStorageEntryKeysFactory.js.map +1 -1
- package/icc-x-api/storage/IcureStorageFacade.d.ts +23 -2
- package/icc-x-api/storage/IcureStorageFacade.js +36 -2
- package/icc-x-api/storage/IcureStorageFacade.js.map +1 -1
- package/icc-x-api/storage/KeyStorageFacade.d.ts +12 -0
- package/icc-x-api/storage/KeyStorageFacade.js.map +1 -1
- package/icc-x-api/storage/KeyStorageImpl.d.ts +2 -0
- package/icc-x-api/storage/KeyStorageImpl.js +10 -0
- package/icc-x-api/storage/KeyStorageImpl.js.map +1 -1
- package/icc-x-api/storage/StorageEntryKeysFactory.d.ts +14 -1
- package/icc-x-api/storage/StorageEntryKeysFactory.js.map +1 -1
- package/icc-x-api/utils/EntityWithDelegationTypeName.d.ts +32 -0
- package/icc-x-api/utils/EntityWithDelegationTypeName.js +75 -0
- package/icc-x-api/utils/EntityWithDelegationTypeName.js.map +1 -0
- package/icc-x-api/utils/ShareResult.d.ts +74 -0
- package/icc-x-api/utils/ShareResult.js +61 -0
- package/icc-x-api/utils/ShareResult.js.map +1 -0
- package/icc-x-api/utils/binary-utils.d.ts +1 -0
- package/icc-x-api/utils/binary-utils.js +8 -1
- package/icc-x-api/utils/binary-utils.js.map +1 -1
- package/icc-x-api/utils/collection-utils.d.ts +5 -0
- package/icc-x-api/utils/collection-utils.js +26 -1
- package/icc-x-api/utils/collection-utils.js.map +1 -1
- package/icc-x-api/utils/crypto-utils.d.ts +4 -3
- package/icc-x-api/utils/crypto-utils.js +5 -4
- package/icc-x-api/utils/crypto-utils.js.map +1 -1
- package/icc-x-api/utils/lru-temporised-async-cache.d.ts +26 -3
- package/icc-x-api/utils/lru-temporised-async-cache.js +75 -15
- package/icc-x-api/utils/lru-temporised-async-cache.js.map +1 -1
- package/icc-x-api/utils/websocket.d.ts +14 -10
- package/icc-x-api/utils/websocket.js +26 -9
- package/icc-x-api/utils/websocket.js.map +1 -1
- package/index.d.ts +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/package.json +2 -3
- package/icc-x-api/crypto/EntitiesEncryption.d.ts +0 -275
- package/icc-x-api/crypto/EntitiesEncryption.js +0 -734
- package/icc-x-api/crypto/EntitiesEncryption.js.map +0 -1
- package/icc-x-api/crypto/KeyManager.js.map +0 -1
|
@@ -1,90 +1,77 @@
|
|
|
1
|
-
import { AESUtils } from './crypto/AES';
|
|
2
|
-
import { KeyPair, RSAUtils } from './crypto/RSA';
|
|
3
|
-
import { ShamirClass } from './crypto/shamir';
|
|
4
|
-
import { Delegation, Device, Document, EncryptedEntity, EncryptedParentEntity, HealthcareParty, Patient, User } from '../icc-api/model/models';
|
|
5
1
|
import { StorageFacade } from './storage/StorageFacade';
|
|
6
2
|
import { KeyStorageFacade } from './storage/KeyStorageFacade';
|
|
7
3
|
import { ExchangeKeysManager } from './crypto/ExchangeKeysManager';
|
|
8
4
|
import { CryptoPrimitives } from './crypto/CryptoPrimitives';
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { IcureStorageFacade } from './storage/IcureStorageFacade';
|
|
5
|
+
import { UserEncryptionKeysManager } from './crypto/UserEncryptionKeysManager';
|
|
6
|
+
import { IccDataOwnerXApi } from './icc-data-owner-x-api';
|
|
7
|
+
import { ExtendedApisUtils } from './crypto/ExtendedApisUtils';
|
|
13
8
|
import { ShamirKeysManager } from './crypto/ShamirKeysManager';
|
|
14
|
-
import { IccHcpartyApi, IccPatientApi } from '../icc-api';
|
|
15
9
|
import { ConfidentialEntities } from './crypto/ConfidentialEntities';
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
10
|
+
import { ExchangeDataManager } from './crypto/ExchangeDataManager';
|
|
11
|
+
import { AccessControlKeysHeadersProvider } from './crypto/AccessControlKeysHeadersProvider';
|
|
12
|
+
import { KeyPair } from './crypto/RSA';
|
|
13
|
+
import { DelegationsDeAnonymization } from './crypto/DelegationsDeAnonymization';
|
|
21
14
|
export declare class IccCryptoXApi {
|
|
22
|
-
private readonly
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
private readonly exchangeKeysManager;
|
|
29
|
-
private readonly cryptoPrimitives;
|
|
30
|
-
private readonly keyManager;
|
|
31
|
-
private readonly dataOwnerApi;
|
|
32
|
-
private readonly entitiesEncrypiton;
|
|
33
|
-
private readonly confidentialEntities;
|
|
34
|
-
private readonly icureStorage;
|
|
35
|
-
private readonly shamirManager;
|
|
15
|
+
private readonly _exchangeKeysManager;
|
|
16
|
+
private readonly _cryptoPrimitives;
|
|
17
|
+
private readonly _keyManager;
|
|
18
|
+
private readonly _dataOwnerApi;
|
|
19
|
+
private readonly xapiUtils;
|
|
20
|
+
private readonly _shamirManager;
|
|
36
21
|
private readonly _storage;
|
|
37
22
|
private readonly _keyStorage;
|
|
38
|
-
private readonly
|
|
23
|
+
private readonly _confidentialEntities;
|
|
24
|
+
private readonly _exchangeDataManager;
|
|
25
|
+
private readonly _accessControlKeysHeaders;
|
|
26
|
+
private readonly _delegationsDeAnonymisation;
|
|
27
|
+
/**
|
|
28
|
+
* The instance of {@link CryptoPrimitives} used by this instance of the iCure SDK.
|
|
29
|
+
*/
|
|
39
30
|
get primitives(): CryptoPrimitives;
|
|
40
31
|
/**
|
|
41
32
|
* @internal this method is for internal use only and may be changed without notice.
|
|
42
33
|
*/
|
|
43
34
|
get exchangeKeys(): ExchangeKeysManager;
|
|
44
35
|
/**
|
|
45
|
-
* @
|
|
46
|
-
*/
|
|
47
|
-
get crypto(): Crypto;
|
|
48
|
-
/**
|
|
49
|
-
* @deprecated replace with {@link CryptoPrimitives.shamir} at {@link primitives}.
|
|
36
|
+
* @internal this is for internal use only and may be changed without notice.
|
|
50
37
|
*/
|
|
51
|
-
get
|
|
38
|
+
get keyStorage(): KeyStorageFacade;
|
|
52
39
|
/**
|
|
53
|
-
* @
|
|
40
|
+
* @internal this is for internal use only and may be changed without notice.
|
|
54
41
|
*/
|
|
55
|
-
get
|
|
42
|
+
get storage(): StorageFacade<string>;
|
|
56
43
|
/**
|
|
57
|
-
* @
|
|
44
|
+
* @internal this is for internal use only and may be changed without notice.
|
|
58
45
|
*/
|
|
59
|
-
get
|
|
46
|
+
get xapi(): ExtendedApisUtils;
|
|
60
47
|
/**
|
|
61
48
|
* @internal this is for internal use only and may be changed without notice.
|
|
62
49
|
*/
|
|
63
|
-
get
|
|
50
|
+
get exchangeData(): ExchangeDataManager;
|
|
64
51
|
/**
|
|
65
52
|
* @internal this is for internal use only and may be changed without notice.
|
|
66
53
|
*/
|
|
67
|
-
get
|
|
54
|
+
get confidential(): ConfidentialEntities;
|
|
68
55
|
/**
|
|
69
56
|
* @internal this is for internal use only and may be changed without notice.
|
|
70
57
|
*/
|
|
71
|
-
get
|
|
58
|
+
get accessControlKeysHeaders(): AccessControlKeysHeadersProvider;
|
|
72
59
|
/**
|
|
73
60
|
* @internal this is for internal use only and may be changed without notice.
|
|
74
61
|
*/
|
|
75
|
-
get
|
|
62
|
+
get userKeysManager(): UserEncryptionKeysManager;
|
|
76
63
|
/**
|
|
77
64
|
* @internal this is for internal use only and may be changed without notice.
|
|
78
65
|
*/
|
|
79
|
-
get
|
|
66
|
+
get shamirKeysManager(): ShamirKeysManager;
|
|
80
67
|
/**
|
|
81
68
|
* @internal this is for internal use only and may be changed without notice.
|
|
82
69
|
*/
|
|
83
|
-
get
|
|
70
|
+
get delegationsDeAnonymization(): DelegationsDeAnonymization;
|
|
84
71
|
/**
|
|
85
72
|
* @internal
|
|
86
73
|
*/
|
|
87
|
-
constructor(
|
|
74
|
+
constructor(_exchangeKeysManager: ExchangeKeysManager, _cryptoPrimitives: CryptoPrimitives, _keyManager: UserEncryptionKeysManager, _dataOwnerApi: IccDataOwnerXApi, xapiUtils: ExtendedApisUtils, _shamirManager: ShamirKeysManager, _storage: StorageFacade<string>, _keyStorage: KeyStorageFacade, _confidentialEntities: ConfidentialEntities, _exchangeDataManager: ExchangeDataManager, _accessControlKeysHeaders: AccessControlKeysHeadersProvider, _delegationsDeAnonymisation: DelegationsDeAnonymization);
|
|
88
75
|
/**
|
|
89
76
|
* Deletes values cached by the crypto api, to allow to detect changes in stored key pairs, exchange keys and/or current data owner details.
|
|
90
77
|
* This method may be useful in cases where a user is logged in from multiple devices or in cases where other users have just shared some data with
|
|
@@ -139,291 +126,4 @@ export declare class IccCryptoXApi {
|
|
|
139
126
|
* @return the spki representation of public keys of available keypairs for the current user.
|
|
140
127
|
*/
|
|
141
128
|
getCurrentUserAvailablePublicKeysHex(verifiedOnly: boolean): Promise<string[]>;
|
|
142
|
-
/**
|
|
143
|
-
* @deprecated depending on your use case you should delete the calls to this method or call {@link forceReload}:
|
|
144
|
-
* - Replace with `forceReload()` if one of the following parts of the current data owner may have been modified from a different api instance:
|
|
145
|
-
* - Hcp hierarchy
|
|
146
|
-
* - Key recovery data (transfer keys or shamir)
|
|
147
|
-
* - Exchange keys (formerly hcp keys)
|
|
148
|
-
* - Remove the call if the main goal was to force reload the data owner: data owner are not cached anymore.
|
|
149
|
-
*/
|
|
150
|
-
emptyHcpCache(hcpartyId: string): void;
|
|
151
|
-
/**
|
|
152
|
-
* @deprecated you should not need this method anymore to deal with the encryption of iCure entities because everything related to entities
|
|
153
|
-
* encryption should be done either through the entity-specific extended api or through the extended apis.
|
|
154
|
-
* Note that keys returned by the current implementation of this method may not be safe for encryption/sharing.
|
|
155
|
-
* If instead you are using this method to retrieve key pairs for other purposes, for example because you want to reuse the user keys in iCure for
|
|
156
|
-
* other services consider the following alternatives:
|
|
157
|
-
* - If you want to use all iCure facilities including key recovery and key verification you can use {@link getKeyPairForFingerprint}.
|
|
158
|
-
* Note that this solution can only give access to keys for the data owner of the instantiated api and his parents.
|
|
159
|
-
* - Alternatively you can use directly your choice of {@link KeyStorageFacade} and {@link StorageEntryKeysFactory}: if these are the same you use
|
|
160
|
-
* for the iCure API client the keys will be shared with it. Note however that the iCure api client uses
|
|
161
|
-
* {@link StorageEntryKeysFactory.cachedRecoveredKeypairOfDataOwner} to cache recovered keys of a data owner which may not have originated from
|
|
162
|
-
* this device, so you should only use {@link StorageEntryKeysFactory.deviceKeypairOfDataOwner} if you want to make sure the keys you use are safe
|
|
163
|
-
* for encryption.
|
|
164
|
-
*/
|
|
165
|
-
getCachedRsaKeyPairForFingerprint(dataOwnerId: string, pubKeyOrFingerprint: string): Promise<{
|
|
166
|
-
publicKey: CryptoKey;
|
|
167
|
-
privateKey: CryptoKey;
|
|
168
|
-
}>;
|
|
169
|
-
/**
|
|
170
|
-
* @deprecated You do not need this method to encrypt/decrypt data of iCure, but if you want to reuse the iCure keys for the user for other purposes
|
|
171
|
-
* you have different options to replace this method, depending on what you actually need. All options return the hex-encoded spki representation of
|
|
172
|
-
* the public keys.
|
|
173
|
-
* - If you want only the public keys for which we have a private key available
|
|
174
|
-
* - you can replicate the current behaviour using {@link getCurrentUserHierarchyAvailablePublicKeysHex}. This includes keys for the current user
|
|
175
|
-
* and his parents.
|
|
176
|
-
* - use {@link getCurrentUserAvailablePublicKeysHex} to get public keys only for the current data owner, ignoring any keys of the
|
|
177
|
-
* parent hierarchy. In this case you can also apply a filter to only get verified keys (safe for encryption).
|
|
178
|
-
* - If you need all public keys for the data owner, including those for which there is no corresponding private key available on the device use
|
|
179
|
-
* {@link IccDataOwnerXApi.getHexPublicKeysOf} with the current data owner. If you don't have it available you may get it from
|
|
180
|
-
* {@link IccDataOwnerXApi.getCurrentDataOwner}, but this will require to do a request to the iCure server (other options use only cached data).
|
|
181
|
-
*/
|
|
182
|
-
getPublicKeys(): Promise<string[]>;
|
|
183
|
-
/**
|
|
184
|
-
* @deprecated replace with {@link CryptoPrimitives.randomUuid} at {@link primitives}.
|
|
185
|
-
*/
|
|
186
|
-
randomUuid(): string;
|
|
187
|
-
/**
|
|
188
|
-
* @deprecated replace with {@link CryptoPrimitives.sha256} at {@link primitives}.
|
|
189
|
-
*/
|
|
190
|
-
sha256(data: ArrayBuffer | Uint8Array): Promise<ArrayBuffer>;
|
|
191
|
-
/**
|
|
192
|
-
* @deprecated Use {@link ShamirKeysManager.updateSelfSplits} from {@link shamirKeysManager} instead. Note that the new method completely replaces
|
|
193
|
-
* all current values if a split for the provided key already exists.
|
|
194
|
-
*/
|
|
195
|
-
encryptShamirRSAKey(hcp: HealthcareParty, notaries: Array<HealthcareParty>, threshold?: number): Promise<HealthcareParty>;
|
|
196
|
-
/**
|
|
197
|
-
* @deprecated You should not need this method anymore because the api will automatically try to recover the available shamir keys on startup.
|
|
198
|
-
*/
|
|
199
|
-
decryptShamirRSAKey(hcp: HealthcareParty, notaries: Array<HealthcareParty>): Promise<void>;
|
|
200
|
-
/**
|
|
201
|
-
* @deprecated you should not need this method anymore because everything related to entities encryption should be done either through the
|
|
202
|
-
* entity-specific extended api.
|
|
203
|
-
* Note that currently this method does not cache results anymore (but the updated methods do).
|
|
204
|
-
*/
|
|
205
|
-
decryptHcPartyKey(loggedHcPartyId: string, delegatorId: string, delegateHcPartyId: string, publicKey: string, encryptedHcPartyKeys: {
|
|
206
|
-
[key: string]: string;
|
|
207
|
-
}, publicKeys: string[]): Promise<DelegatorAndKeys>;
|
|
208
|
-
/**
|
|
209
|
-
* @deprecated you should not need this method anymore. The new API will automatically load on startup all keys available through the key storage
|
|
210
|
-
* facade and/or recoverable through transfer keys or shamir split. If no verified key (safe for encryption) can be found during the instantiation
|
|
211
|
-
* of the API, depending on the parameters passed to the factory one of two scenarios will happen:
|
|
212
|
-
* - A new key will be automatically created on the device and stored using the key storage facade.
|
|
213
|
-
* - The api instantiation fails with an exception. This is ideal if you want to try to recover an existing key pair before creating a new one.
|
|
214
|
-
*
|
|
215
|
-
* If you were using this method to allow the user to recover an existing key that is not available in the storage facade nor recoverable through
|
|
216
|
-
* transfer keys or shamir split (for example by scanning a qr code, or by loading a file from the computer to the web browser's local storage)
|
|
217
|
-
* you will have to move that logic in your implementation of CryptoStrategies.
|
|
218
|
-
* It is currently not allowed to create new key pairs if a verified key pair is already available on the device, as this would be wasteful.
|
|
219
|
-
* If you want to convert a `JsonWebKey` pair to a `CryptoKey` pair you should use directly the method in `primitives.RSA`.
|
|
220
|
-
*/
|
|
221
|
-
cacheKeyPair(keyPairInJwk: KeyPair<JsonWebKey>): Promise<KeyPair<CryptoKey>>;
|
|
222
|
-
/**
|
|
223
|
-
* @deprecated Usually you should not need this method, since the preferred sfk is automatically chosen by the extended entity apis when creating a
|
|
224
|
-
* new instance of the entity.
|
|
225
|
-
*/
|
|
226
|
-
extractPreferredSfk(parent: EncryptedParentEntity, hcpartyId: string, confidential: boolean): Promise<string | undefined>;
|
|
227
|
-
/**
|
|
228
|
-
* @deprecated you should not need this method anymore because everything related to entities encryption should be done either through the
|
|
229
|
-
* entity-specific extended api.
|
|
230
|
-
*/
|
|
231
|
-
decryptAndImportAesHcPartyKeysForDelegators(delegatorsHcPartyIdsSet: Array<string>, delegateHcPartyId: string, minCacheDurationInSeconds?: number): Promise<Array<DelegatorAndKeys>>;
|
|
232
|
-
/**
|
|
233
|
-
* @deprecated you should not need this method anymore because everything related to entities encryption should be done either through the
|
|
234
|
-
* entity-specific extended api.
|
|
235
|
-
* Note that currently this method does not cache results anymore (but the updated methods do).
|
|
236
|
-
*/
|
|
237
|
-
getEncryptedAesExchangeKeys(owner: DataOwner, delegateId: string): Promise<{
|
|
238
|
-
[pubKeyIdentifier: string]: {
|
|
239
|
-
[pubKeyFingerprint: string]: string;
|
|
240
|
-
};
|
|
241
|
-
}>;
|
|
242
|
-
/**
|
|
243
|
-
* @deprecated you should not use this method because initialisation of encrypted entities keys is done automatically by the entity-specific
|
|
244
|
-
* extended api. Also note that it is now forbidden to initialise an entity as a data owner which is not the current data owner: you should instead
|
|
245
|
-
* create the entity as the current data owner then create a delegation to the other data owner.
|
|
246
|
-
*/
|
|
247
|
-
initEncryptionKeys(createdObject: any, ownerId: string): Promise<{
|
|
248
|
-
encryptionKeys: any;
|
|
249
|
-
secretId: string;
|
|
250
|
-
}>;
|
|
251
|
-
/**
|
|
252
|
-
* @deprecated You should use:
|
|
253
|
-
* - {@link IccPatientXApi.decryptSecretIdsOf} or {@link IccMessageXApi.decryptSecretIdsOf} to get the delegation sfks (now called secret ids).
|
|
254
|
-
* - {@link IccDataOwnerXApi.getCurrentDataOwnerHierarchyIds} to get the full hierarchy for the current data owner (cached). The first element is
|
|
255
|
-
* the id of the topmost parent, while the last is the current data owner.
|
|
256
|
-
* Note that the behaviour of this method has some subtle changes compared to the past:
|
|
257
|
-
* - throws an error if the provided hcpartyId is not part of the current data owner hierarchy.
|
|
258
|
-
* - does not provide any guarantees on the ordering of the extracted keys
|
|
259
|
-
* - deduplicates extracted keys
|
|
260
|
-
*/
|
|
261
|
-
extractDelegationsSFKs(document: EncryptedEntity | null, hcpartyId?: string): Promise<{
|
|
262
|
-
extractedKeys: Array<string>;
|
|
263
|
-
hcpartyId?: string;
|
|
264
|
-
}>;
|
|
265
|
-
/**
|
|
266
|
-
* @deprecated (light) You should use:
|
|
267
|
-
* - {@link IccHelementXApi.decryptPatientIdOf}, {@link IccDocumentXApi.decryptMessageIdOf}, ... to get the crypted foreign keys.
|
|
268
|
-
* - {@link IccDataOwnerXApi.getCurrentDataOwnerHierarchyIds} to get the full hierarchy for the current data owner (cached). The first element is
|
|
269
|
-
* the id of the topmost parent, while the last is the current data owner.
|
|
270
|
-
* Note that the behaviour of this method has some subtle changes compared to the past:
|
|
271
|
-
* - throws an error if the provided hcpartyId is not part of the current data owner hierarchy.
|
|
272
|
-
* - does not provide any guarantees on the ordering of the extracted keys
|
|
273
|
-
* - deduplicates extracted keys
|
|
274
|
-
*/
|
|
275
|
-
extractCryptedFKs(document: EncryptedEntity | null, hcpartyId: string): Promise<{
|
|
276
|
-
extractedKeys: Array<string>;
|
|
277
|
-
hcpartyId: string;
|
|
278
|
-
}>;
|
|
279
|
-
/**
|
|
280
|
-
* @deprecated You should use the extended apis methods to encrypt/decrypt entities or their attachments
|
|
281
|
-
* Note that the behaviour of this method has some subtle changes compared to the past:
|
|
282
|
-
* - throws an error if the provided hcpartyId is not part of the current data owner hierarchy.
|
|
283
|
-
* - does not provide any guarantees on the ordering of the extracted keys
|
|
284
|
-
* - deduplicates extracted keys
|
|
285
|
-
*/
|
|
286
|
-
extractEncryptionsSKs(document: EncryptedEntity, hcpartyId: string): Promise<{
|
|
287
|
-
extractedKeys: Array<string>;
|
|
288
|
-
hcpartyId: string;
|
|
289
|
-
}>;
|
|
290
|
-
/**
|
|
291
|
-
* @deprecated You should not use this method anymore, depending on what you were passing as {@link delegations} you should replace this method as
|
|
292
|
-
* explained in {@link extractEncryptionsSKs} (if you were passing encryptionKeys), {@link extractCryptedFKs} (cryptedForeignKeys), or
|
|
293
|
-
* {@link extractDelegationsSFKs} (delegations).
|
|
294
|
-
*/
|
|
295
|
-
extractKeysFromDelegationsForHcpHierarchy(dataOwnerId: string, objectId: string, delegations: {
|
|
296
|
-
[key: string]: Array<Delegation>;
|
|
297
|
-
}): Promise<{
|
|
298
|
-
extractedKeys: Array<string>;
|
|
299
|
-
hcpartyId: string;
|
|
300
|
-
}>;
|
|
301
|
-
/**
|
|
302
|
-
* @deprecated you should not need this method anymore: the new API will automatically load on startup all keys available through the key storage
|
|
303
|
-
* facade and/or recoverable through transfer keys or shamir split. If you were using this method to load a key recovered through other means you
|
|
304
|
-
* will have to do so in your implementation of CryptoStrategies.
|
|
305
|
-
* You can convert the private key pkcs8 array to a jwk key using {@link pkcs8ToJwk} then you can extract the full key pair using
|
|
306
|
-
* {@link keyPairFromPrivateKeyJwk}.
|
|
307
|
-
*/
|
|
308
|
-
loadKeyPairsAsTextInBrowserLocalStorage(healthcarePartyId: string, privateKey: Uint8Array): Promise<void>;
|
|
309
|
-
/**
|
|
310
|
-
* @deprecated you should not need this method anymore: the new API will automatically load on startup all keys available through the key storage
|
|
311
|
-
* facade and/or recoverable through transfer keys or shamir split. If you were using this method to load a key recovered through other means you
|
|
312
|
-
* will have to do so in your implementation of CryptoStrategies.
|
|
313
|
-
* You can extract the full key pair using {@link keyPairFromPrivateKeyJwk}.
|
|
314
|
-
*/
|
|
315
|
-
loadKeyPairsAsJwkInBrowserLocalStorage(healthcarePartyId: string, privateKey: JsonWebKey): Promise<void>;
|
|
316
|
-
/**
|
|
317
|
-
* @deprecated you should not need this method anymore: the new API will automatically load on startup all keys available through the key storage
|
|
318
|
-
* facade and/or recoverable through transfer keys or shamir split. If you were using this method to load a key recovered through other means you
|
|
319
|
-
* will have to do so in your implementation of CryptoStrategies.
|
|
320
|
-
*/
|
|
321
|
-
loadKeyPairsInBrowserLocalStorage(healthcarePartyId: string, file: Blob): Promise<void>;
|
|
322
|
-
/**
|
|
323
|
-
* @deprecated keychains are not part of iCure's api: this method will be removed.
|
|
324
|
-
*/
|
|
325
|
-
saveKeychainInBrowserLocalStorage(id: string, keychain: number): void;
|
|
326
|
-
/**
|
|
327
|
-
* @deprecated keychains are not part of iCure's api: this method will be removed.
|
|
328
|
-
*/
|
|
329
|
-
saveKeychainInBrowserLocalStorageAsBase64(id: string, keyChainB64: string): void;
|
|
330
|
-
/**
|
|
331
|
-
* @deprecated keychains are not part of iCure's api: this method will be removed.
|
|
332
|
-
*/
|
|
333
|
-
saveKeychainValidityDateInBrowserLocalStorage(id: string, date: string): Promise<void>;
|
|
334
|
-
/**
|
|
335
|
-
* @deprecated keychains are not part of iCure's api: this method will be removed.
|
|
336
|
-
*
|
|
337
|
-
* Populate the HCP.options dict with an encrypted eHealth certificate and unencryped expiry date.
|
|
338
|
-
* Any potentially unencrypted certificates will be pruned from the HCP.
|
|
339
|
-
* @param hcpId Id of the hcp to modify
|
|
340
|
-
* @returns modified HCP
|
|
341
|
-
*/
|
|
342
|
-
saveKeyChainInHCPFromLocalStorage(hcpId: string): Promise<HealthcareParty>;
|
|
343
|
-
/**
|
|
344
|
-
* @deprecated keychains are not part of iCure's api: this method will be removed.
|
|
345
|
-
*/
|
|
346
|
-
importKeychainInBrowserFromHCP(hcpId: string): Promise<void>;
|
|
347
|
-
/**
|
|
348
|
-
* @deprecated e-health certificates and keychains are not part of iCure's api: this method will be removed.
|
|
349
|
-
*
|
|
350
|
-
* Synchronizes the eHealth certificate from the database into the LocalStorage, returning information on the presence
|
|
351
|
-
* of certificate data in either place.
|
|
352
|
-
*
|
|
353
|
-
* @param hcpId The healthcare party id
|
|
354
|
-
* @returns A Promise for an object that represents the existence of a certificate in local storage and in the DB,
|
|
355
|
-
* through the two boolean properties "local" and "remote".
|
|
356
|
-
*/
|
|
357
|
-
syncEhealthCertificateFromDatabase(hcpId: string): Promise<{
|
|
358
|
-
remote: boolean;
|
|
359
|
-
local: boolean;
|
|
360
|
-
}>;
|
|
361
|
-
/**
|
|
362
|
-
* @deprecated keychains are not part of iCure's api: this method will be removed.
|
|
363
|
-
*/
|
|
364
|
-
getKeychainInBrowserLocalStorageAsBase64(id: string): Promise<string | undefined>;
|
|
365
|
-
/**
|
|
366
|
-
* @deprecated keychains are not part of iCure's api: this method will be removed.
|
|
367
|
-
*/
|
|
368
|
-
getKeychainValidityDateInBrowserLocalStorage(id: string): Promise<string | undefined>;
|
|
369
|
-
/**
|
|
370
|
-
* @deprecated keychains are not part of iCure's api: this method will be removed.
|
|
371
|
-
*/
|
|
372
|
-
loadKeychainFromBrowserLocalStorage(id: string): Promise<Uint8Array[] | null>;
|
|
373
|
-
/**
|
|
374
|
-
* @deprecated you should not need this method anymore to deal with the encryption of iCure entities because everything related to entities
|
|
375
|
-
* encryption should be done through the entity-specific extended api.
|
|
376
|
-
* If instead you were using the method for other reasons check {@link getCachedRsaKeyPairForFingerprint} to get an idea of possible replacements.
|
|
377
|
-
*/
|
|
378
|
-
loadKeyPairNotImported(id: string, publicKeyFingerPrint?: string): Promise<{
|
|
379
|
-
publicKey: JsonWebKey;
|
|
380
|
-
privateKey: JsonWebKey;
|
|
381
|
-
} | undefined>;
|
|
382
|
-
/**
|
|
383
|
-
* @deprecated use {@link IccIcureMaintenanceXApi.applyKeyPairUpdate} instead.
|
|
384
|
-
*/
|
|
385
|
-
giveAccessBackTo(delegateUser: User, ownerId: string, ownerNewPublicKey: string): Promise<DataOwner>;
|
|
386
|
-
/**
|
|
387
|
-
* @deprecated You don't need to manually generate exchange keys as they will be automatically created by the api when needed.
|
|
388
|
-
* Note that this method has some changes compared to previous version:
|
|
389
|
-
* - The method may return any data owner (including devices)
|
|
390
|
-
* - The method will throw an exception if the provided ownerId does not match the current data owner
|
|
391
|
-
*/
|
|
392
|
-
generateKeyForDelegate(ownerId: string, delegateId: string): Promise<DataOwner>;
|
|
393
|
-
/**
|
|
394
|
-
* @deprecated replace with {@link IccDataOwnerXApi.getDataOwner}. Note that data owners are not cached anymore.
|
|
395
|
-
*/
|
|
396
|
-
getDataOwner(ownerId: string, loadIfMissingFromCache?: boolean): Promise<import("../icc-api/model/DataOwnerWithType").DataOwnerWithType>;
|
|
397
|
-
/**
|
|
398
|
-
* @deprecated the crypto api will automatically verify on startup the validity of private keys, but in some cases you may want to verify the
|
|
399
|
-
* validity of keys recovered in your implementation of {@link CryptoStrategies}: in this case the method has been replaced with
|
|
400
|
-
* {@link RSA.checkKeyPairValidity}
|
|
401
|
-
*/
|
|
402
|
-
checkPrivateKeyValidity(dataOwner: DataOwner): Promise<boolean>;
|
|
403
|
-
/**
|
|
404
|
-
* @deprecated (See {@link extractEncryptionsSKs} for a detailed explanation).
|
|
405
|
-
*/
|
|
406
|
-
getEncryptionDecryptionKeys(dataOwnerId: string, document: EncryptedEntity): Promise<Array<string> | undefined>;
|
|
407
|
-
/**
|
|
408
|
-
* @deprecated For the encryption/decryption of iCure entities and attachments you should rely solely on the extended apis methods.
|
|
409
|
-
*/
|
|
410
|
-
encryptDecrypt(method: 'encrypt' | 'decrypt', content: Uint8Array | ArrayBuffer, edKey?: string, user?: User, documentObject?: Document): Promise<Uint8Array | Array<any> | any>;
|
|
411
|
-
/**
|
|
412
|
-
* @deprecated you should not need to interact directly with the storage instance used by the iCure sdk.
|
|
413
|
-
*/
|
|
414
|
-
storeKeyPair(id: string, keyPair: {
|
|
415
|
-
publicKey: any;
|
|
416
|
-
privateKey: any;
|
|
417
|
-
}): void;
|
|
418
|
-
/**
|
|
419
|
-
* @deprecated This method is not safe as it allows any data owner to add a public key to other data owners. The method will be removed in future,
|
|
420
|
-
* additionally the user calling this method will require a special permission when calling it for another data owner.
|
|
421
|
-
* @param ownerId the id of the data owner which will have a new key.
|
|
422
|
-
*/
|
|
423
|
-
generateAndAddNewKeyPairForOwner(ownerId: string): Promise<{
|
|
424
|
-
dataOwner: HealthcareParty | Patient | Device;
|
|
425
|
-
publicKey: string;
|
|
426
|
-
privateKey: string;
|
|
427
|
-
}>;
|
|
428
129
|
}
|
|
429
|
-
export {};
|