cencori 1.7.1 → 1.7.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.
@@ -1,4 +1,4 @@
1
- import { C as CencoriConfig } from '../types-xSwLRBZw.mjs';
1
+ import { C as CencoriConfig } from '../types-CZSIg4JQ.mjs';
2
2
 
3
3
  /**
4
4
  * Cencori Memory SDK
@@ -1,4 +1,4 @@
1
- import { C as CencoriConfig } from '../types-xSwLRBZw.js';
1
+ import { C as CencoriConfig } from '../types-CZSIg4JQ.js';
2
2
 
3
3
  /**
4
4
  * Cencori Memory SDK
@@ -1,4 +1,4 @@
1
- import { V as VectorSearchOptions } from '../types-xSwLRBZw.mjs';
1
+ import { V as VectorSearchOptions } from '../types-CZSIg4JQ.mjs';
2
2
 
3
3
  /**
4
4
  * Storage Namespace - Vector Database, Knowledge Base, RAG
@@ -1,4 +1,4 @@
1
- import { V as VectorSearchOptions } from '../types-xSwLRBZw.js';
1
+ import { V as VectorSearchOptions } from '../types-CZSIg4JQ.js';
2
2
 
3
3
  /**
4
4
  * Storage Namespace - Vector Database, Knowledge Base, RAG
@@ -1,4 +1,4 @@
1
- import { C as CencoriConfig } from '../types-xSwLRBZw.mjs';
1
+ import { C as CencoriConfig } from '../types-CZSIg4JQ.mjs';
2
2
 
3
3
  /**
4
4
  * Cencori Telemetry Client
@@ -1,4 +1,4 @@
1
- import { C as CencoriConfig } from '../types-xSwLRBZw.js';
1
+ import { C as CencoriConfig } from '../types-CZSIg4JQ.js';
2
2
 
3
3
  /**
4
4
  * Cencori Telemetry Client
@@ -127,6 +127,8 @@ interface GenerateObjectRequest {
127
127
  schemaDescription?: string;
128
128
  temperature?: number;
129
129
  maxTokens?: number;
130
+ /** Abort the HTTP request (not a server-side hosted run). */
131
+ signal?: AbortSignal;
130
132
  }
131
133
  /**
132
134
  * Structured output response
@@ -134,10 +136,13 @@ interface GenerateObjectRequest {
134
136
  interface GenerateObjectResponse<T = unknown> {
135
137
  object: T;
136
138
  usage: {
137
- promptTokens: number;
138
- completionTokens: number;
139
- totalTokens: number;
139
+ promptTokens: number | null;
140
+ completionTokens: number | null;
141
+ totalTokens: number | null;
140
142
  };
143
+ /** USD charged by Cencori, or null when the gateway did not report it. */
144
+ costUsd: number | null;
145
+ requestId: string | null;
141
146
  }
142
147
  interface CompletionRequest {
143
148
  model: string;
@@ -127,6 +127,8 @@ interface GenerateObjectRequest {
127
127
  schemaDescription?: string;
128
128
  temperature?: number;
129
129
  maxTokens?: number;
130
+ /** Abort the HTTP request (not a server-side hosted run). */
131
+ signal?: AbortSignal;
130
132
  }
131
133
  /**
132
134
  * Structured output response
@@ -134,10 +136,13 @@ interface GenerateObjectRequest {
134
136
  interface GenerateObjectResponse<T = unknown> {
135
137
  object: T;
136
138
  usage: {
137
- promptTokens: number;
138
- completionTokens: number;
139
- totalTokens: number;
139
+ promptTokens: number | null;
140
+ completionTokens: number | null;
141
+ totalTokens: number | null;
140
142
  };
143
+ /** USD charged by Cencori, or null when the gateway did not report it. */
144
+ costUsd: number | null;
145
+ requestId: string | null;
141
146
  }
142
147
  interface CompletionRequest {
143
148
  model: string;
@@ -1,4 +1,4 @@
1
- import { C as CencoriConfig } from '../types-xSwLRBZw.mjs';
1
+ import { C as CencoriConfig } from '../types-CZSIg4JQ.mjs';
2
2
 
3
3
  /**
4
4
  * Vision API — analyze, describe, OCR, and classify images.
@@ -1,4 +1,4 @@
1
- import { C as CencoriConfig } from '../types-xSwLRBZw.js';
1
+ import { C as CencoriConfig } from '../types-CZSIg4JQ.js';
2
2
 
3
3
  /**
4
4
  * Vision API — analyze, describe, OCR, and classify images.
@@ -1,4 +1,4 @@
1
- import { C as CencoriConfig } from '../types-xSwLRBZw.mjs';
1
+ import { C as CencoriConfig } from '../types-CZSIg4JQ.mjs';
2
2
 
3
3
  /**
4
4
  * Voice API — text-to-speech and speech-to-text across providers.
@@ -1,4 +1,4 @@
1
- import { C as CencoriConfig } from '../types-xSwLRBZw.js';
1
+ import { C as CencoriConfig } from '../types-CZSIg4JQ.js';
2
2
 
3
3
  /**
4
4
  * Voice API — text-to-speech and speech-to-text across providers.
@@ -1,4 +1,4 @@
1
- import { C as CencoriConfig } from '../types-xSwLRBZw.mjs';
1
+ import { C as CencoriConfig } from '../types-CZSIg4JQ.mjs';
2
2
 
3
3
  /** Cencori Web — first-party fetch, extraction, crawl, and search primitives. */
4
4
 
@@ -1,4 +1,4 @@
1
- import { C as CencoriConfig } from '../types-xSwLRBZw.js';
1
+ import { C as CencoriConfig } from '../types-CZSIg4JQ.js';
2
2
 
3
3
  /** Cencori Web — first-party fetch, extraction, crawl, and search primitives. */
4
4
 
@@ -1,4 +1,4 @@
1
- import { W as WorkflowTriggerOptions } from '../types-xSwLRBZw.mjs';
1
+ import { W as WorkflowTriggerOptions } from '../types-CZSIg4JQ.mjs';
2
2
 
3
3
  /**
4
4
  * Workflow Namespace - AI Pipelines & Orchestration
@@ -1,4 +1,4 @@
1
- import { W as WorkflowTriggerOptions } from '../types-xSwLRBZw.js';
1
+ import { W as WorkflowTriggerOptions } from '../types-CZSIg4JQ.js';
2
2
 
3
3
  /**
4
4
  * Workflow Namespace - AI Pipelines & Orchestration
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "cencori",
4
- "version": "1.7.1",
4
+ "version": "1.7.3",
5
5
  "description": "Cencori - The unified infrastructure layer for AI applications. One SDK for AI Gateway, Compute, Workflow, and Storage.",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.mjs",