@firstflow/core 0.0.5 → 0.0.7

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.
@@ -15,5 +15,14 @@ declare module "@anthropic-ai/sdk/resources/messages/messages" {
15
15
 
16
16
  /** Drop-in `Anthropic` client with Firstflow observability built in. */
17
17
  declare const Anthropic: typeof RealAnthropic;
18
+ /**
19
+ * Instance type of the wrapped client, so consumers can annotate naturally:
20
+ *
21
+ * private readonly client: Anthropic = new Anthropic();
22
+ *
23
+ * `Anthropic` lives in both the value and type namespaces (the `const` above is
24
+ * the value; this alias is the type), mirroring how the real SDK's class works.
25
+ */
26
+ type Anthropic = RealAnthropic;
18
27
 
19
28
  export { Anthropic };
@@ -15,5 +15,14 @@ declare module "@anthropic-ai/sdk/resources/messages/messages" {
15
15
 
16
16
  /** Drop-in `Anthropic` client with Firstflow observability built in. */
17
17
  declare const Anthropic: typeof RealAnthropic;
18
+ /**
19
+ * Instance type of the wrapped client, so consumers can annotate naturally:
20
+ *
21
+ * private readonly client: Anthropic = new Anthropic();
22
+ *
23
+ * `Anthropic` lives in both the value and type namespaces (the `const` above is
24
+ * the value; this alias is the type), mirroring how the real SDK's class works.
25
+ */
26
+ type Anthropic = RealAnthropic;
18
27
 
19
28
  export { Anthropic };
package/dist/openai.d.mts CHANGED
@@ -15,5 +15,14 @@ declare module "openai/resources/chat/completions/completions" {
15
15
 
16
16
  /** Drop-in `OpenAI` client with Firstflow observability built in. */
17
17
  declare const OpenAI: typeof RealOpenAI;
18
+ /**
19
+ * Instance type of the wrapped client, so consumers can annotate naturally:
20
+ *
21
+ * private readonly client: OpenAI = new OpenAI();
22
+ *
23
+ * `OpenAI` lives in both the value and type namespaces (the `const` above is the
24
+ * value; this alias is the type), mirroring how the real SDK's class works.
25
+ */
26
+ type OpenAI = RealOpenAI;
18
27
 
19
28
  export { OpenAI };
package/dist/openai.d.ts CHANGED
@@ -15,5 +15,14 @@ declare module "openai/resources/chat/completions/completions" {
15
15
 
16
16
  /** Drop-in `OpenAI` client with Firstflow observability built in. */
17
17
  declare const OpenAI: typeof RealOpenAI;
18
+ /**
19
+ * Instance type of the wrapped client, so consumers can annotate naturally:
20
+ *
21
+ * private readonly client: OpenAI = new OpenAI();
22
+ *
23
+ * `OpenAI` lives in both the value and type namespaces (the `const` above is the
24
+ * value; this alias is the type), mirroring how the real SDK's class works.
25
+ */
26
+ type OpenAI = RealOpenAI;
18
27
 
19
28
  export { OpenAI };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firstflow/core",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "Firstflow Node SDK — cloud forwarding, LLM wrap, self-owned analytics",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -22,6 +22,16 @@
22
22
  "require": "./dist/anthropic.js"
23
23
  }
24
24
  },
25
+ "typesVersions": {
26
+ "*": {
27
+ "openai": [
28
+ "./dist/openai.d.ts"
29
+ ],
30
+ "anthropic": [
31
+ "./dist/anthropic.d.ts"
32
+ ]
33
+ }
34
+ },
25
35
  "files": [
26
36
  "dist"
27
37
  ],