cencori 1.7.0 → 1.7.1
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/dist/index.d.mts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -103,6 +103,9 @@ interface Session {
|
|
|
103
103
|
created_at: string;
|
|
104
104
|
updated_at: string;
|
|
105
105
|
agent_id: string | null;
|
|
106
|
+
tenant_id: string | null;
|
|
107
|
+
external_user_id: string | null;
|
|
108
|
+
installation_id: string | null;
|
|
106
109
|
metadata: Record<string, unknown>;
|
|
107
110
|
total_cost: number;
|
|
108
111
|
}
|
|
@@ -117,6 +120,9 @@ interface SessionEvent {
|
|
|
117
120
|
}
|
|
118
121
|
interface CreateSessionParams {
|
|
119
122
|
agent_id?: string;
|
|
123
|
+
tenant_id?: string;
|
|
124
|
+
external_user_id?: string;
|
|
125
|
+
installation_id?: string;
|
|
120
126
|
metadata?: Record<string, unknown>;
|
|
121
127
|
}
|
|
122
128
|
interface TurnParams {
|
|
@@ -156,6 +162,7 @@ interface SessionListParams {
|
|
|
156
162
|
limit?: number;
|
|
157
163
|
status?: 'active' | 'paused' | 'completed' | 'failed';
|
|
158
164
|
agent_id?: string;
|
|
165
|
+
tenant_id?: string;
|
|
159
166
|
}
|
|
160
167
|
declare class SessionsNamespace {
|
|
161
168
|
private config;
|
package/dist/index.d.ts
CHANGED
|
@@ -103,6 +103,9 @@ interface Session {
|
|
|
103
103
|
created_at: string;
|
|
104
104
|
updated_at: string;
|
|
105
105
|
agent_id: string | null;
|
|
106
|
+
tenant_id: string | null;
|
|
107
|
+
external_user_id: string | null;
|
|
108
|
+
installation_id: string | null;
|
|
106
109
|
metadata: Record<string, unknown>;
|
|
107
110
|
total_cost: number;
|
|
108
111
|
}
|
|
@@ -117,6 +120,9 @@ interface SessionEvent {
|
|
|
117
120
|
}
|
|
118
121
|
interface CreateSessionParams {
|
|
119
122
|
agent_id?: string;
|
|
123
|
+
tenant_id?: string;
|
|
124
|
+
external_user_id?: string;
|
|
125
|
+
installation_id?: string;
|
|
120
126
|
metadata?: Record<string, unknown>;
|
|
121
127
|
}
|
|
122
128
|
interface TurnParams {
|
|
@@ -156,6 +162,7 @@ interface SessionListParams {
|
|
|
156
162
|
limit?: number;
|
|
157
163
|
status?: 'active' | 'paused' | 'completed' | 'failed';
|
|
158
164
|
agent_id?: string;
|
|
165
|
+
tenant_id?: string;
|
|
159
166
|
}
|
|
160
167
|
declare class SessionsNamespace {
|
|
161
168
|
private config;
|
package/dist/index.js
CHANGED
|
@@ -989,6 +989,7 @@ var SessionsNamespace = class {
|
|
|
989
989
|
if (params?.limit) searchParams.set("limit", String(params.limit));
|
|
990
990
|
if (params?.status) searchParams.set("status", params.status);
|
|
991
991
|
if (params?.agent_id) searchParams.set("agent_id", params.agent_id);
|
|
992
|
+
if (params?.tenant_id) searchParams.set("tenant_id", params.tenant_id);
|
|
992
993
|
const qs2 = searchParams.toString();
|
|
993
994
|
return this.request("GET", `/v1/sessions${qs2 ? `?${qs2}` : ""}`);
|
|
994
995
|
}
|