eric-sdk 0.0.2 โ†’ 0.0.3

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
@@ -14,10 +14,10 @@ Used in **Ingomu**, **EventInterface**, and early enterprise pilots.
14
14
  * ๐ŸŽฏ Restricted auto-routing with `allowedFlows`
15
15
  * ๐Ÿ”ง Direct flow execution with `eric.call()`
16
16
  * ๐Ÿ”’ Public vs Private API key security model
17
- * ๐Ÿง  Structured, domain-aware outputs (events, wellness, business)
17
+ * ๐Ÿง  Domain-aware tone and behavior (events, wellness, business)
18
18
  * ๐Ÿ›ก๏ธ Domain whitelisting + rate limiting (public keys)
19
19
  * ๐Ÿงฑ Strong TypeScript typing
20
- * ๐Ÿงฐ Production-ready SDK backed by Cloud Functions
20
+ * ๐Ÿงฐ Production-ready SDK backed by Firebase Cloud Functions
21
21
 
22
22
  ---
23
23
 
@@ -281,6 +281,9 @@ new EricSDK({
281
281
  });
282
282
  ```
283
283
 
284
+ > **Note:**
285
+ > Domain context (events, wellness, business) is derived server-side from the client identity and is not required in the SDK configuration.
286
+
284
287
  ---
285
288
 
286
289
  ## ๐Ÿงช Local Development
@@ -296,4 +299,3 @@ npm link eric-sdk
296
299
  ## ๐Ÿ“„ License
297
300
 
298
301
  MIT ยฉ 2025
299
-
package/dist/index.cjs CHANGED
@@ -60,7 +60,6 @@ var EricSDK = class {
60
60
  constructor(options) {
61
61
  this.apiKey = options.apiKey;
62
62
  this.client = options.client;
63
- this.appId = options.appId;
64
63
  this.baseUrl = options.baseUrl ?? "https://us-central1-eric-ai-prod.cloudfunctions.net/runFlow";
65
64
  }
66
65
  /* -------------------------------------------------------------
@@ -71,8 +70,7 @@ var EricSDK = class {
71
70
  flow: flowName,
72
71
  data: {
73
72
  ...data,
74
- client: this.client,
75
- appId: this.appId
73
+ client: this.client
76
74
  }
77
75
  };
78
76
  const res = await import_axios.default.post(this.baseUrl, payload, {
@@ -93,8 +91,7 @@ var EricSDK = class {
93
91
  flow: "decisionRouter",
94
92
  data: {
95
93
  ...rest,
96
- client: this.client,
97
- appId: this.appId
94
+ client: this.client
98
95
  }
99
96
  };
100
97
  if (allowedFlows) {
package/dist/index.d.cts CHANGED
@@ -1,7 +1,6 @@
1
1
  interface EricClientOptions {
2
2
  apiKey: string;
3
3
  client: string;
4
- appId: "wellness" | "events" | "business";
5
4
  baseUrl?: string;
6
5
  }
7
6
  interface EricResponse {
@@ -12,7 +11,6 @@ interface EricResponse {
12
11
  declare class EricSDK {
13
12
  private apiKey;
14
13
  private client;
15
- private appId;
16
14
  private baseUrl;
17
15
  constructor(options: EricClientOptions);
18
16
  call(flowName: string, data: any): Promise<EricResponse>;
package/dist/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  interface EricClientOptions {
2
2
  apiKey: string;
3
3
  client: string;
4
- appId: "wellness" | "events" | "business";
5
4
  baseUrl?: string;
6
5
  }
7
6
  interface EricResponse {
@@ -12,7 +11,6 @@ interface EricResponse {
12
11
  declare class EricSDK {
13
12
  private apiKey;
14
13
  private client;
15
- private appId;
16
14
  private baseUrl;
17
15
  constructor(options: EricClientOptions);
18
16
  call(flowName: string, data: any): Promise<EricResponse>;
package/dist/index.js CHANGED
@@ -4,7 +4,6 @@ var EricSDK = class {
4
4
  constructor(options) {
5
5
  this.apiKey = options.apiKey;
6
6
  this.client = options.client;
7
- this.appId = options.appId;
8
7
  this.baseUrl = options.baseUrl ?? "https://us-central1-eric-ai-prod.cloudfunctions.net/runFlow";
9
8
  }
10
9
  /* -------------------------------------------------------------
@@ -15,8 +14,7 @@ var EricSDK = class {
15
14
  flow: flowName,
16
15
  data: {
17
16
  ...data,
18
- client: this.client,
19
- appId: this.appId
17
+ client: this.client
20
18
  }
21
19
  };
22
20
  const res = await axios.post(this.baseUrl, payload, {
@@ -37,8 +35,7 @@ var EricSDK = class {
37
35
  flow: "decisionRouter",
38
36
  data: {
39
37
  ...rest,
40
- client: this.client,
41
- appId: this.appId
38
+ client: this.client
42
39
  }
43
40
  };
44
41
  if (allowedFlows) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eric-sdk",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Official SDK for interacting with the Eric AI Policy Engine",
5
5
  "author": "Rod Bridges",
6
6
  "license": "MIT",
package/src/client.ts CHANGED
@@ -3,7 +3,6 @@ import axios from "axios";
3
3
  export interface EricClientOptions {
4
4
  apiKey: string;
5
5
  client: string; // ingomu, eventinterface, etc.
6
- appId: "wellness" | "events" | "business"; // REQUIRED for policy engine
7
6
  baseUrl?: string;
8
7
  }
9
8
 
@@ -16,13 +15,11 @@ export interface EricResponse {
16
15
  export class EricSDK {
17
16
  private apiKey: string;
18
17
  private client: string;
19
- private appId: string;
20
18
  private baseUrl: string;
21
19
 
22
20
  constructor(options: EricClientOptions) {
23
21
  this.apiKey = options.apiKey;
24
22
  this.client = options.client;
25
- this.appId = options.appId; // <-- FIXED: needed for policy input
26
23
  this.baseUrl =
27
24
  options.baseUrl ??
28
25
  "https://us-central1-eric-ai-prod.cloudfunctions.net/runFlow";
@@ -37,7 +34,6 @@ export class EricSDK {
37
34
  data: {
38
35
  ...data,
39
36
  client: this.client,
40
- appId: this.appId
41
37
  }
42
38
  };
43
39
 
@@ -68,7 +64,6 @@ export class EricSDK {
68
64
  data: {
69
65
  ...rest,
70
66
  client: this.client,
71
- appId: this.appId
72
67
  }
73
68
  };
74
69