@arbidocs/sdk 0.3.137 → 0.3.139
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-CygvmtPQ.d.cts} +109 -132
- package/dist/{browser-DSk5KK4x.d.ts → browser-CygvmtPQ.d.ts} +109 -132
- package/dist/browser.cjs +31 -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 +31 -34
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +23 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -5
- package/dist/index.d.ts +4 -5
- package/dist/index.js +23 -26
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -685,7 +685,7 @@ declare function formatUserName(user: UserInfo | null | undefined): string;
|
|
|
685
685
|
*/
|
|
686
686
|
|
|
687
687
|
type MessageMetadataPayload = components['schemas']['MessageMetadataPayload'];
|
|
688
|
-
type CitationData
|
|
688
|
+
type CitationData = components['schemas']['CitationData'];
|
|
689
689
|
type Chunk$1 = components['schemas']['Chunk'];
|
|
690
690
|
|
|
691
691
|
/** A fully resolved citation with its source chunks. */
|
|
@@ -693,7 +693,7 @@ interface ResolvedCitation {
|
|
|
693
693
|
/** Citation number as a string (e.g. "1", "2") */
|
|
694
694
|
citationNum: string;
|
|
695
695
|
/** Raw citation data from model_citations */
|
|
696
|
-
citationData: CitationData
|
|
696
|
+
citationData: CitationData;
|
|
697
697
|
/** Resolved chunks matching the citation's chunk_ids */
|
|
698
698
|
chunks: Chunk$1[];
|
|
699
699
|
}
|
|
@@ -882,13 +882,11 @@ declare function listDocuments(arbi: ArbiClient): Promise<{
|
|
|
882
882
|
doctags: {
|
|
883
883
|
note?: string | null | undefined;
|
|
884
884
|
citations?: {
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
offset_end: number;
|
|
891
|
-
};
|
|
885
|
+
passages: {
|
|
886
|
+
chunk_id: string;
|
|
887
|
+
doc_ext_id?: string | null | undefined;
|
|
888
|
+
page?: number | null | undefined;
|
|
889
|
+
}[];
|
|
892
890
|
} | null | undefined;
|
|
893
891
|
doc_ext_id: string;
|
|
894
892
|
tag_ext_id: string;
|
|
@@ -981,13 +979,11 @@ declare function getDocuments(arbi: ArbiClient, externalIds: string[]): Promise<
|
|
|
981
979
|
doctags: {
|
|
982
980
|
note?: string | null | undefined;
|
|
983
981
|
citations?: {
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
offset_end: number;
|
|
990
|
-
};
|
|
982
|
+
passages: {
|
|
983
|
+
chunk_id: string;
|
|
984
|
+
doc_ext_id?: string | null | undefined;
|
|
985
|
+
page?: number | null | undefined;
|
|
986
|
+
}[];
|
|
991
987
|
} | null | undefined;
|
|
992
988
|
doc_ext_id: string;
|
|
993
989
|
tag_ext_id: string;
|
|
@@ -1034,13 +1030,11 @@ declare function updateDocuments(arbi: ArbiClient, documents: DocUpdateRequest$1
|
|
|
1034
1030
|
doctags: {
|
|
1035
1031
|
note?: string | null | undefined;
|
|
1036
1032
|
citations?: {
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
offset_end: number;
|
|
1043
|
-
};
|
|
1033
|
+
passages: {
|
|
1034
|
+
chunk_id: string;
|
|
1035
|
+
doc_ext_id?: string | null | undefined;
|
|
1036
|
+
page?: number | null | undefined;
|
|
1037
|
+
}[];
|
|
1044
1038
|
} | null | undefined;
|
|
1045
1039
|
doc_ext_id: string;
|
|
1046
1040
|
tag_ext_id: string;
|
|
@@ -1890,47 +1884,47 @@ declare namespace tasks {
|
|
|
1890
1884
|
}
|
|
1891
1885
|
|
|
1892
1886
|
/**
|
|
1893
|
-
* Workspace
|
|
1887
|
+
* Workspace note — per-workspace encrypted knowledge notes with citations.
|
|
1894
1888
|
* The firm's practice profile / house style / precedent knowhow lives here and is
|
|
1895
1889
|
* read by grounded agents. All endpoints require an OPEN workspace.
|
|
1896
|
-
* Backend: `/v1/
|
|
1890
|
+
* Backend: `/v1/notes` (src/api/v1/routers/notes.py).
|
|
1897
1891
|
*/
|
|
1898
1892
|
|
|
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
|
|
1893
|
+
type NoteResponse = components['schemas']['NoteResponse'];
|
|
1894
|
+
type CreateNoteRequest = components['schemas']['CreateNoteRequest'];
|
|
1895
|
+
type UpdateNoteRequest = components['schemas']['UpdateNoteRequest'];
|
|
1896
|
+
type NoteSearchRequest = components['schemas']['NoteSearchRequest'];
|
|
1897
|
+
type NoteSearchResponse = components['schemas']['NoteSearchResponse'];
|
|
1898
|
+
/** Create a note. `content` is required; `shared` makes it workspace-wide. */
|
|
1899
|
+
declare function createNote(arbi: ArbiClient, body: CreateNoteRequest): Promise<NoteResponse>;
|
|
1900
|
+
/** List the open workspace's notes (newest first). */
|
|
1901
|
+
declare function listNotes(arbi: ArbiClient, options?: {
|
|
1908
1902
|
pinnedOnly?: boolean;
|
|
1909
|
-
}): Promise<
|
|
1910
|
-
/** Semantic/keyword/hybrid search across the workspace's
|
|
1911
|
-
declare function
|
|
1912
|
-
declare function
|
|
1913
|
-
declare function
|
|
1903
|
+
}): Promise<NoteResponse[]>;
|
|
1904
|
+
/** Semantic/keyword/hybrid search across the workspace's notes. */
|
|
1905
|
+
declare function searchNotes(arbi: ArbiClient, body: NoteSearchRequest): Promise<NoteSearchResponse>;
|
|
1906
|
+
declare function updateNote(arbi: ArbiClient, memoryId: string, body: UpdateNoteRequest): Promise<NoteResponse>;
|
|
1907
|
+
declare function deleteNote(arbi: ArbiClient, memoryId: string): Promise<void>;
|
|
1914
1908
|
|
|
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
|
|
1909
|
+
type notes_CreateNoteRequest = CreateNoteRequest;
|
|
1910
|
+
type notes_NoteResponse = NoteResponse;
|
|
1911
|
+
type notes_NoteSearchRequest = NoteSearchRequest;
|
|
1912
|
+
type notes_NoteSearchResponse = NoteSearchResponse;
|
|
1913
|
+
type notes_UpdateNoteRequest = UpdateNoteRequest;
|
|
1914
|
+
declare const notes_createNote: typeof createNote;
|
|
1915
|
+
declare const notes_deleteNote: typeof deleteNote;
|
|
1916
|
+
declare const notes_listNotes: typeof listNotes;
|
|
1917
|
+
declare const notes_searchNotes: typeof searchNotes;
|
|
1918
|
+
declare const notes_updateNote: typeof updateNote;
|
|
1919
|
+
declare namespace notes {
|
|
1920
|
+
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
1921
|
}
|
|
1928
1922
|
|
|
1929
1923
|
type DocUpdateRequest = components['schemas']['DocUpdateRequest'];
|
|
1930
1924
|
type WorkspaceUpdateRequest$1 = components['schemas']['WorkspaceUpdateRequest'];
|
|
1931
1925
|
type UpdateTagRequest$1 = components['schemas']['UpdateTagRequest'];
|
|
1932
1926
|
type TagFormat = components['schemas']['TagFormat'];
|
|
1933
|
-
type
|
|
1927
|
+
type CitationSources$1 = components['schemas']['CitationSources'];
|
|
1934
1928
|
type UserSettingsUpdate$1 = components['schemas']['UserSettingsUpdate'];
|
|
1935
1929
|
type ConfigUpdateData$1 = components['schemas']['ConfigUpdateData'];
|
|
1936
1930
|
|
|
@@ -2453,13 +2447,11 @@ declare class Arbi {
|
|
|
2453
2447
|
doctags: {
|
|
2454
2448
|
note?: string | null | undefined;
|
|
2455
2449
|
citations?: {
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
offset_end: number;
|
|
2462
|
-
};
|
|
2450
|
+
passages: {
|
|
2451
|
+
chunk_id: string;
|
|
2452
|
+
doc_ext_id?: string | null | undefined;
|
|
2453
|
+
page?: number | null | undefined;
|
|
2454
|
+
}[];
|
|
2463
2455
|
} | null | undefined;
|
|
2464
2456
|
doc_ext_id: string;
|
|
2465
2457
|
tag_ext_id: string;
|
|
@@ -2581,13 +2573,11 @@ declare class Arbi {
|
|
|
2581
2573
|
doctags: {
|
|
2582
2574
|
note?: string | null | undefined;
|
|
2583
2575
|
citations?: {
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
offset_end: number;
|
|
2590
|
-
};
|
|
2576
|
+
passages: {
|
|
2577
|
+
chunk_id: string;
|
|
2578
|
+
doc_ext_id?: string | null | undefined;
|
|
2579
|
+
page?: number | null | undefined;
|
|
2580
|
+
}[];
|
|
2591
2581
|
} | null | undefined;
|
|
2592
2582
|
doc_ext_id: string;
|
|
2593
2583
|
tag_ext_id: string;
|
|
@@ -2634,13 +2624,11 @@ declare class Arbi {
|
|
|
2634
2624
|
doctags: {
|
|
2635
2625
|
note?: string | null | undefined;
|
|
2636
2626
|
citations?: {
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
offset_end: number;
|
|
2643
|
-
};
|
|
2627
|
+
passages: {
|
|
2628
|
+
chunk_id: string;
|
|
2629
|
+
doc_ext_id?: string | null | undefined;
|
|
2630
|
+
page?: number | null | undefined;
|
|
2631
|
+
}[];
|
|
2644
2632
|
} | null | undefined;
|
|
2645
2633
|
doc_ext_id: string;
|
|
2646
2634
|
tag_ext_id: string;
|
|
@@ -3090,13 +3078,11 @@ declare class Arbi {
|
|
|
3090
3078
|
assign: (tagId: string, docIds: string[], note?: string | null) => Promise<{
|
|
3091
3079
|
note?: string | null | undefined;
|
|
3092
3080
|
citations?: {
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
offset_end: number;
|
|
3099
|
-
};
|
|
3081
|
+
passages: {
|
|
3082
|
+
chunk_id: string;
|
|
3083
|
+
doc_ext_id?: string | null | undefined;
|
|
3084
|
+
page?: number | null | undefined;
|
|
3085
|
+
}[];
|
|
3100
3086
|
} | null | undefined;
|
|
3101
3087
|
doc_ext_id: string;
|
|
3102
3088
|
tag_ext_id: string;
|
|
@@ -3108,17 +3094,15 @@ declare class Arbi {
|
|
|
3108
3094
|
remove: (tagId: string, docIds: string[]) => Promise<void>;
|
|
3109
3095
|
update: (tagId: string, docId: string, updates: {
|
|
3110
3096
|
note?: string | null;
|
|
3111
|
-
citations?:
|
|
3097
|
+
citations?: CitationSources$1 | null;
|
|
3112
3098
|
}) => Promise<{
|
|
3113
3099
|
note?: string | null | undefined;
|
|
3114
3100
|
citations?: {
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
offset_end: number;
|
|
3121
|
-
};
|
|
3101
|
+
passages: {
|
|
3102
|
+
chunk_id: string;
|
|
3103
|
+
doc_ext_id?: string | null | undefined;
|
|
3104
|
+
page?: number | null | undefined;
|
|
3105
|
+
}[];
|
|
3122
3106
|
} | null | undefined;
|
|
3123
3107
|
doc_ext_id: string;
|
|
3124
3108
|
tag_ext_id: string;
|
|
@@ -3390,7 +3374,7 @@ declare class Arbi {
|
|
|
3390
3374
|
VISION_ENABLED: boolean;
|
|
3391
3375
|
CONVERSATION_SEARCH_ENABLED: boolean;
|
|
3392
3376
|
PERSONAL_AGENT: boolean;
|
|
3393
|
-
|
|
3377
|
+
NOTES_ENABLED: boolean;
|
|
3394
3378
|
PERSIST_LEARNINGS: boolean;
|
|
3395
3379
|
SKILLS_ENABLED: boolean;
|
|
3396
3380
|
SKILL_CREATION: boolean;
|
|
@@ -3485,7 +3469,6 @@ declare class Arbi {
|
|
|
3485
3469
|
API_TYPE: "local" | "remote";
|
|
3486
3470
|
ENABLE_THINKING: boolean;
|
|
3487
3471
|
MODEL_NAME: string;
|
|
3488
|
-
SYSTEM_INSTRUCTION: string;
|
|
3489
3472
|
TEMPERATURE: number;
|
|
3490
3473
|
MAX_TOKENS: number;
|
|
3491
3474
|
MAX_TOKEN_CONTEXT: number;
|
|
@@ -3625,7 +3608,7 @@ declare class Arbi {
|
|
|
3625
3608
|
IMAGE_ENABLED: boolean;
|
|
3626
3609
|
VISION_ENABLED: boolean;
|
|
3627
3610
|
CONVERSATION_SEARCH_ENABLED: boolean;
|
|
3628
|
-
|
|
3611
|
+
NOTES_ENABLED: boolean;
|
|
3629
3612
|
PERSIST_LEARNINGS: boolean;
|
|
3630
3613
|
SKILLS_ENABLED: boolean;
|
|
3631
3614
|
WORKSPACE_TOOLS_ENABLED: boolean;
|
|
@@ -3821,7 +3804,7 @@ declare class Arbi {
|
|
|
3821
3804
|
VISION_ENABLED: boolean;
|
|
3822
3805
|
CONVERSATION_SEARCH_ENABLED: boolean;
|
|
3823
3806
|
PERSONAL_AGENT: boolean;
|
|
3824
|
-
|
|
3807
|
+
NOTES_ENABLED: boolean;
|
|
3825
3808
|
PERSIST_LEARNINGS: boolean;
|
|
3826
3809
|
SKILLS_ENABLED: boolean;
|
|
3827
3810
|
SKILL_CREATION: boolean;
|
|
@@ -3916,7 +3899,6 @@ declare class Arbi {
|
|
|
3916
3899
|
API_TYPE: "local" | "remote";
|
|
3917
3900
|
ENABLE_THINKING: boolean;
|
|
3918
3901
|
MODEL_NAME: string;
|
|
3919
|
-
SYSTEM_INSTRUCTION: string;
|
|
3920
3902
|
TEMPERATURE: number;
|
|
3921
3903
|
MAX_TOKENS: number;
|
|
3922
3904
|
MAX_TOKEN_CONTEXT: number;
|
|
@@ -4056,7 +4038,7 @@ declare class Arbi {
|
|
|
4056
4038
|
IMAGE_ENABLED: boolean;
|
|
4057
4039
|
VISION_ENABLED: boolean;
|
|
4058
4040
|
CONVERSATION_SEARCH_ENABLED: boolean;
|
|
4059
|
-
|
|
4041
|
+
NOTES_ENABLED: boolean;
|
|
4060
4042
|
PERSIST_LEARNINGS: boolean;
|
|
4061
4043
|
SKILLS_ENABLED: boolean;
|
|
4062
4044
|
WORKSPACE_TOOLS_ENABLED: boolean;
|
|
@@ -4282,17 +4264,17 @@ declare class Arbi {
|
|
|
4282
4264
|
updated_at: string;
|
|
4283
4265
|
}>;
|
|
4284
4266
|
};
|
|
4285
|
-
readonly
|
|
4286
|
-
create: (body:
|
|
4287
|
-
|
|
4288
|
-
citations?:
|
|
4289
|
-
[key: string]: components["schemas"]["CitationData"];
|
|
4290
|
-
} | null;
|
|
4267
|
+
readonly notes: {
|
|
4268
|
+
create: (body: CreateNoteRequest) => Promise<{
|
|
4269
|
+
text: string;
|
|
4270
|
+
citations?: components["schemas"]["CitationSources"] | null;
|
|
4291
4271
|
external_id: string;
|
|
4292
4272
|
workspace_ext_id: string;
|
|
4293
4273
|
pinned: boolean;
|
|
4294
4274
|
shared: boolean;
|
|
4295
4275
|
source: string;
|
|
4276
|
+
note_date?: string | null;
|
|
4277
|
+
tags: components["schemas"]["NoteTagResponse"][];
|
|
4296
4278
|
created_by_ext_id: string;
|
|
4297
4279
|
created_at: string;
|
|
4298
4280
|
updated_at: string;
|
|
@@ -4300,37 +4282,37 @@ declare class Arbi {
|
|
|
4300
4282
|
list: (options?: {
|
|
4301
4283
|
pinnedOnly?: boolean;
|
|
4302
4284
|
}) => Promise<{
|
|
4303
|
-
|
|
4304
|
-
citations?:
|
|
4305
|
-
[key: string]: components["schemas"]["CitationData"];
|
|
4306
|
-
} | null;
|
|
4285
|
+
text: string;
|
|
4286
|
+
citations?: components["schemas"]["CitationSources"] | null;
|
|
4307
4287
|
external_id: string;
|
|
4308
4288
|
workspace_ext_id: string;
|
|
4309
4289
|
pinned: boolean;
|
|
4310
4290
|
shared: boolean;
|
|
4311
4291
|
source: string;
|
|
4292
|
+
note_date?: string | null;
|
|
4293
|
+
tags: components["schemas"]["NoteTagResponse"][];
|
|
4312
4294
|
created_by_ext_id: string;
|
|
4313
4295
|
created_at: string;
|
|
4314
4296
|
updated_at: string;
|
|
4315
4297
|
}[]>;
|
|
4316
|
-
search: (body:
|
|
4317
|
-
|
|
4298
|
+
search: (body: NoteSearchRequest) => Promise<{
|
|
4299
|
+
notes: components["schemas"]["NoteSearchHit"][];
|
|
4318
4300
|
}>;
|
|
4319
|
-
update: (
|
|
4320
|
-
|
|
4321
|
-
citations?:
|
|
4322
|
-
[key: string]: components["schemas"]["CitationData"];
|
|
4323
|
-
} | null;
|
|
4301
|
+
update: (noteId: string, body: UpdateNoteRequest) => Promise<{
|
|
4302
|
+
text: string;
|
|
4303
|
+
citations?: components["schemas"]["CitationSources"] | null;
|
|
4324
4304
|
external_id: string;
|
|
4325
4305
|
workspace_ext_id: string;
|
|
4326
4306
|
pinned: boolean;
|
|
4327
4307
|
shared: boolean;
|
|
4328
4308
|
source: string;
|
|
4309
|
+
note_date?: string | null;
|
|
4310
|
+
tags: components["schemas"]["NoteTagResponse"][];
|
|
4329
4311
|
created_by_ext_id: string;
|
|
4330
4312
|
created_at: string;
|
|
4331
4313
|
updated_at: string;
|
|
4332
4314
|
}>;
|
|
4333
|
-
delete: (
|
|
4315
|
+
delete: (noteId: string) => Promise<void>;
|
|
4334
4316
|
};
|
|
4335
4317
|
readonly sessions: {
|
|
4336
4318
|
list: () => Promise<{
|
|
@@ -5013,17 +4995,15 @@ declare namespace conversations {
|
|
|
5013
4995
|
* Document-tag (doctag) operations — assign, remove, generate.
|
|
5014
4996
|
*/
|
|
5015
4997
|
|
|
5016
|
-
type
|
|
4998
|
+
type CitationSources = components['schemas']['CitationSources'];
|
|
5017
4999
|
declare function assignDocTags(arbi: ArbiClient, tagId: string, docIds: string[], note?: string | null): Promise<{
|
|
5018
5000
|
note?: string | null | undefined;
|
|
5019
5001
|
citations?: {
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
offset_end: number;
|
|
5026
|
-
};
|
|
5002
|
+
passages: {
|
|
5003
|
+
chunk_id: string;
|
|
5004
|
+
doc_ext_id?: string | null | undefined;
|
|
5005
|
+
page?: number | null | undefined;
|
|
5006
|
+
}[];
|
|
5027
5007
|
} | null | undefined;
|
|
5028
5008
|
doc_ext_id: string;
|
|
5029
5009
|
tag_ext_id: string;
|
|
@@ -5035,17 +5015,15 @@ declare function assignDocTags(arbi: ArbiClient, tagId: string, docIds: string[]
|
|
|
5035
5015
|
declare function removeDocTags(arbi: ArbiClient, tagId: string, docIds: string[]): Promise<void>;
|
|
5036
5016
|
declare function updateDocTag(arbi: ArbiClient, tagId: string, docId: string, updates: {
|
|
5037
5017
|
note?: string | null;
|
|
5038
|
-
citations?:
|
|
5018
|
+
citations?: CitationSources | null;
|
|
5039
5019
|
}): Promise<{
|
|
5040
5020
|
note?: string | null | undefined;
|
|
5041
5021
|
citations?: {
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
offset_end: number;
|
|
5048
|
-
};
|
|
5022
|
+
passages: {
|
|
5023
|
+
chunk_id: string;
|
|
5024
|
+
doc_ext_id?: string | null | undefined;
|
|
5025
|
+
page?: number | null | undefined;
|
|
5026
|
+
}[];
|
|
5049
5027
|
} | null | undefined;
|
|
5050
5028
|
doc_ext_id: string;
|
|
5051
5029
|
tag_ext_id: string;
|
|
@@ -5168,7 +5146,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
5168
5146
|
VISION_ENABLED: boolean;
|
|
5169
5147
|
CONVERSATION_SEARCH_ENABLED: boolean;
|
|
5170
5148
|
PERSONAL_AGENT: boolean;
|
|
5171
|
-
|
|
5149
|
+
NOTES_ENABLED: boolean;
|
|
5172
5150
|
PERSIST_LEARNINGS: boolean;
|
|
5173
5151
|
SKILLS_ENABLED: boolean;
|
|
5174
5152
|
SKILL_CREATION: boolean;
|
|
@@ -5263,7 +5241,6 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
5263
5241
|
API_TYPE: "local" | "remote";
|
|
5264
5242
|
ENABLE_THINKING: boolean;
|
|
5265
5243
|
MODEL_NAME: string;
|
|
5266
|
-
SYSTEM_INSTRUCTION: string;
|
|
5267
5244
|
TEMPERATURE: number;
|
|
5268
5245
|
MAX_TOKENS: number;
|
|
5269
5246
|
MAX_TOKEN_CONTEXT: number;
|
|
@@ -5403,7 +5380,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
5403
5380
|
IMAGE_ENABLED: boolean;
|
|
5404
5381
|
VISION_ENABLED: boolean;
|
|
5405
5382
|
CONVERSATION_SEARCH_ENABLED: boolean;
|
|
5406
|
-
|
|
5383
|
+
NOTES_ENABLED: boolean;
|
|
5407
5384
|
PERSIST_LEARNINGS: boolean;
|
|
5408
5385
|
SKILLS_ENABLED: boolean;
|
|
5409
5386
|
WORKSPACE_TOOLS_ENABLED: boolean;
|
|
@@ -5772,4 +5749,4 @@ declare namespace projects {
|
|
|
5772
5749
|
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
5750
|
}
|
|
5774
5751
|
|
|
5775
|
-
export { type ResponseOutputItemDoneEvent as $, type AgentControlStateEvent as A, type ListPaginatedOptions as B, type ChatSession as C, DOC_TERMINAL_STATUSES as D, type
|
|
5752
|
+
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, performPasswordLogin 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, contacts as aA, conversations as aB, countCitations as aC, createAuthenticatedClient as aD, createDocumentWaiter as aE, dm as aF, doctags as aG, documents as aH, files as aI, filterSkills as aJ, formatAgentStepLabel as aK, formatFileSize as aL, formatItemLabel as aM, formatStreamSummary as aN, formatUserName as aO, formatWorkspaceChoices as aP, formatWsMessage as aQ, generateEncryptedWorkspaceKey as aR, generateNewWorkspaceKey as aS, getErrorCode as aT, getErrorMessage as aU, getRawWorkspaceKey as aV, health as aW, notes as aX, parseSSEEvents as aY, parseSlashCommand as aZ, parseSlashTokenInProgress as a_, type TaskResponse as aa, type UpdateNoteRequest as ab, type UpdateTaskRequest as ac, type UploadBatchResult as ad, type UploadDirectOptions as ae, type UploadDirectResult as af, type UploadOptions as ag, type UploadResult as ah, type UserDailyUsageResponse as ai, type UserInfo as aj, type UserInputRequestEvent as ak, type UserMessageEvent as al, WebSocketAuthError as am, type WorkspaceChronologyOut as an, type WorkspaceContext as ao, type WsConnection as ap, agentconfig as aq, assistant as ar, authenticatedFetch as as, buildDocNameMap as at, buildRetrievalChunkTool as au, buildRetrievalFullContextTool as av, buildRetrievalTocTool as aw, connectWebSocket as ax, connectWithReconnect as ay, consumeSSEStream as az, type AgentStepEvent as b, performSigningKeyLogin as b0, performSsoDeviceFlowLogin as b1, projects as b2, requireData as b3, requireOk as b4, resolveAuth as b5, resolveCitations as b6, resolveWorkspace as b7, responses as b8, selectWorkspace as b9, selectWorkspaceById as ba, settings as bb, streamSSE as bc, stripCitationMarkdown as bd, summarizeCitations as be, tags as bf, tasks as bg, workspaces as bh, 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 };
|
package/dist/browser.cjs
CHANGED
|
@@ -5560,46 +5560,43 @@ async function runTask(arbi, taskId) {
|
|
|
5560
5560
|
);
|
|
5561
5561
|
}
|
|
5562
5562
|
|
|
5563
|
-
// src/operations/
|
|
5564
|
-
var
|
|
5565
|
-
__export(
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5563
|
+
// src/operations/notes.ts
|
|
5564
|
+
var notes_exports = {};
|
|
5565
|
+
__export(notes_exports, {
|
|
5566
|
+
createNote: () => createNote,
|
|
5567
|
+
deleteNote: () => deleteNote,
|
|
5568
|
+
listNotes: () => listNotes,
|
|
5569
|
+
searchNotes: () => searchNotes,
|
|
5570
|
+
updateNote: () => updateNote
|
|
5571
5571
|
});
|
|
5572
|
-
async function
|
|
5573
|
-
return requireData(await arbi.fetch.POST("/v1/
|
|
5572
|
+
async function createNote(arbi, body) {
|
|
5573
|
+
return requireData(await arbi.fetch.POST("/v1/notes/", { body }), "Failed to create note");
|
|
5574
5574
|
}
|
|
5575
|
-
async function
|
|
5575
|
+
async function listNotes(arbi, options) {
|
|
5576
5576
|
return requireData(
|
|
5577
|
-
await arbi.fetch.GET("/v1/
|
|
5577
|
+
await arbi.fetch.GET("/v1/notes/list", {
|
|
5578
5578
|
params: { query: { pinned_only: options?.pinnedOnly ?? false } }
|
|
5579
5579
|
}),
|
|
5580
|
-
"Failed to list
|
|
5580
|
+
"Failed to list notes"
|
|
5581
5581
|
);
|
|
5582
5582
|
}
|
|
5583
|
-
async function
|
|
5584
|
-
return requireData(
|
|
5585
|
-
await arbi.fetch.POST("/v1/memory/search", { body }),
|
|
5586
|
-
"Failed to search memories"
|
|
5587
|
-
);
|
|
5583
|
+
async function searchNotes(arbi, body) {
|
|
5584
|
+
return requireData(await arbi.fetch.POST("/v1/notes/search", { body }), "Failed to search notes");
|
|
5588
5585
|
}
|
|
5589
|
-
async function
|
|
5586
|
+
async function updateNote(arbi, memoryId, body) {
|
|
5590
5587
|
return requireData(
|
|
5591
|
-
await arbi.fetch.PATCH("/v1/
|
|
5592
|
-
params: { path: {
|
|
5588
|
+
await arbi.fetch.PATCH("/v1/notes/{note_ext_id}", {
|
|
5589
|
+
params: { path: { note_ext_id: memoryId } },
|
|
5593
5590
|
body
|
|
5594
5591
|
}),
|
|
5595
|
-
"Failed to update
|
|
5592
|
+
"Failed to update note"
|
|
5596
5593
|
);
|
|
5597
5594
|
}
|
|
5598
|
-
async function
|
|
5599
|
-
const { error } = await arbi.fetch.DELETE("/v1/
|
|
5600
|
-
params: { path: {
|
|
5595
|
+
async function deleteNote(arbi, memoryId) {
|
|
5596
|
+
const { error } = await arbi.fetch.DELETE("/v1/notes/{note_ext_id}", {
|
|
5597
|
+
params: { path: { note_ext_id: memoryId } }
|
|
5601
5598
|
});
|
|
5602
|
-
if (error) throw new Error("Failed to delete
|
|
5599
|
+
if (error) throw new Error("Failed to delete note");
|
|
5603
5600
|
}
|
|
5604
5601
|
|
|
5605
5602
|
// src/arbi.ts
|
|
@@ -6078,13 +6075,13 @@ var Arbi = class {
|
|
|
6078
6075
|
delete: (taskId) => deleteTask(this.requireClient(), taskId),
|
|
6079
6076
|
run: (taskId) => runTask(this.requireClient(), taskId)
|
|
6080
6077
|
};
|
|
6081
|
-
// ── Workspace
|
|
6082
|
-
|
|
6083
|
-
create: (body) =>
|
|
6084
|
-
list: (options) =>
|
|
6085
|
-
search: (body) =>
|
|
6086
|
-
update: (
|
|
6087
|
-
delete: (
|
|
6078
|
+
// ── Workspace notes ─────────────────────────────────────────────────
|
|
6079
|
+
notes = {
|
|
6080
|
+
create: (body) => createNote(this.requireClient(), body),
|
|
6081
|
+
list: (options) => listNotes(this.requireClient(), options),
|
|
6082
|
+
search: (body) => searchNotes(this.requireClient(), body),
|
|
6083
|
+
update: (noteId, body) => updateNote(this.requireClient(), noteId, body),
|
|
6084
|
+
delete: (noteId) => deleteNote(this.requireClient(), noteId)
|
|
6088
6085
|
};
|
|
6089
6086
|
// ── Sessions ────────────────────────────────────────────────────────
|
|
6090
6087
|
sessions = {
|
|
@@ -6204,7 +6201,7 @@ exports.formatWorkspaceChoices = formatWorkspaceChoices;
|
|
|
6204
6201
|
exports.getErrorMessage = getErrorMessage;
|
|
6205
6202
|
exports.getRawWorkspaceKey = getRawWorkspaceKey;
|
|
6206
6203
|
exports.health = health_exports;
|
|
6207
|
-
exports.
|
|
6204
|
+
exports.notes = notes_exports;
|
|
6208
6205
|
exports.parseSSEEvents = parseSSEEvents;
|
|
6209
6206
|
exports.parseSlashCommand = parseSlashCommand;
|
|
6210
6207
|
exports.parseSlashTokenInProgress = parseSlashTokenInProgress;
|