@icure/cardinal-sdk 2.0.0-PREVIEW-24 → 2.0.0-PREVIEW-25
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/api/CryptoApi.d.mts +2 -0
- package/api/CryptoInGroupApi.d.mts +2 -0
- package/api/GroupApi.d.mts +6 -1
- package/api/PatientApi.d.mts +2 -0
- package/cardinal-sdk-ts.d.mts +4 -4
- package/cardinal-sdk-ts.mjs +30979 -30535
- package/cardinal-sdk.mjs +66078 -65146
- package/crypto/CryptoStrategies.d.mts +1 -1
- package/crypto/entities/EntityWithEncryptionMetadataTypeName.d.mts +18 -0
- package/crypto/entities/EntityWithEncryptionMetadataTypeName.mjs +20 -0
- package/crypto.d.mts +1 -0
- package/crypto.mjs +1 -0
- package/kotlin-kotlin-stdlib.mjs +10 -10
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +446 -429
- package/ktor-ktor-client-core.mjs +21 -21
- package/ktor-ktor-http-cio.mjs +3 -3
- package/ktor-ktor-http.mjs +5 -5
- package/ktor-ktor-serialization.mjs +1 -1
- package/ktor-ktor-utils.mjs +7 -7
- package/model/Group.d.mts +1 -1
- package/model/Group.mjs +6 -6
- package/model/RegistrationInformation.d.mts +1 -1
- package/model/RegistrationInformation.mjs +6 -6
- package/package.json +1 -1
- package/sdk/CardinalSdk.d.mts +8 -8
- package/sdk/CardinalSdk.mjs +12 -12
package/api/CryptoApi.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EntityWithEncryptionMetadataTypeName } from '../crypto/entities/EntityWithEncryptionMetadataTypeName.mjs';
|
|
1
2
|
import { ExchangeDataInjectionDetails } from '../crypto/entities/ExchangeDataInjectionDetails.mjs';
|
|
2
3
|
import { RawDecryptedExchangeData } from '../crypto/entities/RawDecryptedExchangeData.mjs';
|
|
3
4
|
import { Pkcs8Bytes } from '../model/specializations/Pkcs8Bytes.mjs';
|
|
@@ -6,6 +7,7 @@ import { ShamirKeysManagerApi } from './ShamirKeysManagerApi.mjs';
|
|
|
6
7
|
export interface CryptoApi {
|
|
7
8
|
shamirKeysManager: ShamirKeysManagerApi;
|
|
8
9
|
inGroup: CryptoInGroupApi;
|
|
10
|
+
getAccessControlKeys(entityType: EntityWithEncryptionMetadataTypeName): Promise<Array<string>>;
|
|
9
11
|
forceReload(): Promise<void>;
|
|
10
12
|
currentDataOwnerKeys(options?: {
|
|
11
13
|
filterTrustedKeys?: boolean;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { EntityWithEncryptionMetadataTypeName } from '../crypto/entities/EntityWithEncryptionMetadataTypeName.mjs';
|
|
1
2
|
import { RawDecryptedExchangeData } from '../crypto/entities/RawDecryptedExchangeData.mjs';
|
|
2
3
|
import { EntityReferenceInGroup } from '../model/EntityReferenceInGroup.mjs';
|
|
3
4
|
export interface CryptoInGroupApi {
|
|
4
5
|
keylessCreateExchangeDataTo(groupId: string | undefined, delegate: EntityReferenceInGroup): Promise<RawDecryptedExchangeData>;
|
|
6
|
+
getAccessControlKeys(groupId: string | undefined, entityType: EntityWithEncryptionMetadataTypeName): Promise<Array<string>>;
|
|
5
7
|
}
|
package/api/GroupApi.d.mts
CHANGED
|
@@ -7,6 +7,7 @@ import { PaginatedList } from '../model/PaginatedList.mjs';
|
|
|
7
7
|
import { RegistrationInformation } from '../model/RegistrationInformation.mjs';
|
|
8
8
|
import { RegistrationSuccess } from '../model/RegistrationSuccess.mjs';
|
|
9
9
|
import { ReplicationInfo } from '../model/ReplicationInfo.mjs';
|
|
10
|
+
import { CodeStub } from '../model/base/CodeStub.mjs';
|
|
10
11
|
import { DesignDocument } from '../model/couchdb/DesignDocument.mjs';
|
|
11
12
|
import { DocIdentifier } from '../model/couchdb/DocIdentifier.mjs';
|
|
12
13
|
import { GroupDatabasesInfo } from '../model/couchdb/GroupDatabasesInfo.mjs';
|
|
@@ -25,7 +26,7 @@ export interface GroupApi {
|
|
|
25
26
|
q?: number | undefined;
|
|
26
27
|
n?: number | undefined;
|
|
27
28
|
superGroup?: string | undefined;
|
|
28
|
-
|
|
29
|
+
projectId?: string | undefined;
|
|
29
30
|
}): Promise<Group>;
|
|
30
31
|
registerNewGroupAdministrator(registrationInformation: RegistrationInformation, options?: {
|
|
31
32
|
type?: GroupType | undefined;
|
|
@@ -71,4 +72,8 @@ export interface GroupApi {
|
|
|
71
72
|
createOrUpdateExternalJwtConfig(groupId: string, key: string, config: ExternalJwtConfig): Promise<Group>;
|
|
72
73
|
removeExternalJwtConfig(groupId: string, key: string): Promise<Group>;
|
|
73
74
|
getOperationTokenForGroup(groupId: string, operation: Operation, duration: number | undefined, description: string | undefined): Promise<string>;
|
|
75
|
+
setGroupProjectId(groupId: string, projectId: string | undefined, applyToSubgroups: boolean): Promise<void>;
|
|
76
|
+
modifyGroupApplicationId(id: string, applicationId: string): Promise<Group>;
|
|
77
|
+
addTagToGroup(id: string, rev: string, tag: CodeStub): Promise<Group>;
|
|
78
|
+
removeTagFromGroup(id: string, rev: string, tagId: string): Promise<Group>;
|
|
74
79
|
}
|
package/api/PatientApi.d.mts
CHANGED
|
@@ -48,6 +48,8 @@ export interface PatientApi {
|
|
|
48
48
|
sharingWith?: {
|
|
49
49
|
[key: string]: AccessLevel;
|
|
50
50
|
};
|
|
51
|
+
ignoreIfEncryptionMetadataExists?: boolean;
|
|
52
|
+
alternateRootDelegateId?: string | undefined;
|
|
51
53
|
}): Promise<EncryptedPatient>;
|
|
52
54
|
deletePatientUnsafe(entityId: string): Promise<StoredDocumentIdentifier>;
|
|
53
55
|
deletePatientsUnsafe(entityIds: Array<string>): Promise<Array<StoredDocumentIdentifier>>;
|
package/cardinal-sdk-ts.d.mts
CHANGED
|
@@ -48,10 +48,10 @@ export declare namespace InternalSdkInitializers.$metadata$ {
|
|
|
48
48
|
private constructor();
|
|
49
49
|
}
|
|
50
50
|
abstract class constructor {
|
|
51
|
-
initializeSdk(
|
|
52
|
-
initializeWithProcess(
|
|
53
|
-
initializeBase(
|
|
54
|
-
initializeWithProcessBase(
|
|
51
|
+
initializeSdk(projectId: Nullable<string>, baseUrl: string, authenticationMethod: options.AuthenticationMethod, storageFacade: any, options: Nullable<options.SdkOptions>): Promise<sdk.CardinalSdk>;
|
|
52
|
+
initializeWithProcess(projectId: Nullable<string>, baseUrl: string, messageGatewayUrl: string, externalServicesSpecId: string, processId: string, userTelecomType: string, userTelecom: string, captchaOptions: auth.CaptchaOptions, baseStorage: any, authenticationProcessTemplateParameters: Nullable<options.AuthenticationProcessTemplateParameters>, options: Nullable<options.SdkOptions>): Promise<sdk.CardinalSdk.AuthenticationWithProcessStep>;
|
|
53
|
+
initializeBase(projectId: Nullable<string>, baseUrl: string, authenticationMethod: options.AuthenticationMethod, options: Nullable<options.BasicSdkOptions>): Promise<sdk.CardinalBaseSdk>;
|
|
54
|
+
initializeWithProcessBase(projectId: Nullable<string>, baseUrl: string, messageGatewayUrl: string, externalServicesSpecId: string, processId: string, userTelecomType: string, userTelecom: string, captchaOptions: auth.CaptchaOptions, authenticationProcessTemplateParameters: Nullable<options.AuthenticationProcessTemplateParameters>, options: Nullable<options.BasicSdkOptions>): Promise<sdk.CardinalBaseSdk.BaseAuthenticationWithProcessStep>;
|
|
55
55
|
initializeAnonymous(baseUrl: string, options: Nullable<options.AnonymousSdkOptions>): sdk.CardinalAnonymousSdk;
|
|
56
56
|
private constructor();
|
|
57
57
|
}
|