@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.
@@ -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
  }
@@ -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
- applicationId?: string | undefined;
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
  }
@@ -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>>;
@@ -48,10 +48,10 @@ export declare namespace InternalSdkInitializers.$metadata$ {
48
48
  private constructor();
49
49
  }
50
50
  abstract class constructor {
51
- initializeSdk(applicationId: Nullable<string>, baseUrl: string, authenticationMethod: options.AuthenticationMethod, storageFacade: any, options: Nullable<options.SdkOptions>): Promise<sdk.CardinalSdk>;
52
- initializeWithProcess(applicationId: 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(applicationId: Nullable<string>, baseUrl: string, authenticationMethod: options.AuthenticationMethod, options: Nullable<options.BasicSdkOptions>): Promise<sdk.CardinalBaseSdk>;
54
- initializeWithProcessBase(applicationId: 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>;
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
  }