@arbidocs/sdk 0.3.80 → 0.3.82
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/{browser-DIO4_N2g.d.cts → browser-BDoCACaz.d.cts} +22 -4
- package/dist/{browser-DIO4_N2g.d.ts → browser-BDoCACaz.d.ts} +22 -4
- package/dist/browser.cjs +12 -1
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +1 -1
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js +12 -1
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +12 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -2666,6 +2666,9 @@ declare class Arbi {
|
|
|
2666
2666
|
muted_users: string[];
|
|
2667
2667
|
premium_model?: string | null | undefined;
|
|
2668
2668
|
picture?: string | null | undefined;
|
|
2669
|
+
extra_discount?: {
|
|
2670
|
+
[x: string]: unknown;
|
|
2671
|
+
} | null | undefined;
|
|
2669
2672
|
}>;
|
|
2670
2673
|
update: (body: UserSettingsUpdate$1) => Promise<void>;
|
|
2671
2674
|
};
|
|
@@ -2705,7 +2708,6 @@ declare class Arbi {
|
|
|
2705
2708
|
MEMORY_CREATION: boolean;
|
|
2706
2709
|
GOALS_ENABLED: boolean;
|
|
2707
2710
|
GOAL_MAX_OUTER_LOOPS: number;
|
|
2708
|
-
REVIEW_ENABLED: boolean;
|
|
2709
2711
|
PERSONA: string;
|
|
2710
2712
|
AGENT_MODEL_NAME: string;
|
|
2711
2713
|
AGENT_API_TYPE: "local" | "remote";
|
|
@@ -3368,9 +3370,11 @@ declare namespace tags {
|
|
|
3368
3370
|
}
|
|
3369
3371
|
|
|
3370
3372
|
/**
|
|
3371
|
-
* Conversation operations — list, threads, delete, share, title, messages.
|
|
3373
|
+
* Conversation operations — list, threads, delete, share, title, messages, import.
|
|
3372
3374
|
*/
|
|
3373
3375
|
|
|
3376
|
+
type ConversationImportResponse = components['schemas']['ConversationImportResponse'];
|
|
3377
|
+
|
|
3374
3378
|
declare function listConversations(arbi: ArbiClient): Promise<{
|
|
3375
3379
|
external_id: string;
|
|
3376
3380
|
title: string | null;
|
|
@@ -3382,6 +3386,16 @@ declare function listConversations(arbi: ArbiClient): Promise<{
|
|
|
3382
3386
|
message_count: number;
|
|
3383
3387
|
last_message_status?: string | null | undefined;
|
|
3384
3388
|
}[]>;
|
|
3389
|
+
/**
|
|
3390
|
+
* Import a conversation export into the active workspace.
|
|
3391
|
+
*
|
|
3392
|
+
* Accepts a ChatGPT data export (`conversations.json`), an OpenClaw session log, or a
|
|
3393
|
+
* Claude Code transcript (`.jsonl`); `source='auto'` lets the server detect the format.
|
|
3394
|
+
* Uses raw multipart fetch (the typed client can't express file uploads), mirroring
|
|
3395
|
+
* `files.uploadFile`. The active workspace + cipher are resolved server-side from the
|
|
3396
|
+
* session, so no extra header is needed.
|
|
3397
|
+
*/
|
|
3398
|
+
declare function importConversations(auth: AuthHeaders, fileData: Blob, fileName: string, source?: string): Promise<ConversationImportResponse>;
|
|
3385
3399
|
declare function getConversationThreads(arbi: ArbiClient, conversationId: string): Promise<{
|
|
3386
3400
|
conversation_ext_id: string;
|
|
3387
3401
|
threads: {
|
|
@@ -3668,15 +3682,17 @@ declare function deleteMessage(arbi: ArbiClient, messageId: string): Promise<{
|
|
|
3668
3682
|
detail: string;
|
|
3669
3683
|
}>;
|
|
3670
3684
|
|
|
3685
|
+
type conversations_ConversationImportResponse = ConversationImportResponse;
|
|
3671
3686
|
declare const conversations_deleteConversation: typeof deleteConversation;
|
|
3672
3687
|
declare const conversations_deleteMessage: typeof deleteMessage;
|
|
3673
3688
|
declare const conversations_getConversationThreads: typeof getConversationThreads;
|
|
3674
3689
|
declare const conversations_getMessage: typeof getMessage;
|
|
3690
|
+
declare const conversations_importConversations: typeof importConversations;
|
|
3675
3691
|
declare const conversations_listConversations: typeof listConversations;
|
|
3676
3692
|
declare const conversations_shareConversation: typeof shareConversation;
|
|
3677
3693
|
declare const conversations_updateConversationTitle: typeof updateConversationTitle;
|
|
3678
3694
|
declare namespace conversations {
|
|
3679
|
-
export { conversations_deleteConversation as deleteConversation, conversations_deleteMessage as deleteMessage, conversations_getConversationThreads as getConversationThreads, conversations_getMessage as getMessage, conversations_listConversations as listConversations, conversations_shareConversation as shareConversation, conversations_updateConversationTitle as updateConversationTitle };
|
|
3695
|
+
export { type conversations_ConversationImportResponse as ConversationImportResponse, conversations_deleteConversation as deleteConversation, conversations_deleteMessage as deleteMessage, conversations_getConversationThreads as getConversationThreads, conversations_getMessage as getMessage, conversations_importConversations as importConversations, conversations_listConversations as listConversations, conversations_shareConversation as shareConversation, conversations_updateConversationTitle as updateConversationTitle };
|
|
3680
3696
|
}
|
|
3681
3697
|
|
|
3682
3698
|
/**
|
|
@@ -4002,6 +4018,9 @@ declare function getSettings(arbi: ArbiClient): Promise<{
|
|
|
4002
4018
|
muted_users: string[];
|
|
4003
4019
|
premium_model?: string | null | undefined;
|
|
4004
4020
|
picture?: string | null | undefined;
|
|
4021
|
+
extra_discount?: {
|
|
4022
|
+
[x: string]: unknown;
|
|
4023
|
+
} | null | undefined;
|
|
4005
4024
|
}>;
|
|
4006
4025
|
declare function updateSettings(arbi: ArbiClient, body: UserSettingsUpdate): Promise<void>;
|
|
4007
4026
|
|
|
@@ -4051,7 +4070,6 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
4051
4070
|
MEMORY_CREATION: boolean;
|
|
4052
4071
|
GOALS_ENABLED: boolean;
|
|
4053
4072
|
GOAL_MAX_OUTER_LOOPS: number;
|
|
4054
|
-
REVIEW_ENABLED: boolean;
|
|
4055
4073
|
PERSONA: string;
|
|
4056
4074
|
AGENT_MODEL_NAME: string;
|
|
4057
4075
|
AGENT_API_TYPE: "local" | "remote";
|
|
@@ -2666,6 +2666,9 @@ declare class Arbi {
|
|
|
2666
2666
|
muted_users: string[];
|
|
2667
2667
|
premium_model?: string | null | undefined;
|
|
2668
2668
|
picture?: string | null | undefined;
|
|
2669
|
+
extra_discount?: {
|
|
2670
|
+
[x: string]: unknown;
|
|
2671
|
+
} | null | undefined;
|
|
2669
2672
|
}>;
|
|
2670
2673
|
update: (body: UserSettingsUpdate$1) => Promise<void>;
|
|
2671
2674
|
};
|
|
@@ -2705,7 +2708,6 @@ declare class Arbi {
|
|
|
2705
2708
|
MEMORY_CREATION: boolean;
|
|
2706
2709
|
GOALS_ENABLED: boolean;
|
|
2707
2710
|
GOAL_MAX_OUTER_LOOPS: number;
|
|
2708
|
-
REVIEW_ENABLED: boolean;
|
|
2709
2711
|
PERSONA: string;
|
|
2710
2712
|
AGENT_MODEL_NAME: string;
|
|
2711
2713
|
AGENT_API_TYPE: "local" | "remote";
|
|
@@ -3368,9 +3370,11 @@ declare namespace tags {
|
|
|
3368
3370
|
}
|
|
3369
3371
|
|
|
3370
3372
|
/**
|
|
3371
|
-
* Conversation operations — list, threads, delete, share, title, messages.
|
|
3373
|
+
* Conversation operations — list, threads, delete, share, title, messages, import.
|
|
3372
3374
|
*/
|
|
3373
3375
|
|
|
3376
|
+
type ConversationImportResponse = components['schemas']['ConversationImportResponse'];
|
|
3377
|
+
|
|
3374
3378
|
declare function listConversations(arbi: ArbiClient): Promise<{
|
|
3375
3379
|
external_id: string;
|
|
3376
3380
|
title: string | null;
|
|
@@ -3382,6 +3386,16 @@ declare function listConversations(arbi: ArbiClient): Promise<{
|
|
|
3382
3386
|
message_count: number;
|
|
3383
3387
|
last_message_status?: string | null | undefined;
|
|
3384
3388
|
}[]>;
|
|
3389
|
+
/**
|
|
3390
|
+
* Import a conversation export into the active workspace.
|
|
3391
|
+
*
|
|
3392
|
+
* Accepts a ChatGPT data export (`conversations.json`), an OpenClaw session log, or a
|
|
3393
|
+
* Claude Code transcript (`.jsonl`); `source='auto'` lets the server detect the format.
|
|
3394
|
+
* Uses raw multipart fetch (the typed client can't express file uploads), mirroring
|
|
3395
|
+
* `files.uploadFile`. The active workspace + cipher are resolved server-side from the
|
|
3396
|
+
* session, so no extra header is needed.
|
|
3397
|
+
*/
|
|
3398
|
+
declare function importConversations(auth: AuthHeaders, fileData: Blob, fileName: string, source?: string): Promise<ConversationImportResponse>;
|
|
3385
3399
|
declare function getConversationThreads(arbi: ArbiClient, conversationId: string): Promise<{
|
|
3386
3400
|
conversation_ext_id: string;
|
|
3387
3401
|
threads: {
|
|
@@ -3668,15 +3682,17 @@ declare function deleteMessage(arbi: ArbiClient, messageId: string): Promise<{
|
|
|
3668
3682
|
detail: string;
|
|
3669
3683
|
}>;
|
|
3670
3684
|
|
|
3685
|
+
type conversations_ConversationImportResponse = ConversationImportResponse;
|
|
3671
3686
|
declare const conversations_deleteConversation: typeof deleteConversation;
|
|
3672
3687
|
declare const conversations_deleteMessage: typeof deleteMessage;
|
|
3673
3688
|
declare const conversations_getConversationThreads: typeof getConversationThreads;
|
|
3674
3689
|
declare const conversations_getMessage: typeof getMessage;
|
|
3690
|
+
declare const conversations_importConversations: typeof importConversations;
|
|
3675
3691
|
declare const conversations_listConversations: typeof listConversations;
|
|
3676
3692
|
declare const conversations_shareConversation: typeof shareConversation;
|
|
3677
3693
|
declare const conversations_updateConversationTitle: typeof updateConversationTitle;
|
|
3678
3694
|
declare namespace conversations {
|
|
3679
|
-
export { conversations_deleteConversation as deleteConversation, conversations_deleteMessage as deleteMessage, conversations_getConversationThreads as getConversationThreads, conversations_getMessage as getMessage, conversations_listConversations as listConversations, conversations_shareConversation as shareConversation, conversations_updateConversationTitle as updateConversationTitle };
|
|
3695
|
+
export { type conversations_ConversationImportResponse as ConversationImportResponse, conversations_deleteConversation as deleteConversation, conversations_deleteMessage as deleteMessage, conversations_getConversationThreads as getConversationThreads, conversations_getMessage as getMessage, conversations_importConversations as importConversations, conversations_listConversations as listConversations, conversations_shareConversation as shareConversation, conversations_updateConversationTitle as updateConversationTitle };
|
|
3680
3696
|
}
|
|
3681
3697
|
|
|
3682
3698
|
/**
|
|
@@ -4002,6 +4018,9 @@ declare function getSettings(arbi: ArbiClient): Promise<{
|
|
|
4002
4018
|
muted_users: string[];
|
|
4003
4019
|
premium_model?: string | null | undefined;
|
|
4004
4020
|
picture?: string | null | undefined;
|
|
4021
|
+
extra_discount?: {
|
|
4022
|
+
[x: string]: unknown;
|
|
4023
|
+
} | null | undefined;
|
|
4005
4024
|
}>;
|
|
4006
4025
|
declare function updateSettings(arbi: ArbiClient, body: UserSettingsUpdate): Promise<void>;
|
|
4007
4026
|
|
|
@@ -4051,7 +4070,6 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
4051
4070
|
MEMORY_CREATION: boolean;
|
|
4052
4071
|
GOALS_ENABLED: boolean;
|
|
4053
4072
|
GOAL_MAX_OUTER_LOOPS: number;
|
|
4054
|
-
REVIEW_ENABLED: boolean;
|
|
4055
4073
|
PERSONA: string;
|
|
4056
4074
|
AGENT_MODEL_NAME: string;
|
|
4057
4075
|
AGENT_API_TYPE: "local" | "remote";
|
package/dist/browser.cjs
CHANGED
|
@@ -3790,7 +3790,6 @@ var LIFECYCLE_LABELS_FALLBACK = {
|
|
|
3790
3790
|
goal: "Thinking\u2026",
|
|
3791
3791
|
evaluation: "Evaluating results",
|
|
3792
3792
|
answering: "Answered",
|
|
3793
|
-
reviewing: "Reviewing answer",
|
|
3794
3793
|
planning: "Planning",
|
|
3795
3794
|
tool_progress: "Working"
|
|
3796
3795
|
};
|
|
@@ -4695,6 +4694,7 @@ __export(conversations_exports, {
|
|
|
4695
4694
|
deleteMessage: () => deleteMessage,
|
|
4696
4695
|
getConversationThreads: () => getConversationThreads,
|
|
4697
4696
|
getMessage: () => getMessage,
|
|
4697
|
+
importConversations: () => importConversations,
|
|
4698
4698
|
listConversations: () => listConversations,
|
|
4699
4699
|
shareConversation: () => shareConversation,
|
|
4700
4700
|
updateConversationTitle: () => updateConversationTitle
|
|
@@ -4702,6 +4702,17 @@ __export(conversations_exports, {
|
|
|
4702
4702
|
async function listConversations(arbi) {
|
|
4703
4703
|
return requireData(await arbi.fetch.GET("/v1/conversation/list"), "Failed to fetch conversations");
|
|
4704
4704
|
}
|
|
4705
|
+
async function importConversations(auth, fileData, fileName, source = "auto") {
|
|
4706
|
+
const formData = new FormData();
|
|
4707
|
+
formData.append("file", fileData, fileName);
|
|
4708
|
+
const res = await authenticatedFetch({
|
|
4709
|
+
...auth,
|
|
4710
|
+
path: `/v1/conversation/import?source=${encodeURIComponent(source)}`,
|
|
4711
|
+
method: "POST",
|
|
4712
|
+
body: formData
|
|
4713
|
+
});
|
|
4714
|
+
return res.json();
|
|
4715
|
+
}
|
|
4705
4716
|
async function getConversationThreads(arbi, conversationId) {
|
|
4706
4717
|
return requireData(
|
|
4707
4718
|
await arbi.fetch.GET("/v1/conversation/{conversation_ext_id}/threads", {
|