@medplum/core 4.3.11 → 4.3.13

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.
@@ -7,6 +7,7 @@ import { Binary } from '@medplum/fhirtypes';
7
7
  import { Bot } from '@medplum/fhirtypes';
8
8
  import { BulkDataExport } from '@medplum/fhirtypes';
9
9
  import { Bundle } from '@medplum/fhirtypes';
10
+ import { ClientApplication } from '@medplum/fhirtypes';
10
11
  import { CodeableConcept } from '@medplum/fhirtypes';
11
12
  import { Coding } from '@medplum/fhirtypes';
12
13
  import { Communication } from '@medplum/fhirtypes';
@@ -351,6 +352,7 @@ export declare interface BotEvent<T = unknown> {
351
352
  readonly input: T;
352
353
  readonly secrets: Record<string, ProjectSetting>;
353
354
  readonly traceId?: string;
355
+ readonly requester?: Reference<Bot | ClientApplication | Patient | Practitioner | RelatedPerson>;
354
356
  /** Headers from the original request, when invoked by HTTP request */
355
357
  readonly headers?: Record<string, string | string[] | undefined>;
356
358
  }
@@ -2409,6 +2411,7 @@ export declare interface InviteRequest {
2409
2411
  membership?: Partial<ProjectMembership>;
2410
2412
  upsert?: boolean;
2411
2413
  forceNewMembership?: boolean;
2414
+ mfaRequired?: boolean;
2412
2415
  /** @deprecated Use membership.accessPolicy instead. */
2413
2416
  accessPolicy?: Reference<AccessPolicy>;
2414
2417
  /** @deprecated Use membership.access instead. */
@@ -2846,7 +2849,9 @@ export declare interface LoggerOptions {
2846
2849
 
2847
2850
  export declare interface LoginAuthenticationResponse {
2848
2851
  readonly login: string;
2852
+ readonly mfaEnrollRequired?: boolean;
2849
2853
  readonly mfaRequired?: boolean;
2854
+ readonly enrollQrCode?: string;
2850
2855
  readonly code?: string;
2851
2856
  readonly memberships?: ProjectMembership[];
2852
2857
  }
@@ -3608,10 +3613,11 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
3608
3613
  * @category Read
3609
3614
  * @param resourceType - The FHIR resource type.
3610
3615
  * @param id - The resource ID.
3611
- * @param options - Optional fetch options.
3616
+ * @param options - Optional history options.
3617
+ * @param requestOptions - Optional fetch options.
3612
3618
  * @returns Promise to the resource history.
3613
3619
  */
3614
- readHistory<RT extends ResourceType>(resourceType: RT, id: string, options?: MedplumRequestOptions): ReadablePromise<Bundle<WithId<ExtractResource<RT>>>>;
3620
+ readHistory<RT extends ResourceType>(resourceType: RT, id: string, options?: ReadHistoryOptions, requestOptions?: MedplumRequestOptions): ReadablePromise<Bundle<WithId<ExtractResource<RT>>>>;
3615
3621
  /**
3616
3622
  * Reads a specific version of a resource by resource type, ID, and version ID.
3617
3623
  *
@@ -4925,7 +4931,9 @@ export declare interface MedplumInfraConfig {
4925
4931
  [key: string]: string;
4926
4932
  };
4927
4933
  }[];
4934
+ /** @deprecated Use containerInsightsV2 instead */
4928
4935
  containerInsights?: boolean;
4936
+ containerInsightsV2?: 'enabled' | 'disabled' | 'enhanced';
4929
4937
  cloudTrailAlarms?: {
4930
4938
  logGroupName: string;
4931
4939
  logGroupCreate?: boolean;
@@ -5079,7 +5087,9 @@ export declare interface MedplumSourceInfraConfig {
5079
5087
  [key: string]: ValueOrExternalSecret<string>;
5080
5088
  };
5081
5089
  }[];
5090
+ /** @deprecated Use containerInsightsV2 instead */
5082
5091
  containerInsights?: ValueOrExternalSecret<boolean>;
5092
+ containerInsightsV2?: ValueOrExternalSecret<'enabled' | 'disabled' | 'enhanced'>;
5083
5093
  cloudTrailAlarms?: {
5084
5094
  logGroupName: ValueOrExternalSecret<string>;
5085
5095
  logGroupCreate?: ValueOrExternalSecret<boolean>;
@@ -5780,6 +5790,11 @@ export declare class ReadablePromise<T> implements Promise<T> {
5780
5790
  finally(onfinally?: (() => void) | null): Promise<T>;
5781
5791
  }
5782
5792
 
5793
+ export declare interface ReadHistoryOptions {
5794
+ readonly count?: number;
5795
+ readonly offset?: number;
5796
+ }
5797
+
5783
5798
  export declare const readInteractions: AccessPolicyInteraction[];
5784
5799
 
5785
5800
  export declare class ReconnectingWebSocket<WS extends IWebSocket = WebSocket> extends TypedEventTarget<WebSocketEventMap_2> implements IReconnectingWebSocket {
@@ -6037,6 +6052,15 @@ export declare interface SelectionStructure {
6037
6052
  unionAll?: SelectionStructure[];
6038
6053
  }
6039
6054
 
6055
+ /**
6056
+ * Serializes an Error object into a plain object, including nested causes and custom properties.
6057
+ * @param error - The error to serialize.
6058
+ * @param depth - The current depth of recursion.
6059
+ * @param maxDepth - The maximum depth of recursion.
6060
+ * @returns A serialized representation of the error.
6061
+ */
6062
+ export declare function serializeError(error: Error, depth?: number, maxDepth?: number): Record<string, any>;
6063
+
6040
6064
  /**
6041
6065
  * Creates a serialized url-encoded payload for a `FHIRcast` subscription from a `SubscriptionRequest` object that can be directly used in an HTTP request to the Hub.
6042
6066
  *
@@ -7,6 +7,7 @@ import { Binary } from '@medplum/fhirtypes';
7
7
  import { Bot } from '@medplum/fhirtypes';
8
8
  import { BulkDataExport } from '@medplum/fhirtypes';
9
9
  import { Bundle } from '@medplum/fhirtypes';
10
+ import { ClientApplication } from '@medplum/fhirtypes';
10
11
  import { CodeableConcept } from '@medplum/fhirtypes';
11
12
  import { Coding } from '@medplum/fhirtypes';
12
13
  import { Communication } from '@medplum/fhirtypes';
@@ -351,6 +352,7 @@ export declare interface BotEvent<T = unknown> {
351
352
  readonly input: T;
352
353
  readonly secrets: Record<string, ProjectSetting>;
353
354
  readonly traceId?: string;
355
+ readonly requester?: Reference<Bot | ClientApplication | Patient | Practitioner | RelatedPerson>;
354
356
  /** Headers from the original request, when invoked by HTTP request */
355
357
  readonly headers?: Record<string, string | string[] | undefined>;
356
358
  }
@@ -2409,6 +2411,7 @@ export declare interface InviteRequest {
2409
2411
  membership?: Partial<ProjectMembership>;
2410
2412
  upsert?: boolean;
2411
2413
  forceNewMembership?: boolean;
2414
+ mfaRequired?: boolean;
2412
2415
  /** @deprecated Use membership.accessPolicy instead. */
2413
2416
  accessPolicy?: Reference<AccessPolicy>;
2414
2417
  /** @deprecated Use membership.access instead. */
@@ -2846,7 +2849,9 @@ export declare interface LoggerOptions {
2846
2849
 
2847
2850
  export declare interface LoginAuthenticationResponse {
2848
2851
  readonly login: string;
2852
+ readonly mfaEnrollRequired?: boolean;
2849
2853
  readonly mfaRequired?: boolean;
2854
+ readonly enrollQrCode?: string;
2850
2855
  readonly code?: string;
2851
2856
  readonly memberships?: ProjectMembership[];
2852
2857
  }
@@ -3608,10 +3613,11 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
3608
3613
  * @category Read
3609
3614
  * @param resourceType - The FHIR resource type.
3610
3615
  * @param id - The resource ID.
3611
- * @param options - Optional fetch options.
3616
+ * @param options - Optional history options.
3617
+ * @param requestOptions - Optional fetch options.
3612
3618
  * @returns Promise to the resource history.
3613
3619
  */
3614
- readHistory<RT extends ResourceType>(resourceType: RT, id: string, options?: MedplumRequestOptions): ReadablePromise<Bundle<WithId<ExtractResource<RT>>>>;
3620
+ readHistory<RT extends ResourceType>(resourceType: RT, id: string, options?: ReadHistoryOptions, requestOptions?: MedplumRequestOptions): ReadablePromise<Bundle<WithId<ExtractResource<RT>>>>;
3615
3621
  /**
3616
3622
  * Reads a specific version of a resource by resource type, ID, and version ID.
3617
3623
  *
@@ -4925,7 +4931,9 @@ export declare interface MedplumInfraConfig {
4925
4931
  [key: string]: string;
4926
4932
  };
4927
4933
  }[];
4934
+ /** @deprecated Use containerInsightsV2 instead */
4928
4935
  containerInsights?: boolean;
4936
+ containerInsightsV2?: 'enabled' | 'disabled' | 'enhanced';
4929
4937
  cloudTrailAlarms?: {
4930
4938
  logGroupName: string;
4931
4939
  logGroupCreate?: boolean;
@@ -5079,7 +5087,9 @@ export declare interface MedplumSourceInfraConfig {
5079
5087
  [key: string]: ValueOrExternalSecret<string>;
5080
5088
  };
5081
5089
  }[];
5090
+ /** @deprecated Use containerInsightsV2 instead */
5082
5091
  containerInsights?: ValueOrExternalSecret<boolean>;
5092
+ containerInsightsV2?: ValueOrExternalSecret<'enabled' | 'disabled' | 'enhanced'>;
5083
5093
  cloudTrailAlarms?: {
5084
5094
  logGroupName: ValueOrExternalSecret<string>;
5085
5095
  logGroupCreate?: ValueOrExternalSecret<boolean>;
@@ -5780,6 +5790,11 @@ export declare class ReadablePromise<T> implements Promise<T> {
5780
5790
  finally(onfinally?: (() => void) | null): Promise<T>;
5781
5791
  }
5782
5792
 
5793
+ export declare interface ReadHistoryOptions {
5794
+ readonly count?: number;
5795
+ readonly offset?: number;
5796
+ }
5797
+
5783
5798
  export declare const readInteractions: AccessPolicyInteraction[];
5784
5799
 
5785
5800
  export declare class ReconnectingWebSocket<WS extends IWebSocket = WebSocket> extends TypedEventTarget<WebSocketEventMap_2> implements IReconnectingWebSocket {
@@ -6037,6 +6052,15 @@ export declare interface SelectionStructure {
6037
6052
  unionAll?: SelectionStructure[];
6038
6053
  }
6039
6054
 
6055
+ /**
6056
+ * Serializes an Error object into a plain object, including nested causes and custom properties.
6057
+ * @param error - The error to serialize.
6058
+ * @param depth - The current depth of recursion.
6059
+ * @param maxDepth - The maximum depth of recursion.
6060
+ * @returns A serialized representation of the error.
6061
+ */
6062
+ export declare function serializeError(error: Error, depth?: number, maxDepth?: number): Record<string, any>;
6063
+
6040
6064
  /**
6041
6065
  * Creates a serialized url-encoded payload for a `FHIRcast` subscription from a `SubscriptionRequest` object that can be directly used in an HTTP request to the Hub.
6042
6066
  *