@arbidocs/sdk 0.3.138 → 0.3.140
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-DSk5KK4x.d.cts → browser-B9JRGjYZ.d.cts} +119 -136
- package/dist/{browser-DSk5KK4x.d.ts → browser-B9JRGjYZ.d.ts} +119 -136
- package/dist/browser.cjs +32 -34
- 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 +32 -34
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +27 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +27 -26
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -448,6 +448,8 @@ interface SSEStreamCallbacks {
|
|
|
448
448
|
onArtifact?: (data: ArtifactEvent) => void;
|
|
449
449
|
onElapsedTime?: (t: number) => void;
|
|
450
450
|
onUsage?: (usage: ResponseUsage) => void;
|
|
451
|
+
/** Final per-turn token/credit budget snapshot from response.completed. */
|
|
452
|
+
onContextUpdate?: (context: TokenBudgetContext) => void;
|
|
451
453
|
onComplete?: () => void;
|
|
452
454
|
}
|
|
453
455
|
/**
|
|
@@ -481,7 +483,8 @@ declare function streamSSE(response: Response, callbacks?: SSEStreamCallbacks):
|
|
|
481
483
|
* Format a human-readable summary line from a completed SSE stream result.
|
|
482
484
|
*
|
|
483
485
|
* Returns a string like:
|
|
484
|
-
* "3 steps (2 tool calls) · 1,234 tokens · 500/8,000 context · 2.5s"
|
|
486
|
+
* "3 steps (2 tool calls) · 1,234 tokens · 500/8,000 context · 12.40/50 credits · 2.5s"
|
|
487
|
+
* (the credits segment is omitted when the workspace has no turn credit budget configured)
|
|
485
488
|
*
|
|
486
489
|
* Returns empty string if there's nothing to report.
|
|
487
490
|
*/
|
|
@@ -685,7 +688,7 @@ declare function formatUserName(user: UserInfo | null | undefined): string;
|
|
|
685
688
|
*/
|
|
686
689
|
|
|
687
690
|
type MessageMetadataPayload = components['schemas']['MessageMetadataPayload'];
|
|
688
|
-
type CitationData
|
|
691
|
+
type CitationData = components['schemas']['CitationData'];
|
|
689
692
|
type Chunk$1 = components['schemas']['Chunk'];
|
|
690
693
|
|
|
691
694
|
/** A fully resolved citation with its source chunks. */
|
|
@@ -693,7 +696,7 @@ interface ResolvedCitation {
|
|
|
693
696
|
/** Citation number as a string (e.g. "1", "2") */
|
|
694
697
|
citationNum: string;
|
|
695
698
|
/** Raw citation data from model_citations */
|
|
696
|
-
citationData: CitationData
|
|
699
|
+
citationData: CitationData;
|
|
697
700
|
/** Resolved chunks matching the citation's chunk_ids */
|
|
698
701
|
chunks: Chunk$1[];
|
|
699
702
|
}
|
|
@@ -882,13 +885,11 @@ declare function listDocuments(arbi: ArbiClient): Promise<{
|
|
|
882
885
|
doctags: {
|
|
883
886
|
note?: string | null | undefined;
|
|
884
887
|
citations?: {
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
offset_end: number;
|
|
891
|
-
};
|
|
888
|
+
passages: {
|
|
889
|
+
chunk_id: string;
|
|
890
|
+
doc_ext_id?: string | null | undefined;
|
|
891
|
+
page?: number | null | undefined;
|
|
892
|
+
}[];
|
|
892
893
|
} | null | undefined;
|
|
893
894
|
doc_ext_id: string;
|
|
894
895
|
tag_ext_id: string;
|
|
@@ -981,13 +982,11 @@ declare function getDocuments(arbi: ArbiClient, externalIds: string[]): Promise<
|
|
|
981
982
|
doctags: {
|
|
982
983
|
note?: string | null | undefined;
|
|
983
984
|
citations?: {
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
offset_end: number;
|
|
990
|
-
};
|
|
985
|
+
passages: {
|
|
986
|
+
chunk_id: string;
|
|
987
|
+
doc_ext_id?: string | null | undefined;
|
|
988
|
+
page?: number | null | undefined;
|
|
989
|
+
}[];
|
|
991
990
|
} | null | undefined;
|
|
992
991
|
doc_ext_id: string;
|
|
993
992
|
tag_ext_id: string;
|
|
@@ -1034,13 +1033,11 @@ declare function updateDocuments(arbi: ArbiClient, documents: DocUpdateRequest$1
|
|
|
1034
1033
|
doctags: {
|
|
1035
1034
|
note?: string | null | undefined;
|
|
1036
1035
|
citations?: {
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
offset_end: number;
|
|
1043
|
-
};
|
|
1036
|
+
passages: {
|
|
1037
|
+
chunk_id: string;
|
|
1038
|
+
doc_ext_id?: string | null | undefined;
|
|
1039
|
+
page?: number | null | undefined;
|
|
1040
|
+
}[];
|
|
1044
1041
|
} | null | undefined;
|
|
1045
1042
|
doc_ext_id: string;
|
|
1046
1043
|
tag_ext_id: string;
|
|
@@ -1890,47 +1887,47 @@ declare namespace tasks {
|
|
|
1890
1887
|
}
|
|
1891
1888
|
|
|
1892
1889
|
/**
|
|
1893
|
-
* Workspace
|
|
1890
|
+
* Workspace note — per-workspace encrypted knowledge notes with citations.
|
|
1894
1891
|
* The firm's practice profile / house style / precedent knowhow lives here and is
|
|
1895
1892
|
* read by grounded agents. All endpoints require an OPEN workspace.
|
|
1896
|
-
* Backend: `/v1/
|
|
1893
|
+
* Backend: `/v1/notes` (src/api/v1/routers/notes.py).
|
|
1897
1894
|
*/
|
|
1898
1895
|
|
|
1899
|
-
type
|
|
1900
|
-
type
|
|
1901
|
-
type
|
|
1902
|
-
type
|
|
1903
|
-
type
|
|
1904
|
-
/** Create a
|
|
1905
|
-
declare function
|
|
1906
|
-
/** List the open workspace's
|
|
1907
|
-
declare function
|
|
1896
|
+
type NoteResponse = components['schemas']['NoteResponse'];
|
|
1897
|
+
type CreateNoteRequest = components['schemas']['CreateNoteRequest'];
|
|
1898
|
+
type UpdateNoteRequest = components['schemas']['UpdateNoteRequest'];
|
|
1899
|
+
type NoteSearchRequest = components['schemas']['NoteSearchRequest'];
|
|
1900
|
+
type NoteSearchResponse = components['schemas']['NoteSearchResponse'];
|
|
1901
|
+
/** Create a note. `content` is required; `shared` makes it workspace-wide. */
|
|
1902
|
+
declare function createNote(arbi: ArbiClient, body: CreateNoteRequest): Promise<NoteResponse>;
|
|
1903
|
+
/** List the open workspace's notes (newest first). */
|
|
1904
|
+
declare function listNotes(arbi: ArbiClient, options?: {
|
|
1908
1905
|
pinnedOnly?: boolean;
|
|
1909
|
-
}): Promise<
|
|
1910
|
-
/** Semantic/keyword/hybrid search across the workspace's
|
|
1911
|
-
declare function
|
|
1912
|
-
declare function
|
|
1913
|
-
declare function
|
|
1906
|
+
}): Promise<NoteResponse[]>;
|
|
1907
|
+
/** Semantic/keyword/hybrid search across the workspace's notes. */
|
|
1908
|
+
declare function searchNotes(arbi: ArbiClient, body: NoteSearchRequest): Promise<NoteSearchResponse>;
|
|
1909
|
+
declare function updateNote(arbi: ArbiClient, memoryId: string, body: UpdateNoteRequest): Promise<NoteResponse>;
|
|
1910
|
+
declare function deleteNote(arbi: ArbiClient, memoryId: string): Promise<void>;
|
|
1914
1911
|
|
|
1915
|
-
type
|
|
1916
|
-
type
|
|
1917
|
-
type
|
|
1918
|
-
type
|
|
1919
|
-
type
|
|
1920
|
-
declare const
|
|
1921
|
-
declare const
|
|
1922
|
-
declare const
|
|
1923
|
-
declare const
|
|
1924
|
-
declare const
|
|
1925
|
-
declare namespace
|
|
1926
|
-
export { type
|
|
1912
|
+
type notes_CreateNoteRequest = CreateNoteRequest;
|
|
1913
|
+
type notes_NoteResponse = NoteResponse;
|
|
1914
|
+
type notes_NoteSearchRequest = NoteSearchRequest;
|
|
1915
|
+
type notes_NoteSearchResponse = NoteSearchResponse;
|
|
1916
|
+
type notes_UpdateNoteRequest = UpdateNoteRequest;
|
|
1917
|
+
declare const notes_createNote: typeof createNote;
|
|
1918
|
+
declare const notes_deleteNote: typeof deleteNote;
|
|
1919
|
+
declare const notes_listNotes: typeof listNotes;
|
|
1920
|
+
declare const notes_searchNotes: typeof searchNotes;
|
|
1921
|
+
declare const notes_updateNote: typeof updateNote;
|
|
1922
|
+
declare namespace notes {
|
|
1923
|
+
export { type notes_CreateNoteRequest as CreateNoteRequest, type notes_NoteResponse as NoteResponse, type notes_NoteSearchRequest as NoteSearchRequest, type notes_NoteSearchResponse as NoteSearchResponse, type notes_UpdateNoteRequest as UpdateNoteRequest, notes_createNote as createNote, notes_deleteNote as deleteNote, notes_listNotes as listNotes, notes_searchNotes as searchNotes, notes_updateNote as updateNote };
|
|
1927
1924
|
}
|
|
1928
1925
|
|
|
1929
1926
|
type DocUpdateRequest = components['schemas']['DocUpdateRequest'];
|
|
1930
1927
|
type WorkspaceUpdateRequest$1 = components['schemas']['WorkspaceUpdateRequest'];
|
|
1931
1928
|
type UpdateTagRequest$1 = components['schemas']['UpdateTagRequest'];
|
|
1932
1929
|
type TagFormat = components['schemas']['TagFormat'];
|
|
1933
|
-
type
|
|
1930
|
+
type CitationSources$1 = components['schemas']['CitationSources'];
|
|
1934
1931
|
type UserSettingsUpdate$1 = components['schemas']['UserSettingsUpdate'];
|
|
1935
1932
|
type ConfigUpdateData$1 = components['schemas']['ConfigUpdateData'];
|
|
1936
1933
|
|
|
@@ -2453,13 +2450,11 @@ declare class Arbi {
|
|
|
2453
2450
|
doctags: {
|
|
2454
2451
|
note?: string | null | undefined;
|
|
2455
2452
|
citations?: {
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
offset_end: number;
|
|
2462
|
-
};
|
|
2453
|
+
passages: {
|
|
2454
|
+
chunk_id: string;
|
|
2455
|
+
doc_ext_id?: string | null | undefined;
|
|
2456
|
+
page?: number | null | undefined;
|
|
2457
|
+
}[];
|
|
2463
2458
|
} | null | undefined;
|
|
2464
2459
|
doc_ext_id: string;
|
|
2465
2460
|
tag_ext_id: string;
|
|
@@ -2581,13 +2576,11 @@ declare class Arbi {
|
|
|
2581
2576
|
doctags: {
|
|
2582
2577
|
note?: string | null | undefined;
|
|
2583
2578
|
citations?: {
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
offset_end: number;
|
|
2590
|
-
};
|
|
2579
|
+
passages: {
|
|
2580
|
+
chunk_id: string;
|
|
2581
|
+
doc_ext_id?: string | null | undefined;
|
|
2582
|
+
page?: number | null | undefined;
|
|
2583
|
+
}[];
|
|
2591
2584
|
} | null | undefined;
|
|
2592
2585
|
doc_ext_id: string;
|
|
2593
2586
|
tag_ext_id: string;
|
|
@@ -2634,13 +2627,11 @@ declare class Arbi {
|
|
|
2634
2627
|
doctags: {
|
|
2635
2628
|
note?: string | null | undefined;
|
|
2636
2629
|
citations?: {
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
offset_end: number;
|
|
2643
|
-
};
|
|
2630
|
+
passages: {
|
|
2631
|
+
chunk_id: string;
|
|
2632
|
+
doc_ext_id?: string | null | undefined;
|
|
2633
|
+
page?: number | null | undefined;
|
|
2634
|
+
}[];
|
|
2644
2635
|
} | null | undefined;
|
|
2645
2636
|
doc_ext_id: string;
|
|
2646
2637
|
tag_ext_id: string;
|
|
@@ -3090,13 +3081,11 @@ declare class Arbi {
|
|
|
3090
3081
|
assign: (tagId: string, docIds: string[], note?: string | null) => Promise<{
|
|
3091
3082
|
note?: string | null | undefined;
|
|
3092
3083
|
citations?: {
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
offset_end: number;
|
|
3099
|
-
};
|
|
3084
|
+
passages: {
|
|
3085
|
+
chunk_id: string;
|
|
3086
|
+
doc_ext_id?: string | null | undefined;
|
|
3087
|
+
page?: number | null | undefined;
|
|
3088
|
+
}[];
|
|
3100
3089
|
} | null | undefined;
|
|
3101
3090
|
doc_ext_id: string;
|
|
3102
3091
|
tag_ext_id: string;
|
|
@@ -3108,17 +3097,15 @@ declare class Arbi {
|
|
|
3108
3097
|
remove: (tagId: string, docIds: string[]) => Promise<void>;
|
|
3109
3098
|
update: (tagId: string, docId: string, updates: {
|
|
3110
3099
|
note?: string | null;
|
|
3111
|
-
citations?:
|
|
3100
|
+
citations?: CitationSources$1 | null;
|
|
3112
3101
|
}) => Promise<{
|
|
3113
3102
|
note?: string | null | undefined;
|
|
3114
3103
|
citations?: {
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
offset_end: number;
|
|
3121
|
-
};
|
|
3104
|
+
passages: {
|
|
3105
|
+
chunk_id: string;
|
|
3106
|
+
doc_ext_id?: string | null | undefined;
|
|
3107
|
+
page?: number | null | undefined;
|
|
3108
|
+
}[];
|
|
3122
3109
|
} | null | undefined;
|
|
3123
3110
|
doc_ext_id: string;
|
|
3124
3111
|
tag_ext_id: string;
|
|
@@ -3390,7 +3377,7 @@ declare class Arbi {
|
|
|
3390
3377
|
VISION_ENABLED: boolean;
|
|
3391
3378
|
CONVERSATION_SEARCH_ENABLED: boolean;
|
|
3392
3379
|
PERSONAL_AGENT: boolean;
|
|
3393
|
-
|
|
3380
|
+
NOTES_ENABLED: boolean;
|
|
3394
3381
|
PERSIST_LEARNINGS: boolean;
|
|
3395
3382
|
SKILLS_ENABLED: boolean;
|
|
3396
3383
|
SKILL_CREATION: boolean;
|
|
@@ -3407,6 +3394,7 @@ declare class Arbi {
|
|
|
3407
3394
|
ENABLE_THINKING: boolean;
|
|
3408
3395
|
AGENT_STRICT_TOOL_CALLS: boolean;
|
|
3409
3396
|
AGENT_MAX_ITERATIONS: number;
|
|
3397
|
+
AGENT_TURN_CREDIT_BUDGET: number;
|
|
3410
3398
|
AGENT_MAX_PARALLEL_TOOL_CALLS: number;
|
|
3411
3399
|
AGENT_HISTORY_CHAR_THRESHOLD: number;
|
|
3412
3400
|
AGENT_SYSTEM_PROMPT: string;
|
|
@@ -3485,7 +3473,6 @@ declare class Arbi {
|
|
|
3485
3473
|
API_TYPE: "local" | "remote";
|
|
3486
3474
|
ENABLE_THINKING: boolean;
|
|
3487
3475
|
MODEL_NAME: string;
|
|
3488
|
-
SYSTEM_INSTRUCTION: string;
|
|
3489
3476
|
TEMPERATURE: number;
|
|
3490
3477
|
MAX_TOKENS: number;
|
|
3491
3478
|
MAX_TOKEN_CONTEXT: number;
|
|
@@ -3531,7 +3518,6 @@ declare class Arbi {
|
|
|
3531
3518
|
SYSTEM_INSTRUCTION: string;
|
|
3532
3519
|
TEMPERATURE: number;
|
|
3533
3520
|
MAX_TOKENS: number;
|
|
3534
|
-
MAX_ITERATIONS: number;
|
|
3535
3521
|
};
|
|
3536
3522
|
ModelCitation: {
|
|
3537
3523
|
SIM_THREASHOLD: number;
|
|
@@ -3625,7 +3611,7 @@ declare class Arbi {
|
|
|
3625
3611
|
IMAGE_ENABLED: boolean;
|
|
3626
3612
|
VISION_ENABLED: boolean;
|
|
3627
3613
|
CONVERSATION_SEARCH_ENABLED: boolean;
|
|
3628
|
-
|
|
3614
|
+
NOTES_ENABLED: boolean;
|
|
3629
3615
|
PERSIST_LEARNINGS: boolean;
|
|
3630
3616
|
SKILLS_ENABLED: boolean;
|
|
3631
3617
|
WORKSPACE_TOOLS_ENABLED: boolean;
|
|
@@ -3636,6 +3622,7 @@ declare class Arbi {
|
|
|
3636
3622
|
AGENT_MODEL_NAME: string;
|
|
3637
3623
|
ENABLE_THINKING: boolean;
|
|
3638
3624
|
AGENT_MAX_ITERATIONS: number;
|
|
3625
|
+
AGENT_TURN_CREDIT_BUDGET: number;
|
|
3639
3626
|
};
|
|
3640
3627
|
DoctagLLM: {
|
|
3641
3628
|
AUTO_RENAME: boolean;
|
|
@@ -3821,7 +3808,7 @@ declare class Arbi {
|
|
|
3821
3808
|
VISION_ENABLED: boolean;
|
|
3822
3809
|
CONVERSATION_SEARCH_ENABLED: boolean;
|
|
3823
3810
|
PERSONAL_AGENT: boolean;
|
|
3824
|
-
|
|
3811
|
+
NOTES_ENABLED: boolean;
|
|
3825
3812
|
PERSIST_LEARNINGS: boolean;
|
|
3826
3813
|
SKILLS_ENABLED: boolean;
|
|
3827
3814
|
SKILL_CREATION: boolean;
|
|
@@ -3838,6 +3825,7 @@ declare class Arbi {
|
|
|
3838
3825
|
ENABLE_THINKING: boolean;
|
|
3839
3826
|
AGENT_STRICT_TOOL_CALLS: boolean;
|
|
3840
3827
|
AGENT_MAX_ITERATIONS: number;
|
|
3828
|
+
AGENT_TURN_CREDIT_BUDGET: number;
|
|
3841
3829
|
AGENT_MAX_PARALLEL_TOOL_CALLS: number;
|
|
3842
3830
|
AGENT_HISTORY_CHAR_THRESHOLD: number;
|
|
3843
3831
|
AGENT_SYSTEM_PROMPT: string;
|
|
@@ -3916,7 +3904,6 @@ declare class Arbi {
|
|
|
3916
3904
|
API_TYPE: "local" | "remote";
|
|
3917
3905
|
ENABLE_THINKING: boolean;
|
|
3918
3906
|
MODEL_NAME: string;
|
|
3919
|
-
SYSTEM_INSTRUCTION: string;
|
|
3920
3907
|
TEMPERATURE: number;
|
|
3921
3908
|
MAX_TOKENS: number;
|
|
3922
3909
|
MAX_TOKEN_CONTEXT: number;
|
|
@@ -3962,7 +3949,6 @@ declare class Arbi {
|
|
|
3962
3949
|
SYSTEM_INSTRUCTION: string;
|
|
3963
3950
|
TEMPERATURE: number;
|
|
3964
3951
|
MAX_TOKENS: number;
|
|
3965
|
-
MAX_ITERATIONS: number;
|
|
3966
3952
|
};
|
|
3967
3953
|
ModelCitation: {
|
|
3968
3954
|
SIM_THREASHOLD: number;
|
|
@@ -4056,7 +4042,7 @@ declare class Arbi {
|
|
|
4056
4042
|
IMAGE_ENABLED: boolean;
|
|
4057
4043
|
VISION_ENABLED: boolean;
|
|
4058
4044
|
CONVERSATION_SEARCH_ENABLED: boolean;
|
|
4059
|
-
|
|
4045
|
+
NOTES_ENABLED: boolean;
|
|
4060
4046
|
PERSIST_LEARNINGS: boolean;
|
|
4061
4047
|
SKILLS_ENABLED: boolean;
|
|
4062
4048
|
WORKSPACE_TOOLS_ENABLED: boolean;
|
|
@@ -4067,6 +4053,7 @@ declare class Arbi {
|
|
|
4067
4053
|
AGENT_MODEL_NAME: string;
|
|
4068
4054
|
ENABLE_THINKING: boolean;
|
|
4069
4055
|
AGENT_MAX_ITERATIONS: number;
|
|
4056
|
+
AGENT_TURN_CREDIT_BUDGET: number;
|
|
4070
4057
|
};
|
|
4071
4058
|
DoctagLLM: {
|
|
4072
4059
|
AUTO_RENAME: boolean;
|
|
@@ -4282,17 +4269,17 @@ declare class Arbi {
|
|
|
4282
4269
|
updated_at: string;
|
|
4283
4270
|
}>;
|
|
4284
4271
|
};
|
|
4285
|
-
readonly
|
|
4286
|
-
create: (body:
|
|
4287
|
-
|
|
4288
|
-
citations?:
|
|
4289
|
-
[key: string]: components["schemas"]["CitationData"];
|
|
4290
|
-
} | null;
|
|
4272
|
+
readonly notes: {
|
|
4273
|
+
create: (body: CreateNoteRequest) => Promise<{
|
|
4274
|
+
text: string;
|
|
4275
|
+
citations?: components["schemas"]["CitationSources"] | null;
|
|
4291
4276
|
external_id: string;
|
|
4292
4277
|
workspace_ext_id: string;
|
|
4293
4278
|
pinned: boolean;
|
|
4294
4279
|
shared: boolean;
|
|
4295
4280
|
source: string;
|
|
4281
|
+
note_date?: string | null;
|
|
4282
|
+
tags: components["schemas"]["NoteTagResponse"][];
|
|
4296
4283
|
created_by_ext_id: string;
|
|
4297
4284
|
created_at: string;
|
|
4298
4285
|
updated_at: string;
|
|
@@ -4300,37 +4287,37 @@ declare class Arbi {
|
|
|
4300
4287
|
list: (options?: {
|
|
4301
4288
|
pinnedOnly?: boolean;
|
|
4302
4289
|
}) => Promise<{
|
|
4303
|
-
|
|
4304
|
-
citations?:
|
|
4305
|
-
[key: string]: components["schemas"]["CitationData"];
|
|
4306
|
-
} | null;
|
|
4290
|
+
text: string;
|
|
4291
|
+
citations?: components["schemas"]["CitationSources"] | null;
|
|
4307
4292
|
external_id: string;
|
|
4308
4293
|
workspace_ext_id: string;
|
|
4309
4294
|
pinned: boolean;
|
|
4310
4295
|
shared: boolean;
|
|
4311
4296
|
source: string;
|
|
4297
|
+
note_date?: string | null;
|
|
4298
|
+
tags: components["schemas"]["NoteTagResponse"][];
|
|
4312
4299
|
created_by_ext_id: string;
|
|
4313
4300
|
created_at: string;
|
|
4314
4301
|
updated_at: string;
|
|
4315
4302
|
}[]>;
|
|
4316
|
-
search: (body:
|
|
4317
|
-
|
|
4303
|
+
search: (body: NoteSearchRequest) => Promise<{
|
|
4304
|
+
notes: components["schemas"]["NoteSearchHit"][];
|
|
4318
4305
|
}>;
|
|
4319
|
-
update: (
|
|
4320
|
-
|
|
4321
|
-
citations?:
|
|
4322
|
-
[key: string]: components["schemas"]["CitationData"];
|
|
4323
|
-
} | null;
|
|
4306
|
+
update: (noteId: string, body: UpdateNoteRequest) => Promise<{
|
|
4307
|
+
text: string;
|
|
4308
|
+
citations?: components["schemas"]["CitationSources"] | null;
|
|
4324
4309
|
external_id: string;
|
|
4325
4310
|
workspace_ext_id: string;
|
|
4326
4311
|
pinned: boolean;
|
|
4327
4312
|
shared: boolean;
|
|
4328
4313
|
source: string;
|
|
4314
|
+
note_date?: string | null;
|
|
4315
|
+
tags: components["schemas"]["NoteTagResponse"][];
|
|
4329
4316
|
created_by_ext_id: string;
|
|
4330
4317
|
created_at: string;
|
|
4331
4318
|
updated_at: string;
|
|
4332
4319
|
}>;
|
|
4333
|
-
delete: (
|
|
4320
|
+
delete: (noteId: string) => Promise<void>;
|
|
4334
4321
|
};
|
|
4335
4322
|
readonly sessions: {
|
|
4336
4323
|
list: () => Promise<{
|
|
@@ -5013,17 +5000,15 @@ declare namespace conversations {
|
|
|
5013
5000
|
* Document-tag (doctag) operations — assign, remove, generate.
|
|
5014
5001
|
*/
|
|
5015
5002
|
|
|
5016
|
-
type
|
|
5003
|
+
type CitationSources = components['schemas']['CitationSources'];
|
|
5017
5004
|
declare function assignDocTags(arbi: ArbiClient, tagId: string, docIds: string[], note?: string | null): Promise<{
|
|
5018
5005
|
note?: string | null | undefined;
|
|
5019
5006
|
citations?: {
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
offset_end: number;
|
|
5026
|
-
};
|
|
5007
|
+
passages: {
|
|
5008
|
+
chunk_id: string;
|
|
5009
|
+
doc_ext_id?: string | null | undefined;
|
|
5010
|
+
page?: number | null | undefined;
|
|
5011
|
+
}[];
|
|
5027
5012
|
} | null | undefined;
|
|
5028
5013
|
doc_ext_id: string;
|
|
5029
5014
|
tag_ext_id: string;
|
|
@@ -5035,17 +5020,15 @@ declare function assignDocTags(arbi: ArbiClient, tagId: string, docIds: string[]
|
|
|
5035
5020
|
declare function removeDocTags(arbi: ArbiClient, tagId: string, docIds: string[]): Promise<void>;
|
|
5036
5021
|
declare function updateDocTag(arbi: ArbiClient, tagId: string, docId: string, updates: {
|
|
5037
5022
|
note?: string | null;
|
|
5038
|
-
citations?:
|
|
5023
|
+
citations?: CitationSources | null;
|
|
5039
5024
|
}): Promise<{
|
|
5040
5025
|
note?: string | null | undefined;
|
|
5041
5026
|
citations?: {
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
offset_end: number;
|
|
5048
|
-
};
|
|
5027
|
+
passages: {
|
|
5028
|
+
chunk_id: string;
|
|
5029
|
+
doc_ext_id?: string | null | undefined;
|
|
5030
|
+
page?: number | null | undefined;
|
|
5031
|
+
}[];
|
|
5049
5032
|
} | null | undefined;
|
|
5050
5033
|
doc_ext_id: string;
|
|
5051
5034
|
tag_ext_id: string;
|
|
@@ -5168,7 +5151,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
5168
5151
|
VISION_ENABLED: boolean;
|
|
5169
5152
|
CONVERSATION_SEARCH_ENABLED: boolean;
|
|
5170
5153
|
PERSONAL_AGENT: boolean;
|
|
5171
|
-
|
|
5154
|
+
NOTES_ENABLED: boolean;
|
|
5172
5155
|
PERSIST_LEARNINGS: boolean;
|
|
5173
5156
|
SKILLS_ENABLED: boolean;
|
|
5174
5157
|
SKILL_CREATION: boolean;
|
|
@@ -5185,6 +5168,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
5185
5168
|
ENABLE_THINKING: boolean;
|
|
5186
5169
|
AGENT_STRICT_TOOL_CALLS: boolean;
|
|
5187
5170
|
AGENT_MAX_ITERATIONS: number;
|
|
5171
|
+
AGENT_TURN_CREDIT_BUDGET: number;
|
|
5188
5172
|
AGENT_MAX_PARALLEL_TOOL_CALLS: number;
|
|
5189
5173
|
AGENT_HISTORY_CHAR_THRESHOLD: number;
|
|
5190
5174
|
AGENT_SYSTEM_PROMPT: string;
|
|
@@ -5263,7 +5247,6 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
5263
5247
|
API_TYPE: "local" | "remote";
|
|
5264
5248
|
ENABLE_THINKING: boolean;
|
|
5265
5249
|
MODEL_NAME: string;
|
|
5266
|
-
SYSTEM_INSTRUCTION: string;
|
|
5267
5250
|
TEMPERATURE: number;
|
|
5268
5251
|
MAX_TOKENS: number;
|
|
5269
5252
|
MAX_TOKEN_CONTEXT: number;
|
|
@@ -5309,7 +5292,6 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
5309
5292
|
SYSTEM_INSTRUCTION: string;
|
|
5310
5293
|
TEMPERATURE: number;
|
|
5311
5294
|
MAX_TOKENS: number;
|
|
5312
|
-
MAX_ITERATIONS: number;
|
|
5313
5295
|
};
|
|
5314
5296
|
ModelCitation: {
|
|
5315
5297
|
SIM_THREASHOLD: number;
|
|
@@ -5403,7 +5385,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
5403
5385
|
IMAGE_ENABLED: boolean;
|
|
5404
5386
|
VISION_ENABLED: boolean;
|
|
5405
5387
|
CONVERSATION_SEARCH_ENABLED: boolean;
|
|
5406
|
-
|
|
5388
|
+
NOTES_ENABLED: boolean;
|
|
5407
5389
|
PERSIST_LEARNINGS: boolean;
|
|
5408
5390
|
SKILLS_ENABLED: boolean;
|
|
5409
5391
|
WORKSPACE_TOOLS_ENABLED: boolean;
|
|
@@ -5414,6 +5396,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
5414
5396
|
AGENT_MODEL_NAME: string;
|
|
5415
5397
|
ENABLE_THINKING: boolean;
|
|
5416
5398
|
AGENT_MAX_ITERATIONS: number;
|
|
5399
|
+
AGENT_TURN_CREDIT_BUDGET: number;
|
|
5417
5400
|
};
|
|
5418
5401
|
DoctagLLM: {
|
|
5419
5402
|
AUTO_RENAME: boolean;
|
|
@@ -5772,4 +5755,4 @@ declare namespace projects {
|
|
|
5772
5755
|
export { type projects_ProjectInvoicesResponse as ProjectInvoicesResponse, type projects_ProjectUpdateRequest as ProjectUpdateRequest, type projects_ProjectUsageResponse as ProjectUsageResponse, type projects_UserDailyUsageResponse as UserDailyUsageResponse, projects_createProject as createProject, projects_deleteProject as deleteProject, projects_getProjectInvoices as getProjectInvoices, projects_getProjectUsage as getProjectUsage, projects_getUserUsageToday as getUserUsageToday, projects_listProjects as listProjects, projects_refreshProject as refreshProject, projects_renameProject as renameProject, projects_updateProject as updateProject };
|
|
5773
5756
|
}
|
|
5774
5757
|
|
|
5775
|
-
export { type ResponseOutputItemDoneEvent as $, type AgentControlStateEvent as A, type ListPaginatedOptions as B, type ChatSession as C, DOC_TERMINAL_STATUSES as D, type
|
|
5758
|
+
export { type ResponseOutputItemDoneEvent as $, type AgentControlStateEvent as A, type ListPaginatedOptions as B, type ChatSession as C, DOC_TERMINAL_STATUSES as D, type MessageMetadataPayload$1 as E, type FormattedWsMessage as F, type MessageQueuedEvent as G, type NoteSearchRequest as H, type NoteSearchResponse as I, type ProbeAnswerEvent as J, type ProjectInvoicesResponse as K, type ListAllOptions as L, type MessageLevel as M, type NoteResponse as N, type OutputTokensDetails as O, type ParsedSlashCommand as P, type ProjectUsageResponse as Q, type QueryOptions as R, type ReconnectOptions as S, type ReconnectableWsConnection as T, type ResolvedCitation as U, type ResolvedRecipient as V, type ResponseCompletedEvent as W, type ResponseContentPartAddedEvent as X, type ResponseCreatedEvent as Y, type ResponseFailedEvent as Z, type ResponseOutputItemAddedEvent as _, type AgentStepDeltaEvent as a, parseSlashTokenInProgress as a$, type ResponseOutputTextDeltaEvent as a0, type ResponseOutputTextDoneEvent as a1, type ResponseUsage as a2, type SSEEvent as a3, type SSEStreamCallbacks as a4, type SSEStreamResult as a5, type SSEStreamStartData as a6, SUPPORTED_EXTENSIONS as a7, type SkillSummary as a8, type SkippedFile as a9, consumeSSEStream as aA, contacts as aB, conversations as aC, countCitations as aD, createAuthenticatedClient as aE, createDocumentWaiter as aF, dm as aG, doctags as aH, documents as aI, files as aJ, filterSkills as aK, formatAgentStepLabel as aL, formatFileSize as aM, formatItemLabel as aN, formatStreamSummary as aO, formatUserName as aP, formatWorkspaceChoices as aQ, formatWsMessage as aR, generateEncryptedWorkspaceKey as aS, generateNewWorkspaceKey as aT, getErrorCode as aU, getErrorMessage as aV, getRawWorkspaceKey as aW, health as aX, notes as aY, parseSSEEvents as aZ, parseSlashCommand as a_, type TaskResponse as aa, type TokenBudgetContext as ab, type UpdateNoteRequest as ac, type UpdateTaskRequest as ad, type UploadBatchResult as ae, type UploadDirectOptions as af, type UploadDirectResult as ag, type UploadOptions as ah, type UploadResult as ai, type UserDailyUsageResponse as aj, type UserInfo as ak, type UserInputRequestEvent as al, type UserMessageEvent as am, WebSocketAuthError as an, type WorkspaceChronologyOut as ao, type WorkspaceContext as ap, type WsConnection as aq, agentconfig as ar, assistant as as, authenticatedFetch as at, buildDocNameMap as au, buildRetrievalChunkTool as av, buildRetrievalFullContextTool as aw, buildRetrievalTocTool as ax, connectWebSocket as ay, connectWithReconnect as az, type AgentStepEvent as b, performPasswordLogin as b0, performSigningKeyLogin as b1, performSsoDeviceFlowLogin as b2, projects as b3, requireData as b4, requireOk as b5, resolveAuth as b6, resolveCitations as b7, resolveWorkspace as b8, responses as b9, selectWorkspace as ba, selectWorkspaceById as bb, settings as bc, streamSSE as bd, stripCitationMarkdown as be, summarizeCitations as bf, tags as bg, tasks as bh, workspaces as bi, Arbi as c, ArbiApiError as d, ArbiError as e, type ArbiErrorEvent as f, type ArbiOptions as g, type ArtifactEvent as h, type AuthContext as i, type AuthHeaders as j, type AuthenticatedClient as k, type CitationSummary as l, type CliConfig as m, type CliCredentials as n, type CommandDescriptor as o, type ConfigStore as p, type ConnectOptions as q, type CreateNoteRequest as r, type CreateTaskRequest as s, type DeferredInterjectionEvent as t, type DmCryptoContext as u, type DocNameMap as v, type DocumentListFields as w, type DocumentListOrder as x, type DocumentWaiter as y, type DocumentWaiterOptions as z };
|