@amigo-ai/platform-sdk 0.52.0 → 0.53.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.
@@ -2710,7 +2710,7 @@ export interface paths {
2710
2710
  put?: never;
2711
2711
  /**
2712
2712
  * Import FHIR Bundle
2713
- * @description Import a FHIR Bundle. Decomposes into events and creates patient entities.
2713
+ * @description Import a FHIR Bundle. Decomposes supported resources into upserted world events and creates patient entities. Unsupported resource types are skipped and reported; omitted resources are not deleted.
2714
2714
  */
2715
2715
  post: operations["fhir-import"];
2716
2716
  delete?: never;
@@ -2730,7 +2730,7 @@ export interface paths {
2730
2730
  put?: never;
2731
2731
  /**
2732
2732
  * Import FHIR resources via NDJSON streaming
2733
- * @description Stream FHIR resources as NDJSON (one resource per line). Bypasses the buffered-body size cap on /fhir/import. Callers MUST send Patient resources before resources that reference them, and MUST pre-resolve any bundle-internal urn:uuid: references.
2733
+ * @description Stream FHIR resources as NDJSON (one resource per line). Bypasses the buffered-body size cap on /fhir/import. Callers MUST pre-resolve any bundle-internal urn:uuid: references. Unsupported resource types are skipped and reported; omitted resources are not deleted.
2734
2734
  */
2735
2735
  post: operations["fhir-import-stream"];
2736
2736
  delete?: never;
@@ -15881,15 +15881,37 @@ export interface components {
15881
15881
  source?: string;
15882
15882
  /** Source System */
15883
15883
  source_system?: string | null;
15884
+ /**
15885
+ * @description Controls resources whose resourceType is missing or not projected by platform FHIR APIs. 'error' skips the resource and adds a per-resource error; 'skip' skips it without adding an error. Unsupported resources are never emitted as silent raw world events.
15886
+ * @default error
15887
+ */
15888
+ unsupported_resource_policy?: components["schemas"]["FhirUnsupportedResourcePolicy"];
15884
15889
  };
15885
15890
  /** FhirImportResponse */
15886
15891
  FhirImportResponse: {
15892
+ /**
15893
+ * Absence Semantics
15894
+ * @description Resources omitted from a later bundle are not deleted or archived by import.
15895
+ * @default absent_resources_persist
15896
+ * @constant
15897
+ */
15898
+ absence_semantics?: "absent_resources_persist";
15887
15899
  /** Entities Created */
15888
15900
  entities_created: number;
15889
15901
  /** Entities Updated */
15890
15902
  entities_updated: number;
15903
+ /**
15904
+ * Error Count
15905
+ * @default 0
15906
+ */
15907
+ error_count?: number;
15891
15908
  /** Errors */
15892
15909
  errors?: string[];
15910
+ /**
15911
+ * Errors Truncated
15912
+ * @default false
15913
+ */
15914
+ errors_truncated?: boolean;
15893
15915
  /** Events Created */
15894
15916
  events_created: number;
15895
15917
  /**
@@ -15902,6 +15924,25 @@ export interface components {
15902
15924
  * @default 0
15903
15925
  */
15904
15926
  events_updated?: number;
15927
+ /**
15928
+ * Unsupported Resource Count
15929
+ * @default 0
15930
+ */
15931
+ unsupported_resource_count?: number;
15932
+ /** Unsupported Resources */
15933
+ unsupported_resources?: components["schemas"]["FhirUnsupportedResourceItem"][];
15934
+ /**
15935
+ * Unsupported Resources Truncated
15936
+ * @default false
15937
+ */
15938
+ unsupported_resources_truncated?: boolean;
15939
+ /**
15940
+ * Upsert Semantics
15941
+ * @description FHIR import uses workspace + resourceType + id as the natural key. Identical re-uploads can be deduped; changed resources supersede prior current events.
15942
+ * @default same_resource_id_upsert
15943
+ * @constant
15944
+ */
15945
+ upsert_semantics?: "same_resource_id_upsert";
15905
15946
  };
15906
15947
  /** FhirLocationListResponse */
15907
15948
  FhirLocationListResponse: {
@@ -16309,6 +16350,19 @@ export interface components {
16309
16350
  /** Sync Healthy */
16310
16351
  sync_healthy?: boolean | null;
16311
16352
  };
16353
+ /** FhirUnsupportedResourceItem */
16354
+ FhirUnsupportedResourceItem: {
16355
+ /** Location */
16356
+ location: string;
16357
+ /** Reason */
16358
+ reason: string;
16359
+ /** Resource Id */
16360
+ resource_id?: string | null;
16361
+ /** Resource Type */
16362
+ resource_type?: string | null;
16363
+ };
16364
+ /** @enum {string} */
16365
+ FhirUnsupportedResourcePolicy: "error" | "skip";
16312
16366
  /** FhirWriteRequest */
16313
16367
  FhirWriteRequest: {
16314
16368
  /** Data */
@@ -35698,6 +35752,8 @@ export interface operations {
35698
35752
  data_source_id?: string | null;
35699
35753
  /** @description Skip identical re-uploads via content-hash dedup */
35700
35754
  dedup?: boolean;
35755
+ /** @description Use 'error' to report unsupported resources, or 'skip' to skip them without errors. */
35756
+ unsupported_resource_policy?: components["schemas"]["FhirUnsupportedResourcePolicy"];
35701
35757
  };
35702
35758
  header?: never;
35703
35759
  path: {