@arbidocs/sdk 0.3.19 → 0.3.21
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-D8aF-wkt.d.cts → browser-e3Q9WUjn.d.cts} +321 -52
- package/dist/{browser-D8aF-wkt.d.ts → browser-e3Q9WUjn.d.ts} +321 -52
- package/dist/browser.cjs +7795 -69
- 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 +7796 -70
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +8107 -86
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +232 -4
- package/dist/index.d.ts +232 -4
- package/dist/index.js +8103 -90
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ArbiClient, LoginResult, components, WebSocketServerMessage, WsTaskUpdateMessage } from '@arbidocs/client';
|
|
1
|
+
import { ArbiClient, LoginResult, components, WebSocketServerMessage, WsTaskUpdateMessage, KeyPair } from '@arbidocs/client';
|
|
3
2
|
|
|
4
3
|
/**
|
|
5
4
|
* Core error types and throwing error utilities.
|
|
@@ -49,7 +48,6 @@ declare function getErrorCode(err: unknown): string | undefined;
|
|
|
49
48
|
interface AuthHeaders {
|
|
50
49
|
baseUrl: string;
|
|
51
50
|
accessToken: string;
|
|
52
|
-
workspaceKeyHeader: string;
|
|
53
51
|
}
|
|
54
52
|
interface AuthFetchOptions extends AuthHeaders {
|
|
55
53
|
/** URL path relative to baseUrl (e.g. '/v1/document/upload'). */
|
|
@@ -61,7 +59,8 @@ interface AuthFetchOptions extends AuthHeaders {
|
|
|
61
59
|
}
|
|
62
60
|
/**
|
|
63
61
|
* Make an authenticated fetch request with standard error handling.
|
|
64
|
-
* Automatically sets Authorization
|
|
62
|
+
* Automatically sets Authorization header. Workspace keys are stored
|
|
63
|
+
* server-side on the session — no client-side header needed.
|
|
65
64
|
* Throws on non-ok responses with a human-readable message including server error details.
|
|
66
65
|
*/
|
|
67
66
|
declare function authenticatedFetch(options: AuthFetchOptions): Promise<Response>;
|
|
@@ -79,21 +78,25 @@ interface CliConfig {
|
|
|
79
78
|
notifications?: boolean;
|
|
80
79
|
verbose?: boolean;
|
|
81
80
|
watch?: boolean;
|
|
81
|
+
/** Default orchestrator for `arbi agent connect` (e.g. "claude") */
|
|
82
|
+
orchestrator?: string;
|
|
82
83
|
}
|
|
83
84
|
interface CliCredentials {
|
|
84
85
|
email: string;
|
|
85
86
|
signingPrivateKeyBase64: string;
|
|
86
87
|
serverSessionKeyBase64: string;
|
|
87
|
-
/** Cached
|
|
88
|
+
/** Cached access token from last successful resolveWorkspace() */
|
|
88
89
|
accessToken?: string;
|
|
89
|
-
/** Cached workspace key
|
|
90
|
-
|
|
90
|
+
/** Cached session-sealed workspace key from last successful resolveWorkspace() */
|
|
91
|
+
sealedWorkspaceKey?: string;
|
|
91
92
|
/** Workspace ID the cached token was issued for */
|
|
92
93
|
workspaceId?: string;
|
|
93
94
|
/** ISO timestamp when the token was cached */
|
|
94
95
|
tokenTimestamp?: string;
|
|
95
96
|
/** Auth0 SSO token — needed for session recovery of SSO users */
|
|
96
97
|
ssoToken?: string;
|
|
98
|
+
/** Parent user ext_id — set for persistent agent accounts */
|
|
99
|
+
parentExtId?: string;
|
|
97
100
|
}
|
|
98
101
|
interface ChatSession {
|
|
99
102
|
/** Last assistant message ID — used as previous_response_id for follow-ups */
|
|
@@ -141,7 +144,7 @@ interface AuthContext {
|
|
|
141
144
|
interface WorkspaceContext extends AuthContext {
|
|
142
145
|
workspaceId: string;
|
|
143
146
|
accessToken: string;
|
|
144
|
-
|
|
147
|
+
sealedWorkspaceKey: string;
|
|
145
148
|
}
|
|
146
149
|
/** Minimal workspace shape required by formatWorkspaceChoices. */
|
|
147
150
|
interface WorkspaceForChoice {
|
|
@@ -187,15 +190,21 @@ declare function performSsoDeviceFlowLogin(config: CliConfig, email: string, pas
|
|
|
187
190
|
onPoll?: (elapsedMs: number) => void;
|
|
188
191
|
}): Promise<AuthContext>;
|
|
189
192
|
/**
|
|
190
|
-
* Decrypt wrapped workspace key and
|
|
193
|
+
* Decrypt wrapped workspace key and generate the encrypted workspace key header.
|
|
194
|
+
* Returns the encrypted key string for use with /open.
|
|
191
195
|
*/
|
|
192
|
-
declare function selectWorkspace(arbi: ArbiClient, workspaceId: string, wrappedKey: string, serverSessionKey: Uint8Array, signingPrivateKeyBase64: string): Promise<
|
|
196
|
+
declare function selectWorkspace(arbi: ArbiClient, workspaceId: string, wrappedKey: string, serverSessionKey: Uint8Array, signingPrivateKeyBase64: string): Promise<string>;
|
|
193
197
|
/**
|
|
194
198
|
* Generate an encrypted workspace key for the given workspace.
|
|
195
199
|
* Used for operations that need a key for a workspace other than the current one
|
|
196
200
|
* (e.g., copy documents to a target workspace).
|
|
197
201
|
*/
|
|
198
202
|
declare function generateEncryptedWorkspaceKey(arbi: ArbiClient, wrappedKey: string, serverSessionKey: Uint8Array, signingPrivateKeyBase64: string): Promise<string>;
|
|
203
|
+
/**
|
|
204
|
+
* Generate a random workspace key encrypted with the session public key.
|
|
205
|
+
* Used when creating new workspaces.
|
|
206
|
+
*/
|
|
207
|
+
declare function generateNewWorkspaceKey(arbi: ArbiClient, serverSessionKey: Uint8Array): Promise<string>;
|
|
199
208
|
/**
|
|
200
209
|
* Find a workspace by ID in the user's workspace list, select it, and return workspace info.
|
|
201
210
|
*/
|
|
@@ -836,9 +845,10 @@ declare function listContacts(arbi: ArbiClient): Promise<{
|
|
|
836
845
|
email: string;
|
|
837
846
|
user?: {
|
|
838
847
|
external_id: string;
|
|
848
|
+
parent_ext_id?: string | null | undefined;
|
|
839
849
|
email: string;
|
|
840
850
|
given_name: string;
|
|
841
|
-
family_name
|
|
851
|
+
family_name?: string | null | undefined;
|
|
842
852
|
picture?: string | null | undefined;
|
|
843
853
|
encryption_public_key: string;
|
|
844
854
|
} | null | undefined;
|
|
@@ -850,9 +860,10 @@ declare function addContacts(arbi: ArbiClient, emails: string[]): Promise<{
|
|
|
850
860
|
email: string;
|
|
851
861
|
user?: {
|
|
852
862
|
external_id: string;
|
|
863
|
+
parent_ext_id?: string | null | undefined;
|
|
853
864
|
email: string;
|
|
854
865
|
given_name: string;
|
|
855
|
-
family_name
|
|
866
|
+
family_name?: string | null | undefined;
|
|
856
867
|
picture?: string | null | undefined;
|
|
857
868
|
encryption_public_key: string;
|
|
858
869
|
} | null | undefined;
|
|
@@ -1075,9 +1086,10 @@ declare class Arbi {
|
|
|
1075
1086
|
users: {
|
|
1076
1087
|
user: {
|
|
1077
1088
|
external_id: string;
|
|
1089
|
+
parent_ext_id?: string | null | undefined;
|
|
1078
1090
|
email: string;
|
|
1079
1091
|
given_name: string;
|
|
1080
|
-
family_name
|
|
1092
|
+
family_name?: string | null | undefined;
|
|
1081
1093
|
picture?: string | null | undefined;
|
|
1082
1094
|
encryption_public_key: string;
|
|
1083
1095
|
};
|
|
@@ -1085,6 +1097,7 @@ declare class Arbi {
|
|
|
1085
1097
|
joined_at: string;
|
|
1086
1098
|
conversation_count: number;
|
|
1087
1099
|
document_count: number;
|
|
1100
|
+
agent_ext_id?: string | null | undefined;
|
|
1088
1101
|
}[];
|
|
1089
1102
|
}[]>;
|
|
1090
1103
|
create: (name: string, description?: string | null, isPublic?: boolean) => Promise<{
|
|
@@ -1105,9 +1118,10 @@ declare class Arbi {
|
|
|
1105
1118
|
users: {
|
|
1106
1119
|
user: {
|
|
1107
1120
|
external_id: string;
|
|
1121
|
+
parent_ext_id?: string | null | undefined;
|
|
1108
1122
|
email: string;
|
|
1109
1123
|
given_name: string;
|
|
1110
|
-
family_name
|
|
1124
|
+
family_name?: string | null | undefined;
|
|
1111
1125
|
picture?: string | null | undefined;
|
|
1112
1126
|
encryption_public_key: string;
|
|
1113
1127
|
};
|
|
@@ -1115,6 +1129,7 @@ declare class Arbi {
|
|
|
1115
1129
|
joined_at: string;
|
|
1116
1130
|
conversation_count: number;
|
|
1117
1131
|
document_count: number;
|
|
1132
|
+
agent_ext_id?: string | null | undefined;
|
|
1118
1133
|
}[];
|
|
1119
1134
|
}>;
|
|
1120
1135
|
delete: (workspaceIds: string[]) => Promise<void>;
|
|
@@ -1136,9 +1151,10 @@ declare class Arbi {
|
|
|
1136
1151
|
users: {
|
|
1137
1152
|
user: {
|
|
1138
1153
|
external_id: string;
|
|
1154
|
+
parent_ext_id?: string | null | undefined;
|
|
1139
1155
|
email: string;
|
|
1140
1156
|
given_name: string;
|
|
1141
|
-
family_name
|
|
1157
|
+
family_name?: string | null | undefined;
|
|
1142
1158
|
picture?: string | null | undefined;
|
|
1143
1159
|
encryption_public_key: string;
|
|
1144
1160
|
};
|
|
@@ -1146,14 +1162,16 @@ declare class Arbi {
|
|
|
1146
1162
|
joined_at: string;
|
|
1147
1163
|
conversation_count: number;
|
|
1148
1164
|
document_count: number;
|
|
1165
|
+
agent_ext_id?: string | null | undefined;
|
|
1149
1166
|
}[];
|
|
1150
1167
|
}>;
|
|
1151
1168
|
listUsers: () => Promise<{
|
|
1152
1169
|
user: {
|
|
1153
1170
|
external_id: string;
|
|
1171
|
+
parent_ext_id?: string | null | undefined;
|
|
1154
1172
|
email: string;
|
|
1155
1173
|
given_name: string;
|
|
1156
|
-
family_name
|
|
1174
|
+
family_name?: string | null | undefined;
|
|
1157
1175
|
picture?: string | null | undefined;
|
|
1158
1176
|
encryption_public_key: string;
|
|
1159
1177
|
};
|
|
@@ -1161,13 +1179,15 @@ declare class Arbi {
|
|
|
1161
1179
|
joined_at: string;
|
|
1162
1180
|
conversation_count: number;
|
|
1163
1181
|
document_count: number;
|
|
1182
|
+
agent_ext_id?: string | null | undefined;
|
|
1164
1183
|
}[]>;
|
|
1165
1184
|
addUsers: (emails: string[], role?: "owner" | "collaborator" | "guest") => Promise<{
|
|
1166
1185
|
user: {
|
|
1167
1186
|
external_id: string;
|
|
1187
|
+
parent_ext_id?: string | null | undefined;
|
|
1168
1188
|
email: string;
|
|
1169
1189
|
given_name: string;
|
|
1170
|
-
family_name
|
|
1190
|
+
family_name?: string | null | undefined;
|
|
1171
1191
|
picture?: string | null | undefined;
|
|
1172
1192
|
encryption_public_key: string;
|
|
1173
1193
|
};
|
|
@@ -1175,14 +1195,16 @@ declare class Arbi {
|
|
|
1175
1195
|
joined_at: string;
|
|
1176
1196
|
conversation_count: number;
|
|
1177
1197
|
document_count: number;
|
|
1198
|
+
agent_ext_id?: string | null | undefined;
|
|
1178
1199
|
}[]>;
|
|
1179
1200
|
removeUsers: (userIds: string[]) => Promise<void>;
|
|
1180
1201
|
setUserRole: (userIds: string[], role: "owner" | "collaborator" | "guest") => Promise<{
|
|
1181
1202
|
user: {
|
|
1182
1203
|
external_id: string;
|
|
1204
|
+
parent_ext_id?: string | null | undefined;
|
|
1183
1205
|
email: string;
|
|
1184
1206
|
given_name: string;
|
|
1185
|
-
family_name
|
|
1207
|
+
family_name?: string | null | undefined;
|
|
1186
1208
|
picture?: string | null | undefined;
|
|
1187
1209
|
encryption_public_key: string;
|
|
1188
1210
|
};
|
|
@@ -1190,6 +1212,7 @@ declare class Arbi {
|
|
|
1190
1212
|
joined_at: string;
|
|
1191
1213
|
conversation_count: number;
|
|
1192
1214
|
document_count: number;
|
|
1215
|
+
agent_ext_id?: string | null | undefined;
|
|
1193
1216
|
}[]>;
|
|
1194
1217
|
copyDocuments: (targetWorkspaceId: string, docIds: string[], targetWorkspaceKey: string) => Promise<{
|
|
1195
1218
|
detail: string;
|
|
@@ -1372,6 +1395,7 @@ declare class Arbi {
|
|
|
1372
1395
|
updated_at: string;
|
|
1373
1396
|
is_shared: boolean;
|
|
1374
1397
|
message_count: number;
|
|
1398
|
+
last_message_status?: string | null | undefined;
|
|
1375
1399
|
}[]>;
|
|
1376
1400
|
getThreads: (conversationId: string) => Promise<{
|
|
1377
1401
|
conversation_ext_id: string;
|
|
@@ -1793,9 +1817,10 @@ declare class Arbi {
|
|
|
1793
1817
|
email: string;
|
|
1794
1818
|
user?: {
|
|
1795
1819
|
external_id: string;
|
|
1820
|
+
parent_ext_id?: string | null | undefined;
|
|
1796
1821
|
email: string;
|
|
1797
1822
|
given_name: string;
|
|
1798
|
-
family_name
|
|
1823
|
+
family_name?: string | null | undefined;
|
|
1799
1824
|
picture?: string | null | undefined;
|
|
1800
1825
|
encryption_public_key: string;
|
|
1801
1826
|
} | null | undefined;
|
|
@@ -1807,9 +1832,10 @@ declare class Arbi {
|
|
|
1807
1832
|
email: string;
|
|
1808
1833
|
user?: {
|
|
1809
1834
|
external_id: string;
|
|
1835
|
+
parent_ext_id?: string | null | undefined;
|
|
1810
1836
|
email: string;
|
|
1811
1837
|
given_name: string;
|
|
1812
|
-
family_name
|
|
1838
|
+
family_name?: string | null | undefined;
|
|
1813
1839
|
picture?: string | null | undefined;
|
|
1814
1840
|
encryption_public_key: string;
|
|
1815
1841
|
} | null | undefined;
|
|
@@ -1825,17 +1851,19 @@ declare class Arbi {
|
|
|
1825
1851
|
external_id: string;
|
|
1826
1852
|
sender: {
|
|
1827
1853
|
external_id: string;
|
|
1854
|
+
parent_ext_id?: string | null | undefined;
|
|
1828
1855
|
email: string;
|
|
1829
1856
|
given_name: string;
|
|
1830
|
-
family_name
|
|
1857
|
+
family_name?: string | null | undefined;
|
|
1831
1858
|
picture?: string | null | undefined;
|
|
1832
1859
|
encryption_public_key: string;
|
|
1833
1860
|
};
|
|
1834
1861
|
recipient: {
|
|
1835
1862
|
external_id: string;
|
|
1863
|
+
parent_ext_id?: string | null | undefined;
|
|
1836
1864
|
email: string;
|
|
1837
1865
|
given_name: string;
|
|
1838
|
-
family_name
|
|
1866
|
+
family_name?: string | null | undefined;
|
|
1839
1867
|
picture?: string | null | undefined;
|
|
1840
1868
|
encryption_public_key: string;
|
|
1841
1869
|
};
|
|
@@ -1853,17 +1881,19 @@ declare class Arbi {
|
|
|
1853
1881
|
external_id: string;
|
|
1854
1882
|
sender: {
|
|
1855
1883
|
external_id: string;
|
|
1884
|
+
parent_ext_id?: string | null | undefined;
|
|
1856
1885
|
email: string;
|
|
1857
1886
|
given_name: string;
|
|
1858
|
-
family_name
|
|
1887
|
+
family_name?: string | null | undefined;
|
|
1859
1888
|
picture?: string | null | undefined;
|
|
1860
1889
|
encryption_public_key: string;
|
|
1861
1890
|
};
|
|
1862
1891
|
recipient: {
|
|
1863
1892
|
external_id: string;
|
|
1893
|
+
parent_ext_id?: string | null | undefined;
|
|
1864
1894
|
email: string;
|
|
1865
1895
|
given_name: string;
|
|
1866
|
-
family_name
|
|
1896
|
+
family_name?: string | null | undefined;
|
|
1867
1897
|
picture?: string | null | undefined;
|
|
1868
1898
|
encryption_public_key: string;
|
|
1869
1899
|
};
|
|
@@ -1878,17 +1908,19 @@ declare class Arbi {
|
|
|
1878
1908
|
external_id: string;
|
|
1879
1909
|
sender: {
|
|
1880
1910
|
external_id: string;
|
|
1911
|
+
parent_ext_id?: string | null | undefined;
|
|
1881
1912
|
email: string;
|
|
1882
1913
|
given_name: string;
|
|
1883
|
-
family_name
|
|
1914
|
+
family_name?: string | null | undefined;
|
|
1884
1915
|
picture?: string | null | undefined;
|
|
1885
1916
|
encryption_public_key: string;
|
|
1886
1917
|
};
|
|
1887
1918
|
recipient: {
|
|
1888
1919
|
external_id: string;
|
|
1920
|
+
parent_ext_id?: string | null | undefined;
|
|
1889
1921
|
email: string;
|
|
1890
1922
|
given_name: string;
|
|
1891
|
-
family_name
|
|
1923
|
+
family_name?: string | null | undefined;
|
|
1892
1924
|
picture?: string | null | undefined;
|
|
1893
1925
|
encryption_public_key: string;
|
|
1894
1926
|
};
|
|
@@ -1924,8 +1956,11 @@ declare class Arbi {
|
|
|
1924
1956
|
show_help_page: boolean;
|
|
1925
1957
|
show_templates: boolean;
|
|
1926
1958
|
show_pa_mode: boolean;
|
|
1959
|
+
show_agent_sessions: boolean;
|
|
1927
1960
|
hide_online_status: boolean;
|
|
1928
1961
|
muted_users: string[];
|
|
1962
|
+
premium_model?: string | null | undefined;
|
|
1963
|
+
picture?: string | null | undefined;
|
|
1929
1964
|
}>;
|
|
1930
1965
|
update: (body: UserSettingsUpdate$1) => Promise<void>;
|
|
1931
1966
|
};
|
|
@@ -1957,8 +1992,6 @@ declare class Arbi {
|
|
|
1957
1992
|
SUGGESTED_QUERIES: boolean;
|
|
1958
1993
|
ARTIFACTS_ENABLED: boolean;
|
|
1959
1994
|
VISION_ENABLED: boolean;
|
|
1960
|
-
DOC_INDEX_COMPACT_THRESHOLD: number;
|
|
1961
|
-
DOC_INDEX_SKIP_THRESHOLD: number;
|
|
1962
1995
|
PERSONAL_AGENT: boolean;
|
|
1963
1996
|
MEMORY_ENABLED: boolean;
|
|
1964
1997
|
SKILLS_ENABLED: boolean;
|
|
@@ -1969,13 +2002,15 @@ declare class Arbi {
|
|
|
1969
2002
|
AGENT_API_TYPE: "local" | "remote";
|
|
1970
2003
|
LLM_AGENT_TEMPERATURE: number;
|
|
1971
2004
|
AGENT_MAX_TOKENS: number;
|
|
2005
|
+
ENABLE_THINKING: boolean;
|
|
1972
2006
|
AGENT_MAX_ITERATIONS: number;
|
|
1973
|
-
|
|
2007
|
+
AGENT_MAX_PARALLEL_TOOL_CALLS: number;
|
|
1974
2008
|
AGENT_HISTORY_CHAR_THRESHOLD: number;
|
|
1975
2009
|
AGENT_SYSTEM_PROMPT: string;
|
|
1976
2010
|
};
|
|
1977
2011
|
QueryLLM: {
|
|
1978
2012
|
API_TYPE: "local" | "remote";
|
|
2013
|
+
ENABLE_THINKING: boolean;
|
|
1979
2014
|
MODEL_NAME: string;
|
|
1980
2015
|
SYSTEM_INSTRUCTION: string;
|
|
1981
2016
|
MAX_CHAR_SIZE_TO_ANSWER: number;
|
|
@@ -1984,6 +2019,7 @@ declare class Arbi {
|
|
|
1984
2019
|
};
|
|
1985
2020
|
ReviewLLM: {
|
|
1986
2021
|
API_TYPE: "local" | "remote";
|
|
2022
|
+
ENABLE_THINKING: boolean;
|
|
1987
2023
|
MODEL_NAME: string;
|
|
1988
2024
|
SYSTEM_INSTRUCTION: string;
|
|
1989
2025
|
TEMPERATURE: number;
|
|
@@ -1992,6 +2028,7 @@ declare class Arbi {
|
|
|
1992
2028
|
};
|
|
1993
2029
|
EvaluatorLLM: {
|
|
1994
2030
|
API_TYPE: "local" | "remote";
|
|
2031
|
+
ENABLE_THINKING: boolean;
|
|
1995
2032
|
MODEL_NAME: string;
|
|
1996
2033
|
SYSTEM_INSTRUCTION: string;
|
|
1997
2034
|
TEMPERATURE: number;
|
|
@@ -2000,6 +2037,7 @@ declare class Arbi {
|
|
|
2000
2037
|
};
|
|
2001
2038
|
TitleLLM: {
|
|
2002
2039
|
API_TYPE: "local" | "remote";
|
|
2040
|
+
ENABLE_THINKING: boolean;
|
|
2003
2041
|
MODEL_NAME: string;
|
|
2004
2042
|
SYSTEM_INSTRUCTION: string;
|
|
2005
2043
|
MAX_CHAR_SIZE_TO_ANSWER: number;
|
|
@@ -2008,6 +2046,7 @@ declare class Arbi {
|
|
|
2008
2046
|
};
|
|
2009
2047
|
SummariseLLM: {
|
|
2010
2048
|
API_TYPE: "local" | "remote";
|
|
2049
|
+
ENABLE_THINKING: boolean;
|
|
2011
2050
|
MODEL_NAME: string;
|
|
2012
2051
|
SYSTEM_INSTRUCTION: string;
|
|
2013
2052
|
TEMPERATURE: number;
|
|
@@ -2018,6 +2057,7 @@ declare class Arbi {
|
|
|
2018
2057
|
};
|
|
2019
2058
|
DoctagLLM: {
|
|
2020
2059
|
API_TYPE: "local" | "remote";
|
|
2060
|
+
ENABLE_THINKING: boolean;
|
|
2021
2061
|
MODEL_NAME: string;
|
|
2022
2062
|
SYSTEM_INSTRUCTION: string;
|
|
2023
2063
|
MAX_CHAR_CONTEXT_TO_ANSWER: number;
|
|
@@ -2035,6 +2075,7 @@ declare class Arbi {
|
|
|
2035
2075
|
};
|
|
2036
2076
|
MemoryLLM: {
|
|
2037
2077
|
API_TYPE: "local" | "remote";
|
|
2078
|
+
ENABLE_THINKING: boolean;
|
|
2038
2079
|
MODEL_NAME: string;
|
|
2039
2080
|
SYSTEM_INSTRUCTION: string;
|
|
2040
2081
|
TEMPERATURE: number;
|
|
@@ -2044,6 +2085,7 @@ declare class Arbi {
|
|
|
2044
2085
|
};
|
|
2045
2086
|
PlanningLLM: {
|
|
2046
2087
|
API_TYPE: "local" | "remote";
|
|
2088
|
+
ENABLE_THINKING: boolean;
|
|
2047
2089
|
MODEL_NAME: string;
|
|
2048
2090
|
SYSTEM_INSTRUCTION: string;
|
|
2049
2091
|
TEMPERATURE: number;
|
|
@@ -2051,8 +2093,17 @@ declare class Arbi {
|
|
|
2051
2093
|
MAX_CHAR_SIZE_TO_ANSWER: number;
|
|
2052
2094
|
APPROVAL_TIMEOUT: number;
|
|
2053
2095
|
};
|
|
2096
|
+
FilterPlanLLM: {
|
|
2097
|
+
API_TYPE: "local" | "remote";
|
|
2098
|
+
ENABLE_THINKING: boolean;
|
|
2099
|
+
MODEL_NAME: string;
|
|
2100
|
+
SYSTEM_INSTRUCTION: string;
|
|
2101
|
+
TEMPERATURE: number;
|
|
2102
|
+
MAX_TOKENS: number;
|
|
2103
|
+
};
|
|
2054
2104
|
VisionLLM: {
|
|
2055
2105
|
API_TYPE: "local" | "remote";
|
|
2106
|
+
ENABLE_THINKING: boolean;
|
|
2056
2107
|
MODEL_NAME: string;
|
|
2057
2108
|
TEMPERATURE: number;
|
|
2058
2109
|
MAX_TOKENS: number;
|
|
@@ -2061,6 +2112,7 @@ declare class Arbi {
|
|
|
2061
2112
|
};
|
|
2062
2113
|
CodeAgent: {
|
|
2063
2114
|
API_TYPE: "local" | "remote";
|
|
2115
|
+
ENABLE_THINKING: boolean;
|
|
2064
2116
|
MODEL_NAME: string;
|
|
2065
2117
|
SYSTEM_INSTRUCTION: string;
|
|
2066
2118
|
TEMPERATURE: number;
|
|
@@ -2071,6 +2123,7 @@ declare class Arbi {
|
|
|
2071
2123
|
SIM_THREASHOLD: number;
|
|
2072
2124
|
MIN_CHAR_SIZE_TO_ANSWER: number;
|
|
2073
2125
|
MAX_NUMB_CITATIONS: number;
|
|
2126
|
+
CITATION_INSTRUCTION: string;
|
|
2074
2127
|
};
|
|
2075
2128
|
Retriever: {
|
|
2076
2129
|
MIN_RETRIEVAL_SIM_SCORE: number;
|
|
@@ -2078,9 +2131,9 @@ declare class Arbi {
|
|
|
2078
2131
|
MAX_TOTAL_CHUNKS_TO_RETRIEVE: number;
|
|
2079
2132
|
GROUP_SIZE: number;
|
|
2080
2133
|
SEARCH_MODE: components["schemas"]["SearchMode"];
|
|
2134
|
+
HYBRID_PREFETCH_LIMIT: number;
|
|
2081
2135
|
HYBRID_DENSE_WEIGHT: number;
|
|
2082
2136
|
HYBRID_SPARSE_WEIGHT: number;
|
|
2083
|
-
HYBRID_RERANKER_WEIGHT: number;
|
|
2084
2137
|
};
|
|
2085
2138
|
Reranker: {
|
|
2086
2139
|
MIN_SCORE: number;
|
|
@@ -2088,6 +2141,7 @@ declare class Arbi {
|
|
|
2088
2141
|
MAX_CONCURRENT_REQUESTS: number;
|
|
2089
2142
|
MODEL_NAME: string;
|
|
2090
2143
|
API_TYPE: "local" | "remote";
|
|
2144
|
+
RETRIEVAL_INSTRUCTION: string;
|
|
2091
2145
|
};
|
|
2092
2146
|
Parser: {
|
|
2093
2147
|
SKIP_DUPLICATES: boolean;
|
|
@@ -2247,6 +2301,48 @@ declare class Arbi {
|
|
|
2247
2301
|
}>;
|
|
2248
2302
|
getContent: (fileId: string) => Promise<Response>;
|
|
2249
2303
|
};
|
|
2304
|
+
readonly agents: {
|
|
2305
|
+
list: () => Promise<{
|
|
2306
|
+
external_id: string;
|
|
2307
|
+
parent_ext_id?: string | null;
|
|
2308
|
+
email: string;
|
|
2309
|
+
given_name: string;
|
|
2310
|
+
family_name?: string | null;
|
|
2311
|
+
picture?: string | null;
|
|
2312
|
+
encryption_public_key: string;
|
|
2313
|
+
}[]>;
|
|
2314
|
+
delete: (agentExtIds: string[]) => Promise<{
|
|
2315
|
+
[x: string]: unknown;
|
|
2316
|
+
}>;
|
|
2317
|
+
};
|
|
2318
|
+
readonly sessions: {
|
|
2319
|
+
list: () => Promise<{
|
|
2320
|
+
session_id: string;
|
|
2321
|
+
external_id?: string | null;
|
|
2322
|
+
name?: string | null;
|
|
2323
|
+
ip_address?: string | null;
|
|
2324
|
+
active_workspace?: string | null;
|
|
2325
|
+
workspaces: string[];
|
|
2326
|
+
status: string;
|
|
2327
|
+
ttl: number;
|
|
2328
|
+
}[]>;
|
|
2329
|
+
authorize: (workspaces: Record<string, string>, options?: {
|
|
2330
|
+
activeWorkspace?: string;
|
|
2331
|
+
ttl?: number;
|
|
2332
|
+
persistIdentity?: boolean;
|
|
2333
|
+
name?: string;
|
|
2334
|
+
}) => Promise<{
|
|
2335
|
+
claim_code: string;
|
|
2336
|
+
}>;
|
|
2337
|
+
claim: (claimCode: string, signingKey?: string) => Promise<{
|
|
2338
|
+
access_token: string;
|
|
2339
|
+
session_key: string;
|
|
2340
|
+
user: components["schemas"]["UserResponse"];
|
|
2341
|
+
workspaces: {
|
|
2342
|
+
[key: string]: unknown;
|
|
2343
|
+
}[];
|
|
2344
|
+
}>;
|
|
2345
|
+
};
|
|
2250
2346
|
private requireClient;
|
|
2251
2347
|
private requireLogin;
|
|
2252
2348
|
private requireWorkspace;
|
|
@@ -2275,9 +2371,10 @@ declare function listWorkspaces(arbi: ArbiClient): Promise<{
|
|
|
2275
2371
|
users: {
|
|
2276
2372
|
user: {
|
|
2277
2373
|
external_id: string;
|
|
2374
|
+
parent_ext_id?: string | null | undefined;
|
|
2278
2375
|
email: string;
|
|
2279
2376
|
given_name: string;
|
|
2280
|
-
family_name
|
|
2377
|
+
family_name?: string | null | undefined;
|
|
2281
2378
|
picture?: string | null | undefined;
|
|
2282
2379
|
encryption_public_key: string;
|
|
2283
2380
|
};
|
|
@@ -2285,9 +2382,17 @@ declare function listWorkspaces(arbi: ArbiClient): Promise<{
|
|
|
2285
2382
|
joined_at: string;
|
|
2286
2383
|
conversation_count: number;
|
|
2287
2384
|
document_count: number;
|
|
2385
|
+
agent_ext_id?: string | null | undefined;
|
|
2288
2386
|
}[];
|
|
2289
2387
|
}[]>;
|
|
2290
|
-
|
|
2388
|
+
/**
|
|
2389
|
+
* Create a workspace with a pre-encrypted workspace key.
|
|
2390
|
+
*
|
|
2391
|
+
* The caller must generate a random 32-byte key, encrypt it with the session
|
|
2392
|
+
* public key (SealedBox via `sealKeyForSession`), and pass it here.
|
|
2393
|
+
* Use `Arbi.workspaces.create()` for automatic key generation.
|
|
2394
|
+
*/
|
|
2395
|
+
declare function createWorkspace(arbi: ArbiClient, name: string, encryptedWorkspaceKey: string, description?: string | null, isPublic?: boolean): Promise<{
|
|
2291
2396
|
external_id: string;
|
|
2292
2397
|
name: string;
|
|
2293
2398
|
description: string | null;
|
|
@@ -2305,9 +2410,10 @@ declare function createWorkspace(arbi: ArbiClient, name: string, description?: s
|
|
|
2305
2410
|
users: {
|
|
2306
2411
|
user: {
|
|
2307
2412
|
external_id: string;
|
|
2413
|
+
parent_ext_id?: string | null | undefined;
|
|
2308
2414
|
email: string;
|
|
2309
2415
|
given_name: string;
|
|
2310
|
-
family_name
|
|
2416
|
+
family_name?: string | null | undefined;
|
|
2311
2417
|
picture?: string | null | undefined;
|
|
2312
2418
|
encryption_public_key: string;
|
|
2313
2419
|
};
|
|
@@ -2315,6 +2421,7 @@ declare function createWorkspace(arbi: ArbiClient, name: string, description?: s
|
|
|
2315
2421
|
joined_at: string;
|
|
2316
2422
|
conversation_count: number;
|
|
2317
2423
|
document_count: number;
|
|
2424
|
+
agent_ext_id?: string | null | undefined;
|
|
2318
2425
|
}[];
|
|
2319
2426
|
}>;
|
|
2320
2427
|
declare function deleteWorkspaces(arbi: ArbiClient, workspaceIds: string[]): Promise<void>;
|
|
@@ -2336,9 +2443,10 @@ declare function updateWorkspace(arbi: ArbiClient, body: WorkspaceUpdateRequest)
|
|
|
2336
2443
|
users: {
|
|
2337
2444
|
user: {
|
|
2338
2445
|
external_id: string;
|
|
2446
|
+
parent_ext_id?: string | null | undefined;
|
|
2339
2447
|
email: string;
|
|
2340
2448
|
given_name: string;
|
|
2341
|
-
family_name
|
|
2449
|
+
family_name?: string | null | undefined;
|
|
2342
2450
|
picture?: string | null | undefined;
|
|
2343
2451
|
encryption_public_key: string;
|
|
2344
2452
|
};
|
|
@@ -2346,14 +2454,16 @@ declare function updateWorkspace(arbi: ArbiClient, body: WorkspaceUpdateRequest)
|
|
|
2346
2454
|
joined_at: string;
|
|
2347
2455
|
conversation_count: number;
|
|
2348
2456
|
document_count: number;
|
|
2457
|
+
agent_ext_id?: string | null | undefined;
|
|
2349
2458
|
}[];
|
|
2350
2459
|
}>;
|
|
2351
2460
|
declare function listWorkspaceUsers(arbi: ArbiClient): Promise<{
|
|
2352
2461
|
user: {
|
|
2353
2462
|
external_id: string;
|
|
2463
|
+
parent_ext_id?: string | null | undefined;
|
|
2354
2464
|
email: string;
|
|
2355
2465
|
given_name: string;
|
|
2356
|
-
family_name
|
|
2466
|
+
family_name?: string | null | undefined;
|
|
2357
2467
|
picture?: string | null | undefined;
|
|
2358
2468
|
encryption_public_key: string;
|
|
2359
2469
|
};
|
|
@@ -2361,13 +2471,15 @@ declare function listWorkspaceUsers(arbi: ArbiClient): Promise<{
|
|
|
2361
2471
|
joined_at: string;
|
|
2362
2472
|
conversation_count: number;
|
|
2363
2473
|
document_count: number;
|
|
2474
|
+
agent_ext_id?: string | null | undefined;
|
|
2364
2475
|
}[]>;
|
|
2365
2476
|
declare function addWorkspaceUsers(arbi: ArbiClient, emails: string[], role?: 'owner' | 'collaborator' | 'guest'): Promise<{
|
|
2366
2477
|
user: {
|
|
2367
2478
|
external_id: string;
|
|
2479
|
+
parent_ext_id?: string | null | undefined;
|
|
2368
2480
|
email: string;
|
|
2369
2481
|
given_name: string;
|
|
2370
|
-
family_name
|
|
2482
|
+
family_name?: string | null | undefined;
|
|
2371
2483
|
picture?: string | null | undefined;
|
|
2372
2484
|
encryption_public_key: string;
|
|
2373
2485
|
};
|
|
@@ -2375,14 +2487,16 @@ declare function addWorkspaceUsers(arbi: ArbiClient, emails: string[], role?: 'o
|
|
|
2375
2487
|
joined_at: string;
|
|
2376
2488
|
conversation_count: number;
|
|
2377
2489
|
document_count: number;
|
|
2490
|
+
agent_ext_id?: string | null | undefined;
|
|
2378
2491
|
}[]>;
|
|
2379
2492
|
declare function removeWorkspaceUsers(arbi: ArbiClient, userIds: string[]): Promise<void>;
|
|
2380
2493
|
declare function setUserRole(arbi: ArbiClient, userIds: string[], role: 'owner' | 'collaborator' | 'guest'): Promise<{
|
|
2381
2494
|
user: {
|
|
2382
2495
|
external_id: string;
|
|
2496
|
+
parent_ext_id?: string | null | undefined;
|
|
2383
2497
|
email: string;
|
|
2384
2498
|
given_name: string;
|
|
2385
|
-
family_name
|
|
2499
|
+
family_name?: string | null | undefined;
|
|
2386
2500
|
picture?: string | null | undefined;
|
|
2387
2501
|
encryption_public_key: string;
|
|
2388
2502
|
};
|
|
@@ -2390,6 +2504,7 @@ declare function setUserRole(arbi: ArbiClient, userIds: string[], role: 'owner'
|
|
|
2390
2504
|
joined_at: string;
|
|
2391
2505
|
conversation_count: number;
|
|
2392
2506
|
document_count: number;
|
|
2507
|
+
agent_ext_id?: string | null | undefined;
|
|
2393
2508
|
}[]>;
|
|
2394
2509
|
declare function copyDocuments(arbi: ArbiClient, targetWorkspaceId: string, docIds: string[], targetWorkspaceKey: string): Promise<{
|
|
2395
2510
|
detail: string;
|
|
@@ -2502,6 +2617,7 @@ declare function listConversations(arbi: ArbiClient): Promise<{
|
|
|
2502
2617
|
updated_at: string;
|
|
2503
2618
|
is_shared: boolean;
|
|
2504
2619
|
message_count: number;
|
|
2620
|
+
last_message_status?: string | null | undefined;
|
|
2505
2621
|
}[]>;
|
|
2506
2622
|
declare function getConversationThreads(arbi: ArbiClient, conversationId: string): Promise<{
|
|
2507
2623
|
conversation_ext_id: string;
|
|
@@ -2858,22 +2974,138 @@ declare namespace doctags {
|
|
|
2858
2974
|
export { doctags_assignDocTags as assignDocTags, doctags_generateDocTags as generateDocTags, doctags_removeDocTags as removeDocTags, doctags_updateDocTag as updateDocTag };
|
|
2859
2975
|
}
|
|
2860
2976
|
|
|
2977
|
+
/**
|
|
2978
|
+
* Direct message / notification operations — list, send, mark read, delete.
|
|
2979
|
+
*
|
|
2980
|
+
* All message content is E2E encrypted using ECDH (X25519 + XSalsa20-Poly1305).
|
|
2981
|
+
* Encryption keys are derived from the user's Ed25519 signing keypair.
|
|
2982
|
+
*/
|
|
2983
|
+
|
|
2984
|
+
type NotificationResponse = components['schemas']['NotificationResponse'];
|
|
2985
|
+
/**
|
|
2986
|
+
* Everything needed to encrypt/decrypt DMs.
|
|
2987
|
+
* Derive once per session, pass to all DM operations.
|
|
2988
|
+
*/
|
|
2989
|
+
interface DmCryptoContext {
|
|
2990
|
+
/** User's X25519 encryption keypair (derived from Ed25519 signing key) */
|
|
2991
|
+
encryptionKeypair: KeyPair;
|
|
2992
|
+
/** User's own external_id (to determine send vs receive direction) */
|
|
2993
|
+
userExtId: string;
|
|
2994
|
+
}
|
|
2995
|
+
/**
|
|
2996
|
+
* Create a DM crypto context from a signing private key.
|
|
2997
|
+
*
|
|
2998
|
+
* @param arbi - ArbiClient instance (provides crypto utilities)
|
|
2999
|
+
* @param signingPrivateKeyBytes - Ed25519 signing private key (64 bytes)
|
|
3000
|
+
* @param userExtId - Current user's external_id
|
|
3001
|
+
*/
|
|
3002
|
+
declare function createDmCryptoContext(arbi: ArbiClient, signingPrivateKeyBytes: Uint8Array, userExtId: string): DmCryptoContext;
|
|
3003
|
+
/**
|
|
3004
|
+
* Encrypt a plaintext message for a recipient.
|
|
3005
|
+
*
|
|
3006
|
+
* @param arbi - ArbiClient instance
|
|
3007
|
+
* @param plaintext - Message content to encrypt
|
|
3008
|
+
* @param recipientEncryptionPubKeyBase64 - Recipient's X25519 public key (base64)
|
|
3009
|
+
* @param senderEncryptionSecretKey - Sender's X25519 secret key (Uint8Array)
|
|
3010
|
+
* @returns Base64-encoded ciphertext (nonce prepended)
|
|
3011
|
+
*/
|
|
3012
|
+
declare function encryptDmContent(arbi: ArbiClient, plaintext: string, recipientEncryptionPubKeyBase64: string, senderEncryptionSecretKey: Uint8Array): Promise<string>;
|
|
3013
|
+
/**
|
|
3014
|
+
* Decrypt an encrypted notification message.
|
|
3015
|
+
*
|
|
3016
|
+
* Uses the sender/recipient public keys embedded in NotificationResponse
|
|
3017
|
+
* to determine the "other party" for ECDH decryption.
|
|
3018
|
+
*
|
|
3019
|
+
* @param arbi - ArbiClient instance
|
|
3020
|
+
* @param notification - The notification with encrypted content
|
|
3021
|
+
* @param crypto - DM crypto context for the current user
|
|
3022
|
+
* @returns Decrypted plaintext, or null if content is empty
|
|
3023
|
+
* @throws Error if decryption fails (wrong keys or tampered message)
|
|
3024
|
+
*/
|
|
3025
|
+
declare function decryptDmContent(arbi: ArbiClient, notification: NotificationResponse, crypto: DmCryptoContext): Promise<string | null>;
|
|
3026
|
+
/**
|
|
3027
|
+
* Decrypt a batch of notifications, replacing content in-place.
|
|
3028
|
+
* Failed decryptions get content set to '[Decryption failed]'.
|
|
3029
|
+
*
|
|
3030
|
+
* @returns New array with decrypted content
|
|
3031
|
+
*/
|
|
3032
|
+
declare function decryptDmBatch(arbi: ArbiClient, notifications: NotificationResponse[], crypto: DmCryptoContext): Promise<NotificationResponse[]>;
|
|
3033
|
+
/**
|
|
3034
|
+
* List DMs (raw — content is encrypted ciphertext).
|
|
3035
|
+
*/
|
|
2861
3036
|
declare function listDMs(arbi: ArbiClient): Promise<{
|
|
2862
|
-
type:
|
|
3037
|
+
type: components["schemas"]["NotificationType"];
|
|
3038
|
+
external_id: string;
|
|
3039
|
+
sender: {
|
|
3040
|
+
external_id: string;
|
|
3041
|
+
parent_ext_id?: string | null | undefined;
|
|
3042
|
+
email: string;
|
|
3043
|
+
given_name: string;
|
|
3044
|
+
family_name?: string | null | undefined;
|
|
3045
|
+
picture?: string | null | undefined;
|
|
3046
|
+
encryption_public_key: string;
|
|
3047
|
+
};
|
|
3048
|
+
recipient: {
|
|
3049
|
+
external_id: string;
|
|
3050
|
+
parent_ext_id?: string | null | undefined;
|
|
3051
|
+
email: string;
|
|
3052
|
+
given_name: string;
|
|
3053
|
+
family_name?: string | null | undefined;
|
|
3054
|
+
picture?: string | null | undefined;
|
|
3055
|
+
encryption_public_key: string;
|
|
3056
|
+
};
|
|
3057
|
+
workspace_ext_id?: string | null | undefined;
|
|
3058
|
+
content?: string | null | undefined;
|
|
3059
|
+
read: boolean;
|
|
3060
|
+
created_at: string;
|
|
3061
|
+
updated_at: string;
|
|
3062
|
+
}[]>;
|
|
3063
|
+
/**
|
|
3064
|
+
* List and decrypt DMs in one call.
|
|
3065
|
+
*/
|
|
3066
|
+
declare function listDecryptedDMs(arbi: ArbiClient, crypto: DmCryptoContext): Promise<{
|
|
3067
|
+
type: components["schemas"]["NotificationType"];
|
|
3068
|
+
external_id: string;
|
|
3069
|
+
sender: components["schemas"]["UserResponse"];
|
|
3070
|
+
recipient: components["schemas"]["UserResponse"];
|
|
3071
|
+
workspace_ext_id?: string | null;
|
|
3072
|
+
content?: string | null;
|
|
3073
|
+
read: boolean;
|
|
3074
|
+
created_at: string;
|
|
3075
|
+
updated_at: string;
|
|
3076
|
+
}[]>;
|
|
3077
|
+
/**
|
|
3078
|
+
* Send an E2E encrypted DM.
|
|
3079
|
+
*
|
|
3080
|
+
* Encrypts plaintext content for each recipient using their public key.
|
|
3081
|
+
* Requires recipient public keys — fetch via contacts or user lookup first.
|
|
3082
|
+
*
|
|
3083
|
+
* @param arbi - ArbiClient instance
|
|
3084
|
+
* @param messages - Array of { recipient_ext_id, content (plaintext), recipient_encryption_public_key }
|
|
3085
|
+
* @param crypto - DM crypto context for the sender
|
|
3086
|
+
*/
|
|
3087
|
+
declare function sendEncryptedDM(arbi: ArbiClient, messages: Array<{
|
|
3088
|
+
recipient_ext_id: string;
|
|
3089
|
+
content: string;
|
|
3090
|
+
recipient_encryption_public_key: string;
|
|
3091
|
+
}>, crypto: DmCryptoContext): Promise<{
|
|
3092
|
+
type: components["schemas"]["NotificationType"];
|
|
2863
3093
|
external_id: string;
|
|
2864
3094
|
sender: {
|
|
2865
3095
|
external_id: string;
|
|
3096
|
+
parent_ext_id?: string | null | undefined;
|
|
2866
3097
|
email: string;
|
|
2867
3098
|
given_name: string;
|
|
2868
|
-
family_name
|
|
3099
|
+
family_name?: string | null | undefined;
|
|
2869
3100
|
picture?: string | null | undefined;
|
|
2870
3101
|
encryption_public_key: string;
|
|
2871
3102
|
};
|
|
2872
3103
|
recipient: {
|
|
2873
3104
|
external_id: string;
|
|
3105
|
+
parent_ext_id?: string | null | undefined;
|
|
2874
3106
|
email: string;
|
|
2875
3107
|
given_name: string;
|
|
2876
|
-
family_name
|
|
3108
|
+
family_name?: string | null | undefined;
|
|
2877
3109
|
picture?: string | null | undefined;
|
|
2878
3110
|
encryption_public_key: string;
|
|
2879
3111
|
};
|
|
@@ -2883,25 +3115,31 @@ declare function listDMs(arbi: ArbiClient): Promise<{
|
|
|
2883
3115
|
created_at: string;
|
|
2884
3116
|
updated_at: string;
|
|
2885
3117
|
}[]>;
|
|
3118
|
+
/**
|
|
3119
|
+
* Send a plaintext DM (no encryption).
|
|
3120
|
+
* @deprecated Use sendEncryptedDM instead.
|
|
3121
|
+
*/
|
|
2886
3122
|
declare function sendDM(arbi: ArbiClient, messages: Array<{
|
|
2887
3123
|
recipient_ext_id: string;
|
|
2888
3124
|
content: string;
|
|
2889
3125
|
}>): Promise<{
|
|
2890
|
-
type:
|
|
3126
|
+
type: components["schemas"]["NotificationType"];
|
|
2891
3127
|
external_id: string;
|
|
2892
3128
|
sender: {
|
|
2893
3129
|
external_id: string;
|
|
3130
|
+
parent_ext_id?: string | null | undefined;
|
|
2894
3131
|
email: string;
|
|
2895
3132
|
given_name: string;
|
|
2896
|
-
family_name
|
|
3133
|
+
family_name?: string | null | undefined;
|
|
2897
3134
|
picture?: string | null | undefined;
|
|
2898
3135
|
encryption_public_key: string;
|
|
2899
3136
|
};
|
|
2900
3137
|
recipient: {
|
|
2901
3138
|
external_id: string;
|
|
3139
|
+
parent_ext_id?: string | null | undefined;
|
|
2902
3140
|
email: string;
|
|
2903
3141
|
given_name: string;
|
|
2904
|
-
family_name
|
|
3142
|
+
family_name?: string | null | undefined;
|
|
2905
3143
|
picture?: string | null | undefined;
|
|
2906
3144
|
encryption_public_key: string;
|
|
2907
3145
|
};
|
|
@@ -2912,21 +3150,23 @@ declare function sendDM(arbi: ArbiClient, messages: Array<{
|
|
|
2912
3150
|
updated_at: string;
|
|
2913
3151
|
}[]>;
|
|
2914
3152
|
declare function markRead(arbi: ArbiClient, messageIds: string[]): Promise<{
|
|
2915
|
-
type:
|
|
3153
|
+
type: components["schemas"]["NotificationType"];
|
|
2916
3154
|
external_id: string;
|
|
2917
3155
|
sender: {
|
|
2918
3156
|
external_id: string;
|
|
3157
|
+
parent_ext_id?: string | null | undefined;
|
|
2919
3158
|
email: string;
|
|
2920
3159
|
given_name: string;
|
|
2921
|
-
family_name
|
|
3160
|
+
family_name?: string | null | undefined;
|
|
2922
3161
|
picture?: string | null | undefined;
|
|
2923
3162
|
encryption_public_key: string;
|
|
2924
3163
|
};
|
|
2925
3164
|
recipient: {
|
|
2926
3165
|
external_id: string;
|
|
3166
|
+
parent_ext_id?: string | null | undefined;
|
|
2927
3167
|
email: string;
|
|
2928
3168
|
given_name: string;
|
|
2929
|
-
family_name
|
|
3169
|
+
family_name?: string | null | undefined;
|
|
2930
3170
|
picture?: string | null | undefined;
|
|
2931
3171
|
encryption_public_key: string;
|
|
2932
3172
|
};
|
|
@@ -2938,12 +3178,19 @@ declare function markRead(arbi: ArbiClient, messageIds: string[]): Promise<{
|
|
|
2938
3178
|
}[]>;
|
|
2939
3179
|
declare function deleteDMs(arbi: ArbiClient, messageIds: string[]): Promise<void>;
|
|
2940
3180
|
|
|
3181
|
+
type dm_DmCryptoContext = DmCryptoContext;
|
|
3182
|
+
declare const dm_createDmCryptoContext: typeof createDmCryptoContext;
|
|
3183
|
+
declare const dm_decryptDmBatch: typeof decryptDmBatch;
|
|
3184
|
+
declare const dm_decryptDmContent: typeof decryptDmContent;
|
|
2941
3185
|
declare const dm_deleteDMs: typeof deleteDMs;
|
|
3186
|
+
declare const dm_encryptDmContent: typeof encryptDmContent;
|
|
2942
3187
|
declare const dm_listDMs: typeof listDMs;
|
|
3188
|
+
declare const dm_listDecryptedDMs: typeof listDecryptedDMs;
|
|
2943
3189
|
declare const dm_markRead: typeof markRead;
|
|
2944
3190
|
declare const dm_sendDM: typeof sendDM;
|
|
3191
|
+
declare const dm_sendEncryptedDM: typeof sendEncryptedDM;
|
|
2945
3192
|
declare namespace dm {
|
|
2946
|
-
export { dm_deleteDMs as deleteDMs, dm_listDMs as listDMs, dm_markRead as markRead, dm_sendDM as sendDM };
|
|
3193
|
+
export { type dm_DmCryptoContext as DmCryptoContext, dm_createDmCryptoContext as createDmCryptoContext, dm_decryptDmBatch as decryptDmBatch, dm_decryptDmContent as decryptDmContent, dm_deleteDMs as deleteDMs, dm_encryptDmContent as encryptDmContent, dm_listDMs as listDMs, dm_listDecryptedDMs as listDecryptedDMs, dm_markRead as markRead, dm_sendDM as sendDM, dm_sendEncryptedDM as sendEncryptedDM };
|
|
2947
3194
|
}
|
|
2948
3195
|
|
|
2949
3196
|
/**
|
|
@@ -2974,8 +3221,11 @@ declare function getSettings(arbi: ArbiClient): Promise<{
|
|
|
2974
3221
|
show_help_page: boolean;
|
|
2975
3222
|
show_templates: boolean;
|
|
2976
3223
|
show_pa_mode: boolean;
|
|
3224
|
+
show_agent_sessions: boolean;
|
|
2977
3225
|
hide_online_status: boolean;
|
|
2978
3226
|
muted_users: string[];
|
|
3227
|
+
premium_model?: string | null | undefined;
|
|
3228
|
+
picture?: string | null | undefined;
|
|
2979
3229
|
}>;
|
|
2980
3230
|
declare function updateSettings(arbi: ArbiClient, body: UserSettingsUpdate): Promise<void>;
|
|
2981
3231
|
|
|
@@ -3017,8 +3267,6 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3017
3267
|
SUGGESTED_QUERIES: boolean;
|
|
3018
3268
|
ARTIFACTS_ENABLED: boolean;
|
|
3019
3269
|
VISION_ENABLED: boolean;
|
|
3020
|
-
DOC_INDEX_COMPACT_THRESHOLD: number;
|
|
3021
|
-
DOC_INDEX_SKIP_THRESHOLD: number;
|
|
3022
3270
|
PERSONAL_AGENT: boolean;
|
|
3023
3271
|
MEMORY_ENABLED: boolean;
|
|
3024
3272
|
SKILLS_ENABLED: boolean;
|
|
@@ -3029,13 +3277,15 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3029
3277
|
AGENT_API_TYPE: "local" | "remote";
|
|
3030
3278
|
LLM_AGENT_TEMPERATURE: number;
|
|
3031
3279
|
AGENT_MAX_TOKENS: number;
|
|
3280
|
+
ENABLE_THINKING: boolean;
|
|
3032
3281
|
AGENT_MAX_ITERATIONS: number;
|
|
3033
|
-
|
|
3282
|
+
AGENT_MAX_PARALLEL_TOOL_CALLS: number;
|
|
3034
3283
|
AGENT_HISTORY_CHAR_THRESHOLD: number;
|
|
3035
3284
|
AGENT_SYSTEM_PROMPT: string;
|
|
3036
3285
|
};
|
|
3037
3286
|
QueryLLM: {
|
|
3038
3287
|
API_TYPE: "local" | "remote";
|
|
3288
|
+
ENABLE_THINKING: boolean;
|
|
3039
3289
|
MODEL_NAME: string;
|
|
3040
3290
|
SYSTEM_INSTRUCTION: string;
|
|
3041
3291
|
MAX_CHAR_SIZE_TO_ANSWER: number;
|
|
@@ -3044,6 +3294,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3044
3294
|
};
|
|
3045
3295
|
ReviewLLM: {
|
|
3046
3296
|
API_TYPE: "local" | "remote";
|
|
3297
|
+
ENABLE_THINKING: boolean;
|
|
3047
3298
|
MODEL_NAME: string;
|
|
3048
3299
|
SYSTEM_INSTRUCTION: string;
|
|
3049
3300
|
TEMPERATURE: number;
|
|
@@ -3052,6 +3303,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3052
3303
|
};
|
|
3053
3304
|
EvaluatorLLM: {
|
|
3054
3305
|
API_TYPE: "local" | "remote";
|
|
3306
|
+
ENABLE_THINKING: boolean;
|
|
3055
3307
|
MODEL_NAME: string;
|
|
3056
3308
|
SYSTEM_INSTRUCTION: string;
|
|
3057
3309
|
TEMPERATURE: number;
|
|
@@ -3060,6 +3312,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3060
3312
|
};
|
|
3061
3313
|
TitleLLM: {
|
|
3062
3314
|
API_TYPE: "local" | "remote";
|
|
3315
|
+
ENABLE_THINKING: boolean;
|
|
3063
3316
|
MODEL_NAME: string;
|
|
3064
3317
|
SYSTEM_INSTRUCTION: string;
|
|
3065
3318
|
MAX_CHAR_SIZE_TO_ANSWER: number;
|
|
@@ -3068,6 +3321,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3068
3321
|
};
|
|
3069
3322
|
SummariseLLM: {
|
|
3070
3323
|
API_TYPE: "local" | "remote";
|
|
3324
|
+
ENABLE_THINKING: boolean;
|
|
3071
3325
|
MODEL_NAME: string;
|
|
3072
3326
|
SYSTEM_INSTRUCTION: string;
|
|
3073
3327
|
TEMPERATURE: number;
|
|
@@ -3078,6 +3332,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3078
3332
|
};
|
|
3079
3333
|
DoctagLLM: {
|
|
3080
3334
|
API_TYPE: "local" | "remote";
|
|
3335
|
+
ENABLE_THINKING: boolean;
|
|
3081
3336
|
MODEL_NAME: string;
|
|
3082
3337
|
SYSTEM_INSTRUCTION: string;
|
|
3083
3338
|
MAX_CHAR_CONTEXT_TO_ANSWER: number;
|
|
@@ -3095,6 +3350,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3095
3350
|
};
|
|
3096
3351
|
MemoryLLM: {
|
|
3097
3352
|
API_TYPE: "local" | "remote";
|
|
3353
|
+
ENABLE_THINKING: boolean;
|
|
3098
3354
|
MODEL_NAME: string;
|
|
3099
3355
|
SYSTEM_INSTRUCTION: string;
|
|
3100
3356
|
TEMPERATURE: number;
|
|
@@ -3104,6 +3360,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3104
3360
|
};
|
|
3105
3361
|
PlanningLLM: {
|
|
3106
3362
|
API_TYPE: "local" | "remote";
|
|
3363
|
+
ENABLE_THINKING: boolean;
|
|
3107
3364
|
MODEL_NAME: string;
|
|
3108
3365
|
SYSTEM_INSTRUCTION: string;
|
|
3109
3366
|
TEMPERATURE: number;
|
|
@@ -3111,8 +3368,17 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3111
3368
|
MAX_CHAR_SIZE_TO_ANSWER: number;
|
|
3112
3369
|
APPROVAL_TIMEOUT: number;
|
|
3113
3370
|
};
|
|
3371
|
+
FilterPlanLLM: {
|
|
3372
|
+
API_TYPE: "local" | "remote";
|
|
3373
|
+
ENABLE_THINKING: boolean;
|
|
3374
|
+
MODEL_NAME: string;
|
|
3375
|
+
SYSTEM_INSTRUCTION: string;
|
|
3376
|
+
TEMPERATURE: number;
|
|
3377
|
+
MAX_TOKENS: number;
|
|
3378
|
+
};
|
|
3114
3379
|
VisionLLM: {
|
|
3115
3380
|
API_TYPE: "local" | "remote";
|
|
3381
|
+
ENABLE_THINKING: boolean;
|
|
3116
3382
|
MODEL_NAME: string;
|
|
3117
3383
|
TEMPERATURE: number;
|
|
3118
3384
|
MAX_TOKENS: number;
|
|
@@ -3121,6 +3387,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3121
3387
|
};
|
|
3122
3388
|
CodeAgent: {
|
|
3123
3389
|
API_TYPE: "local" | "remote";
|
|
3390
|
+
ENABLE_THINKING: boolean;
|
|
3124
3391
|
MODEL_NAME: string;
|
|
3125
3392
|
SYSTEM_INSTRUCTION: string;
|
|
3126
3393
|
TEMPERATURE: number;
|
|
@@ -3131,6 +3398,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3131
3398
|
SIM_THREASHOLD: number;
|
|
3132
3399
|
MIN_CHAR_SIZE_TO_ANSWER: number;
|
|
3133
3400
|
MAX_NUMB_CITATIONS: number;
|
|
3401
|
+
CITATION_INSTRUCTION: string;
|
|
3134
3402
|
};
|
|
3135
3403
|
Retriever: {
|
|
3136
3404
|
MIN_RETRIEVAL_SIM_SCORE: number;
|
|
@@ -3138,9 +3406,9 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3138
3406
|
MAX_TOTAL_CHUNKS_TO_RETRIEVE: number;
|
|
3139
3407
|
GROUP_SIZE: number;
|
|
3140
3408
|
SEARCH_MODE: components["schemas"]["SearchMode"];
|
|
3409
|
+
HYBRID_PREFETCH_LIMIT: number;
|
|
3141
3410
|
HYBRID_DENSE_WEIGHT: number;
|
|
3142
3411
|
HYBRID_SPARSE_WEIGHT: number;
|
|
3143
|
-
HYBRID_RERANKER_WEIGHT: number;
|
|
3144
3412
|
};
|
|
3145
3413
|
Reranker: {
|
|
3146
3414
|
MIN_SCORE: number;
|
|
@@ -3148,6 +3416,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3148
3416
|
MAX_CONCURRENT_REQUESTS: number;
|
|
3149
3417
|
MODEL_NAME: string;
|
|
3150
3418
|
API_TYPE: "local" | "remote";
|
|
3419
|
+
RETRIEVAL_INSTRUCTION: string;
|
|
3151
3420
|
};
|
|
3152
3421
|
Parser: {
|
|
3153
3422
|
SKIP_DUPLICATES: boolean;
|
|
@@ -3321,4 +3590,4 @@ declare namespace responses {
|
|
|
3321
3590
|
export { type responses_SubmitBackgroundQueryOptions as SubmitBackgroundQueryOptions, responses_extractResponseText as extractResponseText, responses_getResponse as getResponse, responses_submitBackgroundQuery as submitBackgroundQuery };
|
|
3322
3591
|
}
|
|
3323
3592
|
|
|
3324
|
-
export {
|
|
3593
|
+
export { buildRetrievalTocTool as $, type AuthHeaders as A, type ResponseOutputItemDoneEvent as B, type ConfigStore as C, type DmCryptoContext as D, type ResponseOutputTextDeltaEvent as E, type FormattedWsMessage as F, type ResponseOutputTextDoneEvent as G, type ResponseUsage as H, type SSEStreamCallbacks as I, type SSEStreamResult as J, type SSEStreamStartData as K, type UserInfo as L, type MessageLevel as M, type UserInputRequestEvent as N, type OutputTokensDetails as O, type UserMessageEvent as P, type QueryOptions as Q, type ReconnectOptions as R, type SSEEvent as S, type WsConnection as T, type UploadBatchResult as U, agentconfig as V, type WorkspaceContext as W, assistant as X, authenticatedFetch as Y, buildRetrievalChunkTool as Z, buildRetrievalFullContextTool as _, type CliConfig as a, connectWebSocket as a0, connectWithReconnect as a1, consumeSSEStream as a2, contacts as a3, conversations as a4, countCitations as a5, createAuthenticatedClient as a6, createDocumentWaiter as a7, dm as a8, doctags as a9, stripCitationMarkdown as aA, summarizeCitations as aB, tags as aC, workspaces as aD, documents as aa, files as ab, formatAgentStepLabel as ac, formatFileSize as ad, formatStreamSummary as ae, formatUserName as af, formatWorkspaceChoices as ag, formatWsMessage as ah, generateEncryptedWorkspaceKey as ai, generateNewWorkspaceKey as aj, getErrorCode as ak, getErrorMessage as al, health as am, parseSSEEvents as an, performPasswordLogin as ao, performSsoDeviceFlowLogin as ap, requireData as aq, requireOk as ar, resolveAuth as as, resolveCitations as at, resolveWorkspace as au, responses as av, selectWorkspace as aw, selectWorkspaceById as ax, settings as ay, streamSSE as az, type CliCredentials as b, type ChatSession as c, type UploadOptions as d, type UploadResult as e, type AgentStepEvent as f, Arbi as g, ArbiApiError as h, ArbiError as i, type ArbiOptions as j, type ArtifactEvent as k, type AuthContext as l, type AuthenticatedClient as m, type CitationSummary as n, type ConnectOptions as o, type DocumentWaiter as p, type DocumentWaiterOptions as q, type MessageMetadataPayload$1 as r, type MessageQueuedEvent as s, type ReconnectableWsConnection as t, type ResolvedCitation as u, type ResponseCompletedEvent as v, type ResponseContentPartAddedEvent as w, type ResponseCreatedEvent as x, type ResponseFailedEvent as y, type ResponseOutputItemAddedEvent as z };
|