@arbidocs/react 0.3.71 → 0.3.72
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.cts +14 -14
- package/dist/index.d.ts +14 -14
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -143,7 +143,7 @@ declare const arbiQueryKeys: {
|
|
|
143
143
|
/** List the logged-in user's workspaces. */
|
|
144
144
|
declare function useWorkspaces(options?: {
|
|
145
145
|
enabled?: boolean;
|
|
146
|
-
}): _tanstack_react_query.UseQueryResult<{
|
|
146
|
+
}): _tanstack_react_query.UseQueryResult<NoInfer<{
|
|
147
147
|
external_id: string;
|
|
148
148
|
name: string;
|
|
149
149
|
description: string | null;
|
|
@@ -181,11 +181,11 @@ declare function useWorkspaces(options?: {
|
|
|
181
181
|
project_name?: string | null | undefined;
|
|
182
182
|
project_subscription?: string | null | undefined;
|
|
183
183
|
project_owner_ext_id?: string | null | undefined;
|
|
184
|
-
}[]
|
|
184
|
+
}[]>, Error>;
|
|
185
185
|
/** List documents in a workspace. */
|
|
186
186
|
declare function useDocuments(workspaceId: string | undefined, options?: {
|
|
187
187
|
enabled?: boolean;
|
|
188
|
-
}): _tanstack_react_query.UseQueryResult<{
|
|
188
|
+
}): _tanstack_react_query.UseQueryResult<NoInfer<{
|
|
189
189
|
external_id: string;
|
|
190
190
|
workspace_ext_id: string;
|
|
191
191
|
file_name?: string | null | undefined;
|
|
@@ -235,11 +235,11 @@ declare function useDocuments(workspaceId: string | undefined, options?: {
|
|
|
235
235
|
doc_date?: string | null | undefined;
|
|
236
236
|
title?: string | null | undefined;
|
|
237
237
|
} | null | undefined;
|
|
238
|
-
}[]
|
|
238
|
+
}[]>, Error>;
|
|
239
239
|
/** List conversations in a workspace. */
|
|
240
240
|
declare function useConversations(workspaceId: string | undefined, options?: {
|
|
241
241
|
enabled?: boolean;
|
|
242
|
-
}): _tanstack_react_query.UseQueryResult<{
|
|
242
|
+
}): _tanstack_react_query.UseQueryResult<NoInfer<{
|
|
243
243
|
external_id: string;
|
|
244
244
|
title: string | null;
|
|
245
245
|
created_by_ext_id: string;
|
|
@@ -249,11 +249,11 @@ declare function useConversations(workspaceId: string | undefined, options?: {
|
|
|
249
249
|
is_shared: boolean;
|
|
250
250
|
message_count: number;
|
|
251
251
|
last_message_status?: string | null | undefined;
|
|
252
|
-
}[]
|
|
252
|
+
}[]>, Error>;
|
|
253
253
|
/** List tags in a workspace. */
|
|
254
254
|
declare function useTags(workspaceId: string | undefined, options?: {
|
|
255
255
|
enabled?: boolean;
|
|
256
|
-
}): _tanstack_react_query.UseQueryResult<{
|
|
256
|
+
}): _tanstack_react_query.UseQueryResult<NoInfer<{
|
|
257
257
|
external_id: string;
|
|
258
258
|
workspace_ext_id: string;
|
|
259
259
|
name: string;
|
|
@@ -269,7 +269,7 @@ declare function useTags(workspaceId: string | undefined, options?: {
|
|
|
269
269
|
updated_by_ext_id?: string | null | undefined;
|
|
270
270
|
created_at: string;
|
|
271
271
|
updated_at: string;
|
|
272
|
-
}[]
|
|
272
|
+
}[]>, Error>;
|
|
273
273
|
/** Send a streaming query to the RAG assistant. Returns a mutation. */
|
|
274
274
|
declare function useAssistantQuery(): _tanstack_react_query.UseMutationResult<SSEStreamResult, Error, {
|
|
275
275
|
question: string;
|
|
@@ -285,7 +285,7 @@ declare function useAssistantQuery(): _tanstack_react_query.UseMutationResult<SS
|
|
|
285
285
|
/** List agents owned by the current user. */
|
|
286
286
|
declare function useAgents(options?: {
|
|
287
287
|
enabled?: boolean;
|
|
288
|
-
}): _tanstack_react_query.UseQueryResult<{
|
|
288
|
+
}): _tanstack_react_query.UseQueryResult<NoInfer<{
|
|
289
289
|
external_id: string;
|
|
290
290
|
parent_ext_id?: string | null;
|
|
291
291
|
email: string;
|
|
@@ -294,7 +294,7 @@ declare function useAgents(options?: {
|
|
|
294
294
|
picture?: string | null;
|
|
295
295
|
encryption_public_key: string;
|
|
296
296
|
is_sso: boolean;
|
|
297
|
-
}[]
|
|
297
|
+
}[]>, Error>;
|
|
298
298
|
/** Delete agents. Returns a mutation. */
|
|
299
299
|
declare function useDeleteAgents(): _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
300
300
|
agentExtIds: string[];
|
|
@@ -302,7 +302,7 @@ declare function useDeleteAgents(): _tanstack_react_query.UseMutationResult<unkn
|
|
|
302
302
|
/** List active sessions. */
|
|
303
303
|
declare function useSessions(options?: {
|
|
304
304
|
enabled?: boolean;
|
|
305
|
-
}): _tanstack_react_query.UseQueryResult<{
|
|
305
|
+
}): _tanstack_react_query.UseQueryResult<NoInfer<{
|
|
306
306
|
session_id: string;
|
|
307
307
|
external_id?: string | null;
|
|
308
308
|
name?: string | null;
|
|
@@ -311,12 +311,12 @@ declare function useSessions(options?: {
|
|
|
311
311
|
workspaces: string[];
|
|
312
312
|
status: string;
|
|
313
313
|
ttl: number;
|
|
314
|
-
}[]
|
|
314
|
+
}[]>, Error>;
|
|
315
315
|
/** Authorize a delegated session (generates claim code). Returns a mutation. */
|
|
316
316
|
/** Check backend health. */
|
|
317
317
|
declare function useHealth(options?: {
|
|
318
318
|
enabled?: boolean;
|
|
319
|
-
}): _tanstack_react_query.UseQueryResult<{
|
|
319
|
+
}): _tanstack_react_query.UseQueryResult<NoInfer<{
|
|
320
320
|
status: string;
|
|
321
321
|
backend_git_hash?: string | null | undefined;
|
|
322
322
|
frontend_docker_version?: string | null | undefined;
|
|
@@ -337,6 +337,6 @@ declare function useHealth(options?: {
|
|
|
337
337
|
}[];
|
|
338
338
|
} | null | undefined;
|
|
339
339
|
available_models: string[];
|
|
340
|
-
}
|
|
340
|
+
}>, Error>;
|
|
341
341
|
|
|
342
342
|
export { ArbiChat, type ArbiChatLabels, type ArbiChatProps, type ArbiChatTheme, ArbiProvider, type ArbiProviderProps, arbiQueryKeys, useAgents, useArbi, useAssistantQuery, useConversations, useDeleteAgents, useDocuments, useHealth, useSessions, useTags, useWorkspaces };
|
package/dist/index.d.ts
CHANGED
|
@@ -143,7 +143,7 @@ declare const arbiQueryKeys: {
|
|
|
143
143
|
/** List the logged-in user's workspaces. */
|
|
144
144
|
declare function useWorkspaces(options?: {
|
|
145
145
|
enabled?: boolean;
|
|
146
|
-
}): _tanstack_react_query.UseQueryResult<{
|
|
146
|
+
}): _tanstack_react_query.UseQueryResult<NoInfer<{
|
|
147
147
|
external_id: string;
|
|
148
148
|
name: string;
|
|
149
149
|
description: string | null;
|
|
@@ -181,11 +181,11 @@ declare function useWorkspaces(options?: {
|
|
|
181
181
|
project_name?: string | null | undefined;
|
|
182
182
|
project_subscription?: string | null | undefined;
|
|
183
183
|
project_owner_ext_id?: string | null | undefined;
|
|
184
|
-
}[]
|
|
184
|
+
}[]>, Error>;
|
|
185
185
|
/** List documents in a workspace. */
|
|
186
186
|
declare function useDocuments(workspaceId: string | undefined, options?: {
|
|
187
187
|
enabled?: boolean;
|
|
188
|
-
}): _tanstack_react_query.UseQueryResult<{
|
|
188
|
+
}): _tanstack_react_query.UseQueryResult<NoInfer<{
|
|
189
189
|
external_id: string;
|
|
190
190
|
workspace_ext_id: string;
|
|
191
191
|
file_name?: string | null | undefined;
|
|
@@ -235,11 +235,11 @@ declare function useDocuments(workspaceId: string | undefined, options?: {
|
|
|
235
235
|
doc_date?: string | null | undefined;
|
|
236
236
|
title?: string | null | undefined;
|
|
237
237
|
} | null | undefined;
|
|
238
|
-
}[]
|
|
238
|
+
}[]>, Error>;
|
|
239
239
|
/** List conversations in a workspace. */
|
|
240
240
|
declare function useConversations(workspaceId: string | undefined, options?: {
|
|
241
241
|
enabled?: boolean;
|
|
242
|
-
}): _tanstack_react_query.UseQueryResult<{
|
|
242
|
+
}): _tanstack_react_query.UseQueryResult<NoInfer<{
|
|
243
243
|
external_id: string;
|
|
244
244
|
title: string | null;
|
|
245
245
|
created_by_ext_id: string;
|
|
@@ -249,11 +249,11 @@ declare function useConversations(workspaceId: string | undefined, options?: {
|
|
|
249
249
|
is_shared: boolean;
|
|
250
250
|
message_count: number;
|
|
251
251
|
last_message_status?: string | null | undefined;
|
|
252
|
-
}[]
|
|
252
|
+
}[]>, Error>;
|
|
253
253
|
/** List tags in a workspace. */
|
|
254
254
|
declare function useTags(workspaceId: string | undefined, options?: {
|
|
255
255
|
enabled?: boolean;
|
|
256
|
-
}): _tanstack_react_query.UseQueryResult<{
|
|
256
|
+
}): _tanstack_react_query.UseQueryResult<NoInfer<{
|
|
257
257
|
external_id: string;
|
|
258
258
|
workspace_ext_id: string;
|
|
259
259
|
name: string;
|
|
@@ -269,7 +269,7 @@ declare function useTags(workspaceId: string | undefined, options?: {
|
|
|
269
269
|
updated_by_ext_id?: string | null | undefined;
|
|
270
270
|
created_at: string;
|
|
271
271
|
updated_at: string;
|
|
272
|
-
}[]
|
|
272
|
+
}[]>, Error>;
|
|
273
273
|
/** Send a streaming query to the RAG assistant. Returns a mutation. */
|
|
274
274
|
declare function useAssistantQuery(): _tanstack_react_query.UseMutationResult<SSEStreamResult, Error, {
|
|
275
275
|
question: string;
|
|
@@ -285,7 +285,7 @@ declare function useAssistantQuery(): _tanstack_react_query.UseMutationResult<SS
|
|
|
285
285
|
/** List agents owned by the current user. */
|
|
286
286
|
declare function useAgents(options?: {
|
|
287
287
|
enabled?: boolean;
|
|
288
|
-
}): _tanstack_react_query.UseQueryResult<{
|
|
288
|
+
}): _tanstack_react_query.UseQueryResult<NoInfer<{
|
|
289
289
|
external_id: string;
|
|
290
290
|
parent_ext_id?: string | null;
|
|
291
291
|
email: string;
|
|
@@ -294,7 +294,7 @@ declare function useAgents(options?: {
|
|
|
294
294
|
picture?: string | null;
|
|
295
295
|
encryption_public_key: string;
|
|
296
296
|
is_sso: boolean;
|
|
297
|
-
}[]
|
|
297
|
+
}[]>, Error>;
|
|
298
298
|
/** Delete agents. Returns a mutation. */
|
|
299
299
|
declare function useDeleteAgents(): _tanstack_react_query.UseMutationResult<unknown, Error, {
|
|
300
300
|
agentExtIds: string[];
|
|
@@ -302,7 +302,7 @@ declare function useDeleteAgents(): _tanstack_react_query.UseMutationResult<unkn
|
|
|
302
302
|
/** List active sessions. */
|
|
303
303
|
declare function useSessions(options?: {
|
|
304
304
|
enabled?: boolean;
|
|
305
|
-
}): _tanstack_react_query.UseQueryResult<{
|
|
305
|
+
}): _tanstack_react_query.UseQueryResult<NoInfer<{
|
|
306
306
|
session_id: string;
|
|
307
307
|
external_id?: string | null;
|
|
308
308
|
name?: string | null;
|
|
@@ -311,12 +311,12 @@ declare function useSessions(options?: {
|
|
|
311
311
|
workspaces: string[];
|
|
312
312
|
status: string;
|
|
313
313
|
ttl: number;
|
|
314
|
-
}[]
|
|
314
|
+
}[]>, Error>;
|
|
315
315
|
/** Authorize a delegated session (generates claim code). Returns a mutation. */
|
|
316
316
|
/** Check backend health. */
|
|
317
317
|
declare function useHealth(options?: {
|
|
318
318
|
enabled?: boolean;
|
|
319
|
-
}): _tanstack_react_query.UseQueryResult<{
|
|
319
|
+
}): _tanstack_react_query.UseQueryResult<NoInfer<{
|
|
320
320
|
status: string;
|
|
321
321
|
backend_git_hash?: string | null | undefined;
|
|
322
322
|
frontend_docker_version?: string | null | undefined;
|
|
@@ -337,6 +337,6 @@ declare function useHealth(options?: {
|
|
|
337
337
|
}[];
|
|
338
338
|
} | null | undefined;
|
|
339
339
|
available_models: string[];
|
|
340
|
-
}
|
|
340
|
+
}>, Error>;
|
|
341
341
|
|
|
342
342
|
export { ArbiChat, type ArbiChatLabels, type ArbiChatProps, type ArbiChatTheme, ArbiProvider, type ArbiProviderProps, arbiQueryKeys, useAgents, useArbi, useAssistantQuery, useConversations, useDeleteAgents, useDocuments, useHealth, useSessions, useTags, useWorkspaces };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbidocs/react",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.72",
|
|
4
4
|
"description": "React hooks and provider for the ARBI SDK",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"typecheck": "tsc --noEmit"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@arbidocs/sdk": "0.3.
|
|
26
|
-
"@arbidocs/client": "0.3.
|
|
25
|
+
"@arbidocs/sdk": "0.3.72",
|
|
26
|
+
"@arbidocs/client": "0.3.72",
|
|
27
27
|
"@tanstack/react-query": ">=5"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|