@healthcloudai/hc-sdk 0.5.0 → 0.7.1

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
@@ -10,7 +10,8 @@ var SERVICES = [
10
10
  "session",
11
11
  "telehealth",
12
12
  "fieldagent",
13
- "mcp"
13
+ "mcp",
14
+ "connectors"
14
15
  ];
15
16
  function isServiceName(value) {
16
17
  return SERVICES.includes(value);
@@ -696,6 +697,2974 @@ var VitalsClient = class extends BaseServiceClient {
696
697
  }
697
698
  };
698
699
 
700
+ // src/clients/connectors/ConnectorFactory.ts
701
+ function assertConfigObject(connectorName, config) {
702
+ if (typeof config !== "object" || config === null || Array.isArray(config)) {
703
+ throw new TypeError(`${connectorName}.createClient(...) requires a configuration object.`);
704
+ }
705
+ }
706
+ function validateRequestCredentials(connectorName, credentials) {
707
+ const missing = Object.entries(credentials).filter(([, value]) => value === void 0 || value === null || typeof value === "string" && value.trim() === "").map(([key]) => key).sort();
708
+ if (missing.length > 0) {
709
+ throw new Error(`Missing required connector configuration for ${connectorName}: ${missing.join(", ")}`);
710
+ }
711
+ }
712
+ var ConnectorFactory = class {
713
+ constructor(connectorName, http, Client, mapConfig) {
714
+ this.connectorName = connectorName;
715
+ this.http = http;
716
+ this.Client = Client;
717
+ this.mapConfig = mapConfig;
718
+ }
719
+ createClient(config) {
720
+ assertConfigObject(this.connectorName, config);
721
+ const credentials = this.mapConfig(config);
722
+ validateRequestCredentials(this.connectorName, credentials);
723
+ return new this.Client(this.http, credentials);
724
+ }
725
+ };
726
+ var PublicConnectorFactory = class {
727
+ constructor(http, Client) {
728
+ this.http = http;
729
+ this.Client = Client;
730
+ }
731
+ createClient() {
732
+ return new this.Client(this.http, {});
733
+ }
734
+ };
735
+
736
+ // src/clients/connectors/ConnectorClient.ts
737
+ var SENSITIVE_KEYS = /* @__PURE__ */ new Set([
738
+ "api_key",
739
+ "auth_token",
740
+ "basic_token",
741
+ "client_secret",
742
+ "password",
743
+ "private_key",
744
+ "secret",
745
+ "secret_key",
746
+ "token"
747
+ ]);
748
+ function isPlainObject(value) {
749
+ if (typeof value !== "object" || value === null || Array.isArray(value)) return false;
750
+ const proto = Object.getPrototypeOf(value);
751
+ return proto === Object.prototype || proto === null;
752
+ }
753
+ function snakeCaseKey(key) {
754
+ return key.replace(/([a-z0-9])([A-Z])/g, "$1_$2").replace(/([A-Z])([A-Z][a-z])/g, "$1_$2").replace(/([A-Za-z])(ID|URL|URI|NPI|API|UUID|GUID|SSN|DOB)$/g, "$1_$2").replace(/[ -]/g, "_").toLowerCase();
755
+ }
756
+ function toSnakeCase(value) {
757
+ if (Array.isArray(value)) return value.map(toSnakeCase);
758
+ if (!isPlainObject(value)) return value;
759
+ return Object.fromEntries(
760
+ Object.entries(value).map(([key, child]) => [snakeCaseKey(key), toSnakeCase(child)])
761
+ );
762
+ }
763
+ var ConnectorClient = class extends BaseServiceClient {
764
+ constructor(http, credentials = {}) {
765
+ super(http, "connectors");
766
+ this.connectorCredentials = Object.freeze({ ...credentials });
767
+ }
768
+ async send(method, path, options = {}) {
769
+ const requestOptions = this.withCredentials(method, options);
770
+ try {
771
+ return toSnakeCase(await super.send(method, path, requestOptions));
772
+ } catch (error) {
773
+ if (!(error instanceof SDKError)) throw error;
774
+ throw new SDKError({
775
+ message: this.redactText(error.message),
776
+ statusCode: error.statusCode,
777
+ response: toSnakeCase(this.redactValue(error.response)),
778
+ cause: error.cause
779
+ });
780
+ }
781
+ }
782
+ withCredentials(method, options) {
783
+ if (method === "GET" || method === "DELETE") return options;
784
+ const body = options.body;
785
+ const merged = { ...this.connectorCredentials };
786
+ if (body === void 0) {
787
+ return { ...options, body: toSnakeCase(merged) };
788
+ }
789
+ if (!isPlainObject(body)) {
790
+ return options;
791
+ }
792
+ for (const [key, value] of Object.entries(body)) {
793
+ if (value === void 0 || value === null) continue;
794
+ if (SENSITIVE_KEYS.has(key) && key in this.connectorCredentials) continue;
795
+ merged[key] = value;
796
+ }
797
+ return { ...options, body: toSnakeCase(merged) };
798
+ }
799
+ sensitiveValues() {
800
+ return Object.entries(this.connectorCredentials).filter(([key, value]) => SENSITIVE_KEYS.has(key) && typeof value === "string" && value.length > 0).map(([, value]) => value).sort((a, b) => b.length - a.length);
801
+ }
802
+ redactText(value) {
803
+ let redacted = value;
804
+ for (const secret of this.sensitiveValues()) {
805
+ redacted = redacted.split(secret).join("[REDACTED]");
806
+ }
807
+ return redacted.replace(/(bearer\s+)[A-Za-z0-9._~+/=-]+/gi, "$1[REDACTED]");
808
+ }
809
+ redactValue(value, key) {
810
+ if (key && SENSITIVE_KEYS.has(key)) return "[REDACTED]";
811
+ if (Array.isArray(value)) return value.map((item) => this.redactValue(item));
812
+ if (isPlainObject(value)) {
813
+ return Object.fromEntries(
814
+ Object.entries(value).map(([childKey, child]) => [childKey, this.redactValue(child, childKey)])
815
+ );
816
+ }
817
+ if (typeof value === "string") return this.redactText(value);
818
+ return value;
819
+ }
820
+ };
821
+
822
+ // src/clients/connectors/AnthropicClient.ts
823
+ var AnthropicClient = class extends ConnectorClient {
824
+ constructor(http, credentials) {
825
+ super(http, credentials);
826
+ }
827
+ /** Send a message to an Anthropic Claude model. */
828
+ message(body) {
829
+ return this.send("POST", "/connectors/anthropic/message", { body });
830
+ }
831
+ };
832
+
833
+ // src/clients/connectors/AppleAuthClient.ts
834
+ var AppleAuthClient = class extends ConnectorClient {
835
+ constructor(http, credentials) {
836
+ super(http, credentials);
837
+ }
838
+ exchangeCode(body) {
839
+ return this.send("POST", "/connectors/apple-auth/exchange-code", { body });
840
+ }
841
+ decodeIdToken(body) {
842
+ return this.send("POST", "/connectors/apple-auth/decode-id-token", { body });
843
+ }
844
+ generateClientSecret(body = {}) {
845
+ return this.send("POST", "/connectors/apple-auth/generate-client-secret", { body });
846
+ }
847
+ };
848
+
849
+ // src/clients/connectors/AthenaHealthClient.ts
850
+ var AthenaHealthClient = class extends ConnectorClient {
851
+ constructor(http, credentials) {
852
+ super(http, credentials);
853
+ }
854
+ a(op, body) {
855
+ return this.send("POST", `/connectors/athena-health/${op}`, { body });
856
+ }
857
+ // ── Patients ──────────────────────────────────────────────────────────────
858
+ /** Search Athena patients by demographics. */
859
+ searchPatients(body) {
860
+ return this.a("search-patients", body);
861
+ }
862
+ /** Get a single Athena patient by ID. */
863
+ getPatient(body) {
864
+ return this.a("get-patient", body);
865
+ }
866
+ // ── Appointments ──────────────────────────────────────────────────────────
867
+ /** List appointments, optionally filtered by patient/department/date range. */
868
+ listAppointments(body = {}) {
869
+ return this.a("list-appointments", body);
870
+ }
871
+ /** List encounters for a specific patient. */
872
+ listEncountersForPatient(body) {
873
+ return this.a("list-encounters-for-patient", body);
874
+ }
875
+ /** Retrieve open appointment slots matching filters. */
876
+ retrieveAvailableAppointmentSlots(body = {}) {
877
+ return this.a("retrieve-available-appointment-slots", body);
878
+ }
879
+ /** Book a patient into an existing open appointment slot. */
880
+ bookAppointment(body) {
881
+ return this.a("book-appointment", body);
882
+ }
883
+ /** Get details for a specific booked appointment. */
884
+ getAppointmentDetails(body) {
885
+ return this.a("get-appointment-details", body);
886
+ }
887
+ /** Get all booked appointments, optionally filtered. */
888
+ getBookedAppointments(body = {}) {
889
+ return this.a("get-booked-appointments", body);
890
+ }
891
+ /** List patient appointment reasons (all, new, or existing patient variants). */
892
+ listPatientAppointmentReasons(body = {}) {
893
+ return this.a("list-patient-appointment-reasons", body);
894
+ }
895
+ /** List new-patient appointment reasons. */
896
+ listNewPatientAppointmentReasons(body = {}) {
897
+ return this.a("list-new-patient-appointment-reasons", body);
898
+ }
899
+ /** List existing-patient appointment reasons. */
900
+ listExistingPatientAppointmentReasons(body = {}) {
901
+ return this.a("list-existing-patient-appointment-reasons", body);
902
+ }
903
+ /** List available appointment confirmation statuses. */
904
+ listAppointmentConfirmationStatuses(body = {}) {
905
+ return this.a("list-appointment-confirmation-statuses", body);
906
+ }
907
+ /** List available appointment types. */
908
+ listAppointmentTypes(body = {}) {
909
+ return this.a("list-appointment-types", body);
910
+ }
911
+ // ── Providers & Departments ───────────────────────────────────────────────
912
+ /** List providers, optionally filtered by department. */
913
+ listProviders(body = {}) {
914
+ return this.a("list-providers", body);
915
+ }
916
+ /** Get a single provider by ID. */
917
+ getProvider(body) {
918
+ return this.a("get-provider", body);
919
+ }
920
+ /** Get a single department by ID. */
921
+ getDepartment(body) {
922
+ return this.a("get-department", body);
923
+ }
924
+ /** List all departments. */
925
+ listDepartments(body = {}) {
926
+ return this.a("list-departments", body);
927
+ }
928
+ /** Get practice-level configuration and info. */
929
+ getPracticeInfo(body = {}) {
930
+ return this.a("get-practice-info", body);
931
+ }
932
+ // ── Appointment Slot Subscriptions ───────────────────────────────────────
933
+ /** Get existing appointment slot subscription configuration. */
934
+ getAppointmentSlotSubscription(body = {}) {
935
+ return this.a("get-appointment-slot-subscription", body);
936
+ }
937
+ /** Subscribe to appointment slot notifications for a provider/department. */
938
+ subscribeAppointmentSlots(body) {
939
+ return this.a("subscribe-appointment-slots", body);
940
+ }
941
+ // ── Questionnaire Screeners ───────────────────────────────────────────────
942
+ /** List available questionnaire screeners. */
943
+ getQuestionnaireScreeners(body = {}) {
944
+ return this.a("get-questionnaire-screeners", body);
945
+ }
946
+ /** Submit a standalone questionnaire screener response. */
947
+ submitQuestionnaireScreener(body) {
948
+ return this.a("submit-questionnaire-screener", body);
949
+ }
950
+ /** Get questionnaire screeners associated with an encounter. */
951
+ getQuestionnaireScreenersEncounter(body) {
952
+ return this.a("get-questionnaire-screeners-encounter", body);
953
+ }
954
+ /** Submit a screener questionnaire response within an encounter. */
955
+ submitScreenerQuestionnaireEncounter(body) {
956
+ return this.a("submit-screener-questionnaire-encounter", body);
957
+ }
958
+ // ── Encounter Documents ───────────────────────────────────────────────────
959
+ /** Attach a document to an encounter. */
960
+ createEncounterDocument(body) {
961
+ return this.a("create-encounter-document", body);
962
+ }
963
+ // ── Check-in ─────────────────────────────────────────────────────────────
964
+ /** Check a patient in for their appointment. */
965
+ checkInPatient(body) {
966
+ return this.a("check-in-patient", body);
967
+ }
968
+ // ── Insurance Packages ────────────────────────────────────────────────────
969
+ /** Add an insurance package for a patient. */
970
+ createInsurancePackage(body) {
971
+ return this.a("create-insurance-package", body);
972
+ }
973
+ /** Remove an insurance package from a patient. */
974
+ deleteInsurancePackage(body) {
975
+ return this.a("delete-insurance-package", body);
976
+ }
977
+ /** Get insurance packages on file for a patient. */
978
+ getInsurancePackages(body = {}) {
979
+ return this.a("get-insurance-packages", body);
980
+ }
981
+ /** Get the most-used insurance packages (useful for autocomplete). */
982
+ getTopInsurancePackages(body = {}) {
983
+ return this.a("get-top-insurance-packages", body);
984
+ }
985
+ // ── Eligibility & Benefit Details ─────────────────────────────────────────
986
+ /** Retrieve existing eligibility and benefit details for a patient. */
987
+ getEligibilityBenefitDetails(body) {
988
+ return this.a("get-eligibility-benefit-details", body);
989
+ }
990
+ /** Trigger an eligibility check and store benefit details for a patient. */
991
+ createEligibilityBenefitDetails(body) {
992
+ return this.a("create-eligibility-benefit-details", body);
993
+ }
994
+ // ── Insurance Cards ───────────────────────────────────────────────────────
995
+ /** Upload front/back insurance card images for a patient. */
996
+ uploadInsuranceCard(body) {
997
+ return this.a("upload-insurance-card", body);
998
+ }
999
+ /** Retrieve stored insurance card images for a patient. */
1000
+ getInsuranceCard(body) {
1001
+ return this.a("get-insurance-card", body);
1002
+ }
1003
+ /** Replace stored insurance card images for a patient. */
1004
+ updateInsuranceCard(body) {
1005
+ return this.a("update-insurance-card", body);
1006
+ }
1007
+ /** Delete stored insurance card images for a patient. */
1008
+ deleteInsuranceCard(body) {
1009
+ return this.a("delete-insurance-card", body);
1010
+ }
1011
+ addEncounterReason(body) {
1012
+ return this.send("POST", "/connectors/athena-health/add-encounter-reason", { body });
1013
+ }
1014
+ addLabResultDocument(body) {
1015
+ return this.send("POST", "/connectors/athena-health/add-lab-result-document", { body });
1016
+ }
1017
+ addPreferredPharmacy(body) {
1018
+ return this.send("POST", "/connectors/athena-health/add-preferred-pharmacy", { body });
1019
+ }
1020
+ answerHealthQuestion(body) {
1021
+ return this.send("POST", "/connectors/athena-health/answer-health-question", { body });
1022
+ }
1023
+ cancelAppointment(body) {
1024
+ return this.send("POST", "/connectors/athena-health/cancel-appointment", { body });
1025
+ }
1026
+ createAllergy(body) {
1027
+ return this.send("POST", "/connectors/athena-health/create-allergy", { body });
1028
+ }
1029
+ createAppointment(body) {
1030
+ return this.send("POST", "/connectors/athena-health/create-appointment", { body });
1031
+ }
1032
+ createAppointmentNote(body) {
1033
+ return this.send("POST", "/connectors/athena-health/create-appointment-note", { body });
1034
+ }
1035
+ createConsent(body) {
1036
+ return this.send("POST", "/connectors/athena-health/create-consent", { body });
1037
+ }
1038
+ createEncounterDiagnosis(body) {
1039
+ return this.send("POST", "/connectors/athena-health/create-encounter-diagnosis", { body });
1040
+ }
1041
+ createFamilyHistory(body) {
1042
+ return this.send("POST", "/connectors/athena-health/create-family-history", { body });
1043
+ }
1044
+ createImmunization(body) {
1045
+ return this.send("POST", "/connectors/athena-health/create-immunization", { body });
1046
+ }
1047
+ createInsurance(body) {
1048
+ return this.send("POST", "/connectors/athena-health/create-insurance", { body });
1049
+ }
1050
+ createLabOrder(body) {
1051
+ return this.send("POST", "/connectors/athena-health/create-lab-order", { body });
1052
+ }
1053
+ createMedication(body) {
1054
+ return this.send("POST", "/connectors/athena-health/create-medication", { body });
1055
+ }
1056
+ createOpenAppointmentSlot(body) {
1057
+ return this.send("POST", "/connectors/athena-health/create-open-appointment-slot", { body });
1058
+ }
1059
+ createPatient(body) {
1060
+ return this.send("POST", "/connectors/athena-health/create-patient", { body });
1061
+ }
1062
+ createProblem(body) {
1063
+ return this.send("POST", "/connectors/athena-health/create-problem", { body });
1064
+ }
1065
+ createProcedure(body) {
1066
+ return this.send("POST", "/connectors/athena-health/create-procedure", { body });
1067
+ }
1068
+ createSocialHistory(body) {
1069
+ return this.send("POST", "/connectors/athena-health/create-social-history", { body });
1070
+ }
1071
+ createTelehealthDeeplink(body) {
1072
+ return this.send("POST", "/connectors/athena-health/create-telehealth-deeplink", { body });
1073
+ }
1074
+ createVital(body) {
1075
+ return this.send("POST", "/connectors/athena-health/create-vital", { body });
1076
+ }
1077
+ deleteEncounterDiagnosis(body) {
1078
+ return this.send("POST", "/connectors/athena-health/delete-encounter-diagnosis", { body });
1079
+ }
1080
+ deleteEncounterDocument(body) {
1081
+ return this.send("POST", "/connectors/athena-health/delete-encounter-document", { body });
1082
+ }
1083
+ deleteImagingResultDocument(body) {
1084
+ return this.send("POST", "/connectors/athena-health/delete-imaging-result-document", { body });
1085
+ }
1086
+ deleteMedication(body) {
1087
+ return this.send("POST", "/connectors/athena-health/delete-medication", { body });
1088
+ }
1089
+ deletePreferredPharmacy(body) {
1090
+ return this.send("POST", "/connectors/athena-health/delete-preferred-pharmacy", { body });
1091
+ }
1092
+ deleteVaccine(body) {
1093
+ return this.send("POST", "/connectors/athena-health/delete-vaccine", { body });
1094
+ }
1095
+ enhancedBestMatchPatients(body) {
1096
+ return this.send("POST", "/connectors/athena-health/enhanced-best-match-patients", { body });
1097
+ }
1098
+ enhancedBestMatchPatientsByEmail(body) {
1099
+ return this.send("POST", "/connectors/athena-health/enhanced-best-match-patients-by-email", { body });
1100
+ }
1101
+ exportCertifiedCcda(body) {
1102
+ return this.send("POST", "/connectors/athena-health/export-certified-ccda", { body });
1103
+ }
1104
+ getAppointmentEncounterSummary(body) {
1105
+ return this.send("POST", "/connectors/athena-health/get-appointment-encounter-summary", { body });
1106
+ }
1107
+ getAssessPlanCarePlan(body) {
1108
+ return this.send("POST", "/connectors/athena-health/get-assess-plan-care-plan", { body });
1109
+ }
1110
+ getAvailableMessageTypes(body = {}) {
1111
+ return this.send("POST", "/connectors/athena-health/get-available-message-types", { body });
1112
+ }
1113
+ getCareTeam(body) {
1114
+ return this.send("POST", "/connectors/athena-health/get-care-team", { body });
1115
+ }
1116
+ getCareTeamCarePlan(body) {
1117
+ return this.send("POST", "/connectors/athena-health/get-care-team-care-plan", { body });
1118
+ }
1119
+ getClaim(body) {
1120
+ return this.send("POST", "/connectors/athena-health/get-claim", { body });
1121
+ }
1122
+ getClinicalDocumentXml(body) {
1123
+ return this.send("POST", "/connectors/athena-health/get-clinical-document-xml", { body });
1124
+ }
1125
+ getClinicalProvider(body) {
1126
+ return this.send("POST", "/connectors/athena-health/get-clinical-provider", { body });
1127
+ }
1128
+ getDefaultPharmacy(body) {
1129
+ return this.send("POST", "/connectors/athena-health/get-default-pharmacy", { body });
1130
+ }
1131
+ getDriversLicense(body) {
1132
+ return this.send("POST", "/connectors/athena-health/get-drivers-license", { body });
1133
+ }
1134
+ getEncounter(body) {
1135
+ return this.send("POST", "/connectors/athena-health/get-encounter", { body });
1136
+ }
1137
+ getEncounterAssessment(body) {
1138
+ return this.send("POST", "/connectors/athena-health/get-encounter-assessment", { body });
1139
+ }
1140
+ getEncounterHpi(body) {
1141
+ return this.send("POST", "/connectors/athena-health/get-encounter-hpi", { body });
1142
+ }
1143
+ getEncounterSummary(body) {
1144
+ return this.send("POST", "/connectors/athena-health/get-encounter-summary", { body });
1145
+ }
1146
+ getFhirResource(body) {
1147
+ return this.send("POST", "/connectors/athena-health/get-fhir-resource", { body });
1148
+ }
1149
+ getFhirResourceBinary(body) {
1150
+ return this.send("POST", "/connectors/athena-health/get-fhir-resource-binary", { body });
1151
+ }
1152
+ getGenderIdentityFields(body = {}) {
1153
+ return this.send("POST", "/connectors/athena-health/get-gender-identity-fields", { body });
1154
+ }
1155
+ getGpal(body) {
1156
+ return this.send("POST", "/connectors/athena-health/get-gpal", { body });
1157
+ }
1158
+ getGynHistory(body) {
1159
+ return this.send("POST", "/connectors/athena-health/get-gyn-history", { body });
1160
+ }
1161
+ getGynHistoryQuestionConfiguration(body = {}) {
1162
+ return this.send("POST", "/connectors/athena-health/get-gyn-history-question-configuration", { body });
1163
+ }
1164
+ getHpiTemplates(body) {
1165
+ return this.send("POST", "/connectors/athena-health/get-hpi-templates", { body });
1166
+ }
1167
+ getImagingResultDocument(body) {
1168
+ return this.send("POST", "/connectors/athena-health/get-imaging-result-document", { body });
1169
+ }
1170
+ getImagingResultOriginalDocument(body) {
1171
+ return this.send("POST", "/connectors/athena-health/get-imaging-result-original-document", { body });
1172
+ }
1173
+ getLabResult(body) {
1174
+ return this.send("POST", "/connectors/athena-health/get-lab-result", { body });
1175
+ }
1176
+ getLabResultOriginalDocument(body) {
1177
+ return this.send("POST", "/connectors/athena-health/get-lab-result-original-document", { body });
1178
+ }
1179
+ getMedicationChangeEvents(body = {}) {
1180
+ return this.send("POST", "/connectors/athena-health/get-medication-change-events", { body });
1181
+ }
1182
+ getMedicationChangeSubscription(body = {}) {
1183
+ return this.send("POST", "/connectors/athena-health/get-medication-change-subscription", { body });
1184
+ }
1185
+ getPatientCcda(body) {
1186
+ return this.send("POST", "/connectors/athena-health/get-patient-ccda", { body });
1187
+ }
1188
+ getPatientChangeEvents(body = {}) {
1189
+ return this.send("POST", "/connectors/athena-health/get-patient-change-events", { body });
1190
+ }
1191
+ getPatientChangeSubscription(body = {}) {
1192
+ return this.send("POST", "/connectors/athena-health/get-patient-change-subscription", { body });
1193
+ }
1194
+ getPatientPhoto(body) {
1195
+ return this.send("POST", "/connectors/athena-health/get-patient-photo", { body });
1196
+ }
1197
+ getPatientSearchTypes(body = {}) {
1198
+ return this.send("POST", "/connectors/athena-health/get-patient-search-types", { body });
1199
+ }
1200
+ getPerinatalHistory(body) {
1201
+ return this.send("POST", "/connectors/athena-health/get-perinatal-history", { body });
1202
+ }
1203
+ getPortalAccess(body) {
1204
+ return this.send("POST", "/connectors/athena-health/get-portal-access", { body });
1205
+ }
1206
+ getPreferredPharmacy(body) {
1207
+ return this.send("POST", "/connectors/athena-health/get-preferred-pharmacy", { body });
1208
+ }
1209
+ getPrescriptionCardImage(body) {
1210
+ return this.send("POST", "/connectors/athena-health/get-prescription-card-image", { body });
1211
+ }
1212
+ getProblemChangeEvents(body = {}) {
1213
+ return this.send("POST", "/connectors/athena-health/get-problem-change-events", { body });
1214
+ }
1215
+ getProblemChangeSubscription(body = {}) {
1216
+ return this.send("POST", "/connectors/athena-health/get-problem-change-subscription", { body });
1217
+ }
1218
+ getRecipientClasses(body = {}) {
1219
+ return this.send("POST", "/connectors/athena-health/get-recipient-classes", { body });
1220
+ }
1221
+ getReviewOfSystems(body) {
1222
+ return this.send("POST", "/connectors/athena-health/get-review-of-systems", { body });
1223
+ }
1224
+ getSoapNotes(body) {
1225
+ return this.send("POST", "/connectors/athena-health/get-soap-notes", { body });
1226
+ }
1227
+ getSocialHistoryTemplates(body) {
1228
+ return this.send("POST", "/connectors/athena-health/get-social-history-templates", { body });
1229
+ }
1230
+ getVitalsConfiguration(body = {}) {
1231
+ return this.send("POST", "/connectors/athena-health/get-vitals-configuration", { body });
1232
+ }
1233
+ listAdministeredQuestionnaireScreeners(body) {
1234
+ return this.send("POST", "/connectors/athena-health/list-administered-questionnaire-screeners", { body });
1235
+ }
1236
+ listAllergies(body) {
1237
+ return this.send("POST", "/connectors/athena-health/list-allergies", { body });
1238
+ }
1239
+ listAllergyReactions(body = {}) {
1240
+ return this.send("POST", "/connectors/athena-health/list-allergy-reactions", { body });
1241
+ }
1242
+ listCancerCases(body) {
1243
+ return this.send("POST", "/connectors/athena-health/list-cancer-cases", { body });
1244
+ }
1245
+ listCarePlans(body) {
1246
+ return this.send("POST", "/connectors/athena-health/list-care-plans", { body });
1247
+ }
1248
+ listChangedPatients(body = {}) {
1249
+ return this.send("POST", "/connectors/athena-health/list-changed-patients", { body });
1250
+ }
1251
+ listClosedClaims(body) {
1252
+ return this.send("POST", "/connectors/athena-health/list-closed-claims", { body });
1253
+ }
1254
+ listConfiguredEncounterReasons(body = {}) {
1255
+ return this.send("POST", "/connectors/athena-health/list-configured-encounter-reasons", { body });
1256
+ }
1257
+ listConsents(body) {
1258
+ return this.send("POST", "/connectors/athena-health/list-consents", { body });
1259
+ }
1260
+ listDocuments(body) {
1261
+ return this.send("POST", "/connectors/athena-health/list-documents", { body });
1262
+ }
1263
+ listEncounterDiagnoses(body) {
1264
+ return this.send("POST", "/connectors/athena-health/list-encounter-diagnoses", { body });
1265
+ }
1266
+ listEncounterDocuments(body) {
1267
+ return this.send("POST", "/connectors/athena-health/list-encounter-documents", { body });
1268
+ }
1269
+ listEncounterOrders(body) {
1270
+ return this.send("POST", "/connectors/athena-health/list-encounter-orders", { body });
1271
+ }
1272
+ listEncounterReasons(body) {
1273
+ return this.send("POST", "/connectors/athena-health/list-encounter-reasons", { body });
1274
+ }
1275
+ listEthnicities(body = {}) {
1276
+ return this.send("POST", "/connectors/athena-health/list-ethnicities", { body });
1277
+ }
1278
+ listFamilyHistory(body) {
1279
+ return this.send("POST", "/connectors/athena-health/list-family-history", { body });
1280
+ }
1281
+ listHealthHistory(body) {
1282
+ return this.send("POST", "/connectors/athena-health/list-health-history", { body });
1283
+ }
1284
+ listImagingResultDocuments(body) {
1285
+ return this.send("POST", "/connectors/athena-health/list-imaging-result-documents", { body });
1286
+ }
1287
+ listImmunizations(body) {
1288
+ return this.send("POST", "/connectors/athena-health/list-immunizations", { body });
1289
+ }
1290
+ listImmunizationsFhir(body) {
1291
+ return this.send("POST", "/connectors/athena-health/list-immunizations-fhir", { body });
1292
+ }
1293
+ listInboxMessages(body) {
1294
+ return this.send("POST", "/connectors/athena-health/list-inbox-messages", { body });
1295
+ }
1296
+ listInsurance(body) {
1297
+ return this.send("POST", "/connectors/athena-health/list-insurance", { body });
1298
+ }
1299
+ listLabAnalytes(body) {
1300
+ return this.send("POST", "/connectors/athena-health/list-lab-analytes", { body });
1301
+ }
1302
+ listLabResultDocuments(body) {
1303
+ return this.send("POST", "/connectors/athena-health/list-lab-result-documents", { body });
1304
+ }
1305
+ listLabResults(body) {
1306
+ return this.send("POST", "/connectors/athena-health/list-lab-results", { body });
1307
+ }
1308
+ listMedicalHistoryQuestions(body = {}) {
1309
+ return this.send("POST", "/connectors/athena-health/list-medical-history-questions", { body });
1310
+ }
1311
+ listMedicationChanges(body = {}) {
1312
+ return this.send("POST", "/connectors/athena-health/list-medication-changes", { body });
1313
+ }
1314
+ listMedications(body) {
1315
+ return this.send("POST", "/connectors/athena-health/list-medications", { body });
1316
+ }
1317
+ listOpenClaims(body) {
1318
+ return this.send("POST", "/connectors/athena-health/list-open-claims", { body });
1319
+ }
1320
+ listOpenClaimsDetailed(body) {
1321
+ return this.send("POST", "/connectors/athena-health/list-open-claims-detailed", { body });
1322
+ }
1323
+ listPatientAppointments(body) {
1324
+ return this.send("POST", "/connectors/athena-health/list-patient-appointments", { body });
1325
+ }
1326
+ listPatients(body = {}) {
1327
+ return this.send("POST", "/connectors/athena-health/list-patients", { body });
1328
+ }
1329
+ listPatientsByCustomField(body) {
1330
+ return this.send("POST", "/connectors/athena-health/list-patients-by-custom-field", { body });
1331
+ }
1332
+ listPatientsByDepartment(body = {}) {
1333
+ return this.send("POST", "/connectors/athena-health/list-patients-by-department", { body });
1334
+ }
1335
+ listPatientsByLastUpdatedRange(body) {
1336
+ return this.send("POST", "/connectors/athena-health/list-patients-by-last-updated-range", { body });
1337
+ }
1338
+ listPhysicalTherapyEpisodes(body) {
1339
+ return this.send("POST", "/connectors/athena-health/list-physical-therapy-episodes", { body });
1340
+ }
1341
+ listPrescriptions(body) {
1342
+ return this.send("POST", "/connectors/athena-health/list-prescriptions", { body });
1343
+ }
1344
+ listProblemChanges(body = {}) {
1345
+ return this.send("POST", "/connectors/athena-health/list-problem-changes", { body });
1346
+ }
1347
+ listProblems(body) {
1348
+ return this.send("POST", "/connectors/athena-health/list-problems", { body });
1349
+ }
1350
+ listProcedures(body) {
1351
+ return this.send("POST", "/connectors/athena-health/list-procedures", { body });
1352
+ }
1353
+ listQuestionnaireScreeners(body = {}) {
1354
+ return this.send("POST", "/connectors/athena-health/list-questionnaire-screeners", { body });
1355
+ }
1356
+ listRaces(body = {}) {
1357
+ return this.send("POST", "/connectors/athena-health/list-races", { body });
1358
+ }
1359
+ listReferrals(body) {
1360
+ return this.send("POST", "/connectors/athena-health/list-referrals", { body });
1361
+ }
1362
+ listSentMessages(body) {
1363
+ return this.send("POST", "/connectors/athena-health/list-sent-messages", { body });
1364
+ }
1365
+ listSocialHistory(body) {
1366
+ return this.send("POST", "/connectors/athena-health/list-social-history", { body });
1367
+ }
1368
+ listSocialHistoryQuestions(body = {}) {
1369
+ return this.send("POST", "/connectors/athena-health/list-social-history-questions", { body });
1370
+ }
1371
+ listSurgicalHistory(body) {
1372
+ return this.send("POST", "/connectors/athena-health/list-surgical-history", { body });
1373
+ }
1374
+ listVitals(body) {
1375
+ return this.send("POST", "/connectors/athena-health/list-vitals", { body });
1376
+ }
1377
+ listVitalsCcda(body) {
1378
+ return this.send("POST", "/connectors/athena-health/list-vitals-ccda", { body });
1379
+ }
1380
+ searchAllergens(body) {
1381
+ return this.send("POST", "/connectors/athena-health/search-allergens", { body });
1382
+ }
1383
+ searchClinicalProviders(body = {}) {
1384
+ return this.send("POST", "/connectors/athena-health/search-clinical-providers", { body });
1385
+ }
1386
+ searchMedications(body) {
1387
+ return this.send("POST", "/connectors/athena-health/search-medications", { body });
1388
+ }
1389
+ sendSecureMessage(body) {
1390
+ return this.send("POST", "/connectors/athena-health/send-secure-message", { body });
1391
+ }
1392
+ setDefaultPharmacy(body) {
1393
+ return this.send("POST", "/connectors/athena-health/set-default-pharmacy", { body });
1394
+ }
1395
+ setEncounterReasonNote(body) {
1396
+ return this.send("POST", "/connectors/athena-health/set-encounter-reason-note", { body });
1397
+ }
1398
+ submitOrder(body) {
1399
+ return this.send("POST", "/connectors/athena-health/submit-order", { body });
1400
+ }
1401
+ subscribeMedicationChanges(body) {
1402
+ return this.send("POST", "/connectors/athena-health/subscribe-medication-changes", { body });
1403
+ }
1404
+ unsubscribeMedicationChanges(body = {}) {
1405
+ return this.send("POST", "/connectors/athena-health/unsubscribe-medication-changes", { body });
1406
+ }
1407
+ updateAllergies(body) {
1408
+ return this.send("POST", "/connectors/athena-health/update-allergies", { body });
1409
+ }
1410
+ updateAppointmentCustomField(body) {
1411
+ return this.send("POST", "/connectors/athena-health/update-appointment-custom-field", { body });
1412
+ }
1413
+ updateDriversLicense(body) {
1414
+ return this.send("POST", "/connectors/athena-health/update-drivers-license", { body });
1415
+ }
1416
+ updateEncounterAssessment(body) {
1417
+ return this.send("POST", "/connectors/athena-health/update-encounter-assessment", { body });
1418
+ }
1419
+ updateEncounterDiagnosis(body) {
1420
+ return this.send("POST", "/connectors/athena-health/update-encounter-diagnosis", { body });
1421
+ }
1422
+ updateEncounterHpi(body) {
1423
+ return this.send("POST", "/connectors/athena-health/update-encounter-hpi", { body });
1424
+ }
1425
+ updateMedication(body) {
1426
+ return this.send("POST", "/connectors/athena-health/update-medication", { body });
1427
+ }
1428
+ updateMedicationsSection(body) {
1429
+ return this.send("POST", "/connectors/athena-health/update-medications-section", { body });
1430
+ }
1431
+ updatePatient(body) {
1432
+ return this.send("POST", "/connectors/athena-health/update-patient", { body });
1433
+ }
1434
+ updatePatientCcda(body) {
1435
+ return this.send("POST", "/connectors/athena-health/update-patient-ccda", { body });
1436
+ }
1437
+ updateProblemsSection(body) {
1438
+ return this.send("POST", "/connectors/athena-health/update-problems-section", { body });
1439
+ }
1440
+ updateReviewOfSystems(body) {
1441
+ return this.send("POST", "/connectors/athena-health/update-review-of-systems", { body });
1442
+ }
1443
+ updateSoapNote(body) {
1444
+ return this.send("POST", "/connectors/athena-health/update-soap-note", { body });
1445
+ }
1446
+ updateVaccine(body) {
1447
+ return this.send("POST", "/connectors/athena-health/update-vaccine", { body });
1448
+ }
1449
+ updateVital(body) {
1450
+ return this.send("POST", "/connectors/athena-health/update-vital", { body });
1451
+ }
1452
+ uploadDocument(body) {
1453
+ return this.send("POST", "/connectors/athena-health/upload-document", { body });
1454
+ }
1455
+ uploadImagingResultDocument(body) {
1456
+ return this.send("POST", "/connectors/athena-health/upload-imaging-result-document", { body });
1457
+ }
1458
+ uploadPatientPhoto(body) {
1459
+ return this.send("POST", "/connectors/athena-health/upload-patient-photo", { body });
1460
+ }
1461
+ uploadPrescriptionCardImage(body) {
1462
+ return this.send("POST", "/connectors/athena-health/upload-prescription-card-image", { body });
1463
+ }
1464
+ };
1465
+
1466
+ // src/clients/connectors/CalClient.ts
1467
+ var CalClient = class extends ConnectorClient {
1468
+ constructor(http, credentials) {
1469
+ super(http, credentials);
1470
+ }
1471
+ c(op, body = {}) {
1472
+ return this.send("POST", `/connectors/cal/${op}`, { body });
1473
+ }
1474
+ getAllBookings(body = {}) {
1475
+ return this.c("get-all-bookings", body);
1476
+ }
1477
+ /**
1478
+ * The connector route invokes CalConnector.create_booking(booking), so the
1479
+ * public booking payload must be wrapped for the gateway's named argument.
1480
+ */
1481
+ createBooking(body) {
1482
+ return this.c("create-booking", { booking: body });
1483
+ }
1484
+ getEventTypes(body = {}) {
1485
+ return this.c("get-event-types", body);
1486
+ }
1487
+ getAvailableSlots(body) {
1488
+ return this.c("get-available-slots", body);
1489
+ }
1490
+ getScheduleForEventType(body) {
1491
+ return this.c("get-schedule-for-event-type", body);
1492
+ }
1493
+ getScheduleById(body) {
1494
+ return this.c("get-schedule-by-id", body);
1495
+ }
1496
+ createSchedule(body) {
1497
+ return this.c("create-schedule", body);
1498
+ }
1499
+ assignScheduleToEventType(body) {
1500
+ return this.c("assign-schedule-to-event-type", body);
1501
+ }
1502
+ updateSchedule(body) {
1503
+ return this.c("update-schedule", body);
1504
+ }
1505
+ updateAvailabilityFromAthenaSlots(body) {
1506
+ return this.c("update-availability-from-athena-slots", body);
1507
+ }
1508
+ syncWithAthena(body = {}) {
1509
+ return this.c("sync-with-athena", body);
1510
+ }
1511
+ };
1512
+
1513
+ // src/clients/connectors/CarequalityClient.ts
1514
+ var CarequalityClient = class extends ConnectorClient {
1515
+ constructor(http, credentials) {
1516
+ super(http, credentials);
1517
+ }
1518
+ discoverPatient(body) {
1519
+ return this.send("POST", "/connectors/carequality/discover-patient", { body });
1520
+ }
1521
+ queryDocuments(body) {
1522
+ return this.send("POST", "/connectors/carequality/query-documents", { body });
1523
+ }
1524
+ retrieveDocuments(body) {
1525
+ return this.send("POST", "/connectors/carequality/retrieve-documents", { body });
1526
+ }
1527
+ importPatientDocuments(body) {
1528
+ return this.send("POST", "/connectors/carequality/import-patient-documents", { body });
1529
+ }
1530
+ };
1531
+
1532
+ // src/clients/connectors/CmsClient.ts
1533
+ var CmsClient = class extends ConnectorClient {
1534
+ constructor(http, credentials) {
1535
+ super(http, credentials);
1536
+ }
1537
+ searchHealthPlans(body) {
1538
+ return this.send("POST", "/connectors/cms/search-health-plans", { body });
1539
+ }
1540
+ getCountyFips(body) {
1541
+ return this.send("POST", "/connectors/cms/get-county-fips", { body });
1542
+ }
1543
+ };
1544
+
1545
+ // src/clients/connectors/ConnectureClient.ts
1546
+ var ConnectureClient = class extends ConnectorClient {
1547
+ constructor(http, credentials) {
1548
+ super(http, credentials);
1549
+ }
1550
+ getAccessToken(body = {}) {
1551
+ return this.send("POST", "/connectors/connecture/get-access-token", { body });
1552
+ }
1553
+ createSession(body) {
1554
+ return this.send("POST", "/connectors/connecture/create-session", { body });
1555
+ }
1556
+ getSession(body) {
1557
+ return this.send("POST", "/connectors/connecture/get-session", { body });
1558
+ }
1559
+ updateSession(body) {
1560
+ return this.send("POST", "/connectors/connecture/update-session", { body });
1561
+ }
1562
+ checkEligibility(body) {
1563
+ return this.send("POST", "/connectors/connecture/check-eligibility", { body });
1564
+ }
1565
+ planCount(body) {
1566
+ return this.send("POST", "/connectors/connecture/plan-count", { body });
1567
+ }
1568
+ sessionPlans(body) {
1569
+ return this.send("POST", "/connectors/connecture/session-plans", { body });
1570
+ }
1571
+ sessionPlanById(body) {
1572
+ return this.send("POST", "/connectors/connecture/session-plan-by-id", { body });
1573
+ }
1574
+ enroll(body) {
1575
+ return this.send("POST", "/connectors/connecture/enroll", { body });
1576
+ }
1577
+ lookupPlans(body) {
1578
+ return this.send("POST", "/connectors/connecture/lookup-plans", { body });
1579
+ }
1580
+ };
1581
+
1582
+ // src/clients/connectors/ElevenLabsClient.ts
1583
+ var ElevenLabsClient = class extends ConnectorClient {
1584
+ constructor(http, credentials) {
1585
+ super(http, credentials);
1586
+ }
1587
+ /** Synthesize speech from text using ElevenLabs TTS. */
1588
+ synthesize(body) {
1589
+ return this.send("POST", "/connectors/elevenlabs/synthesize", { body });
1590
+ }
1591
+ /** List available ElevenLabs voices. */
1592
+ listVoices(body) {
1593
+ return this.send("POST", "/connectors/elevenlabs/list-voices", { body });
1594
+ }
1595
+ createAgent(body = {}) {
1596
+ return this.send("POST", "/connectors/elevenlabs/create-agent", { body });
1597
+ }
1598
+ createTool(body) {
1599
+ return this.send("POST", "/connectors/elevenlabs/create-tool", { body });
1600
+ }
1601
+ deleteAgent(body) {
1602
+ return this.send("POST", "/connectors/elevenlabs/delete-agent", { body });
1603
+ }
1604
+ deleteTool(body) {
1605
+ return this.send("POST", "/connectors/elevenlabs/delete-tool", { body });
1606
+ }
1607
+ duplicateAgent(body) {
1608
+ return this.send("POST", "/connectors/elevenlabs/duplicate-agent", { body });
1609
+ }
1610
+ getAgent(body) {
1611
+ return this.send("POST", "/connectors/elevenlabs/get-agent", { body });
1612
+ }
1613
+ getAllAgents(body = {}) {
1614
+ return this.send("POST", "/connectors/elevenlabs/get-all-agents", { body });
1615
+ }
1616
+ getAllConversations(body = {}) {
1617
+ return this.send("POST", "/connectors/elevenlabs/get-all-conversations", { body });
1618
+ }
1619
+ getAllTools(body = {}) {
1620
+ return this.send("POST", "/connectors/elevenlabs/get-all-tools", { body });
1621
+ }
1622
+ getConversation(body) {
1623
+ return this.send("POST", "/connectors/elevenlabs/get-conversation", { body });
1624
+ }
1625
+ getTool(body) {
1626
+ return this.send("POST", "/connectors/elevenlabs/get-tool", { body });
1627
+ }
1628
+ getToolDependentAgents(body) {
1629
+ return this.send("POST", "/connectors/elevenlabs/get-tool-dependent-agents", { body });
1630
+ }
1631
+ getUser(body = {}) {
1632
+ return this.send("POST", "/connectors/elevenlabs/get-user", { body });
1633
+ }
1634
+ getVoice(body) {
1635
+ return this.send("POST", "/connectors/elevenlabs/get-voice", { body });
1636
+ }
1637
+ updateAgent(body) {
1638
+ return this.send("POST", "/connectors/elevenlabs/update-agent", { body });
1639
+ }
1640
+ updateTool(body) {
1641
+ return this.send("POST", "/connectors/elevenlabs/update-tool", { body });
1642
+ }
1643
+ };
1644
+
1645
+ // src/clients/connectors/FedExClient.ts
1646
+ var FedExClient = class extends ConnectorClient {
1647
+ constructor(http, credentials) {
1648
+ super(http, credentials);
1649
+ }
1650
+ createShipment(body) {
1651
+ return this.send("POST", "/connectors/fedex/create-shipment", { body });
1652
+ }
1653
+ trackShipment(body) {
1654
+ return this.send("POST", "/connectors/fedex/track-shipment", { body });
1655
+ }
1656
+ };
1657
+
1658
+ // src/clients/connectors/GoogleAIClient.ts
1659
+ var GoogleAIClient = class extends ConnectorClient {
1660
+ constructor(http, credentials) {
1661
+ super(http, credentials);
1662
+ }
1663
+ /** Generate a response from a Gemini model. */
1664
+ generate(body) {
1665
+ return this.send("POST", "/connectors/google-ai/generate", { body });
1666
+ }
1667
+ /** Generate text embeddings via Gemini. */
1668
+ embed(body) {
1669
+ return this.send("POST", "/connectors/google-ai/embed", { body });
1670
+ }
1671
+ invokeA1cVisionCapture(body) {
1672
+ return this.send("POST", "/connectors/google-ai/invoke-a1c-vision-capture", { body });
1673
+ }
1674
+ };
1675
+
1676
+ // src/clients/connectors/GooglePlacesClient.ts
1677
+ var GooglePlacesClient = class extends ConnectorClient {
1678
+ constructor(http, credentials) {
1679
+ super(http, credentials);
1680
+ }
1681
+ /** Find places near a lat/lng coordinate within a radius. */
1682
+ nearbySearch(body) {
1683
+ return this.send("POST", "/connectors/google-places/nearby-search", { body });
1684
+ }
1685
+ /** Retrieve detailed information about a place by place_id. */
1686
+ placeDetails(body) {
1687
+ return this.send("POST", "/connectors/google-places/place-details", { body });
1688
+ }
1689
+ /** Search for places by text query. */
1690
+ textSearch(body) {
1691
+ return this.send("POST", "/connectors/google-places/text-search", { body });
1692
+ }
1693
+ };
1694
+
1695
+ // src/clients/connectors/GrokClient.ts
1696
+ var GrokClient = class extends ConnectorClient {
1697
+ constructor(http, credentials) {
1698
+ super(http, credentials);
1699
+ }
1700
+ getUmlsCodes(body) {
1701
+ return this.send("POST", "/connectors/grok/get-umls-codes", { body });
1702
+ }
1703
+ convertCcdaToFhir(body) {
1704
+ return this.send("POST", "/connectors/grok/convert-ccda-to-fhir", { body });
1705
+ }
1706
+ convertFhirToCcda(body) {
1707
+ return this.send("POST", "/connectors/grok/convert-fhir-to-ccda", { body });
1708
+ }
1709
+ generalRequest(body) {
1710
+ return this.send("POST", "/connectors/grok/general-grok-request", { body });
1711
+ }
1712
+ convertFhirToCcdaWithChunking(body) {
1713
+ return this.send("POST", "/connectors/grok/convert-fhir-to-ccda-with-chunking", { body });
1714
+ }
1715
+ createClinicalNotes(body) {
1716
+ return this.send("POST", "/connectors/grok/create-clinical-notes", { body });
1717
+ }
1718
+ chooseEncounterReasonsFromList(body) {
1719
+ return this.send("POST", "/connectors/grok/choose-encounter-reasons-from-list", { body });
1720
+ }
1721
+ chooseTemplatesFromList(body) {
1722
+ return this.send("POST", "/connectors/grok/choose-templates-from-list", { body });
1723
+ }
1724
+ createHpiSummary(body) {
1725
+ return this.send("POST", "/connectors/grok/create-hpi-summary", { body });
1726
+ }
1727
+ createScreeningSummary(body) {
1728
+ return this.send("POST", "/connectors/grok/create-screening-summary", { body });
1729
+ }
1730
+ chooseHealthServiceFromList(body) {
1731
+ return this.send("POST", "/connectors/grok/choose-health-service-from-list", { body });
1732
+ }
1733
+ createEhrSummary(body) {
1734
+ return this.send("POST", "/connectors/grok/create-ehr-summary", { body });
1735
+ }
1736
+ };
1737
+
1738
+ // src/clients/connectors/HealthieClient.ts
1739
+ var HealthieClient = class extends ConnectorClient {
1740
+ constructor(http, credentials) {
1741
+ super(http, credentials);
1742
+ }
1743
+ h(path, body = {}) {
1744
+ return this.send("POST", `/connectors/healthie/${path}`, { body });
1745
+ }
1746
+ // API keys
1747
+ createApiKey(body = {}) {
1748
+ return this.h("create-api-key", body);
1749
+ }
1750
+ deleteApiKey(body) {
1751
+ return this.h("delete-api-key", body);
1752
+ }
1753
+ getApiKeys(body = {}) {
1754
+ return this.h("get-api-keys", body);
1755
+ }
1756
+ getCurrentUserId(body = {}) {
1757
+ return this.h("get-current-user-id", body);
1758
+ }
1759
+ getCurrentUser(body = {}) {
1760
+ return this.h("get-current-user", body);
1761
+ }
1762
+ // Patients / Users
1763
+ createPatient(body) {
1764
+ return this.h("create-patient", body);
1765
+ }
1766
+ updatePatient(body) {
1767
+ return this.h("update-patient", body);
1768
+ }
1769
+ searchPatients(body = {}) {
1770
+ return this.h("search-patients", body);
1771
+ }
1772
+ getPatient(body) {
1773
+ return this.h("get-patient", body);
1774
+ }
1775
+ getPatientJson(body) {
1776
+ return this.h("get-patient-json", body);
1777
+ }
1778
+ signUpPatient(body) {
1779
+ return this.h("sign-up-patient", body);
1780
+ }
1781
+ bulkUpdateClients(body) {
1782
+ return this.h("bulk-update-clients", body);
1783
+ }
1784
+ updateUser(body) {
1785
+ return this.h("update-user", body);
1786
+ }
1787
+ listPatients(body = {}) {
1788
+ return this.h("list-patients", body);
1789
+ }
1790
+ // Locations
1791
+ createLocation(body) {
1792
+ return this.h("create-location", body);
1793
+ }
1794
+ updateLocation(body) {
1795
+ return this.h("update-location", body);
1796
+ }
1797
+ // Appointment types
1798
+ getAppointmentType(body) {
1799
+ return this.h("get-appointment-type", body);
1800
+ }
1801
+ getAppointmentTypes(body = {}) {
1802
+ return this.h("get-appointment-types", body);
1803
+ }
1804
+ createAppointmentType(body) {
1805
+ return this.h("create-appointment-type", body);
1806
+ }
1807
+ updateAppointmentType(body) {
1808
+ return this.h("update-appointment-type", body);
1809
+ }
1810
+ deleteAppointmentType(body) {
1811
+ return this.h("delete-appointment-type", body);
1812
+ }
1813
+ getAppointmentSetting(body) {
1814
+ return this.h("get-appointment-setting", body);
1815
+ }
1816
+ createAppointmentSetting(body) {
1817
+ return this.h("create-appointment-setting", body);
1818
+ }
1819
+ updateAppointmentSetting(body) {
1820
+ return this.h("update-appointment-setting", body);
1821
+ }
1822
+ // Appointments
1823
+ getAppointment(body) {
1824
+ return this.h("get-appointment", body);
1825
+ }
1826
+ getAppointments(body = {}) {
1827
+ return this.h("get-appointments", body);
1828
+ }
1829
+ createAppointment(body) {
1830
+ return this.h("create-appointment", body);
1831
+ }
1832
+ updateAppointment(body) {
1833
+ return this.h("update-appointment", body);
1834
+ }
1835
+ deleteAppointment(body) {
1836
+ return this.h("delete-appointment", body);
1837
+ }
1838
+ getAppointmentBookingWarnings(body) {
1839
+ return this.h("get-appointment-booking-warnings", body);
1840
+ }
1841
+ // Availability
1842
+ getAvailabilities(body = {}) {
1843
+ return this.h("get-availabilities", body);
1844
+ }
1845
+ getAvailability(body) {
1846
+ return this.h("get-availability", body);
1847
+ }
1848
+ createAvailability(body) {
1849
+ return this.h("create-availability", body);
1850
+ }
1851
+ createAvailabilitiesBulk(body) {
1852
+ return this.h("create-availabilities-bulk", body);
1853
+ }
1854
+ editAvailability(body) {
1855
+ return this.h("edit-availability", body);
1856
+ }
1857
+ deleteAvailability(body) {
1858
+ return this.h("delete-availability", body);
1859
+ }
1860
+ getDaysAvailableForRange(body) {
1861
+ return this.h("get-days-available-for-range", body);
1862
+ }
1863
+ getAvailableSlotsForRange(body) {
1864
+ return this.h("get-available-slots-for-range", body);
1865
+ }
1866
+ completeCheckout(body) {
1867
+ return this.h("complete-checkout", body);
1868
+ }
1869
+ findAndBookFirstAvailableSlot(body) {
1870
+ return this.h("find-and-book-first-available-slot", body);
1871
+ }
1872
+ // Billing
1873
+ getBillingItems(body = {}) {
1874
+ return this.h("get-billing-items", body);
1875
+ }
1876
+ getBillingItem(body) {
1877
+ return this.h("get-billing-item", body);
1878
+ }
1879
+ createBillingItem(body) {
1880
+ return this.h("create-billing-item", body);
1881
+ }
1882
+ updateBillingItem(body) {
1883
+ return this.h("update-billing-item", body);
1884
+ }
1885
+ deleteBillingItem(body) {
1886
+ return this.h("delete-billing-item", body);
1887
+ }
1888
+ // Invoices
1889
+ getInvoices(body = {}) {
1890
+ return this.h("get-invoices", body);
1891
+ }
1892
+ getInvoice(body) {
1893
+ return this.h("get-invoice", body);
1894
+ }
1895
+ createInvoice(body) {
1896
+ return this.h("create-invoice", body);
1897
+ }
1898
+ updateInvoice(body) {
1899
+ return this.h("update-invoice", body);
1900
+ }
1901
+ deleteInvoice(body) {
1902
+ return this.h("delete-invoice", body);
1903
+ }
1904
+ // Offerings
1905
+ getOffering(body) {
1906
+ return this.h("get-offering", body);
1907
+ }
1908
+ getOfferings(body = {}) {
1909
+ return this.h("get-offerings", body);
1910
+ }
1911
+ createOffering(body) {
1912
+ return this.h("create-offering", body);
1913
+ }
1914
+ updateOffering(body) {
1915
+ return this.h("update-offering", body);
1916
+ }
1917
+ copyOffering(body) {
1918
+ return this.h("copy-offering", body);
1919
+ }
1920
+ deleteOffering(body) {
1921
+ return this.h("delete-offering", body);
1922
+ }
1923
+ // Insurance
1924
+ getInsurancePayments(body = {}) {
1925
+ return this.h("get-insurance-payments", body);
1926
+ }
1927
+ createInsurancePayment(body) {
1928
+ return this.h("create-insurance-payment", body);
1929
+ }
1930
+ updateManualInsurancePayment(body) {
1931
+ return this.h("update-manual-insurance-payment", body);
1932
+ }
1933
+ updateInsurancePaymentDepositStatus(body) {
1934
+ return this.h("update-insurance-payment-deposit-status", body);
1935
+ }
1936
+ deleteManualInsurancePayment(body) {
1937
+ return this.h("delete-manual-insurance-payment", body);
1938
+ }
1939
+ storePaymentCard(body) {
1940
+ return this.h("store-payment-card", body);
1941
+ }
1942
+ getInsurancePlans(body = {}) {
1943
+ return this.h("get-insurance-plans", body);
1944
+ }
1945
+ acceptInsurancePlans(body) {
1946
+ return this.h("accept-insurance-plans", body);
1947
+ }
1948
+ removeAcceptedInsurancePlan(body) {
1949
+ return this.h("remove-accepted-insurance-plan", body);
1950
+ }
1951
+ updatePatientInsuranceBilling(body) {
1952
+ return this.h("update-patient-insurance-billing", body);
1953
+ }
1954
+ // Super bills / CMS1500
1955
+ getSuperBills(body = {}) {
1956
+ return this.h("get-super-bills", body);
1957
+ }
1958
+ getSuperBill(body) {
1959
+ return this.h("get-super-bill", body);
1960
+ }
1961
+ createSuperBill(body) {
1962
+ return this.h("create-super-bill", body);
1963
+ }
1964
+ updateSuperBill(body) {
1965
+ return this.h("update-super-bill", body);
1966
+ }
1967
+ deleteSuperBill(body) {
1968
+ return this.h("delete-super-bill", body);
1969
+ }
1970
+ getCms1500s(body = {}) {
1971
+ return this.h("get-cms1500s", body);
1972
+ }
1973
+ getCms1500(body) {
1974
+ return this.h("get-cms1500", body);
1975
+ }
1976
+ createCms1500(body) {
1977
+ return this.h("create-cms1500", body);
1978
+ }
1979
+ updateCms1500(body) {
1980
+ return this.h("update-cms1500", body);
1981
+ }
1982
+ deleteCms1500(body) {
1983
+ return this.h("delete-cms1500", body);
1984
+ }
1985
+ // Forms
1986
+ getForm(body) {
1987
+ return this.h("get-form", body);
1988
+ }
1989
+ getForms(body = {}) {
1990
+ return this.h("get-forms", body);
1991
+ }
1992
+ createForm(body) {
1993
+ return this.h("create-form", body);
1994
+ }
1995
+ updateForm(body) {
1996
+ return this.h("update-form", body);
1997
+ }
1998
+ deleteForm(body) {
1999
+ return this.h("delete-form", body);
2000
+ }
2001
+ copyForm(body) {
2002
+ return this.h("copy-form", body);
2003
+ }
2004
+ shareForm(body) {
2005
+ return this.h("share-form", body);
2006
+ }
2007
+ createFormAnswerGroup(body) {
2008
+ return this.h("create-form-answer-group", body);
2009
+ }
2010
+ getFormAnswerGroups(body = {}) {
2011
+ return this.h("get-form-answer-groups", body);
2012
+ }
2013
+ fillLabResultReviewForm(body) {
2014
+ return this.h("fill-lab-result-review-form", body);
2015
+ }
2016
+ // Onboarding
2017
+ getOnboardingFlows(body = {}) {
2018
+ return this.h("get-onboarding-flows", body);
2019
+ }
2020
+ getOnboardingFlow(body) {
2021
+ return this.h("get-onboarding-flow", body);
2022
+ }
2023
+ createOnboardingFlow(body) {
2024
+ return this.h("create-onboarding-flow", body);
2025
+ }
2026
+ updateOnboardingFlow(body) {
2027
+ return this.h("update-onboarding-flow", body);
2028
+ }
2029
+ deleteOnboardingFlow(body) {
2030
+ return this.h("delete-onboarding-flow", body);
2031
+ }
2032
+ getOnboardingItem(body) {
2033
+ return this.h("get-onboarding-item", body);
2034
+ }
2035
+ createOnboardingItem(body) {
2036
+ return this.h("create-onboarding-item", body);
2037
+ }
2038
+ updateOnboardingItem(body) {
2039
+ return this.h("update-onboarding-item", body);
2040
+ }
2041
+ deleteOnboardingItem(body) {
2042
+ return this.h("delete-onboarding-item", body);
2043
+ }
2044
+ getAvailableItemTypes(body = {}) {
2045
+ return this.h("get-available-item-types", body);
2046
+ }
2047
+ getUnassociatedCompletedOnboardingItems(body = {}) {
2048
+ return this.h("get-unassociated-completed-onboarding-items", body);
2049
+ }
2050
+ createCompletedOnboardingItem(body) {
2051
+ return this.h("create-completed-onboarding-item", body);
2052
+ }
2053
+ getFormCompletionRequests(body = {}) {
2054
+ return this.h("get-form-completion-requests", body);
2055
+ }
2056
+ createFormCompletionRequest(body) {
2057
+ return this.h("create-form-completion-request", body);
2058
+ }
2059
+ deleteFormCompletionRequest(body) {
2060
+ return this.h("delete-form-completion-request", body);
2061
+ }
2062
+ createOpenLoopForm(body) {
2063
+ return this.h("create-open-loop-form", body);
2064
+ }
2065
+ // Documents
2066
+ getDocuments(body = {}) {
2067
+ return this.h("get-documents", body);
2068
+ }
2069
+ getPatientDocuments(body) {
2070
+ return this.h("get-patient-documents", body);
2071
+ }
2072
+ getDocument(body) {
2073
+ return this.h("get-document", body);
2074
+ }
2075
+ updateDocument(body) {
2076
+ return this.h("update-document", body);
2077
+ }
2078
+ deleteDocument(body) {
2079
+ return this.h("delete-document", body);
2080
+ }
2081
+ // Notes
2082
+ getPatientNotes(body) {
2083
+ return this.h("get-patient-notes", body);
2084
+ }
2085
+ createNote(body) {
2086
+ return this.h("create-note", body);
2087
+ }
2088
+ createPersonalizationQuestionnaire(body) {
2089
+ return this.h("create-personalization-questionnaire", body);
2090
+ }
2091
+ // Conversations
2092
+ getConversation(body) {
2093
+ return this.h("get-conversation", body);
2094
+ }
2095
+ getConversationMemberships(body) {
2096
+ return this.h("get-conversation-memberships", body);
2097
+ }
2098
+ createConversation(body) {
2099
+ return this.h("create-conversation", body);
2100
+ }
2101
+ updateConversation(body) {
2102
+ return this.h("update-conversation", body);
2103
+ }
2104
+ closeConversation(body) {
2105
+ return this.h("close-conversation", body);
2106
+ }
2107
+ sendChatMessage(body) {
2108
+ return this.h("send-chat-message", body);
2109
+ }
2110
+ // Fax
2111
+ getSentFaxes(body = {}) {
2112
+ return this.h("get-sent-faxes", body);
2113
+ }
2114
+ getSentFax(body) {
2115
+ return this.h("get-sent-fax", body);
2116
+ }
2117
+ sendFax(body) {
2118
+ return this.h("send-fax", body);
2119
+ }
2120
+ getReceivedFaxes(body = {}) {
2121
+ return this.h("get-received-faxes", body);
2122
+ }
2123
+ getReceivedFax(body) {
2124
+ return this.h("get-received-fax", body);
2125
+ }
2126
+ // Entries / Metrics
2127
+ getEntries(body = {}) {
2128
+ return this.h("get-entries", body);
2129
+ }
2130
+ getEntry(body) {
2131
+ return this.h("get-entry", body);
2132
+ }
2133
+ createEntry(body) {
2134
+ return this.h("create-entry", body);
2135
+ }
2136
+ updateEntry(body) {
2137
+ return this.h("update-entry", body);
2138
+ }
2139
+ deleteEntry(body) {
2140
+ return this.h("delete-entry", body);
2141
+ }
2142
+ createMetricEntry(body) {
2143
+ return this.h("create-metric-entry", body);
2144
+ }
2145
+ getMetricEntries(body = {}) {
2146
+ return this.h("get-metric-entries", body);
2147
+ }
2148
+ // Goals
2149
+ getGoals(body = {}) {
2150
+ return this.h("get-goals", body);
2151
+ }
2152
+ getGoal(body) {
2153
+ return this.h("get-goal", body);
2154
+ }
2155
+ createGoal(body) {
2156
+ return this.h("create-goal", body);
2157
+ }
2158
+ updateGoal(body) {
2159
+ return this.h("update-goal", body);
2160
+ }
2161
+ deleteGoal(body) {
2162
+ return this.h("delete-goal", body);
2163
+ }
2164
+ getGoalHistories(body) {
2165
+ return this.h("get-goal-histories", body);
2166
+ }
2167
+ // Tasks
2168
+ getTask(body) {
2169
+ return this.h("get-task", body);
2170
+ }
2171
+ getTasks(body = {}) {
2172
+ return this.h("get-tasks", body);
2173
+ }
2174
+ createTask(body) {
2175
+ return this.h("create-task", body);
2176
+ }
2177
+ updateTask(body) {
2178
+ return this.h("update-task", body);
2179
+ }
2180
+ deleteTask(body) {
2181
+ return this.h("delete-task", body);
2182
+ }
2183
+ markTasksAsSeen(body) {
2184
+ return this.h("mark-tasks-as-seen", body);
2185
+ }
2186
+ // Care plans
2187
+ getCarePlans(body = {}) {
2188
+ return this.h("get-care-plans", body);
2189
+ }
2190
+ getCarePlan(body) {
2191
+ return this.h("get-care-plan", body);
2192
+ }
2193
+ createCarePlan(body) {
2194
+ return this.h("create-care-plan", body);
2195
+ }
2196
+ updateCarePlan(body) {
2197
+ return this.h("update-care-plan", body);
2198
+ }
2199
+ deleteCarePlan(body) {
2200
+ return this.h("delete-care-plan", body);
2201
+ }
2202
+ // Programs
2203
+ getPrograms(body = {}) {
2204
+ return this.h("get-programs", body);
2205
+ }
2206
+ getProgram(body) {
2207
+ return this.h("get-program", body);
2208
+ }
2209
+ createProgram(body) {
2210
+ return this.h("create-program", body);
2211
+ }
2212
+ updateProgram(body) {
2213
+ return this.h("update-program", body);
2214
+ }
2215
+ deleteProgram(body) {
2216
+ return this.h("delete-program", body);
2217
+ }
2218
+ // Episodes of care
2219
+ getPatientEncounter(body) {
2220
+ return this.h("get-patient-encounter", body);
2221
+ }
2222
+ getEpisodesOfCare(body = {}) {
2223
+ return this.h("get-episodes-of-care", body);
2224
+ }
2225
+ createEpisodeOfCare(body) {
2226
+ return this.h("create-episode-of-care", body);
2227
+ }
2228
+ updateEpisodeOfCare(body) {
2229
+ return this.h("update-episode-of-care", body);
2230
+ }
2231
+ deleteEpisodeOfCare(body) {
2232
+ return this.h("delete-episode-of-care", body);
2233
+ }
2234
+ linkEncountersToEpisode(body) {
2235
+ return this.h("link-encounters-to-episode", body);
2236
+ }
2237
+ unlinkEncountersFromEpisode(body) {
2238
+ return this.h("unlink-encounters-from-episode", body);
2239
+ }
2240
+ // CCDA
2241
+ parseCcdaDocument(body) {
2242
+ return this.h("parse-ccda-document", body);
2243
+ }
2244
+ completeCcdaReconciliation(body) {
2245
+ return this.h("complete-ccda-reconciliation", body);
2246
+ }
2247
+ // Diagnoses / Problems
2248
+ getPatientDiagnoses(body) {
2249
+ return this.h("get-patient-diagnoses", body);
2250
+ }
2251
+ addDiagnosis(body) {
2252
+ return this.h("add-diagnosis", body);
2253
+ }
2254
+ updateDiagnosis(body) {
2255
+ return this.h("update-diagnosis", body);
2256
+ }
2257
+ removeDiagnosis(body) {
2258
+ return this.h("remove-diagnosis", body);
2259
+ }
2260
+ bulkUpdateDiagnoses(body) {
2261
+ return this.h("bulk-update-diagnoses", body);
2262
+ }
2263
+ getPatientProblems(body) {
2264
+ return this.h("get-patient-problems", body);
2265
+ }
2266
+ // Family history
2267
+ createFamilyHistory(body) {
2268
+ return this.h("create-family-history", body);
2269
+ }
2270
+ updateFamilyHistory(body) {
2271
+ return this.h("update-family-history", body);
2272
+ }
2273
+ deleteFamilyHistory(body) {
2274
+ return this.h("delete-family-history", body);
2275
+ }
2276
+ // Immunizations
2277
+ getPatientImmunizations(body) {
2278
+ return this.h("get-patient-immunizations", body);
2279
+ }
2280
+ createImmunization(body) {
2281
+ return this.h("create-immunization", body);
2282
+ }
2283
+ updateImmunization(body) {
2284
+ return this.h("update-immunization", body);
2285
+ }
2286
+ // Medications
2287
+ getMedications(body) {
2288
+ return this.h("get-medications", body);
2289
+ }
2290
+ createMedication(body) {
2291
+ return this.h("create-medication", body);
2292
+ }
2293
+ updateMedication(body) {
2294
+ return this.h("update-medication", body);
2295
+ }
2296
+ deleteMedication(body) {
2297
+ return this.h("delete-medication", body);
2298
+ }
2299
+ // Lab orders
2300
+ getLabOrders(body = {}) {
2301
+ return this.h("get-lab-orders", body);
2302
+ }
2303
+ getLabOrder(body) {
2304
+ return this.h("get-lab-order", body);
2305
+ }
2306
+ createLabOrder(body) {
2307
+ return this.h("create-lab-order", body);
2308
+ }
2309
+ createRupaOrder(body) {
2310
+ return this.h("create-rupa-order", body);
2311
+ }
2312
+ updateLabOrder(body) {
2313
+ return this.h("update-lab-order", body);
2314
+ }
2315
+ getLabResult(body) {
2316
+ return this.h("get-lab-result", body);
2317
+ }
2318
+ // Pharmacy
2319
+ getPharmacy(body) {
2320
+ return this.h("get-pharmacy", body);
2321
+ }
2322
+ searchPharmacies(body) {
2323
+ return this.h("search-pharmacies", body);
2324
+ }
2325
+ addPharmacy(body) {
2326
+ return this.h("add-pharmacy", body);
2327
+ }
2328
+ getPatientDefaultPharmacy(body) {
2329
+ return this.h("get-patient-default-pharmacy", body);
2330
+ }
2331
+ // Organization
2332
+ getOrganizationDetailed(body = {}) {
2333
+ return this.h("get-organization-detailed", body);
2334
+ }
2335
+ listOrganizationMembers(body = {}) {
2336
+ return this.h("list-organization-members", body);
2337
+ }
2338
+ createOrganizationMembership(body) {
2339
+ return this.h("create-organization-membership", body);
2340
+ }
2341
+ updateOrganizationMembership(body) {
2342
+ return this.h("update-organization-membership", body);
2343
+ }
2344
+ deleteOrganizationMembership(body) {
2345
+ return this.h("delete-organization-membership", body);
2346
+ }
2347
+ getOrganization(body = {}) {
2348
+ return this.h("get-organization", body);
2349
+ }
2350
+ getDietitianId(body = {}) {
2351
+ return this.h("get-dietitian-id", body);
2352
+ }
2353
+ getOrganizationMembers(body = {}) {
2354
+ return this.h("get-organization-members", body);
2355
+ }
2356
+ getProvider(body) {
2357
+ return this.h("get-provider", body);
2358
+ }
2359
+ // User groups
2360
+ getUserGroup(body) {
2361
+ return this.h("get-user-group", body);
2362
+ }
2363
+ getUserGroups(body = {}) {
2364
+ return this.h("get-user-groups", body);
2365
+ }
2366
+ createUserGroup(body) {
2367
+ return this.h("create-user-group", body);
2368
+ }
2369
+ updateUserGroup(body) {
2370
+ return this.h("update-user-group", body);
2371
+ }
2372
+ deleteUserGroup(body) {
2373
+ return this.h("delete-user-group", body);
2374
+ }
2375
+ // Tags
2376
+ getTags(body = {}) {
2377
+ return this.h("get-tags", body);
2378
+ }
2379
+ createTag(body) {
2380
+ return this.h("create-tag", body);
2381
+ }
2382
+ updateTag(body) {
2383
+ return this.h("update-tag", body);
2384
+ }
2385
+ deleteTag(body) {
2386
+ return this.h("delete-tag", body);
2387
+ }
2388
+ bulkApplyTags(body) {
2389
+ return this.h("bulk-apply-tags", body);
2390
+ }
2391
+ removeAppliedTag(body) {
2392
+ return this.h("remove-applied-tag", body);
2393
+ }
2394
+ };
2395
+
2396
+ // src/clients/connectors/ImpiloClient.ts
2397
+ var ImpiloClient = class extends ConnectorClient {
2398
+ constructor(http, credentials) {
2399
+ super(http, credentials);
2400
+ }
2401
+ i(op, body = {}) {
2402
+ return this.send("POST", `/connectors/impilo/${op}`, { body });
2403
+ }
2404
+ // Patients
2405
+ createPatient(body) {
2406
+ return this.i("create-patient", body);
2407
+ }
2408
+ getPatient(body) {
2409
+ return this.i("get-patient", body);
2410
+ }
2411
+ listPatients(body = {}) {
2412
+ return this.i("list-patients", body);
2413
+ }
2414
+ updatePatient(body) {
2415
+ return this.i("update-patient", body);
2416
+ }
2417
+ // Devices
2418
+ getDevice(body) {
2419
+ return this.i("get-device", body);
2420
+ }
2421
+ listDevices(body = {}) {
2422
+ return this.i("list-devices", body);
2423
+ }
2424
+ associateDevice(body) {
2425
+ return this.i("associate-device", body);
2426
+ }
2427
+ disassociateDevice(body) {
2428
+ return this.i("disassociate-device", body);
2429
+ }
2430
+ enableReadings(body) {
2431
+ return this.i("enable-readings", body);
2432
+ }
2433
+ disableReadings(body) {
2434
+ return this.i("disable-readings", body);
2435
+ }
2436
+ validateDevice(body) {
2437
+ return this.i("validate-device", body);
2438
+ }
2439
+ // Kits
2440
+ getKit(body) {
2441
+ return this.i("get-kit", body);
2442
+ }
2443
+ listKits(body = {}) {
2444
+ return this.i("list-kits", body);
2445
+ }
2446
+ linkKitToPatient(body) {
2447
+ return this.i("link-kit-to-patient", body);
2448
+ }
2449
+ unlinkKitFromPatient(body) {
2450
+ return this.i("unlink-kit-from-patient", body);
2451
+ }
2452
+ // Orders
2453
+ createOrder(body) {
2454
+ return this.i("create-order", body);
2455
+ }
2456
+ getOrder(body) {
2457
+ return this.i("get-order", body);
2458
+ }
2459
+ listOrders(body = {}) {
2460
+ return this.i("list-orders", body);
2461
+ }
2462
+ // Readings
2463
+ recordBloodPressureReading(body) {
2464
+ return this.i("record-blood-pressure-reading", body);
2465
+ }
2466
+ getBloodPressureReading(body) {
2467
+ return this.i("get-blood-pressure-reading", body);
2468
+ }
2469
+ listBloodPressureReadings(body = {}) {
2470
+ return this.i("list-blood-pressure-readings", body);
2471
+ }
2472
+ recordBloodGlucoseReading(body) {
2473
+ return this.i("record-blood-glucose-reading", body);
2474
+ }
2475
+ getBloodGlucoseReading(body) {
2476
+ return this.i("get-blood-glucose-reading", body);
2477
+ }
2478
+ listBloodGlucoseReadings(body = {}) {
2479
+ return this.i("list-blood-glucose-readings", body);
2480
+ }
2481
+ recordBloodOxygenReading(body) {
2482
+ return this.i("record-blood-oxygen-reading", body);
2483
+ }
2484
+ getBloodOxygenReading(body) {
2485
+ return this.i("get-blood-oxygen-reading", body);
2486
+ }
2487
+ listBloodOxygenReadings(body = {}) {
2488
+ return this.i("list-blood-oxygen-readings", body);
2489
+ }
2490
+ recordWeightReading(body) {
2491
+ return this.i("record-weight-reading", body);
2492
+ }
2493
+ getWeightReading(body) {
2494
+ return this.i("get-weight-reading", body);
2495
+ }
2496
+ listWeightReadings(body = {}) {
2497
+ return this.i("list-weight-readings", body);
2498
+ }
2499
+ recordTemperatureReading(body) {
2500
+ return this.i("record-temperature-reading", body);
2501
+ }
2502
+ getTemperatureReading(body) {
2503
+ return this.i("get-temperature-reading", body);
2504
+ }
2505
+ listTemperatureReadings(body = {}) {
2506
+ return this.i("list-temperature-readings", body);
2507
+ }
2508
+ recordHeartRateReading(body) {
2509
+ return this.i("record-heart-rate-reading", body);
2510
+ }
2511
+ getHeartRateReading(body) {
2512
+ return this.i("get-heart-rate-reading", body);
2513
+ }
2514
+ listHeartRateReadings(body = {}) {
2515
+ return this.i("list-heart-rate-readings", body);
2516
+ }
2517
+ listSpirometryReadings(body = {}) {
2518
+ return this.i("list-spirometry-readings", body);
2519
+ }
2520
+ // Clinical notes
2521
+ getClinicalNote(body) {
2522
+ return this.i("get-clinical-note", body);
2523
+ }
2524
+ listClinicalNotes(body = {}) {
2525
+ return this.i("list-clinical-notes", body);
2526
+ }
2527
+ // Inventory
2528
+ listSiteInventory(body = {}) {
2529
+ return this.i("list-site-inventory", body);
2530
+ }
2531
+ listKitInventory(body = {}) {
2532
+ return this.i("list-kit-inventory", body);
2533
+ }
2534
+ // Procurements
2535
+ createProcurement(body) {
2536
+ return this.i("create-procurement", body);
2537
+ }
2538
+ listProcurements(body = {}) {
2539
+ return this.i("list-procurements", body);
2540
+ }
2541
+ // Items
2542
+ createItem(body) {
2543
+ return this.i("create-item", body);
2544
+ }
2545
+ getItem(body) {
2546
+ return this.i("get-item", body);
2547
+ }
2548
+ listItems(body = {}) {
2549
+ return this.i("list-items", body);
2550
+ }
2551
+ // Alert configs
2552
+ getPatientAlertConfig(body) {
2553
+ return this.i("get-patient-alert-config", body);
2554
+ }
2555
+ setPatientAlertConfig(body) {
2556
+ return this.i("set-patient-alert-config", body);
2557
+ }
2558
+ getSiteAlertConfig(body) {
2559
+ return this.i("get-site-alert-config", body);
2560
+ }
2561
+ setSiteAlertConfig(body) {
2562
+ return this.i("set-site-alert-config", body);
2563
+ }
2564
+ getGlobalAlertConfig(body) {
2565
+ return this.i("get-global-alert-config", body);
2566
+ }
2567
+ setGlobalAlertConfig(body) {
2568
+ return this.i("set-global-alert-config", body);
2569
+ }
2570
+ // Webhooks
2571
+ registerWebhooks(body) {
2572
+ return this.i("register-webhooks", body);
2573
+ }
2574
+ fetchProcurementDocument(body) {
2575
+ return this.send("POST", "/connectors/impilo/fetch-procurement-document", { body });
2576
+ }
2577
+ getOrderSummary(body) {
2578
+ return this.send("POST", "/connectors/impilo/get-order-summary", { body });
2579
+ }
2580
+ };
2581
+
2582
+ // src/clients/connectors/JunctionClient.ts
2583
+ var JunctionClient = class extends ConnectorClient {
2584
+ constructor(http, credentials) {
2585
+ super(http, credentials);
2586
+ }
2587
+ orderTestkit(body) {
2588
+ return this.send("POST", "/connectors/junction/order-testkit", { body });
2589
+ }
2590
+ registerTestkit(body) {
2591
+ return this.send("POST", "/connectors/junction/register-testkit", { body });
2592
+ }
2593
+ getTests(body = {}) {
2594
+ return this.send("POST", "/connectors/junction/get-tests", { body });
2595
+ }
2596
+ getOrders(body = {}) {
2597
+ return this.send("POST", "/connectors/junction/get-orders", { body });
2598
+ }
2599
+ };
2600
+
2601
+ // src/clients/connectors/NppesClient.ts
2602
+ var NppesClient = class extends ConnectorClient {
2603
+ constructor(http, credentials) {
2604
+ super(http, credentials);
2605
+ }
2606
+ verifyProvider(body) {
2607
+ return this.send("POST", "/connectors/nppes/verify-provider", { body });
2608
+ }
2609
+ getProvider(body) {
2610
+ return this.send("POST", "/connectors/nppes/get-provider", { body });
2611
+ }
2612
+ searchProviders(body) {
2613
+ return this.send("POST", "/connectors/nppes/search-providers", { body });
2614
+ }
2615
+ };
2616
+
2617
+ // src/clients/connectors/OpenAIClient.ts
2618
+ var OpenAIClient = class extends ConnectorClient {
2619
+ constructor(http, credentials) {
2620
+ super(http, credentials);
2621
+ }
2622
+ /** Send a chat completion request to OpenAI. */
2623
+ chat(body) {
2624
+ return this.send("POST", "/connectors/openai/chat", { body });
2625
+ }
2626
+ /** Generate text embeddings via OpenAI. */
2627
+ embed(body) {
2628
+ return this.send("POST", "/connectors/openai/embed", { body });
2629
+ }
2630
+ buildResponseCreatePayload(body = {}) {
2631
+ return this.send("POST", "/connectors/openai/build-response-create-payload", { body });
2632
+ }
2633
+ chatJson(body) {
2634
+ return this.send("POST", "/connectors/openai/chat-json", { body });
2635
+ }
2636
+ createAssistant(body) {
2637
+ return this.send("POST", "/connectors/openai/create-assistant", { body });
2638
+ }
2639
+ deleteAssistant(body) {
2640
+ return this.send("POST", "/connectors/openai/delete-assistant", { body });
2641
+ }
2642
+ getAssistant(body) {
2643
+ return this.send("POST", "/connectors/openai/get-assistant", { body });
2644
+ }
2645
+ moderate(body) {
2646
+ return this.send("POST", "/connectors/openai/moderate", { body });
2647
+ }
2648
+ updateAssistant(body) {
2649
+ return this.send("POST", "/connectors/openai/update-assistant", { body });
2650
+ }
2651
+ };
2652
+
2653
+ // src/clients/connectors/OuraClient.ts
2654
+ var OuraClient = class extends ConnectorClient {
2655
+ constructor(http, credentials) {
2656
+ super(http, credentials);
2657
+ }
2658
+ o(op, body = {}) {
2659
+ return this.send("POST", `/connectors/oura/${op}`, { body });
2660
+ }
2661
+ buildAuthorizationUrl(body = {}) {
2662
+ return this.o("build-authorization-url", body);
2663
+ }
2664
+ exchangeAuthorizationCode(body) {
2665
+ return this.o("exchange-authorization-code", body);
2666
+ }
2667
+ refreshAccessToken(body) {
2668
+ return this.o("refresh-access-token", body);
2669
+ }
2670
+ getPersonalInfo(body = {}) {
2671
+ return this.o("get-personal-info", body);
2672
+ }
2673
+ getDailyActivities(body = {}) {
2674
+ return this.o("get-daily-activities", body);
2675
+ }
2676
+ getDailyActivity(body) {
2677
+ return this.o("get-daily-activity", body);
2678
+ }
2679
+ getDailySleeps(body = {}) {
2680
+ return this.o("get-daily-sleeps", body);
2681
+ }
2682
+ getDailySleep(body) {
2683
+ return this.o("get-daily-sleep", body);
2684
+ }
2685
+ getSleeps(body = {}) {
2686
+ return this.o("get-sleeps", body);
2687
+ }
2688
+ getSleep(body) {
2689
+ return this.o("get-sleep", body);
2690
+ }
2691
+ getAllSleeps(body = {}) {
2692
+ return this.o("get-all-sleeps", body);
2693
+ }
2694
+ getDailyReadiness(body = {}) {
2695
+ return this.o("get-daily-readiness", body);
2696
+ }
2697
+ getDailyReadinessById(body) {
2698
+ return this.o("get-daily-readiness-by-id", body);
2699
+ }
2700
+ getHeartRates(body = {}) {
2701
+ return this.o("get-heart-rates", body);
2702
+ }
2703
+ getWorkouts(body = {}) {
2704
+ return this.o("get-workouts", body);
2705
+ }
2706
+ getWorkout(body) {
2707
+ return this.o("get-workout", body);
2708
+ }
2709
+ getDailySpo2(body = {}) {
2710
+ return this.o("get-daily-spo2", body);
2711
+ }
2712
+ getDailyStress(body = {}) {
2713
+ return this.o("get-daily-stress", body);
2714
+ }
2715
+ getDailyResilience(body = {}) {
2716
+ return this.o("get-daily-resilience", body);
2717
+ }
2718
+ getDailyCardiovascularAge(body = {}) {
2719
+ return this.o("get-daily-cardiovascular-age", body);
2720
+ }
2721
+ getVo2Max(body = {}) {
2722
+ return this.o("get-vo2-max", body);
2723
+ }
2724
+ getRingConfigurations(body = {}) {
2725
+ return this.o("get-ring-configurations", body);
2726
+ }
2727
+ getSessions(body = {}) {
2728
+ return this.o("get-sessions", body);
2729
+ }
2730
+ getSleepTimes(body = {}) {
2731
+ return this.o("get-sleep-times", body);
2732
+ }
2733
+ getTags(body = {}) {
2734
+ return this.o("get-tags", body);
2735
+ }
2736
+ getEnhancedTags(body = {}) {
2737
+ return this.o("get-enhanced-tags", body);
2738
+ }
2739
+ getRestModePeriods(body = {}) {
2740
+ return this.o("get-rest-mode-periods", body);
2741
+ }
2742
+ };
2743
+
2744
+ // src/clients/connectors/PlaidClient.ts
2745
+ var PlaidClient = class extends ConnectorClient {
2746
+ constructor(http, credentials) {
2747
+ super(http, credentials);
2748
+ }
2749
+ createIdentityVerification(body) {
2750
+ return this.send("POST", "/connectors/plaid/create-identity-verification", { body });
2751
+ }
2752
+ getIdentityVerification(body) {
2753
+ return this.send("POST", "/connectors/plaid/get-identity-verification", { body });
2754
+ }
2755
+ listIdentityVerifications(body) {
2756
+ return this.send("POST", "/connectors/plaid/list-identity-verifications", { body });
2757
+ }
2758
+ };
2759
+
2760
+ // src/clients/connectors/QuestClient.ts
2761
+ var QuestClient = class extends ConnectorClient {
2762
+ constructor(http, credentials) {
2763
+ super(http, credentials);
2764
+ }
2765
+ p(operation, body) {
2766
+ return this.send("POST", `/connectors/quest/${operation}`, { body });
2767
+ }
2768
+ // ── REST-style operations ──────────────────────────────────────────────────
2769
+ /** Create a lab order with Quest Diagnostics. */
2770
+ createOrder(body) {
2771
+ return this.send("POST", "/connectors/quest/create-order", { body });
2772
+ }
2773
+ /** Retrieve lab results for an order or patient. */
2774
+ getResults(body) {
2775
+ return this.send("POST", "/connectors/quest/get-results", { body });
2776
+ }
2777
+ /** Browse the Quest test catalog. */
2778
+ listTests(body) {
2779
+ return this.send("POST", "/connectors/quest/list-tests", { body });
2780
+ }
2781
+ // ── HL7 message-based operations ───────────────────────────────────────────
2782
+ getAccessToken(body = {}) {
2783
+ return this.p("get-access-token", body);
2784
+ }
2785
+ clearTokenCache(body = {}) {
2786
+ return this.p("clear-token-cache", body);
2787
+ }
2788
+ submitOrder(body) {
2789
+ return this.p("submit-order", body);
2790
+ }
2791
+ getOrderDocuments(body) {
2792
+ return this.p("get-order-documents", body);
2793
+ }
2794
+ evaluateAbn(body) {
2795
+ return this.p("evaluate-abn", body);
2796
+ }
2797
+ getRequisition(body) {
2798
+ return this.p("get-requisition", body);
2799
+ }
2800
+ evaluateAoe(body) {
2801
+ return this.p("evaluate-aoe", body);
2802
+ }
2803
+ submitFullOrder(body) {
2804
+ return this.p("submit-full-order", body);
2805
+ }
2806
+ getHl7Results(body = {}) {
2807
+ return this.p("get-hl7-results", body);
2808
+ }
2809
+ getPrintableResults(body = {}) {
2810
+ return this.p("get-printable-results", body);
2811
+ }
2812
+ getObservationResults(body = {}) {
2813
+ return this.p("get-observation-results", body);
2814
+ }
2815
+ acknowledgeHl7Results(body) {
2816
+ return this.p("acknowledge-hl7-results", body);
2817
+ }
2818
+ acknowledgePrintableResults(body) {
2819
+ return this.p("acknowledge-printable-results", body);
2820
+ }
2821
+ acknowledgeObservationResults(body) {
2822
+ return this.p("acknowledge-observation-results", body);
2823
+ }
2824
+ buildResultsAck(body) {
2825
+ return this.p("build-results-ack", body);
2826
+ }
2827
+ processPushedResult(body) {
2828
+ return this.p("process-pushed-result", body);
2829
+ }
2830
+ requestCompendiums(body = {}) {
2831
+ return this.p("request-compendiums", body);
2832
+ }
2833
+ requestCompendiumsOnDemand(body) {
2834
+ return this.p("request-compendiums-on-demand", body);
2835
+ }
2836
+ retrieveCompendium(body) {
2837
+ return this.p("retrieve-compendium", body);
2838
+ }
2839
+ retrieveAndExtractCompendium(body) {
2840
+ return this.p("retrieve-and-extract-compendium", body);
2841
+ }
2842
+ acknowledgeCompendium(body) {
2843
+ return this.p("acknowledge-compendium", body);
2844
+ }
2845
+ syncCompendiums(body = {}) {
2846
+ return this.p("sync-compendiums", body);
2847
+ }
2848
+ };
2849
+
2850
+ // src/clients/connectors/SalesforceClient.ts
2851
+ var SalesforceClient = class extends ConnectorClient {
2852
+ constructor(http, credentials) {
2853
+ super(http, credentials);
2854
+ }
2855
+ /** Execute a SOQL query and return matching records. */
2856
+ query(body) {
2857
+ return this.send("POST", "/connectors/salesforce/query", { body });
2858
+ }
2859
+ /** Create a new Salesforce record of the given sObject type. */
2860
+ create(body) {
2861
+ return this.send("POST", "/connectors/salesforce/create", { body });
2862
+ }
2863
+ /** Retrieve a single Salesforce record by sObject type and record ID. */
2864
+ get(body) {
2865
+ return this.send("POST", "/connectors/salesforce/get", { body });
2866
+ }
2867
+ buildCaseDescription(body) {
2868
+ return this.send("POST", "/connectors/salesforce/build-case-description", { body });
2869
+ }
2870
+ createAccount(body) {
2871
+ return this.send("POST", "/connectors/salesforce/create-account", { body });
2872
+ }
2873
+ createCallLog(body) {
2874
+ return this.send("POST", "/connectors/salesforce/create-call-log", { body });
2875
+ }
2876
+ createCampaign(body) {
2877
+ return this.send("POST", "/connectors/salesforce/create-campaign", { body });
2878
+ }
2879
+ createCase(body) {
2880
+ return this.send("POST", "/connectors/salesforce/create-case", { body });
2881
+ }
2882
+ createContact(body) {
2883
+ return this.send("POST", "/connectors/salesforce/create-contact", { body });
2884
+ }
2885
+ createEvent(body) {
2886
+ return this.send("POST", "/connectors/salesforce/create-event", { body });
2887
+ }
2888
+ createPatient(body) {
2889
+ return this.send("POST", "/connectors/salesforce/create-patient", { body });
2890
+ }
2891
+ createSegment(body) {
2892
+ return this.send("POST", "/connectors/salesforce/create-segment", { body });
2893
+ }
2894
+ deleteAccount(body) {
2895
+ return this.send("POST", "/connectors/salesforce/delete-account", { body });
2896
+ }
2897
+ deleteCallLog(body) {
2898
+ return this.send("POST", "/connectors/salesforce/delete-call-log", { body });
2899
+ }
2900
+ deleteCampaign(body) {
2901
+ return this.send("POST", "/connectors/salesforce/delete-campaign", { body });
2902
+ }
2903
+ deleteCase(body) {
2904
+ return this.send("POST", "/connectors/salesforce/delete-case", { body });
2905
+ }
2906
+ deleteEvent(body) {
2907
+ return this.send("POST", "/connectors/salesforce/delete-event", { body });
2908
+ }
2909
+ deletePatient(body) {
2910
+ return this.send("POST", "/connectors/salesforce/delete-patient", { body });
2911
+ }
2912
+ deleteSegment(body) {
2913
+ return this.send("POST", "/connectors/salesforce/delete-segment", { body });
2914
+ }
2915
+ describe(body) {
2916
+ return this.send("POST", "/connectors/salesforce/describe", { body });
2917
+ }
2918
+ getAccount(body) {
2919
+ return this.send("POST", "/connectors/salesforce/get-account", { body });
2920
+ }
2921
+ getAccountByTenant(body) {
2922
+ return this.send("POST", "/connectors/salesforce/get-account-by-tenant", { body });
2923
+ }
2924
+ getAvailableSlots(body = {}) {
2925
+ return this.send("POST", "/connectors/salesforce/get-available-slots", { body });
2926
+ }
2927
+ getCallLog(body) {
2928
+ return this.send("POST", "/connectors/salesforce/get-call-log", { body });
2929
+ }
2930
+ getCampaign(body) {
2931
+ return this.send("POST", "/connectors/salesforce/get-campaign", { body });
2932
+ }
2933
+ getCase(body) {
2934
+ return this.send("POST", "/connectors/salesforce/get-case", { body });
2935
+ }
2936
+ getConfiguration(body = {}) {
2937
+ return this.send("POST", "/connectors/salesforce/get-configuration", { body });
2938
+ }
2939
+ getContact(body = {}) {
2940
+ return this.send("POST", "/connectors/salesforce/get-contact", { body });
2941
+ }
2942
+ getEvent(body) {
2943
+ return this.send("POST", "/connectors/salesforce/get-event", { body });
2944
+ }
2945
+ getHealthcareOrgIdByTenant(body) {
2946
+ return this.send("POST", "/connectors/salesforce/get-healthcare-org-id-by-tenant", { body });
2947
+ }
2948
+ getNotScheduledEvents(body = {}) {
2949
+ return this.send("POST", "/connectors/salesforce/get-not-scheduled-events", { body });
2950
+ }
2951
+ getPatient(body) {
2952
+ return this.send("POST", "/connectors/salesforce/get-patient", { body });
2953
+ }
2954
+ getPatientByEmail(body) {
2955
+ return this.send("POST", "/connectors/salesforce/get-patient-by-email", { body });
2956
+ }
2957
+ getPatientByPhone(body) {
2958
+ return this.send("POST", "/connectors/salesforce/get-patient-by-phone", { body });
2959
+ }
2960
+ getSegment(body) {
2961
+ return this.send("POST", "/connectors/salesforce/get-segment", { body });
2962
+ }
2963
+ listAccounts(body = {}) {
2964
+ return this.send("POST", "/connectors/salesforce/list-accounts", { body });
2965
+ }
2966
+ listCallLogs(body = {}) {
2967
+ return this.send("POST", "/connectors/salesforce/list-call-logs", { body });
2968
+ }
2969
+ listCampaigns(body = {}) {
2970
+ return this.send("POST", "/connectors/salesforce/list-campaigns", { body });
2971
+ }
2972
+ listCases(body = {}) {
2973
+ return this.send("POST", "/connectors/salesforce/list-cases", { body });
2974
+ }
2975
+ listEvents(body = {}) {
2976
+ return this.send("POST", "/connectors/salesforce/list-events", { body });
2977
+ }
2978
+ listPatients(body = {}) {
2979
+ return this.send("POST", "/connectors/salesforce/list-patients", { body });
2980
+ }
2981
+ listSegments(body = {}) {
2982
+ return this.send("POST", "/connectors/salesforce/list-segments", { body });
2983
+ }
2984
+ scheduleEvent(body) {
2985
+ return this.send("POST", "/connectors/salesforce/schedule-event", { body });
2986
+ }
2987
+ setAccountSenaiteId(body) {
2988
+ return this.send("POST", "/connectors/salesforce/set-account-senaite-id", { body });
2989
+ }
2990
+ update(body) {
2991
+ return this.send("POST", "/connectors/salesforce/update", { body });
2992
+ }
2993
+ updateAccount(body) {
2994
+ return this.send("POST", "/connectors/salesforce/update-account", { body });
2995
+ }
2996
+ updateAccountAssets(body) {
2997
+ return this.send("POST", "/connectors/salesforce/update-account-assets", { body });
2998
+ }
2999
+ updateCallLog(body) {
3000
+ return this.send("POST", "/connectors/salesforce/update-call-log", { body });
3001
+ }
3002
+ updateCampaign(body) {
3003
+ return this.send("POST", "/connectors/salesforce/update-campaign", { body });
3004
+ }
3005
+ updatePatient(body) {
3006
+ return this.send("POST", "/connectors/salesforce/update-patient", { body });
3007
+ }
3008
+ updateSegment(body) {
3009
+ return this.send("POST", "/connectors/salesforce/update-segment", { body });
3010
+ }
3011
+ };
3012
+
3013
+ // src/clients/connectors/ScrapflyClient.ts
3014
+ var ScrapflyClient = class extends ConnectorClient {
3015
+ constructor(http, credentials) {
3016
+ super(http, credentials);
3017
+ }
3018
+ scrape(body) {
3019
+ return this.send("POST", "/connectors/scrapfly/scrape", { body });
3020
+ }
3021
+ getDocumentLinks(body) {
3022
+ return this.send("POST", "/connectors/scrapfly/get-document-links", { body });
3023
+ }
3024
+ };
3025
+
3026
+ // src/clients/connectors/SenaiteClient.ts
3027
+ var SenaiteClient = class extends ConnectorClient {
3028
+ constructor(http, credentials) {
3029
+ super(http, credentials);
3030
+ }
3031
+ s(op, body = {}) {
3032
+ return this.send("POST", `/connectors/senaite/${op}`, { body });
3033
+ }
3034
+ login(body = {}) {
3035
+ return this.s("login", body);
3036
+ }
3037
+ logout(body = {}) {
3038
+ return this.s("logout", body);
3039
+ }
3040
+ getCurrentUser(body = {}) {
3041
+ return this.s("get-current-user", body);
3042
+ }
3043
+ getAllClients(body = {}) {
3044
+ return this.s("get-all-clients", body);
3045
+ }
3046
+ getClientById(body) {
3047
+ return this.s("get-client-by-id", body);
3048
+ }
3049
+ getClientByUid(body) {
3050
+ return this.s("get-client-by-uid", body);
3051
+ }
3052
+ createClient(body) {
3053
+ return this.s("create-client", body);
3054
+ }
3055
+ updateClient(body) {
3056
+ return this.s("update-client", body);
3057
+ }
3058
+ deactivateClient(body) {
3059
+ return this.s("deactivate-client", body);
3060
+ }
3061
+ getAllSamples(body = {}) {
3062
+ return this.s("get-all-samples", body);
3063
+ }
3064
+ getSamplesByClientId(body) {
3065
+ return this.s("get-samples-by-client-id", body);
3066
+ }
3067
+ getSampleById(body) {
3068
+ return this.s("get-sample-by-id", body);
3069
+ }
3070
+ getSampleByUid(body) {
3071
+ return this.s("get-sample-by-uid", body);
3072
+ }
3073
+ createSample(body) {
3074
+ return this.s("create-sample", body);
3075
+ }
3076
+ updateSample(body) {
3077
+ return this.s("update-sample", body);
3078
+ }
3079
+ cancelSample(body) {
3080
+ return this.s("cancel-sample", body);
3081
+ }
3082
+ createContact(body) {
3083
+ return this.s("create-contact", body);
3084
+ }
3085
+ getContactsForClient(body) {
3086
+ return this.s("get-contacts-for-client", body);
3087
+ }
3088
+ getSampleTypes(body = {}) {
3089
+ return this.s("get-sample-types", body);
3090
+ }
3091
+ createSampleType(body) {
3092
+ return this.s("create-sample-type", body);
3093
+ }
3094
+ getAnalysisServices(body = {}) {
3095
+ return this.s("get-analysis-services", body);
3096
+ }
3097
+ createAnalysisService(body) {
3098
+ return this.s("create-analysis-service", body);
3099
+ }
3100
+ createDepartment(body) {
3101
+ return this.s("create-department", body);
3102
+ }
3103
+ createAnalysisCategory(body) {
3104
+ return this.s("create-analysis-category", body);
3105
+ }
3106
+ getCatalogs(body = {}) {
3107
+ return this.s("get-catalogs", body);
3108
+ }
3109
+ search(body) {
3110
+ return this.s("search", body);
3111
+ }
3112
+ ensureClientForTenant(body) {
3113
+ return this.s("ensure-senaite-client-for-tenant", body);
3114
+ }
3115
+ };
3116
+
3117
+ // src/clients/connectors/SendGridClient.ts
3118
+ var SendGridClient = class extends ConnectorClient {
3119
+ constructor(http, credentials) {
3120
+ super(http, credentials);
3121
+ }
3122
+ /** Send a transactional email via SendGrid. Supports static content and dynamic templates. */
3123
+ sendEmail(body) {
3124
+ return this.send("POST", "/connectors/sendgrid/send-email", { body });
3125
+ }
3126
+ /** List SendGrid email templates. */
3127
+ listTemplates(body) {
3128
+ return this.send("POST", "/connectors/sendgrid/list-templates", { body });
3129
+ }
3130
+ };
3131
+
3132
+ // src/clients/connectors/SteadyMDClient.ts
3133
+ var SteadyMDClient = class extends ConnectorClient {
3134
+ constructor(http, credentials) {
3135
+ super(http, credentials);
3136
+ }
3137
+ m(op, body = {}) {
3138
+ return this.send("POST", `/connectors/steadymd/${op}`, { body });
3139
+ }
3140
+ createPatient(body) {
3141
+ return this.m("create-patient", body);
3142
+ }
3143
+ getPatient(body) {
3144
+ return this.m("get-patient", body);
3145
+ }
3146
+ createEpisode(body) {
3147
+ return this.m("create-episode", body);
3148
+ }
3149
+ getEpisode(body) {
3150
+ return this.m("get-episode", body);
3151
+ }
3152
+ updateEpisode(body) {
3153
+ return this.m("update-episode", body);
3154
+ }
3155
+ getEpisodeSignedDocuments(body) {
3156
+ return this.m("get-episode-signed-documents", body);
3157
+ }
3158
+ createEpisodeLabRequisition(body) {
3159
+ return this.m("create-episode-lab-requisition", body);
3160
+ }
3161
+ getEpisodeLabRequisition(body) {
3162
+ return this.m("get-episode-lab-requisition", body);
3163
+ }
3164
+ listConsults(body = {}) {
3165
+ return this.m("list-consults", body);
3166
+ }
3167
+ createConsult(body) {
3168
+ return this.m("create-consult", body);
3169
+ }
3170
+ getConsult(body) {
3171
+ return this.m("get-consult", body);
3172
+ }
3173
+ sendConsultMessage(body) {
3174
+ return this.m("send-consult-message", body);
3175
+ }
3176
+ getConsultPatientUi(body) {
3177
+ return this.m("get-consult-patient-ui", body);
3178
+ }
3179
+ scheduleConsultAppointment(body) {
3180
+ return this.m("schedule-consult-appointment", body);
3181
+ }
3182
+ getConsultAvailability(body) {
3183
+ return this.m("get-consult-availability", body);
3184
+ }
3185
+ updateConsultStatus(body) {
3186
+ return this.m("update-consult-status", body);
3187
+ }
3188
+ createConsultIssue(body) {
3189
+ return this.m("create-consult-issue", body);
3190
+ }
3191
+ listPrograms(body = {}) {
3192
+ return this.m("list-programs", body);
3193
+ }
3194
+ getProgram(body) {
3195
+ return this.m("get-program", body);
3196
+ }
3197
+ getProgramAppointments(body) {
3198
+ return this.m("get-program-appointments", body);
3199
+ }
3200
+ listProgramClinicians(body) {
3201
+ return this.m("list-program-clinicians", body);
3202
+ }
3203
+ getProgramConsultOptions(body) {
3204
+ return this.m("get-program-consult-options", body);
3205
+ }
3206
+ getProgramLabs(body) {
3207
+ return this.m("get-program-labs", body);
3208
+ }
3209
+ listIntakes(body = {}) {
3210
+ return this.m("list-intakes", body);
3211
+ }
3212
+ createIntake(body) {
3213
+ return this.m("create-intake", body);
3214
+ }
3215
+ getIntake(body) {
3216
+ return this.m("get-intake", body);
3217
+ }
3218
+ updateIntake(body) {
3219
+ return this.m("update-intake", body);
3220
+ }
3221
+ addAllergyIntolerance(body) {
3222
+ return this.m("add-allergy-intolerance", body);
3223
+ }
3224
+ listLabOrders(body = {}) {
3225
+ return this.m("list-lab-orders", body);
3226
+ }
3227
+ createLabOrder(body) {
3228
+ return this.m("create-lab-order", body);
3229
+ }
3230
+ getLabOrder(body) {
3231
+ return this.m("get-lab-order", body);
3232
+ }
3233
+ getLabOrderPdf(body) {
3234
+ return this.m("get-lab-order-pdf", body);
3235
+ }
3236
+ listLabOrderResults(body) {
3237
+ return this.m("list-lab-order-results", body);
3238
+ }
3239
+ createLabOrderResult(body) {
3240
+ return this.m("create-lab-order-result", body);
3241
+ }
3242
+ getLabOrderResult(body) {
3243
+ return this.m("get-lab-order-result", body);
3244
+ }
3245
+ getLabResultPdf(body) {
3246
+ return this.m("get-lab-result-pdf", body);
3247
+ }
3248
+ listMessages(body = {}) {
3249
+ return this.m("list-messages", body);
3250
+ }
3251
+ createMessage(body) {
3252
+ return this.m("create-message", body);
3253
+ }
3254
+ getMessage(body) {
3255
+ return this.m("get-message", body);
3256
+ }
3257
+ claimIdentityVerification(body) {
3258
+ return this.m("claim-identity-verification", body);
3259
+ }
3260
+ listPharmacies(body = {}) {
3261
+ return this.m("list-pharmacies", body);
3262
+ }
3263
+ getClinician(body) {
3264
+ return this.m("get-clinician", body);
3265
+ }
3266
+ patchEpisode(body) {
3267
+ return this.send("POST", "/connectors/steadymd/patch-episode", { body });
3268
+ }
3269
+ };
3270
+
3271
+ // src/clients/connectors/StediClient.ts
3272
+ var StediClient = class extends ConnectorClient {
3273
+ constructor(http, credentials) {
3274
+ super(http, credentials);
3275
+ }
3276
+ /** Check insurance eligibility via the Stedi 270/271 API. */
3277
+ checkEligibility(body) {
3278
+ return this.send("POST", "/connectors/stedi/check-eligibility", { body });
3279
+ }
3280
+ /** Submit an X12 837 medical claim. */
3281
+ submitClaim(body) {
3282
+ return this.send("POST", "/connectors/stedi/submit-claim", { body });
3283
+ }
3284
+ /** Verify a provider by NPI via NPPES (routed through Stedi). */
3285
+ verifyProvider(body) {
3286
+ return this.send("POST", "/connectors/stedi/verify-provider", { body });
3287
+ }
3288
+ checkClaimStatus(body = {}) {
3289
+ return this.send("POST", "/connectors/stedi/check-claim-status", { body });
3290
+ }
3291
+ checkCoordinationOfBenefits(body = {}) {
3292
+ return this.send("POST", "/connectors/stedi/check-coordination-of-benefits", { body });
3293
+ }
3294
+ discoverInsurance(body = {}) {
3295
+ return this.send("POST", "/connectors/stedi/discover-insurance", { body });
3296
+ }
3297
+ get835EraReport(body) {
3298
+ return this.send("POST", "/connectors/stedi/get-835-era-report", { body });
3299
+ }
3300
+ getInsuranceDiscoveryResults(body) {
3301
+ return this.send("POST", "/connectors/stedi/get-insurance-discovery-results", { body });
3302
+ }
3303
+ submitInstitutionalClaim(body = {}) {
3304
+ return this.send("POST", "/connectors/stedi/submit-institutional-claim", { body });
3305
+ }
3306
+ submitProfessionalClaim(body = {}) {
3307
+ return this.send("POST", "/connectors/stedi/submit-professional-claim", { body });
3308
+ }
3309
+ };
3310
+
3311
+ // src/clients/connectors/StripeClient.ts
3312
+ var StripeClient = class extends ConnectorClient {
3313
+ constructor(http, credentials) {
3314
+ super(http, credentials);
3315
+ }
3316
+ s(op, body) {
3317
+ return this.send("POST", `/connectors/stripe/${op}`, { body });
3318
+ }
3319
+ /** Create a Stripe PaymentIntent. Returns the client_secret for client-side confirmation. */
3320
+ createPaymentIntent(body) {
3321
+ return this.s("create-payment-intent", body);
3322
+ }
3323
+ /** Retrieve the status of an existing PaymentIntent. */
3324
+ getPaymentIntentStatus(body) {
3325
+ return this.s("get-payment-intent-status", body);
3326
+ }
3327
+ /** Create a Stripe Customer record. */
3328
+ createCustomer(body) {
3329
+ return this.s("create-customer", body);
3330
+ }
3331
+ /** Create a Stripe Subscription for an existing customer and price. */
3332
+ createSubscription(body) {
3333
+ return this.s("create-subscription", body);
3334
+ }
3335
+ /** Create a Stripe Checkout Session. */
3336
+ createSession(body) {
3337
+ return this.s("create-session", body);
3338
+ }
3339
+ /** List active Stripe products. */
3340
+ listProducts(body = {}) {
3341
+ return this.s("list-products", body);
3342
+ }
3343
+ /** Create a new Stripe Price for an existing product. */
3344
+ createCopayPrice(body) {
3345
+ return this.s("create-copay-price", body);
3346
+ }
3347
+ /** Verify that the configured Stripe credentials are valid. */
3348
+ verifyConnection(body = {}) {
3349
+ return this.s("verify-connection", body);
3350
+ }
3351
+ /** Validate a card payment method without charging it. */
3352
+ validateAndTokenizeCard(body) {
3353
+ return this.s("validate-and-tokenize-card", body);
3354
+ }
3355
+ /** Create a direct charge against a source or customer. */
3356
+ chargePaymentSession(body) {
3357
+ return this.s("charge-payment-session", body);
3358
+ }
3359
+ };
3360
+
3361
+ // src/clients/connectors/TwilioClient.ts
3362
+ var TwilioClient = class extends ConnectorClient {
3363
+ constructor(http, credentials) {
3364
+ super(http, credentials);
3365
+ }
3366
+ /** Send an SMS message via Twilio. */
3367
+ sendSms(body) {
3368
+ return this.send("POST", "/connectors/twilio/send-sms", { body });
3369
+ }
3370
+ /** Retrieve a specific Twilio message by SID. */
3371
+ getMessage(body) {
3372
+ return this.send("POST", "/connectors/twilio/get-message", { body });
3373
+ }
3374
+ /** List Twilio messages, optionally filtered by to/from/date. */
3375
+ listMessages(body) {
3376
+ return this.send("POST", "/connectors/twilio/list-messages", { body });
3377
+ }
3378
+ };
3379
+
3380
+ // src/clients/connectors/UberClient.ts
3381
+ var UberClient = class extends ConnectorClient {
3382
+ constructor(http, credentials) {
3383
+ super(http, credentials);
3384
+ }
3385
+ p(operation, body) {
3386
+ return this.send("POST", `/connectors/uber/${operation}`, { body });
3387
+ }
3388
+ createDelivery(body) {
3389
+ return this.p("create-delivery", body);
3390
+ }
3391
+ createQuote(body) {
3392
+ return this.p("create-quote", body);
3393
+ }
3394
+ getDeliveries(body = {}) {
3395
+ return this.p("get-deliveries", body);
3396
+ }
3397
+ getUndeliveredOrders(body = {}) {
3398
+ return this.p("get-undelivered-orders", body);
3399
+ }
3400
+ getDelivery(body) {
3401
+ return this.p("get-delivery", body);
3402
+ }
3403
+ updateDelivery(body) {
3404
+ return this.p("update-delivery", body);
3405
+ }
3406
+ cancelDelivery(body) {
3407
+ return this.p("cancel-delivery", body);
3408
+ }
3409
+ findStores(body) {
3410
+ return this.p("find-stores", body);
3411
+ }
3412
+ };
3413
+
3414
+ // src/clients/connectors/WhoopClient.ts
3415
+ var WhoopClient = class extends ConnectorClient {
3416
+ constructor(http, credentials) {
3417
+ super(http, credentials);
3418
+ }
3419
+ w(op, body = {}) {
3420
+ return this.send("POST", `/connectors/whoop/${op}`, { body });
3421
+ }
3422
+ buildAuthorizationUrl(body = {}) {
3423
+ return this.w("build-authorization-url", body);
3424
+ }
3425
+ exchangeAuthorizationCode(body) {
3426
+ return this.w("exchange-authorization-code", body);
3427
+ }
3428
+ refreshAccessToken(body) {
3429
+ return this.w("refresh-access-token", body);
3430
+ }
3431
+ getPartnerToken(body = {}) {
3432
+ return this.w("get-partner-token", body);
3433
+ }
3434
+ revokeUserOauthAccess(body = {}) {
3435
+ return this.w("revoke-user-oauth-access", body);
3436
+ }
3437
+ getUserProfile(body = {}) {
3438
+ return this.w("get-user-profile", body);
3439
+ }
3440
+ getUserBodyMeasurement(body = {}) {
3441
+ return this.w("get-user-body-measurement", body);
3442
+ }
3443
+ getCycle(body) {
3444
+ return this.w("get-cycle", body);
3445
+ }
3446
+ getCycles(body = {}) {
3447
+ return this.w("get-cycles", body);
3448
+ }
3449
+ getAllCycles(body = {}) {
3450
+ return this.w("get-all-cycles", body);
3451
+ }
3452
+ getSleep(body) {
3453
+ return this.w("get-sleep", body);
3454
+ }
3455
+ getSleepForCycle(body) {
3456
+ return this.w("get-sleep-for-cycle", body);
3457
+ }
3458
+ getSleeps(body = {}) {
3459
+ return this.w("get-sleeps", body);
3460
+ }
3461
+ getAllSleeps(body = {}) {
3462
+ return this.w("get-all-sleeps", body);
3463
+ }
3464
+ getRecoveryForCycle(body) {
3465
+ return this.w("get-recovery-for-cycle", body);
3466
+ }
3467
+ getRecoveries(body = {}) {
3468
+ return this.w("get-recoveries", body);
3469
+ }
3470
+ getAllRecoveries(body = {}) {
3471
+ return this.w("get-all-recoveries", body);
3472
+ }
3473
+ getWorkout(body) {
3474
+ return this.w("get-workout", body);
3475
+ }
3476
+ getWorkouts(body = {}) {
3477
+ return this.w("get-workouts", body);
3478
+ }
3479
+ getAllWorkouts(body = {}) {
3480
+ return this.w("get-all-workouts", body);
3481
+ }
3482
+ getActivityMapping(body = {}) {
3483
+ return this.w("get-activity-mapping", body);
3484
+ }
3485
+ getLabRequisition(body = {}) {
3486
+ return this.w("get-lab-requisition", body);
3487
+ }
3488
+ getServiceRequest(body) {
3489
+ return this.w("get-service-request", body);
3490
+ }
3491
+ updateServiceRequestStatus(body) {
3492
+ return this.w("update-service-request-status", body);
3493
+ }
3494
+ uploadDiagnosticReportResults(body) {
3495
+ return this.w("upload-diagnostic-report-results", body);
3496
+ }
3497
+ addTestData(body) {
3498
+ return this.w("add-test-data", body);
3499
+ }
3500
+ submitVitalsFromDevice(body) {
3501
+ return this.w("submit-vitals-from-device", body);
3502
+ }
3503
+ };
3504
+
3505
+ // src/clients/connectors/ZocdocClient.ts
3506
+ var ZocdocClient = class extends ConnectorClient {
3507
+ constructor(http, credentials) {
3508
+ super(http, credentials);
3509
+ }
3510
+ z(op, body = {}) {
3511
+ return this.send("POST", `/connectors/zocdoc/${op}`, { body });
3512
+ }
3513
+ getDirectoryNpis(body = {}) {
3514
+ return this.z("get-directory-npis", body);
3515
+ }
3516
+ getProvidersByNpis(body) {
3517
+ return this.z("get-providers-by-npis", body);
3518
+ }
3519
+ getProviderByNpi(body) {
3520
+ return this.z("get-provider-by-npi", body);
3521
+ }
3522
+ searchProviderLocations(body) {
3523
+ return this.z("search-provider-locations", body);
3524
+ }
3525
+ getProviderLocationById(body) {
3526
+ return this.z("get-provider-location-by-id", body);
3527
+ }
3528
+ getMultipleLocationsAvailability(body) {
3529
+ return this.z("get-multiple-locations-availability", body);
3530
+ }
3531
+ createAppointment(body) {
3532
+ return this.z("create-appointment", body);
3533
+ }
3534
+ listAppointments(body = {}) {
3535
+ return this.z("list-appointments", body);
3536
+ }
3537
+ getAppointmentById(body) {
3538
+ return this.z("get-appointment-by-id", body);
3539
+ }
3540
+ confirmAppointment(body) {
3541
+ return this.z("confirm-appointment", body);
3542
+ }
3543
+ rescheduleAppointment(body) {
3544
+ return this.z("reschedule-appointment", body);
3545
+ }
3546
+ cancelAppointment(body) {
3547
+ return this.z("cancel-appointment", body);
3548
+ }
3549
+ getAppointmentParticipants(body) {
3550
+ return this.z("get-appointment-participants", body);
3551
+ }
3552
+ updateAppointmentStatus(body) {
3553
+ return this.z("update-appointment-status", body);
3554
+ }
3555
+ bookAndConfirmAppointment(body) {
3556
+ return this.z("book-and-confirm-appointment", body);
3557
+ }
3558
+ getInsurancePlans(body = {}) {
3559
+ return this.z("get-insurance-plans", body);
3560
+ }
3561
+ getInsurancePlanById(body) {
3562
+ return this.z("get-insurance-plan-by-id", body);
3563
+ }
3564
+ getProviderLocationInsuranceMappings(body) {
3565
+ return this.z("get-provider-location-insurance-mappings", body);
3566
+ }
3567
+ updateProviderLocationInsuranceMappings(body) {
3568
+ return this.z("update-provider-location-insurance-mappings", body);
3569
+ }
3570
+ getSchedulableEntities(body = {}) {
3571
+ return this.z("get-schedulable-entities", body);
3572
+ }
3573
+ searchFacilities(body = {}) {
3574
+ return this.z("search-facilities", body);
3575
+ }
3576
+ getFacilityById(body) {
3577
+ return this.z("get-facility-by-id", body);
3578
+ }
3579
+ getProviderCalendarTimeslots(body) {
3580
+ return this.z("get-provider-calendar-timeslots", body);
3581
+ }
3582
+ setProviderCalendarTimeslots(body) {
3583
+ return this.z("set-provider-calendar-timeslots", body);
3584
+ }
3585
+ createAppointmentAttachment(body) {
3586
+ return this.send("POST", "/connectors/zocdoc/create-appointment-attachment", { body });
3587
+ }
3588
+ };
3589
+
3590
+ // src/clients/connectors/ZusClient.ts
3591
+ var ZusClient = class extends ConnectorClient {
3592
+ constructor(http, credentials) {
3593
+ super(http, credentials);
3594
+ }
3595
+ p(operation, body) {
3596
+ return this.send("POST", `/connectors/zus/${operation}`, { body });
3597
+ }
3598
+ buildAthenaIdentifierSystem(body) {
3599
+ return this.p("build-athena-identifier-system", body);
3600
+ }
3601
+ getGeneralAccessAndRefreshTokens(body = {}) {
3602
+ return this.p("get-general-access-and-refresh-tokens", body);
3603
+ }
3604
+ getAccessAndRefreshTokens(body = {}) {
3605
+ return this.p("get-access-and-refresh-tokens", body);
3606
+ }
3607
+ patientExists(body) {
3608
+ return this.p("patient-exists", body);
3609
+ }
3610
+ searchPatientByAthenaId(body) {
3611
+ return this.p("search-patient-by-athena-id", body);
3612
+ }
3613
+ searchPatient(body) {
3614
+ return this.p("search-patient", body);
3615
+ }
3616
+ createPatient(body) {
3617
+ return this.p("create-patient", body);
3618
+ }
3619
+ uploadCcd(body) {
3620
+ return this.p("upload-ccd", body);
3621
+ }
3622
+ };
3623
+
3624
+ // src/clients/connectors/ConnectorsNamespace.ts
3625
+ function mode(value) {
3626
+ return value != null ? value : "sandbox";
3627
+ }
3628
+ var ConnectorsNamespace = class {
3629
+ constructor(http) {
3630
+ this.anthropic = new ConnectorFactory("anthropic", http, AnthropicClient, (c) => ({ api_key: c.api_key, mode: mode(c.mode) }));
3631
+ this.appleAuth = new ConnectorFactory("appleAuth", http, AppleAuthClient, (c) => ({ team_id: c.team_id, client_id: c.client_id, key_id: c.key_id, redirect_uri: c.redirect_uri, private_key: c.private_key }));
3632
+ this.athena = new ConnectorFactory("athena", http, AthenaHealthClient, (c) => ({ secret_key: c.secret_key, practice_id: c.practice_id, department_id: c.department_id, provider_id: c.provider_id, mode: mode(c.mode) }));
3633
+ this.cal = new ConnectorFactory("cal", http, CalClient, (c) => ({ api_key: c.api_key }));
3634
+ this.carequality = new ConnectorFactory("carequality", http, CarequalityClient, (c) => ({ api_key: c.api_key, initiator_url: c.initiator_url }));
3635
+ this.cms = new ConnectorFactory("cms", http, CmsClient, (c) => ({ api_key: c.api_key }));
3636
+ this.connecture = new ConnectorFactory("connecture", http, ConnectureClient, (c) => ({ basic_token: c.basic_token, client_key: c.client_key, client_secret: c.client_secret }));
3637
+ this.elevenlabs = new ConnectorFactory("elevenlabs", http, ElevenLabsClient, (c) => ({ api_key: c.api_key }));
3638
+ this.fedex = new ConnectorFactory("fedex", http, FedExClient, (c) => ({ client_id: c.client_id, client_secret: c.client_secret, account_number: c.account_number, mode: mode(c.mode) }));
3639
+ this.googleAI = new ConnectorFactory("googleAI", http, GoogleAIClient, (c) => ({ api_key: c.api_key }));
3640
+ this.googlePlaces = new ConnectorFactory("googlePlaces", http, GooglePlacesClient, (c) => ({ api_key: c.api_key, mode: mode(c.mode) }));
3641
+ this.grok = new ConnectorFactory("grok", http, GrokClient, (c) => ({ api_key: c.api_key }));
3642
+ this.healthie = new ConnectorFactory("healthie", http, HealthieClient, (c) => ({ secret_key: c.secret_key, mode: mode(c.mode), ...c.shard_id ? { shard_id: c.shard_id } : {} }));
3643
+ this.impilo = new ConnectorFactory("impilo", http, ImpiloClient, (c) => ({ api_key: c.api_key }));
3644
+ this.junction = new ConnectorFactory("junction", http, JunctionClient, (c) => ({ api_key: c.api_key }));
3645
+ this.nppes = new PublicConnectorFactory(http, NppesClient);
3646
+ this.openai = new ConnectorFactory("openai", http, OpenAIClient, (c) => ({ api_key: c.api_key }));
3647
+ this.oura = new ConnectorFactory("oura", http, OuraClient, (c) => ({ client_id: c.client_id, client_secret: c.client_secret, mode: mode(c.mode) }));
3648
+ this.plaid = new ConnectorFactory("plaid", http, PlaidClient, (c) => ({ client_id: c.client_id, secret: c.secret, template_id: c.template_id, mode: mode(c.mode) }));
3649
+ this.quest = new ConnectorFactory("quest", http, QuestClient, (c) => ({ client_id: c.client_id, client_secret: c.client_secret, mode: mode(c.mode) }));
3650
+ this.salesforce = new ConnectorFactory("salesforce", http, SalesforceClient, (c) => ({ client_id: c.client_id, client_secret: c.client_secret, username: c.username, password: c.password, mode: mode(c.mode) }));
3651
+ this.scrapfly = new ConnectorFactory("scrapfly", http, ScrapflyClient, (c) => ({ api_key: c.api_key }));
3652
+ this.senaite = new ConnectorFactory("senaite", http, SenaiteClient, (c) => ({ base_url: c.base_url, username: c.username, password: c.password }));
3653
+ this.sendgrid = new ConnectorFactory("sendgrid", http, SendGridClient, (c) => ({ api_key: c.api_key, mode: mode(c.mode) }));
3654
+ this.steadymd = new ConnectorFactory("steadymd", http, SteadyMDClient, (c) => {
3655
+ var _a;
3656
+ return { api_key: (_a = c.api_key) != null ? _a : c.token, mode: mode(c.mode), ...c.api_url ? { api_url: c.api_url } : {} };
3657
+ });
3658
+ this.stedi = new ConnectorFactory("stedi", http, StediClient, (c) => ({ api_key: c.api_key }));
3659
+ this.stripe = new ConnectorFactory("stripe", http, StripeClient, (c) => ({ secret_key: c.api_key }));
3660
+ this.twilio = new ConnectorFactory("twilio", http, TwilioClient, (c) => ({ account_sid: c.account_sid, auth_token: c.auth_token, from_number: c.from_number, mode: mode(c.mode) }));
3661
+ this.uber = new ConnectorFactory("uber", http, UberClient, (c) => ({ client_id: c.client_id, client_secret: c.client_secret, customer_id: c.customer_id, mode: mode(c.mode) }));
3662
+ this.whoop = new ConnectorFactory("whoop", http, WhoopClient, (c) => ({ client_id: c.client_id, client_secret: c.client_secret, mode: mode(c.mode) }));
3663
+ this.zocdoc = new ConnectorFactory("zocdoc", http, ZocdocClient, (c) => ({ api_key: c.api_key }));
3664
+ this.zus = new ConnectorFactory("zus", http, ZusClient, (c) => ({ client_id: c.client_id, client_secret: c.client_secret, mode: mode(c.mode) }));
3665
+ }
3666
+ };
3667
+
699
3668
  // src/HCSDK.ts
