@iblai/data-layer 1.41.0 → 1.42.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.
package/dist/index.js CHANGED
@@ -45859,6 +45859,23 @@ const SUGGESTED_PRIVACY_ENTITIES = [
45859
45859
  ];
45860
45860
  const DEFAULT_PRIVACY_RESPONSE = 'Your message contains sensitive personal information and cannot be processed. Please remove any personal data and try again.';
45861
45861
  const DEFAULT_PRIVACY_ACTION = 'redact';
45862
+ // Hardcoded until the settings API schema exposes the PHI entities as an enum.
45863
+ // The backend rejects any other name, so this list must match it exactly.
45864
+ const PHI_ENTITY_TYPES = [
45865
+ 'DISEASE_DISORDER',
45866
+ 'MEDICATION',
45867
+ 'THERAPEUTIC_PROCEDURE',
45868
+ 'BIOLOGICAL_STRUCTURE',
45869
+ 'CLINICAL_EVENT',
45870
+ 'BIOLOGICAL_ATTRIBUTE',
45871
+ 'HISTORY',
45872
+ 'FAMILY_HISTORY',
45873
+ 'MEDICAL_RECORD_NUMBER',
45874
+ 'HEALTH_PLAN_BENEFICIARY_NUMBER',
45875
+ 'ACCOUNT_NUMBER',
45876
+ 'DEVICE_SERIAL_NUMBER',
45877
+ ];
45878
+ const DEFAULT_PHI_ACTION = 'allow';
45862
45879
  /**
45863
45880
  * `kind` value the backend returns on chat WS / SSE messages when a request
45864
45881
  * is rejected by the privacy router (action = "block"). Sits alongside the
@@ -50947,6 +50964,7 @@ exports.CUSTOM_DOMAIN_ENDPOINTS = CUSTOM_DOMAIN_ENDPOINTS;
50947
50964
  exports.CUSTOM_DOMAIN_QUERY_KEYS = CUSTOM_DOMAIN_QUERY_KEYS;
50948
50965
  exports.CUSTOM_DOMAIN_REDUCER_PATH = CUSTOM_DOMAIN_REDUCER_PATH;
50949
50966
  exports.ChatPrivacyModeEnum = ChatPrivacyModeEnum;
50967
+ exports.DEFAULT_PHI_ACTION = DEFAULT_PHI_ACTION;
50950
50968
  exports.DEFAULT_PRIVACY_ACTION = DEFAULT_PRIVACY_ACTION;
50951
50969
  exports.DEFAULT_PRIVACY_RESPONSE = DEFAULT_PRIVACY_RESPONSE;
50952
50970
  exports.DISCLAIMERS_ENDPOINTS = DISCLAIMERS_ENDPOINTS;
@@ -50984,6 +51002,7 @@ exports.NEVER_RETRY_STATUSES = NEVER_RETRY_STATUSES;
50984
51002
  exports.NOTIFICATIONS_CUSTOM_ENDPOINTS = NOTIFICATIONS_CUSTOM_ENDPOINTS;
50985
51003
  exports.NOTIFICATIONS_CUSTOM_REDUCER_PATH = NOTIFICATIONS_CUSTOM_REDUCER_PATH;
50986
51004
  exports.NOTIFICATIONS_CUSTOM_TAGS = NOTIFICATIONS_CUSTOM_TAGS;
51005
+ exports.PHI_ENTITY_TYPES = PHI_ENTITY_TYPES;
50987
51006
  exports.PLATFORM_AUDIT_ACTION_CODES = PLATFORM_AUDIT_ACTION_CODES;
50988
51007
  exports.PLATFORM_AUDIT_EVENT_TYPES = PLATFORM_AUDIT_EVENT_TYPES;
50989
51008
  exports.PLATFORM_AUDIT_LOGS_MAX_LIMIT = PLATFORM_AUDIT_LOGS_MAX_LIMIT;