@healthcloudai/hc-sdk 3.0.0 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/index.cjs +43 -1
  2. package/dist/index.d.cts +1017 -12
  3. package/dist/index.d.ts +1017 -12
  4. package/dist/index.js +42 -1
  5. package/docs/clients/AmsClient.md +3 -0
  6. package/docs/clients/GrokClient.md +2 -2
  7. package/docs/clients/index.md +1 -0
  8. package/docs/docs-manifest.json +7 -4
  9. package/docs/examples/index.md +3 -2
  10. package/docs/index.md +3 -2
  11. package/docs/models/Appointment.md +1 -0
  12. package/docs/models/AthenaCreatePatientRequest.md +1 -0
  13. package/docs/models/AthenaVitalFailedReading.md +25 -0
  14. package/docs/models/AthenaVitalsMirrorResult.md +1 -0
  15. package/docs/models/CarequalityRetrieveDocumentsRequest.md +1 -1
  16. package/docs/models/GetPreferredPharmacyResponse.md +15 -0
  17. package/docs/models/NearestLocationsResponse.md +1 -1
  18. package/docs/models/OpenAIEmbedRequest.md +1 -1
  19. package/docs/models/PatientIntakeResponse.md +2 -0
  20. package/docs/models/SendGridSendEmailRequest.md +1 -1
  21. package/docs/models/index.md +2 -1
  22. package/docs/operations/appointments.book.md +1 -0
  23. package/docs/operations/appointments.cancel.md +1 -0
  24. package/docs/operations/appointments.listPatientAppointments.md +1 -0
  25. package/docs/operations/appointments.reschedule.md +1 -0
  26. package/docs/operations/connectors.athenaListSocialHistoryQuestions.md +1 -1
  27. package/docs/operations/connectors.carequalityRetrieveDocuments.md +7 -11
  28. package/docs/operations/connectors.grokCreateHpiSummary.md +2 -2
  29. package/docs/operations/connectors.grokCreateScreeningSummary.md +2 -2
  30. package/docs/operations/connectors.openaiEmbed.md +7 -3
  31. package/docs/operations/connectors.sendgridSend.md +7 -3
  32. package/docs/operations/list_public_and_orchestrator_agent_ids_api_ams_application_agents__tenant_id__get.md +94 -0
  33. package/docs/operations/patient.getPatientIntake.md +8 -35
  34. package/docs/operations/patient.getPreferredPharmacy.md +2 -4
  35. package/docs/operations/patient.importVitals.md +9 -0
  36. package/docs/operations/patient.submitPatientIntake.md +8 -35
  37. package/docs/operations/vitals.recordVitals.md +9 -0
  38. package/package.json +4 -4
  39. package/docs/models/FhirResource.md +0 -19
package/dist/index.cjs CHANGED
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/index.ts
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
+ AmsClient: () => AmsClient,
23
24
  AnthropicClient: () => AnthropicClient,
24
25
  AppleAuthClient: () => AppleAuthClient,
25
26
  AthenaHealthClient: () => AthenaHealthClient,
@@ -85,12 +86,17 @@ var SERVICES = [
85
86
  "mcp",
86
87
  "connectors",
87
88
  "person",
88
- "graph"
89
+ "graph",
90
+ "ams"
89
91
  ];
90
92
  function isServiceName(value) {
91
93
  return SERVICES.includes(value);
92
94
  }
93
95
  function resolveBaseUrl(environment, service) {
96
+ if (service === "ams") {
97
+ const prefix2 = environment === "prod" ? "" : `${environment}-`;
98
+ return `https://${prefix2}amsservices.health.cloud/api/ams`;
99
+ }
94
100
  const prefix = environment === "prod" ? "" : `${environment}-`;
95
101
  return `https://${prefix}api-${service}.health.cloud`;
96
102
  }
@@ -371,6 +377,20 @@ var AppointmentsClient = class extends BaseServiceClient {
371
377
  }
372
378
  };
373
379
 
380
+ // src/clients/AmsClient.ts
381
+ var AmsClient = class extends BaseServiceClient {
382
+ constructor(http) {
383
+ super(http, "ams");
384
+ }
385
+ /** GET /application/agents/{tenant_id} (public; no access token required). */
386
+ getAgentsForTenant(tenantId) {
387
+ return this.send("GET", "/application/agents/{tenant_id}", {
388
+ pathParams: { tenant_id: tenantId },
389
+ auth: false
390
+ });
391
+ }
392
+ };
393
+
374
394
  // src/clients/AuthClient.ts
