@arbidocs/client 0.3.79 → 0.3.81
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 +109 -9
- package/dist/index.d.ts +109 -9
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1353,6 +1353,37 @@ interface paths {
|
|
|
1353
1353
|
patch?: never;
|
|
1354
1354
|
trace?: never;
|
|
1355
1355
|
};
|
|
1356
|
+
'/v1/conversation/import': {
|
|
1357
|
+
parameters: {
|
|
1358
|
+
query?: never;
|
|
1359
|
+
header?: never;
|
|
1360
|
+
path?: never;
|
|
1361
|
+
cookie?: never;
|
|
1362
|
+
};
|
|
1363
|
+
get?: never;
|
|
1364
|
+
put?: never;
|
|
1365
|
+
/**
|
|
1366
|
+
* Import Conversations
|
|
1367
|
+
* @description Import a conversation export into the **active** workspace.
|
|
1368
|
+
*
|
|
1369
|
+
* Supports ChatGPT data exports (`conversations.json`), OpenClaw session logs, and
|
|
1370
|
+
* Claude Code transcripts (`.jsonl`) — `source=auto` sniffs which one. Flow: the
|
|
1371
|
+
* client opens a workspace (which sets the active workspace and unlocks the encryption
|
|
1372
|
+
* cipher on the session), then POSTs the export file.
|
|
1373
|
+
*
|
|
1374
|
+
* All three formats store messages as a parent/child tree, the same structure ARBI
|
|
1375
|
+
* uses via `parent_message_id`, so the full tree — including edit/regeneration
|
|
1376
|
+
* branches and sub-agent sidechains — is preserved. Only user/assistant text turns are
|
|
1377
|
+
* imported; system prompts, model reasoning, and tool calls/results are dropped.
|
|
1378
|
+
* Titles and message content are encrypted with the workspace cipher before writing.
|
|
1379
|
+
*/
|
|
1380
|
+
post: operations['import_conversations'];
|
|
1381
|
+
delete?: never;
|
|
1382
|
+
options?: never;
|
|
1383
|
+
head?: never;
|
|
1384
|
+
patch?: never;
|
|
1385
|
+
trace?: never;
|
|
1386
|
+
};
|
|
1356
1387
|
'/v1/conversation/message/{message_ext_id}': {
|
|
1357
1388
|
parameters: {
|
|
1358
1389
|
query?: never;
|
|
@@ -2346,7 +2377,6 @@ interface components {
|
|
|
2346
2377
|
* {"tool": "read_url", "message": "Fetching page"}
|
|
2347
2378
|
* ]}
|
|
2348
2379
|
* {"type": "arbi.agent_step", "index": 6, "step": "answering"}
|
|
2349
|
-
* {"type": "arbi.agent_step", "index": 7, "step": "reviewing"}
|
|
2350
2380
|
*/
|
|
2351
2381
|
AgentStepEvent: {
|
|
2352
2382
|
/**
|
|
@@ -2369,7 +2399,7 @@ interface components {
|
|
|
2369
2399
|
* Step
|
|
2370
2400
|
* @description Lifecycle step. Absent (None) for tool-call steps, which carry `detail` instead.
|
|
2371
2401
|
*/
|
|
2372
|
-
step?: ('goal' | 'skill' | 'planning' | 'tool_progress' | 'goal_progress' | 'answering' | '
|
|
2402
|
+
step?: ('goal' | 'skill' | 'planning' | 'tool_progress' | 'goal_progress' | 'answering' | 'evaluation') | null;
|
|
2373
2403
|
/**
|
|
2374
2404
|
* Label
|
|
2375
2405
|
* @description Display label for the step. Backend-driven, no frontend mapping needed.
|
|
@@ -2521,12 +2551,6 @@ interface components {
|
|
|
2521
2551
|
* @default 6
|
|
2522
2552
|
*/
|
|
2523
2553
|
GOAL_MAX_OUTER_LOOPS: number;
|
|
2524
|
-
/**
|
|
2525
|
-
* Review Enabled
|
|
2526
|
-
* @description Enable ReviewLLM to review agent draft answers against source material before sending to the user. Uses the reasoning model for higher quality.
|
|
2527
|
-
* @default false
|
|
2528
|
-
*/
|
|
2529
|
-
REVIEW_ENABLED: boolean;
|
|
2530
2554
|
/**
|
|
2531
2555
|
* Persona
|
|
2532
2556
|
* @description Agent persona prepended to the system prompt. Customise to change the agent's identity and tone.
|
|
@@ -2681,7 +2705,6 @@ interface components {
|
|
|
2681
2705
|
* "MEMORY_CREATION": false,
|
|
2682
2706
|
* "GOALS_ENABLED": false,
|
|
2683
2707
|
* "GOAL_MAX_OUTER_LOOPS": 6,
|
|
2684
|
-
* "REVIEW_ENABLED": false,
|
|
2685
2708
|
* "PERSONA": "You are ARBI, an AI assistant created by ARBI CITY. Be proactive, helpful and professional.",
|
|
2686
2709
|
* "AGENT_MODEL_NAME": "auto",
|
|
2687
2710
|
* "AGENT_API_TYPE": "remote",
|
|
@@ -3656,6 +3679,29 @@ interface components {
|
|
|
3656
3679
|
*/
|
|
3657
3680
|
detail: string;
|
|
3658
3681
|
};
|
|
3682
|
+
/**
|
|
3683
|
+
* ConversationImportResponse
|
|
3684
|
+
* @description Result of importing a conversation export (ChatGPT, OpenClaw, or Claude Code).
|
|
3685
|
+
*/
|
|
3686
|
+
ConversationImportResponse: {
|
|
3687
|
+
/** Detail */
|
|
3688
|
+
detail: string;
|
|
3689
|
+
/** Source */
|
|
3690
|
+
source: string;
|
|
3691
|
+
/** Workspace Ext Id */
|
|
3692
|
+
workspace_ext_id: string;
|
|
3693
|
+
/** Imported Count */
|
|
3694
|
+
imported_count: number;
|
|
3695
|
+
/** Imported Message Count */
|
|
3696
|
+
imported_message_count: number;
|
|
3697
|
+
/** Skipped Node Count */
|
|
3698
|
+
skipped_node_count: number;
|
|
3699
|
+
/**
|
|
3700
|
+
* Conversations
|
|
3701
|
+
* @default []
|
|
3702
|
+
*/
|
|
3703
|
+
conversations: components['schemas']['ImportedConversationInfo'][];
|
|
3704
|
+
};
|
|
3659
3705
|
/** ConversationResponse */
|
|
3660
3706
|
ConversationResponse: {
|
|
3661
3707
|
/** External Id */
|
|
@@ -4624,6 +4670,18 @@ interface components {
|
|
|
4624
4670
|
/** Detail */
|
|
4625
4671
|
detail?: components['schemas']['ValidationError'][];
|
|
4626
4672
|
};
|
|
4673
|
+
/**
|
|
4674
|
+
* ImportedConversationInfo
|
|
4675
|
+
* @description Summary of a single conversation created by an import.
|
|
4676
|
+
*/
|
|
4677
|
+
ImportedConversationInfo: {
|
|
4678
|
+
/** Conversation Ext Id */
|
|
4679
|
+
conversation_ext_id: string;
|
|
4680
|
+
/** Title */
|
|
4681
|
+
title: string;
|
|
4682
|
+
/** Message Count */
|
|
4683
|
+
message_count: number;
|
|
4684
|
+
};
|
|
4627
4685
|
/**
|
|
4628
4686
|
* InitedUploadItem
|
|
4629
4687
|
* @description One file slot returned by ``POST /v1/document/upload-init``.
|
|
@@ -10599,6 +10657,48 @@ interface operations {
|
|
|
10599
10657
|
};
|
|
10600
10658
|
};
|
|
10601
10659
|
};
|
|
10660
|
+
import_conversations: {
|
|
10661
|
+
parameters: {
|
|
10662
|
+
query?: {
|
|
10663
|
+
/** @description Export format; one of auto, chatgpt, openclaw, claude_code. 'auto' detects it from the file. */
|
|
10664
|
+
source?: string;
|
|
10665
|
+
};
|
|
10666
|
+
header?: never;
|
|
10667
|
+
path?: never;
|
|
10668
|
+
cookie?: never;
|
|
10669
|
+
};
|
|
10670
|
+
requestBody?: {
|
|
10671
|
+
content: {
|
|
10672
|
+
'multipart/form-data': {
|
|
10673
|
+
/**
|
|
10674
|
+
* Format: binary
|
|
10675
|
+
* @description Conversation export file (.json or .jsonl)
|
|
10676
|
+
*/
|
|
10677
|
+
file: string;
|
|
10678
|
+
};
|
|
10679
|
+
};
|
|
10680
|
+
};
|
|
10681
|
+
responses: {
|
|
10682
|
+
/** @description Successful Response */
|
|
10683
|
+
200: {
|
|
10684
|
+
headers: {
|
|
10685
|
+
[name: string]: unknown;
|
|
10686
|
+
};
|
|
10687
|
+
content: {
|
|
10688
|
+
'application/json': components['schemas']['ConversationImportResponse'];
|
|
10689
|
+
};
|
|
10690
|
+
};
|
|
10691
|
+
/** @description Validation Error */
|
|
10692
|
+
422: {
|
|
10693
|
+
headers: {
|
|
10694
|
+
[name: string]: unknown;
|
|
10695
|
+
};
|
|
10696
|
+
content: {
|
|
10697
|
+
'application/json': components['schemas']['HTTPValidationError'];
|
|
10698
|
+
};
|
|
10699
|
+
};
|
|
10700
|
+
};
|
|
10701
|
+
};
|
|
10602
10702
|
get_message_details: {
|
|
10603
10703
|
parameters: {
|
|
10604
10704
|
query?: never;
|
package/dist/index.d.ts
CHANGED
|
@@ -1353,6 +1353,37 @@ interface paths {
|
|
|
1353
1353
|
patch?: never;
|
|
1354
1354
|
trace?: never;
|
|
1355
1355
|
};
|
|
1356
|
+
'/v1/conversation/import': {
|
|
1357
|
+
parameters: {
|
|
1358
|
+
query?: never;
|
|
1359
|
+
header?: never;
|
|
1360
|
+
path?: never;
|
|
1361
|
+
cookie?: never;
|
|
1362
|
+
};
|
|
1363
|
+
get?: never;
|
|
1364
|
+
put?: never;
|
|
1365
|
+
/**
|
|
1366
|
+
* Import Conversations
|
|
1367
|
+
* @description Import a conversation export into the **active** workspace.
|
|
1368
|
+
*
|
|
1369
|
+
* Supports ChatGPT data exports (`conversations.json`), OpenClaw session logs, and
|
|
1370
|
+
* Claude Code transcripts (`.jsonl`) — `source=auto` sniffs which one. Flow: the
|
|
1371
|
+
* client opens a workspace (which sets the active workspace and unlocks the encryption
|
|
1372
|
+
* cipher on the session), then POSTs the export file.
|
|
1373
|
+
*
|
|
1374
|
+
* All three formats store messages as a parent/child tree, the same structure ARBI
|
|
1375
|
+
* uses via `parent_message_id`, so the full tree — including edit/regeneration
|
|
1376
|
+
* branches and sub-agent sidechains — is preserved. Only user/assistant text turns are
|
|
1377
|
+
* imported; system prompts, model reasoning, and tool calls/results are dropped.
|
|
1378
|
+
* Titles and message content are encrypted with the workspace cipher before writing.
|
|
1379
|
+
*/
|
|
1380
|
+
post: operations['import_conversations'];
|
|
1381
|
+
delete?: never;
|
|
1382
|
+
options?: never;
|
|
1383
|
+
head?: never;
|
|
1384
|
+
patch?: never;
|
|
1385
|
+
trace?: never;
|
|
1386
|
+
};
|
|
1356
1387
|
'/v1/conversation/message/{message_ext_id}': {
|
|
1357
1388
|
parameters: {
|
|
1358
1389
|
query?: never;
|
|
@@ -2346,7 +2377,6 @@ interface components {
|
|
|
2346
2377
|
* {"tool": "read_url", "message": "Fetching page"}
|
|
2347
2378
|
* ]}
|
|
2348
2379
|
* {"type": "arbi.agent_step", "index": 6, "step": "answering"}
|
|
2349
|
-
* {"type": "arbi.agent_step", "index": 7, "step": "reviewing"}
|
|
2350
2380
|
*/
|
|
2351
2381
|
AgentStepEvent: {
|
|
2352
2382
|
/**
|
|
@@ -2369,7 +2399,7 @@ interface components {
|
|
|
2369
2399
|
* Step
|
|
2370
2400
|
* @description Lifecycle step. Absent (None) for tool-call steps, which carry `detail` instead.
|
|
2371
2401
|
*/
|
|
2372
|
-
step?: ('goal' | 'skill' | 'planning' | 'tool_progress' | 'goal_progress' | 'answering' | '
|
|
2402
|
+
step?: ('goal' | 'skill' | 'planning' | 'tool_progress' | 'goal_progress' | 'answering' | 'evaluation') | null;
|
|
2373
2403
|
/**
|
|
2374
2404
|
* Label
|
|
2375
2405
|
* @description Display label for the step. Backend-driven, no frontend mapping needed.
|
|
@@ -2521,12 +2551,6 @@ interface components {
|
|
|
2521
2551
|
* @default 6
|
|
2522
2552
|
*/
|
|
2523
2553
|
GOAL_MAX_OUTER_LOOPS: number;
|
|
2524
|
-
/**
|
|
2525
|
-
* Review Enabled
|
|
2526
|
-
* @description Enable ReviewLLM to review agent draft answers against source material before sending to the user. Uses the reasoning model for higher quality.
|
|
2527
|
-
* @default false
|
|
2528
|
-
*/
|
|
2529
|
-
REVIEW_ENABLED: boolean;
|
|
2530
2554
|
/**
|
|
2531
2555
|
* Persona
|
|
2532
2556
|
* @description Agent persona prepended to the system prompt. Customise to change the agent's identity and tone.
|
|
@@ -2681,7 +2705,6 @@ interface components {
|
|
|
2681
2705
|
* "MEMORY_CREATION": false,
|
|
2682
2706
|
* "GOALS_ENABLED": false,
|
|
2683
2707
|
* "GOAL_MAX_OUTER_LOOPS": 6,
|
|
2684
|
-
* "REVIEW_ENABLED": false,
|
|
2685
2708
|
* "PERSONA": "You are ARBI, an AI assistant created by ARBI CITY. Be proactive, helpful and professional.",
|
|
2686
2709
|
* "AGENT_MODEL_NAME": "auto",
|
|
2687
2710
|
* "AGENT_API_TYPE": "remote",
|
|
@@ -3656,6 +3679,29 @@ interface components {
|
|
|
3656
3679
|
*/
|
|
3657
3680
|
detail: string;
|
|
3658
3681
|
};
|
|
3682
|
+
/**
|
|
3683
|
+
* ConversationImportResponse
|
|
3684
|
+
* @description Result of importing a conversation export (ChatGPT, OpenClaw, or Claude Code).
|
|
3685
|
+
*/
|
|
3686
|
+
ConversationImportResponse: {
|
|
3687
|
+
/** Detail */
|
|
3688
|
+
detail: string;
|
|
3689
|
+
/** Source */
|
|
3690
|
+
source: string;
|
|
3691
|
+
/** Workspace Ext Id */
|
|
3692
|
+
workspace_ext_id: string;
|
|
3693
|
+
/** Imported Count */
|
|
3694
|
+
imported_count: number;
|
|
3695
|
+
/** Imported Message Count */
|
|
3696
|
+
imported_message_count: number;
|
|
3697
|
+
/** Skipped Node Count */
|
|
3698
|
+
skipped_node_count: number;
|
|
3699
|
+
/**
|
|
3700
|
+
* Conversations
|
|
3701
|
+
* @default []
|
|
3702
|
+
*/
|
|
3703
|
+
conversations: components['schemas']['ImportedConversationInfo'][];
|
|
3704
|
+
};
|
|
3659
3705
|
/** ConversationResponse */
|
|
3660
3706
|
ConversationResponse: {
|
|
3661
3707
|
/** External Id */
|
|
@@ -4624,6 +4670,18 @@ interface components {
|
|
|
4624
4670
|
/** Detail */
|
|
4625
4671
|
detail?: components['schemas']['ValidationError'][];
|
|
4626
4672
|
};
|
|
4673
|
+
/**
|
|
4674
|
+
* ImportedConversationInfo
|
|
4675
|
+
* @description Summary of a single conversation created by an import.
|
|
4676
|
+
*/
|
|
4677
|
+
ImportedConversationInfo: {
|
|
4678
|
+
/** Conversation Ext Id */
|
|
4679
|
+
conversation_ext_id: string;
|
|
4680
|
+
/** Title */
|
|
4681
|
+
title: string;
|
|
4682
|
+
/** Message Count */
|
|
4683
|
+
message_count: number;
|
|
4684
|
+
};
|
|
4627
4685
|
/**
|
|
4628
4686
|
* InitedUploadItem
|
|
4629
4687
|
* @description One file slot returned by ``POST /v1/document/upload-init``.
|
|
@@ -10599,6 +10657,48 @@ interface operations {
|
|
|
10599
10657
|
};
|
|
10600
10658
|
};
|
|
10601
10659
|
};
|
|
10660
|
+
import_conversations: {
|
|
10661
|
+
parameters: {
|
|
10662
|
+
query?: {
|
|
10663
|
+
/** @description Export format; one of auto, chatgpt, openclaw, claude_code. 'auto' detects it from the file. */
|
|
10664
|
+
source?: string;
|
|
10665
|
+
};
|
|
10666
|
+
header?: never;
|
|
10667
|
+
path?: never;
|
|
10668
|
+
cookie?: never;
|
|
10669
|
+
};
|
|
10670
|
+
requestBody?: {
|
|
10671
|
+
content: {
|
|
10672
|
+
'multipart/form-data': {
|
|
10673
|
+
/**
|
|
10674
|
+
* Format: binary
|
|
10675
|
+
* @description Conversation export file (.json or .jsonl)
|
|
10676
|
+
*/
|
|
10677
|
+
file: string;
|
|
10678
|
+
};
|
|
10679
|
+
};
|
|
10680
|
+
};
|
|
10681
|
+
responses: {
|
|
10682
|
+
/** @description Successful Response */
|
|
10683
|
+
200: {
|
|
10684
|
+
headers: {
|
|
10685
|
+
[name: string]: unknown;
|
|
10686
|
+
};
|
|
10687
|
+
content: {
|
|
10688
|
+
'application/json': components['schemas']['ConversationImportResponse'];
|
|
10689
|
+
};
|
|
10690
|
+
};
|
|
10691
|
+
/** @description Validation Error */
|
|
10692
|
+
422: {
|
|
10693
|
+
headers: {
|
|
10694
|
+
[name: string]: unknown;
|
|
10695
|
+
};
|
|
10696
|
+
content: {
|
|
10697
|
+
'application/json': components['schemas']['HTTPValidationError'];
|
|
10698
|
+
};
|
|
10699
|
+
};
|
|
10700
|
+
};
|
|
10701
|
+
};
|
|
10602
10702
|
get_message_details: {
|
|
10603
10703
|
parameters: {
|
|
10604
10704
|
query?: never;
|
package/package.json
CHANGED