700
3669
  var HCSDK = class {
701
3670
  constructor(config) {
@@ -726,6 +3695,7 @@ var HCSDK = class {
726
3695
  () => this.state.tenantId
727
3696
  );
728
3697
  this.mcp = new MCPClient(this.http);
3698
+ this.connectors = new ConnectorsNamespace(this.http);
729
3699
  }
730
3700
  setAccessToken(token) {
731
3701
  this.state.accessToken = token;
@@ -820,12 +3790,48 @@ var HCSDK_SWAGGER_OPERATION_COUNTS = {
820
3790
  telehealth: 1
821
3791
  };
822
3792
  export {
3793
+ AnthropicClient,
3794
+ AppleAuthClient,
3795
+ AthenaHealthClient,
3796
+ CalClient,
3797
+ CarequalityClient,
3798
+ CmsClient,
3799
+ ConnectorClient,
3800
+ ConnectorFactory,
3801
+ ConnectorsNamespace,
3802
+ ConnectureClient,
3803
+ ElevenLabsClient,
3804
+ FedExClient,
3805
+ GoogleAIClient,
3806
+ GooglePlacesClient,
3807
+ GrokClient,
823
3808
  HCSDK,
824
3809
  HCSDK_OPERATION_SUMMARY,
825
3810
  HCSDK_SWAGGER_OPERATION_COUNTS,
826
3811
  HCSDK_SWAGGER_PATH_COUNTS,
827
3812
  HCSDK_TOTAL_OPERATION_COUNT,
3813
+ HealthieClient,
3814
+ ImpiloClient,
3815
+ JunctionClient,
3816
+ NppesClient,
3817
+ OpenAIClient,
3818
+ OuraClient,
3819
+ PlaidClient,
3820
+ PublicConnectorFactory,
3821
+ QuestClient,
828
3822
  SDKError,
3823
+ SalesforceClient,
3824
+ ScrapflyClient,
3825
+ SenaiteClient,
3826
+ SendGridClient,
3827
+ SteadyMDClient,
3828
+ StediClient,
3829
+ StripeClient,
3830
+ TwilioClient,
3831
+ UberClient,
3832
+ WhoopClient,
3833
+ ZocdocClient,
3834
+ ZusClient,
829
3835
  assertEnvironment,
830
3836
  isServiceName,
831
3837
  resolveBaseUrl,