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