375
395
  var AuthClient = class extends BaseServiceClient {
376
396
  constructor(http, setAccessToken, getTenantId) {
@@ -1944,6 +1964,22 @@ function mapValues(data, fn) {
1944
1964
  return result;
1945
1965
  }
1946
1966
 
1967
+ // src/models/openapi-generated/patient/models/IntakeVendorItemStatus.ts
1968
+ function IntakeVendorItemStatusFromJSON(json) {
1969
+ return IntakeVendorItemStatusFromJSONTyped(json, false);
1970
+ }
1971
+ function IntakeVendorItemStatusFromJSONTyped(json, ignoreDiscriminator) {
1972
+ if (json == null) {
1973
+ return json;
1974
+ }
1975
+ return {
1976
+ "index": json["index"],
1977
+ "label": json["label"] === void 0 ? void 0 : json["label"] === null ? null : json["label"],
1978
+ "reason": json["reason"] === void 0 ? void 0 : json["reason"] === null ? null : json["reason"],
1979
+ "status": json["status"]
1980
+ };
1981
+ }
1982
+
1947
1983
  // src/models/openapi-generated/patient/models/IntakeVendorSectionStatus.ts
1948
1984
  function IntakeVendorSectionStatusFromJSON(json) {
1949
1985
  return IntakeVendorSectionStatusFromJSONTyped(json, false);
@@ -1953,6 +1989,7 @@ function IntakeVendorSectionStatusFromJSONTyped(json, ignoreDiscriminator) {
1953
1989
  return json;
1954
1990
  }
1955
1991
  return {
1992
+ "item_results": json["item_results"] == null ? void 0 : json["item_results"].map(IntakeVendorItemStatusFromJSON),
1956
1993
  "mode": json["mode"] == null ? void 0 : json["mode"],
1957
1994
  "reason": json["reason"] === void 0 ? void 0 : json["reason"] === null ? null : json["reason"],
1958
1995
  "reference": json["reference"] === void 0 ? void 0 : json["reference"] === null ? null : json["reference"],
@@ -1969,6 +2006,7 @@ function IntakeVendorStatusFromJSONTyped(json, ignoreDiscriminator) {
1969
2006
  return json;
1970
2007
  }
1971
2008
  return {
2009
+ "item_results": json["item_results"] == null ? void 0 : json["item_results"].map(IntakeVendorItemStatusFromJSON),
1972
2010
  "mode": json["mode"] == null ? void 0 : json["mode"],
1973
2011
  "reason": json["reason"] === void 0 ? void 0 : json["reason"] === null ? null : json["reason"],
1974
2012
  "reference": json["reference"] === void 0 ? void 0 : json["reference"] === null ? null : json["reference"],
@@ -1988,8 +2026,10 @@ function PatientIntakeResponseFromJSONTyped(json, ignoreDiscriminator) {
1988
2026
  }
1989
2027
  return {
1990
2028
  "created_at": new Date(json["created_at"]),
2029
+ "invalid_entries": json["invalid_entries"] === void 0 ? void 0 : json["invalid_entries"] === null ? null : json["invalid_entries"],
1991
2030
  "storage_status": json["storage_status"],
1992
2031
  "submission_id": json["submission_id"],
2032
+ "unknown_fields": json["unknown_fields"] === void 0 ? void 0 : json["unknown_fields"] === null ? null : json["unknown_fields"],
1993
2033
  "vendors": mapValues(json["vendors"], IntakeVendorStatusFromJSON)
1994
2034
  };
1995
2035
  }
@@ -5942,6 +5982,7 @@ var HCSDK = class {
5942
5982
  (token) => this.setAccessToken(token),
5943
5983
  () => this.state.tenantId
5944
5984
  );
5985
+ this.ams = new AmsClient(this.http);
5945
5986
  this.patient = new PatientClient(this.http);
5946
5987
  this.person = new PersonClient(this.http, () => this.state.tenantId);
5947
5988
  this.vitals = new VitalsClient(this.http);
@@ -6058,6 +6099,7 @@ var HCSDK_SWAGGER_OPERATION_COUNTS = {
6058
6099
  };
6059
6100
  // Annotate the CommonJS export names for ESM import in node:
6060
6101
  0 && (module.exports = {
6102
+ AmsClient,
6061
6103
  AnthropicClient,
6062
6104
  AppleAuthClient,
6063
6105
  AthenaHealthClient,