@healthcloudai/hc-sdk 0.6.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.
Files changed (6) hide show
  1. package/README.md +121 -159
  2. package/dist/index.cjs +1610 -1480
  3. package/dist/index.d.cts +7872 -1906
  4. package/dist/index.d.ts +7872 -1906
  5. package/dist/index.js +1606 -1478
  6. package/package.json +8 -5
package/dist/index.cjs CHANGED
@@ -26,6 +26,9 @@ __export(index_exports, {
26
26
  CalClient: () => CalClient,
27
27
  CarequalityClient: () => CarequalityClient,
28
28
  CmsClient: () => CmsClient,
29
+ ConnectorClient: () => ConnectorClient,
30
+ ConnectorFactory: () => ConnectorFactory,
31
+ ConnectorsNamespace: () => ConnectorsNamespace,
29
32
  ConnectureClient: () => ConnectureClient,
30
33
  ElevenLabsClient: () => ElevenLabsClient,
31
34
  FedExClient: () => FedExClient,
@@ -44,8 +47,8 @@ __export(index_exports, {
44
47
  OpenAIClient: () => OpenAIClient,
45
48
  OuraClient: () => OuraClient,
46
49
  PlaidClient: () => PlaidClient,
50
+ PublicConnectorFactory: () => PublicConnectorFactory,
47
51
  QuestClient: () => QuestClient,
48
- QuestHl7Client: () => QuestHl7Client,
49
52
  SDKError: () => SDKError,
50
53
  SalesforceClient: () => SalesforceClient,
51
54
  ScrapflyClient: () => ScrapflyClient,
@@ -56,7 +59,6 @@ __export(index_exports, {
56
59
  StripeClient: () => StripeClient,
57
60
  TwilioClient: () => TwilioClient,
58
61
  UberClient: () => UberClient,
59
- VendorsNamespace: () => VendorsNamespace,
60
62
  WhoopClient: () => WhoopClient,
61
63
  ZocdocClient: () => ZocdocClient,
62
64
  ZusClient: () => ZusClient,
@@ -766,10 +768,159 @@ var VitalsClient = class extends BaseServiceClient {
766
768
  }
767
769
  };
768
770
 
769
- // src/clients/vendors/AthenaHealthClient.ts
770
- var AthenaHealthClient = class extends BaseServiceClient {
771
- constructor(http) {
771
+ // src/clients/connectors/ConnectorFactory.ts
772
+ function assertConfigObject(connectorName, config) {
773
+ if (typeof config !== "object" || config === null || Array.isArray(config)) {
774
+ throw new TypeError(`${connectorName}.createClient(...) requires a configuration object.`);
775
+ }
776
+ }
777
+ function validateRequestCredentials(connectorName, credentials) {
778
+ const missing = Object.entries(credentials).filter(([, value]) => value === void 0 || value === null || typeof value === "string" && value.trim() === "").map(([key]) => key).sort();
779
+ if (missing.length > 0) {
780
+ throw new Error(`Missing required connector configuration for ${connectorName}: ${missing.join(", ")}`);
781
+ }
782
+ }
783
+ var ConnectorFactory = class {
784
+ constructor(connectorName, http, Client, mapConfig) {
785
+ this.connectorName = connectorName;
786
+ this.http = http;
787
+ this.Client = Client;
788
+ this.mapConfig = mapConfig;
789
+ }
790
+ createClient(config) {
791
+ assertConfigObject(this.connectorName, config);
792
+ const credentials = this.mapConfig(config);
793
+ validateRequestCredentials(this.connectorName, credentials);
794
+ return new this.Client(this.http, credentials);
795
+ }
796
+ };
797
+ var PublicConnectorFactory = class {
798
+ constructor(http, Client) {
799
+ this.http = http;
800
+ this.Client = Client;
801
+ }
802
+ createClient() {
803
+ return new this.Client(this.http, {});
804
+ }
805
+ };
806
+
807
+ // src/clients/connectors/ConnectorClient.ts
808
+ var SENSITIVE_KEYS = /* @__PURE__ */ new Set([
809
+ "api_key",
810
+ "auth_token",
811
+ "basic_token",
812
+ "client_secret",
813
+ "password",
814
+ "private_key",
815
+ "secret",
816
+ "secret_key",
817
+ "token"
818
+ ]);
819
+ function isPlainObject(value) {
820
+ if (typeof value !== "object" || value === null || Array.isArray(value)) return false;
821
+ const proto = Object.getPrototypeOf(value);
822
+ return proto === Object.prototype || proto === null;
823
+ }
824
+ function snakeCaseKey(key) {
825
+ 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();
826
+ }
827
+ function toSnakeCase(value) {
828
+ if (Array.isArray(value)) return value.map(toSnakeCase);
829
+ if (!isPlainObject(value)) return value;
830
+ return Object.fromEntries(
831
+ Object.entries(value).map(([key, child]) => [snakeCaseKey(key), toSnakeCase(child)])
832
+ );
833
+ }
834
+ var ConnectorClient = class extends BaseServiceClient {
835
+ constructor(http, credentials = {}) {
772
836
  super(http, "connectors");
837
+ this.connectorCredentials = Object.freeze({ ...credentials });
838
+ }
839
+ async send(method, path, options = {}) {
840
+ const requestOptions = this.withCredentials(method, options);
841
+ try {
842
+ return toSnakeCase(await super.send(method, path, requestOptions));
843
+ } catch (error) {
844
+ if (!(error instanceof SDKError)) throw error;
845
+ throw new SDKError({
846
+ message: this.redactText(error.message),
847
+ statusCode: error.statusCode,
848
+ response: toSnakeCase(this.redactValue(error.response)),
849
+ cause: error.cause
850
+ });
851
+ }
852
+ }
853
+ withCredentials(method, options) {
854
+ if (method === "GET" || method === "DELETE") return options;
855
+ const body = options.body;
856
+ const merged = { ...this.connectorCredentials };
857
+ if (body === void 0) {
858
+ return { ...options, body: toSnakeCase(merged) };
859
+ }
860
+ if (!isPlainObject(body)) {
861
+ return options;
862
+ }
863
+ for (const [key, value] of Object.entries(body)) {
864
+ if (value === void 0 || value === null) continue;
865
+ if (SENSITIVE_KEYS.has(key) && key in this.connectorCredentials) continue;
866
+ merged[key] = value;
867
+ }
868
+ return { ...options, body: toSnakeCase(merged) };
869
+ }
870
+ sensitiveValues() {
871
+ 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);
872
+ }
873
+ redactText(value) {
874
+ let redacted = value;
875
+ for (const secret of this.sensitiveValues()) {
876
+ redacted = redacted.split(secret).join("[REDACTED]");
877
+ }
878
+ return redacted.replace(/(bearer\s+)[A-Za-z0-9._~+/=-]+/gi, "$1[REDACTED]");
879
+ }
880
+ redactValue(value, key) {
881
+ if (key && SENSITIVE_KEYS.has(key)) return "[REDACTED]";
882
+ if (Array.isArray(value)) return value.map((item) => this.redactValue(item));
883
+ if (isPlainObject(value)) {
884
+ return Object.fromEntries(
885
+ Object.entries(value).map(([childKey, child]) => [childKey, this.redactValue(child, childKey)])
886
+ );
887
+ }
888
+ if (typeof value === "string") return this.redactText(value);
889
+ return value;
890
+ }
891
+ };
892
+
893
+ // src/clients/connectors/AnthropicClient.ts
894
+ var AnthropicClient = class extends ConnectorClient {
895
+ constructor(http, credentials) {
896
+ super(http, credentials);
897
+ }
898
+ /** Send a message to an Anthropic Claude model. */
899
+ message(body) {
900
+ return this.send("POST", "/connectors/anthropic/message", { body });
901
+ }
902
+ };
903
+
904
+ // src/clients/connectors/AppleAuthClient.ts
905
+ var AppleAuthClient = class extends ConnectorClient {
906
+ constructor(http, credentials) {
907
+ super(http, credentials);
908
+ }
909
+ exchangeCode(body) {
910
+ return this.send("POST", "/connectors/apple-auth/exchange-code", { body });
911
+ }
912
+ decodeIdToken(body) {
913
+ return this.send("POST", "/connectors/apple-auth/decode-id-token", { body });
914
+ }
915
+ generateClientSecret(body = {}) {
916
+ return this.send("POST", "/connectors/apple-auth/generate-client-secret", { body });
917
+ }
918
+ };
919
+
920
+ // src/clients/connectors/AthenaHealthClient.ts
921
+ var AthenaHealthClient = class extends ConnectorClient {
922
+ constructor(http, credentials) {
923
+ super(http, credentials);
773
924
  }
774
925
  a(op, body) {
775
926
  return this.send("POST", `/connectors/athena-health/${op}`, { body });
@@ -1383,1790 +1534,1676 @@ var AthenaHealthClient = class extends BaseServiceClient {
1383
1534
  }
1384
1535
  };
1385
1536
 
1386
- // src/clients/vendors/StripeClient.ts
1387
- var StripeClient = class extends BaseServiceClient {
1388
- constructor(http) {
1389
- super(http, "connectors");
1537
+ // src/clients/connectors/CalClient.ts
1538
+ var CalClient = class extends ConnectorClient {
1539
+ constructor(http, credentials) {
1540
+ super(http, credentials);
1390
1541
  }
1391
- s(op, body) {
1392
- return this.send("POST", `/connectors/stripe/${op}`, { body });
1542
+ c(op, body = {}) {
1543
+ return this.send("POST", `/connectors/cal/${op}`, { body });
1393
1544
  }
1394
- /** Create a Stripe PaymentIntent. Returns the client_secret for client-side confirmation. */
1395
- createPaymentIntent(body) {
1396
- return this.s("create-payment-intent", body);
1545
+ getAllBookings(body = {}) {
1546
+ return this.c("get-all-bookings", body);
1397
1547
  }
1398
- /** Retrieve the status of an existing PaymentIntent. */
1399
- getPaymentIntentStatus(body) {
1400
- return this.s("get-payment-intent-status", body);
1548
+ /**
1549
+ * The connector route invokes CalConnector.create_booking(booking), so the
1550
+ * public booking payload must be wrapped for the gateway's named argument.
1551
+ */
1552
+ createBooking(body) {
1553
+ return this.c("create-booking", { booking: body });
1401
1554
  }
1402
- /** Create a Stripe Customer record. */
1403
- createCustomer(body) {
1404
- return this.s("create-customer", body);
1555
+ getEventTypes(body = {}) {
1556
+ return this.c("get-event-types", body);
1405
1557
  }
1406
- /** Create a Stripe Subscription for an existing customer and price. */
1407
- createSubscription(body) {
1408
- return this.s("create-subscription", body);
1558
+ getAvailableSlots(body) {
1559
+ return this.c("get-available-slots", body);
1409
1560
  }
1410
- /** Create a Stripe Checkout Session. */
1411
- createSession(body) {
1412
- return this.s("create-session", body);
1561
+ getScheduleForEventType(body) {
1562
+ return this.c("get-schedule-for-event-type", body);
1413
1563
  }
1414
- /** List active Stripe products. */
1415
- listProducts(body = {}) {
1416
- return this.s("list-products", body);
1564
+ getScheduleById(body) {
1565
+ return this.c("get-schedule-by-id", body);
1417
1566
  }
1418
- /** Create a new Stripe Price for an existing product. */
1419
- createCopayPrice(body) {
1420
- return this.s("create-copay-price", body);
1567
+ createSchedule(body) {
1568
+ return this.c("create-schedule", body);
1421
1569
  }
1422
- /** Verify that the configured Stripe credentials are valid. */
1423
- verifyConnection(body = {}) {
1424
- return this.s("verify-connection", body);
1570
+ assignScheduleToEventType(body) {
1571
+ return this.c("assign-schedule-to-event-type", body);
1425
1572
  }
1426
- /** Validate a card payment method without charging it. */
1427
- validateAndTokenizeCard(body) {
1428
- return this.s("validate-and-tokenize-card", body);
1573
+ updateSchedule(body) {
1574
+ return this.c("update-schedule", body);
1429
1575
  }
1430
- /** Create a direct charge against a source or customer. */
1431
- chargePaymentSession(body) {
1432
- return this.s("charge-payment-session", body);
1576
+ updateAvailabilityFromAthenaSlots(body) {
1577
+ return this.c("update-availability-from-athena-slots", body);
1578
+ }
1579
+ syncWithAthena(body = {}) {
1580
+ return this.c("sync-with-athena", body);
1433
1581
  }
1434
1582
  };
1435
1583
 
1436
- // src/clients/vendors/TwilioClient.ts
1437
- var TwilioClient = class extends BaseServiceClient {
1438
- constructor(http) {
1439
- super(http, "connectors");
1584
+ // src/clients/connectors/CarequalityClient.ts
1585
+ var CarequalityClient = class extends ConnectorClient {
1586
+ constructor(http, credentials) {
1587
+ super(http, credentials);
1440
1588
  }
1441
- /** Send an SMS message via Twilio. */
1442
- sendSms(body) {
1443
- return this.send("POST", "/connectors/twilio/send-sms", { body });
1589
+ discoverPatient(body) {
1590
+ return this.send("POST", "/connectors/carequality/discover-patient", { body });
1444
1591
  }
1445
- /** Retrieve a specific Twilio message by SID. */
1446
- getMessage(body) {
1447
- return this.send("POST", "/connectors/twilio/get-message", { body });
1592
+ queryDocuments(body) {
1593
+ return this.send("POST", "/connectors/carequality/query-documents", { body });
1448
1594
  }
1449
- /** List Twilio messages, optionally filtered by to/from/date. */
1450
- listMessages(body) {
1451
- return this.send("POST", "/connectors/twilio/list-messages", { body });
1595
+ retrieveDocuments(body) {
1596
+ return this.send("POST", "/connectors/carequality/retrieve-documents", { body });
1597
+ }
1598
+ importPatientDocuments(body) {
1599
+ return this.send("POST", "/connectors/carequality/import-patient-documents", { body });
1452
1600
  }
1453
1601
  };
1454
1602
 
1455
- // src/clients/vendors/StediClient.ts
1456
- var StediClient = class extends BaseServiceClient {
1457
- constructor(http) {
1458
- super(http, "connectors");
1603
+ // src/clients/connectors/CmsClient.ts
1604
+ var CmsClient = class extends ConnectorClient {
1605
+ constructor(http, credentials) {
1606
+ super(http, credentials);
1459
1607
  }
1460
- /** Check insurance eligibility via the Stedi 270/271 API. */
1461
- checkEligibility(body) {
1462
- return this.send("POST", "/connectors/stedi/check-eligibility", { body });
1608
+ searchHealthPlans(body) {
1609
+ return this.send("POST", "/connectors/cms/search-health-plans", { body });
1463
1610
  }
1464
- /** Submit an X12 837 medical claim. */
1465
- submitClaim(body) {
1466
- return this.send("POST", "/connectors/stedi/submit-claim", { body });
1611
+ getCountyFips(body) {
1612
+ return this.send("POST", "/connectors/cms/get-county-fips", { body });
1467
1613
  }
1468
- /** Verify a provider by NPI via NPPES (routed through Stedi). */
1469
- verifyProvider(body) {
1470
- return this.send("POST", "/connectors/stedi/verify-provider", { body });
1614
+ };
1615
+
1616
+ // src/clients/connectors/ConnectureClient.ts
1617
+ var ConnectureClient = class extends ConnectorClient {
1618
+ constructor(http, credentials) {
1619
+ super(http, credentials);
1471
1620
  }
1472
- checkClaimStatus(body = {}) {
1473
- return this.send("POST", "/connectors/stedi/check-claim-status", { body });
1621
+ getAccessToken(body = {}) {
1622
+ return this.send("POST", "/connectors/connecture/get-access-token", { body });
1474
1623
  }
1475
- checkCoordinationOfBenefits(body = {}) {
1476
- return this.send("POST", "/connectors/stedi/check-coordination-of-benefits", { body });
1624
+ createSession(body) {
1625
+ return this.send("POST", "/connectors/connecture/create-session", { body });
1477
1626
  }
1478
- discoverInsurance(body = {}) {
1479
- return this.send("POST", "/connectors/stedi/discover-insurance", { body });
1627
+ getSession(body) {
1628
+ return this.send("POST", "/connectors/connecture/get-session", { body });
1480
1629
  }
1481
- get835EraReport(body) {
1482
- return this.send("POST", "/connectors/stedi/get-835-era-report", { body });
1630
+ updateSession(body) {
1631
+ return this.send("POST", "/connectors/connecture/update-session", { body });
1483
1632
  }
1484
- getInsuranceDiscoveryResults(body) {
1485
- return this.send("POST", "/connectors/stedi/get-insurance-discovery-results", { body });
1633
+ checkEligibility(body) {
1634
+ return this.send("POST", "/connectors/connecture/check-eligibility", { body });
1486
1635
  }
1487
- submitInstitutionalClaim(body = {}) {
1488
- return this.send("POST", "/connectors/stedi/submit-institutional-claim", { body });
1636
+ planCount(body) {
1637
+ return this.send("POST", "/connectors/connecture/plan-count", { body });
1489
1638
  }
1490
- submitProfessionalClaim(body = {}) {
1491
- return this.send("POST", "/connectors/stedi/submit-professional-claim", { body });
1639
+ sessionPlans(body) {
1640
+ return this.send("POST", "/connectors/connecture/session-plans", { body });
1641
+ }
1642
+ sessionPlanById(body) {
1643
+ return this.send("POST", "/connectors/connecture/session-plan-by-id", { body });
1644
+ }
1645
+ enroll(body) {
1646
+ return this.send("POST", "/connectors/connecture/enroll", { body });
1647
+ }
1648
+ lookupPlans(body) {
1649
+ return this.send("POST", "/connectors/connecture/lookup-plans", { body });
1492
1650
  }
1493
1651
  };
1494
1652
 
1495
- // src/clients/vendors/SalesforceClient.ts
1496
- var SalesforceClient = class extends BaseServiceClient {
1497
- constructor(http) {
1498
- super(http, "connectors");
1653
+ // src/clients/connectors/ElevenLabsClient.ts
1654
+ var ElevenLabsClient = class extends ConnectorClient {
1655
+ constructor(http, credentials) {
1656
+ super(http, credentials);
1499
1657
  }
1500
- /** Execute a SOQL query and return matching records. */
1501
- query(body) {
1502
- return this.send("POST", "/connectors/salesforce/query", { body });
1658
+ /** Synthesize speech from text using ElevenLabs TTS. */
1659
+ synthesize(body) {
1660
+ return this.send("POST", "/connectors/elevenlabs/synthesize", { body });
1503
1661
  }
1504
- /** Create a new Salesforce record of the given sObject type. */
1505
- create(body) {
1506
- return this.send("POST", "/connectors/salesforce/create", { body });
1662
+ /** List available ElevenLabs voices. */
1663
+ listVoices(body) {
1664
+ return this.send("POST", "/connectors/elevenlabs/list-voices", { body });
1507
1665
  }
1508
- /** Retrieve a single Salesforce record by sObject type and record ID. */
1509
- get(body) {
1510
- return this.send("POST", "/connectors/salesforce/get", { body });
1666
+ createAgent(body = {}) {
1667
+ return this.send("POST", "/connectors/elevenlabs/create-agent", { body });
1511
1668
  }
1512
- buildCaseDescription(body) {
1513
- return this.send("POST", "/connectors/salesforce/build-case-description", { body });
1669
+ createTool(body) {
1670
+ return this.send("POST", "/connectors/elevenlabs/create-tool", { body });
1514
1671
  }
1515
- createAccount(body) {
1516
- return this.send("POST", "/connectors/salesforce/create-account", { body });
1672
+ deleteAgent(body) {
1673
+ return this.send("POST", "/connectors/elevenlabs/delete-agent", { body });
1517
1674
  }
1518
- createCallLog(body) {
1519
- return this.send("POST", "/connectors/salesforce/create-call-log", { body });
1675
+ deleteTool(body) {
1676
+ return this.send("POST", "/connectors/elevenlabs/delete-tool", { body });
1520
1677
  }
1521
- createCampaign(body) {
1522
- return this.send("POST", "/connectors/salesforce/create-campaign", { body });
1678
+ duplicateAgent(body) {
1679
+ return this.send("POST", "/connectors/elevenlabs/duplicate-agent", { body });
1523
1680
  }
1524
- createCase(body) {
1525
- return this.send("POST", "/connectors/salesforce/create-case", { body });
1681
+ getAgent(body) {
1682
+ return this.send("POST", "/connectors/elevenlabs/get-agent", { body });
1526
1683
  }
1527
- createContact(body) {
1528
- return this.send("POST", "/connectors/salesforce/create-contact", { body });
1684
+ getAllAgents(body = {}) {
1685
+ return this.send("POST", "/connectors/elevenlabs/get-all-agents", { body });
1529
1686
  }
1530
- createEvent(body) {
1531
- return this.send("POST", "/connectors/salesforce/create-event", { body });
1687
+ getAllConversations(body = {}) {
1688
+ return this.send("POST", "/connectors/elevenlabs/get-all-conversations", { body });
1532
1689
  }
1533
- createPatient(body) {
1534
- return this.send("POST", "/connectors/salesforce/create-patient", { body });
1690
+ getAllTools(body = {}) {
1691
+ return this.send("POST", "/connectors/elevenlabs/get-all-tools", { body });
1535
1692
  }
1536
- createSegment(body) {
1537
- return this.send("POST", "/connectors/salesforce/create-segment", { body });
1693
+ getConversation(body) {
1694
+ return this.send("POST", "/connectors/elevenlabs/get-conversation", { body });
1538
1695
  }
1539
- deleteAccount(body) {
1540
- return this.send("POST", "/connectors/salesforce/delete-account", { body });
1696
+ getTool(body) {
1697
+ return this.send("POST", "/connectors/elevenlabs/get-tool", { body });
1541
1698
  }
1542
- deleteCallLog(body) {
1543
- return this.send("POST", "/connectors/salesforce/delete-call-log", { body });
1699
+ getToolDependentAgents(body) {
1700
+ return this.send("POST", "/connectors/elevenlabs/get-tool-dependent-agents", { body });
1544
1701
  }
1545
- deleteCampaign(body) {
1546
- return this.send("POST", "/connectors/salesforce/delete-campaign", { body });
1702
+ getUser(body = {}) {
1703
+ return this.send("POST", "/connectors/elevenlabs/get-user", { body });
1547
1704
  }
1548
- deleteCase(body) {
1549
- return this.send("POST", "/connectors/salesforce/delete-case", { body });
1705
+ getVoice(body) {
1706
+ return this.send("POST", "/connectors/elevenlabs/get-voice", { body });
1550
1707
  }
1551
- deleteEvent(body) {
1552
- return this.send("POST", "/connectors/salesforce/delete-event", { body });
1708
+ updateAgent(body) {
1709
+ return this.send("POST", "/connectors/elevenlabs/update-agent", { body });
1553
1710
  }
1554
- deletePatient(body) {
1555
- return this.send("POST", "/connectors/salesforce/delete-patient", { body });
1711
+ updateTool(body) {
1712
+ return this.send("POST", "/connectors/elevenlabs/update-tool", { body });
1556
1713
  }
1557
- deleteSegment(body) {
1558
- return this.send("POST", "/connectors/salesforce/delete-segment", { body });
1714
+ };
1715
+
1716
+ // src/clients/connectors/FedExClient.ts
1717
+ var FedExClient = class extends ConnectorClient {
1718
+ constructor(http, credentials) {
1719
+ super(http, credentials);
1559
1720
  }
1560
- describe(body) {
1561
- return this.send("POST", "/connectors/salesforce/describe", { body });
1721
+ createShipment(body) {
1722
+ return this.send("POST", "/connectors/fedex/create-shipment", { body });
1562
1723
  }
1563
- getAccount(body) {
1564
- return this.send("POST", "/connectors/salesforce/get-account", { body });
1724
+ trackShipment(body) {
1725
+ return this.send("POST", "/connectors/fedex/track-shipment", { body });
1565
1726
  }
1566
- getAccountByTenant(body) {
1567
- return this.send("POST", "/connectors/salesforce/get-account-by-tenant", { body });
1727
+ };
1728
+
1729
+ // src/clients/connectors/GoogleAIClient.ts
1730
+ var GoogleAIClient = class extends ConnectorClient {
1731
+ constructor(http, credentials) {
1732
+ super(http, credentials);
1568
1733
  }
1569
- getAvailableSlots(body = {}) {
1570
- return this.send("POST", "/connectors/salesforce/get-available-slots", { body });
1734
+ /** Generate a response from a Gemini model. */
1735
+ generate(body) {
1736
+ return this.send("POST", "/connectors/google-ai/generate", { body });
1571
1737
  }
1572
- getCallLog(body) {
1573
- return this.send("POST", "/connectors/salesforce/get-call-log", { body });
1738
+ /** Generate text embeddings via Gemini. */
1739
+ embed(body) {
1740
+ return this.send("POST", "/connectors/google-ai/embed", { body });
1574
1741
  }
1575
- getCampaign(body) {
1576
- return this.send("POST", "/connectors/salesforce/get-campaign", { body });
1742
+ invokeA1cVisionCapture(body) {
1743
+ return this.send("POST", "/connectors/google-ai/invoke-a1c-vision-capture", { body });
1577
1744
  }
1578
- getCase(body) {
1579
- return this.send("POST", "/connectors/salesforce/get-case", { body });
1745
+ };
1746
+
1747
+ // src/clients/connectors/GooglePlacesClient.ts
1748
+ var GooglePlacesClient = class extends ConnectorClient {
1749
+ constructor(http, credentials) {
1750
+ super(http, credentials);
1580
1751
  }
1581
- getConfiguration(body = {}) {
1582
- return this.send("POST", "/connectors/salesforce/get-configuration", { body });
1752
+ /** Find places near a lat/lng coordinate within a radius. */
1753
+ nearbySearch(body) {
1754
+ return this.send("POST", "/connectors/google-places/nearby-search", { body });
1583
1755
  }
1584
- getContact(body = {}) {
1585
- return this.send("POST", "/connectors/salesforce/get-contact", { body });
1756
+ /** Retrieve detailed information about a place by place_id. */
1757
+ placeDetails(body) {
1758
+ return this.send("POST", "/connectors/google-places/place-details", { body });
1586
1759
  }
1587
- getEvent(body) {
1588
- return this.send("POST", "/connectors/salesforce/get-event", { body });
1760
+ /** Search for places by text query. */
1761
+ textSearch(body) {
1762
+ return this.send("POST", "/connectors/google-places/text-search", { body });
1589
1763
  }
1590
- getHealthcareOrgIdByTenant(body) {
1591
- return this.send("POST", "/connectors/salesforce/get-healthcare-org-id-by-tenant", { body });
1764
+ };
1765
+
1766
+ // src/clients/connectors/GrokClient.ts
1767
+ var GrokClient = class extends ConnectorClient {
1768
+ constructor(http, credentials) {
1769
+ super(http, credentials);
1592
1770
  }
1593
- getNotScheduledEvents(body = {}) {
1594
- return this.send("POST", "/connectors/salesforce/get-not-scheduled-events", { body });
1771
+ getUmlsCodes(body) {
1772
+ return this.send("POST", "/connectors/grok/get-umls-codes", { body });
1595
1773
  }
1596
- getPatient(body) {
1597
- return this.send("POST", "/connectors/salesforce/get-patient", { body });
1774
+ convertCcdaToFhir(body) {
1775
+ return this.send("POST", "/connectors/grok/convert-ccda-to-fhir", { body });
1598
1776
  }
1599
- getPatientByEmail(body) {
1600
- return this.send("POST", "/connectors/salesforce/get-patient-by-email", { body });
1777
+ convertFhirToCcda(body) {
1778
+ return this.send("POST", "/connectors/grok/convert-fhir-to-ccda", { body });
1601
1779
  }
1602
- getPatientByPhone(body) {
1603
- return this.send("POST", "/connectors/salesforce/get-patient-by-phone", { body });
1780
+ generalRequest(body) {
1781
+ return this.send("POST", "/connectors/grok/general-grok-request", { body });
1604
1782
  }
1605
- getSegment(body) {
1606
- return this.send("POST", "/connectors/salesforce/get-segment", { body });
1783
+ convertFhirToCcdaWithChunking(body) {
1784
+ return this.send("POST", "/connectors/grok/convert-fhir-to-ccda-with-chunking", { body });
1607
1785
  }
1608
- listAccounts(body = {}) {
1609
- return this.send("POST", "/connectors/salesforce/list-accounts", { body });
1786
+ createClinicalNotes(body) {
1787
+ return this.send("POST", "/connectors/grok/create-clinical-notes", { body });
1610
1788
  }
1611
- listCallLogs(body = {}) {
1612
- return this.send("POST", "/connectors/salesforce/list-call-logs", { body });
1789
+ chooseEncounterReasonsFromList(body) {
1790
+ return this.send("POST", "/connectors/grok/choose-encounter-reasons-from-list", { body });
1613
1791
  }
1614
- listCampaigns(body = {}) {
1615
- return this.send("POST", "/connectors/salesforce/list-campaigns", { body });
1792
+ chooseTemplatesFromList(body) {
1793
+ return this.send("POST", "/connectors/grok/choose-templates-from-list", { body });
1616
1794
  }
1617
- listCases(body = {}) {
1618
- return this.send("POST", "/connectors/salesforce/list-cases", { body });
1795
+ createHpiSummary(body) {
1796
+ return this.send("POST", "/connectors/grok/create-hpi-summary", { body });
1619
1797
  }
1620
- listEvents(body = {}) {
1621
- return this.send("POST", "/connectors/salesforce/list-events", { body });
1798
+ createScreeningSummary(body) {
1799
+ return this.send("POST", "/connectors/grok/create-screening-summary", { body });
1622
1800
  }
1623
- listPatients(body = {}) {
1624
- return this.send("POST", "/connectors/salesforce/list-patients", { body });
1801
+ chooseHealthServiceFromList(body) {
1802
+ return this.send("POST", "/connectors/grok/choose-health-service-from-list", { body });
1625
1803
  }
1626
- listSegments(body = {}) {
1627
- return this.send("POST", "/connectors/salesforce/list-segments", { body });
1804
+ createEhrSummary(body) {
1805
+ return this.send("POST", "/connectors/grok/create-ehr-summary", { body });
1628
1806
  }
1629
- scheduleEvent(body) {
1630
- return this.send("POST", "/connectors/salesforce/schedule-event", { body });
1807
+ };
1808
+
1809
+ // src/clients/connectors/HealthieClient.ts
1810
+ var HealthieClient = class extends ConnectorClient {
1811
+ constructor(http, credentials) {
1812
+ super(http, credentials);
1631
1813
  }
1632
- setAccountSenaiteId(body) {
1633
- return this.send("POST", "/connectors/salesforce/set-account-senaite-id", { body });
1814
+ h(path, body = {}) {
1815
+ return this.send("POST", `/connectors/healthie/${path}`, { body });
1634
1816
  }
1635
- update(body) {
1636
- return this.send("POST", "/connectors/salesforce/update", { body });
1817
+ // API keys
1818
+ createApiKey(body = {}) {
1819
+ return this.h("create-api-key", body);
1637
1820
  }
1638
- updateAccount(body) {
1639
- return this.send("POST", "/connectors/salesforce/update-account", { body });
1821
+ deleteApiKey(body) {
1822
+ return this.h("delete-api-key", body);
1640
1823
  }
1641
- updateAccountAssets(body) {
1642
- return this.send("POST", "/connectors/salesforce/update-account-assets", { body });
1824
+ getApiKeys(body = {}) {
1825
+ return this.h("get-api-keys", body);
1643
1826
  }
1644
- updateCallLog(body) {
1645
- return this.send("POST", "/connectors/salesforce/update-call-log", { body });
1827
+ getCurrentUserId(body = {}) {
1828
+ return this.h("get-current-user-id", body);
1646
1829
  }
1647
- updateCampaign(body) {
1648
- return this.send("POST", "/connectors/salesforce/update-campaign", { body });
1830
+ getCurrentUser(body = {}) {
1831
+ return this.h("get-current-user", body);
1649
1832
  }
1650
- updatePatient(body) {
1651
- return this.send("POST", "/connectors/salesforce/update-patient", { body });
1833
+ // Patients / Users
1834
+ createPatient(body) {
1835
+ return this.h("create-patient", body);
1652
1836
  }
1653
- updateSegment(body) {
1654
- return this.send("POST", "/connectors/salesforce/update-segment", { body });
1837
+ updatePatient(body) {
1838
+ return this.h("update-patient", body);
1655
1839
  }
1656
- };
1657
-
1658
- // src/clients/vendors/QuestClient.ts
1659
- var QuestClient = class extends BaseServiceClient {
1660
- constructor(http) {
1661
- super(http, "connectors");
1840
+ searchPatients(body = {}) {
1841
+ return this.h("search-patients", body);
1662
1842
  }
1663
- /** Create a lab order with Quest Diagnostics. */
1664
- createOrder(body) {
1665
- return this.send("POST", "/connectors/quest/create-order", { body });
1843
+ getPatient(body) {
1844
+ return this.h("get-patient", body);
1666
1845
  }
1667
- /** Retrieve lab results for an order or patient. */
1668
- getResults(body) {
1669
- return this.send("POST", "/connectors/quest/get-results", { body });
1846
+ getPatientJson(body) {
1847
+ return this.h("get-patient-json", body);
1670
1848
  }
1671
- /** Browse the Quest test catalog. */
1672
- listTests(body) {
1673
- return this.send("POST", "/connectors/quest/list-tests", { body });
1849
+ signUpPatient(body) {
1850
+ return this.h("sign-up-patient", body);
1674
1851
  }
1675
- };
1676
-
1677
- // src/clients/vendors/QuestHl7Client.ts
1678
- var QuestHl7Client = class extends BaseServiceClient {
1679
- constructor(http) {
1680
- super(http, "connectors");
1852
+ bulkUpdateClients(body) {
1853
+ return this.h("bulk-update-clients", body);
1681
1854
  }
1682
- p(operation, body) {
1683
- return this.send("POST", `/connectors/quest/${operation}`, { body });
1855
+ updateUser(body) {
1856
+ return this.h("update-user", body);
1684
1857
  }
1685
- getAccessToken(body = {}) {
1686
- return this.p("get-access-token", body);
1858
+ listPatients(body = {}) {
1859
+ return this.h("list-patients", body);
1687
1860
  }
1688
- clearTokenCache(body = {}) {
1689
- return this.p("clear-token-cache", body);
1861
+ // Locations
1862
+ createLocation(body) {
1863
+ return this.h("create-location", body);
1690
1864
  }
1691
- submitOrder(body) {
1692
- return this.p("submit-order", body);
1865
+ updateLocation(body) {
1866
+ return this.h("update-location", body);
1693
1867
  }
1694
- getOrderDocuments(body) {
1695
- return this.p("get-order-documents", body);
1868
+ // Appointment types
1869
+ getAppointmentType(body) {
1870
+ return this.h("get-appointment-type", body);
1696
1871
  }
1697
- evaluateAbn(body) {
1698
- return this.p("evaluate-abn", body);
1872
+ getAppointmentTypes(body = {}) {
1873
+ return this.h("get-appointment-types", body);
1699
1874
  }
1700
- getRequisition(body) {
1701
- return this.p("get-requisition", body);
1875
+ createAppointmentType(body) {
1876
+ return this.h("create-appointment-type", body);
1702
1877
  }
1703
- evaluateAoe(body) {
1704
- return this.p("evaluate-aoe", body);
1878
+ updateAppointmentType(body) {
1879
+ return this.h("update-appointment-type", body);
1705
1880
  }
1706
- submitFullOrder(body) {
1707
- return this.p("submit-full-order", body);
1881
+ deleteAppointmentType(body) {
1882
+ return this.h("delete-appointment-type", body);
1708
1883
  }
1709
- getHl7Results(body = {}) {
1710
- return this.p("get-hl7-results", body);
1884
+ getAppointmentSetting(body) {
1885
+ return this.h("get-appointment-setting", body);
1711
1886
  }
1712
- getPrintableResults(body = {}) {
1713
- return this.p("get-printable-results", body);
1887
+ createAppointmentSetting(body) {
1888
+ return this.h("create-appointment-setting", body);
1714
1889
  }
1715
- getObservationResults(body = {}) {
1716
- return this.p("get-observation-results", body);
1890
+ updateAppointmentSetting(body) {
1891
+ return this.h("update-appointment-setting", body);
1717
1892
  }
1718
- acknowledgeHl7Results(body) {
1719
- return this.p("acknowledge-hl7-results", body);
1893
+ // Appointments
1894
+ getAppointment(body) {
1895
+ return this.h("get-appointment", body);
1720
1896
  }
1721
- acknowledgePrintableResults(body) {
1722
- return this.p("acknowledge-printable-results", body);
1897
+ getAppointments(body = {}) {
1898
+ return this.h("get-appointments", body);
1723
1899
  }
1724
- acknowledgeObservationResults(body) {
1725
- return this.p("acknowledge-observation-results", body);
1900
+ createAppointment(body) {
1901
+ return this.h("create-appointment", body);
1726
1902
  }
1727
- buildResultsAck(body) {
1728
- return this.p("build-results-ack", body);
1903
+ updateAppointment(body) {
1904
+ return this.h("update-appointment", body);
1729
1905
  }
1730
- processPushedResult(body) {
1731
- return this.p("process-pushed-result", body);
1906
+ deleteAppointment(body) {
1907
+ return this.h("delete-appointment", body);
1732
1908
  }
1733
- requestCompendiums(body = {}) {
1734
- return this.p("request-compendiums", body);
1909
+ getAppointmentBookingWarnings(body) {
1910
+ return this.h("get-appointment-booking-warnings", body);
1735
1911
  }
1736
- requestCompendiumsOnDemand(body) {
1737
- return this.p("request-compendiums-on-demand", body);
1912
+ // Availability
1913
+ getAvailabilities(body = {}) {
1914
+ return this.h("get-availabilities", body);
1738
1915
  }
1739
- retrieveCompendium(body) {
1740
- return this.p("retrieve-compendium", body);
1741
- }
1742
- retrieveAndExtractCompendium(body) {
1743
- return this.p("retrieve-and-extract-compendium", body);
1744
- }
1745
- acknowledgeCompendium(body) {
1746
- return this.p("acknowledge-compendium", body);
1747
- }
1748
- syncCompendiums(body = {}) {
1749
- return this.p("sync-compendiums", body);
1750
- }
1751
- };
1752
-
1753
- // src/clients/vendors/OpenAIClient.ts
1754
- var OpenAIClient = class extends BaseServiceClient {
1755
- constructor(http) {
1756
- super(http, "connectors");
1757
- }
1758
- /** Send a chat completion request to OpenAI. */
1759
- chat(body) {
1760
- return this.send("POST", "/connectors/openai/chat", { body });
1761
- }
1762
- /** Generate text embeddings via OpenAI. */
1763
- embed(body) {
1764
- return this.send("POST", "/connectors/openai/embed", { body });
1765
- }
1766
- buildResponseCreatePayload(body = {}) {
1767
- return this.send("POST", "/connectors/openai/build-response-create-payload", { body });
1768
- }
1769
- chatJson(body) {
1770
- return this.send("POST", "/connectors/openai/chat-json", { body });
1771
- }
1772
- createAssistant(body) {
1773
- return this.send("POST", "/connectors/openai/create-assistant", { body });
1774
- }
1775
- deleteAssistant(body) {
1776
- return this.send("POST", "/connectors/openai/delete-assistant", { body });
1777
- }
1778
- getAssistant(body) {
1779
- return this.send("POST", "/connectors/openai/get-assistant", { body });
1780
- }
1781
- moderate(body) {
1782
- return this.send("POST", "/connectors/openai/moderate", { body });
1783
- }
1784
- updateAssistant(body) {
1785
- return this.send("POST", "/connectors/openai/update-assistant", { body });
1786
- }
1787
- };
1788
-
1789
- // src/clients/vendors/AnthropicClient.ts
1790
- var AnthropicClient = class extends BaseServiceClient {
1791
- constructor(http) {
1792
- super(http, "connectors");
1793
- }
1794
- /** Send a message to an Anthropic Claude model. */
1795
- message(body) {
1796
- return this.send("POST", "/connectors/anthropic/message", { body });
1797
- }
1798
- };
1799
-
1800
- // src/clients/vendors/GoogleAIClient.ts
1801
- var GoogleAIClient = class extends BaseServiceClient {
1802
- constructor(http) {
1803
- super(http, "connectors");
1804
- }
1805
- /** Generate a response from a Gemini model. */
1806
- generate(body) {
1807
- return this.send("POST", "/connectors/google-ai/generate", { body });
1808
- }
1809
- /** Generate text embeddings via Gemini. */
1810
- embed(body) {
1811
- return this.send("POST", "/connectors/google-ai/embed", { body });
1812
- }
1813
- invokeA1cVisionCapture(body) {
1814
- return this.send("POST", "/connectors/google-ai/invoke-a1c-vision-capture", { body });
1815
- }
1816
- };
1817
-
1818
- // src/clients/vendors/GooglePlacesClient.ts
1819
- var GooglePlacesClient = class extends BaseServiceClient {
1820
- constructor(http) {
1821
- super(http, "connectors");
1822
- }
1823
- /** Find places near a lat/lng coordinate within a radius. */
1824
- nearbySearch(body) {
1825
- return this.send("POST", "/connectors/google-places/nearby-search", { body });
1826
- }
1827
- /** Retrieve detailed information about a place by place_id. */
1828
- placeDetails(body) {
1829
- return this.send("POST", "/connectors/google-places/place-details", { body });
1830
- }
1831
- /** Search for places by text query. */
1832
- textSearch(body) {
1833
- return this.send("POST", "/connectors/google-places/text-search", { body });
1834
- }
1835
- };
1836
-
1837
- // src/clients/vendors/SendGridClient.ts
1838
- var SendGridClient = class extends BaseServiceClient {
1839
- constructor(http) {
1840
- super(http, "connectors");
1841
- }
1842
- /** Send a transactional email via SendGrid. Supports static content and dynamic templates. */
1843
- sendEmail(body) {
1844
- return this.send("POST", "/connectors/sendgrid/send-email", { body });
1845
- }
1846
- /** List SendGrid email templates. */
1847
- listTemplates(body) {
1848
- return this.send("POST", "/connectors/sendgrid/list-templates", { body });
1849
- }
1850
- };
1851
-
1852
- // src/clients/vendors/ElevenLabsClient.ts
1853
- var ElevenLabsClient = class extends BaseServiceClient {
1854
- constructor(http) {
1855
- super(http, "connectors");
1856
- }
1857
- /** Synthesize speech from text using ElevenLabs TTS. */
1858
- synthesize(body) {
1859
- return this.send("POST", "/connectors/elevenlabs/synthesize", { body });
1860
- }
1861
- /** List available ElevenLabs voices. */
1862
- listVoices(body) {
1863
- return this.send("POST", "/connectors/elevenlabs/list-voices", { body });
1864
- }
1865
- createAgent(body = {}) {
1866
- return this.send("POST", "/connectors/elevenlabs/create-agent", { body });
1867
- }
1868
- createTool(body) {
1869
- return this.send("POST", "/connectors/elevenlabs/create-tool", { body });
1870
- }
1871
- deleteAgent(body) {
1872
- return this.send("POST", "/connectors/elevenlabs/delete-agent", { body });
1873
- }
1874
- deleteTool(body) {
1875
- return this.send("POST", "/connectors/elevenlabs/delete-tool", { body });
1876
- }
1877
- duplicateAgent(body) {
1878
- return this.send("POST", "/connectors/elevenlabs/duplicate-agent", { body });
1916
+ getAvailability(body) {
1917
+ return this.h("get-availability", body);
1879
1918
  }
1880
- getAgent(body) {
1881
- return this.send("POST", "/connectors/elevenlabs/get-agent", { body });
1919
+ createAvailability(body) {
1920
+ return this.h("create-availability", body);
1882
1921
  }
1883
- getAllAgents(body = {}) {
1884
- return this.send("POST", "/connectors/elevenlabs/get-all-agents", { body });
1922
+ createAvailabilitiesBulk(body) {
1923
+ return this.h("create-availabilities-bulk", body);
1885
1924
  }
1886
- getAllConversations(body = {}) {
1887
- return this.send("POST", "/connectors/elevenlabs/get-all-conversations", { body });
1925
+ editAvailability(body) {
1926
+ return this.h("edit-availability", body);
1888
1927
  }
1889
- getAllTools(body = {}) {
1890
- return this.send("POST", "/connectors/elevenlabs/get-all-tools", { body });
1928
+ deleteAvailability(body) {
1929
+ return this.h("delete-availability", body);
1891
1930
  }
1892
- getConversation(body) {
1893
- return this.send("POST", "/connectors/elevenlabs/get-conversation", { body });
1931
+ getDaysAvailableForRange(body) {
1932
+ return this.h("get-days-available-for-range", body);
1894
1933
  }
1895
- getTool(body) {
1896
- return this.send("POST", "/connectors/elevenlabs/get-tool", { body });
1934
+ getAvailableSlotsForRange(body) {
1935
+ return this.h("get-available-slots-for-range", body);
1897
1936
  }
1898
- getToolDependentAgents(body) {
1899
- return this.send("POST", "/connectors/elevenlabs/get-tool-dependent-agents", { body });
1937
+ completeCheckout(body) {
1938
+ return this.h("complete-checkout", body);
1900
1939
  }
1901
- getUser(body = {}) {
1902
- return this.send("POST", "/connectors/elevenlabs/get-user", { body });
1940
+ findAndBookFirstAvailableSlot(body) {
1941
+ return this.h("find-and-book-first-available-slot", body);
1903
1942
  }
1904
- getVoice(body) {
1905
- return this.send("POST", "/connectors/elevenlabs/get-voice", { body });
1943
+ // Billing
1944
+ getBillingItems(body = {}) {
1945
+ return this.h("get-billing-items", body);
1906
1946
  }
1907
- updateAgent(body) {
1908
- return this.send("POST", "/connectors/elevenlabs/update-agent", { body });
1947
+ getBillingItem(body) {
1948
+ return this.h("get-billing-item", body);
1909
1949
  }
1910
- updateTool(body) {
1911
- return this.send("POST", "/connectors/elevenlabs/update-tool", { body });
1950
+ createBillingItem(body) {
1951
+ return this.h("create-billing-item", body);
1912
1952
  }
1913
- };
1914
-
1915
- // src/clients/vendors/NppesClient.ts
1916
- var NppesClient = class extends BaseServiceClient {
1917
- constructor(http) {
1918
- super(http, "connectors");
1953
+ updateBillingItem(body) {
1954
+ return this.h("update-billing-item", body);
1919
1955
  }
1920
- verifyProvider(body) {
1921
- return this.send("POST", "/connectors/nppes/verify-provider", { body });
1956
+ deleteBillingItem(body) {
1957
+ return this.h("delete-billing-item", body);
1922
1958
  }
1923
- getProvider(body) {
1924
- return this.send("POST", "/connectors/nppes/get-provider", { body });
1959
+ // Invoices
1960
+ getInvoices(body = {}) {
1961
+ return this.h("get-invoices", body);
1925
1962
  }
1926
- searchProviders(body) {
1927
- return this.send("POST", "/connectors/nppes/search-providers", { body });
1963
+ getInvoice(body) {
1964
+ return this.h("get-invoice", body);
1928
1965
  }
1929
- };
1930
-
1931
- // src/clients/vendors/CmsClient.ts
1932
- var CmsClient = class extends BaseServiceClient {
1933
- constructor(http) {
1934
- super(http, "connectors");
1966
+ createInvoice(body) {
1967
+ return this.h("create-invoice", body);
1935
1968
  }
1936
- searchHealthPlans(body) {
1937
- return this.send("POST", "/connectors/cms/search-health-plans", { body });
1969
+ updateInvoice(body) {
1970
+ return this.h("update-invoice", body);
1938
1971
  }
1939
- getCountyFips(body) {
1940
- return this.send("POST", "/connectors/cms/get-county-fips", { body });
1972
+ deleteInvoice(body) {
1973
+ return this.h("delete-invoice", body);
1941
1974
  }
1942
- };
1943
-
1944
- // src/clients/vendors/FedExClient.ts
1945
- var FedExClient = class extends BaseServiceClient {
1946
- constructor(http) {
1947
- super(http, "connectors");
1975
+ // Offerings
1976
+ getOffering(body) {
1977
+ return this.h("get-offering", body);
1948
1978
  }
1949
- createShipment(body) {
1950
- return this.send("POST", "/connectors/fedex/create-shipment", { body });
1979
+ getOfferings(body = {}) {
1980
+ return this.h("get-offerings", body);
1951
1981
  }
1952
- trackShipment(body) {
1953
- return this.send("POST", "/connectors/fedex/track-shipment", { body });
1982
+ createOffering(body) {
1983
+ return this.h("create-offering", body);
1954
1984
  }
1955
- };
1956
-
1957
- // src/clients/vendors/ConnectureClient.ts
1958
- var ConnectureClient = class extends BaseServiceClient {
1959
- constructor(http) {
1960
- super(http, "connectors");
1985
+ updateOffering(body) {
1986
+ return this.h("update-offering", body);
1961
1987
  }
1962
- getAccessToken(body = {}) {
1963
- return this.send("POST", "/connectors/connecture/get-access-token", { body });
1988
+ copyOffering(body) {
1989
+ return this.h("copy-offering", body);
1964
1990
  }
1965
- createSession(body) {
1966
- return this.send("POST", "/connectors/connecture/create-session", { body });
1991
+ deleteOffering(body) {
1992
+ return this.h("delete-offering", body);
1967
1993
  }
1968
- getSession(body) {
1969
- return this.send("POST", "/connectors/connecture/get-session", { body });
1994
+ // Insurance
1995
+ getInsurancePayments(body = {}) {
1996
+ return this.h("get-insurance-payments", body);
1970
1997
  }
1971
- updateSession(body) {
1972
- return this.send("POST", "/connectors/connecture/update-session", { body });
1998
+ createInsurancePayment(body) {
1999
+ return this.h("create-insurance-payment", body);
1973
2000
  }
1974
- checkEligibility(body) {
1975
- return this.send("POST", "/connectors/connecture/check-eligibility", { body });
2001
+ updateManualInsurancePayment(body) {
2002
+ return this.h("update-manual-insurance-payment", body);
1976
2003
  }
1977
- planCount(body) {
1978
- return this.send("POST", "/connectors/connecture/plan-count", { body });
2004
+ updateInsurancePaymentDepositStatus(body) {
2005
+ return this.h("update-insurance-payment-deposit-status", body);
1979
2006
  }
1980
- sessionPlans(body) {
1981
- return this.send("POST", "/connectors/connecture/session-plans", { body });
2007
+ deleteManualInsurancePayment(body) {
2008
+ return this.h("delete-manual-insurance-payment", body);
1982
2009
  }
1983
- sessionPlanById(body) {
1984
- return this.send("POST", "/connectors/connecture/session-plan-by-id", { body });
2010
+ storePaymentCard(body) {
2011
+ return this.h("store-payment-card", body);
1985
2012
  }
1986
- enroll(body) {
1987
- return this.send("POST", "/connectors/connecture/enroll", { body });
2013
+ getInsurancePlans(body = {}) {
2014
+ return this.h("get-insurance-plans", body);
1988
2015
  }
1989
- lookupPlans(body) {
1990
- return this.send("POST", "/connectors/connecture/lookup-plans", { body });
2016
+ acceptInsurancePlans(body) {
2017
+ return this.h("accept-insurance-plans", body);
1991
2018
  }
1992
- };
1993
-
1994
- // src/clients/vendors/SenaiteClient.ts
1995
- var SenaiteClient = class extends BaseServiceClient {
1996
- constructor(http) {
1997
- super(http, "connectors");
2019
+ removeAcceptedInsurancePlan(body) {
2020
+ return this.h("remove-accepted-insurance-plan", body);
1998
2021
  }
1999
- s(op, body = {}) {
2000
- return this.send("POST", `/connectors/senaite/${op}`, { body });
2022
+ updatePatientInsuranceBilling(body) {
2023
+ return this.h("update-patient-insurance-billing", body);
2001
2024
  }
2002
- login(body = {}) {
2003
- return this.s("login", body);
2025
+ // Super bills / CMS1500
2026
+ getSuperBills(body = {}) {
2027
+ return this.h("get-super-bills", body);
2004
2028
  }
2005
- logout(body = {}) {
2006
- return this.s("logout", body);
2029
+ getSuperBill(body) {
2030
+ return this.h("get-super-bill", body);
2007
2031
  }
2008
- getCurrentUser(body = {}) {
2009
- return this.s("get-current-user", body);
2032
+ createSuperBill(body) {
2033
+ return this.h("create-super-bill", body);
2010
2034
  }
2011
- getAllClients(body = {}) {
2012
- return this.s("get-all-clients", body);
2035
+ updateSuperBill(body) {
2036
+ return this.h("update-super-bill", body);
2013
2037
  }
2014
- getClientById(body) {
2015
- return this.s("get-client-by-id", body);
2038
+ deleteSuperBill(body) {
2039
+ return this.h("delete-super-bill", body);
2016
2040
  }
2017
- getClientByUid(body) {
2018
- return this.s("get-client-by-uid", body);
2041
+ getCms1500s(body = {}) {
2042
+ return this.h("get-cms1500s", body);
2019
2043
  }
2020
- createClient(body) {
2021
- return this.s("create-client", body);
2044
+ getCms1500(body) {
2045
+ return this.h("get-cms1500", body);
2022
2046
  }
2023
- updateClient(body) {
2024
- return this.s("update-client", body);
2047
+ createCms1500(body) {
2048
+ return this.h("create-cms1500", body);
2025
2049
  }
2026
- deactivateClient(body) {
2027
- return this.s("deactivate-client", body);
2050
+ updateCms1500(body) {
2051
+ return this.h("update-cms1500", body);
2028
2052
  }
2029
- getAllSamples(body = {}) {
2030
- return this.s("get-all-samples", body);
2053
+ deleteCms1500(body) {
2054
+ return this.h("delete-cms1500", body);
2031
2055
  }
2032
- getSamplesByClientId(body) {
2033
- return this.s("get-samples-by-client-id", body);
2056
+ // Forms
2057
+ getForm(body) {
2058
+ return this.h("get-form", body);
2034
2059
  }
2035
- getSampleById(body) {
2036
- return this.s("get-sample-by-id", body);
2060
+ getForms(body = {}) {
2061
+ return this.h("get-forms", body);
2037
2062
  }
2038
- getSampleByUid(body) {
2039
- return this.s("get-sample-by-uid", body);
2063
+ createForm(body) {
2064
+ return this.h("create-form", body);
2040
2065
  }
2041
- createSample(body) {
2042
- return this.s("create-sample", body);
2066
+ updateForm(body) {
2067
+ return this.h("update-form", body);
2043
2068
  }
2044
- updateSample(body) {
2045
- return this.s("update-sample", body);
2069
+ deleteForm(body) {
2070
+ return this.h("delete-form", body);
2046
2071
  }
2047
- cancelSample(body) {
2048
- return this.s("cancel-sample", body);
2072
+ copyForm(body) {
2073
+ return this.h("copy-form", body);
2049
2074
  }
2050
- createContact(body) {
2051
- return this.s("create-contact", body);
2075
+ shareForm(body) {
2076
+ return this.h("share-form", body);
2052
2077
  }
2053
- getContactsForClient(body) {
2054
- return this.s("get-contacts-for-client", body);
2078
+ createFormAnswerGroup(body) {
2079
+ return this.h("create-form-answer-group", body);
2055
2080
  }
2056
- getSampleTypes(body = {}) {
2057
- return this.s("get-sample-types", body);
2081
+ getFormAnswerGroups(body = {}) {
2082
+ return this.h("get-form-answer-groups", body);
2058
2083
  }
2059
- createSampleType(body) {
2060
- return this.s("create-sample-type", body);
2084
+ fillLabResultReviewForm(body) {
2085
+ return this.h("fill-lab-result-review-form", body);
2061
2086
  }
2062
- getAnalysisServices(body = {}) {
2063
- return this.s("get-analysis-services", body);
2087
+ // Onboarding
2088
+ getOnboardingFlows(body = {}) {
2089
+ return this.h("get-onboarding-flows", body);
2064
2090
  }
2065
- createAnalysisService(body) {
2066
- return this.s("create-analysis-service", body);
2091
+ getOnboardingFlow(body) {
2092
+ return this.h("get-onboarding-flow", body);
2067
2093
  }
2068
- createDepartment(body) {
2069
- return this.s("create-department", body);
2094
+ createOnboardingFlow(body) {
2095
+ return this.h("create-onboarding-flow", body);
2070
2096
  }
2071
- createAnalysisCategory(body) {
2072
- return this.s("create-analysis-category", body);
2097
+ updateOnboardingFlow(body) {
2098
+ return this.h("update-onboarding-flow", body);
2073
2099
  }
2074
- getCatalogs(body = {}) {
2075
- return this.s("get-catalogs", body);
2100
+ deleteOnboardingFlow(body) {
2101
+ return this.h("delete-onboarding-flow", body);
2076
2102
  }
2077
- search(body) {
2078
- return this.s("search", body);
2103
+ getOnboardingItem(body) {
2104
+ return this.h("get-onboarding-item", body);
2079
2105
  }
2080
- ensureClientForTenant(body) {
2081
- return this.s("ensure-senaite-client-for-tenant", body);
2106
+ createOnboardingItem(body) {
2107
+ return this.h("create-onboarding-item", body);
2082
2108
  }
2083
- };
2084
-
2085
- // src/clients/vendors/HealthieClient.ts
2086
- var HealthieClient = class extends BaseServiceClient {
2087
- constructor(http) {
2088
- super(http, "connectors");
2109
+ updateOnboardingItem(body) {
2110
+ return this.h("update-onboarding-item", body);
2089
2111
  }
2090
- h(path, body = {}) {
2091
- return this.send("POST", `/connectors/healthie/${path}`, { body });
2112
+ deleteOnboardingItem(body) {
2113
+ return this.h("delete-onboarding-item", body);
2092
2114
  }
2093
- // API keys
2094
- createApiKey(body = {}) {
2095
- return this.h("create-api-key", body);
2115
+ getAvailableItemTypes(body = {}) {
2116
+ return this.h("get-available-item-types", body);
2096
2117
  }
2097
- deleteApiKey(body) {
2098
- return this.h("delete-api-key", body);
2118
+ getUnassociatedCompletedOnboardingItems(body = {}) {
2119
+ return this.h("get-unassociated-completed-onboarding-items", body);
2099
2120
  }
2100
- getApiKeys(body = {}) {
2101
- return this.h("get-api-keys", body);
2121
+ createCompletedOnboardingItem(body) {
2122
+ return this.h("create-completed-onboarding-item", body);
2102
2123
  }
2103
- getCurrentUserId(body = {}) {
2104
- return this.h("get-current-user-id", body);
2124
+ getFormCompletionRequests(body = {}) {
2125
+ return this.h("get-form-completion-requests", body);
2105
2126
  }
2106
- getCurrentUser(body = {}) {
2107
- return this.h("get-current-user", body);
2127
+ createFormCompletionRequest(body) {
2128
+ return this.h("create-form-completion-request", body);
2108
2129
  }
2109
- // Patients / Users
2110
- createPatient(body) {
2111
- return this.h("create-patient", body);
2130
+ deleteFormCompletionRequest(body) {
2131
+ return this.h("delete-form-completion-request", body);
2112
2132
  }
2113
- updatePatient(body) {
2114
- return this.h("update-patient", body);
2133
+ createOpenLoopForm(body) {
2134
+ return this.h("create-open-loop-form", body);
2115
2135
  }
2116
- searchPatients(body = {}) {
2117
- return this.h("search-patients", body);
2136
+ // Documents
2137
+ getDocuments(body = {}) {
2138
+ return this.h("get-documents", body);
2118
2139
  }
2119
- getPatient(body) {
2120
- return this.h("get-patient", body);
2140
+ getPatientDocuments(body) {
2141
+ return this.h("get-patient-documents", body);
2121
2142
  }
2122
- getPatientJson(body) {
2123
- return this.h("get-patient-json", body);
2143
+ getDocument(body) {
2144
+ return this.h("get-document", body);
2124
2145
  }
2125
- signUpPatient(body) {
2126
- return this.h("sign-up-patient", body);
2146
+ updateDocument(body) {
2147
+ return this.h("update-document", body);
2127
2148
  }
2128
- bulkUpdateClients(body) {
2129
- return this.h("bulk-update-clients", body);
2149
+ deleteDocument(body) {
2150
+ return this.h("delete-document", body);
2130
2151
  }
2131
- updateUser(body) {
2132
- return this.h("update-user", body);
2152
+ // Notes
2153
+ getPatientNotes(body) {
2154
+ return this.h("get-patient-notes", body);
2133
2155
  }
2134
- listPatients(body = {}) {
2135
- return this.h("list-patients", body);
2156
+ createNote(body) {
2157
+ return this.h("create-note", body);
2136
2158
  }
2137
- // Locations
2138
- createLocation(body) {
2139
- return this.h("create-location", body);
2159
+ createPersonalizationQuestionnaire(body) {
2160
+ return this.h("create-personalization-questionnaire", body);
2140
2161
  }
2141
- updateLocation(body) {
2142
- return this.h("update-location", body);
2162
+ // Conversations
2163
+ getConversation(body) {
2164
+ return this.h("get-conversation", body);
2143
2165
  }
2144
- // Appointment types
2145
- getAppointmentType(body) {
2146
- return this.h("get-appointment-type", body);
2166
+ getConversationMemberships(body) {
2167
+ return this.h("get-conversation-memberships", body);
2147
2168
  }
2148
- getAppointmentTypes(body = {}) {
2149
- return this.h("get-appointment-types", body);
2169
+ createConversation(body) {
2170
+ return this.h("create-conversation", body);
2150
2171
  }
2151
- createAppointmentType(body) {
2152
- return this.h("create-appointment-type", body);
2172
+ updateConversation(body) {
2173
+ return this.h("update-conversation", body);
2153
2174
  }
2154
- updateAppointmentType(body) {
2155
- return this.h("update-appointment-type", body);
2175
+ closeConversation(body) {
2176
+ return this.h("close-conversation", body);
2156
2177
  }
2157
- deleteAppointmentType(body) {
2158
- return this.h("delete-appointment-type", body);
2178
+ sendChatMessage(body) {
2179
+ return this.h("send-chat-message", body);
2159
2180
  }
2160
- getAppointmentSetting(body) {
2161
- return this.h("get-appointment-setting", body);
2181
+ // Fax
2182
+ getSentFaxes(body = {}) {
2183
+ return this.h("get-sent-faxes", body);
2162
2184
  }
2163
- createAppointmentSetting(body) {
2164
- return this.h("create-appointment-setting", body);
2185
+ getSentFax(body) {
2186
+ return this.h("get-sent-fax", body);
2165
2187
  }
2166
- updateAppointmentSetting(body) {
2167
- return this.h("update-appointment-setting", body);
2188
+ sendFax(body) {
2189
+ return this.h("send-fax", body);
2168
2190
  }
2169
- // Appointments
2170
- getAppointment(body) {
2171
- return this.h("get-appointment", body);
2191
+ getReceivedFaxes(body = {}) {
2192
+ return this.h("get-received-faxes", body);
2172
2193
  }
2173
- getAppointments(body = {}) {
2174
- return this.h("get-appointments", body);
2194
+ getReceivedFax(body) {
2195
+ return this.h("get-received-fax", body);
2175
2196
  }
2176
- createAppointment(body) {
2177
- return this.h("create-appointment", body);
2197
+ // Entries / Metrics
2198
+ getEntries(body = {}) {
2199
+ return this.h("get-entries", body);
2178
2200
  }
2179
- updateAppointment(body) {
2180
- return this.h("update-appointment", body);
2201
+ getEntry(body) {
2202
+ return this.h("get-entry", body);
2181
2203
  }
2182
- deleteAppointment(body) {
2183
- return this.h("delete-appointment", body);
2204
+ createEntry(body) {
2205
+ return this.h("create-entry", body);
2184
2206
  }
2185
- getAppointmentBookingWarnings(body) {
2186
- return this.h("get-appointment-booking-warnings", body);
2207
+ updateEntry(body) {
2208
+ return this.h("update-entry", body);
2187
2209
  }
2188
- // Availability
2189
- getAvailabilities(body = {}) {
2190
- return this.h("get-availabilities", body);
2210
+ deleteEntry(body) {
2211
+ return this.h("delete-entry", body);
2191
2212
  }
2192
- getAvailability(body) {
2193
- return this.h("get-availability", body);
2213
+ createMetricEntry(body) {
2214
+ return this.h("create-metric-entry", body);
2194
2215
  }
2195
- createAvailability(body) {
2196
- return this.h("create-availability", body);
2216
+ getMetricEntries(body = {}) {
2217
+ return this.h("get-metric-entries", body);
2197
2218
  }
2198
- createAvailabilitiesBulk(body) {
2199
- return this.h("create-availabilities-bulk", body);
2219
+ // Goals
2220
+ getGoals(body = {}) {
2221
+ return this.h("get-goals", body);
2200
2222
  }
2201
- editAvailability(body) {
2202
- return this.h("edit-availability", body);
2223
+ getGoal(body) {
2224
+ return this.h("get-goal", body);
2203
2225
  }
2204
- deleteAvailability(body) {
2205
- return this.h("delete-availability", body);
2226
+ createGoal(body) {
2227
+ return this.h("create-goal", body);
2206
2228
  }
2207
- getDaysAvailableForRange(body) {
2208
- return this.h("get-days-available-for-range", body);
2229
+ updateGoal(body) {
2230
+ return this.h("update-goal", body);
2209
2231
  }
2210
- getAvailableSlotsForRange(body) {
2211
- return this.h("get-available-slots-for-range", body);
2232
+ deleteGoal(body) {
2233
+ return this.h("delete-goal", body);
2212
2234
  }
2213
- completeCheckout(body) {
2214
- return this.h("complete-checkout", body);
2235
+ getGoalHistories(body) {
2236
+ return this.h("get-goal-histories", body);
2215
2237
  }
2216
- findAndBookFirstAvailableSlot(body) {
2217
- return this.h("find-and-book-first-available-slot", body);
2238
+ // Tasks
2239
+ getTask(body) {
2240
+ return this.h("get-task", body);
2218
2241
  }
2219
- // Billing
2220
- getBillingItems(body = {}) {
2221
- return this.h("get-billing-items", body);
2242
+ getTasks(body = {}) {
2243
+ return this.h("get-tasks", body);
2222
2244
  }
2223
- getBillingItem(body) {
2224
- return this.h("get-billing-item", body);
2245
+ createTask(body) {
2246
+ return this.h("create-task", body);
2225
2247
  }
2226
- createBillingItem(body) {
2227
- return this.h("create-billing-item", body);
2248
+ updateTask(body) {
2249
+ return this.h("update-task", body);
2228
2250
  }
2229
- updateBillingItem(body) {
2230
- return this.h("update-billing-item", body);
2251
+ deleteTask(body) {
2252
+ return this.h("delete-task", body);
2231
2253
  }
2232
- deleteBillingItem(body) {
2233
- return this.h("delete-billing-item", body);
2254
+ markTasksAsSeen(body) {
2255
+ return this.h("mark-tasks-as-seen", body);
2234
2256
  }
2235
- // Invoices
2236
- getInvoices(body = {}) {
2237
- return this.h("get-invoices", body);
2257
+ // Care plans
2258
+ getCarePlans(body = {}) {
2259
+ return this.h("get-care-plans", body);
2238
2260
  }
2239
- getInvoice(body) {
2240
- return this.h("get-invoice", body);
2261
+ getCarePlan(body) {
2262
+ return this.h("get-care-plan", body);
2241
2263
  }
2242
- createInvoice(body) {
2243
- return this.h("create-invoice", body);
2264
+ createCarePlan(body) {
2265
+ return this.h("create-care-plan", body);
2244
2266
  }
2245
- updateInvoice(body) {
2246
- return this.h("update-invoice", body);
2267
+ updateCarePlan(body) {
2268
+ return this.h("update-care-plan", body);
2247
2269
  }
2248
- deleteInvoice(body) {
2249
- return this.h("delete-invoice", body);
2270
+ deleteCarePlan(body) {
2271
+ return this.h("delete-care-plan", body);
2250
2272
  }
2251
- // Offerings
2252
- getOffering(body) {
2253
- return this.h("get-offering", body);
2273
+ // Programs
2274
+ getPrograms(body = {}) {
2275
+ return this.h("get-programs", body);
2254
2276
  }
2255
- getOfferings(body = {}) {
2256
- return this.h("get-offerings", body);
2277
+ getProgram(body) {
2278
+ return this.h("get-program", body);
2257
2279
  }
2258
- createOffering(body) {
2259
- return this.h("create-offering", body);
2280
+ createProgram(body) {
2281
+ return this.h("create-program", body);
2260
2282
  }
2261
- updateOffering(body) {
2262
- return this.h("update-offering", body);
2283
+ updateProgram(body) {
2284
+ return this.h("update-program", body);
2263
2285
  }
2264
- copyOffering(body) {
2265
- return this.h("copy-offering", body);
2286
+ deleteProgram(body) {
2287
+ return this.h("delete-program", body);
2266
2288
  }
2267
- deleteOffering(body) {
2268
- return this.h("delete-offering", body);
2289
+ // Episodes of care
2290
+ getPatientEncounter(body) {
2291
+ return this.h("get-patient-encounter", body);
2269
2292
  }
2270
- // Insurance
2271
- getInsurancePayments(body = {}) {
2272
- return this.h("get-insurance-payments", body);
2293
+ getEpisodesOfCare(body = {}) {
2294
+ return this.h("get-episodes-of-care", body);
2273
2295
  }
2274
- createInsurancePayment(body) {
2275
- return this.h("create-insurance-payment", body);
2296
+ createEpisodeOfCare(body) {
2297
+ return this.h("create-episode-of-care", body);
2276
2298
  }
2277
- updateManualInsurancePayment(body) {
2278
- return this.h("update-manual-insurance-payment", body);
2299
+ updateEpisodeOfCare(body) {
2300
+ return this.h("update-episode-of-care", body);
2279
2301
  }
2280
- updateInsurancePaymentDepositStatus(body) {
2281
- return this.h("update-insurance-payment-deposit-status", body);
2302
+ deleteEpisodeOfCare(body) {
2303
+ return this.h("delete-episode-of-care", body);
2282
2304
  }
2283
- deleteManualInsurancePayment(body) {
2284
- return this.h("delete-manual-insurance-payment", body);
2305
+ linkEncountersToEpisode(body) {
2306
+ return this.h("link-encounters-to-episode", body);
2285
2307
  }
2286
- storePaymentCard(body) {
2287
- return this.h("store-payment-card", body);
2308
+ unlinkEncountersFromEpisode(body) {
2309
+ return this.h("unlink-encounters-from-episode", body);
2288
2310
  }
2289
- getInsurancePlans(body = {}) {
2290
- return this.h("get-insurance-plans", body);
2311
+ // CCDA
2312
+ parseCcdaDocument(body) {
2313
+ return this.h("parse-ccda-document", body);
2291
2314
  }
2292
- acceptInsurancePlans(body) {
2293
- return this.h("accept-insurance-plans", body);
2315
+ completeCcdaReconciliation(body) {
2316
+ return this.h("complete-ccda-reconciliation", body);
2294
2317
  }
2295
- removeAcceptedInsurancePlan(body) {
2296
- return this.h("remove-accepted-insurance-plan", body);
2318
+ // Diagnoses / Problems
2319
+ getPatientDiagnoses(body) {
2320
+ return this.h("get-patient-diagnoses", body);
2297
2321
  }
2298
- updatePatientInsuranceBilling(body) {
2299
- return this.h("update-patient-insurance-billing", body);
2322
+ addDiagnosis(body) {
2323
+ return this.h("add-diagnosis", body);
2300
2324
  }
2301
- // Super bills / CMS1500
2302
- getSuperBills(body = {}) {
2303
- return this.h("get-super-bills", body);
2325
+ updateDiagnosis(body) {
2326
+ return this.h("update-diagnosis", body);
2304
2327
  }
2305
- getSuperBill(body) {
2306
- return this.h("get-super-bill", body);
2328
+ removeDiagnosis(body) {
2329
+ return this.h("remove-diagnosis", body);
2307
2330
  }
2308
- createSuperBill(body) {
2309
- return this.h("create-super-bill", body);
2331
+ bulkUpdateDiagnoses(body) {
2332
+ return this.h("bulk-update-diagnoses", body);
2310
2333
  }
2311
- updateSuperBill(body) {
2312
- return this.h("update-super-bill", body);
2334
+ getPatientProblems(body) {
2335
+ return this.h("get-patient-problems", body);
2313
2336
  }
2314
- deleteSuperBill(body) {
2315
- return this.h("delete-super-bill", body);
2337
+ // Family history
2338
+ createFamilyHistory(body) {
2339
+ return this.h("create-family-history", body);
2316
2340
  }
2317
- getCms1500s(body = {}) {
2318
- return this.h("get-cms1500s", body);
2341
+ updateFamilyHistory(body) {
2342
+ return this.h("update-family-history", body);
2319
2343
  }
2320
- getCms1500(body) {
2321
- return this.h("get-cms1500", body);
2344
+ deleteFamilyHistory(body) {
2345
+ return this.h("delete-family-history", body);
2322
2346
  }
2323
- createCms1500(body) {
2324
- return this.h("create-cms1500", body);
2347
+ // Immunizations
2348
+ getPatientImmunizations(body) {
2349
+ return this.h("get-patient-immunizations", body);
2325
2350
  }
2326
- updateCms1500(body) {
2327
- return this.h("update-cms1500", body);
2351
+ createImmunization(body) {
2352
+ return this.h("create-immunization", body);
2328
2353
  }
2329
- deleteCms1500(body) {
2330
- return this.h("delete-cms1500", body);
2354
+ updateImmunization(body) {
2355
+ return this.h("update-immunization", body);
2331
2356
  }
2332
- // Forms
2333
- getForm(body) {
2334
- return this.h("get-form", body);
2357
+ // Medications
2358
+ getMedications(body) {
2359
+ return this.h("get-medications", body);
2335
2360
  }
2336
- getForms(body = {}) {
2337
- return this.h("get-forms", body);
2361
+ createMedication(body) {
2362
+ return this.h("create-medication", body);
2338
2363
  }
2339
- createForm(body) {
2340
- return this.h("create-form", body);
2364
+ updateMedication(body) {
2365
+ return this.h("update-medication", body);
2341
2366
  }
2342
- updateForm(body) {
2343
- return this.h("update-form", body);
2367
+ deleteMedication(body) {
2368
+ return this.h("delete-medication", body);
2344
2369
  }
2345
- deleteForm(body) {
2346
- return this.h("delete-form", body);
2370
+ // Lab orders
2371
+ getLabOrders(body = {}) {
2372
+ return this.h("get-lab-orders", body);
2347
2373
  }
2348
- copyForm(body) {
2349
- return this.h("copy-form", body);
2374
+ getLabOrder(body) {
2375
+ return this.h("get-lab-order", body);
2350
2376
  }
2351
- shareForm(body) {
2352
- return this.h("share-form", body);
2377
+ createLabOrder(body) {
2378
+ return this.h("create-lab-order", body);
2353
2379
  }
2354
- createFormAnswerGroup(body) {
2355
- return this.h("create-form-answer-group", body);
2380
+ createRupaOrder(body) {
2381
+ return this.h("create-rupa-order", body);
2356
2382
  }
2357
- getFormAnswerGroups(body = {}) {
2358
- return this.h("get-form-answer-groups", body);
2383
+ updateLabOrder(body) {
2384
+ return this.h("update-lab-order", body);
2359
2385
  }
2360
- fillLabResultReviewForm(body) {
2361
- return this.h("fill-lab-result-review-form", body);
2386
+ getLabResult(body) {
2387
+ return this.h("get-lab-result", body);
2362
2388
  }
2363
- // Onboarding
2364
- getOnboardingFlows(body = {}) {
2365
- return this.h("get-onboarding-flows", body);
2389
+ // Pharmacy
2390
+ getPharmacy(body) {
2391
+ return this.h("get-pharmacy", body);
2366
2392
  }
2367
- getOnboardingFlow(body) {
2368
- return this.h("get-onboarding-flow", body);
2393
+ searchPharmacies(body) {
2394
+ return this.h("search-pharmacies", body);
2369
2395
  }
2370
- createOnboardingFlow(body) {
2371
- return this.h("create-onboarding-flow", body);
2396
+ addPharmacy(body) {
2397
+ return this.h("add-pharmacy", body);
2372
2398
  }
2373
- updateOnboardingFlow(body) {
2374
- return this.h("update-onboarding-flow", body);
2399
+ getPatientDefaultPharmacy(body) {
2400
+ return this.h("get-patient-default-pharmacy", body);
2375
2401
  }
2376
- deleteOnboardingFlow(body) {
2377
- return this.h("delete-onboarding-flow", body);
2402
+ // Organization
2403
+ getOrganizationDetailed(body = {}) {
2404
+ return this.h("get-organization-detailed", body);
2378
2405
  }
2379
- getOnboardingItem(body) {
2380
- return this.h("get-onboarding-item", body);
2406
+ listOrganizationMembers(body = {}) {
2407
+ return this.h("list-organization-members", body);
2381
2408
  }
2382
- createOnboardingItem(body) {
2383
- return this.h("create-onboarding-item", body);
2409
+ createOrganizationMembership(body) {
2410
+ return this.h("create-organization-membership", body);
2384
2411
  }
2385
- updateOnboardingItem(body) {
2386
- return this.h("update-onboarding-item", body);
2412
+ updateOrganizationMembership(body) {
2413
+ return this.h("update-organization-membership", body);
2387
2414
  }
2388
- deleteOnboardingItem(body) {
2389
- return this.h("delete-onboarding-item", body);
2415
+ deleteOrganizationMembership(body) {
2416
+ return this.h("delete-organization-membership", body);
2390
2417
  }
2391
- getAvailableItemTypes(body = {}) {
2392
- return this.h("get-available-item-types", body);
2418
+ getOrganization(body = {}) {
2419
+ return this.h("get-organization", body);
2393
2420
  }
2394
- getUnassociatedCompletedOnboardingItems(body = {}) {
2395
- return this.h("get-unassociated-completed-onboarding-items", body);
2421
+ getDietitianId(body = {}) {
2422
+ return this.h("get-dietitian-id", body);
2396
2423
  }
2397
- createCompletedOnboardingItem(body) {
2398
- return this.h("create-completed-onboarding-item", body);
2424
+ getOrganizationMembers(body = {}) {
2425
+ return this.h("get-organization-members", body);
2399
2426
  }
2400
- getFormCompletionRequests(body = {}) {
2401
- return this.h("get-form-completion-requests", body);
2427
+ getProvider(body) {
2428
+ return this.h("get-provider", body);
2402
2429
  }
2403
- createFormCompletionRequest(body) {
2404
- return this.h("create-form-completion-request", body);
2430
+ // User groups
2431
+ getUserGroup(body) {
2432
+ return this.h("get-user-group", body);
2405
2433
  }
2406
- deleteFormCompletionRequest(body) {
2407
- return this.h("delete-form-completion-request", body);
2434
+ getUserGroups(body = {}) {
2435
+ return this.h("get-user-groups", body);
2408
2436
  }
2409
- createOpenLoopForm(body) {
2410
- return this.h("create-open-loop-form", body);
2437
+ createUserGroup(body) {
2438
+ return this.h("create-user-group", body);
2411
2439
  }
2412
- // Documents
2413
- getDocuments(body = {}) {
2414
- return this.h("get-documents", body);
2440
+ updateUserGroup(body) {
2441
+ return this.h("update-user-group", body);
2415
2442
  }
2416
- getPatientDocuments(body) {
2417
- return this.h("get-patient-documents", body);
2443
+ deleteUserGroup(body) {
2444
+ return this.h("delete-user-group", body);
2418
2445
  }
2419
- getDocument(body) {
2420
- return this.h("get-document", body);
2446
+ // Tags
2447
+ getTags(body = {}) {
2448
+ return this.h("get-tags", body);
2421
2449
  }
2422
- updateDocument(body) {
2423
- return this.h("update-document", body);
2450
+ createTag(body) {
2451
+ return this.h("create-tag", body);
2424
2452
  }
2425
- deleteDocument(body) {
2426
- return this.h("delete-document", body);
2453
+ updateTag(body) {
2454
+ return this.h("update-tag", body);
2427
2455
  }
2428
- // Notes
2429
- getPatientNotes(body) {
2430
- return this.h("get-patient-notes", body);
2456
+ deleteTag(body) {
2457
+ return this.h("delete-tag", body);
2431
2458
  }
2432
- createNote(body) {
2433
- return this.h("create-note", body);
2459
+ bulkApplyTags(body) {
2460
+ return this.h("bulk-apply-tags", body);
2434
2461
  }
2435
- createPersonalizationQuestionnaire(body) {
2436
- return this.h("create-personalization-questionnaire", body);
2462
+ removeAppliedTag(body) {
2463
+ return this.h("remove-applied-tag", body);
2437
2464
  }
2438
- // Conversations
2439
- getConversation(body) {
2440
- return this.h("get-conversation", body);
2465
+ };
2466
+
2467
+ // src/clients/connectors/ImpiloClient.ts
2468
+ var ImpiloClient = class extends ConnectorClient {
2469
+ constructor(http, credentials) {
2470
+ super(http, credentials);
2441
2471
  }
2442
- getConversationMemberships(body) {
2443
- return this.h("get-conversation-memberships", body);
2472
+ i(op, body = {}) {
2473
+ return this.send("POST", `/connectors/impilo/${op}`, { body });
2444
2474
  }
2445
- createConversation(body) {
2446
- return this.h("create-conversation", body);
2475
+ // Patients
2476
+ createPatient(body) {
2477
+ return this.i("create-patient", body);
2447
2478
  }
2448
- updateConversation(body) {
2449
- return this.h("update-conversation", body);
2479
+ getPatient(body) {
2480
+ return this.i("get-patient", body);
2450
2481
  }
2451
- closeConversation(body) {
2452
- return this.h("close-conversation", body);
2482
+ listPatients(body = {}) {
2483
+ return this.i("list-patients", body);
2453
2484
  }
2454
- sendChatMessage(body) {
2455
- return this.h("send-chat-message", body);
2485
+ updatePatient(body) {
2486
+ return this.i("update-patient", body);
2456
2487
  }
2457
- // Fax
2458
- getSentFaxes(body = {}) {
2459
- return this.h("get-sent-faxes", body);
2488
+ // Devices
2489
+ getDevice(body) {
2490
+ return this.i("get-device", body);
2460
2491
  }
2461
- getSentFax(body) {
2462
- return this.h("get-sent-fax", body);
2492
+ listDevices(body = {}) {
2493
+ return this.i("list-devices", body);
2463
2494
  }
2464
- sendFax(body) {
2465
- return this.h("send-fax", body);
2495
+ associateDevice(body) {
2496
+ return this.i("associate-device", body);
2497
+ }
2498
+ disassociateDevice(body) {
2499
+ return this.i("disassociate-device", body);
2466
2500
  }
2467
- getReceivedFaxes(body = {}) {
2468
- return this.h("get-received-faxes", body);
2501
+ enableReadings(body) {
2502
+ return this.i("enable-readings", body);
2469
2503
  }
2470
- getReceivedFax(body) {
2471
- return this.h("get-received-fax", body);
2504
+ disableReadings(body) {
2505
+ return this.i("disable-readings", body);
2472
2506
  }
2473
- // Entries / Metrics
2474
- getEntries(body = {}) {
2475
- return this.h("get-entries", body);
2507
+ validateDevice(body) {
2508
+ return this.i("validate-device", body);
2476
2509
  }
2477
- getEntry(body) {
2478
- return this.h("get-entry", body);
2510
+ // Kits
2511
+ getKit(body) {
2512
+ return this.i("get-kit", body);
2479
2513
  }
2480
- createEntry(body) {
2481
- return this.h("create-entry", body);
2514
+ listKits(body = {}) {
2515
+ return this.i("list-kits", body);
2482
2516
  }
2483
- updateEntry(body) {
2484
- return this.h("update-entry", body);
2517
+ linkKitToPatient(body) {
2518
+ return this.i("link-kit-to-patient", body);
2485
2519
  }
2486
- deleteEntry(body) {
2487
- return this.h("delete-entry", body);
2520
+ unlinkKitFromPatient(body) {
2521
+ return this.i("unlink-kit-from-patient", body);
2488
2522
  }
2489
- createMetricEntry(body) {
2490
- return this.h("create-metric-entry", body);
2523
+ // Orders
2524
+ createOrder(body) {
2525
+ return this.i("create-order", body);
2491
2526
  }
2492
- getMetricEntries(body = {}) {
2493
- return this.h("get-metric-entries", body);
2527
+ getOrder(body) {
2528
+ return this.i("get-order", body);
2494
2529
  }
2495
- // Goals
2496
- getGoals(body = {}) {
2497
- return this.h("get-goals", body);
2530
+ listOrders(body = {}) {
2531
+ return this.i("list-orders", body);
2498
2532
  }
2499
- getGoal(body) {
2500
- return this.h("get-goal", body);
2533
+ // Readings
2534
+ recordBloodPressureReading(body) {
2535
+ return this.i("record-blood-pressure-reading", body);
2501
2536
  }
2502
- createGoal(body) {
2503
- return this.h("create-goal", body);
2537
+ getBloodPressureReading(body) {
2538
+ return this.i("get-blood-pressure-reading", body);
2504
2539
  }
2505
- updateGoal(body) {
2506
- return this.h("update-goal", body);
2540
+ listBloodPressureReadings(body = {}) {
2541
+ return this.i("list-blood-pressure-readings", body);
2507
2542
  }
2508
- deleteGoal(body) {
2509
- return this.h("delete-goal", body);
2543
+ recordBloodGlucoseReading(body) {
2544
+ return this.i("record-blood-glucose-reading", body);
2510
2545
  }
2511
- getGoalHistories(body) {
2512
- return this.h("get-goal-histories", body);
2546
+ getBloodGlucoseReading(body) {
2547
+ return this.i("get-blood-glucose-reading", body);
2513
2548
  }
2514
- // Tasks
2515
- getTask(body) {
2516
- return this.h("get-task", body);
2549
+ listBloodGlucoseReadings(body = {}) {
2550
+ return this.i("list-blood-glucose-readings", body);
2517
2551
  }
2518
- getTasks(body = {}) {
2519
- return this.h("get-tasks", body);
2552
+ recordBloodOxygenReading(body) {
2553
+ return this.i("record-blood-oxygen-reading", body);
2520
2554
  }
2521
- createTask(body) {
2522
- return this.h("create-task", body);
2555
+ getBloodOxygenReading(body) {
2556
+ return this.i("get-blood-oxygen-reading", body);
2523
2557
  }
2524
- updateTask(body) {
2525
- return this.h("update-task", body);
2558
+ listBloodOxygenReadings(body = {}) {
2559
+ return this.i("list-blood-oxygen-readings", body);
2526
2560
  }
2527
- deleteTask(body) {
2528
- return this.h("delete-task", body);
2561
+ recordWeightReading(body) {
2562
+ return this.i("record-weight-reading", body);
2529
2563
  }
2530
- markTasksAsSeen(body) {
2531
- return this.h("mark-tasks-as-seen", body);
2564
+ getWeightReading(body) {
2565
+ return this.i("get-weight-reading", body);
2532
2566
  }
2533
- // Care plans
2534
- getCarePlans(body = {}) {
2535
- return this.h("get-care-plans", body);
2567
+ listWeightReadings(body = {}) {
2568
+ return this.i("list-weight-readings", body);
2536
2569
  }
2537
- getCarePlan(body) {
2538
- return this.h("get-care-plan", body);
2570
+ recordTemperatureReading(body) {
2571
+ return this.i("record-temperature-reading", body);
2539
2572
  }
2540
- createCarePlan(body) {
2541
- return this.h("create-care-plan", body);
2573
+ getTemperatureReading(body) {
2574
+ return this.i("get-temperature-reading", body);
2542
2575
  }
2543
- updateCarePlan(body) {
2544
- return this.h("update-care-plan", body);
2576
+ listTemperatureReadings(body = {}) {
2577
+ return this.i("list-temperature-readings", body);
2545
2578
  }
2546
- deleteCarePlan(body) {
2547
- return this.h("delete-care-plan", body);
2579
+ recordHeartRateReading(body) {
2580
+ return this.i("record-heart-rate-reading", body);
2548
2581
  }
2549
- // Programs
2550
- getPrograms(body = {}) {
2551
- return this.h("get-programs", body);
2582
+ getHeartRateReading(body) {
2583
+ return this.i("get-heart-rate-reading", body);
2552
2584
  }
2553
- getProgram(body) {
2554
- return this.h("get-program", body);
2585
+ listHeartRateReadings(body = {}) {
2586
+ return this.i("list-heart-rate-readings", body);
2555
2587
  }
2556
- createProgram(body) {
2557
- return this.h("create-program", body);
2588
+ listSpirometryReadings(body = {}) {
2589
+ return this.i("list-spirometry-readings", body);
2558
2590
  }
2559
- updateProgram(body) {
2560
- return this.h("update-program", body);
2591
+ // Clinical notes
2592
+ getClinicalNote(body) {
2593
+ return this.i("get-clinical-note", body);
2561
2594
  }
2562
- deleteProgram(body) {
2563
- return this.h("delete-program", body);
2595
+ listClinicalNotes(body = {}) {
2596
+ return this.i("list-clinical-notes", body);
2564
2597
  }
2565
- // Episodes of care
2566
- getPatientEncounter(body) {
2567
- return this.h("get-patient-encounter", body);
2598
+ // Inventory
2599
+ listSiteInventory(body = {}) {
2600
+ return this.i("list-site-inventory", body);
2568
2601
  }
2569
- getEpisodesOfCare(body = {}) {
2570
- return this.h("get-episodes-of-care", body);
2602
+ listKitInventory(body = {}) {
2603
+ return this.i("list-kit-inventory", body);
2571
2604
  }
2572
- createEpisodeOfCare(body) {
2573
- return this.h("create-episode-of-care", body);
2605
+ // Procurements
2606
+ createProcurement(body) {
2607
+ return this.i("create-procurement", body);
2574
2608
  }
2575
- updateEpisodeOfCare(body) {
2576
- return this.h("update-episode-of-care", body);
2609
+ listProcurements(body = {}) {
2610
+ return this.i("list-procurements", body);
2577
2611
  }
2578
- deleteEpisodeOfCare(body) {
2579
- return this.h("delete-episode-of-care", body);
2612
+ // Items
2613
+ createItem(body) {
2614
+ return this.i("create-item", body);
2580
2615
  }
2581
- linkEncountersToEpisode(body) {
2582
- return this.h("link-encounters-to-episode", body);
2616
+ getItem(body) {
2617
+ return this.i("get-item", body);
2583
2618
  }
2584
- unlinkEncountersFromEpisode(body) {
2585
- return this.h("unlink-encounters-from-episode", body);
2619
+ listItems(body = {}) {
2620
+ return this.i("list-items", body);
2586
2621
  }
2587
- // CCDA
2588
- parseCcdaDocument(body) {
2589
- return this.h("parse-ccda-document", body);
2622
+ // Alert configs
2623
+ getPatientAlertConfig(body) {
2624
+ return this.i("get-patient-alert-config", body);
2590
2625
  }
2591
- completeCcdaReconciliation(body) {
2592
- return this.h("complete-ccda-reconciliation", body);
2626
+ setPatientAlertConfig(body) {
2627
+ return this.i("set-patient-alert-config", body);
2593
2628
  }
2594
- // Diagnoses / Problems
2595
- getPatientDiagnoses(body) {
2596
- return this.h("get-patient-diagnoses", body);
2629
+ getSiteAlertConfig(body) {
2630
+ return this.i("get-site-alert-config", body);
2597
2631
  }
2598
- addDiagnosis(body) {
2599
- return this.h("add-diagnosis", body);
2632
+ setSiteAlertConfig(body) {
2633
+ return this.i("set-site-alert-config", body);
2600
2634
  }
2601
- updateDiagnosis(body) {
2602
- return this.h("update-diagnosis", body);
2635
+ getGlobalAlertConfig(body) {
2636
+ return this.i("get-global-alert-config", body);
2603
2637
  }
2604
- removeDiagnosis(body) {
2605
- return this.h("remove-diagnosis", body);
2638
+ setGlobalAlertConfig(body) {
2639
+ return this.i("set-global-alert-config", body);
2606
2640
  }
2607
- bulkUpdateDiagnoses(body) {
2608
- return this.h("bulk-update-diagnoses", body);
2641
+ // Webhooks
2642
+ registerWebhooks(body) {
2643
+ return this.i("register-webhooks", body);
2609
2644
  }
2610
- getPatientProblems(body) {
2611
- return this.h("get-patient-problems", body);
2645
+ fetchProcurementDocument(body) {
2646
+ return this.send("POST", "/connectors/impilo/fetch-procurement-document", { body });
2612
2647
  }
2613
- // Family history
2614
- createFamilyHistory(body) {
2615
- return this.h("create-family-history", body);
2648
+ getOrderSummary(body) {
2649
+ return this.send("POST", "/connectors/impilo/get-order-summary", { body });
2616
2650
  }
2617
- updateFamilyHistory(body) {
2618
- return this.h("update-family-history", body);
2651
+ };
2652
+
2653
+ // src/clients/connectors/JunctionClient.ts
2654
+ var JunctionClient = class extends ConnectorClient {
2655
+ constructor(http, credentials) {
2656
+ super(http, credentials);
2619
2657
  }
2620
- deleteFamilyHistory(body) {
2621
- return this.h("delete-family-history", body);
2658
+ orderTestkit(body) {
2659
+ return this.send("POST", "/connectors/junction/order-testkit", { body });
2622
2660
  }
2623
- // Immunizations
2624
- getPatientImmunizations(body) {
2625
- return this.h("get-patient-immunizations", body);
2661
+ registerTestkit(body) {
2662
+ return this.send("POST", "/connectors/junction/register-testkit", { body });
2626
2663
  }
2627
- createImmunization(body) {
2628
- return this.h("create-immunization", body);
2664
+ getTests(body = {}) {
2665
+ return this.send("POST", "/connectors/junction/get-tests", { body });
2629
2666
  }
2630
- updateImmunization(body) {
2631
- return this.h("update-immunization", body);
2667
+ getOrders(body = {}) {
2668
+ return this.send("POST", "/connectors/junction/get-orders", { body });
2632
2669
  }
2633
- // Medications
2634
- getMedications(body) {
2635
- return this.h("get-medications", body);
2670
+ };
2671
+
2672
+ // src/clients/connectors/NppesClient.ts
2673
+ var NppesClient = class extends ConnectorClient {
2674
+ constructor(http, credentials) {
2675
+ super(http, credentials);
2636
2676
  }
2637
- createMedication(body) {
2638
- return this.h("create-medication", body);
2677
+ verifyProvider(body) {
2678
+ return this.send("POST", "/connectors/nppes/verify-provider", { body });
2639
2679
  }
2640
- updateMedication(body) {
2641
- return this.h("update-medication", body);
2680
+ getProvider(body) {
2681
+ return this.send("POST", "/connectors/nppes/get-provider", { body });
2642
2682
  }
2643
- deleteMedication(body) {
2644
- return this.h("delete-medication", body);
2683
+ searchProviders(body) {
2684
+ return this.send("POST", "/connectors/nppes/search-providers", { body });
2645
2685
  }
2646
- // Lab orders
2647
- getLabOrders(body = {}) {
2648
- return this.h("get-lab-orders", body);
2686
+ };
2687
+
2688
+ // src/clients/connectors/OpenAIClient.ts
2689
+ var OpenAIClient = class extends ConnectorClient {
2690
+ constructor(http, credentials) {
2691
+ super(http, credentials);
2649
2692
  }
2650
- getLabOrder(body) {
2651
- return this.h("get-lab-order", body);
2693
+ /** Send a chat completion request to OpenAI. */
2694
+ chat(body) {
2695
+ return this.send("POST", "/connectors/openai/chat", { body });
2652
2696
  }
2653
- createLabOrder(body) {
2654
- return this.h("create-lab-order", body);
2697
+ /** Generate text embeddings via OpenAI. */
2698
+ embed(body) {
2699
+ return this.send("POST", "/connectors/openai/embed", { body });
2655
2700
  }
2656
- createRupaOrder(body) {
2657
- return this.h("create-rupa-order", body);
2701
+ buildResponseCreatePayload(body = {}) {
2702
+ return this.send("POST", "/connectors/openai/build-response-create-payload", { body });
2658
2703
  }
2659
- updateLabOrder(body) {
2660
- return this.h("update-lab-order", body);
2704
+ chatJson(body) {
2705
+ return this.send("POST", "/connectors/openai/chat-json", { body });
2661
2706
  }
2662
- getLabResult(body) {
2663
- return this.h("get-lab-result", body);
2707
+ createAssistant(body) {
2708
+ return this.send("POST", "/connectors/openai/create-assistant", { body });
2664
2709
  }
2665
- // Pharmacy
2666
- getPharmacy(body) {
2667
- return this.h("get-pharmacy", body);
2710
+ deleteAssistant(body) {
2711
+ return this.send("POST", "/connectors/openai/delete-assistant", { body });
2668
2712
  }
2669
- searchPharmacies(body) {
2670
- return this.h("search-pharmacies", body);
2713
+ getAssistant(body) {
2714
+ return this.send("POST", "/connectors/openai/get-assistant", { body });
2671
2715
  }
2672
- addPharmacy(body) {
2673
- return this.h("add-pharmacy", body);
2716
+ moderate(body) {
2717
+ return this.send("POST", "/connectors/openai/moderate", { body });
2674
2718
  }
2675
- getPatientDefaultPharmacy(body) {
2676
- return this.h("get-patient-default-pharmacy", body);
2719
+ updateAssistant(body) {
2720
+ return this.send("POST", "/connectors/openai/update-assistant", { body });
2677
2721
  }
2678
- // Organization
2679
- getOrganizationDetailed(body = {}) {
2680
- return this.h("get-organization-detailed", body);
2722
+ };
2723
+
2724
+ // src/clients/connectors/OuraClient.ts
2725
+ var OuraClient = class extends ConnectorClient {
2726
+ constructor(http, credentials) {
2727
+ super(http, credentials);
2681
2728
  }
2682
- listOrganizationMembers(body = {}) {
2683
- return this.h("list-organization-members", body);
2729
+ o(op, body = {}) {
2730
+ return this.send("POST", `/connectors/oura/${op}`, { body });
2684
2731
  }
2685
- createOrganizationMembership(body) {
2686
- return this.h("create-organization-membership", body);
2732
+ buildAuthorizationUrl(body = {}) {
2733
+ return this.o("build-authorization-url", body);
2687
2734
  }
2688
- updateOrganizationMembership(body) {
2689
- return this.h("update-organization-membership", body);
2735
+ exchangeAuthorizationCode(body) {
2736
+ return this.o("exchange-authorization-code", body);
2690
2737
  }
2691
- deleteOrganizationMembership(body) {
2692
- return this.h("delete-organization-membership", body);
2738
+ refreshAccessToken(body) {
2739
+ return this.o("refresh-access-token", body);
2693
2740
  }
2694
- getOrganization(body = {}) {
2695
- return this.h("get-organization", body);
2741
+ getPersonalInfo(body = {}) {
2742
+ return this.o("get-personal-info", body);
2696
2743
  }
2697
- getDietitianId(body = {}) {
2698
- return this.h("get-dietitian-id", body);
2744
+ getDailyActivities(body = {}) {
2745
+ return this.o("get-daily-activities", body);
2699
2746
  }
2700
- getOrganizationMembers(body = {}) {
2701
- return this.h("get-organization-members", body);
2747
+ getDailyActivity(body) {
2748
+ return this.o("get-daily-activity", body);
2702
2749
  }
2703
- getProvider(body) {
2704
- return this.h("get-provider", body);
2750
+ getDailySleeps(body = {}) {
2751
+ return this.o("get-daily-sleeps", body);
2705
2752
  }
2706
- // User groups
2707
- getUserGroup(body) {
2708
- return this.h("get-user-group", body);
2753
+ getDailySleep(body) {
2754
+ return this.o("get-daily-sleep", body);
2709
2755
  }
2710
- getUserGroups(body = {}) {
2711
- return this.h("get-user-groups", body);
2756
+ getSleeps(body = {}) {
2757
+ return this.o("get-sleeps", body);
2712
2758
  }
2713
- createUserGroup(body) {
2714
- return this.h("create-user-group", body);
2759
+ getSleep(body) {
2760
+ return this.o("get-sleep", body);
2715
2761
  }
2716
- updateUserGroup(body) {
2717
- return this.h("update-user-group", body);
2762
+ getAllSleeps(body = {}) {
2763
+ return this.o("get-all-sleeps", body);
2718
2764
  }
2719
- deleteUserGroup(body) {
2720
- return this.h("delete-user-group", body);
2765
+ getDailyReadiness(body = {}) {
2766
+ return this.o("get-daily-readiness", body);
2721
2767
  }
2722
- // Tags
2723
- getTags(body = {}) {
2724
- return this.h("get-tags", body);
2768
+ getDailyReadinessById(body) {
2769
+ return this.o("get-daily-readiness-by-id", body);
2725
2770
  }
2726
- createTag(body) {
2727
- return this.h("create-tag", body);
2771
+ getHeartRates(body = {}) {
2772
+ return this.o("get-heart-rates", body);
2728
2773
  }
2729
- updateTag(body) {
2730
- return this.h("update-tag", body);
2774
+ getWorkouts(body = {}) {
2775
+ return this.o("get-workouts", body);
2731
2776
  }
2732
- deleteTag(body) {
2733
- return this.h("delete-tag", body);
2777
+ getWorkout(body) {
2778
+ return this.o("get-workout", body);
2734
2779
  }
2735
- bulkApplyTags(body) {
2736
- return this.h("bulk-apply-tags", body);
2780
+ getDailySpo2(body = {}) {
2781
+ return this.o("get-daily-spo2", body);
2737
2782
  }
2738
- removeAppliedTag(body) {
2739
- return this.h("remove-applied-tag", body);
2783
+ getDailyStress(body = {}) {
2784
+ return this.o("get-daily-stress", body);
2740
2785
  }
2741
- };
2742
-
2743
- // src/clients/vendors/GrokClient.ts
2744
- var GrokClient = class extends BaseServiceClient {
2745
- constructor(http) {
2746
- super(http, "connectors");
2786
+ getDailyResilience(body = {}) {
2787
+ return this.o("get-daily-resilience", body);
2747
2788
  }
2748
- getUmlsCodes(body) {
2749
- return this.send("POST", "/connectors/grok/get-umls-codes", { body });
2789
+ getDailyCardiovascularAge(body = {}) {
2790
+ return this.o("get-daily-cardiovascular-age", body);
2750
2791
  }
2751
- convertCcdaToFhir(body) {
2752
- return this.send("POST", "/connectors/grok/convert-ccda-to-fhir", { body });
2792
+ getVo2Max(body = {}) {
2793
+ return this.o("get-vo2-max", body);
2753
2794
  }
2754
- convertFhirToCcda(body) {
2755
- return this.send("POST", "/connectors/grok/convert-fhir-to-ccda", { body });
2795
+ getRingConfigurations(body = {}) {
2796
+ return this.o("get-ring-configurations", body);
2756
2797
  }
2757
- generalRequest(body) {
2758
- return this.send("POST", "/connectors/grok/general-grok-request", { body });
2798
+ getSessions(body = {}) {
2799
+ return this.o("get-sessions", body);
2759
2800
  }
2760
- convertFhirToCcdaWithChunking(body) {
2761
- return this.send("POST", "/connectors/grok/convert-fhir-to-ccda-with-chunking", { body });
2801
+ getSleepTimes(body = {}) {
2802
+ return this.o("get-sleep-times", body);
2762
2803
  }
2763
- createClinicalNotes(body) {
2764
- return this.send("POST", "/connectors/grok/create-clinical-notes", { body });
2804
+ getTags(body = {}) {
2805
+ return this.o("get-tags", body);
2765
2806
  }
2766
- chooseEncounterReasonsFromList(body) {
2767
- return this.send("POST", "/connectors/grok/choose-encounter-reasons-from-list", { body });
2807
+ getEnhancedTags(body = {}) {
2808
+ return this.o("get-enhanced-tags", body);
2768
2809
  }
2769
- chooseTemplatesFromList(body) {
2770
- return this.send("POST", "/connectors/grok/choose-templates-from-list", { body });
2810
+ getRestModePeriods(body = {}) {
2811
+ return this.o("get-rest-mode-periods", body);
2771
2812
  }
2772
- createHpiSummary(body) {
2773
- return this.send("POST", "/connectors/grok/create-hpi-summary", { body });
2813
+ };
2814
+
2815
+ // src/clients/connectors/PlaidClient.ts
2816
+ var PlaidClient = class extends ConnectorClient {
2817
+ constructor(http, credentials) {
2818
+ super(http, credentials);
2774
2819
  }
2775
- createScreeningSummary(body) {
2776
- return this.send("POST", "/connectors/grok/create-screening-summary", { body });
2820
+ createIdentityVerification(body) {
2821
+ return this.send("POST", "/connectors/plaid/create-identity-verification", { body });
2777
2822
  }
2778
- chooseHealthServiceFromList(body) {
2779
- return this.send("POST", "/connectors/grok/choose-health-service-from-list", { body });
2823
+ getIdentityVerification(body) {
2824
+ return this.send("POST", "/connectors/plaid/get-identity-verification", { body });
2780
2825
  }
2781
- createEhrSummary(body) {
2782
- return this.send("POST", "/connectors/grok/create-ehr-summary", { body });
2826
+ listIdentityVerifications(body) {
2827
+ return this.send("POST", "/connectors/plaid/list-identity-verifications", { body });
2783
2828
  }
2784
2829
  };
2785
2830
 
2786
- // src/clients/vendors/CalClient.ts
2787
- var CalClient = class extends BaseServiceClient {
2788
- constructor(http) {
2789
- super(http, "connectors");
2831
+ // src/clients/connectors/QuestClient.ts
2832
+ var QuestClient = class extends ConnectorClient {
2833
+ constructor(http, credentials) {
2834
+ super(http, credentials);
2790
2835
  }
2791
- c(op, body = {}) {
2792
- return this.send("POST", `/connectors/cal/${op}`, { body });
2836
+ p(operation, body) {
2837
+ return this.send("POST", `/connectors/quest/${operation}`, { body });
2793
2838
  }
2794
- getAllBookings(body = {}) {
2795
- return this.c("get-all-bookings", body);
2839
+ // ── REST-style operations ──────────────────────────────────────────────────
2840
+ /** Create a lab order with Quest Diagnostics. */
2841
+ createOrder(body) {
2842
+ return this.send("POST", "/connectors/quest/create-order", { body });
2796
2843
  }
2797
- createBooking(body) {
2798
- return this.c("create-booking", body);
2844
+ /** Retrieve lab results for an order or patient. */
2845
+ getResults(body) {
2846
+ return this.send("POST", "/connectors/quest/get-results", { body });
2799
2847
  }
2800
- getEventTypes(body = {}) {
2801
- return this.c("get-event-types", body);
2848
+ /** Browse the Quest test catalog. */
2849
+ listTests(body) {
2850
+ return this.send("POST", "/connectors/quest/list-tests", { body });
2802
2851
  }
2803
- getAvailableSlots(body) {
2804
- return this.c("get-available-slots", body);
2852
+ // ── HL7 message-based operations ───────────────────────────────────────────
2853
+ getAccessToken(body = {}) {
2854
+ return this.p("get-access-token", body);
2805
2855
  }
2806
- getScheduleForEventType(body) {
2807
- return this.c("get-schedule-for-event-type", body);
2856
+ clearTokenCache(body = {}) {
2857
+ return this.p("clear-token-cache", body);
2808
2858
  }
2809
- getScheduleById(body) {
2810
- return this.c("get-schedule-by-id", body);
2859
+ submitOrder(body) {
2860
+ return this.p("submit-order", body);
2811
2861
  }
2812
- createSchedule(body) {
2813
- return this.c("create-schedule", body);
2862
+ getOrderDocuments(body) {
2863
+ return this.p("get-order-documents", body);
2814
2864
  }
2815
- assignScheduleToEventType(body) {
2816
- return this.c("assign-schedule-to-event-type", body);
2865
+ evaluateAbn(body) {
2866
+ return this.p("evaluate-abn", body);
2817
2867
  }
2818
- updateSchedule(body) {
2819
- return this.c("update-schedule", body);
2868
+ getRequisition(body) {
2869
+ return this.p("get-requisition", body);
2820
2870
  }
2821
- updateAvailabilityFromAthenaSlots(body) {
2822
- return this.c("update-availability-from-athena-slots", body);
2871
+ evaluateAoe(body) {
2872
+ return this.p("evaluate-aoe", body);
2823
2873
  }
2824
- syncWithAthena(body = {}) {
2825
- return this.c("sync-with-athena", body);
2874
+ submitFullOrder(body) {
2875
+ return this.p("submit-full-order", body);
2826
2876
  }
2827
- };
2828
-
2829
- // src/clients/vendors/CarequalityClient.ts
2830
- var CarequalityClient = class extends BaseServiceClient {
2831
- constructor(http) {
2832
- super(http, "connectors");
2877
+ getHl7Results(body = {}) {
2878
+ return this.p("get-hl7-results", body);
2833
2879
  }
2834
- discoverPatient(body) {
2835
- return this.send("POST", "/connectors/carequality/discover-patient", { body });
2880
+ getPrintableResults(body = {}) {
2881
+ return this.p("get-printable-results", body);
2836
2882
  }
2837
- queryDocuments(body) {
2838
- return this.send("POST", "/connectors/carequality/query-documents", { body });
2883
+ getObservationResults(body = {}) {
2884
+ return this.p("get-observation-results", body);
2839
2885
  }
2840
- retrieveDocuments(body) {
2841
- return this.send("POST", "/connectors/carequality/retrieve-documents", { body });
2886
+ acknowledgeHl7Results(body) {
2887
+ return this.p("acknowledge-hl7-results", body);
2842
2888
  }
2843
- importPatientDocuments(body) {
2844
- return this.send("POST", "/connectors/carequality/import-patient-documents", { body });
2889
+ acknowledgePrintableResults(body) {
2890
+ return this.p("acknowledge-printable-results", body);
2845
2891
  }
2846
- };
2847
-
2848
- // src/clients/vendors/OuraClient.ts
2849
- var OuraClient = class extends BaseServiceClient {
2850
- constructor(http) {
2851
- super(http, "connectors");
2892
+ acknowledgeObservationResults(body) {
2893
+ return this.p("acknowledge-observation-results", body);
2852
2894
  }
2853
- o(op, body = {}) {
2854
- return this.send("POST", `/connectors/oura/${op}`, { body });
2895
+ buildResultsAck(body) {
2896
+ return this.p("build-results-ack", body);
2855
2897
  }
2856
- buildAuthorizationUrl(body = {}) {
2857
- return this.o("build-authorization-url", body);
2898
+ processPushedResult(body) {
2899
+ return this.p("process-pushed-result", body);
2858
2900
  }
2859
- exchangeAuthorizationCode(body) {
2860
- return this.o("exchange-authorization-code", body);
2901
+ requestCompendiums(body = {}) {
2902
+ return this.p("request-compendiums", body);
2861
2903
  }
2862
- refreshAccessToken(body) {
2863
- return this.o("refresh-access-token", body);
2904
+ requestCompendiumsOnDemand(body) {
2905
+ return this.p("request-compendiums-on-demand", body);
2864
2906
  }
2865
- getPersonalInfo(body = {}) {
2866
- return this.o("get-personal-info", body);
2907
+ retrieveCompendium(body) {
2908
+ return this.p("retrieve-compendium", body);
2867
2909
  }
2868
- getDailyActivities(body = {}) {
2869
- return this.o("get-daily-activities", body);
2910
+ retrieveAndExtractCompendium(body) {
2911
+ return this.p("retrieve-and-extract-compendium", body);
2870
2912
  }
2871
- getDailyActivity(body) {
2872
- return this.o("get-daily-activity", body);
2913
+ acknowledgeCompendium(body) {
2914
+ return this.p("acknowledge-compendium", body);
2873
2915
  }
2874
- getDailySleeps(body = {}) {
2875
- return this.o("get-daily-sleeps", body);
2916
+ syncCompendiums(body = {}) {
2917
+ return this.p("sync-compendiums", body);
2876
2918
  }
2877
- getDailySleep(body) {
2878
- return this.o("get-daily-sleep", body);
2919
+ };
2920
+
2921
+ // src/clients/connectors/SalesforceClient.ts
2922
+ var SalesforceClient = class extends ConnectorClient {
2923
+ constructor(http, credentials) {
2924
+ super(http, credentials);
2879
2925
  }
2880
- getSleeps(body = {}) {
2881
- return this.o("get-sleeps", body);
2926
+ /** Execute a SOQL query and return matching records. */
2927
+ query(body) {
2928
+ return this.send("POST", "/connectors/salesforce/query", { body });
2882
2929
  }
2883
- getSleep(body) {
2884
- return this.o("get-sleep", body);
2930
+ /** Create a new Salesforce record of the given sObject type. */
2931
+ create(body) {
2932
+ return this.send("POST", "/connectors/salesforce/create", { body });
2885
2933
  }
2886
- getAllSleeps(body = {}) {
2887
- return this.o("get-all-sleeps", body);
2934
+ /** Retrieve a single Salesforce record by sObject type and record ID. */
2935
+ get(body) {
2936
+ return this.send("POST", "/connectors/salesforce/get", { body });
2888
2937
  }
2889
- getDailyReadiness(body = {}) {
2890
- return this.o("get-daily-readiness", body);
2938
+ buildCaseDescription(body) {
2939
+ return this.send("POST", "/connectors/salesforce/build-case-description", { body });
2891
2940
  }
2892
- getDailyReadinessById(body) {
2893
- return this.o("get-daily-readiness-by-id", body);
2941
+ createAccount(body) {
2942
+ return this.send("POST", "/connectors/salesforce/create-account", { body });
2894
2943
  }
2895
- getHeartRates(body = {}) {
2896
- return this.o("get-heart-rates", body);
2944
+ createCallLog(body) {
2945
+ return this.send("POST", "/connectors/salesforce/create-call-log", { body });
2897
2946
  }
2898
- getWorkouts(body = {}) {
2899
- return this.o("get-workouts", body);
2947
+ createCampaign(body) {
2948
+ return this.send("POST", "/connectors/salesforce/create-campaign", { body });
2900
2949
  }
2901
- getWorkout(body) {
2902
- return this.o("get-workout", body);
2950
+ createCase(body) {
2951
+ return this.send("POST", "/connectors/salesforce/create-case", { body });
2903
2952
  }
2904
- getDailySpo2(body = {}) {
2905
- return this.o("get-daily-spo2", body);
2953
+ createContact(body) {
2954
+ return this.send("POST", "/connectors/salesforce/create-contact", { body });
2906
2955
  }
2907
- getDailyStress(body = {}) {
2908
- return this.o("get-daily-stress", body);
2956
+ createEvent(body) {
2957
+ return this.send("POST", "/connectors/salesforce/create-event", { body });
2909
2958
  }
2910
- getDailyResilience(body = {}) {
2911
- return this.o("get-daily-resilience", body);
2959
+ createPatient(body) {
2960
+ return this.send("POST", "/connectors/salesforce/create-patient", { body });
2912
2961
  }
2913
- getDailyCardiovascularAge(body = {}) {
2914
- return this.o("get-daily-cardiovascular-age", body);
2962
+ createSegment(body) {
2963
+ return this.send("POST", "/connectors/salesforce/create-segment", { body });
2915
2964
  }
2916
- getVo2Max(body = {}) {
2917
- return this.o("get-vo2-max", body);
2965
+ deleteAccount(body) {
2966
+ return this.send("POST", "/connectors/salesforce/delete-account", { body });
2918
2967
  }
2919
- getRingConfigurations(body = {}) {
2920
- return this.o("get-ring-configurations", body);
2968
+ deleteCallLog(body) {
2969
+ return this.send("POST", "/connectors/salesforce/delete-call-log", { body });
2921
2970
  }
2922
- getSessions(body = {}) {
2923
- return this.o("get-sessions", body);
2971
+ deleteCampaign(body) {
2972
+ return this.send("POST", "/connectors/salesforce/delete-campaign", { body });
2924
2973
  }
2925
- getSleepTimes(body = {}) {
2926
- return this.o("get-sleep-times", body);
2974
+ deleteCase(body) {
2975
+ return this.send("POST", "/connectors/salesforce/delete-case", { body });
2927
2976
  }
2928
- getTags(body = {}) {
2929
- return this.o("get-tags", body);
2977
+ deleteEvent(body) {
2978
+ return this.send("POST", "/connectors/salesforce/delete-event", { body });
2930
2979
  }
2931
- getEnhancedTags(body = {}) {
2932
- return this.o("get-enhanced-tags", body);
2980
+ deletePatient(body) {
2981
+ return this.send("POST", "/connectors/salesforce/delete-patient", { body });
2933
2982
  }
2934
- getRestModePeriods(body = {}) {
2935
- return this.o("get-rest-mode-periods", body);
2983
+ deleteSegment(body) {
2984
+ return this.send("POST", "/connectors/salesforce/delete-segment", { body });
2936
2985
  }
2937
- };
2938
-
2939
- // src/clients/vendors/PlaidClient.ts
2940
- var PlaidClient = class extends BaseServiceClient {
2941
- constructor(http) {
2942
- super(http, "connectors");
2986
+ describe(body) {
2987
+ return this.send("POST", "/connectors/salesforce/describe", { body });
2943
2988
  }
2944
- createIdentityVerification(body) {
2945
- return this.send("POST", "/connectors/plaid/create-identity-verification", { body });
2989
+ getAccount(body) {
2990
+ return this.send("POST", "/connectors/salesforce/get-account", { body });
2946
2991
  }
2947
- getIdentityVerification(body) {
2948
- return this.send("POST", "/connectors/plaid/get-identity-verification", { body });
2992
+ getAccountByTenant(body) {
2993
+ return this.send("POST", "/connectors/salesforce/get-account-by-tenant", { body });
2949
2994
  }
2950
- listIdentityVerifications(body) {
2951
- return this.send("POST", "/connectors/plaid/list-identity-verifications", { body });
2995
+ getAvailableSlots(body = {}) {
2996
+ return this.send("POST", "/connectors/salesforce/get-available-slots", { body });
2952
2997
  }
2953
- };
2954
-
2955
- // src/clients/vendors/AppleAuthClient.ts
2956
- var AppleAuthClient = class extends BaseServiceClient {
2957
- constructor(http) {
2958
- super(http, "connectors");
2998
+ getCallLog(body) {
2999
+ return this.send("POST", "/connectors/salesforce/get-call-log", { body });
2959
3000
  }
2960
- exchangeCode(body) {
2961
- return this.send("POST", "/connectors/apple-auth/exchange-code", { body });
3001
+ getCampaign(body) {
3002
+ return this.send("POST", "/connectors/salesforce/get-campaign", { body });
2962
3003
  }
2963
- decodeIdToken(body) {
2964
- return this.send("POST", "/connectors/apple-auth/decode-id-token", { body });
3004
+ getCase(body) {
3005
+ return this.send("POST", "/connectors/salesforce/get-case", { body });
2965
3006
  }
2966
- generateClientSecret(body = {}) {
2967
- return this.send("POST", "/connectors/apple-auth/generate-client-secret", { body });
3007
+ getConfiguration(body = {}) {
3008
+ return this.send("POST", "/connectors/salesforce/get-configuration", { body });
2968
3009
  }
2969
- };
2970
-
2971
- // src/clients/vendors/ZocdocClient.ts
2972
- var ZocdocClient = class extends BaseServiceClient {
2973
- constructor(http) {
2974
- super(http, "connectors");
3010
+ getContact(body = {}) {
3011
+ return this.send("POST", "/connectors/salesforce/get-contact", { body });
2975
3012
  }
2976
- z(op, body = {}) {
2977
- return this.send("POST", `/connectors/zocdoc/${op}`, { body });
3013
+ getEvent(body) {
3014
+ return this.send("POST", "/connectors/salesforce/get-event", { body });
2978
3015
  }
2979
- getDirectoryNpis(body = {}) {
2980
- return this.z("get-directory-npis", body);
3016
+ getHealthcareOrgIdByTenant(body) {
3017
+ return this.send("POST", "/connectors/salesforce/get-healthcare-org-id-by-tenant", { body });
2981
3018
  }
2982
- getProvidersByNpis(body) {
2983
- return this.z("get-providers-by-npis", body);
3019
+ getNotScheduledEvents(body = {}) {
3020
+ return this.send("POST", "/connectors/salesforce/get-not-scheduled-events", { body });
2984
3021
  }
2985
- getProviderByNpi(body) {
2986
- return this.z("get-provider-by-npi", body);
3022
+ getPatient(body) {
3023
+ return this.send("POST", "/connectors/salesforce/get-patient", { body });
2987
3024
  }
2988
- searchProviderLocations(body) {
2989
- return this.z("search-provider-locations", body);
3025
+ getPatientByEmail(body) {
3026
+ return this.send("POST", "/connectors/salesforce/get-patient-by-email", { body });
2990
3027
  }
2991
- getProviderLocationById(body) {
2992
- return this.z("get-provider-location-by-id", body);
3028
+ getPatientByPhone(body) {
3029
+ return this.send("POST", "/connectors/salesforce/get-patient-by-phone", { body });
2993
3030
  }
2994
- getMultipleLocationsAvailability(body) {
2995
- return this.z("get-multiple-locations-availability", body);
3031
+ getSegment(body) {
3032
+ return this.send("POST", "/connectors/salesforce/get-segment", { body });
2996
3033
  }
2997
- createAppointment(body) {
2998
- return this.z("create-appointment", body);
3034
+ listAccounts(body = {}) {
3035
+ return this.send("POST", "/connectors/salesforce/list-accounts", { body });
2999
3036
  }
3000
- listAppointments(body = {}) {
3001
- return this.z("list-appointments", body);
3037
+ listCallLogs(body = {}) {
3038
+ return this.send("POST", "/connectors/salesforce/list-call-logs", { body });
3002
3039
  }
3003
- getAppointmentById(body) {
3004
- return this.z("get-appointment-by-id", body);
3040
+ listCampaigns(body = {}) {
3041
+ return this.send("POST", "/connectors/salesforce/list-campaigns", { body });
3005
3042
  }
3006
- confirmAppointment(body) {
3007
- return this.z("confirm-appointment", body);
3043
+ listCases(body = {}) {
3044
+ return this.send("POST", "/connectors/salesforce/list-cases", { body });
3008
3045
  }
3009
- rescheduleAppointment(body) {
3010
- return this.z("reschedule-appointment", body);
3046
+ listEvents(body = {}) {
3047
+ return this.send("POST", "/connectors/salesforce/list-events", { body });
3011
3048
  }
3012
- cancelAppointment(body) {
3013
- return this.z("cancel-appointment", body);
3049
+ listPatients(body = {}) {
3050
+ return this.send("POST", "/connectors/salesforce/list-patients", { body });
3014
3051
  }
3015
- getAppointmentParticipants(body) {
3016
- return this.z("get-appointment-participants", body);
3052
+ listSegments(body = {}) {
3053
+ return this.send("POST", "/connectors/salesforce/list-segments", { body });
3017
3054
  }
3018
- updateAppointmentStatus(body) {
3019
- return this.z("update-appointment-status", body);
3055
+ scheduleEvent(body) {
3056
+ return this.send("POST", "/connectors/salesforce/schedule-event", { body });
3020
3057
  }
3021
- bookAndConfirmAppointment(body) {
3022
- return this.z("book-and-confirm-appointment", body);
3058
+ setAccountSenaiteId(body) {
3059
+ return this.send("POST", "/connectors/salesforce/set-account-senaite-id", { body });
3023
3060
  }
3024
- getInsurancePlans(body = {}) {
3025
- return this.z("get-insurance-plans", body);
3061
+ update(body) {
3062
+ return this.send("POST", "/connectors/salesforce/update", { body });
3026
3063
  }
3027
- getInsurancePlanById(body) {
3028
- return this.z("get-insurance-plan-by-id", body);
3064
+ updateAccount(body) {
3065
+ return this.send("POST", "/connectors/salesforce/update-account", { body });
3029
3066
  }
3030
- getProviderLocationInsuranceMappings(body) {
3031
- return this.z("get-provider-location-insurance-mappings", body);
3067
+ updateAccountAssets(body) {
3068
+ return this.send("POST", "/connectors/salesforce/update-account-assets", { body });
3032
3069
  }
3033
- updateProviderLocationInsuranceMappings(body) {
3034
- return this.z("update-provider-location-insurance-mappings", body);
3070
+ updateCallLog(body) {
3071
+ return this.send("POST", "/connectors/salesforce/update-call-log", { body });
3035
3072
  }
3036
- getSchedulableEntities(body = {}) {
3037
- return this.z("get-schedulable-entities", body);
3073
+ updateCampaign(body) {
3074
+ return this.send("POST", "/connectors/salesforce/update-campaign", { body });
3038
3075
  }
3039
- searchFacilities(body = {}) {
3040
- return this.z("search-facilities", body);
3076
+ updatePatient(body) {
3077
+ return this.send("POST", "/connectors/salesforce/update-patient", { body });
3041
3078
  }
3042
- getFacilityById(body) {
3043
- return this.z("get-facility-by-id", body);
3079
+ updateSegment(body) {
3080
+ return this.send("POST", "/connectors/salesforce/update-segment", { body });
3044
3081
  }
3045
- getProviderCalendarTimeslots(body) {
3046
- return this.z("get-provider-calendar-timeslots", body);
3082
+ };
3083
+
3084
+ // src/clients/connectors/ScrapflyClient.ts
3085
+ var ScrapflyClient = class extends ConnectorClient {
3086
+ constructor(http, credentials) {
3087
+ super(http, credentials);
3047
3088
  }
3048
- setProviderCalendarTimeslots(body) {
3049
- return this.z("set-provider-calendar-timeslots", body);
3089
+ scrape(body) {
3090
+ return this.send("POST", "/connectors/scrapfly/scrape", { body });
3050
3091
  }
3051
- createAppointmentAttachment(body) {
3052
- return this.send("POST", "/connectors/zocdoc/create-appointment-attachment", { body });
3092
+ getDocumentLinks(body) {
3093
+ return this.send("POST", "/connectors/scrapfly/get-document-links", { body });
3053
3094
  }
3054
3095
  };
3055
-
3056
- // src/clients/vendors/WhoopClient.ts
3057
- var WhoopClient = class extends BaseServiceClient {
3058
- constructor(http) {
3059
- super(http, "connectors");
3096
+
3097
+ // src/clients/connectors/SenaiteClient.ts
3098
+ var SenaiteClient = class extends ConnectorClient {
3099
+ constructor(http, credentials) {
3100
+ super(http, credentials);
3060
3101
  }
3061
- w(op, body = {}) {
3062
- return this.send("POST", `/connectors/whoop/${op}`, { body });
3102
+ s(op, body = {}) {
3103
+ return this.send("POST", `/connectors/senaite/${op}`, { body });
3063
3104
  }
3064
- buildAuthorizationUrl(body = {}) {
3065
- return this.w("build-authorization-url", body);
3105
+ login(body = {}) {
3106
+ return this.s("login", body);
3066
3107
  }
3067
- exchangeAuthorizationCode(body) {
3068
- return this.w("exchange-authorization-code", body);
3108
+ logout(body = {}) {
3109
+ return this.s("logout", body);
3069
3110
  }
3070
- refreshAccessToken(body) {
3071
- return this.w("refresh-access-token", body);
3111
+ getCurrentUser(body = {}) {
3112
+ return this.s("get-current-user", body);
3072
3113
  }
3073
- getPartnerToken(body = {}) {
3074
- return this.w("get-partner-token", body);
3114
+ getAllClients(body = {}) {
3115
+ return this.s("get-all-clients", body);
3075
3116
  }
3076
- revokeUserOauthAccess(body = {}) {
3077
- return this.w("revoke-user-oauth-access", body);
3117
+ getClientById(body) {
3118
+ return this.s("get-client-by-id", body);
3078
3119
  }
3079
- getUserProfile(body = {}) {
3080
- return this.w("get-user-profile", body);
3120
+ getClientByUid(body) {
3121
+ return this.s("get-client-by-uid", body);
3081
3122
  }
3082
- getUserBodyMeasurement(body = {}) {
3083
- return this.w("get-user-body-measurement", body);
3123
+ createClient(body) {
3124
+ return this.s("create-client", body);
3084
3125
  }
3085
- getCycle(body) {
3086
- return this.w("get-cycle", body);
3126
+ updateClient(body) {
3127
+ return this.s("update-client", body);
3087
3128
  }
3088
- getCycles(body = {}) {
3089
- return this.w("get-cycles", body);
3129
+ deactivateClient(body) {
3130
+ return this.s("deactivate-client", body);
3090
3131
  }
3091
- getAllCycles(body = {}) {
3092
- return this.w("get-all-cycles", body);
3132
+ getAllSamples(body = {}) {
3133
+ return this.s("get-all-samples", body);
3093
3134
  }
3094
- getSleep(body) {
3095
- return this.w("get-sleep", body);
3135
+ getSamplesByClientId(body) {
3136
+ return this.s("get-samples-by-client-id", body);
3096
3137
  }
3097
- getSleepForCycle(body) {
3098
- return this.w("get-sleep-for-cycle", body);
3138
+ getSampleById(body) {
3139
+ return this.s("get-sample-by-id", body);
3099
3140
  }
3100
- getSleeps(body = {}) {
3101
- return this.w("get-sleeps", body);
3141
+ getSampleByUid(body) {
3142
+ return this.s("get-sample-by-uid", body);
3102
3143
  }
3103
- getAllSleeps(body = {}) {
3104
- return this.w("get-all-sleeps", body);
3144
+ createSample(body) {
3145
+ return this.s("create-sample", body);
3105
3146
  }
3106
- getRecoveryForCycle(body) {
3107
- return this.w("get-recovery-for-cycle", body);
3147
+ updateSample(body) {
3148
+ return this.s("update-sample", body);
3108
3149
  }
3109
- getRecoveries(body = {}) {
3110
- return this.w("get-recoveries", body);
3150
+ cancelSample(body) {
3151
+ return this.s("cancel-sample", body);
3111
3152
  }
3112
- getAllRecoveries(body = {}) {
3113
- return this.w("get-all-recoveries", body);
3153
+ createContact(body) {
3154
+ return this.s("create-contact", body);
3114
3155
  }
3115
- getWorkout(body) {
3116
- return this.w("get-workout", body);
3156
+ getContactsForClient(body) {
3157
+ return this.s("get-contacts-for-client", body);
3117
3158
  }
3118
- getWorkouts(body = {}) {
3119
- return this.w("get-workouts", body);
3159
+ getSampleTypes(body = {}) {
3160
+ return this.s("get-sample-types", body);
3120
3161
  }
3121
- getAllWorkouts(body = {}) {
3122
- return this.w("get-all-workouts", body);
3162
+ createSampleType(body) {
3163
+ return this.s("create-sample-type", body);
3123
3164
  }
3124
- getActivityMapping(body = {}) {
3125
- return this.w("get-activity-mapping", body);
3165
+ getAnalysisServices(body = {}) {
3166
+ return this.s("get-analysis-services", body);
3126
3167
  }
3127
- getLabRequisition(body = {}) {
3128
- return this.w("get-lab-requisition", body);
3168
+ createAnalysisService(body) {
3169
+ return this.s("create-analysis-service", body);
3129
3170
  }
3130
- getServiceRequest(body) {
3131
- return this.w("get-service-request", body);
3171
+ createDepartment(body) {
3172
+ return this.s("create-department", body);
3132
3173
  }
3133
- updateServiceRequestStatus(body) {
3134
- return this.w("update-service-request-status", body);
3174
+ createAnalysisCategory(body) {
3175
+ return this.s("create-analysis-category", body);
3135
3176
  }
3136
- uploadDiagnosticReportResults(body) {
3137
- return this.w("upload-diagnostic-report-results", body);
3177
+ getCatalogs(body = {}) {
3178
+ return this.s("get-catalogs", body);
3138
3179
  }
3139
- addTestData(body) {
3140
- return this.w("add-test-data", body);
3180
+ search(body) {
3181
+ return this.s("search", body);
3141
3182
  }
3142
- submitVitalsFromDevice(body) {
3143
- return this.w("submit-vitals-from-device", body);
3183
+ ensureClientForTenant(body) {
3184
+ return this.s("ensure-senaite-client-for-tenant", body);
3144
3185
  }
3145
3186
  };
3146
3187
 
3147
- // src/clients/vendors/JunctionClient.ts
3148
- var JunctionClient = class extends BaseServiceClient {
3149
- constructor(http) {
3150
- super(http, "connectors");
3151
- }
3152
- orderTestkit(body) {
3153
- return this.send("POST", "/connectors/junction/order-testkit", { body });
3154
- }
3155
- registerTestkit(body) {
3156
- return this.send("POST", "/connectors/junction/register-testkit", { body });
3188
+ // src/clients/connectors/SendGridClient.ts
3189
+ var SendGridClient = class extends ConnectorClient {
3190
+ constructor(http, credentials) {
3191
+ super(http, credentials);
3157
3192
  }
3158
- getTests(body = {}) {
3159
- return this.send("POST", "/connectors/junction/get-tests", { body });
3193
+ /** Send a transactional email via SendGrid. Supports static content and dynamic templates. */
3194
+ sendEmail(body) {
3195
+ return this.send("POST", "/connectors/sendgrid/send-email", { body });
3160
3196
  }
3161
- getOrders(body = {}) {
3162
- return this.send("POST", "/connectors/junction/get-orders", { body });
3197
+ /** List SendGrid email templates. */
3198
+ listTemplates(body) {
3199
+ return this.send("POST", "/connectors/sendgrid/list-templates", { body });
3163
3200
  }
3164
3201
  };
3165
3202
 
3166
- // src/clients/vendors/SteadyMDClient.ts
3167
- var SteadyMDClient = class extends BaseServiceClient {
3168
- constructor(http) {
3169
- super(http, "connectors");
3203
+ // src/clients/connectors/SteadyMDClient.ts
3204
+ var SteadyMDClient = class extends ConnectorClient {
3205
+ constructor(http, credentials) {
3206
+ super(http, credentials);
3170
3207
  }
3171
3208
  m(op, body = {}) {
3172
3209
  return this.send("POST", `/connectors/steadymd/${op}`, { body });
@@ -3302,243 +3339,329 @@ var SteadyMDClient = class extends BaseServiceClient {
3302
3339
  }
3303
3340
  };
3304
3341
 
3305
- // src/clients/vendors/ImpiloClient.ts
3306
- var ImpiloClient = class extends BaseServiceClient {
3307
- constructor(http) {
3308
- super(http, "connectors");
3342
+ // src/clients/connectors/StediClient.ts
3343
+ var StediClient = class extends ConnectorClient {
3344
+ constructor(http, credentials) {
3345
+ super(http, credentials);
3309
3346
  }
3310
- i(op, body = {}) {
3311
- return this.send("POST", `/connectors/impilo/${op}`, { body });
3347
+ /** Check insurance eligibility via the Stedi 270/271 API. */
3348
+ checkEligibility(body) {
3349
+ return this.send("POST", "/connectors/stedi/check-eligibility", { body });
3312
3350
  }
3313
- // Patients
3314
- createPatient(body) {
3315
- return this.i("create-patient", body);
3351
+ /** Submit an X12 837 medical claim. */
3352
+ submitClaim(body) {
3353
+ return this.send("POST", "/connectors/stedi/submit-claim", { body });
3316
3354
  }
3317
- getPatient(body) {
3318
- return this.i("get-patient", body);
3355
+ /** Verify a provider by NPI via NPPES (routed through Stedi). */
3356
+ verifyProvider(body) {
3357
+ return this.send("POST", "/connectors/stedi/verify-provider", { body });
3319
3358
  }
3320
- listPatients(body = {}) {
3321
- return this.i("list-patients", body);
3359
+ checkClaimStatus(body = {}) {
3360
+ return this.send("POST", "/connectors/stedi/check-claim-status", { body });
3322
3361
  }
3323
- updatePatient(body) {
3324
- return this.i("update-patient", body);
3362
+ checkCoordinationOfBenefits(body = {}) {
3363
+ return this.send("POST", "/connectors/stedi/check-coordination-of-benefits", { body });
3325
3364
  }
3326
- // Devices
3327
- getDevice(body) {
3328
- return this.i("get-device", body);
3365
+ discoverInsurance(body = {}) {
3366
+ return this.send("POST", "/connectors/stedi/discover-insurance", { body });
3329
3367
  }
3330
- listDevices(body = {}) {
3331
- return this.i("list-devices", body);
3368
+ get835EraReport(body) {
3369
+ return this.send("POST", "/connectors/stedi/get-835-era-report", { body });
3332
3370
  }
3333
- associateDevice(body) {
3334
- return this.i("associate-device", body);
3371
+ getInsuranceDiscoveryResults(body) {
3372
+ return this.send("POST", "/connectors/stedi/get-insurance-discovery-results", { body });
3335
3373
  }
3336
- disassociateDevice(body) {
3337
- return this.i("disassociate-device", body);
3374
+ submitInstitutionalClaim(body = {}) {
3375
+ return this.send("POST", "/connectors/stedi/submit-institutional-claim", { body });
3376
+ }
3377
+ submitProfessionalClaim(body = {}) {
3378
+ return this.send("POST", "/connectors/stedi/submit-professional-claim", { body });
3379
+ }
3380
+ };
3381
+
3382
+ // src/clients/connectors/StripeClient.ts
3383
+ var StripeClient = class extends ConnectorClient {
3384
+ constructor(http, credentials) {
3385
+ super(http, credentials);
3386
+ }
3387
+ s(op, body) {
3388
+ return this.send("POST", `/connectors/stripe/${op}`, { body });
3389
+ }
3390
+ /** Create a Stripe PaymentIntent. Returns the client_secret for client-side confirmation. */
3391
+ createPaymentIntent(body) {
3392
+ return this.s("create-payment-intent", body);
3393
+ }
3394
+ /** Retrieve the status of an existing PaymentIntent. */
3395
+ getPaymentIntentStatus(body) {
3396
+ return this.s("get-payment-intent-status", body);
3397
+ }
3398
+ /** Create a Stripe Customer record. */
3399
+ createCustomer(body) {
3400
+ return this.s("create-customer", body);
3401
+ }
3402
+ /** Create a Stripe Subscription for an existing customer and price. */
3403
+ createSubscription(body) {
3404
+ return this.s("create-subscription", body);
3405
+ }
3406
+ /** Create a Stripe Checkout Session. */
3407
+ createSession(body) {
3408
+ return this.s("create-session", body);
3409
+ }
3410
+ /** List active Stripe products. */
3411
+ listProducts(body = {}) {
3412
+ return this.s("list-products", body);
3413
+ }
3414
+ /** Create a new Stripe Price for an existing product. */
3415
+ createCopayPrice(body) {
3416
+ return this.s("create-copay-price", body);
3417
+ }
3418
+ /** Verify that the configured Stripe credentials are valid. */
3419
+ verifyConnection(body = {}) {
3420
+ return this.s("verify-connection", body);
3421
+ }
3422
+ /** Validate a card payment method without charging it. */
3423
+ validateAndTokenizeCard(body) {
3424
+ return this.s("validate-and-tokenize-card", body);
3425
+ }
3426
+ /** Create a direct charge against a source or customer. */
3427
+ chargePaymentSession(body) {
3428
+ return this.s("charge-payment-session", body);
3429
+ }
3430
+ };
3431
+
3432
+ // src/clients/connectors/TwilioClient.ts
3433
+ var TwilioClient = class extends ConnectorClient {
3434
+ constructor(http, credentials) {
3435
+ super(http, credentials);
3436
+ }
3437
+ /** Send an SMS message via Twilio. */
3438
+ sendSms(body) {
3439
+ return this.send("POST", "/connectors/twilio/send-sms", { body });
3440
+ }
3441
+ /** Retrieve a specific Twilio message by SID. */
3442
+ getMessage(body) {
3443
+ return this.send("POST", "/connectors/twilio/get-message", { body });
3444
+ }
3445
+ /** List Twilio messages, optionally filtered by to/from/date. */
3446
+ listMessages(body) {
3447
+ return this.send("POST", "/connectors/twilio/list-messages", { body });
3448
+ }
3449
+ };
3450
+
3451
+ // src/clients/connectors/UberClient.ts
3452
+ var UberClient = class extends ConnectorClient {
3453
+ constructor(http, credentials) {
3454
+ super(http, credentials);
3455
+ }
3456
+ p(operation, body) {
3457
+ return this.send("POST", `/connectors/uber/${operation}`, { body });
3458
+ }
3459
+ createDelivery(body) {
3460
+ return this.p("create-delivery", body);
3461
+ }
3462
+ createQuote(body) {
3463
+ return this.p("create-quote", body);
3464
+ }
3465
+ getDeliveries(body = {}) {
3466
+ return this.p("get-deliveries", body);
3467
+ }
3468
+ getUndeliveredOrders(body = {}) {
3469
+ return this.p("get-undelivered-orders", body);
3338
3470
  }
3339
- enableReadings(body) {
3340
- return this.i("enable-readings", body);
3471
+ getDelivery(body) {
3472
+ return this.p("get-delivery", body);
3341
3473
  }
3342
- disableReadings(body) {
3343
- return this.i("disable-readings", body);
3474
+ updateDelivery(body) {
3475
+ return this.p("update-delivery", body);
3344
3476
  }
3345
- validateDevice(body) {
3346
- return this.i("validate-device", body);
3477
+ cancelDelivery(body) {
3478
+ return this.p("cancel-delivery", body);
3347
3479
  }
3348
- // Kits
3349
- getKit(body) {
3350
- return this.i("get-kit", body);
3480
+ findStores(body) {
3481
+ return this.p("find-stores", body);
3351
3482
  }
3352
- listKits(body = {}) {
3353
- return this.i("list-kits", body);
3483
+ };
3484
+
3485
+ // src/clients/connectors/WhoopClient.ts
3486
+ var WhoopClient = class extends ConnectorClient {
3487
+ constructor(http, credentials) {
3488
+ super(http, credentials);
3354
3489
  }
3355
- linkKitToPatient(body) {
3356
- return this.i("link-kit-to-patient", body);
3490
+ w(op, body = {}) {
3491
+ return this.send("POST", `/connectors/whoop/${op}`, { body });
3357
3492
  }
3358
- unlinkKitFromPatient(body) {
3359
- return this.i("unlink-kit-from-patient", body);
3493
+ buildAuthorizationUrl(body = {}) {
3494
+ return this.w("build-authorization-url", body);
3360
3495
  }
3361
- // Orders
3362
- createOrder(body) {
3363
- return this.i("create-order", body);
3496
+ exchangeAuthorizationCode(body) {
3497
+ return this.w("exchange-authorization-code", body);
3364
3498
  }
3365
- getOrder(body) {
3366
- return this.i("get-order", body);
3499
+ refreshAccessToken(body) {
3500
+ return this.w("refresh-access-token", body);
3367
3501
  }
3368
- listOrders(body = {}) {
3369
- return this.i("list-orders", body);
3502
+ getPartnerToken(body = {}) {
3503
+ return this.w("get-partner-token", body);
3370
3504
  }
3371
- // Readings
3372
- recordBloodPressureReading(body) {
3373
- return this.i("record-blood-pressure-reading", body);
3505
+ revokeUserOauthAccess(body = {}) {
3506
+ return this.w("revoke-user-oauth-access", body);
3374
3507
  }
3375
- getBloodPressureReading(body) {
3376
- return this.i("get-blood-pressure-reading", body);
3508
+ getUserProfile(body = {}) {
3509
+ return this.w("get-user-profile", body);
3377
3510
  }
3378
- listBloodPressureReadings(body = {}) {
3379
- return this.i("list-blood-pressure-readings", body);
3511
+ getUserBodyMeasurement(body = {}) {
3512
+ return this.w("get-user-body-measurement", body);
3380
3513
  }
3381
- recordBloodGlucoseReading(body) {
3382
- return this.i("record-blood-glucose-reading", body);
3514
+ getCycle(body) {
3515
+ return this.w("get-cycle", body);
3383
3516
  }
3384
- getBloodGlucoseReading(body) {
3385
- return this.i("get-blood-glucose-reading", body);
3517
+ getCycles(body = {}) {
3518
+ return this.w("get-cycles", body);
3386
3519
  }
3387
- listBloodGlucoseReadings(body = {}) {
3388
- return this.i("list-blood-glucose-readings", body);
3520
+ getAllCycles(body = {}) {
3521
+ return this.w("get-all-cycles", body);
3389
3522
  }
3390
- recordBloodOxygenReading(body) {
3391
- return this.i("record-blood-oxygen-reading", body);
3523
+ getSleep(body) {
3524
+ return this.w("get-sleep", body);
3392
3525
  }
3393
- getBloodOxygenReading(body) {
3394
- return this.i("get-blood-oxygen-reading", body);
3526
+ getSleepForCycle(body) {
3527
+ return this.w("get-sleep-for-cycle", body);
3395
3528
  }
3396
- listBloodOxygenReadings(body = {}) {
3397
- return this.i("list-blood-oxygen-readings", body);
3529
+ getSleeps(body = {}) {
3530
+ return this.w("get-sleeps", body);
3398
3531
  }
3399
- recordWeightReading(body) {
3400
- return this.i("record-weight-reading", body);
3532
+ getAllSleeps(body = {}) {
3533
+ return this.w("get-all-sleeps", body);
3401
3534
  }
3402
- getWeightReading(body) {
3403
- return this.i("get-weight-reading", body);
3535
+ getRecoveryForCycle(body) {
3536
+ return this.w("get-recovery-for-cycle", body);
3404
3537
  }
3405
- listWeightReadings(body = {}) {
3406
- return this.i("list-weight-readings", body);
3538
+ getRecoveries(body = {}) {
3539
+ return this.w("get-recoveries", body);
3407
3540
  }
3408
- recordTemperatureReading(body) {
3409
- return this.i("record-temperature-reading", body);
3541
+ getAllRecoveries(body = {}) {
3542
+ return this.w("get-all-recoveries", body);
3410
3543
  }
3411
- getTemperatureReading(body) {
3412
- return this.i("get-temperature-reading", body);
3544
+ getWorkout(body) {
3545
+ return this.w("get-workout", body);
3413
3546
  }
3414
- listTemperatureReadings(body = {}) {
3415
- return this.i("list-temperature-readings", body);
3547
+ getWorkouts(body = {}) {
3548
+ return this.w("get-workouts", body);
3416
3549
  }
3417
- recordHeartRateReading(body) {
3418
- return this.i("record-heart-rate-reading", body);
3550
+ getAllWorkouts(body = {}) {
3551
+ return this.w("get-all-workouts", body);
3419
3552
  }
3420
- getHeartRateReading(body) {
3421
- return this.i("get-heart-rate-reading", body);
3553
+ getActivityMapping(body = {}) {
3554
+ return this.w("get-activity-mapping", body);
3422
3555
  }
3423
- listHeartRateReadings(body = {}) {
3424
- return this.i("list-heart-rate-readings", body);
3556
+ getLabRequisition(body = {}) {
3557
+ return this.w("get-lab-requisition", body);
3425
3558
  }
3426
- listSpirometryReadings(body = {}) {
3427
- return this.i("list-spirometry-readings", body);
3559
+ getServiceRequest(body) {
3560
+ return this.w("get-service-request", body);
3428
3561
  }
3429
- // Clinical notes
3430
- getClinicalNote(body) {
3431
- return this.i("get-clinical-note", body);
3562
+ updateServiceRequestStatus(body) {
3563
+ return this.w("update-service-request-status", body);
3432
3564
  }
3433
- listClinicalNotes(body = {}) {
3434
- return this.i("list-clinical-notes", body);
3565
+ uploadDiagnosticReportResults(body) {
3566
+ return this.w("upload-diagnostic-report-results", body);
3435
3567
  }
3436
- // Inventory
3437
- listSiteInventory(body = {}) {
3438
- return this.i("list-site-inventory", body);
3568
+ addTestData(body) {
3569
+ return this.w("add-test-data", body);
3439
3570
  }
3440
- listKitInventory(body = {}) {
3441
- return this.i("list-kit-inventory", body);
3571
+ submitVitalsFromDevice(body) {
3572
+ return this.w("submit-vitals-from-device", body);
3442
3573
  }
3443
- // Procurements
3444
- createProcurement(body) {
3445
- return this.i("create-procurement", body);
3574
+ };
3575
+
3576
+ // src/clients/connectors/ZocdocClient.ts
3577
+ var ZocdocClient = class extends ConnectorClient {
3578
+ constructor(http, credentials) {
3579
+ super(http, credentials);
3446
3580
  }
3447
- listProcurements(body = {}) {
3448
- return this.i("list-procurements", body);
3581
+ z(op, body = {}) {
3582
+ return this.send("POST", `/connectors/zocdoc/${op}`, { body });
3449
3583
  }
3450
- // Items
3451
- createItem(body) {
3452
- return this.i("create-item", body);
3584
+ getDirectoryNpis(body = {}) {
3585
+ return this.z("get-directory-npis", body);
3453
3586
  }
3454
- getItem(body) {
3455
- return this.i("get-item", body);
3587
+ getProvidersByNpis(body) {
3588
+ return this.z("get-providers-by-npis", body);
3456
3589
  }
3457
- listItems(body = {}) {
3458
- return this.i("list-items", body);
3590
+ getProviderByNpi(body) {
3591
+ return this.z("get-provider-by-npi", body);
3459
3592
  }
3460
- // Alert configs
3461
- getPatientAlertConfig(body = {}) {
3462
- return this.i("get-patient-alert-config", body);
3593
+ searchProviderLocations(body) {
3594
+ return this.z("search-provider-locations", body);
3463
3595
  }
3464
- setPatientAlertConfig(body) {
3465
- return this.i("set-patient-alert-config", body);
3596
+ getProviderLocationById(body) {
3597
+ return this.z("get-provider-location-by-id", body);
3466
3598
  }
3467
- getSiteAlertConfig(body = {}) {
3468
- return this.i("get-site-alert-config", body);
3599
+ getMultipleLocationsAvailability(body) {
3600
+ return this.z("get-multiple-locations-availability", body);
3469
3601
  }
3470
- setSiteAlertConfig(body) {
3471
- return this.i("set-site-alert-config", body);
3602
+ createAppointment(body) {
3603
+ return this.z("create-appointment", body);
3472
3604
  }
3473
- getGlobalAlertConfig(body = {}) {
3474
- return this.i("get-global-alert-config", body);
3605
+ listAppointments(body = {}) {
3606
+ return this.z("list-appointments", body);
3475
3607
  }
3476
- setGlobalAlertConfig(body) {
3477
- return this.i("set-global-alert-config", body);
3608
+ getAppointmentById(body) {
3609
+ return this.z("get-appointment-by-id", body);
3478
3610
  }
3479
- // Webhooks
3480
- registerWebhooks(body) {
3481
- return this.i("register-webhooks", body);
3611
+ confirmAppointment(body) {
3612
+ return this.z("confirm-appointment", body);
3482
3613
  }
3483
- fetchProcurementDocument(body) {
3484
- return this.send("POST", "/connectors/impilo/fetch-procurement-document", { body });
3614
+ rescheduleAppointment(body) {
3615
+ return this.z("reschedule-appointment", body);
3485
3616
  }
3486
- getOrderSummary(body) {
3487
- return this.send("POST", "/connectors/impilo/get-order-summary", { body });
3617
+ cancelAppointment(body) {
3618
+ return this.z("cancel-appointment", body);
3488
3619
  }
3489
- };
3490
-
3491
- // src/clients/vendors/ScrapflyClient.ts
3492
- var ScrapflyClient = class extends BaseServiceClient {
3493
- constructor(http) {
3494
- super(http, "connectors");
3620
+ getAppointmentParticipants(body) {
3621
+ return this.z("get-appointment-participants", body);
3495
3622
  }
3496
- scrape(body) {
3497
- return this.send("POST", "/connectors/scrapfly/scrape", { body });
3623
+ updateAppointmentStatus(body) {
3624
+ return this.z("update-appointment-status", body);
3498
3625
  }
3499
- getDocumentLinks(body) {
3500
- return this.send("POST", "/connectors/scrapfly/get-document-links", { body });
3626
+ bookAndConfirmAppointment(body) {
3627
+ return this.z("book-and-confirm-appointment", body);
3501
3628
  }
3502
- };
3503
-
3504
- // src/clients/vendors/UberClient.ts
3505
- var UberClient = class extends BaseServiceClient {
3506
- constructor(http) {
3507
- super(http, "connectors");
3629
+ getInsurancePlans(body = {}) {
3630
+ return this.z("get-insurance-plans", body);
3508
3631
  }
3509
- p(operation, body) {
3510
- return this.send("POST", `/connectors/uber/${operation}`, { body });
3632
+ getInsurancePlanById(body) {
3633
+ return this.z("get-insurance-plan-by-id", body);
3511
3634
  }
3512
- createDelivery(body) {
3513
- return this.p("create-delivery", body);
3635
+ getProviderLocationInsuranceMappings(body) {
3636
+ return this.z("get-provider-location-insurance-mappings", body);
3514
3637
  }
3515
- createQuote(body) {
3516
- return this.p("create-quote", body);
3638
+ updateProviderLocationInsuranceMappings(body) {
3639
+ return this.z("update-provider-location-insurance-mappings", body);
3517
3640
  }
3518
- getDeliveries(body = {}) {
3519
- return this.p("get-deliveries", body);
3641
+ getSchedulableEntities(body = {}) {
3642
+ return this.z("get-schedulable-entities", body);
3520
3643
  }
3521
- getUndeliveredOrders(body = {}) {
3522
- return this.p("get-undelivered-orders", body);
3644
+ searchFacilities(body = {}) {
3645
+ return this.z("search-facilities", body);
3523
3646
  }
3524
- getDelivery(body) {
3525
- return this.p("get-delivery", body);
3647
+ getFacilityById(body) {
3648
+ return this.z("get-facility-by-id", body);
3526
3649
  }
3527
- updateDelivery(body) {
3528
- return this.p("update-delivery", body);
3650
+ getProviderCalendarTimeslots(body) {
3651
+ return this.z("get-provider-calendar-timeslots", body);
3529
3652
  }
3530
- cancelDelivery(body) {
3531
- return this.p("cancel-delivery", body);
3653
+ setProviderCalendarTimeslots(body) {
3654
+ return this.z("set-provider-calendar-timeslots", body);
3532
3655
  }
3533
- findStores(body) {
3534
- return this.p("find-stores", body);
3656
+ createAppointmentAttachment(body) {
3657
+ return this.send("POST", "/connectors/zocdoc/create-appointment-attachment", { body });
3535
3658
  }
3536
3659
  };
3537
3660
 
3538
- // src/clients/vendors/ZusClient.ts
3539
- var ZusClient = class extends BaseServiceClient {
3540
- constructor(http) {
3541
- super(http, "connectors");
3661
+ // src/clients/connectors/ZusClient.ts
3662
+ var ZusClient = class extends ConnectorClient {
3663
+ constructor(http, credentials) {
3664
+ super(http, credentials);
3542
3665
  }
3543
3666
  p(operation, body) {
3544
3667
  return this.send("POST", `/connectors/zus/${operation}`, { body });
@@ -3569,42 +3692,47 @@ var ZusClient = class extends BaseServiceClient {
3569
3692
  }
3570
3693
  };
3571
3694
 
3572
- // src/clients/vendors/VendorsNamespace.ts
3573
- var VendorsNamespace = class {
3695
+ // src/clients/connectors/ConnectorsNamespace.ts
3696
+ function mode(value) {
3697
+ return value != null ? value : "sandbox";
3698
+ }
3699
+ var ConnectorsNamespace = class {
3574
3700
  constructor(http) {
3575
- this.athena = new AthenaHealthClient(http);
3576
- this.stripe = new StripeClient(http);
3577
- this.twilio = new TwilioClient(http);
3578
- this.stedi = new StediClient(http);
3579
- this.salesforce = new SalesforceClient(http);
3580
- this.quest = new QuestClient(http);
3581
- this.questHl7 = new QuestHl7Client(http);
3582
- this.openai = new OpenAIClient(http);
3583
- this.anthropic = new AnthropicClient(http);
3584
- this.googleAI = new GoogleAIClient(http);
3585
- this.googlePlaces = new GooglePlacesClient(http);
3586
- this.sendgrid = new SendGridClient(http);
3587
- this.elevenlabs = new ElevenLabsClient(http);
3588
- this.nppes = new NppesClient(http);
3589
- this.cms = new CmsClient(http);
3590
- this.fedex = new FedExClient(http);
3591
- this.connecture = new ConnectureClient(http);
3592
- this.senaite = new SenaiteClient(http);
3593
- this.healthie = new HealthieClient(http);
3594
- this.grok = new GrokClient(http);
3595
- this.cal = new CalClient(http);
3596
- this.carequality = new CarequalityClient(http);
3597
- this.oura = new OuraClient(http);
3598
- this.plaid = new PlaidClient(http);
3599
- this.appleAuth = new AppleAuthClient(http);
3600
- this.zocdoc = new ZocdocClient(http);
3601
- this.whoop = new WhoopClient(http);
3602
- this.junction = new JunctionClient(http);
3603
- this.steadymd = new SteadyMDClient(http);
3604
- this.impilo = new ImpiloClient(http);
3605
- this.scrapfly = new ScrapflyClient(http);
3606
- this.uber = new UberClient(http);
3607
- this.zus = new ZusClient(http);
3701
+ this.anthropic = new ConnectorFactory("anthropic", http, AnthropicClient, (c) => ({ api_key: c.api_key, mode: mode(c.mode) }));
3702
+ 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 }));
3703
+ 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) }));
3704
+ this.cal = new ConnectorFactory("cal", http, CalClient, (c) => ({ api_key: c.api_key }));
3705
+ this.carequality = new ConnectorFactory("carequality", http, CarequalityClient, (c) => ({ api_key: c.api_key, initiator_url: c.initiator_url }));
3706
+ this.cms = new ConnectorFactory("cms", http, CmsClient, (c) => ({ api_key: c.api_key }));
3707
+ this.connecture = new ConnectorFactory("connecture", http, ConnectureClient, (c) => ({ basic_token: c.basic_token, client_key: c.client_key, client_secret: c.client_secret }));
3708
+ this.elevenlabs = new ConnectorFactory("elevenlabs", http, ElevenLabsClient, (c) => ({ api_key: c.api_key }));
3709
+ 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) }));
3710
+ this.googleAI = new ConnectorFactory("googleAI", http, GoogleAIClient, (c) => ({ api_key: c.api_key }));
3711
+ this.googlePlaces = new ConnectorFactory("googlePlaces", http, GooglePlacesClient, (c) => ({ api_key: c.api_key, mode: mode(c.mode) }));
3712
+ this.grok = new ConnectorFactory("grok", http, GrokClient, (c) => ({ api_key: c.api_key }));
3713
+ 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 } : {} }));
3714
+ this.impilo = new ConnectorFactory("impilo", http, ImpiloClient, (c) => ({ api_key: c.api_key }));
3715
+ this.junction = new ConnectorFactory("junction", http, JunctionClient, (c) => ({ api_key: c.api_key }));
3716
+ this.nppes = new PublicConnectorFactory(http, NppesClient);
3717
+ this.openai = new ConnectorFactory("openai", http, OpenAIClient, (c) => ({ api_key: c.api_key }));
3718
+ this.oura = new ConnectorFactory("oura", http, OuraClient, (c) => ({ client_id: c.client_id, client_secret: c.client_secret, mode: mode(c.mode) }));
3719
+ 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) }));
3720
+ this.quest = new ConnectorFactory("quest", http, QuestClient, (c) => ({ client_id: c.client_id, client_secret: c.client_secret, mode: mode(c.mode) }));
3721
+ 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) }));
3722
+ this.scrapfly = new ConnectorFactory("scrapfly", http, ScrapflyClient, (c) => ({ api_key: c.api_key }));
3723
+ this.senaite = new ConnectorFactory("senaite", http, SenaiteClient, (c) => ({ base_url: c.base_url, username: c.username, password: c.password }));
3724
+ this.sendgrid = new ConnectorFactory("sendgrid", http, SendGridClient, (c) => ({ api_key: c.api_key, mode: mode(c.mode) }));
3725
+ this.steadymd = new ConnectorFactory("steadymd", http, SteadyMDClient, (c) => {
3726
+ var _a;
3727
+ return { api_key: (_a = c.api_key) != null ? _a : c.token, mode: mode(c.mode), ...c.api_url ? { api_url: c.api_url } : {} };
3728
+ });
3729
+ this.stedi = new ConnectorFactory("stedi", http, StediClient, (c) => ({ api_key: c.api_key }));
3730
+ this.stripe = new ConnectorFactory("stripe", http, StripeClient, (c) => ({ secret_key: c.api_key }));
3731
+ 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) }));
3732
+ 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) }));
3733
+ this.whoop = new ConnectorFactory("whoop", http, WhoopClient, (c) => ({ client_id: c.client_id, client_secret: c.client_secret, mode: mode(c.mode) }));
3734
+ this.zocdoc = new ConnectorFactory("zocdoc", http, ZocdocClient, (c) => ({ api_key: c.api_key }));
3735
+ this.zus = new ConnectorFactory("zus", http, ZusClient, (c) => ({ client_id: c.client_id, client_secret: c.client_secret, mode: mode(c.mode) }));
3608
3736
  }
3609
3737
  };
3610
3738
 
@@ -3638,7 +3766,7 @@ var HCSDK = class {
3638
3766
  () => this.state.tenantId
3639
3767
  );
3640
3768
  this.mcp = new MCPClient(this.http);
3641
- this.vendors = new VendorsNamespace(this.http);
3769
+ this.connectors = new ConnectorsNamespace(this.http);
3642
3770
  }
3643
3771
  setAccessToken(token) {
3644
3772
  this.state.accessToken = token;
@@ -3740,6 +3868,9 @@ var HCSDK_SWAGGER_OPERATION_COUNTS = {
3740
3868
  CalClient,
3741
3869
  CarequalityClient,
3742
3870
  CmsClient,
3871
+ ConnectorClient,
3872
+ ConnectorFactory,
3873
+ ConnectorsNamespace,
3743
3874
  ConnectureClient,
3744
3875
  ElevenLabsClient,
3745
3876
  FedExClient,
@@ -3758,8 +3889,8 @@ var HCSDK_SWAGGER_OPERATION_COUNTS = {
3758
3889
  OpenAIClient,
3759
3890
  OuraClient,
3760
3891
  PlaidClient,
3892
+ PublicConnectorFactory,
3761
3893
  QuestClient,
3762
- QuestHl7Client,
3763
3894
  SDKError,
3764
3895
  SalesforceClient,
3765
3896
  ScrapflyClient,
@@ -3770,7 +3901,6 @@ var HCSDK_SWAGGER_OPERATION_COUNTS = {
3770
3901
  StripeClient,
3771
3902
  TwilioClient,
3772
3903
  UberClient,
3773
- VendorsNamespace,
3774
3904
  WhoopClient,
3775
3905
  ZocdocClient,
3776
3906
  ZusClient,