@extn/segi-shared 0.1.1 → 0.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.
@@ -55,6 +55,8 @@ export interface SegiClientOptions {
55
55
  * need to provide their projectKey. Self-hosters can override via the
56
56
  * optional `endpoint` option on init().
57
57
  */
58
+ /** Base host. SDKs append the right `/api/...` path. */
59
+ export declare const SEGI_DEFAULT_API_BASE = "https://segiapi.extn.ai";
58
60
  export declare const SEGI_DEFAULT_INGEST_ENDPOINT = "https://segiapi.extn.ai/api/ingest/events";
59
61
  export declare const SEGI_DEFAULT_PM2_ENDPOINT = "https://segiapi.extn.ai/api/ingest/pm2";
60
62
  export declare const SEGI_DEFAULT_CDN_URL = "https://cdn.extn.ai/segi/segi.min.js";
package/dist/event-dto.js CHANGED
@@ -1,11 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SEGI_DEFAULT_ADMIN_URL = exports.SEGI_DEFAULT_CDN_URL = exports.SEGI_DEFAULT_PM2_ENDPOINT = exports.SEGI_DEFAULT_INGEST_ENDPOINT = void 0;
3
+ exports.SEGI_DEFAULT_ADMIN_URL = exports.SEGI_DEFAULT_CDN_URL = exports.SEGI_DEFAULT_PM2_ENDPOINT = exports.SEGI_DEFAULT_INGEST_ENDPOINT = exports.SEGI_DEFAULT_API_BASE = void 0;
4
4
  /**
5
5
  * Production segi service URLs. The SDK bakes these in so end users only
6
6
  * need to provide their projectKey. Self-hosters can override via the
7
7
  * optional `endpoint` option on init().
8
8
  */
9
+ /** Base host. SDKs append the right `/api/...` path. */
10
+ exports.SEGI_DEFAULT_API_BASE = "https://segiapi.extn.ai";
9
11
  exports.SEGI_DEFAULT_INGEST_ENDPOINT = "https://segiapi.extn.ai/api/ingest/events";
10
12
  exports.SEGI_DEFAULT_PM2_ENDPOINT = "https://segiapi.extn.ai/api/ingest/pm2";
11
13
  exports.SEGI_DEFAULT_CDN_URL = "https://cdn.extn.ai/segi/segi.min.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@extn/segi-shared",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "description": "Shared types and utilities used by the segi SDKs",
5
5
  "license": "UNLICENSED",
6
6
  "main": "./dist/index.js",