@healthcloudai/hc-ams 3.6.5 → 3.6.6

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/README.md CHANGED
@@ -228,7 +228,7 @@ notifications, and activity.
228
228
 
229
229
  | Option | Description |
230
230
  | --- | --- |
231
- | `environment` | `"dev"` \| `"uat"` \| `"prod"`. DEV uses AWS `https://dev-ams-services.health.cloud`; UAT retains `https://uat-amsservices.health.cloud`, PROD retains `https://amsservices.health.cloud`. |
231
+ | `environment` | `"dev"` \| `"uat"` \| `"prod"`. DEV uses AWS `https://dev-ams-services.health.cloud` and PROD uses AWS `https://ams-services.health.cloud`; UAT retains `https://uat-amsservices.health.cloud`. |
232
232
  | `tenantId` | Optional default tenant ID, used by `connectAgentChat` when no `tenantId` is passed per-call. |
233
233
  | `accessToken` | Optional Tenant Admin bearer token for authenticated REST methods. |
234
234
  | `baseUrlOverride` | Complete AMS API base including `/api/ams` (or a custom API mount). Used by every public/admin REST client. Its origin also selects the default WebSocket origin. |
package/dist/index.cjs CHANGED
@@ -51,8 +51,8 @@ var DEFAULT_TIMEOUT_MS = 3e4;
51
51
  function resolveAmsOrigin(environment) {
52
52
  assertEnvironment(environment);
53
53
  if (environment === "dev") return "https://dev-ams-services.health.cloud";
54
- const prefix = environment === "prod" ? "" : `${environment}-`;
55
- return `https://${prefix}amsservices.health.cloud`;
54
+ if (environment === "prod") return "https://ams-services.health.cloud";
55
+ return "https://uat-amsservices.health.cloud";
56
56
  }
57
57
  function resolveBaseUrl(environment) {
58
58
  return `${resolveAmsOrigin(environment)}/api/ams`;
package/dist/index.d.cts CHANGED
@@ -24,8 +24,9 @@ interface SDKRuntimeState {
24
24
  }
25
25
  declare const DEFAULT_TIMEOUT_MS = 30000;
26
26
  /**
27
- * DEV uses the AWS AMS deployment. UAT/PROD retain their existing configuration;
28
- * all three AMS endpoint families use the same environment origin.
27
+ * DEV and PROD use the AWS AMS deployments. UAT keeps its existing hostname
28
+ * (no AWS UAT AMS host exists yet). All three AMS endpoint families (REST,
29
+ * auth, WSS) use the same environment origin.
29
30
  */
30
31
  declare function resolveAmsOrigin(environment: Environment): string;
31
32
  declare function resolveBaseUrl(environment: Environment): string;
package/dist/index.d.ts CHANGED
@@ -24,8 +24,9 @@ interface SDKRuntimeState {
24
24
  }
25
25
  declare const DEFAULT_TIMEOUT_MS = 30000;
26
26
  /**
27
- * DEV uses the AWS AMS deployment. UAT/PROD retain their existing configuration;
28
- * all three AMS endpoint families use the same environment origin.
27
+ * DEV and PROD use the AWS AMS deployments. UAT keeps its existing hostname
28
+ * (no AWS UAT AMS host exists yet). All three AMS endpoint families (REST,
29
+ * auth, WSS) use the same environment origin.
29
30
  */
30
31
  declare function resolveAmsOrigin(environment: Environment): string;
31
32
  declare function resolveBaseUrl(environment: Environment): string;
package/dist/index.js CHANGED
@@ -4,8 +4,8 @@ var DEFAULT_TIMEOUT_MS = 3e4;
4
4
  function resolveAmsOrigin(environment) {
5
5
  assertEnvironment(environment);
6
6
  if (environment === "dev") return "https://dev-ams-services.health.cloud";
7
- const prefix = environment === "prod" ? "" : `${environment}-`;
8
- return `https://${prefix}amsservices.health.cloud`;
7
+ if (environment === "prod") return "https://ams-services.health.cloud";
8
+ return "https://uat-amsservices.health.cloud";
9
9
  }
10
10
  function resolveBaseUrl(environment) {
11
11
  return `${resolveAmsOrigin(environment)}/api/ams`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@healthcloudai/hc-ams",
3
- "version": "3.6.5",
3
+ "version": "3.6.6",
4
4
  "description": "HealthCloud AMS SDK \u2014 application-agent discovery for AMS Services.",
5
5
  "author": "Healthcheck Systems Inc",
6
6
  "license": "MIT",