@arbidocs/sdk 0.3.18 → 0.3.20
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-DUQ3Eyvd.d.cts → browser-z9a2abGo.d.cts} +323 -58
- package/dist/{browser-DUQ3Eyvd.d.ts → browser-z9a2abGo.d.ts} +323 -58
- package/dist/browser.cjs +7802 -93
- 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 +7804 -93
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +8114 -110
- 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 +8110 -112
- 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
|
*/
|
|
@@ -255,17 +264,19 @@ interface SSEEvent {
|
|
|
255
264
|
event: string;
|
|
256
265
|
data: string;
|
|
257
266
|
}
|
|
258
|
-
declare const TOOL_LABELS: Record<string, string>;
|
|
259
|
-
declare const LIFECYCLE_LABELS: Record<string, string>;
|
|
260
267
|
/**
|
|
261
268
|
* Format an AgentStepEvent into a human-readable label.
|
|
262
269
|
*
|
|
270
|
+
* Uses backend-provided `label` field when available, falling back to
|
|
271
|
+
* tool name or step name for old persisted events.
|
|
272
|
+
*
|
|
263
273
|
* Priority:
|
|
264
274
|
* 1. `focus` — the agent's descriptive sentence about what it's doing
|
|
265
|
-
* 2.
|
|
266
|
-
* 3.
|
|
267
|
-
* 4.
|
|
268
|
-
* 5.
|
|
275
|
+
* 2. `label` — backend-provided display label
|
|
276
|
+
* 3. For `tool_progress` — detail label + optional message
|
|
277
|
+
* 4. Lifecycle fallback (planning, evaluation, etc.)
|
|
278
|
+
* 5. Tool name from detail
|
|
279
|
+
* 6. Fallback to step name or empty string
|
|
269
280
|
*/
|
|
270
281
|
declare function formatAgentStepLabel(step: AgentStepEvent): string;
|
|
271
282
|
/**
|
|
@@ -834,9 +845,10 @@ declare function listContacts(arbi: ArbiClient): Promise<{
|
|
|
834
845
|
email: string;
|
|
835
846
|
user?: {
|
|
836
847
|
external_id: string;
|
|
848
|
+
parent_ext_id?: string | null | undefined;
|
|
837
849
|
email: string;
|
|
838
850
|
given_name: string;
|
|
839
|
-
family_name
|
|
851
|
+
family_name?: string | null | undefined;
|
|
840
852
|
picture?: string | null | undefined;
|
|
841
853
|
encryption_public_key: string;
|
|
842
854
|
} | null | undefined;
|
|
@@ -848,9 +860,10 @@ declare function addContacts(arbi: ArbiClient, emails: string[]): Promise<{
|
|
|
848
860
|
email: string;
|
|
849
861
|
user?: {
|
|
850
862
|
external_id: string;
|
|
863
|
+
parent_ext_id?: string | null | undefined;
|
|
851
864
|
email: string;
|
|
852
865
|
given_name: string;
|
|
853
|
-
family_name
|
|
866
|
+
family_name?: string | null | undefined;
|
|
854
867
|
picture?: string | null | undefined;
|
|
855
868
|
encryption_public_key: string;
|
|
856
869
|
} | null | undefined;
|
|
@@ -1073,9 +1086,10 @@ declare class Arbi {
|
|
|
1073
1086
|
users: {
|
|
1074
1087
|
user: {
|
|
1075
1088
|
external_id: string;
|
|
1089
|
+
parent_ext_id?: string | null | undefined;
|
|
1076
1090
|
email: string;
|
|
1077
1091
|
given_name: string;
|
|
1078
|
-
family_name
|
|
1092
|
+
family_name?: string | null | undefined;
|
|
1079
1093
|
picture?: string | null | undefined;
|
|
1080
1094
|
encryption_public_key: string;
|
|
1081
1095
|
};
|
|
@@ -1083,6 +1097,7 @@ declare class Arbi {
|
|
|
1083
1097
|
joined_at: string;
|
|
1084
1098
|
conversation_count: number;
|
|
1085
1099
|
document_count: number;
|
|
1100
|
+
agent_ext_id?: string | null | undefined;
|
|
1086
1101
|
}[];
|
|
1087
1102
|
}[]>;
|
|
1088
1103
|
create: (name: string, description?: string | null, isPublic?: boolean) => Promise<{
|
|
@@ -1103,9 +1118,10 @@ declare class Arbi {
|
|
|
1103
1118
|
users: {
|
|
1104
1119
|
user: {
|
|
1105
1120
|
external_id: string;
|
|
1121
|
+
parent_ext_id?: string | null | undefined;
|
|
1106
1122
|
email: string;
|
|
1107
1123
|
given_name: string;
|
|
1108
|
-
family_name
|
|
1124
|
+
family_name?: string | null | undefined;
|
|
1109
1125
|
picture?: string | null | undefined;
|
|
1110
1126
|
encryption_public_key: string;
|
|
1111
1127
|
};
|
|
@@ -1113,6 +1129,7 @@ declare class Arbi {
|
|
|
1113
1129
|
joined_at: string;
|
|
1114
1130
|
conversation_count: number;
|
|
1115
1131
|
document_count: number;
|
|
1132
|
+
agent_ext_id?: string | null | undefined;
|
|
1116
1133
|
}[];
|
|
1117
1134
|
}>;
|
|
1118
1135
|
delete: (workspaceIds: string[]) => Promise<void>;
|
|
@@ -1134,9 +1151,10 @@ declare class Arbi {
|
|
|
1134
1151
|
users: {
|
|
1135
1152
|
user: {
|
|
1136
1153
|
external_id: string;
|
|
1154
|
+
parent_ext_id?: string | null | undefined;
|
|
1137
1155
|
email: string;
|
|
1138
1156
|
given_name: string;
|
|
1139
|
-
family_name
|
|
1157
|
+
family_name?: string | null | undefined;
|
|
1140
1158
|
picture?: string | null | undefined;
|
|
1141
1159
|
encryption_public_key: string;
|
|
1142
1160
|
};
|
|
@@ -1144,14 +1162,16 @@ declare class Arbi {
|
|
|
1144
1162
|
joined_at: string;
|
|
1145
1163
|
conversation_count: number;
|
|
1146
1164
|
document_count: number;
|
|
1165
|
+
agent_ext_id?: string | null | undefined;
|
|
1147
1166
|
}[];
|
|
1148
1167
|
}>;
|
|
1149
1168
|
listUsers: () => Promise<{
|
|
1150
1169
|
user: {
|
|
1151
1170
|
external_id: string;
|
|
1171
|
+
parent_ext_id?: string | null | undefined;
|
|
1152
1172
|
email: string;
|
|
1153
1173
|
given_name: string;
|
|
1154
|
-
family_name
|
|
1174
|
+
family_name?: string | null | undefined;
|
|
1155
1175
|
picture?: string | null | undefined;
|
|
1156
1176
|
encryption_public_key: string;
|
|
1157
1177
|
};
|
|
@@ -1159,13 +1179,15 @@ declare class Arbi {
|
|
|
1159
1179
|
joined_at: string;
|
|
1160
1180
|
conversation_count: number;
|
|
1161
1181
|
document_count: number;
|
|
1182
|
+
agent_ext_id?: string | null | undefined;
|
|
1162
1183
|
}[]>;
|
|
1163
1184
|
addUsers: (emails: string[], role?: "owner" | "collaborator" | "guest") => Promise<{
|
|
1164
1185
|
user: {
|
|
1165
1186
|
external_id: string;
|
|
1187
|
+
parent_ext_id?: string | null | undefined;
|
|
1166
1188
|
email: string;
|
|
1167
1189
|
given_name: string;
|
|
1168
|
-
family_name
|
|
1190
|
+
family_name?: string | null | undefined;
|
|
1169
1191
|
picture?: string | null | undefined;
|
|
1170
1192
|
encryption_public_key: string;
|
|
1171
1193
|
};
|
|
@@ -1173,14 +1195,16 @@ declare class Arbi {
|
|
|
1173
1195
|
joined_at: string;
|
|
1174
1196
|
conversation_count: number;
|
|
1175
1197
|
document_count: number;
|
|
1198
|
+
agent_ext_id?: string | null | undefined;
|
|
1176
1199
|
}[]>;
|
|
1177
1200
|
removeUsers: (userIds: string[]) => Promise<void>;
|
|
1178
1201
|
setUserRole: (userIds: string[], role: "owner" | "collaborator" | "guest") => Promise<{
|
|
1179
1202
|
user: {
|
|
1180
1203
|
external_id: string;
|
|
1204
|
+
parent_ext_id?: string | null | undefined;
|
|
1181
1205
|
email: string;
|
|
1182
1206
|
given_name: string;
|
|
1183
|
-
family_name
|
|
1207
|
+
family_name?: string | null | undefined;
|
|
1184
1208
|
picture?: string | null | undefined;
|
|
1185
1209
|
encryption_public_key: string;
|
|
1186
1210
|
};
|
|
@@ -1188,6 +1212,7 @@ declare class Arbi {
|
|
|
1188
1212
|
joined_at: string;
|
|
1189
1213
|
conversation_count: number;
|
|
1190
1214
|
document_count: number;
|
|
1215
|
+
agent_ext_id?: string | null | undefined;
|
|
1191
1216
|
}[]>;
|
|
1192
1217
|
copyDocuments: (targetWorkspaceId: string, docIds: string[], targetWorkspaceKey: string) => Promise<{
|
|
1193
1218
|
detail: string;
|
|
@@ -1791,9 +1816,10 @@ declare class Arbi {
|
|
|
1791
1816
|
email: string;
|
|
1792
1817
|
user?: {
|
|
1793
1818
|
external_id: string;
|
|
1819
|
+
parent_ext_id?: string | null | undefined;
|
|
1794
1820
|
email: string;
|
|
1795
1821
|
given_name: string;
|
|
1796
|
-
family_name
|
|
1822
|
+
family_name?: string | null | undefined;
|
|
1797
1823
|
picture?: string | null | undefined;
|
|
1798
1824
|
encryption_public_key: string;
|
|
1799
1825
|
} | null | undefined;
|
|
@@ -1805,9 +1831,10 @@ declare class Arbi {
|
|
|
1805
1831
|
email: string;
|
|
1806
1832
|
user?: {
|
|
1807
1833
|
external_id: string;
|
|
1834
|
+
parent_ext_id?: string | null | undefined;
|
|
1808
1835
|
email: string;
|
|
1809
1836
|
given_name: string;
|
|
1810
|
-
family_name
|
|
1837
|
+
family_name?: string | null | undefined;
|
|
1811
1838
|
picture?: string | null | undefined;
|
|
1812
1839
|
encryption_public_key: string;
|
|
1813
1840
|
} | null | undefined;
|
|
@@ -1823,17 +1850,19 @@ declare class Arbi {
|
|
|
1823
1850
|
external_id: string;
|
|
1824
1851
|
sender: {
|
|
1825
1852
|
external_id: string;
|
|
1853
|
+
parent_ext_id?: string | null | undefined;
|
|
1826
1854
|
email: string;
|
|
1827
1855
|
given_name: string;
|
|
1828
|
-
family_name
|
|
1856
|
+
family_name?: string | null | undefined;
|
|
1829
1857
|
picture?: string | null | undefined;
|
|
1830
1858
|
encryption_public_key: string;
|
|
1831
1859
|
};
|
|
1832
1860
|
recipient: {
|
|
1833
1861
|
external_id: string;
|
|
1862
|
+
parent_ext_id?: string | null | undefined;
|
|
1834
1863
|
email: string;
|
|
1835
1864
|
given_name: string;
|
|
1836
|
-
family_name
|
|
1865
|
+
family_name?: string | null | undefined;
|
|
1837
1866
|
picture?: string | null | undefined;
|
|
1838
1867
|
encryption_public_key: string;
|
|
1839
1868
|
};
|
|
@@ -1851,17 +1880,19 @@ declare class Arbi {
|
|
|
1851
1880
|
external_id: string;
|
|
1852
1881
|
sender: {
|
|
1853
1882
|
external_id: string;
|
|
1883
|
+
parent_ext_id?: string | null | undefined;
|
|
1854
1884
|
email: string;
|
|
1855
1885
|
given_name: string;
|
|
1856
|
-
family_name
|
|
1886
|
+
family_name?: string | null | undefined;
|
|
1857
1887
|
picture?: string | null | undefined;
|
|
1858
1888
|
encryption_public_key: string;
|
|
1859
1889
|
};
|
|
1860
1890
|
recipient: {
|
|
1861
1891
|
external_id: string;
|
|
1892
|
+
parent_ext_id?: string | null | undefined;
|
|
1862
1893
|
email: string;
|
|
1863
1894
|
given_name: string;
|
|
1864
|
-
family_name
|
|
1895
|
+
family_name?: string | null | undefined;
|
|
1865
1896
|
picture?: string | null | undefined;
|
|
1866
1897
|
encryption_public_key: string;
|
|
1867
1898
|
};
|
|
@@ -1876,17 +1907,19 @@ declare class Arbi {
|
|
|
1876
1907
|
external_id: string;
|
|
1877
1908
|
sender: {
|
|
1878
1909
|
external_id: string;
|
|
1910
|
+
parent_ext_id?: string | null | undefined;
|
|
1879
1911
|
email: string;
|
|
1880
1912
|
given_name: string;
|
|
1881
|
-
family_name
|
|
1913
|
+
family_name?: string | null | undefined;
|
|
1882
1914
|
picture?: string | null | undefined;
|
|
1883
1915
|
encryption_public_key: string;
|
|
1884
1916
|
};
|
|
1885
1917
|
recipient: {
|
|
1886
1918
|
external_id: string;
|
|
1919
|
+
parent_ext_id?: string | null | undefined;
|
|
1887
1920
|
email: string;
|
|
1888
1921
|
given_name: string;
|
|
1889
|
-
family_name
|
|
1922
|
+
family_name?: string | null | undefined;
|
|
1890
1923
|
picture?: string | null | undefined;
|
|
1891
1924
|
encryption_public_key: string;
|
|
1892
1925
|
};
|
|
@@ -1922,6 +1955,7 @@ declare class Arbi {
|
|
|
1922
1955
|
show_help_page: boolean;
|
|
1923
1956
|
show_templates: boolean;
|
|
1924
1957
|
show_pa_mode: boolean;
|
|
1958
|
+
show_agent_sessions: boolean;
|
|
1925
1959
|
hide_online_status: boolean;
|
|
1926
1960
|
muted_users: string[];
|
|
1927
1961
|
}>;
|
|
@@ -1955,8 +1989,6 @@ declare class Arbi {
|
|
|
1955
1989
|
SUGGESTED_QUERIES: boolean;
|
|
1956
1990
|
ARTIFACTS_ENABLED: boolean;
|
|
1957
1991
|
VISION_ENABLED: boolean;
|
|
1958
|
-
DOC_INDEX_COMPACT_THRESHOLD: number;
|
|
1959
|
-
DOC_INDEX_SKIP_THRESHOLD: number;
|
|
1960
1992
|
PERSONAL_AGENT: boolean;
|
|
1961
1993
|
MEMORY_ENABLED: boolean;
|
|
1962
1994
|
SKILLS_ENABLED: boolean;
|
|
@@ -1967,13 +1999,15 @@ declare class Arbi {
|
|
|
1967
1999
|
AGENT_API_TYPE: "local" | "remote";
|
|
1968
2000
|
LLM_AGENT_TEMPERATURE: number;
|
|
1969
2001
|
AGENT_MAX_TOKENS: number;
|
|
2002
|
+
ENABLE_THINKING: boolean;
|
|
1970
2003
|
AGENT_MAX_ITERATIONS: number;
|
|
1971
|
-
|
|
2004
|
+
AGENT_MAX_PARALLEL_TOOL_CALLS: number;
|
|
1972
2005
|
AGENT_HISTORY_CHAR_THRESHOLD: number;
|
|
1973
2006
|
AGENT_SYSTEM_PROMPT: string;
|
|
1974
2007
|
};
|
|
1975
2008
|
QueryLLM: {
|
|
1976
2009
|
API_TYPE: "local" | "remote";
|
|
2010
|
+
ENABLE_THINKING: boolean;
|
|
1977
2011
|
MODEL_NAME: string;
|
|
1978
2012
|
SYSTEM_INSTRUCTION: string;
|
|
1979
2013
|
MAX_CHAR_SIZE_TO_ANSWER: number;
|
|
@@ -1982,6 +2016,7 @@ declare class Arbi {
|
|
|
1982
2016
|
};
|
|
1983
2017
|
ReviewLLM: {
|
|
1984
2018
|
API_TYPE: "local" | "remote";
|
|
2019
|
+
ENABLE_THINKING: boolean;
|
|
1985
2020
|
MODEL_NAME: string;
|
|
1986
2021
|
SYSTEM_INSTRUCTION: string;
|
|
1987
2022
|
TEMPERATURE: number;
|
|
@@ -1990,6 +2025,7 @@ declare class Arbi {
|
|
|
1990
2025
|
};
|
|
1991
2026
|
EvaluatorLLM: {
|
|
1992
2027
|
API_TYPE: "local" | "remote";
|
|
2028
|
+
ENABLE_THINKING: boolean;
|
|
1993
2029
|
MODEL_NAME: string;
|
|
1994
2030
|
SYSTEM_INSTRUCTION: string;
|
|
1995
2031
|
TEMPERATURE: number;
|
|
@@ -1998,6 +2034,7 @@ declare class Arbi {
|
|
|
1998
2034
|
};
|
|
1999
2035
|
TitleLLM: {
|
|
2000
2036
|
API_TYPE: "local" | "remote";
|
|
2037
|
+
ENABLE_THINKING: boolean;
|
|
2001
2038
|
MODEL_NAME: string;
|
|
2002
2039
|
SYSTEM_INSTRUCTION: string;
|
|
2003
2040
|
MAX_CHAR_SIZE_TO_ANSWER: number;
|
|
@@ -2006,6 +2043,7 @@ declare class Arbi {
|
|
|
2006
2043
|
};
|
|
2007
2044
|
SummariseLLM: {
|
|
2008
2045
|
API_TYPE: "local" | "remote";
|
|
2046
|
+
ENABLE_THINKING: boolean;
|
|
2009
2047
|
MODEL_NAME: string;
|
|
2010
2048
|
SYSTEM_INSTRUCTION: string;
|
|
2011
2049
|
TEMPERATURE: number;
|
|
@@ -2016,6 +2054,7 @@ declare class Arbi {
|
|
|
2016
2054
|
};
|
|
2017
2055
|
DoctagLLM: {
|
|
2018
2056
|
API_TYPE: "local" | "remote";
|
|
2057
|
+
ENABLE_THINKING: boolean;
|
|
2019
2058
|
MODEL_NAME: string;
|
|
2020
2059
|
SYSTEM_INSTRUCTION: string;
|
|
2021
2060
|
MAX_CHAR_CONTEXT_TO_ANSWER: number;
|
|
@@ -2033,6 +2072,7 @@ declare class Arbi {
|
|
|
2033
2072
|
};
|
|
2034
2073
|
MemoryLLM: {
|
|
2035
2074
|
API_TYPE: "local" | "remote";
|
|
2075
|
+
ENABLE_THINKING: boolean;
|
|
2036
2076
|
MODEL_NAME: string;
|
|
2037
2077
|
SYSTEM_INSTRUCTION: string;
|
|
2038
2078
|
TEMPERATURE: number;
|
|
@@ -2042,6 +2082,7 @@ declare class Arbi {
|
|
|
2042
2082
|
};
|
|
2043
2083
|
PlanningLLM: {
|
|
2044
2084
|
API_TYPE: "local" | "remote";
|
|
2085
|
+
ENABLE_THINKING: boolean;
|
|
2045
2086
|
MODEL_NAME: string;
|
|
2046
2087
|
SYSTEM_INSTRUCTION: string;
|
|
2047
2088
|
TEMPERATURE: number;
|
|
@@ -2049,8 +2090,17 @@ declare class Arbi {
|
|
|
2049
2090
|
MAX_CHAR_SIZE_TO_ANSWER: number;
|
|
2050
2091
|
APPROVAL_TIMEOUT: number;
|
|
2051
2092
|
};
|
|
2093
|
+
FilterPlanLLM: {
|
|
2094
|
+
API_TYPE: "local" | "remote";
|
|
2095
|
+
ENABLE_THINKING: boolean;
|
|
2096
|
+
MODEL_NAME: string;
|
|
2097
|
+
SYSTEM_INSTRUCTION: string;
|
|
2098
|
+
TEMPERATURE: number;
|
|
2099
|
+
MAX_TOKENS: number;
|
|
2100
|
+
};
|
|
2052
2101
|
VisionLLM: {
|
|
2053
2102
|
API_TYPE: "local" | "remote";
|
|
2103
|
+
ENABLE_THINKING: boolean;
|
|
2054
2104
|
MODEL_NAME: string;
|
|
2055
2105
|
TEMPERATURE: number;
|
|
2056
2106
|
MAX_TOKENS: number;
|
|
@@ -2059,6 +2109,7 @@ declare class Arbi {
|
|
|
2059
2109
|
};
|
|
2060
2110
|
CodeAgent: {
|
|
2061
2111
|
API_TYPE: "local" | "remote";
|
|
2112
|
+
ENABLE_THINKING: boolean;
|
|
2062
2113
|
MODEL_NAME: string;
|
|
2063
2114
|
SYSTEM_INSTRUCTION: string;
|
|
2064
2115
|
TEMPERATURE: number;
|
|
@@ -2069,6 +2120,7 @@ declare class Arbi {
|
|
|
2069
2120
|
SIM_THREASHOLD: number;
|
|
2070
2121
|
MIN_CHAR_SIZE_TO_ANSWER: number;
|
|
2071
2122
|
MAX_NUMB_CITATIONS: number;
|
|
2123
|
+
CITATION_INSTRUCTION: string;
|
|
2072
2124
|
};
|
|
2073
2125
|
Retriever: {
|
|
2074
2126
|
MIN_RETRIEVAL_SIM_SCORE: number;
|
|
@@ -2076,9 +2128,9 @@ declare class Arbi {
|
|
|
2076
2128
|
MAX_TOTAL_CHUNKS_TO_RETRIEVE: number;
|
|
2077
2129
|
GROUP_SIZE: number;
|
|
2078
2130
|
SEARCH_MODE: components["schemas"]["SearchMode"];
|
|
2131
|
+
HYBRID_PREFETCH_LIMIT: number;
|
|
2079
2132
|
HYBRID_DENSE_WEIGHT: number;
|
|
2080
2133
|
HYBRID_SPARSE_WEIGHT: number;
|
|
2081
|
-
HYBRID_RERANKER_WEIGHT: number;
|
|
2082
2134
|
};
|
|
2083
2135
|
Reranker: {
|
|
2084
2136
|
MIN_SCORE: number;
|
|
@@ -2086,6 +2138,7 @@ declare class Arbi {
|
|
|
2086
2138
|
MAX_CONCURRENT_REQUESTS: number;
|
|
2087
2139
|
MODEL_NAME: string;
|
|
2088
2140
|
API_TYPE: "local" | "remote";
|
|
2141
|
+
RETRIEVAL_INSTRUCTION: string;
|
|
2089
2142
|
};
|
|
2090
2143
|
Parser: {
|
|
2091
2144
|
SKIP_DUPLICATES: boolean;
|
|
@@ -2245,6 +2298,48 @@ declare class Arbi {
|
|
|
2245
2298
|
}>;
|
|
2246
2299
|
getContent: (fileId: string) => Promise<Response>;
|
|
2247
2300
|
};
|
|
2301
|
+
readonly agents: {
|
|
2302
|
+
list: () => Promise<{
|
|
2303
|
+
external_id: string;
|
|
2304
|
+
parent_ext_id?: string | null;
|
|
2305
|
+
email: string;
|
|
2306
|
+
given_name: string;
|
|
2307
|
+
family_name?: string | null;
|
|
2308
|
+
picture?: string | null;
|
|
2309
|
+
encryption_public_key: string;
|
|
2310
|
+
}[]>;
|
|
2311
|
+
delete: (agentExtIds: string[]) => Promise<{
|
|
2312
|
+
[x: string]: unknown;
|
|
2313
|
+
}>;
|
|
2314
|
+
};
|
|
2315
|
+
readonly sessions: {
|
|
2316
|
+
list: () => Promise<{
|
|
2317
|
+
session_id: string;
|
|
2318
|
+
external_id?: string | null;
|
|
2319
|
+
name?: string | null;
|
|
2320
|
+
ip_address?: string | null;
|
|
2321
|
+
active_workspace?: string | null;
|
|
2322
|
+
workspaces: string[];
|
|
2323
|
+
status: string;
|
|
2324
|
+
ttl: number;
|
|
2325
|
+
}[]>;
|
|
2326
|
+
authorize: (workspaces: Record<string, string>, options?: {
|
|
2327
|
+
activeWorkspace?: string;
|
|
2328
|
+
ttl?: number;
|
|
2329
|
+
persistIdentity?: boolean;
|
|
2330
|
+
name?: string;
|
|
2331
|
+
}) => Promise<{
|
|
2332
|
+
claim_code: string;
|
|
2333
|
+
}>;
|
|
2334
|
+
claim: (claimCode: string, signingKey?: string) => Promise<{
|
|
2335
|
+
access_token: string;
|
|
2336
|
+
session_key: string;
|
|
2337
|
+
user: components["schemas"]["UserResponse"];
|
|
2338
|
+
workspaces: {
|
|
2339
|
+
[key: string]: unknown;
|
|
2340
|
+
}[];
|
|
2341
|
+
}>;
|
|
2342
|
+
};
|
|
2248
2343
|
private requireClient;
|
|
2249
2344
|
private requireLogin;
|
|
2250
2345
|
private requireWorkspace;
|
|
@@ -2273,9 +2368,10 @@ declare function listWorkspaces(arbi: ArbiClient): Promise<{
|
|
|
2273
2368
|
users: {
|
|
2274
2369
|
user: {
|
|
2275
2370
|
external_id: string;
|
|
2371
|
+
parent_ext_id?: string | null | undefined;
|
|
2276
2372
|
email: string;
|
|
2277
2373
|
given_name: string;
|
|
2278
|
-
family_name
|
|
2374
|
+
family_name?: string | null | undefined;
|
|
2279
2375
|
picture?: string | null | undefined;
|
|
2280
2376
|
encryption_public_key: string;
|
|
2281
2377
|
};
|
|
@@ -2283,9 +2379,17 @@ declare function listWorkspaces(arbi: ArbiClient): Promise<{
|
|
|
2283
2379
|
joined_at: string;
|
|
2284
2380
|
conversation_count: number;
|
|
2285
2381
|
document_count: number;
|
|
2382
|
+
agent_ext_id?: string | null | undefined;
|
|
2286
2383
|
}[];
|
|
2287
2384
|
}[]>;
|
|
2288
|
-
|
|
2385
|
+
/**
|
|
2386
|
+
* Create a workspace with a pre-encrypted workspace key.
|
|
2387
|
+
*
|
|
2388
|
+
* The caller must generate a random 32-byte key, encrypt it with the session
|
|
2389
|
+
* public key (SealedBox via `sealKeyForSession`), and pass it here.
|
|
2390
|
+
* Use `Arbi.workspaces.create()` for automatic key generation.
|
|
2391
|
+
*/
|
|
2392
|
+
declare function createWorkspace(arbi: ArbiClient, name: string, encryptedWorkspaceKey: string, description?: string | null, isPublic?: boolean): Promise<{
|
|
2289
2393
|
external_id: string;
|
|
2290
2394
|
name: string;
|
|
2291
2395
|
description: string | null;
|
|
@@ -2303,9 +2407,10 @@ declare function createWorkspace(arbi: ArbiClient, name: string, description?: s
|
|
|
2303
2407
|
users: {
|
|
2304
2408
|
user: {
|
|
2305
2409
|
external_id: string;
|
|
2410
|
+
parent_ext_id?: string | null | undefined;
|
|
2306
2411
|
email: string;
|
|
2307
2412
|
given_name: string;
|
|
2308
|
-
family_name
|
|
2413
|
+
family_name?: string | null | undefined;
|
|
2309
2414
|
picture?: string | null | undefined;
|
|
2310
2415
|
encryption_public_key: string;
|
|
2311
2416
|
};
|
|
@@ -2313,6 +2418,7 @@ declare function createWorkspace(arbi: ArbiClient, name: string, description?: s
|
|
|
2313
2418
|
joined_at: string;
|
|
2314
2419
|
conversation_count: number;
|
|
2315
2420
|
document_count: number;
|
|
2421
|
+
agent_ext_id?: string | null | undefined;
|
|
2316
2422
|
}[];
|
|
2317
2423
|
}>;
|
|
2318
2424
|
declare function deleteWorkspaces(arbi: ArbiClient, workspaceIds: string[]): Promise<void>;
|
|
@@ -2334,9 +2440,10 @@ declare function updateWorkspace(arbi: ArbiClient, body: WorkspaceUpdateRequest)
|
|
|
2334
2440
|
users: {
|
|
2335
2441
|
user: {
|
|
2336
2442
|
external_id: string;
|
|
2443
|
+
parent_ext_id?: string | null | undefined;
|
|
2337
2444
|
email: string;
|
|
2338
2445
|
given_name: string;
|
|
2339
|
-
family_name
|
|
2446
|
+
family_name?: string | null | undefined;
|
|
2340
2447
|
picture?: string | null | undefined;
|
|
2341
2448
|
encryption_public_key: string;
|
|
2342
2449
|
};
|
|
@@ -2344,14 +2451,16 @@ declare function updateWorkspace(arbi: ArbiClient, body: WorkspaceUpdateRequest)
|
|
|
2344
2451
|
joined_at: string;
|
|
2345
2452
|
conversation_count: number;
|
|
2346
2453
|
document_count: number;
|
|
2454
|
+
agent_ext_id?: string | null | undefined;
|
|
2347
2455
|
}[];
|
|
2348
2456
|
}>;
|
|
2349
2457
|
declare function listWorkspaceUsers(arbi: ArbiClient): Promise<{
|
|
2350
2458
|
user: {
|
|
2351
2459
|
external_id: string;
|
|
2460
|
+
parent_ext_id?: string | null | undefined;
|
|
2352
2461
|
email: string;
|
|
2353
2462
|
given_name: string;
|
|
2354
|
-
family_name
|
|
2463
|
+
family_name?: string | null | undefined;
|
|
2355
2464
|
picture?: string | null | undefined;
|
|
2356
2465
|
encryption_public_key: string;
|
|
2357
2466
|
};
|
|
@@ -2359,13 +2468,15 @@ declare function listWorkspaceUsers(arbi: ArbiClient): Promise<{
|
|
|
2359
2468
|
joined_at: string;
|
|
2360
2469
|
conversation_count: number;
|
|
2361
2470
|
document_count: number;
|
|
2471
|
+
agent_ext_id?: string | null | undefined;
|
|
2362
2472
|
}[]>;
|
|
2363
2473
|
declare function addWorkspaceUsers(arbi: ArbiClient, emails: string[], role?: 'owner' | 'collaborator' | 'guest'): Promise<{
|
|
2364
2474
|
user: {
|
|
2365
2475
|
external_id: string;
|
|
2476
|
+
parent_ext_id?: string | null | undefined;
|
|
2366
2477
|
email: string;
|
|
2367
2478
|
given_name: string;
|
|
2368
|
-
family_name
|
|
2479
|
+
family_name?: string | null | undefined;
|
|
2369
2480
|
picture?: string | null | undefined;
|
|
2370
2481
|
encryption_public_key: string;
|
|
2371
2482
|
};
|
|
@@ -2373,14 +2484,16 @@ declare function addWorkspaceUsers(arbi: ArbiClient, emails: string[], role?: 'o
|
|
|
2373
2484
|
joined_at: string;
|
|
2374
2485
|
conversation_count: number;
|
|
2375
2486
|
document_count: number;
|
|
2487
|
+
agent_ext_id?: string | null | undefined;
|
|
2376
2488
|
}[]>;
|
|
2377
2489
|
declare function removeWorkspaceUsers(arbi: ArbiClient, userIds: string[]): Promise<void>;
|
|
2378
2490
|
declare function setUserRole(arbi: ArbiClient, userIds: string[], role: 'owner' | 'collaborator' | 'guest'): Promise<{
|
|
2379
2491
|
user: {
|
|
2380
2492
|
external_id: string;
|
|
2493
|
+
parent_ext_id?: string | null | undefined;
|
|
2381
2494
|
email: string;
|
|
2382
2495
|
given_name: string;
|
|
2383
|
-
family_name
|
|
2496
|
+
family_name?: string | null | undefined;
|
|
2384
2497
|
picture?: string | null | undefined;
|
|
2385
2498
|
encryption_public_key: string;
|
|
2386
2499
|
};
|
|
@@ -2388,6 +2501,7 @@ declare function setUserRole(arbi: ArbiClient, userIds: string[], role: 'owner'
|
|
|
2388
2501
|
joined_at: string;
|
|
2389
2502
|
conversation_count: number;
|
|
2390
2503
|
document_count: number;
|
|
2504
|
+
agent_ext_id?: string | null | undefined;
|
|
2391
2505
|
}[]>;
|
|
2392
2506
|
declare function copyDocuments(arbi: ArbiClient, targetWorkspaceId: string, docIds: string[], targetWorkspaceKey: string): Promise<{
|
|
2393
2507
|
detail: string;
|
|
@@ -2856,22 +2970,138 @@ declare namespace doctags {
|
|
|
2856
2970
|
export { doctags_assignDocTags as assignDocTags, doctags_generateDocTags as generateDocTags, doctags_removeDocTags as removeDocTags, doctags_updateDocTag as updateDocTag };
|
|
2857
2971
|
}
|
|
2858
2972
|
|
|
2973
|
+
/**
|
|
2974
|
+
* Direct message / notification operations — list, send, mark read, delete.
|
|
2975
|
+
*
|
|
2976
|
+
* All message content is E2E encrypted using ECDH (X25519 + XSalsa20-Poly1305).
|
|
2977
|
+
* Encryption keys are derived from the user's Ed25519 signing keypair.
|
|
2978
|
+
*/
|
|
2979
|
+
|
|
2980
|
+
type NotificationResponse = components['schemas']['NotificationResponse'];
|
|
2981
|
+
/**
|
|
2982
|
+
* Everything needed to encrypt/decrypt DMs.
|
|
2983
|
+
* Derive once per session, pass to all DM operations.
|
|
2984
|
+
*/
|
|
2985
|
+
interface DmCryptoContext {
|
|
2986
|
+
/** User's X25519 encryption keypair (derived from Ed25519 signing key) */
|
|
2987
|
+
encryptionKeypair: KeyPair;
|
|
2988
|
+
/** User's own external_id (to determine send vs receive direction) */
|
|
2989
|
+
userExtId: string;
|
|
2990
|
+
}
|
|
2991
|
+
/**
|
|
2992
|
+
* Create a DM crypto context from a signing private key.
|
|
2993
|
+
*
|
|
2994
|
+
* @param arbi - ArbiClient instance (provides crypto utilities)
|
|
2995
|
+
* @param signingPrivateKeyBytes - Ed25519 signing private key (64 bytes)
|
|
2996
|
+
* @param userExtId - Current user's external_id
|
|
2997
|
+
*/
|
|
2998
|
+
declare function createDmCryptoContext(arbi: ArbiClient, signingPrivateKeyBytes: Uint8Array, userExtId: string): DmCryptoContext;
|
|
2999
|
+
/**
|
|
3000
|
+
* Encrypt a plaintext message for a recipient.
|
|
3001
|
+
*
|
|
3002
|
+
* @param arbi - ArbiClient instance
|
|
3003
|
+
* @param plaintext - Message content to encrypt
|
|
3004
|
+
* @param recipientEncryptionPubKeyBase64 - Recipient's X25519 public key (base64)
|
|
3005
|
+
* @param senderEncryptionSecretKey - Sender's X25519 secret key (Uint8Array)
|
|
3006
|
+
* @returns Base64-encoded ciphertext (nonce prepended)
|
|
3007
|
+
*/
|
|
3008
|
+
declare function encryptDmContent(arbi: ArbiClient, plaintext: string, recipientEncryptionPubKeyBase64: string, senderEncryptionSecretKey: Uint8Array): Promise<string>;
|
|
3009
|
+
/**
|
|
3010
|
+
* Decrypt an encrypted notification message.
|
|
3011
|
+
*
|
|
3012
|
+
* Uses the sender/recipient public keys embedded in NotificationResponse
|
|
3013
|
+
* to determine the "other party" for ECDH decryption.
|
|
3014
|
+
*
|
|
3015
|
+
* @param arbi - ArbiClient instance
|
|
3016
|
+
* @param notification - The notification with encrypted content
|
|
3017
|
+
* @param crypto - DM crypto context for the current user
|
|
3018
|
+
* @returns Decrypted plaintext, or null if content is empty
|
|
3019
|
+
* @throws Error if decryption fails (wrong keys or tampered message)
|
|
3020
|
+
*/
|
|
3021
|
+
declare function decryptDmContent(arbi: ArbiClient, notification: NotificationResponse, crypto: DmCryptoContext): Promise<string | null>;
|
|
3022
|
+
/**
|
|
3023
|
+
* Decrypt a batch of notifications, replacing content in-place.
|
|
3024
|
+
* Failed decryptions get content set to '[Decryption failed]'.
|
|
3025
|
+
*
|
|
3026
|
+
* @returns New array with decrypted content
|
|
3027
|
+
*/
|
|
3028
|
+
declare function decryptDmBatch(arbi: ArbiClient, notifications: NotificationResponse[], crypto: DmCryptoContext): Promise<NotificationResponse[]>;
|
|
3029
|
+
/**
|
|
3030
|
+
* List DMs (raw — content is encrypted ciphertext).
|
|
3031
|
+
*/
|
|
2859
3032
|
declare function listDMs(arbi: ArbiClient): Promise<{
|
|
2860
|
-
type:
|
|
3033
|
+
type: components["schemas"]["NotificationType"];
|
|
3034
|
+
external_id: string;
|
|
3035
|
+
sender: {
|
|
3036
|
+
external_id: string;
|
|
3037
|
+
parent_ext_id?: string | null | undefined;
|
|
3038
|
+
email: string;
|
|
3039
|
+
given_name: string;
|
|
3040
|
+
family_name?: string | null | undefined;
|
|
3041
|
+
picture?: string | null | undefined;
|
|
3042
|
+
encryption_public_key: string;
|
|
3043
|
+
};
|
|
3044
|
+
recipient: {
|
|
3045
|
+
external_id: string;
|
|
3046
|
+
parent_ext_id?: string | null | undefined;
|
|
3047
|
+
email: string;
|
|
3048
|
+
given_name: string;
|
|
3049
|
+
family_name?: string | null | undefined;
|
|
3050
|
+
picture?: string | null | undefined;
|
|
3051
|
+
encryption_public_key: string;
|
|
3052
|
+
};
|
|
3053
|
+
workspace_ext_id?: string | null | undefined;
|
|
3054
|
+
content?: string | null | undefined;
|
|
3055
|
+
read: boolean;
|
|
3056
|
+
created_at: string;
|
|
3057
|
+
updated_at: string;
|
|
3058
|
+
}[]>;
|
|
3059
|
+
/**
|
|
3060
|
+
* List and decrypt DMs in one call.
|
|
3061
|
+
*/
|
|
3062
|
+
declare function listDecryptedDMs(arbi: ArbiClient, crypto: DmCryptoContext): Promise<{
|
|
3063
|
+
type: components["schemas"]["NotificationType"];
|
|
3064
|
+
external_id: string;
|
|
3065
|
+
sender: components["schemas"]["UserResponse"];
|
|
3066
|
+
recipient: components["schemas"]["UserResponse"];
|
|
3067
|
+
workspace_ext_id?: string | null;
|
|
3068
|
+
content?: string | null;
|
|
3069
|
+
read: boolean;
|
|
3070
|
+
created_at: string;
|
|
3071
|
+
updated_at: string;
|
|
3072
|
+
}[]>;
|
|
3073
|
+
/**
|
|
3074
|
+
* Send an E2E encrypted DM.
|
|
3075
|
+
*
|
|
3076
|
+
* Encrypts plaintext content for each recipient using their public key.
|
|
3077
|
+
* Requires recipient public keys — fetch via contacts or user lookup first.
|
|
3078
|
+
*
|
|
3079
|
+
* @param arbi - ArbiClient instance
|
|
3080
|
+
* @param messages - Array of { recipient_ext_id, content (plaintext), recipient_encryption_public_key }
|
|
3081
|
+
* @param crypto - DM crypto context for the sender
|
|
3082
|
+
*/
|
|
3083
|
+
declare function sendEncryptedDM(arbi: ArbiClient, messages: Array<{
|
|
3084
|
+
recipient_ext_id: string;
|
|
3085
|
+
content: string;
|
|
3086
|
+
recipient_encryption_public_key: string;
|
|
3087
|
+
}>, crypto: DmCryptoContext): Promise<{
|
|
3088
|
+
type: components["schemas"]["NotificationType"];
|
|
2861
3089
|
external_id: string;
|
|
2862
3090
|
sender: {
|
|
2863
3091
|
external_id: string;
|
|
3092
|
+
parent_ext_id?: string | null | undefined;
|
|
2864
3093
|
email: string;
|
|
2865
3094
|
given_name: string;
|
|
2866
|
-
family_name
|
|
3095
|
+
family_name?: string | null | undefined;
|
|
2867
3096
|
picture?: string | null | undefined;
|
|
2868
3097
|
encryption_public_key: string;
|
|
2869
3098
|
};
|
|
2870
3099
|
recipient: {
|
|
2871
3100
|
external_id: string;
|
|
3101
|
+
parent_ext_id?: string | null | undefined;
|
|
2872
3102
|
email: string;
|
|
2873
3103
|
given_name: string;
|
|
2874
|
-
family_name
|
|
3104
|
+
family_name?: string | null | undefined;
|
|
2875
3105
|
picture?: string | null | undefined;
|
|
2876
3106
|
encryption_public_key: string;
|
|
2877
3107
|
};
|
|
@@ -2881,25 +3111,31 @@ declare function listDMs(arbi: ArbiClient): Promise<{
|
|
|
2881
3111
|
created_at: string;
|
|
2882
3112
|
updated_at: string;
|
|
2883
3113
|
}[]>;
|
|
3114
|
+
/**
|
|
3115
|
+
* Send a plaintext DM (no encryption).
|
|
3116
|
+
* @deprecated Use sendEncryptedDM instead.
|
|
3117
|
+
*/
|
|
2884
3118
|
declare function sendDM(arbi: ArbiClient, messages: Array<{
|
|
2885
3119
|
recipient_ext_id: string;
|
|
2886
3120
|
content: string;
|
|
2887
3121
|
}>): Promise<{
|
|
2888
|
-
type:
|
|
3122
|
+
type: components["schemas"]["NotificationType"];
|
|
2889
3123
|
external_id: string;
|
|
2890
3124
|
sender: {
|
|
2891
3125
|
external_id: string;
|
|
3126
|
+
parent_ext_id?: string | null | undefined;
|
|
2892
3127
|
email: string;
|
|
2893
3128
|
given_name: string;
|
|
2894
|
-
family_name
|
|
3129
|
+
family_name?: string | null | undefined;
|
|
2895
3130
|
picture?: string | null | undefined;
|
|
2896
3131
|
encryption_public_key: string;
|
|
2897
3132
|
};
|
|
2898
3133
|
recipient: {
|
|
2899
3134
|
external_id: string;
|
|
3135
|
+
parent_ext_id?: string | null | undefined;
|
|
2900
3136
|
email: string;
|
|
2901
3137
|
given_name: string;
|
|
2902
|
-
family_name
|
|
3138
|
+
family_name?: string | null | undefined;
|
|
2903
3139
|
picture?: string | null | undefined;
|
|
2904
3140
|
encryption_public_key: string;
|
|
2905
3141
|
};
|
|
@@ -2910,21 +3146,23 @@ declare function sendDM(arbi: ArbiClient, messages: Array<{
|
|
|
2910
3146
|
updated_at: string;
|
|
2911
3147
|
}[]>;
|
|
2912
3148
|
declare function markRead(arbi: ArbiClient, messageIds: string[]): Promise<{
|
|
2913
|
-
type:
|
|
3149
|
+
type: components["schemas"]["NotificationType"];
|
|
2914
3150
|
external_id: string;
|
|
2915
3151
|
sender: {
|
|
2916
3152
|
external_id: string;
|
|
3153
|
+
parent_ext_id?: string | null | undefined;
|
|
2917
3154
|
email: string;
|
|
2918
3155
|
given_name: string;
|
|
2919
|
-
family_name
|
|
3156
|
+
family_name?: string | null | undefined;
|
|
2920
3157
|
picture?: string | null | undefined;
|
|
2921
3158
|
encryption_public_key: string;
|
|
2922
3159
|
};
|
|
2923
3160
|
recipient: {
|
|
2924
3161
|
external_id: string;
|
|
3162
|
+
parent_ext_id?: string | null | undefined;
|
|
2925
3163
|
email: string;
|
|
2926
3164
|
given_name: string;
|
|
2927
|
-
family_name
|
|
3165
|
+
family_name?: string | null | undefined;
|
|
2928
3166
|
picture?: string | null | undefined;
|
|
2929
3167
|
encryption_public_key: string;
|
|
2930
3168
|
};
|
|
@@ -2936,12 +3174,19 @@ declare function markRead(arbi: ArbiClient, messageIds: string[]): Promise<{
|
|
|
2936
3174
|
}[]>;
|
|
2937
3175
|
declare function deleteDMs(arbi: ArbiClient, messageIds: string[]): Promise<void>;
|
|
2938
3176
|
|
|
3177
|
+
type dm_DmCryptoContext = DmCryptoContext;
|
|
3178
|
+
declare const dm_createDmCryptoContext: typeof createDmCryptoContext;
|
|
3179
|
+
declare const dm_decryptDmBatch: typeof decryptDmBatch;
|
|
3180
|
+
declare const dm_decryptDmContent: typeof decryptDmContent;
|
|
2939
3181
|
declare const dm_deleteDMs: typeof deleteDMs;
|
|
3182
|
+
declare const dm_encryptDmContent: typeof encryptDmContent;
|
|
2940
3183
|
declare const dm_listDMs: typeof listDMs;
|
|
3184
|
+
declare const dm_listDecryptedDMs: typeof listDecryptedDMs;
|
|
2941
3185
|
declare const dm_markRead: typeof markRead;
|
|
2942
3186
|
declare const dm_sendDM: typeof sendDM;
|
|
3187
|
+
declare const dm_sendEncryptedDM: typeof sendEncryptedDM;
|
|
2943
3188
|
declare namespace dm {
|
|
2944
|
-
export { dm_deleteDMs as deleteDMs, dm_listDMs as listDMs, dm_markRead as markRead, dm_sendDM as sendDM };
|
|
3189
|
+
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 };
|
|
2945
3190
|
}
|
|
2946
3191
|
|
|
2947
3192
|
/**
|
|
@@ -2972,6 +3217,7 @@ declare function getSettings(arbi: ArbiClient): Promise<{
|
|
|
2972
3217
|
show_help_page: boolean;
|
|
2973
3218
|
show_templates: boolean;
|
|
2974
3219
|
show_pa_mode: boolean;
|
|
3220
|
+
show_agent_sessions: boolean;
|
|
2975
3221
|
hide_online_status: boolean;
|
|
2976
3222
|
muted_users: string[];
|
|
2977
3223
|
}>;
|
|
@@ -3015,8 +3261,6 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3015
3261
|
SUGGESTED_QUERIES: boolean;
|
|
3016
3262
|
ARTIFACTS_ENABLED: boolean;
|
|
3017
3263
|
VISION_ENABLED: boolean;
|
|
3018
|
-
DOC_INDEX_COMPACT_THRESHOLD: number;
|
|
3019
|
-
DOC_INDEX_SKIP_THRESHOLD: number;
|
|
3020
3264
|
PERSONAL_AGENT: boolean;
|
|
3021
3265
|
MEMORY_ENABLED: boolean;
|
|
3022
3266
|
SKILLS_ENABLED: boolean;
|
|
@@ -3027,13 +3271,15 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3027
3271
|
AGENT_API_TYPE: "local" | "remote";
|
|
3028
3272
|
LLM_AGENT_TEMPERATURE: number;
|
|
3029
3273
|
AGENT_MAX_TOKENS: number;
|
|
3274
|
+
ENABLE_THINKING: boolean;
|
|
3030
3275
|
AGENT_MAX_ITERATIONS: number;
|
|
3031
|
-
|
|
3276
|
+
AGENT_MAX_PARALLEL_TOOL_CALLS: number;
|
|
3032
3277
|
AGENT_HISTORY_CHAR_THRESHOLD: number;
|
|
3033
3278
|
AGENT_SYSTEM_PROMPT: string;
|
|
3034
3279
|
};
|
|
3035
3280
|
QueryLLM: {
|
|
3036
3281
|
API_TYPE: "local" | "remote";
|
|
3282
|
+
ENABLE_THINKING: boolean;
|
|
3037
3283
|
MODEL_NAME: string;
|
|
3038
3284
|
SYSTEM_INSTRUCTION: string;
|
|
3039
3285
|
MAX_CHAR_SIZE_TO_ANSWER: number;
|
|
@@ -3042,6 +3288,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3042
3288
|
};
|
|
3043
3289
|
ReviewLLM: {
|
|
3044
3290
|
API_TYPE: "local" | "remote";
|
|
3291
|
+
ENABLE_THINKING: boolean;
|
|
3045
3292
|
MODEL_NAME: string;
|
|
3046
3293
|
SYSTEM_INSTRUCTION: string;
|
|
3047
3294
|
TEMPERATURE: number;
|
|
@@ -3050,6 +3297,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3050
3297
|
};
|
|
3051
3298
|
EvaluatorLLM: {
|
|
3052
3299
|
API_TYPE: "local" | "remote";
|
|
3300
|
+
ENABLE_THINKING: boolean;
|
|
3053
3301
|
MODEL_NAME: string;
|
|
3054
3302
|
SYSTEM_INSTRUCTION: string;
|
|
3055
3303
|
TEMPERATURE: number;
|
|
@@ -3058,6 +3306,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3058
3306
|
};
|
|
3059
3307
|
TitleLLM: {
|
|
3060
3308
|
API_TYPE: "local" | "remote";
|
|
3309
|
+
ENABLE_THINKING: boolean;
|
|
3061
3310
|
MODEL_NAME: string;
|
|
3062
3311
|
SYSTEM_INSTRUCTION: string;
|
|
3063
3312
|
MAX_CHAR_SIZE_TO_ANSWER: number;
|
|
@@ -3066,6 +3315,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3066
3315
|
};
|
|
3067
3316
|
SummariseLLM: {
|
|
3068
3317
|
API_TYPE: "local" | "remote";
|
|
3318
|
+
ENABLE_THINKING: boolean;
|
|
3069
3319
|
MODEL_NAME: string;
|
|
3070
3320
|
SYSTEM_INSTRUCTION: string;
|
|
3071
3321
|
TEMPERATURE: number;
|
|
@@ -3076,6 +3326,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3076
3326
|
};
|
|
3077
3327
|
DoctagLLM: {
|
|
3078
3328
|
API_TYPE: "local" | "remote";
|
|
3329
|
+
ENABLE_THINKING: boolean;
|
|
3079
3330
|
MODEL_NAME: string;
|
|
3080
3331
|
SYSTEM_INSTRUCTION: string;
|
|
3081
3332
|
MAX_CHAR_CONTEXT_TO_ANSWER: number;
|
|
@@ -3093,6 +3344,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3093
3344
|
};
|
|
3094
3345
|
MemoryLLM: {
|
|
3095
3346
|
API_TYPE: "local" | "remote";
|
|
3347
|
+
ENABLE_THINKING: boolean;
|
|
3096
3348
|
MODEL_NAME: string;
|
|
3097
3349
|
SYSTEM_INSTRUCTION: string;
|
|
3098
3350
|
TEMPERATURE: number;
|
|
@@ -3102,6 +3354,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3102
3354
|
};
|
|
3103
3355
|
PlanningLLM: {
|
|
3104
3356
|
API_TYPE: "local" | "remote";
|
|
3357
|
+
ENABLE_THINKING: boolean;
|
|
3105
3358
|
MODEL_NAME: string;
|
|
3106
3359
|
SYSTEM_INSTRUCTION: string;
|
|
3107
3360
|
TEMPERATURE: number;
|
|
@@ -3109,8 +3362,17 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3109
3362
|
MAX_CHAR_SIZE_TO_ANSWER: number;
|
|
3110
3363
|
APPROVAL_TIMEOUT: number;
|
|
3111
3364
|
};
|
|
3365
|
+
FilterPlanLLM: {
|
|
3366
|
+
API_TYPE: "local" | "remote";
|
|
3367
|
+
ENABLE_THINKING: boolean;
|
|
3368
|
+
MODEL_NAME: string;
|
|
3369
|
+
SYSTEM_INSTRUCTION: string;
|
|
3370
|
+
TEMPERATURE: number;
|
|
3371
|
+
MAX_TOKENS: number;
|
|
3372
|
+
};
|
|
3112
3373
|
VisionLLM: {
|
|
3113
3374
|
API_TYPE: "local" | "remote";
|
|
3375
|
+
ENABLE_THINKING: boolean;
|
|
3114
3376
|
MODEL_NAME: string;
|
|
3115
3377
|
TEMPERATURE: number;
|
|
3116
3378
|
MAX_TOKENS: number;
|
|
@@ -3119,6 +3381,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3119
3381
|
};
|
|
3120
3382
|
CodeAgent: {
|
|
3121
3383
|
API_TYPE: "local" | "remote";
|
|
3384
|
+
ENABLE_THINKING: boolean;
|
|
3122
3385
|
MODEL_NAME: string;
|
|
3123
3386
|
SYSTEM_INSTRUCTION: string;
|
|
3124
3387
|
TEMPERATURE: number;
|
|
@@ -3129,6 +3392,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3129
3392
|
SIM_THREASHOLD: number;
|
|
3130
3393
|
MIN_CHAR_SIZE_TO_ANSWER: number;
|
|
3131
3394
|
MAX_NUMB_CITATIONS: number;
|
|
3395
|
+
CITATION_INSTRUCTION: string;
|
|
3132
3396
|
};
|
|
3133
3397
|
Retriever: {
|
|
3134
3398
|
MIN_RETRIEVAL_SIM_SCORE: number;
|
|
@@ -3136,9 +3400,9 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3136
3400
|
MAX_TOTAL_CHUNKS_TO_RETRIEVE: number;
|
|
3137
3401
|
GROUP_SIZE: number;
|
|
3138
3402
|
SEARCH_MODE: components["schemas"]["SearchMode"];
|
|
3403
|
+
HYBRID_PREFETCH_LIMIT: number;
|
|
3139
3404
|
HYBRID_DENSE_WEIGHT: number;
|
|
3140
3405
|
HYBRID_SPARSE_WEIGHT: number;
|
|
3141
|
-
HYBRID_RERANKER_WEIGHT: number;
|
|
3142
3406
|
};
|
|
3143
3407
|
Reranker: {
|
|
3144
3408
|
MIN_SCORE: number;
|
|
@@ -3146,6 +3410,7 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
3146
3410
|
MAX_CONCURRENT_REQUESTS: number;
|
|
3147
3411
|
MODEL_NAME: string;
|
|
3148
3412
|
API_TYPE: "local" | "remote";
|
|
3413
|
+
RETRIEVAL_INSTRUCTION: string;
|
|
3149
3414
|
};
|
|
3150
3415
|
Parser: {
|
|
3151
3416
|
SKIP_DUPLICATES: boolean;
|
|
@@ -3319,4 +3584,4 @@ declare namespace responses {
|
|
|
3319
3584
|
export { type responses_SubmitBackgroundQueryOptions as SubmitBackgroundQueryOptions, responses_extractResponseText as extractResponseText, responses_getResponse as getResponse, responses_submitBackgroundQuery as submitBackgroundQuery };
|
|
3320
3585
|
}
|
|
3321
3586
|
|
|
3322
|
-
export {
|
|
3587
|
+
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 };
|