@healthcloudai/hc-sdk 3.31.0 → 3.31.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs
CHANGED
|
@@ -102,8 +102,8 @@ function resolveBaseUrl(environment, service) {
|
|
|
102
102
|
assertEnvironment(environment);
|
|
103
103
|
if (service === "ams") {
|
|
104
104
|
if (environment === "dev") return "https://dev-ams-services.health.cloud/api/ams";
|
|
105
|
-
|
|
106
|
-
return
|
|
105
|
+
if (environment === "prod") return "https://ams-services.health.cloud/api/ams";
|
|
106
|
+
return "https://uat-amsservices.health.cloud/api/ams";
|
|
107
107
|
}
|
|
108
108
|
return `https://${environment}-api-${service}.health.cloud`;
|
|
109
109
|
}
|
package/dist/index.js
CHANGED
|
@@ -24,8 +24,8 @@ function resolveBaseUrl(environment, service) {
|
|
|
24
24
|
assertEnvironment(environment);
|
|
25
25
|
if (service === "ams") {
|
|
26
26
|
if (environment === "dev") return "https://dev-ams-services.health.cloud/api/ams";
|
|
27
|
-
|
|
28
|
-
return
|
|
27
|
+
if (environment === "prod") return "https://ams-services.health.cloud/api/ams";
|
|
28
|
+
return "https://uat-amsservices.health.cloud/api/ams";
|
|
29
29
|
}
|
|
30
30
|
return `https://${environment}-api-${service}.health.cloud`;
|
|
31
31
|
}
|
package/docs/configuration.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Configuration
|
|
2
2
|
|
|
3
|
-
- `environment`: API defaults use https://{environment}-api-{service}.health.cloud. AMS DEV uses https://dev-ams-services.health.cloud/api/ams
|
|
3
|
+
- `environment`: API defaults use https://{environment}-api-{service}.health.cloud. AMS DEV uses https://dev-ams-services.health.cloud/api/ams and PROD uses https://ams-services.health.cloud/api/ams (AWS); UAT remains https://uat-amsservices.health.cloud/api/ams. No fallback to another deployment.
|
|
4
4
|
- `tenantId`: Tenant used by tenant-aware authentication operations.
|
|
5
5
|
- `accessToken`: Optional bearer token for authenticated APIs.
|
|
6
6
|
- `baseUrlOverrides`: Optional service-to-URL mapping. Complete HTTPS service base URL including any base path (HTTP allowed only for literal loopback 127.0.0.1 or [::1]); trailing slash is normalized. Credentials, query, fragment, ambiguous paths and redirects are refused. TLS verification stays enabled. Overrides are copied per SDK instance and take precedence over environment defaults; configure before construction. An AMS/MCP override does not change patient authentication or Tenant Admin login/refresh URLs. Native fetch must enforce redirect: error and normal certificate validation. Node/browser transport behavior is covered; React Native adapters need a separate runtime verification.
|
package/docs/docs-manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"docsDataContentDigest": "sha256:
|
|
2
|
+
"docsDataContentDigest": "sha256:c82602be04902d6cdda398ccaf482e890c324f908907b9979fdfa0c6e615f1d8",
|
|
3
3
|
"generatedFiles": [
|
|
4
4
|
"authentication.md",
|
|
5
5
|
"clients/AmsClient.md",
|
|
@@ -78,7 +78,7 @@ const result = await ams.getAgentsForTenant(tenantId);
|
|
|
78
78
|
|
|
79
79
|
```bash
|
|
80
80
|
curl -X GET \
|
|
81
|
-
'https://dev-
|
|
81
|
+
'https://dev-ams-services.health.cloud/api/ams/application/agents/%3CTENANT_ID%3E'
|
|
82
82
|
```
|
|
83
83
|
|
|
84
84
|
## Notes
|
package/package.json
CHANGED