@arbidocs/react 0.4.144 → 0.4.145
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/artifacts/index.cjs +11 -14
- package/dist/artifacts/index.cjs.map +1 -1
- package/dist/artifacts/index.d.cts +1 -3
- package/dist/artifacts/index.d.ts +1 -3
- package/dist/artifacts/index.js +7 -10
- package/dist/artifacts/index.js.map +1 -1
- package/dist/{chunk-CVJ25DFD.cjs → chunk-CG6USBJX.cjs} +492 -11
- package/dist/chunk-CG6USBJX.cjs.map +1 -0
- package/dist/chunk-MUYBFDYJ.js +859 -0
- package/dist/chunk-MUYBFDYJ.js.map +1 -0
- package/dist/index.cjs +630 -327
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +644 -177
- package/dist/index.d.ts +644 -177
- package/dist/index.js +323 -157
- package/dist/index.js.map +1 -1
- package/dist/ui/index.cjs +9 -9
- package/dist/ui/index.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-CVJ25DFD.cjs.map +0 -1
- package/dist/chunk-E4VILXG5.js +0 -411
- package/dist/chunk-E4VILXG5.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var chunkKLPY2HUC_cjs = require('./chunk-KLPY2HUC.cjs');
|
|
3
|
+
var chunkCG6USBJX_cjs = require('./chunk-CG6USBJX.cjs');
|
|
5
4
|
var chunkL57RRAII_cjs = require('./chunk-L57RRAII.cjs');
|
|
6
5
|
var chunkZWFMFOGP_cjs = require('./chunk-ZWFMFOGP.cjs');
|
|
7
6
|
require('./chunk-VOFNX4P6.cjs');
|
|
7
|
+
var chunkKLPY2HUC_cjs = require('./chunk-KLPY2HUC.cjs');
|
|
8
8
|
var chunk65WT5PHA_cjs = require('./chunk-65WT5PHA.cjs');
|
|
9
9
|
var chunkOC7F5SNA_cjs = require('./chunk-OC7F5SNA.cjs');
|
|
10
|
-
var chunkHUZB36QU_cjs = require('./chunk-HUZB36QU.cjs');
|
|
11
10
|
var chunkWYZJLZ67_cjs = require('./chunk-WYZJLZ67.cjs');
|
|
12
11
|
var chunkZ3LLUO32_cjs = require('./chunk-Z3LLUO32.cjs');
|
|
12
|
+
var chunkHUZB36QU_cjs = require('./chunk-HUZB36QU.cjs');
|
|
13
13
|
var chunkHJDR5HEO_cjs = require('./chunk-HJDR5HEO.cjs');
|
|
14
14
|
var chunkS6A6FSG7_cjs = require('./chunk-S6A6FSG7.cjs');
|
|
15
15
|
var chunkTMPDW7J5_cjs = require('./chunk-TMPDW7J5.cjs');
|
|
@@ -43,7 +43,7 @@ function useUpdateConversation() {
|
|
|
43
43
|
conversationId,
|
|
44
44
|
patch
|
|
45
45
|
}) => arbi.conversations.update(conversationId, patch),
|
|
46
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
46
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.allConversations() })
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
function useCreateWork() {
|
|
@@ -51,7 +51,7 @@ function useCreateWork() {
|
|
|
51
51
|
const qc = reactQuery.useQueryClient();
|
|
52
52
|
return reactQuery.useMutation({
|
|
53
53
|
mutationFn: (body) => arbi.conversations.createWork(body),
|
|
54
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
54
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.allConversations() })
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
function useRunConversation() {
|
|
@@ -59,7 +59,7 @@ function useRunConversation() {
|
|
|
59
59
|
const qc = reactQuery.useQueryClient();
|
|
60
60
|
return reactQuery.useMutation({
|
|
61
61
|
mutationFn: (conversationId) => arbi.conversations.runWithAuth(conversationId),
|
|
62
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
62
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.allConversations() })
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
65
|
function useActOnStep() {
|
|
@@ -70,7 +70,7 @@ function useActOnStep() {
|
|
|
70
70
|
conversationId,
|
|
71
71
|
body
|
|
72
72
|
}) => arbi.conversations.actOnStep(conversationId, body),
|
|
73
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
73
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.allConversations() })
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
76
|
function useSendBackStep() {
|
|
@@ -83,7 +83,7 @@ function useSendBackStep() {
|
|
|
83
83
|
to,
|
|
84
84
|
note
|
|
85
85
|
}) => arbi.conversations.sendBackStep(conversationId, step, { to, note }),
|
|
86
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
86
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.allConversations() })
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
function usePlanWork() {
|
|
@@ -95,7 +95,7 @@ function usePlanWork() {
|
|
|
95
95
|
function useConversationPendingAuth(conversationId, options) {
|
|
96
96
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
97
97
|
return reactQuery.useQuery({
|
|
98
|
-
queryKey: [...
|
|
98
|
+
queryKey: [...chunkCG6USBJX_cjs.arbiQueryKeys.allConversations(), conversationId ?? "", "pending-auth"],
|
|
99
99
|
queryFn: () => arbi.conversations.pendingAuth(conversationId),
|
|
100
100
|
enabled: (options?.enabled ?? true) && !!conversationId && arbi.isLoggedIn,
|
|
101
101
|
retry: false
|
|
@@ -104,7 +104,7 @@ function useConversationPendingAuth(conversationId, options) {
|
|
|
104
104
|
function useConversationActivity(conversationId, options) {
|
|
105
105
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
106
106
|
return reactQuery.useQuery({
|
|
107
|
-
queryKey:
|
|
107
|
+
queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.conversationActivity(conversationId ?? ""),
|
|
108
108
|
queryFn: () => arbi.conversations.activity(conversationId),
|
|
109
109
|
enabled: (options?.enabled ?? true) && !!conversationId && arbi.isLoggedIn,
|
|
110
110
|
refetchInterval: options?.live ? 2500 : false
|
|
@@ -113,7 +113,7 @@ function useConversationActivity(conversationId, options) {
|
|
|
113
113
|
function useWorkflows(options) {
|
|
114
114
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
115
115
|
return reactQuery.useQuery({
|
|
116
|
-
queryKey:
|
|
116
|
+
queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.workflows(),
|
|
117
117
|
queryFn: () => arbi.workflows.list(),
|
|
118
118
|
// A clock or event can fire while the list is open, without a write here.
|
|
119
119
|
refetchInterval: options?.live ? 1e4 : false,
|
|
@@ -123,7 +123,7 @@ function useWorkflows(options) {
|
|
|
123
123
|
function useWorkflowRuns(workflowId) {
|
|
124
124
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
125
125
|
return reactQuery.useQuery({
|
|
126
|
-
queryKey:
|
|
126
|
+
queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.workflowRuns(workflowId ?? ""),
|
|
127
127
|
queryFn: () => arbi.workflows.runs(workflowId),
|
|
128
128
|
enabled: !!workflowId && arbi.isLoggedIn,
|
|
129
129
|
refetchInterval: 3e3,
|
|
@@ -136,7 +136,7 @@ function useCreateWorkflow() {
|
|
|
136
136
|
const qc = reactQuery.useQueryClient();
|
|
137
137
|
return reactQuery.useMutation({
|
|
138
138
|
mutationFn: (body) => arbi.workflows.create(body),
|
|
139
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
139
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.workflows() })
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
142
|
function useUpdateWorkflow() {
|
|
@@ -147,7 +147,7 @@ function useUpdateWorkflow() {
|
|
|
147
147
|
workflowId,
|
|
148
148
|
patch
|
|
149
149
|
}) => arbi.workflows.update(workflowId, patch),
|
|
150
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
150
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.workflows() })
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
153
|
function useDeleteWorkflow() {
|
|
@@ -155,18 +155,18 @@ function useDeleteWorkflow() {
|
|
|
155
155
|
const qc = reactQuery.useQueryClient();
|
|
156
156
|
return reactQuery.useMutation({
|
|
157
157
|
mutationFn: (workflowId) => arbi.workflows.delete(workflowId),
|
|
158
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
158
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.workflows() })
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
161
|
function useRunWorkflow() {
|
|
162
162
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
163
163
|
const qc = reactQuery.useQueryClient();
|
|
164
164
|
return reactQuery.useMutation({
|
|
165
|
-
mutationKey:
|
|
165
|
+
mutationKey: chunkCG6USBJX_cjs.arbiMutationKeys.runWorkflow(),
|
|
166
166
|
mutationFn: (workflowId) => arbi.workflows.run(workflowId),
|
|
167
167
|
onSuccess: () => Promise.all([
|
|
168
|
-
qc.invalidateQueries({ queryKey:
|
|
169
|
-
qc.invalidateQueries({ queryKey:
|
|
168
|
+
qc.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.workflows() }),
|
|
169
|
+
qc.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.allConversations() })
|
|
170
170
|
])
|
|
171
171
|
});
|
|
172
172
|
}
|
|
@@ -175,7 +175,7 @@ function useCreateAgent() {
|
|
|
175
175
|
const qc = reactQuery.useQueryClient();
|
|
176
176
|
return reactQuery.useMutation({
|
|
177
177
|
mutationFn: (name) => arbi.agents.create(name),
|
|
178
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
178
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.agents() })
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
181
|
function useGenerateAgentAvatar() {
|
|
@@ -183,13 +183,13 @@ function useGenerateAgentAvatar() {
|
|
|
183
183
|
const qc = reactQuery.useQueryClient();
|
|
184
184
|
return reactQuery.useMutation({
|
|
185
185
|
mutationFn: ({ agentExtId, prompt }) => arbi.agents.generateAvatar(agentExtId, prompt),
|
|
186
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
186
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.agents() })
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
189
|
function useAuthorizeLimits(options) {
|
|
190
190
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
191
191
|
return reactQuery.useQuery({
|
|
192
|
-
queryKey:
|
|
192
|
+
queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.authorizeLimits(),
|
|
193
193
|
queryFn: () => arbi.agents.authorizeLimits(),
|
|
194
194
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
195
195
|
});
|
|
@@ -197,7 +197,7 @@ function useAuthorizeLimits(options) {
|
|
|
197
197
|
function useMcpTools(options) {
|
|
198
198
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
199
199
|
return reactQuery.useQuery({
|
|
200
|
-
queryKey:
|
|
200
|
+
queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.mcpTools(),
|
|
201
201
|
queryFn: () => arbi.health.mcpTools(),
|
|
202
202
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
203
203
|
});
|
|
@@ -205,7 +205,7 @@ function useMcpTools(options) {
|
|
|
205
205
|
function useAgentConfig(agentExtId, options) {
|
|
206
206
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
207
207
|
return reactQuery.useQuery({
|
|
208
|
-
queryKey:
|
|
208
|
+
queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.agentConfig(agentExtId),
|
|
209
209
|
queryFn: async () => agentExtId ? await arbi.agents.getConfig(agentExtId) : await arbi.agentConfig.get("default"),
|
|
210
210
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
211
211
|
});
|
|
@@ -213,7 +213,7 @@ function useAgentConfig(agentExtId, options) {
|
|
|
213
213
|
function useAgentModels(options) {
|
|
214
214
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
215
215
|
return reactQuery.useQuery({
|
|
216
|
-
queryKey:
|
|
216
|
+
queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.models(),
|
|
217
217
|
queryFn: async () => (await arbi.agentConfig.getModels()).models.map((m) => m.model_name),
|
|
218
218
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
219
219
|
});
|
|
@@ -236,17 +236,17 @@ function useSaveAgentConfig() {
|
|
|
236
236
|
});
|
|
237
237
|
},
|
|
238
238
|
onSuccess: (_saved, { agentExtId }) => Promise.all([
|
|
239
|
-
qc.invalidateQueries({ queryKey:
|
|
240
|
-
qc.invalidateQueries({ queryKey:
|
|
239
|
+
qc.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.configs() }),
|
|
240
|
+
qc.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.agentConfig(agentExtId) }),
|
|
241
241
|
// The agent list shows the pinned persona/model, so it refreshes too.
|
|
242
|
-
qc.invalidateQueries({ queryKey:
|
|
242
|
+
qc.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.agents() })
|
|
243
243
|
])
|
|
244
244
|
});
|
|
245
245
|
}
|
|
246
246
|
function useAgentWorkspaces(agentExtId, options) {
|
|
247
247
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
248
248
|
return reactQuery.useQuery({
|
|
249
|
-
queryKey:
|
|
249
|
+
queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.agentWorkspaces(agentExtId ?? ""),
|
|
250
250
|
queryFn: () => arbi.agents.listWorkspaces(agentExtId),
|
|
251
251
|
enabled: (options?.enabled ?? true) && !!agentExtId && arbi.isLoggedIn
|
|
252
252
|
});
|
|
@@ -267,7 +267,7 @@ function useGrantAgentAccess() {
|
|
|
267
267
|
if (!agent?.email) throw new Error("The agent's address is unknown.");
|
|
268
268
|
return arbi.workspaces.grantAccess({ workspaceId, emails: [agent.email] });
|
|
269
269
|
},
|
|
270
|
-
onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey:
|
|
270
|
+
onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.agentWorkspaces(agentExtId) })
|
|
271
271
|
});
|
|
272
272
|
}
|
|
273
273
|
function useRevokeAgentAccess() {
|
|
@@ -286,13 +286,13 @@ function useRevokeAgentAccess() {
|
|
|
286
286
|
if (previous && previous !== workspaceId) await arbi.selectWorkspace(previous);
|
|
287
287
|
}
|
|
288
288
|
},
|
|
289
|
-
onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey:
|
|
289
|
+
onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.agentWorkspaces(agentExtId) })
|
|
290
290
|
});
|
|
291
291
|
}
|
|
292
292
|
function useSkills(options) {
|
|
293
293
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
294
294
|
return reactQuery.useQuery({
|
|
295
|
-
queryKey: [...
|
|
295
|
+
queryKey: [...chunkCG6USBJX_cjs.arbiQueryKeys.skills(), options?.includeHidden ?? false],
|
|
296
296
|
queryFn: () => arbi.assistant.listSkills({ includeHidden: options?.includeHidden }),
|
|
297
297
|
refetchInterval: options?.live ? 5e3 : false,
|
|
298
298
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn,
|
|
@@ -324,13 +324,13 @@ function useUploadSkillFiles() {
|
|
|
324
324
|
}
|
|
325
325
|
return results;
|
|
326
326
|
},
|
|
327
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
327
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.skills() })
|
|
328
328
|
});
|
|
329
329
|
}
|
|
330
330
|
function useSkillSource(docExtId, options) {
|
|
331
331
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
332
332
|
return reactQuery.useQuery({
|
|
333
|
-
queryKey:
|
|
333
|
+
queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.skillSource(docExtId ?? ""),
|
|
334
334
|
queryFn: async () => {
|
|
335
335
|
const response = await arbi.documents.download(docExtId);
|
|
336
336
|
if (!response.ok) throw new Error(`Could not read the skill (${response.status})`);
|
|
@@ -345,7 +345,7 @@ function useDeleteSkill() {
|
|
|
345
345
|
const qc = reactQuery.useQueryClient();
|
|
346
346
|
return reactQuery.useMutation({
|
|
347
347
|
mutationFn: (docExtId) => arbi.documents.delete([docExtId]),
|
|
348
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
348
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.skills() })
|
|
349
349
|
});
|
|
350
350
|
}
|
|
351
351
|
function useSetSkillVisibility() {
|
|
@@ -353,7 +353,7 @@ function useSetSkillVisibility() {
|
|
|
353
353
|
const qc = reactQuery.useQueryClient();
|
|
354
354
|
return reactQuery.useMutation({
|
|
355
355
|
mutationFn: ({ docExtId, visibility }) => arbi.documents.update([{ external_id: docExtId, shared: visibility === "global" }]),
|
|
356
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
356
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.skills() })
|
|
357
357
|
});
|
|
358
358
|
}
|
|
359
359
|
function useStartWorkQuery() {
|
|
@@ -380,13 +380,13 @@ function useStartWorkQuery() {
|
|
|
380
380
|
`The run ${response.id} started, but its thread is not available yet. Do not submit it again.`
|
|
381
381
|
);
|
|
382
382
|
},
|
|
383
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
383
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.allConversations() })
|
|
384
384
|
});
|
|
385
385
|
}
|
|
386
386
|
function useAgentSession(agentId, options) {
|
|
387
387
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
388
388
|
return reactQuery.useQuery({
|
|
389
|
-
queryKey:
|
|
389
|
+
queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.agentSession(agentId ?? ""),
|
|
390
390
|
queryFn: () => arbi.agents.getSession(agentId),
|
|
391
391
|
enabled: !!agentId && arbi.isLoggedIn && (options?.enabled ?? true),
|
|
392
392
|
refetchInterval: 5e3
|
|
@@ -395,7 +395,7 @@ function useAgentSession(agentId, options) {
|
|
|
395
395
|
function useAgentChats(agentId) {
|
|
396
396
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
397
397
|
return reactQuery.useQuery({
|
|
398
|
-
queryKey:
|
|
398
|
+
queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.agentChats(agentId ?? ""),
|
|
399
399
|
queryFn: () => arbi.agents.listChats(agentId),
|
|
400
400
|
enabled: !!agentId && arbi.isLoggedIn,
|
|
401
401
|
refetchInterval: 5e3
|
|
@@ -404,10 +404,10 @@ function useAgentChats(agentId) {
|
|
|
404
404
|
function refreshAgentSession(qc, agentId) {
|
|
405
405
|
return Promise.all(
|
|
406
406
|
[
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
407
|
+
chunkCG6USBJX_cjs.arbiQueryKeys.agentSession(agentId),
|
|
408
|
+
chunkCG6USBJX_cjs.arbiQueryKeys.agentWorkspaces(agentId),
|
|
409
|
+
chunkCG6USBJX_cjs.arbiQueryKeys.agentChats(agentId),
|
|
410
|
+
chunkCG6USBJX_cjs.arbiQueryKeys.sessions()
|
|
411
411
|
].map((queryKey) => qc.invalidateQueries({ queryKey }))
|
|
412
412
|
);
|
|
413
413
|
}
|
|
@@ -554,8 +554,9 @@ function useArbiChat(options = {}) {
|
|
|
554
554
|
const recoveryIntervalMs = streamRecovery?.intervalMs ?? 3e3;
|
|
555
555
|
const recoveryTimeoutMs = streamRecovery?.timeoutMs ?? 12e4;
|
|
556
556
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
557
|
-
const
|
|
558
|
-
const
|
|
557
|
+
const queryClient = reactQuery.useQueryClient();
|
|
558
|
+
const { data: docs = [], isLoading: isLoadingDocuments } = chunkCG6USBJX_cjs.useDocuments(workspaceId);
|
|
559
|
+
const ordinaryHistory = chunkCG6USBJX_cjs.useConversations(workspaceId, { enabled: !agentId, live: true });
|
|
559
560
|
const agentHistory = useAgentChats(agentId);
|
|
560
561
|
const stored = React.useMemo(
|
|
561
562
|
() => agentId ? (agentHistory.data ?? []).filter((chat) => chat.workspace_ext_id === workspaceId).map((chat) => ({
|
|
@@ -570,7 +571,7 @@ function useArbiChat(options = {}) {
|
|
|
570
571
|
);
|
|
571
572
|
const isLoadingThreads = agentId ? agentHistory.isLoading : ordinaryHistory.isLoading;
|
|
572
573
|
const refetchConversations = agentId ? agentHistory.refetch : ordinaryHistory.refetch;
|
|
573
|
-
const query =
|
|
574
|
+
const query = chunkCG6USBJX_cjs.useAssistantQuery();
|
|
574
575
|
const { mutateAsync } = query;
|
|
575
576
|
const [stagedFiles, setStagedFiles] = React.useState([]);
|
|
576
577
|
const [threads, setThreads] = React.useState(() => [emptyThread()]);
|
|
@@ -630,7 +631,7 @@ function useArbiChat(options = {}) {
|
|
|
630
631
|
(conversation) => conversation.external_id === active.conversationId && conversation.status === "generating"
|
|
631
632
|
) || active.messages.some((message) => message.status === "streaming");
|
|
632
633
|
const needsLoad = !!active.conversationId && !active.isLoaded;
|
|
633
|
-
const loaded =
|
|
634
|
+
const loaded = chunkCG6USBJX_cjs.useConversationThreads(workspaceId, active.conversationId ?? void 0, {
|
|
634
635
|
enabled: needsLoad || liveHistory && !isRunning && !isPostingComment,
|
|
635
636
|
live: liveHistory
|
|
636
637
|
});
|
|
@@ -1094,6 +1095,7 @@ function useArbiChat(options = {}) {
|
|
|
1094
1095
|
setIsUploading(true);
|
|
1095
1096
|
setUploadError(null);
|
|
1096
1097
|
try {
|
|
1098
|
+
const uploaded = [];
|
|
1097
1099
|
for (const file of files) {
|
|
1098
1100
|
if (agentId) {
|
|
1099
1101
|
const staged = await arbi.agents.stageFile(agentId, file, file.name);
|
|
@@ -1101,16 +1103,17 @@ function useArbiChat(options = {}) {
|
|
|
1101
1103
|
...all.filter((existing) => existing.id !== staged.path),
|
|
1102
1104
|
{ id: staged.path, name: staged.name }
|
|
1103
1105
|
]);
|
|
1104
|
-
} else
|
|
1106
|
+
} else
|
|
1107
|
+
uploaded.push(...(await arbi.documents.uploadFile(file, file.name)).doc_ext_ids ?? []);
|
|
1105
1108
|
}
|
|
1106
|
-
if (
|
|
1109
|
+
if (uploaded.length) await chunkCG6USBJX_cjs.refreshDocuments(queryClient, arbi, uploaded);
|
|
1107
1110
|
} catch (e) {
|
|
1108
1111
|
setUploadError(messageOf(e, "The upload failed."));
|
|
1109
1112
|
} finally {
|
|
1110
1113
|
setIsUploading(false);
|
|
1111
1114
|
}
|
|
1112
1115
|
},
|
|
1113
|
-
[arbi,
|
|
1116
|
+
[arbi, queryClient, agentId]
|
|
1114
1117
|
);
|
|
1115
1118
|
return {
|
|
1116
1119
|
assistantMode,
|
|
@@ -1398,28 +1401,21 @@ function useArbiWsTasks() {
|
|
|
1398
1401
|
function useArbiWsTask(docId) {
|
|
1399
1402
|
return useArbiWsStore((s) => s.tasks[docId]);
|
|
1400
1403
|
}
|
|
1401
|
-
var TERMINAL_STATUSES = /* @__PURE__ */ new Set([
|
|
1402
|
-
"completed",
|
|
1403
|
-
"failed",
|
|
1404
|
-
"skipped",
|
|
1405
|
-
"empty",
|
|
1406
|
-
"low-content"
|
|
1407
|
-
]);
|
|
1408
1404
|
function useArbiDocumentSync(workspaceId) {
|
|
1409
1405
|
const queryClient = reactQuery.useQueryClient();
|
|
1406
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1410
1407
|
useArbiWebSocket((msg) => {
|
|
1411
1408
|
if (!workspaceId) return;
|
|
1412
1409
|
if (client.isMessageType(msg, "batch_complete")) {
|
|
1413
1410
|
if (msg.workspace_ext_id !== workspaceId) return;
|
|
1414
|
-
void
|
|
1415
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
1411
|
+
if (msg.doc_ext_ids?.length) void chunkCG6USBJX_cjs.refreshDocuments(queryClient, arbi, msg.doc_ext_ids);
|
|
1412
|
+
void queryClient.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.tags(workspaceId) });
|
|
1416
1413
|
return;
|
|
1417
1414
|
}
|
|
1418
1415
|
if (client.isMessageType(msg, "task_update")) {
|
|
1419
1416
|
if (msg.workspace_ext_id !== workspaceId) return;
|
|
1420
|
-
if (
|
|
1421
|
-
void
|
|
1422
|
-
}
|
|
1417
|
+
if (chunkCG6USBJX_cjs.FINISHED_DOCUMENT_STATUSES.has(msg.status))
|
|
1418
|
+
void chunkCG6USBJX_cjs.refreshDocuments(queryClient, arbi, [msg.doc_ext_id]);
|
|
1423
1419
|
}
|
|
1424
1420
|
});
|
|
1425
1421
|
}
|
|
@@ -1547,7 +1543,7 @@ function useShellWorkspaces(options) {
|
|
|
1547
1543
|
}
|
|
1548
1544
|
function useArbiShellWorkspaces(options = {}) {
|
|
1549
1545
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1550
|
-
const query =
|
|
1546
|
+
const query = chunkCG6USBJX_cjs.useWorkspaces();
|
|
1551
1547
|
const { select, ...rest } = options;
|
|
1552
1548
|
const defaultSelect = React.useCallback(
|
|
1553
1549
|
(workspace) => arbi.selectWorkspace(workspace.id),
|
|
@@ -1566,7 +1562,7 @@ function useFacts(workspaceId, options) {
|
|
|
1566
1562
|
const { enabled = true, ...filter } = options ?? {};
|
|
1567
1563
|
const workspace = workspaceId ?? (arbi.hasWorkspace ? arbi.getWorkspaceId() : "");
|
|
1568
1564
|
return reactQuery.useQuery({
|
|
1569
|
-
queryKey: [...
|
|
1565
|
+
queryKey: [...chunkCG6USBJX_cjs.arbiQueryKeys.facts(workspace), filter],
|
|
1570
1566
|
queryFn: () => arbi.facts.list(filter),
|
|
1571
1567
|
enabled: enabled && !!workspace && arbi.hasWorkspace,
|
|
1572
1568
|
staleTime: 3e4
|
|
@@ -1574,7 +1570,7 @@ function useFacts(workspaceId, options) {
|
|
|
1574
1570
|
}
|
|
1575
1571
|
function useRefreshFacts() {
|
|
1576
1572
|
const qc = reactQuery.useQueryClient();
|
|
1577
|
-
return () => qc.invalidateQueries({ queryKey:
|
|
1573
|
+
return () => qc.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.allFacts() });
|
|
1578
1574
|
}
|
|
1579
1575
|
function useCreateFact() {
|
|
1580
1576
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
@@ -1614,143 +1610,291 @@ function useSearchFacts() {
|
|
|
1614
1610
|
mutationFn: (body) => arbi.facts.search(body)
|
|
1615
1611
|
});
|
|
1616
1612
|
}
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
if (!current) return;
|
|
1624
|
-
const next = reducer(current);
|
|
1625
|
-
if (next !== current) qc.setQueryData(key, next);
|
|
1613
|
+
var DocumentsSupportContext = React.createContext({});
|
|
1614
|
+
function DocumentsSupportProvider({
|
|
1615
|
+
support,
|
|
1616
|
+
children
|
|
1617
|
+
}) {
|
|
1618
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DocumentsSupportContext.Provider, { value: support, children });
|
|
1626
1619
|
}
|
|
1627
|
-
function
|
|
1628
|
-
return
|
|
1620
|
+
function useDocumentsSupport() {
|
|
1621
|
+
return React.useContext(DocumentsSupportContext);
|
|
1629
1622
|
}
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
]
|
|
1623
|
+
|
|
1624
|
+
// src/documents/documents-writes.ts
|
|
1625
|
+
function applyOptimisticDocumentEdit(qc, updates) {
|
|
1626
|
+
const byId = new Map(updates.map((update) => [update.external_id, update]));
|
|
1627
|
+
const previous = [];
|
|
1628
|
+
chunkCG6USBJX_cjs.patchDocuments(qc, (old) => {
|
|
1629
|
+
let changed = false;
|
|
1630
|
+
const next = old.map((doc) => {
|
|
1631
|
+
const update = byId.get(doc.external_id);
|
|
1632
|
+
if (!update) return doc;
|
|
1633
|
+
changed = true;
|
|
1634
|
+
previous.push(doc);
|
|
1635
|
+
return { ...doc, ...update };
|
|
1636
|
+
});
|
|
1637
|
+
return changed ? next : old;
|
|
1638
|
+
});
|
|
1639
|
+
const previousOwn = updates.map((update) => {
|
|
1640
|
+
const own = qc.getQueryData(
|
|
1641
|
+
chunkCG6USBJX_cjs.arbiQueryKeys.document(update.external_id)
|
|
1642
|
+
);
|
|
1643
|
+
if (own) chunkCG6USBJX_cjs.setCachedDocument(qc, { ...own, ...update });
|
|
1644
|
+
return [update.external_id, own];
|
|
1645
|
+
});
|
|
1646
|
+
return { optimistic: true, previous, previousOwn };
|
|
1647
|
+
}
|
|
1648
|
+
function rollbackOptimisticDocumentEdit(qc, context) {
|
|
1649
|
+
const edit = context;
|
|
1650
|
+
if (!edit?.optimistic) return;
|
|
1651
|
+
if (edit.previous.length) {
|
|
1652
|
+
const restore = new Map(edit.previous.map((doc) => [doc.external_id, doc]));
|
|
1653
|
+
chunkCG6USBJX_cjs.patchDocuments(
|
|
1654
|
+
qc,
|
|
1655
|
+
(old) => old.some((doc) => restore.has(doc.external_id)) ? old.map((doc) => restore.get(doc.external_id) ?? doc) : old
|
|
1656
|
+
);
|
|
1657
|
+
}
|
|
1658
|
+
for (const [id, own] of edit.previousOwn) qc.setQueryData(chunkCG6USBJX_cjs.arbiQueryKeys.document(id), own);
|
|
1635
1659
|
}
|
|
1636
|
-
function
|
|
1637
|
-
|
|
1638
|
-
const
|
|
1639
|
-
|
|
1640
|
-
const workspaceId = openWorkspaceId(arbi);
|
|
1641
|
-
return workspaceId ? invalidateTagData(qc, workspaceId) : Promise.resolve();
|
|
1642
|
-
}, [arbi, qc]);
|
|
1643
|
-
}
|
|
1644
|
-
function settleCreatedTag(qc, created) {
|
|
1645
|
-
const workspaceId = created.workspace_ext_id;
|
|
1646
|
-
patchWorkspaceTags(
|
|
1660
|
+
function settleUpdatedDocuments(qc, updated) {
|
|
1661
|
+
if (!updated.length) return;
|
|
1662
|
+
const byId = new Map(updated.map((doc) => [doc.external_id, doc]));
|
|
1663
|
+
chunkCG6USBJX_cjs.patchDocuments(
|
|
1647
1664
|
qc,
|
|
1648
|
-
|
|
1649
|
-
(old) => old.some((t) => t.external_id === created.external_id) ? old : [...old, created]
|
|
1665
|
+
(old) => old.some((doc) => byId.has(doc.external_id)) ? old.map((doc) => byId.get(doc.external_id) ?? doc) : old
|
|
1650
1666
|
);
|
|
1651
|
-
|
|
1667
|
+
for (const doc of updated) chunkCG6USBJX_cjs.setCachedDocument(qc, doc);
|
|
1652
1668
|
}
|
|
1653
|
-
function
|
|
1654
|
-
const
|
|
1655
|
-
|
|
1669
|
+
function patchEachDocument(qc, docIds, reducer) {
|
|
1670
|
+
const ids = new Set(docIds);
|
|
1671
|
+
chunkCG6USBJX_cjs.patchDocuments(
|
|
1656
1672
|
qc,
|
|
1657
|
-
|
|
1658
|
-
(old) => old.map((t) => t.external_id === tag.external_id ? { ...t, ...tag } : t)
|
|
1673
|
+
(old) => old.some((doc) => ids.has(doc.external_id)) ? old.map((doc) => ids.has(doc.external_id) ? reducer(doc) : doc) : old
|
|
1659
1674
|
);
|
|
1660
|
-
|
|
1661
|
-
}
|
|
1662
|
-
|
|
1675
|
+
for (const id of ids) chunkCG6USBJX_cjs.patchCachedDocument(qc, id, reducer);
|
|
1676
|
+
}
|
|
1677
|
+
function workspaceOf(qc, docId) {
|
|
1678
|
+
for (const [, docs] of qc.getQueriesData({
|
|
1679
|
+
queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.allDocuments()
|
|
1680
|
+
})) {
|
|
1681
|
+
const doc = Array.isArray(docs) ? docs.find((d) => d.external_id === docId) : void 0;
|
|
1682
|
+
if (doc) return doc.workspace_ext_id;
|
|
1683
|
+
}
|
|
1684
|
+
return qc.getQueryData(chunkCG6USBJX_cjs.arbiQueryKeys.document(docId))?.workspace_ext_id;
|
|
1685
|
+
}
|
|
1686
|
+
function settleAssignedDocTags(qc, created) {
|
|
1687
|
+
const byDoc = /* @__PURE__ */ new Map();
|
|
1688
|
+
for (const doctag of created)
|
|
1689
|
+
byDoc.set(doctag.doc_ext_id, [...byDoc.get(doctag.doc_ext_id) ?? [], doctag]);
|
|
1690
|
+
const workspaces = /* @__PURE__ */ new Map();
|
|
1691
|
+
for (const doctag of created) {
|
|
1692
|
+
const workspaceId = workspaceOf(qc, doctag.doc_ext_id);
|
|
1693
|
+
if (!workspaceId) continue;
|
|
1694
|
+
const delta = workspaces.get(workspaceId) ?? /* @__PURE__ */ new Map();
|
|
1695
|
+
delta.set(doctag.tag_ext_id, (delta.get(doctag.tag_ext_id) ?? 0) + 1);
|
|
1696
|
+
workspaces.set(workspaceId, delta);
|
|
1697
|
+
}
|
|
1698
|
+
patchEachDocument(qc, byDoc.keys(), (doc) => ({
|
|
1699
|
+
...doc,
|
|
1700
|
+
doctags: [...doc.doctags ?? [], ...byDoc.get(doc.external_id) ?? []]
|
|
1701
|
+
}));
|
|
1702
|
+
for (const [workspaceId, delta] of workspaces) chunkCG6USBJX_cjs.adjustTagCounts(qc, workspaceId, delta);
|
|
1703
|
+
}
|
|
1704
|
+
function settleRemovedDocTags(qc, { tagId, docIds }) {
|
|
1705
|
+
const ids = new Set(docIds);
|
|
1706
|
+
const removedByWorkspace = /* @__PURE__ */ new Map();
|
|
1707
|
+
for (const [, docs] of qc.getQueriesData({
|
|
1708
|
+
queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.allDocuments()
|
|
1709
|
+
})) {
|
|
1710
|
+
for (const doc of Array.isArray(docs) ? docs : []) {
|
|
1711
|
+
if (!ids.has(doc.external_id)) continue;
|
|
1712
|
+
if (!doc.doctags?.some((dt) => dt.tag_ext_id === tagId)) continue;
|
|
1713
|
+
removedByWorkspace.set(
|
|
1714
|
+
doc.workspace_ext_id,
|
|
1715
|
+
(removedByWorkspace.get(doc.workspace_ext_id) ?? 0) + 1
|
|
1716
|
+
);
|
|
1717
|
+
}
|
|
1718
|
+
}
|
|
1719
|
+
patchEachDocument(qc, ids, (doc) => ({
|
|
1720
|
+
...doc,
|
|
1721
|
+
doctags: (doc.doctags ?? []).filter((dt) => dt.tag_ext_id !== tagId)
|
|
1722
|
+
}));
|
|
1723
|
+
for (const [workspaceId, removed] of removedByWorkspace)
|
|
1724
|
+
chunkCG6USBJX_cjs.adjustTagCounts(qc, workspaceId, /* @__PURE__ */ new Map([[tagId, -removed]]));
|
|
1725
|
+
}
|
|
1726
|
+
function settleUpdatedDocTag(qc, updated) {
|
|
1727
|
+
patchEachDocument(qc, [updated.doc_ext_id], (doc) => ({
|
|
1728
|
+
...doc,
|
|
1729
|
+
doctags: (doc.doctags ?? []).map((dt) => dt.tag_ext_id === updated.tag_ext_id ? updated : dt)
|
|
1730
|
+
}));
|
|
1731
|
+
}
|
|
1732
|
+
var replayableDocumentMutations = [
|
|
1733
|
+
{
|
|
1734
|
+
mutationKey: chunkCG6USBJX_cjs.arbiMutationKeys.updateDocuments(),
|
|
1735
|
+
run: (client, input) => browser.documents.updateDocuments(client, input.documents),
|
|
1736
|
+
settle: (qc, updated) => settleUpdatedDocuments(qc, updated)
|
|
1737
|
+
},
|
|
1738
|
+
{
|
|
1739
|
+
mutationKey: chunkCG6USBJX_cjs.arbiMutationKeys.assignDocTags(),
|
|
1740
|
+
run: (client, input) => browser.doctags.assignDocTags(client, input.tagId, input.docIds, input.note, input.citations),
|
|
1741
|
+
settle: (qc, created) => settleAssignedDocTags(qc, created)
|
|
1742
|
+
},
|
|
1743
|
+
{
|
|
1744
|
+
mutationKey: chunkCG6USBJX_cjs.arbiMutationKeys.removeDocTags(),
|
|
1745
|
+
run: (client, input) => browser.doctags.removeDocTags(client, input.tagId, input.docIds),
|
|
1746
|
+
settle: (qc, _data, input) => settleRemovedDocTags(qc, input)
|
|
1747
|
+
},
|
|
1663
1748
|
{
|
|
1664
|
-
mutationKey:
|
|
1665
|
-
run: (client, input) => browser.
|
|
1666
|
-
|
|
1749
|
+
mutationKey: chunkCG6USBJX_cjs.arbiMutationKeys.updateDocTag(),
|
|
1750
|
+
run: (client, input) => browser.doctags.updateDocTag(client, input.tagId, input.docId, {
|
|
1751
|
+
note: input.note,
|
|
1752
|
+
citations: input.citations
|
|
1753
|
+
}),
|
|
1754
|
+
settle: (qc, updated) => settleUpdatedDocTag(qc, updated)
|
|
1667
1755
|
}
|
|
1668
1756
|
];
|
|
1669
|
-
function
|
|
1757
|
+
function resolvingOffline(mutation) {
|
|
1758
|
+
const mutateAsync = ((variables, options) => {
|
|
1759
|
+
if (!reactQuery.onlineManager.isOnline()) {
|
|
1760
|
+
mutation.mutate(variables, options);
|
|
1761
|
+
return Promise.resolve(void 0);
|
|
1762
|
+
}
|
|
1763
|
+
return mutation.mutateAsync(variables, options);
|
|
1764
|
+
});
|
|
1765
|
+
return { ...mutation, mutateAsync };
|
|
1766
|
+
}
|
|
1767
|
+
function useUpdateDocuments() {
|
|
1670
1768
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1671
1769
|
const qc = reactQuery.useQueryClient();
|
|
1672
|
-
return
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1770
|
+
return resolvingOffline(
|
|
1771
|
+
reactQuery.useMutation({
|
|
1772
|
+
mutationKey: chunkCG6USBJX_cjs.arbiMutationKeys.updateDocuments(),
|
|
1773
|
+
mutationFn: ({ documents }) => arbi.documents.update(documents),
|
|
1774
|
+
onMutate: ({ documents }) => reactQuery.onlineManager.isOnline() || !documents.length ? void 0 : applyOptimisticDocumentEdit(qc, documents),
|
|
1775
|
+
onError: (_error, _input, context) => rollbackOptimisticDocumentEdit(qc, context),
|
|
1776
|
+
onSuccess: (updated) => settleUpdatedDocuments(qc, updated)
|
|
1777
|
+
})
|
|
1778
|
+
);
|
|
1677
1779
|
}
|
|
1678
|
-
function
|
|
1780
|
+
function useDeleteDocuments() {
|
|
1679
1781
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1680
1782
|
const qc = reactQuery.useQueryClient();
|
|
1783
|
+
const { onDocumentsDeleted } = useDocumentsSupport();
|
|
1681
1784
|
return reactQuery.useMutation({
|
|
1682
|
-
mutationKey:
|
|
1683
|
-
mutationFn: (
|
|
1684
|
-
onSuccess: (
|
|
1785
|
+
mutationKey: chunkCG6USBJX_cjs.arbiMutationKeys.deleteDocuments(),
|
|
1786
|
+
mutationFn: (docIds) => arbi.documents.delete(docIds),
|
|
1787
|
+
onSuccess: (_data, docIds) => {
|
|
1788
|
+
const gone = new Set(docIds);
|
|
1789
|
+
chunkCG6USBJX_cjs.patchDocuments(
|
|
1790
|
+
qc,
|
|
1791
|
+
(old) => old.some((doc) => gone.has(doc.external_id)) ? old.filter((doc) => !gone.has(doc.external_id)) : old
|
|
1792
|
+
);
|
|
1793
|
+
chunkCG6USBJX_cjs.forgetDocuments(qc, docIds);
|
|
1794
|
+
onDocumentsDeleted?.(docIds);
|
|
1795
|
+
return qc.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.workspaces() });
|
|
1796
|
+
}
|
|
1685
1797
|
});
|
|
1686
1798
|
}
|
|
1687
|
-
function
|
|
1799
|
+
async function settleUpload(qc, arbi, docIds, processingStatus) {
|
|
1800
|
+
if (docIds?.length) await chunkCG6USBJX_cjs.refreshDocuments(qc, arbi, docIds, { processingStatus });
|
|
1801
|
+
await qc.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.workspaces() });
|
|
1802
|
+
}
|
|
1803
|
+
function useUploadDocuments() {
|
|
1688
1804
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1689
1805
|
const qc = reactQuery.useQueryClient();
|
|
1806
|
+
const { processingStatus } = useDocumentsSupport();
|
|
1690
1807
|
return reactQuery.useMutation({
|
|
1691
|
-
mutationKey:
|
|
1692
|
-
mutationFn: ({
|
|
1693
|
-
|
|
1694
|
-
values
|
|
1695
|
-
}) => arbi.tags.setValues(tagId, values),
|
|
1696
|
-
onSuccess: (tag) => settleChangedTag(qc, tag)
|
|
1808
|
+
mutationKey: chunkCG6USBJX_cjs.arbiMutationKeys.uploadDocuments(),
|
|
1809
|
+
mutationFn: ({ files, options }) => arbi.documents.upload(files, options),
|
|
1810
|
+
onSuccess: (result) => settleUpload(qc, arbi, result.doc_ext_ids, processingStatus)
|
|
1697
1811
|
});
|
|
1698
1812
|
}
|
|
1699
|
-
function
|
|
1813
|
+
function useUploadUrls() {
|
|
1700
1814
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1701
1815
|
const qc = reactQuery.useQueryClient();
|
|
1816
|
+
const { processingStatus } = useDocumentsSupport();
|
|
1702
1817
|
return reactQuery.useMutation({
|
|
1703
|
-
mutationKey:
|
|
1704
|
-
mutationFn: (
|
|
1705
|
-
onSuccess: (
|
|
1706
|
-
const workspaceId = openWorkspaceId(arbi);
|
|
1707
|
-
if (!workspaceId) return;
|
|
1708
|
-
patchWorkspaceTags(
|
|
1709
|
-
qc,
|
|
1710
|
-
workspaceId,
|
|
1711
|
-
(old) => old.filter((t) => t.external_id !== tagId).map((t) => t.parent_ext_id === tagId ? { ...t, parent_ext_id: null } : t)
|
|
1712
|
-
);
|
|
1713
|
-
return Promise.all([
|
|
1714
|
-
invalidateTagTables(qc, workspaceId),
|
|
1715
|
-
qc.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.facts(workspaceId) })
|
|
1716
|
-
]);
|
|
1717
|
-
}
|
|
1818
|
+
mutationKey: chunkCG6USBJX_cjs.arbiMutationKeys.uploadUrls(),
|
|
1819
|
+
mutationFn: ({ urls, shared, configExtId }) => arbi.documents.uploadUrl(urls, { shared, configExtId }),
|
|
1820
|
+
onSuccess: (result) => settleUpload(qc, arbi, result.doc_ext_ids, processingStatus)
|
|
1718
1821
|
});
|
|
1719
1822
|
}
|
|
1720
|
-
function
|
|
1823
|
+
function useAssignDocTags() {
|
|
1721
1824
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1825
|
+
const qc = reactQuery.useQueryClient();
|
|
1826
|
+
return resolvingOffline(
|
|
1827
|
+
reactQuery.useMutation({
|
|
1828
|
+
mutationKey: chunkCG6USBJX_cjs.arbiMutationKeys.assignDocTags(),
|
|
1829
|
+
mutationFn: ({ tagId, docIds, note, citations }) => arbi.doctags.assign(tagId, docIds, note, citations),
|
|
1830
|
+
onSuccess: (created) => settleAssignedDocTags(qc, created)
|
|
1831
|
+
})
|
|
1832
|
+
);
|
|
1726
1833
|
}
|
|
1727
|
-
function
|
|
1834
|
+
function useRemoveDocTags() {
|
|
1728
1835
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1729
|
-
const
|
|
1730
|
-
return
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1836
|
+
const qc = reactQuery.useQueryClient();
|
|
1837
|
+
return resolvingOffline(
|
|
1838
|
+
reactQuery.useMutation({
|
|
1839
|
+
mutationKey: chunkCG6USBJX_cjs.arbiMutationKeys.removeDocTags(),
|
|
1840
|
+
mutationFn: ({ tagId, docIds }) => arbi.doctags.remove(tagId, docIds),
|
|
1841
|
+
onSuccess: (_data, input) => settleRemovedDocTags(qc, input)
|
|
1842
|
+
})
|
|
1843
|
+
);
|
|
1844
|
+
}
|
|
1845
|
+
function useUpdateDocTag() {
|
|
1846
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1847
|
+
const qc = reactQuery.useQueryClient();
|
|
1848
|
+
return resolvingOffline(
|
|
1849
|
+
reactQuery.useMutation({
|
|
1850
|
+
mutationKey: chunkCG6USBJX_cjs.arbiMutationKeys.updateDocTag(),
|
|
1851
|
+
mutationFn: ({ tagId, docId, note, citations }) => arbi.doctags.update(tagId, docId, { note, citations }),
|
|
1852
|
+
onSuccess: (updated) => settleUpdatedDocTag(qc, updated)
|
|
1853
|
+
})
|
|
1854
|
+
);
|
|
1855
|
+
}
|
|
1856
|
+
function useGenerateDocTags() {
|
|
1857
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1858
|
+
const qc = reactQuery.useQueryClient();
|
|
1859
|
+
const { onProcessingQueued } = useDocumentsSupport();
|
|
1860
|
+
return reactQuery.useMutation({
|
|
1861
|
+
mutationKey: chunkCG6USBJX_cjs.arbiMutationKeys.generateDocTags(),
|
|
1862
|
+
mutationFn: ({ tagIds, docIds, overwrite }) => arbi.doctags.generate(tagIds, docIds, { overwrite }),
|
|
1863
|
+
onMutate: ({ docIds }) => {
|
|
1864
|
+
if (!onProcessingQueued || !docIds.length) return void 0;
|
|
1865
|
+
const workspaceId = arbi.hasWorkspace ? arbi.getWorkspaceId() : "";
|
|
1866
|
+
const listed = new Map(
|
|
1867
|
+
(chunkCG6USBJX_cjs.getCachedDocuments(qc, workspaceId) ?? []).map((doc) => [doc.external_id, doc])
|
|
1868
|
+
);
|
|
1869
|
+
return {
|
|
1870
|
+
undo: onProcessingQueued(
|
|
1871
|
+
docIds.map((docId) => ({
|
|
1872
|
+
docId,
|
|
1873
|
+
workspaceId,
|
|
1874
|
+
fileName: listed.get(docId)?.file_name ?? "",
|
|
1875
|
+
version: listed.get(docId)?.current_version ?? 1
|
|
1876
|
+
}))
|
|
1877
|
+
)
|
|
1878
|
+
};
|
|
1879
|
+
},
|
|
1880
|
+
onError: (_error, _input, context) => context?.undo()
|
|
1734
1881
|
});
|
|
1735
1882
|
}
|
|
1736
|
-
function
|
|
1883
|
+
function useFinaliseTranslation() {
|
|
1737
1884
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1738
1885
|
const qc = reactQuery.useQueryClient();
|
|
1886
|
+
const { processingStatus } = useDocumentsSupport();
|
|
1739
1887
|
return reactQuery.useMutation({
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
kind,
|
|
1743
|
-
fields
|
|
1744
|
-
}) => arbi.tagKinds.update(kind, fields),
|
|
1745
|
-
onSuccess: (schema) => {
|
|
1746
|
-
const workspaceId = openWorkspaceId(arbi);
|
|
1747
|
-
if (!workspaceId) return;
|
|
1748
|
-
qc.setQueryData(chunkCVJ25DFD_cjs.arbiQueryKeys.tagKind(workspaceId, schema.kind), schema);
|
|
1749
|
-
return invalidateTagData(qc, workspaceId);
|
|
1750
|
-
}
|
|
1888
|
+
mutationFn: (docId) => arbi.documents.finaliseTranslation(docId),
|
|
1889
|
+
onSuccess: (result) => void chunkCG6USBJX_cjs.refreshDocuments(qc, arbi, [result.document_ext_id], { processingStatus })
|
|
1751
1890
|
});
|
|
1752
1891
|
}
|
|
1753
|
-
|
|
1892
|
+
|
|
1893
|
+
// src/offline.ts
|
|
1894
|
+
var REPLAYABLE = [
|
|
1895
|
+
...chunkCG6USBJX_cjs.replayableTagMutations,
|
|
1896
|
+
...replayableDocumentMutations
|
|
1897
|
+
];
|
|
1754
1898
|
function isReplayableArbiMutation(mutationKey) {
|
|
1755
1899
|
return !!mutationKey && REPLAYABLE.some((m) => reactQuery.partialMatchKey(mutationKey, m.mutationKey));
|
|
1756
1900
|
}
|
|
@@ -1762,10 +1906,29 @@ function registerArbiMutationDefaults(queryClient, client) {
|
|
|
1762
1906
|
});
|
|
1763
1907
|
}
|
|
1764
1908
|
}
|
|
1909
|
+
var OFFLINE_READABLE = [
|
|
1910
|
+
"documents",
|
|
1911
|
+
"document",
|
|
1912
|
+
"documentsById",
|
|
1913
|
+
"documentVersions",
|
|
1914
|
+
"similarDocuments"
|
|
1915
|
+
];
|
|
1916
|
+
function isOfflineReadableArbiQuery(queryKey) {
|
|
1917
|
+
return queryKey[0] === "arbi" && OFFLINE_READABLE.includes(queryKey[1]);
|
|
1918
|
+
}
|
|
1919
|
+
function isRestorableArbiQueryOnline(queryKey, data) {
|
|
1920
|
+
if (queryKey[0] !== "arbi") return true;
|
|
1921
|
+
if (queryKey[1] === "documents") return false;
|
|
1922
|
+
const docs = Array.isArray(data) ? data : [data];
|
|
1923
|
+
return !docs.some((doc) => {
|
|
1924
|
+
const status = doc?.status;
|
|
1925
|
+
return !!status && !chunkCG6USBJX_cjs.FINISHED_DOCUMENT_STATUSES.has(status);
|
|
1926
|
+
});
|
|
1927
|
+
}
|
|
1765
1928
|
function useFilteredProjects(filters, options) {
|
|
1766
1929
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1767
1930
|
return reactQuery.useQuery({
|
|
1768
|
-
queryKey:
|
|
1931
|
+
queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.projectsFiltered(filters.stage, filters.leadUser),
|
|
1769
1932
|
queryFn: () => arbi.projects.list(filters),
|
|
1770
1933
|
enabled: options?.enabled ?? arbi.isLoggedIn
|
|
1771
1934
|
});
|
|
@@ -1778,14 +1941,14 @@ function useUpdateProjectFields() {
|
|
|
1778
1941
|
projectExtId,
|
|
1779
1942
|
patch
|
|
1780
1943
|
}) => arbi.projects.update(projectExtId, patch),
|
|
1781
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
1944
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.projects() })
|
|
1782
1945
|
});
|
|
1783
1946
|
}
|
|
1784
1947
|
function useProjectEvents(projectExtId, options) {
|
|
1785
1948
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1786
1949
|
return reactQuery.useQuery({
|
|
1787
1950
|
queryKey: [
|
|
1788
|
-
...
|
|
1951
|
+
...chunkCG6USBJX_cjs.arbiQueryKeys.projectEvents(projectExtId ?? ""),
|
|
1789
1952
|
options?.kind ?? "all",
|
|
1790
1953
|
options?.limit ?? "default"
|
|
1791
1954
|
],
|
|
@@ -1796,7 +1959,7 @@ function useProjectEvents(projectExtId, options) {
|
|
|
1796
1959
|
function useConversationUsage(conversationId, options) {
|
|
1797
1960
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1798
1961
|
return reactQuery.useQuery({
|
|
1799
|
-
queryKey:
|
|
1962
|
+
queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.conversationUsage(conversationId ?? ""),
|
|
1800
1963
|
queryFn: () => arbi.conversations.usage(conversationId),
|
|
1801
1964
|
enabled: (options?.enabled ?? true) && !!conversationId && arbi.isLoggedIn,
|
|
1802
1965
|
refetchInterval: options?.live ? 1e4 : false
|
|
@@ -1805,7 +1968,7 @@ function useConversationUsage(conversationId, options) {
|
|
|
1805
1968
|
function useProjectConversationUsage(projectExtId, monthsBack = 0, options) {
|
|
1806
1969
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1807
1970
|
return reactQuery.useQuery({
|
|
1808
|
-
queryKey:
|
|
1971
|
+
queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.projectConversationUsage(projectExtId ?? "", monthsBack),
|
|
1809
1972
|
queryFn: () => arbi.projects.usageByConversation(projectExtId, monthsBack),
|
|
1810
1973
|
enabled: (options?.enabled ?? true) && !!projectExtId && arbi.isLoggedIn
|
|
1811
1974
|
});
|
|
@@ -1813,7 +1976,7 @@ function useProjectConversationUsage(projectExtId, monthsBack = 0, options) {
|
|
|
1813
1976
|
function useContacts(options) {
|
|
1814
1977
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1815
1978
|
return reactQuery.useQuery({
|
|
1816
|
-
queryKey:
|
|
1979
|
+
queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.contacts(),
|
|
1817
1980
|
queryFn: () => arbi.contacts.list(),
|
|
1818
1981
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
1819
1982
|
});
|
|
@@ -1828,7 +1991,7 @@ function usePendingContacts(options) {
|
|
|
1828
1991
|
}
|
|
1829
1992
|
function useInvalidateContacts() {
|
|
1830
1993
|
const qc = reactQuery.useQueryClient();
|
|
1831
|
-
return () => qc.invalidateQueries({ queryKey:
|
|
1994
|
+
return () => qc.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.contacts() });
|
|
1832
1995
|
}
|
|
1833
1996
|
function useInviteContacts() {
|
|
1834
1997
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
@@ -1866,7 +2029,7 @@ function useSearchContacts(q, { debounceMs = 200 } = {}) {
|
|
|
1866
2029
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1867
2030
|
const term = useDebounced(q.trim(), debounceMs);
|
|
1868
2031
|
return reactQuery.useQuery({
|
|
1869
|
-
queryKey: [...
|
|
2032
|
+
queryKey: [...chunkCG6USBJX_cjs.arbiQueryKeys.contacts(), "search", term],
|
|
1870
2033
|
queryFn: () => arbi.contacts.search(term),
|
|
1871
2034
|
enabled: term.length > 0 && arbi.isLoggedIn,
|
|
1872
2035
|
staleTime: 6e4,
|
|
@@ -1885,7 +2048,7 @@ function useDebounced(value, ms) {
|
|
|
1885
2048
|
function useHouseTemplateCandidates(workspaceId, enabled, staleTime = 6e4) {
|
|
1886
2049
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1887
2050
|
return reactQuery.useQuery({
|
|
1888
|
-
queryKey:
|
|
2051
|
+
queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.houseTemplateCandidates(workspaceId ?? ""),
|
|
1889
2052
|
enabled: enabled && !!workspaceId && arbi.hasWorkspace,
|
|
1890
2053
|
staleTime,
|
|
1891
2054
|
queryFn: () => arbi.houseTemplates.candidates()
|
|
@@ -1896,7 +2059,7 @@ function useSetWorkspaceHouseTemplate() {
|
|
|
1896
2059
|
const queryClient = reactQuery.useQueryClient();
|
|
1897
2060
|
return reactQuery.useMutation({
|
|
1898
2061
|
mutationFn: (documentId) => arbi.houseTemplates.setWorkspace(documentId),
|
|
1899
|
-
onSuccess: () => queryClient.invalidateQueries({ queryKey:
|
|
2062
|
+
onSuccess: () => queryClient.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.workspaces() })
|
|
1900
2063
|
});
|
|
1901
2064
|
}
|
|
1902
2065
|
var supportsHouseTemplates = browser.houseTemplates.supportsHouseTemplates;
|
|
@@ -1997,11 +2160,11 @@ function useProfile(options) {
|
|
|
1997
2160
|
const { client, enabled } = useAccountClient();
|
|
1998
2161
|
const qc = reactQuery.useQueryClient();
|
|
1999
2162
|
React.useEffect(
|
|
2000
|
-
() => client.onProfileChange(() => qc.setQueryData(
|
|
2163
|
+
() => client.onProfileChange(() => qc.setQueryData(chunkCG6USBJX_cjs.arbiQueryKeys.profile(), client.profile())),
|
|
2001
2164
|
[client, qc]
|
|
2002
2165
|
);
|
|
2003
2166
|
return reactQuery.useQuery({
|
|
2004
|
-
queryKey:
|
|
2167
|
+
queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.profile(),
|
|
2005
2168
|
queryFn: () => client.profile(),
|
|
2006
2169
|
enabled: (options?.enabled ?? true) && enabled,
|
|
2007
2170
|
staleTime: Infinity
|
|
@@ -2016,9 +2179,9 @@ function useUpdateProfile() {
|
|
|
2016
2179
|
return client.profile();
|
|
2017
2180
|
},
|
|
2018
2181
|
onSuccess: (profile) => {
|
|
2019
|
-
qc.setQueryData(
|
|
2020
|
-
void qc.invalidateQueries({ queryKey:
|
|
2021
|
-
return qc.invalidateQueries({ queryKey:
|
|
2182
|
+
qc.setQueryData(chunkCG6USBJX_cjs.arbiQueryKeys.profile(), profile);
|
|
2183
|
+
void qc.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.identity() });
|
|
2184
|
+
return qc.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.workspaces() });
|
|
2022
2185
|
}
|
|
2023
2186
|
});
|
|
2024
2187
|
}
|
|
@@ -2101,7 +2264,7 @@ function useConfirmEmailChange() {
|
|
|
2101
2264
|
const qc = reactQuery.useQueryClient();
|
|
2102
2265
|
return reactQuery.useMutation({
|
|
2103
2266
|
mutationFn: ({ newEmail, code }) => client.confirmEmailChange(newEmail, code),
|
|
2104
|
-
onSuccess: () => qc.setQueryData(
|
|
2267
|
+
onSuccess: () => qc.setQueryData(chunkCG6USBJX_cjs.arbiQueryKeys.profile(), client.profile())
|
|
2105
2268
|
});
|
|
2106
2269
|
}
|
|
2107
2270
|
function useEmailChange({
|
|
@@ -2257,6 +2420,34 @@ function usePasswordChangeForm({
|
|
|
2257
2420
|
}
|
|
2258
2421
|
};
|
|
2259
2422
|
}
|
|
2423
|
+
function useUserSettings(options) {
|
|
2424
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
2425
|
+
return reactQuery.useQuery({
|
|
2426
|
+
queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.userSettings(),
|
|
2427
|
+
queryFn: () => arbi.settings.get(),
|
|
2428
|
+
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
2429
|
+
});
|
|
2430
|
+
}
|
|
2431
|
+
function useUpdateUserSettings() {
|
|
2432
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
2433
|
+
const qc = reactQuery.useQueryClient();
|
|
2434
|
+
return reactQuery.useMutation({
|
|
2435
|
+
mutationFn: (patch) => arbi.settings.update(patch),
|
|
2436
|
+
onMutate: async (patch) => {
|
|
2437
|
+
await qc.cancelQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.userSettings() });
|
|
2438
|
+
const previous = qc.getQueryData(chunkCG6USBJX_cjs.arbiQueryKeys.userSettings());
|
|
2439
|
+
qc.setQueryData(
|
|
2440
|
+
chunkCG6USBJX_cjs.arbiQueryKeys.userSettings(),
|
|
2441
|
+
(old) => old ? { ...old, ...patch } : old
|
|
2442
|
+
);
|
|
2443
|
+
return { previous };
|
|
2444
|
+
},
|
|
2445
|
+
onError: (_err, _patch, context) => {
|
|
2446
|
+
qc.setQueryData(chunkCG6USBJX_cjs.arbiQueryKeys.userSettings(), context?.previous);
|
|
2447
|
+
},
|
|
2448
|
+
onSettled: () => qc.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.userSettings() })
|
|
2449
|
+
});
|
|
2450
|
+
}
|
|
2260
2451
|
function toNotificationPreferences(stored, keys) {
|
|
2261
2452
|
const checked = Object.fromEntries(keys.map((key) => [key, stored?.[key] ?? true]));
|
|
2262
2453
|
return {
|
|
@@ -2266,14 +2457,6 @@ function toNotificationPreferences(stored, keys) {
|
|
|
2266
2457
|
categoryPatch: (key, value) => ({ [key]: value })
|
|
2267
2458
|
};
|
|
2268
2459
|
}
|
|
2269
|
-
function useUserSettings(options) {
|
|
2270
|
-
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
2271
|
-
return reactQuery.useQuery({
|
|
2272
|
-
queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.userSettings(),
|
|
2273
|
-
queryFn: () => arbi.settings.get(),
|
|
2274
|
-
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
2275
|
-
});
|
|
2276
|
-
}
|
|
2277
2460
|
function useNotificationPreferences(keys, options) {
|
|
2278
2461
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
2279
2462
|
const qc = reactQuery.useQueryClient();
|
|
@@ -2282,18 +2465,18 @@ function useNotificationPreferences(keys, options) {
|
|
|
2282
2465
|
const save = reactQuery.useMutation({
|
|
2283
2466
|
mutationFn: (patch) => arbi.settings.update({ email_notifications: patch }),
|
|
2284
2467
|
onMutate: async (patch) => {
|
|
2285
|
-
await qc.cancelQueries({ queryKey:
|
|
2286
|
-
const previous = qc.getQueryData(
|
|
2468
|
+
await qc.cancelQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.userSettings() });
|
|
2469
|
+
const previous = qc.getQueryData(chunkCG6USBJX_cjs.arbiQueryKeys.userSettings());
|
|
2287
2470
|
qc.setQueryData(
|
|
2288
|
-
|
|
2471
|
+
chunkCG6USBJX_cjs.arbiQueryKeys.userSettings(),
|
|
2289
2472
|
(old) => old ? { ...old, email_notifications: { ...old.email_notifications, ...patch } } : old
|
|
2290
2473
|
);
|
|
2291
2474
|
return { previous };
|
|
2292
2475
|
},
|
|
2293
2476
|
onError: (_err, _patch, context) => {
|
|
2294
|
-
qc.setQueryData(
|
|
2477
|
+
qc.setQueryData(chunkCG6USBJX_cjs.arbiQueryKeys.userSettings(), context?.previous);
|
|
2295
2478
|
},
|
|
2296
|
-
onSettled: () => qc.invalidateQueries({ queryKey:
|
|
2479
|
+
onSettled: () => qc.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.userSettings() })
|
|
2297
2480
|
});
|
|
2298
2481
|
const model = React.useMemo(() => toNotificationPreferences(stored, keys), [stored, keys]);
|
|
2299
2482
|
const setAll = React.useCallback(
|
|
@@ -2320,18 +2503,18 @@ function useRelevanceSave() {
|
|
|
2320
2503
|
return reactQuery.useMutation({
|
|
2321
2504
|
mutationFn: (patch) => arbi.settings.update(patch),
|
|
2322
2505
|
onMutate: async (patch) => {
|
|
2323
|
-
await qc.cancelQueries({ queryKey:
|
|
2324
|
-
const previous = qc.getQueryData(
|
|
2506
|
+
await qc.cancelQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.userSettings() });
|
|
2507
|
+
const previous = qc.getQueryData(chunkCG6USBJX_cjs.arbiQueryKeys.userSettings());
|
|
2325
2508
|
qc.setQueryData(
|
|
2326
|
-
|
|
2509
|
+
chunkCG6USBJX_cjs.arbiQueryKeys.userSettings(),
|
|
2327
2510
|
(old) => old ? { ...old, ...patch } : old
|
|
2328
2511
|
);
|
|
2329
2512
|
return { previous };
|
|
2330
2513
|
},
|
|
2331
2514
|
onError: (_err, _patch, context) => {
|
|
2332
|
-
qc.setQueryData(
|
|
2515
|
+
qc.setQueryData(chunkCG6USBJX_cjs.arbiQueryKeys.userSettings(), context?.previous);
|
|
2333
2516
|
},
|
|
2334
|
-
onSettled: () => qc.invalidateQueries({ queryKey:
|
|
2517
|
+
onSettled: () => qc.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.userSettings() })
|
|
2335
2518
|
});
|
|
2336
2519
|
}
|
|
2337
2520
|
function useWorkspaceNotificationLevel(workspaceId, options) {
|
|
@@ -2342,7 +2525,7 @@ function useWorkspaceNotificationLevel(workspaceId, options) {
|
|
|
2342
2525
|
const setLevel = React.useCallback(
|
|
2343
2526
|
(next) => {
|
|
2344
2527
|
if (!workspaceId) return;
|
|
2345
|
-
const current = qc.getQueryData(
|
|
2528
|
+
const current = qc.getQueryData(chunkCG6USBJX_cjs.arbiQueryKeys.userSettings()) ?? settings.data;
|
|
2346
2529
|
save.mutate(browser.settings.workspaceLevelPatch(current, workspaceId, next));
|
|
2347
2530
|
},
|
|
2348
2531
|
[qc, save, settings.data, workspaceId]
|
|
@@ -2363,7 +2546,7 @@ function useFollowThread(conversationId, options) {
|
|
|
2363
2546
|
const setFollowing = React.useCallback(
|
|
2364
2547
|
(on, callbacks) => {
|
|
2365
2548
|
if (!conversationId) return;
|
|
2366
|
-
const current = qc.getQueryData(
|
|
2549
|
+
const current = qc.getQueryData(chunkCG6USBJX_cjs.arbiQueryKeys.userSettings()) ?? settings.data;
|
|
2367
2550
|
save.mutate(
|
|
2368
2551
|
{
|
|
2369
2552
|
followed_threads: browser.settings.withMembership(
|
|
@@ -2388,7 +2571,7 @@ function useFollowThread(conversationId, options) {
|
|
|
2388
2571
|
function useSessions(options) {
|
|
2389
2572
|
const { client, enabled } = useAccountClient();
|
|
2390
2573
|
return reactQuery.useQuery({
|
|
2391
|
-
queryKey:
|
|
2574
|
+
queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.sessions(),
|
|
2392
2575
|
queryFn: () => client.listSessions(),
|
|
2393
2576
|
enabled: (options?.enabled ?? true) && enabled
|
|
2394
2577
|
});
|
|
@@ -2398,7 +2581,7 @@ function useTerminateSession() {
|
|
|
2398
2581
|
const qc = reactQuery.useQueryClient();
|
|
2399
2582
|
return reactQuery.useMutation({
|
|
2400
2583
|
mutationFn: (sessionId) => client.terminateSession(sessionId),
|
|
2401
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
2584
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.sessions() })
|
|
2402
2585
|
});
|
|
2403
2586
|
}
|
|
2404
2587
|
function useSignOut() {
|
|
@@ -2541,7 +2724,7 @@ function useIdentityVerificationFlow(api, {
|
|
|
2541
2724
|
const apiRef = React.useRef(api);
|
|
2542
2725
|
apiRef.current = api;
|
|
2543
2726
|
const query = reactQuery.useQuery({
|
|
2544
|
-
queryKey:
|
|
2727
|
+
queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.identity(),
|
|
2545
2728
|
queryFn: () => apiRef.current.status(),
|
|
2546
2729
|
enabled,
|
|
2547
2730
|
staleTime: 6e4
|
|
@@ -2559,7 +2742,7 @@ function useIdentityVerificationFlow(api, {
|
|
|
2559
2742
|
const lastVerified = React.useRef(void 0);
|
|
2560
2743
|
const apply = React.useCallback(
|
|
2561
2744
|
(next) => {
|
|
2562
|
-
qc.setQueryData(
|
|
2745
|
+
qc.setQueryData(chunkCG6USBJX_cjs.arbiQueryKeys.identity(), next);
|
|
2563
2746
|
if (lastVerified.current !== void 0 && lastVerified.current !== next.verified) {
|
|
2564
2747
|
onVerifiedChange?.(next.verified);
|
|
2565
2748
|
}
|
|
@@ -2754,12 +2937,12 @@ function useIdentityVerification(options = {}) {
|
|
|
2754
2937
|
enabled,
|
|
2755
2938
|
formatPrice,
|
|
2756
2939
|
onVerifiedChange: (verified) => {
|
|
2757
|
-
void qc.invalidateQueries({ queryKey:
|
|
2940
|
+
void qc.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.profile() });
|
|
2758
2941
|
onVerifiedChange?.(verified);
|
|
2759
2942
|
},
|
|
2760
2943
|
onNameAccepted: (name) => {
|
|
2761
|
-
void qc.invalidateQueries({ queryKey:
|
|
2762
|
-
void qc.invalidateQueries({ queryKey:
|
|
2944
|
+
void qc.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.profile() });
|
|
2945
|
+
void qc.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.workspaces() });
|
|
2763
2946
|
onNameAccepted?.(name);
|
|
2764
2947
|
}
|
|
2765
2948
|
});
|
|
@@ -3822,7 +4005,7 @@ function useDeleteBookingPage() {
|
|
|
3822
4005
|
});
|
|
3823
4006
|
}
|
|
3824
4007
|
function useWorkspaceDocs(workspaceId) {
|
|
3825
|
-
const { data: docs = [], isLoading, isError } =
|
|
4008
|
+
const { data: docs = [], isLoading, isError } = chunkCG6USBJX_cjs.useDocuments(workspaceId);
|
|
3826
4009
|
const docIds = React.useMemo(
|
|
3827
4010
|
() => docs.map((d) => d.external_id).filter((id) => !!id),
|
|
3828
4011
|
[docs]
|
|
@@ -3830,7 +4013,7 @@ function useWorkspaceDocs(workspaceId) {
|
|
|
3830
4013
|
return { wsId: workspaceId, docs, docIds, isLoading, isError, ready: docIds.length > 0 };
|
|
3831
4014
|
}
|
|
3832
4015
|
function useAiTask() {
|
|
3833
|
-
const mutation =
|
|
4016
|
+
const mutation = chunkCG6USBJX_cjs.useAssistantQuery();
|
|
3834
4017
|
const [status, setStatus] = React.useState("idle");
|
|
3835
4018
|
const [text, setText] = React.useState("");
|
|
3836
4019
|
const [stepCount, setStepCount] = React.useState(0);
|
|
@@ -4450,8 +4633,8 @@ function DocumentReview({
|
|
|
4450
4633
|
onClose,
|
|
4451
4634
|
className
|
|
4452
4635
|
}) {
|
|
4453
|
-
const parsedQuery =
|
|
4454
|
-
const tagsQuery =
|
|
4636
|
+
const parsedQuery = chunkCG6USBJX_cjs.useParsedDocument(docId, stage);
|
|
4637
|
+
const tagsQuery = chunkCG6USBJX_cjs.useTags(workspaceId);
|
|
4455
4638
|
const tagNameById = React__default.default.useMemo(() => {
|
|
4456
4639
|
const map = /* @__PURE__ */ new Map();
|
|
4457
4640
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -4682,7 +4865,7 @@ function SemanticSearch({
|
|
|
4682
4865
|
const { results, status, error, search, isRunning, query } = useSemanticSearch(docIds);
|
|
4683
4866
|
const [value, setValue] = React.useState("");
|
|
4684
4867
|
const [selected, setSelected] = React.useState(null);
|
|
4685
|
-
const { data: docs = [] } =
|
|
4868
|
+
const { data: docs = [] } = chunkCG6USBJX_cjs.useDocuments(workspaceId, { enabled: !!workspaceId });
|
|
4686
4869
|
const docMap = React.useMemo(() => {
|
|
4687
4870
|
const map = /* @__PURE__ */ new Map();
|
|
4688
4871
|
for (const d of docs) if (d.external_id) map.set(d.external_id, d);
|
|
@@ -5784,7 +5967,7 @@ function ActivityFeed({
|
|
|
5784
5967
|
enabled,
|
|
5785
5968
|
"data-testid": testId = "activity-feed"
|
|
5786
5969
|
}) {
|
|
5787
|
-
const { data, isLoading, isError } =
|
|
5970
|
+
const { data, isLoading, isError } = chunkCG6USBJX_cjs.useActivity({ limit, enabled });
|
|
5788
5971
|
if (isLoading) {
|
|
5789
5972
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkS6A6FSG7_cjs.cn("space-y-2", className), "data-testid": testId, "aria-busy": "true", children: Array.from({ length: 3 }).map((_, i) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3 py-1.5", children: [
|
|
5790
5973
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-4 w-4 shrink-0 animate-pulse rounded-full bg-muted" }),
|
|
@@ -5861,12 +6044,12 @@ function useNotifications(options = {}) {
|
|
|
5861
6044
|
React.useEffect(
|
|
5862
6045
|
() => ws?.subscribe((message) => {
|
|
5863
6046
|
if ("sender" in message && "recipient" in message)
|
|
5864
|
-
void queries.invalidateQueries({ queryKey:
|
|
6047
|
+
void queries.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.allNotifications() });
|
|
5865
6048
|
}),
|
|
5866
6049
|
[ws, queries]
|
|
5867
6050
|
);
|
|
5868
6051
|
return reactQuery.useQuery({
|
|
5869
|
-
queryKey:
|
|
6052
|
+
queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.notifications(limit),
|
|
5870
6053
|
queryFn: () => arbi.notifications.list({ limit }),
|
|
5871
6054
|
enabled: (options.enabled ?? true) && arbi.isLoggedIn
|
|
5872
6055
|
});
|
|
@@ -5876,7 +6059,7 @@ function useDeleteNotifications() {
|
|
|
5876
6059
|
const queries = reactQuery.useQueryClient();
|
|
5877
6060
|
return reactQuery.useMutation({
|
|
5878
6061
|
mutationFn: (ids) => arbi.notifications.delete(ids),
|
|
5879
|
-
onSuccess: () => queries.invalidateQueries({ queryKey:
|
|
6062
|
+
onSuccess: () => queries.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.allNotifications() })
|
|
5880
6063
|
});
|
|
5881
6064
|
}
|
|
5882
6065
|
function useMarkNotificationsRead() {
|
|
@@ -5884,7 +6067,7 @@ function useMarkNotificationsRead() {
|
|
|
5884
6067
|
const queries = reactQuery.useQueryClient();
|
|
5885
6068
|
return reactQuery.useMutation({
|
|
5886
6069
|
mutationFn: (ids) => arbi.notifications.markRead(ids),
|
|
5887
|
-
onSuccess: () => queries.invalidateQueries({ queryKey:
|
|
6070
|
+
onSuccess: () => queries.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.allNotifications() })
|
|
5888
6071
|
});
|
|
5889
6072
|
}
|
|
5890
6073
|
|
|
@@ -6337,7 +6520,7 @@ function useDirectMessages(options) {
|
|
|
6337
6520
|
enabled
|
|
6338
6521
|
});
|
|
6339
6522
|
const contactsQuery = reactQuery.useQuery({
|
|
6340
|
-
queryKey:
|
|
6523
|
+
queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.contacts(),
|
|
6341
6524
|
queryFn: () => arbi.contacts.list(),
|
|
6342
6525
|
enabled
|
|
6343
6526
|
});
|
|
@@ -7606,10 +7789,10 @@ function DocumentTable({
|
|
|
7606
7789
|
extraColumns,
|
|
7607
7790
|
className
|
|
7608
7791
|
}) {
|
|
7609
|
-
const query =
|
|
7792
|
+
const query = chunkCG6USBJX_cjs.useDocuments(workspaceId, { enabled: !documents });
|
|
7610
7793
|
const rows = documents ?? query.data ?? [];
|
|
7611
7794
|
const isLoading = !documents && query.isLoading;
|
|
7612
|
-
const tagsQuery =
|
|
7795
|
+
const tagsQuery = chunkCG6USBJX_cjs.useTags(workspaceId);
|
|
7613
7796
|
const tagNameById = React__default.default.useMemo(() => {
|
|
7614
7797
|
const map = /* @__PURE__ */ new Map();
|
|
7615
7798
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -7786,13 +7969,6 @@ function DocumentCardMenu({
|
|
|
7786
7969
|
testId = "document-card-menu"
|
|
7787
7970
|
}) {
|
|
7788
7971
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
7789
|
-
const queryClient = reactQuery.useQueryClient();
|
|
7790
|
-
const invalidateDocuments = () => {
|
|
7791
|
-
const workspaceId = arbi.getWorkspaceId();
|
|
7792
|
-
if (workspaceId) {
|
|
7793
|
-
void queryClient.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.documents(workspaceId) });
|
|
7794
|
-
}
|
|
7795
|
-
};
|
|
7796
7972
|
const download = reactQuery.useMutation({
|
|
7797
7973
|
mutationFn: async () => {
|
|
7798
7974
|
const response = await arbi.documents.download(docId);
|
|
@@ -7808,10 +7984,7 @@ function DocumentCardMenu({
|
|
|
7808
7984
|
URL.revokeObjectURL(url);
|
|
7809
7985
|
}
|
|
7810
7986
|
});
|
|
7811
|
-
const remove =
|
|
7812
|
-
mutationFn: () => arbi.documents.delete([docId]),
|
|
7813
|
-
onSuccess: invalidateDocuments
|
|
7814
|
-
});
|
|
7987
|
+
const remove = useDeleteDocuments();
|
|
7815
7988
|
return /* @__PURE__ */ jsxRuntime.jsxs(chunkHJDR5HEO_cjs.DropdownMenu, { children: [
|
|
7816
7989
|
/* @__PURE__ */ jsxRuntime.jsx(chunkHJDR5HEO_cjs.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
7817
7990
|
"button",
|
|
@@ -7850,7 +8023,7 @@ function DocumentCardMenu({
|
|
|
7850
8023
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
7851
8024
|
chunkHJDR5HEO_cjs.DropdownMenuItem,
|
|
7852
8025
|
{
|
|
7853
|
-
onSelect: () => remove.mutate(),
|
|
8026
|
+
onSelect: () => remove.mutate([docId]),
|
|
7854
8027
|
disabled: remove.isPending,
|
|
7855
8028
|
className: "text-destructive focus:text-destructive",
|
|
7856
8029
|
"data-testid": `${testId}-delete`,
|
|
@@ -7889,10 +8062,10 @@ function DocumentGallery({
|
|
|
7889
8062
|
minTileWidth = 148,
|
|
7890
8063
|
className
|
|
7891
8064
|
}) {
|
|
7892
|
-
const query =
|
|
8065
|
+
const query = chunkCG6USBJX_cjs.useDocuments(workspaceId, { enabled: !documents });
|
|
7893
8066
|
const rows = documents ?? query.data ?? [];
|
|
7894
8067
|
const isLoading = !documents && query.isLoading;
|
|
7895
|
-
const tagsQuery =
|
|
8068
|
+
const tagsQuery = chunkCG6USBJX_cjs.useTags(workspaceId);
|
|
7896
8069
|
const tagNameById = React__default.default.useMemo(() => {
|
|
7897
8070
|
const map = /* @__PURE__ */ new Map();
|
|
7898
8071
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -7904,7 +8077,7 @@ function DocumentGallery({
|
|
|
7904
8077
|
() => rows.map((d) => d.external_id).filter((id) => !!id),
|
|
7905
8078
|
[rows]
|
|
7906
8079
|
);
|
|
7907
|
-
const thumbsQuery =
|
|
8080
|
+
const thumbsQuery = chunkCG6USBJX_cjs.useThumbnails(docIds);
|
|
7908
8081
|
const thumbs = thumbsQuery.data ?? {};
|
|
7909
8082
|
const session = useArbiSessionStore();
|
|
7910
8083
|
const storeSelected = useArbiSessionState((s) => s.selectedDocumentIds);
|
|
@@ -7929,21 +8102,14 @@ function DocumentGallery({
|
|
|
7929
8102
|
},
|
|
7930
8103
|
[onOpenDocument, session]
|
|
7931
8104
|
);
|
|
7932
|
-
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
7933
|
-
const queryClient = reactQuery.useQueryClient();
|
|
7934
8105
|
const [renamingId, setRenamingId] = React__default.default.useState(null);
|
|
7935
|
-
const
|
|
7936
|
-
|
|
7937
|
-
|
|
7938
|
-
|
|
7939
|
-
|
|
7940
|
-
|
|
7941
|
-
|
|
7942
|
-
if (activeWorkspace) {
|
|
7943
|
-
void queryClient.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.documents(activeWorkspace) });
|
|
7944
|
-
}
|
|
7945
|
-
}
|
|
7946
|
-
});
|
|
8106
|
+
const update = useUpdateDocuments();
|
|
8107
|
+
const rename = (doc, title) => update.mutate(
|
|
8108
|
+
{
|
|
8109
|
+
documents: [{ external_id: doc.external_id, doc_metadata: { ...doc.doc_metadata, title } }]
|
|
8110
|
+
},
|
|
8111
|
+
{ onSettled: () => setRenamingId(null) }
|
|
8112
|
+
);
|
|
7947
8113
|
if (isLoading) {
|
|
7948
8114
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
7949
8115
|
"div",
|
|
@@ -7992,7 +8158,7 @@ function DocumentGallery({
|
|
|
7992
8158
|
viewing: viewingDocId === id,
|
|
7993
8159
|
onOpen: () => openDocument(id),
|
|
7994
8160
|
renaming: renamingId === id,
|
|
7995
|
-
onCommitRename: (newTitle) => rename
|
|
8161
|
+
onCommitRename: (newTitle) => rename(doc, newTitle),
|
|
7996
8162
|
onCancelRename: () => setRenamingId(null),
|
|
7997
8163
|
actions: /* @__PURE__ */ jsxRuntime.jsx(
|
|
7998
8164
|
DocumentCardMenu,
|
|
@@ -8556,117 +8722,281 @@ function hasVideoTrack(blob) {
|
|
|
8556
8722
|
});
|
|
8557
8723
|
}
|
|
8558
8724
|
|
|
8725
|
+
Object.defineProperty(exports, "DOCUMENTS_FIRST_PAGE_MEASURE", {
|
|
8726
|
+
enumerable: true,
|
|
8727
|
+
get: function () { return chunkCG6USBJX_cjs.DOCUMENTS_FIRST_PAGE_MEASURE; }
|
|
8728
|
+
});
|
|
8729
|
+
Object.defineProperty(exports, "DOCUMENTS_FIRST_PAGE_SIZE", {
|
|
8730
|
+
enumerable: true,
|
|
8731
|
+
get: function () { return chunkCG6USBJX_cjs.DOCUMENTS_FIRST_PAGE_SIZE; }
|
|
8732
|
+
});
|
|
8733
|
+
Object.defineProperty(exports, "DOCUMENTS_PAGE_SIZE", {
|
|
8734
|
+
enumerable: true,
|
|
8735
|
+
get: function () { return chunkCG6USBJX_cjs.DOCUMENTS_PAGE_SIZE; }
|
|
8736
|
+
});
|
|
8737
|
+
Object.defineProperty(exports, "FINISHED_DOCUMENT_STATUSES", {
|
|
8738
|
+
enumerable: true,
|
|
8739
|
+
get: function () { return chunkCG6USBJX_cjs.FINISHED_DOCUMENT_STATUSES; }
|
|
8740
|
+
});
|
|
8559
8741
|
Object.defineProperty(exports, "PROJECT_CREATION_DENIED_REASON", {
|
|
8560
8742
|
enumerable: true,
|
|
8561
|
-
get: function () { return
|
|
8743
|
+
get: function () { return chunkCG6USBJX_cjs.PROJECT_CREATION_DENIED_REASON; }
|
|
8744
|
+
});
|
|
8745
|
+
Object.defineProperty(exports, "SIMILARITY_THRESHOLD", {
|
|
8746
|
+
enumerable: true,
|
|
8747
|
+
get: function () { return chunkCG6USBJX_cjs.SIMILARITY_THRESHOLD; }
|
|
8748
|
+
});
|
|
8749
|
+
Object.defineProperty(exports, "adjustTagCounts", {
|
|
8750
|
+
enumerable: true,
|
|
8751
|
+
get: function () { return chunkCG6USBJX_cjs.adjustTagCounts; }
|
|
8562
8752
|
});
|
|
8563
8753
|
Object.defineProperty(exports, "arbiMutationKeys", {
|
|
8564
8754
|
enumerable: true,
|
|
8565
|
-
get: function () { return
|
|
8755
|
+
get: function () { return chunkCG6USBJX_cjs.arbiMutationKeys; }
|
|
8566
8756
|
});
|
|
8567
8757
|
Object.defineProperty(exports, "arbiQueryKeys", {
|
|
8568
8758
|
enumerable: true,
|
|
8569
|
-
get: function () { return
|
|
8759
|
+
get: function () { return chunkCG6USBJX_cjs.arbiQueryKeys; }
|
|
8760
|
+
});
|
|
8761
|
+
Object.defineProperty(exports, "forgetDocuments", {
|
|
8762
|
+
enumerable: true,
|
|
8763
|
+
get: function () { return chunkCG6USBJX_cjs.forgetDocuments; }
|
|
8764
|
+
});
|
|
8765
|
+
Object.defineProperty(exports, "getCachedDocuments", {
|
|
8766
|
+
enumerable: true,
|
|
8767
|
+
get: function () { return chunkCG6USBJX_cjs.getCachedDocuments; }
|
|
8768
|
+
});
|
|
8769
|
+
Object.defineProperty(exports, "invalidateTagData", {
|
|
8770
|
+
enumerable: true,
|
|
8771
|
+
get: function () { return chunkCG6USBJX_cjs.invalidateTagData; }
|
|
8772
|
+
});
|
|
8773
|
+
Object.defineProperty(exports, "invalidateTagTables", {
|
|
8774
|
+
enumerable: true,
|
|
8775
|
+
get: function () { return chunkCG6USBJX_cjs.invalidateTagTables; }
|
|
8776
|
+
});
|
|
8777
|
+
Object.defineProperty(exports, "isDocumentsLoading", {
|
|
8778
|
+
enumerable: true,
|
|
8779
|
+
get: function () { return chunkCG6USBJX_cjs.isDocumentsLoading; }
|
|
8570
8780
|
});
|
|
8571
8781
|
Object.defineProperty(exports, "isUsageMetered", {
|
|
8572
8782
|
enumerable: true,
|
|
8573
|
-
get: function () { return
|
|
8783
|
+
get: function () { return chunkCG6USBJX_cjs.isUsageMetered; }
|
|
8784
|
+
});
|
|
8785
|
+
Object.defineProperty(exports, "patchCachedDocument", {
|
|
8786
|
+
enumerable: true,
|
|
8787
|
+
get: function () { return chunkCG6USBJX_cjs.patchCachedDocument; }
|
|
8788
|
+
});
|
|
8789
|
+
Object.defineProperty(exports, "patchDocuments", {
|
|
8790
|
+
enumerable: true,
|
|
8791
|
+
get: function () { return chunkCG6USBJX_cjs.patchDocuments; }
|
|
8792
|
+
});
|
|
8793
|
+
Object.defineProperty(exports, "patchWorkspaceTags", {
|
|
8794
|
+
enumerable: true,
|
|
8795
|
+
get: function () { return chunkCG6USBJX_cjs.patchWorkspaceTags; }
|
|
8796
|
+
});
|
|
8797
|
+
Object.defineProperty(exports, "refreshDocuments", {
|
|
8798
|
+
enumerable: true,
|
|
8799
|
+
get: function () { return chunkCG6USBJX_cjs.refreshDocuments; }
|
|
8800
|
+
});
|
|
8801
|
+
Object.defineProperty(exports, "setCachedDocument", {
|
|
8802
|
+
enumerable: true,
|
|
8803
|
+
get: function () { return chunkCG6USBJX_cjs.setCachedDocument; }
|
|
8804
|
+
});
|
|
8805
|
+
Object.defineProperty(exports, "stopDocumentsLoading", {
|
|
8806
|
+
enumerable: true,
|
|
8807
|
+
get: function () { return chunkCG6USBJX_cjs.stopDocumentsLoading; }
|
|
8808
|
+
});
|
|
8809
|
+
Object.defineProperty(exports, "subscribeDocumentRows", {
|
|
8810
|
+
enumerable: true,
|
|
8811
|
+
get: function () { return chunkCG6USBJX_cjs.subscribeDocumentRows; }
|
|
8812
|
+
});
|
|
8813
|
+
Object.defineProperty(exports, "upsertDocuments", {
|
|
8814
|
+
enumerable: true,
|
|
8815
|
+
get: function () { return chunkCG6USBJX_cjs.upsertDocuments; }
|
|
8574
8816
|
});
|
|
8575
8817
|
Object.defineProperty(exports, "useActivity", {
|
|
8576
8818
|
enumerable: true,
|
|
8577
|
-
get: function () { return
|
|
8819
|
+
get: function () { return chunkCG6USBJX_cjs.useActivity; }
|
|
8578
8820
|
});
|
|
8579
8821
|
Object.defineProperty(exports, "useAgents", {
|
|
8580
8822
|
enumerable: true,
|
|
8581
|
-
get: function () { return
|
|
8823
|
+
get: function () { return chunkCG6USBJX_cjs.useAgents; }
|
|
8582
8824
|
});
|
|
8583
8825
|
Object.defineProperty(exports, "useAssistantQuery", {
|
|
8584
8826
|
enumerable: true,
|
|
8585
|
-
get: function () { return
|
|
8827
|
+
get: function () { return chunkCG6USBJX_cjs.useAssistantQuery; }
|
|
8828
|
+
});
|
|
8829
|
+
Object.defineProperty(exports, "useAvailableModels", {
|
|
8830
|
+
enumerable: true,
|
|
8831
|
+
get: function () { return chunkCG6USBJX_cjs.useAvailableModels; }
|
|
8586
8832
|
});
|
|
8587
8833
|
Object.defineProperty(exports, "useCanCreateProjects", {
|
|
8588
8834
|
enumerable: true,
|
|
8589
|
-
get: function () { return
|
|
8835
|
+
get: function () { return chunkCG6USBJX_cjs.useCanCreateProjects; }
|
|
8590
8836
|
});
|
|
8591
8837
|
Object.defineProperty(exports, "useConfigs", {
|
|
8592
8838
|
enumerable: true,
|
|
8593
|
-
get: function () { return
|
|
8839
|
+
get: function () { return chunkCG6USBJX_cjs.useConfigs; }
|
|
8594
8840
|
});
|
|
8595
8841
|
Object.defineProperty(exports, "useConversationThreads", {
|
|
8596
8842
|
enumerable: true,
|
|
8597
|
-
get: function () { return
|
|
8843
|
+
get: function () { return chunkCG6USBJX_cjs.useConversationThreads; }
|
|
8598
8844
|
});
|
|
8599
8845
|
Object.defineProperty(exports, "useConversations", {
|
|
8600
8846
|
enumerable: true,
|
|
8601
|
-
get: function () { return
|
|
8847
|
+
get: function () { return chunkCG6USBJX_cjs.useConversations; }
|
|
8848
|
+
});
|
|
8849
|
+
Object.defineProperty(exports, "useCreateTag", {
|
|
8850
|
+
enumerable: true,
|
|
8851
|
+
get: function () { return chunkCG6USBJX_cjs.useCreateTag; }
|
|
8602
8852
|
});
|
|
8603
8853
|
Object.defineProperty(exports, "useCurrentUser", {
|
|
8604
8854
|
enumerable: true,
|
|
8605
|
-
get: function () { return
|
|
8855
|
+
get: function () { return chunkCG6USBJX_cjs.useCurrentUser; }
|
|
8606
8856
|
});
|
|
8607
8857
|
Object.defineProperty(exports, "useDeleteAgents", {
|
|
8608
8858
|
enumerable: true,
|
|
8609
|
-
get: function () { return
|
|
8859
|
+
get: function () { return chunkCG6USBJX_cjs.useDeleteAgents; }
|
|
8860
|
+
});
|
|
8861
|
+
Object.defineProperty(exports, "useDeleteTag", {
|
|
8862
|
+
enumerable: true,
|
|
8863
|
+
get: function () { return chunkCG6USBJX_cjs.useDeleteTag; }
|
|
8864
|
+
});
|
|
8865
|
+
Object.defineProperty(exports, "useDocument", {
|
|
8866
|
+
enumerable: true,
|
|
8867
|
+
get: function () { return chunkCG6USBJX_cjs.useDocument; }
|
|
8868
|
+
});
|
|
8869
|
+
Object.defineProperty(exports, "useDocumentVersionList", {
|
|
8870
|
+
enumerable: true,
|
|
8871
|
+
get: function () { return chunkCG6USBJX_cjs.useDocumentVersionList; }
|
|
8610
8872
|
});
|
|
8611
8873
|
Object.defineProperty(exports, "useDocuments", {
|
|
8612
8874
|
enumerable: true,
|
|
8613
|
-
get: function () { return
|
|
8875
|
+
get: function () { return chunkCG6USBJX_cjs.useDocuments; }
|
|
8876
|
+
});
|
|
8877
|
+
Object.defineProperty(exports, "useDocumentsById", {
|
|
8878
|
+
enumerable: true,
|
|
8879
|
+
get: function () { return chunkCG6USBJX_cjs.useDocumentsById; }
|
|
8880
|
+
});
|
|
8881
|
+
Object.defineProperty(exports, "useDocumentsLoading", {
|
|
8882
|
+
enumerable: true,
|
|
8883
|
+
get: function () { return chunkCG6USBJX_cjs.useDocumentsLoading; }
|
|
8884
|
+
});
|
|
8885
|
+
Object.defineProperty(exports, "useExtractEntities", {
|
|
8886
|
+
enumerable: true,
|
|
8887
|
+
get: function () { return chunkCG6USBJX_cjs.useExtractEntities; }
|
|
8614
8888
|
});
|
|
8615
8889
|
Object.defineProperty(exports, "useFirmPool", {
|
|
8616
8890
|
enumerable: true,
|
|
8617
|
-
get: function () { return
|
|
8891
|
+
get: function () { return chunkCG6USBJX_cjs.useFirmPool; }
|
|
8618
8892
|
});
|
|
8619
8893
|
Object.defineProperty(exports, "useHealth", {
|
|
8620
8894
|
enumerable: true,
|
|
8621
|
-
get: function () { return
|
|
8895
|
+
get: function () { return chunkCG6USBJX_cjs.useHealth; }
|
|
8896
|
+
});
|
|
8897
|
+
Object.defineProperty(exports, "useInvalidateTagData", {
|
|
8898
|
+
enumerable: true,
|
|
8899
|
+
get: function () { return chunkCG6USBJX_cjs.useInvalidateTagData; }
|
|
8622
8900
|
});
|
|
8623
8901
|
Object.defineProperty(exports, "useParsedDocument", {
|
|
8624
8902
|
enumerable: true,
|
|
8625
|
-
get: function () { return
|
|
8903
|
+
get: function () { return chunkCG6USBJX_cjs.useParsedDocument; }
|
|
8626
8904
|
});
|
|
8627
8905
|
Object.defineProperty(exports, "useProjectInvoices", {
|
|
8628
8906
|
enumerable: true,
|
|
8629
|
-
get: function () { return
|
|
8907
|
+
get: function () { return chunkCG6USBJX_cjs.useProjectInvoices; }
|
|
8630
8908
|
});
|
|
8631
8909
|
Object.defineProperty(exports, "useProjectUsage", {
|
|
8632
8910
|
enumerable: true,
|
|
8633
|
-
get: function () { return
|
|
8911
|
+
get: function () { return chunkCG6USBJX_cjs.useProjectUsage; }
|
|
8634
8912
|
});
|
|
8635
8913
|
Object.defineProperty(exports, "useProjects", {
|
|
8636
8914
|
enumerable: true,
|
|
8637
|
-
get: function () { return
|
|
8915
|
+
get: function () { return chunkCG6USBJX_cjs.useProjects; }
|
|
8638
8916
|
});
|
|
8639
8917
|
Object.defineProperty(exports, "useProjectsUsage", {
|
|
8640
8918
|
enumerable: true,
|
|
8641
|
-
get: function () { return
|
|
8919
|
+
get: function () { return chunkCG6USBJX_cjs.useProjectsUsage; }
|
|
8920
|
+
});
|
|
8921
|
+
Object.defineProperty(exports, "useSetTagValues", {
|
|
8922
|
+
enumerable: true,
|
|
8923
|
+
get: function () { return chunkCG6USBJX_cjs.useSetTagValues; }
|
|
8924
|
+
});
|
|
8925
|
+
Object.defineProperty(exports, "useSimilarDocuments", {
|
|
8926
|
+
enumerable: true,
|
|
8927
|
+
get: function () { return chunkCG6USBJX_cjs.useSimilarDocuments; }
|
|
8928
|
+
});
|
|
8929
|
+
Object.defineProperty(exports, "useTagKindSchema", {
|
|
8930
|
+
enumerable: true,
|
|
8931
|
+
get: function () { return chunkCG6USBJX_cjs.useTagKindSchema; }
|
|
8642
8932
|
});
|
|
8643
8933
|
Object.defineProperty(exports, "useTags", {
|
|
8644
8934
|
enumerable: true,
|
|
8645
|
-
get: function () { return
|
|
8935
|
+
get: function () { return chunkCG6USBJX_cjs.useTags; }
|
|
8646
8936
|
});
|
|
8647
8937
|
Object.defineProperty(exports, "useThumbnails", {
|
|
8648
8938
|
enumerable: true,
|
|
8649
|
-
get: function () { return
|
|
8939
|
+
get: function () { return chunkCG6USBJX_cjs.useThumbnails; }
|
|
8650
8940
|
});
|
|
8651
8941
|
Object.defineProperty(exports, "useTopUpFirmPool", {
|
|
8652
8942
|
enumerable: true,
|
|
8653
|
-
get: function () { return
|
|
8943
|
+
get: function () { return chunkCG6USBJX_cjs.useTopUpFirmPool; }
|
|
8944
|
+
});
|
|
8945
|
+
Object.defineProperty(exports, "useUpdateTag", {
|
|
8946
|
+
enumerable: true,
|
|
8947
|
+
get: function () { return chunkCG6USBJX_cjs.useUpdateTag; }
|
|
8948
|
+
});
|
|
8949
|
+
Object.defineProperty(exports, "useUpdateTagKindSchema", {
|
|
8950
|
+
enumerable: true,
|
|
8951
|
+
get: function () { return chunkCG6USBJX_cjs.useUpdateTagKindSchema; }
|
|
8654
8952
|
});
|
|
8655
8953
|
Object.defineProperty(exports, "useUserUsageToday", {
|
|
8656
8954
|
enumerable: true,
|
|
8657
|
-
get: function () { return
|
|
8955
|
+
get: function () { return chunkCG6USBJX_cjs.useUserUsageToday; }
|
|
8658
8956
|
});
|
|
8659
8957
|
Object.defineProperty(exports, "useWorkspaceActivity", {
|
|
8660
8958
|
enumerable: true,
|
|
8661
|
-
get: function () { return
|
|
8959
|
+
get: function () { return chunkCG6USBJX_cjs.useWorkspaceActivity; }
|
|
8662
8960
|
});
|
|
8663
8961
|
Object.defineProperty(exports, "useWorkspaceUsers", {
|
|
8664
8962
|
enumerable: true,
|
|
8665
|
-
get: function () { return
|
|
8963
|
+
get: function () { return chunkCG6USBJX_cjs.useWorkspaceUsers; }
|
|
8666
8964
|
});
|
|
8667
8965
|
Object.defineProperty(exports, "useWorkspaces", {
|
|
8668
8966
|
enumerable: true,
|
|
8669
|
-
get: function () { return
|
|
8967
|
+
get: function () { return chunkCG6USBJX_cjs.useWorkspaces; }
|
|
8968
|
+
});
|
|
8969
|
+
Object.defineProperty(exports, "cleanDraftMarkdown", {
|
|
8970
|
+
enumerable: true,
|
|
8971
|
+
get: function () { return chunkZWFMFOGP_cjs.cleanDraftMarkdown; }
|
|
8972
|
+
});
|
|
8973
|
+
Object.defineProperty(exports, "cleanDraftWithReport", {
|
|
8974
|
+
enumerable: true,
|
|
8975
|
+
get: function () { return chunkZWFMFOGP_cjs.cleanDraftWithReport; }
|
|
8976
|
+
});
|
|
8977
|
+
Object.defineProperty(exports, "promoteBoldTitle", {
|
|
8978
|
+
enumerable: true,
|
|
8979
|
+
get: function () { return chunkZWFMFOGP_cjs.promoteBoldTitle; }
|
|
8980
|
+
});
|
|
8981
|
+
Object.defineProperty(exports, "repairParsedStructure", {
|
|
8982
|
+
enumerable: true,
|
|
8983
|
+
get: function () { return chunkZWFMFOGP_cjs.repairParsedStructure; }
|
|
8984
|
+
});
|
|
8985
|
+
Object.defineProperty(exports, "repairParsedTitle", {
|
|
8986
|
+
enumerable: true,
|
|
8987
|
+
get: function () { return chunkZWFMFOGP_cjs.repairParsedTitle; }
|
|
8988
|
+
});
|
|
8989
|
+
Object.defineProperty(exports, "stripAgentPreamble", {
|
|
8990
|
+
enumerable: true,
|
|
8991
|
+
get: function () { return chunkZWFMFOGP_cjs.stripAgentPreamble; }
|
|
8992
|
+
});
|
|
8993
|
+
Object.defineProperty(exports, "unescapeMarkdown", {
|
|
8994
|
+
enumerable: true,
|
|
8995
|
+
get: function () { return chunkZWFMFOGP_cjs.unescapeMarkdown; }
|
|
8996
|
+
});
|
|
8997
|
+
Object.defineProperty(exports, "unwrapCitationLinks", {
|
|
8998
|
+
enumerable: true,
|
|
8999
|
+
get: function () { return chunkZWFMFOGP_cjs.unwrapCitationLinks; }
|
|
8670
9000
|
});
|
|
8671
9001
|
Object.defineProperty(exports, "DEFAULT_NOTIFY_TONE", {
|
|
8672
9002
|
enumerable: true,
|
|
@@ -8716,38 +9046,6 @@ Object.defineProperty(exports, "useNotify", {
|
|
|
8716
9046
|
enumerable: true,
|
|
8717
9047
|
get: function () { return chunkKLPY2HUC_cjs.useNotify; }
|
|
8718
9048
|
});
|
|
8719
|
-
Object.defineProperty(exports, "cleanDraftMarkdown", {
|
|
8720
|
-
enumerable: true,
|
|
8721
|
-
get: function () { return chunkZWFMFOGP_cjs.cleanDraftMarkdown; }
|
|
8722
|
-
});
|
|
8723
|
-
Object.defineProperty(exports, "cleanDraftWithReport", {
|
|
8724
|
-
enumerable: true,
|
|
8725
|
-
get: function () { return chunkZWFMFOGP_cjs.cleanDraftWithReport; }
|
|
8726
|
-
});
|
|
8727
|
-
Object.defineProperty(exports, "promoteBoldTitle", {
|
|
8728
|
-
enumerable: true,
|
|
8729
|
-
get: function () { return chunkZWFMFOGP_cjs.promoteBoldTitle; }
|
|
8730
|
-
});
|
|
8731
|
-
Object.defineProperty(exports, "repairParsedStructure", {
|
|
8732
|
-
enumerable: true,
|
|
8733
|
-
get: function () { return chunkZWFMFOGP_cjs.repairParsedStructure; }
|
|
8734
|
-
});
|
|
8735
|
-
Object.defineProperty(exports, "repairParsedTitle", {
|
|
8736
|
-
enumerable: true,
|
|
8737
|
-
get: function () { return chunkZWFMFOGP_cjs.repairParsedTitle; }
|
|
8738
|
-
});
|
|
8739
|
-
Object.defineProperty(exports, "stripAgentPreamble", {
|
|
8740
|
-
enumerable: true,
|
|
8741
|
-
get: function () { return chunkZWFMFOGP_cjs.stripAgentPreamble; }
|
|
8742
|
-
});
|
|
8743
|
-
Object.defineProperty(exports, "unescapeMarkdown", {
|
|
8744
|
-
enumerable: true,
|
|
8745
|
-
get: function () { return chunkZWFMFOGP_cjs.unescapeMarkdown; }
|
|
8746
|
-
});
|
|
8747
|
-
Object.defineProperty(exports, "unwrapCitationLinks", {
|
|
8748
|
-
enumerable: true,
|
|
8749
|
-
get: function () { return chunkZWFMFOGP_cjs.unwrapCitationLinks; }
|
|
8750
|
-
});
|
|
8751
9049
|
Object.defineProperty(exports, "AUDIO_MIME_PREFERENCE", {
|
|
8752
9050
|
enumerable: true,
|
|
8753
9051
|
get: function () { return chunk65WT5PHA_cjs.AUDIO_MIME_PREFERENCE; }
|
|
@@ -9348,14 +9646,6 @@ Object.defineProperty(exports, "splitMarkdownBlocks", {
|
|
|
9348
9646
|
enumerable: true,
|
|
9349
9647
|
get: function () { return chunkOC7F5SNA_cjs.splitMarkdownBlocks; }
|
|
9350
9648
|
});
|
|
9351
|
-
Object.defineProperty(exports, "ScrollArea", {
|
|
9352
|
-
enumerable: true,
|
|
9353
|
-
get: function () { return chunkHUZB36QU_cjs.ScrollArea; }
|
|
9354
|
-
});
|
|
9355
|
-
Object.defineProperty(exports, "ScrollBar", {
|
|
9356
|
-
enumerable: true,
|
|
9357
|
-
get: function () { return chunkHUZB36QU_cjs.ScrollBar; }
|
|
9358
|
-
});
|
|
9359
9649
|
Object.defineProperty(exports, "Button", {
|
|
9360
9650
|
enumerable: true,
|
|
9361
9651
|
get: function () { return chunkWYZJLZ67_cjs.Button; }
|
|
@@ -9416,6 +9706,14 @@ Object.defineProperty(exports, "trimOpenCitation", {
|
|
|
9416
9706
|
enumerable: true,
|
|
9417
9707
|
get: function () { return chunkZ3LLUO32_cjs.trimOpenCitation; }
|
|
9418
9708
|
});
|
|
9709
|
+
Object.defineProperty(exports, "ScrollArea", {
|
|
9710
|
+
enumerable: true,
|
|
9711
|
+
get: function () { return chunkHUZB36QU_cjs.ScrollArea; }
|
|
9712
|
+
});
|
|
9713
|
+
Object.defineProperty(exports, "ScrollBar", {
|
|
9714
|
+
enumerable: true,
|
|
9715
|
+
get: function () { return chunkHUZB36QU_cjs.ScrollBar; }
|
|
9716
|
+
});
|
|
9419
9717
|
Object.defineProperty(exports, "DropdownMenu", {
|
|
9420
9718
|
enumerable: true,
|
|
9421
9719
|
get: function () { return chunkHJDR5HEO_cjs.DropdownMenu; }
|
|
@@ -9585,6 +9883,7 @@ exports.DocumentCardMenu = DocumentCardMenu;
|
|
|
9585
9883
|
exports.DocumentGallery = DocumentGallery;
|
|
9586
9884
|
exports.DocumentReview = DocumentReview;
|
|
9587
9885
|
exports.DocumentTable = DocumentTable;
|
|
9886
|
+
exports.DocumentsSupportProvider = DocumentsSupportProvider;
|
|
9588
9887
|
exports.DraftTitleControls = DraftTitleControls;
|
|
9589
9888
|
exports.EMPTY_SESSION_STATE = EMPTY_SESSION_STATE;
|
|
9590
9889
|
exports.FileIcon = FileIcon;
|
|
@@ -9617,6 +9916,7 @@ exports.accountPath = accountPath;
|
|
|
9617
9916
|
exports.aliasTakenMessage = aliasTakenMessage;
|
|
9618
9917
|
exports.annotateThread = annotateThread;
|
|
9619
9918
|
exports.announceMailDraftReplaced = announceMailDraftReplaced;
|
|
9919
|
+
exports.applyOptimisticDocumentEdit = applyOptimisticDocumentEdit;
|
|
9620
9920
|
exports.arbiAccountClient = arbiAccountClient;
|
|
9621
9921
|
exports.arbiMailClient = arbiMailClient;
|
|
9622
9922
|
exports.calendarQueryKeys = calendarQueryKeys;
|
|
@@ -9647,13 +9947,13 @@ exports.identityStepFor = identityStepFor;
|
|
|
9647
9947
|
exports.inputRequestTitle = inputRequestTitle;
|
|
9648
9948
|
exports.invalidateCalendarEvents = invalidateCalendarEvents;
|
|
9649
9949
|
exports.invalidateCalendars = invalidateCalendars;
|
|
9650
|
-
exports.invalidateTagData = invalidateTagData;
|
|
9651
|
-
exports.invalidateTagTables = invalidateTagTables;
|
|
9652
9950
|
exports.isAliasTakenError = isAliasTakenError;
|
|
9653
9951
|
exports.isDeploymentAdmin = isDeploymentAdmin;
|
|
9654
9952
|
exports.isDeploymentUserNotification = isDeploymentUserNotification;
|
|
9953
|
+
exports.isOfflineReadableArbiQuery = isOfflineReadableArbiQuery;
|
|
9655
9954
|
exports.isQueuedCalendarWrite = isQueuedCalendarWrite;
|
|
9656
9955
|
exports.isReplayableArbiMutation = isReplayableArbiMutation;
|
|
9956
|
+
exports.isRestorableArbiQueryOnline = isRestorableArbiQueryOnline;
|
|
9657
9957
|
exports.isSignatureNotificationType = isSignatureNotificationType;
|
|
9658
9958
|
exports.isWorkspaceNotificationType = isWorkspaceNotificationType;
|
|
9659
9959
|
exports.mailDraftIdFromContent = mailDraftIdFromContent;
|
|
@@ -9665,12 +9965,12 @@ exports.nextViewingDocument = nextViewingDocument;
|
|
|
9665
9965
|
exports.notificationUserName = notificationUserName;
|
|
9666
9966
|
exports.parseActivityContent = parseActivityContent;
|
|
9667
9967
|
exports.parseDeleteAccountBlockers = parseDeleteAccountBlockers;
|
|
9668
|
-
exports.patchWorkspaceTags = patchWorkspaceTags;
|
|
9669
9968
|
exports.pickRecentWorkspaces = pickRecentWorkspaces;
|
|
9670
9969
|
exports.redlineStats = redlineStats;
|
|
9671
9970
|
exports.registerArbiMutationDefaults = registerArbiMutationDefaults;
|
|
9672
9971
|
exports.resetCalendarAccountSyncState = resetCalendarAccountSyncState;
|
|
9673
9972
|
exports.resolveActiveWorkspace = resolveActiveWorkspace;
|
|
9973
|
+
exports.rollbackOptimisticDocumentEdit = rollbackOptimisticDocumentEdit;
|
|
9674
9974
|
exports.safePortalUrl = safePortalUrl;
|
|
9675
9975
|
exports.selectIsGenerating = selectIsGenerating;
|
|
9676
9976
|
exports.selectViewingDocumentId = selectViewingDocumentId;
|
|
@@ -9707,6 +10007,7 @@ exports.useArbiWsStatus = useArbiWsStatus;
|
|
|
9707
10007
|
exports.useArbiWsStore = useArbiWsStore;
|
|
9708
10008
|
exports.useArbiWsTask = useArbiWsTask;
|
|
9709
10009
|
exports.useArbiWsTasks = useArbiWsTasks;
|
|
10010
|
+
exports.useAssignDocTags = useAssignDocTags;
|
|
9710
10011
|
exports.useAuthorizeLimits = useAuthorizeLimits;
|
|
9711
10012
|
exports.useAvatarCrop = useAvatarCrop;
|
|
9712
10013
|
exports.useBookingPages = useBookingPages;
|
|
@@ -9743,7 +10044,6 @@ exports.useCreateFact = useCreateFact;
|
|
|
9743
10044
|
exports.useCreateFacts = useCreateFacts;
|
|
9744
10045
|
exports.useCreateFeed = useCreateFeed;
|
|
9745
10046
|
exports.useCreateRoom = useCreateRoom;
|
|
9746
|
-
exports.useCreateTag = useCreateTag;
|
|
9747
10047
|
exports.useCreateWork = useCreateWork;
|
|
9748
10048
|
exports.useCreateWorkflow = useCreateWorkflow;
|
|
9749
10049
|
exports.useCurrentSessionId = useCurrentSessionId;
|
|
@@ -9753,31 +10053,32 @@ exports.useDeleteAccountFlow = useDeleteAccountFlow;
|
|
|
9753
10053
|
exports.useDeleteBookingPage = useDeleteBookingPage;
|
|
9754
10054
|
exports.useDeleteCalendar = useDeleteCalendar;
|
|
9755
10055
|
exports.useDeleteContact = useDeleteContact;
|
|
10056
|
+
exports.useDeleteDocuments = useDeleteDocuments;
|
|
9756
10057
|
exports.useDeleteEvent = useDeleteEvent;
|
|
9757
10058
|
exports.useDeleteFact = useDeleteFact;
|
|
9758
10059
|
exports.useDeleteNotifications = useDeleteNotifications;
|
|
9759
10060
|
exports.useDeleteSkill = useDeleteSkill;
|
|
9760
|
-
exports.useDeleteTag = useDeleteTag;
|
|
9761
10061
|
exports.useDeleteWorkflow = useDeleteWorkflow;
|
|
9762
10062
|
exports.useDirectMessages = useDirectMessages;
|
|
9763
10063
|
exports.useDisconnectCalendarAccount = useDisconnectCalendarAccount;
|
|
9764
10064
|
exports.useDisconnectMailAccount = useDisconnectMailAccount;
|
|
10065
|
+
exports.useDocumentsSupport = useDocumentsSupport;
|
|
9765
10066
|
exports.useEmailChange = useEmailChange;
|
|
9766
|
-
exports.useExtractEntities = useExtractEntities;
|
|
9767
10067
|
exports.useFacts = useFacts;
|
|
9768
10068
|
exports.useFetchCalendarEvent = useFetchCalendarEvent;
|
|
9769
10069
|
exports.useFilteredProjects = useFilteredProjects;
|
|
10070
|
+
exports.useFinaliseTranslation = useFinaliseTranslation;
|
|
9770
10071
|
exports.useFindTime = useFindTime;
|
|
9771
10072
|
exports.useFollowThread = useFollowThread;
|
|
9772
10073
|
exports.useFreeBusy = useFreeBusy;
|
|
9773
10074
|
exports.useGenerateAgentAvatar = useGenerateAgentAvatar;
|
|
10075
|
+
exports.useGenerateDocTags = useGenerateDocTags;
|
|
9774
10076
|
exports.useGrantAgentAccess = useGrantAgentAccess;
|
|
9775
10077
|
exports.useHolidayCountries = useHolidayCountries;
|
|
9776
10078
|
exports.useHouseTemplateCandidates = useHouseTemplateCandidates;
|
|
9777
10079
|
exports.useIdentityVerification = useIdentityVerification;
|
|
9778
10080
|
exports.useIdentityVerificationFlow = useIdentityVerificationFlow;
|
|
9779
10081
|
exports.useImportCalendar = useImportCalendar;
|
|
9780
|
-
exports.useInvalidateTagData = useInvalidateTagData;
|
|
9781
10082
|
exports.useInviteContacts = useInviteContacts;
|
|
9782
10083
|
exports.useMailAccounts = useMailAccounts;
|
|
9783
10084
|
exports.useMailAttachmentText = useMailAttachmentText;
|
|
@@ -9808,6 +10109,7 @@ exports.useProjectConversationUsage = useProjectConversationUsage;
|
|
|
9808
10109
|
exports.useProjectEvents = useProjectEvents;
|
|
9809
10110
|
exports.usePublishCalendar = usePublishCalendar;
|
|
9810
10111
|
exports.useRefreshCalendar = useRefreshCalendar;
|
|
10112
|
+
exports.useRemoveDocTags = useRemoveDocTags;
|
|
9811
10113
|
exports.useRequestEmailChange = useRequestEmailChange;
|
|
9812
10114
|
exports.useRespondToEvent = useRespondToEvent;
|
|
9813
10115
|
exports.useResumeCalendarAccountConnect = useResumeCalendarAccountConnect;
|
|
@@ -9827,7 +10129,6 @@ exports.useSendBackStep = useSendBackStep;
|
|
|
9827
10129
|
exports.useSendMail = useSendMail;
|
|
9828
10130
|
exports.useSessions = useSessions;
|
|
9829
10131
|
exports.useSetSkillVisibility = useSetSkillVisibility;
|
|
9830
|
-
exports.useSetTagValues = useSetTagValues;
|
|
9831
10132
|
exports.useSetWorkspaceHouseTemplate = useSetWorkspaceHouseTemplate;
|
|
9832
10133
|
exports.useShareCalendar = useShareCalendar;
|
|
9833
10134
|
exports.useShellWorkspaces = useShellWorkspaces;
|
|
@@ -9840,22 +10141,24 @@ exports.useStartWorkQuery = useStartWorkQuery;
|
|
|
9840
10141
|
exports.useSubscribeCalendar = useSubscribeCalendar;
|
|
9841
10142
|
exports.useSyncAccountsOnOpen = useSyncAccountsOnOpen;
|
|
9842
10143
|
exports.useSyncCalendarAccount = useSyncCalendarAccount;
|
|
9843
|
-
exports.useTagKindSchema = useTagKindSchema;
|
|
9844
10144
|
exports.useTerminateSession = useTerminateSession;
|
|
9845
10145
|
exports.useUnshareCalendar = useUnshareCalendar;
|
|
9846
10146
|
exports.useUpdateCalendar = useUpdateCalendar;
|
|
9847
10147
|
exports.useUpdateCalendarAccount = useUpdateCalendarAccount;
|
|
9848
10148
|
exports.useUpdateContact = useUpdateContact;
|
|
9849
10149
|
exports.useUpdateConversation = useUpdateConversation;
|
|
10150
|
+
exports.useUpdateDocTag = useUpdateDocTag;
|
|
10151
|
+
exports.useUpdateDocuments = useUpdateDocuments;
|
|
9850
10152
|
exports.useUpdateEvent = useUpdateEvent;
|
|
9851
10153
|
exports.useUpdateFact = useUpdateFact;
|
|
9852
10154
|
exports.useUpdateMailMessage = useUpdateMailMessage;
|
|
9853
10155
|
exports.useUpdateProfile = useUpdateProfile;
|
|
9854
10156
|
exports.useUpdateProjectFields = useUpdateProjectFields;
|
|
9855
|
-
exports.
|
|
9856
|
-
exports.useUpdateTagKindSchema = useUpdateTagKindSchema;
|
|
10157
|
+
exports.useUpdateUserSettings = useUpdateUserSettings;
|
|
9857
10158
|
exports.useUpdateWorkflow = useUpdateWorkflow;
|
|
10159
|
+
exports.useUploadDocuments = useUploadDocuments;
|
|
9858
10160
|
exports.useUploadSkillFiles = useUploadSkillFiles;
|
|
10161
|
+
exports.useUploadUrls = useUploadUrls;
|
|
9859
10162
|
exports.useUserSettings = useUserSettings;
|
|
9860
10163
|
exports.useVideoRecorder = useVideoRecorder;
|
|
9861
10164
|
exports.useWorkNotifications = useWorkNotifications;
|