@arbidocs/react 0.4.143 → 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-5RYBYTCF.cjs → chunk-CG6USBJX.cjs} +481 -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 +562 -284
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +554 -158
- package/dist/index.d.ts +554 -158
- package/dist/index.js +291 -145
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-5RYBYTCF.cjs.map +0 -1
- package/dist/chunk-GQ5TA4BM.js +0 -421
- package/dist/chunk-GQ5TA4BM.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkCG6USBJX_cjs = require('./chunk-CG6USBJX.cjs');
|
|
4
4
|
var chunkL57RRAII_cjs = require('./chunk-L57RRAII.cjs');
|
|
5
5
|
var chunkZWFMFOGP_cjs = require('./chunk-ZWFMFOGP.cjs');
|
|
6
6
|
require('./chunk-VOFNX4P6.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: chunk5RYBYTCF_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(chunk5RYBYTCF_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({
|
|
@@ -2260,7 +2423,7 @@ function usePasswordChangeForm({
|
|
|
2260
2423
|
function useUserSettings(options) {
|
|
2261
2424
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
2262
2425
|
return reactQuery.useQuery({
|
|
2263
|
-
queryKey:
|
|
2426
|
+
queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.userSettings(),
|
|
2264
2427
|
queryFn: () => arbi.settings.get(),
|
|
2265
2428
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
2266
2429
|
});
|
|
@@ -2271,18 +2434,18 @@ function useUpdateUserSettings() {
|
|
|
2271
2434
|
return reactQuery.useMutation({
|
|
2272
2435
|
mutationFn: (patch) => arbi.settings.update(patch),
|
|
2273
2436
|
onMutate: async (patch) => {
|
|
2274
|
-
await qc.cancelQueries({ queryKey:
|
|
2275
|
-
const previous = qc.getQueryData(
|
|
2437
|
+
await qc.cancelQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.userSettings() });
|
|
2438
|
+
const previous = qc.getQueryData(chunkCG6USBJX_cjs.arbiQueryKeys.userSettings());
|
|
2276
2439
|
qc.setQueryData(
|
|
2277
|
-
|
|
2440
|
+
chunkCG6USBJX_cjs.arbiQueryKeys.userSettings(),
|
|
2278
2441
|
(old) => old ? { ...old, ...patch } : old
|
|
2279
2442
|
);
|
|
2280
2443
|
return { previous };
|
|
2281
2444
|
},
|
|
2282
2445
|
onError: (_err, _patch, context) => {
|
|
2283
|
-
qc.setQueryData(
|
|
2446
|
+
qc.setQueryData(chunkCG6USBJX_cjs.arbiQueryKeys.userSettings(), context?.previous);
|
|
2284
2447
|
},
|
|
2285
|
-
onSettled: () => qc.invalidateQueries({ queryKey:
|
|
2448
|
+
onSettled: () => qc.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.userSettings() })
|
|
2286
2449
|
});
|
|
2287
2450
|
}
|
|
2288
2451
|
function toNotificationPreferences(stored, keys) {
|
|
@@ -2302,18 +2465,18 @@ function useNotificationPreferences(keys, options) {
|
|
|
2302
2465
|
const save = reactQuery.useMutation({
|
|
2303
2466
|
mutationFn: (patch) => arbi.settings.update({ email_notifications: patch }),
|
|
2304
2467
|
onMutate: async (patch) => {
|
|
2305
|
-
await qc.cancelQueries({ queryKey:
|
|
2306
|
-
const previous = qc.getQueryData(
|
|
2468
|
+
await qc.cancelQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.userSettings() });
|
|
2469
|
+
const previous = qc.getQueryData(chunkCG6USBJX_cjs.arbiQueryKeys.userSettings());
|
|
2307
2470
|
qc.setQueryData(
|
|
2308
|
-
|
|
2471
|
+
chunkCG6USBJX_cjs.arbiQueryKeys.userSettings(),
|
|
2309
2472
|
(old) => old ? { ...old, email_notifications: { ...old.email_notifications, ...patch } } : old
|
|
2310
2473
|
);
|
|
2311
2474
|
return { previous };
|
|
2312
2475
|
},
|
|
2313
2476
|
onError: (_err, _patch, context) => {
|
|
2314
|
-
qc.setQueryData(
|
|
2477
|
+
qc.setQueryData(chunkCG6USBJX_cjs.arbiQueryKeys.userSettings(), context?.previous);
|
|
2315
2478
|
},
|
|
2316
|
-
onSettled: () => qc.invalidateQueries({ queryKey:
|
|
2479
|
+
onSettled: () => qc.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.userSettings() })
|
|
2317
2480
|
});
|
|
2318
2481
|
const model = React.useMemo(() => toNotificationPreferences(stored, keys), [stored, keys]);
|
|
2319
2482
|
const setAll = React.useCallback(
|
|
@@ -2340,18 +2503,18 @@ function useRelevanceSave() {
|
|
|
2340
2503
|
return reactQuery.useMutation({
|
|
2341
2504
|
mutationFn: (patch) => arbi.settings.update(patch),
|
|
2342
2505
|
onMutate: async (patch) => {
|
|
2343
|
-
await qc.cancelQueries({ queryKey:
|
|
2344
|
-
const previous = qc.getQueryData(
|
|
2506
|
+
await qc.cancelQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.userSettings() });
|
|
2507
|
+
const previous = qc.getQueryData(chunkCG6USBJX_cjs.arbiQueryKeys.userSettings());
|
|
2345
2508
|
qc.setQueryData(
|
|
2346
|
-
|
|
2509
|
+
chunkCG6USBJX_cjs.arbiQueryKeys.userSettings(),
|
|
2347
2510
|
(old) => old ? { ...old, ...patch } : old
|
|
2348
2511
|
);
|
|
2349
2512
|
return { previous };
|
|
2350
2513
|
},
|
|
2351
2514
|
onError: (_err, _patch, context) => {
|
|
2352
|
-
qc.setQueryData(
|
|
2515
|
+
qc.setQueryData(chunkCG6USBJX_cjs.arbiQueryKeys.userSettings(), context?.previous);
|
|
2353
2516
|
},
|
|
2354
|
-
onSettled: () => qc.invalidateQueries({ queryKey:
|
|
2517
|
+
onSettled: () => qc.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.userSettings() })
|
|
2355
2518
|
});
|
|
2356
2519
|
}
|
|
2357
2520
|
function useWorkspaceNotificationLevel(workspaceId, options) {
|
|
@@ -2362,7 +2525,7 @@ function useWorkspaceNotificationLevel(workspaceId, options) {
|
|
|
2362
2525
|
const setLevel = React.useCallback(
|
|
2363
2526
|
(next) => {
|
|
2364
2527
|
if (!workspaceId) return;
|
|
2365
|
-
const current = qc.getQueryData(
|
|
2528
|
+
const current = qc.getQueryData(chunkCG6USBJX_cjs.arbiQueryKeys.userSettings()) ?? settings.data;
|
|
2366
2529
|
save.mutate(browser.settings.workspaceLevelPatch(current, workspaceId, next));
|
|
2367
2530
|
},
|
|
2368
2531
|
[qc, save, settings.data, workspaceId]
|
|
@@ -2383,7 +2546,7 @@ function useFollowThread(conversationId, options) {
|
|
|
2383
2546
|
const setFollowing = React.useCallback(
|
|
2384
2547
|
(on, callbacks) => {
|
|
2385
2548
|
if (!conversationId) return;
|
|
2386
|
-
const current = qc.getQueryData(
|
|
2549
|
+
const current = qc.getQueryData(chunkCG6USBJX_cjs.arbiQueryKeys.userSettings()) ?? settings.data;
|
|
2387
2550
|
save.mutate(
|
|
2388
2551
|
{
|
|
2389
2552
|
followed_threads: browser.settings.withMembership(
|
|
@@ -2408,7 +2571,7 @@ function useFollowThread(conversationId, options) {
|
|
|
2408
2571
|
function useSessions(options) {
|
|
2409
2572
|
const { client, enabled } = useAccountClient();
|
|
2410
2573
|
return reactQuery.useQuery({
|
|
2411
|
-
queryKey:
|
|
2574
|
+
queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.sessions(),
|
|
2412
2575
|
queryFn: () => client.listSessions(),
|
|
2413
2576
|
enabled: (options?.enabled ?? true) && enabled
|
|
2414
2577
|
});
|
|
@@ -2418,7 +2581,7 @@ function useTerminateSession() {
|
|
|
2418
2581
|
const qc = reactQuery.useQueryClient();
|
|
2419
2582
|
return reactQuery.useMutation({
|
|
2420
2583
|
mutationFn: (sessionId) => client.terminateSession(sessionId),
|
|
2421
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
2584
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.sessions() })
|
|
2422
2585
|
});
|
|
2423
2586
|
}
|
|
2424
2587
|
function useSignOut() {
|
|
@@ -2561,7 +2724,7 @@ function useIdentityVerificationFlow(api, {
|
|
|
2561
2724
|
const apiRef = React.useRef(api);
|
|
2562
2725
|
apiRef.current = api;
|
|
2563
2726
|
const query = reactQuery.useQuery({
|
|
2564
|
-
queryKey:
|
|
2727
|
+
queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.identity(),
|
|
2565
2728
|
queryFn: () => apiRef.current.status(),
|
|
2566
2729
|
enabled,
|
|
2567
2730
|
staleTime: 6e4
|
|
@@ -2579,7 +2742,7 @@ function useIdentityVerificationFlow(api, {
|
|
|
2579
2742
|
const lastVerified = React.useRef(void 0);
|
|
2580
2743
|
const apply = React.useCallback(
|
|
2581
2744
|
(next) => {
|
|
2582
|
-
qc.setQueryData(
|
|
2745
|
+
qc.setQueryData(chunkCG6USBJX_cjs.arbiQueryKeys.identity(), next);
|
|
2583
2746
|
if (lastVerified.current !== void 0 && lastVerified.current !== next.verified) {
|
|
2584
2747
|
onVerifiedChange?.(next.verified);
|
|
2585
2748
|
}
|
|
@@ -2774,12 +2937,12 @@ function useIdentityVerification(options = {}) {
|
|
|
2774
2937
|
enabled,
|
|
2775
2938
|
formatPrice,
|
|
2776
2939
|
onVerifiedChange: (verified) => {
|
|
2777
|
-
void qc.invalidateQueries({ queryKey:
|
|
2940
|
+
void qc.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.profile() });
|
|
2778
2941
|
onVerifiedChange?.(verified);
|
|
2779
2942
|
},
|
|
2780
2943
|
onNameAccepted: (name) => {
|
|
2781
|
-
void qc.invalidateQueries({ queryKey:
|
|
2782
|
-
void qc.invalidateQueries({ queryKey:
|
|
2944
|
+
void qc.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.profile() });
|
|
2945
|
+
void qc.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.workspaces() });
|
|
2783
2946
|
onNameAccepted?.(name);
|
|
2784
2947
|
}
|
|
2785
2948
|
});
|
|
@@ -3842,7 +4005,7 @@ function useDeleteBookingPage() {
|
|
|
3842
4005
|
});
|
|
3843
4006
|
}
|
|
3844
4007
|
function useWorkspaceDocs(workspaceId) {
|
|
3845
|
-
const { data: docs = [], isLoading, isError } =
|
|
4008
|
+
const { data: docs = [], isLoading, isError } = chunkCG6USBJX_cjs.useDocuments(workspaceId);
|
|
3846
4009
|
const docIds = React.useMemo(
|
|
3847
4010
|
() => docs.map((d) => d.external_id).filter((id) => !!id),
|
|
3848
4011
|
[docs]
|
|
@@ -3850,7 +4013,7 @@ function useWorkspaceDocs(workspaceId) {
|
|
|
3850
4013
|
return { wsId: workspaceId, docs, docIds, isLoading, isError, ready: docIds.length > 0 };
|
|
3851
4014
|
}
|
|
3852
4015
|
function useAiTask() {
|
|
3853
|
-
const mutation =
|
|
4016
|
+
const mutation = chunkCG6USBJX_cjs.useAssistantQuery();
|
|
3854
4017
|
const [status, setStatus] = React.useState("idle");
|
|
3855
4018
|
const [text, setText] = React.useState("");
|
|
3856
4019
|
const [stepCount, setStepCount] = React.useState(0);
|
|
@@ -4470,8 +4633,8 @@ function DocumentReview({
|
|
|
4470
4633
|
onClose,
|
|
4471
4634
|
className
|
|
4472
4635
|
}) {
|
|
4473
|
-
const parsedQuery =
|
|
4474
|
-
const tagsQuery =
|
|
4636
|
+
const parsedQuery = chunkCG6USBJX_cjs.useParsedDocument(docId, stage);
|
|
4637
|
+
const tagsQuery = chunkCG6USBJX_cjs.useTags(workspaceId);
|
|
4475
4638
|
const tagNameById = React__default.default.useMemo(() => {
|
|
4476
4639
|
const map = /* @__PURE__ */ new Map();
|
|
4477
4640
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -4702,7 +4865,7 @@ function SemanticSearch({
|
|
|
4702
4865
|
const { results, status, error, search, isRunning, query } = useSemanticSearch(docIds);
|
|
4703
4866
|
const [value, setValue] = React.useState("");
|
|
4704
4867
|
const [selected, setSelected] = React.useState(null);
|
|
4705
|
-
const { data: docs = [] } =
|
|
4868
|
+
const { data: docs = [] } = chunkCG6USBJX_cjs.useDocuments(workspaceId, { enabled: !!workspaceId });
|
|
4706
4869
|
const docMap = React.useMemo(() => {
|
|
4707
4870
|
const map = /* @__PURE__ */ new Map();
|
|
4708
4871
|
for (const d of docs) if (d.external_id) map.set(d.external_id, d);
|
|
@@ -5804,7 +5967,7 @@ function ActivityFeed({
|
|
|
5804
5967
|
enabled,
|
|
5805
5968
|
"data-testid": testId = "activity-feed"
|
|
5806
5969
|
}) {
|
|
5807
|
-
const { data, isLoading, isError } =
|
|
5970
|
+
const { data, isLoading, isError } = chunkCG6USBJX_cjs.useActivity({ limit, enabled });
|
|
5808
5971
|
if (isLoading) {
|
|
5809
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: [
|
|
5810
5973
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-4 w-4 shrink-0 animate-pulse rounded-full bg-muted" }),
|
|
@@ -5881,12 +6044,12 @@ function useNotifications(options = {}) {
|
|
|
5881
6044
|
React.useEffect(
|
|
5882
6045
|
() => ws?.subscribe((message) => {
|
|
5883
6046
|
if ("sender" in message && "recipient" in message)
|
|
5884
|
-
void queries.invalidateQueries({ queryKey:
|
|
6047
|
+
void queries.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.allNotifications() });
|
|
5885
6048
|
}),
|
|
5886
6049
|
[ws, queries]
|
|
5887
6050
|
);
|
|
5888
6051
|
return reactQuery.useQuery({
|
|
5889
|
-
queryKey:
|
|
6052
|
+
queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.notifications(limit),
|
|
5890
6053
|
queryFn: () => arbi.notifications.list({ limit }),
|
|
5891
6054
|
enabled: (options.enabled ?? true) && arbi.isLoggedIn
|
|
5892
6055
|
});
|
|
@@ -5896,7 +6059,7 @@ function useDeleteNotifications() {
|
|
|
5896
6059
|
const queries = reactQuery.useQueryClient();
|
|
5897
6060
|
return reactQuery.useMutation({
|
|
5898
6061
|
mutationFn: (ids) => arbi.notifications.delete(ids),
|
|
5899
|
-
onSuccess: () => queries.invalidateQueries({ queryKey:
|
|
6062
|
+
onSuccess: () => queries.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.allNotifications() })
|
|
5900
6063
|
});
|
|
5901
6064
|
}
|
|
5902
6065
|
function useMarkNotificationsRead() {
|
|
@@ -5904,7 +6067,7 @@ function useMarkNotificationsRead() {
|
|
|
5904
6067
|
const queries = reactQuery.useQueryClient();
|
|
5905
6068
|
return reactQuery.useMutation({
|
|
5906
6069
|
mutationFn: (ids) => arbi.notifications.markRead(ids),
|
|
5907
|
-
onSuccess: () => queries.invalidateQueries({ queryKey:
|
|
6070
|
+
onSuccess: () => queries.invalidateQueries({ queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.allNotifications() })
|
|
5908
6071
|
});
|
|
5909
6072
|
}
|
|
5910
6073
|
|
|
@@ -6357,7 +6520,7 @@ function useDirectMessages(options) {
|
|
|
6357
6520
|
enabled
|
|
6358
6521
|
});
|
|
6359
6522
|
const contactsQuery = reactQuery.useQuery({
|
|
6360
|
-
queryKey:
|
|
6523
|
+
queryKey: chunkCG6USBJX_cjs.arbiQueryKeys.contacts(),
|
|
6361
6524
|
queryFn: () => arbi.contacts.list(),
|
|
6362
6525
|
enabled
|
|
6363
6526
|
});
|
|
@@ -7626,10 +7789,10 @@ function DocumentTable({
|
|
|
7626
7789
|
extraColumns,
|
|
7627
7790
|
className
|
|
7628
7791
|
}) {
|
|
7629
|
-
const query =
|
|
7792
|
+
const query = chunkCG6USBJX_cjs.useDocuments(workspaceId, { enabled: !documents });
|
|
7630
7793
|
const rows = documents ?? query.data ?? [];
|
|
7631
7794
|
const isLoading = !documents && query.isLoading;
|
|
7632
|
-
const tagsQuery =
|
|
7795
|
+
const tagsQuery = chunkCG6USBJX_cjs.useTags(workspaceId);
|
|
7633
7796
|
const tagNameById = React__default.default.useMemo(() => {
|
|
7634
7797
|
const map = /* @__PURE__ */ new Map();
|
|
7635
7798
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -7806,13 +7969,6 @@ function DocumentCardMenu({
|
|
|
7806
7969
|
testId = "document-card-menu"
|
|
7807
7970
|
}) {
|
|
7808
7971
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
7809
|
-
const queryClient = reactQuery.useQueryClient();
|
|
7810
|
-
const invalidateDocuments = () => {
|
|
7811
|
-
const workspaceId = arbi.getWorkspaceId();
|
|
7812
|
-
if (workspaceId) {
|
|
7813
|
-
void queryClient.invalidateQueries({ queryKey: chunk5RYBYTCF_cjs.arbiQueryKeys.documents(workspaceId) });
|
|
7814
|
-
}
|
|
7815
|
-
};
|
|
7816
7972
|
const download = reactQuery.useMutation({
|
|
7817
7973
|
mutationFn: async () => {
|
|
7818
7974
|
const response = await arbi.documents.download(docId);
|
|
@@ -7828,10 +7984,7 @@ function DocumentCardMenu({
|
|
|
7828
7984
|
URL.revokeObjectURL(url);
|
|
7829
7985
|
}
|
|
7830
7986
|
});
|
|
7831
|
-
const remove =
|
|
7832
|
-
mutationFn: () => arbi.documents.delete([docId]),
|
|
7833
|
-
onSuccess: invalidateDocuments
|
|
7834
|
-
});
|
|
7987
|
+
const remove = useDeleteDocuments();
|
|
7835
7988
|
return /* @__PURE__ */ jsxRuntime.jsxs(chunkHJDR5HEO_cjs.DropdownMenu, { children: [
|
|
7836
7989
|
/* @__PURE__ */ jsxRuntime.jsx(chunkHJDR5HEO_cjs.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
7837
7990
|
"button",
|
|
@@ -7870,7 +8023,7 @@ function DocumentCardMenu({
|
|
|
7870
8023
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
7871
8024
|
chunkHJDR5HEO_cjs.DropdownMenuItem,
|
|
7872
8025
|
{
|
|
7873
|
-
onSelect: () => remove.mutate(),
|
|
8026
|
+
onSelect: () => remove.mutate([docId]),
|
|
7874
8027
|
disabled: remove.isPending,
|
|
7875
8028
|
className: "text-destructive focus:text-destructive",
|
|
7876
8029
|
"data-testid": `${testId}-delete`,
|
|
@@ -7909,10 +8062,10 @@ function DocumentGallery({
|
|
|
7909
8062
|
minTileWidth = 148,
|
|
7910
8063
|
className
|
|
7911
8064
|
}) {
|
|
7912
|
-
const query =
|
|
8065
|
+
const query = chunkCG6USBJX_cjs.useDocuments(workspaceId, { enabled: !documents });
|
|
7913
8066
|
const rows = documents ?? query.data ?? [];
|
|
7914
8067
|
const isLoading = !documents && query.isLoading;
|
|
7915
|
-
const tagsQuery =
|
|
8068
|
+
const tagsQuery = chunkCG6USBJX_cjs.useTags(workspaceId);
|
|
7916
8069
|
const tagNameById = React__default.default.useMemo(() => {
|
|
7917
8070
|
const map = /* @__PURE__ */ new Map();
|
|
7918
8071
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -7924,7 +8077,7 @@ function DocumentGallery({
|
|
|
7924
8077
|
() => rows.map((d) => d.external_id).filter((id) => !!id),
|
|
7925
8078
|
[rows]
|
|
7926
8079
|
);
|
|
7927
|
-
const thumbsQuery =
|
|
8080
|
+
const thumbsQuery = chunkCG6USBJX_cjs.useThumbnails(docIds);
|
|
7928
8081
|
const thumbs = thumbsQuery.data ?? {};
|
|
7929
8082
|
const session = useArbiSessionStore();
|
|
7930
8083
|
const storeSelected = useArbiSessionState((s) => s.selectedDocumentIds);
|
|
@@ -7949,21 +8102,14 @@ function DocumentGallery({
|
|
|
7949
8102
|
},
|
|
7950
8103
|
[onOpenDocument, session]
|
|
7951
8104
|
);
|
|
7952
|
-
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
7953
|
-
const queryClient = reactQuery.useQueryClient();
|
|
7954
8105
|
const [renamingId, setRenamingId] = React__default.default.useState(null);
|
|
7955
|
-
const
|
|
7956
|
-
|
|
7957
|
-
|
|
7958
|
-
|
|
7959
|
-
|
|
7960
|
-
|
|
7961
|
-
|
|
7962
|
-
if (activeWorkspace) {
|
|
7963
|
-
void queryClient.invalidateQueries({ queryKey: chunk5RYBYTCF_cjs.arbiQueryKeys.documents(activeWorkspace) });
|
|
7964
|
-
}
|
|
7965
|
-
}
|
|
7966
|
-
});
|
|
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
|
+
);
|
|
7967
8113
|
if (isLoading) {
|
|
7968
8114
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
7969
8115
|
"div",
|
|
@@ -8012,7 +8158,7 @@ function DocumentGallery({
|
|
|
8012
8158
|
viewing: viewingDocId === id,
|
|
8013
8159
|
onOpen: () => openDocument(id),
|
|
8014
8160
|
renaming: renamingId === id,
|
|
8015
|
-
onCommitRename: (newTitle) => rename
|
|
8161
|
+
onCommitRename: (newTitle) => rename(doc, newTitle),
|
|
8016
8162
|
onCancelRename: () => setRenamingId(null),
|
|
8017
8163
|
actions: /* @__PURE__ */ jsxRuntime.jsx(
|
|
8018
8164
|
DocumentCardMenu,
|
|
@@ -8576,121 +8722,249 @@ function hasVideoTrack(blob) {
|
|
|
8576
8722
|
});
|
|
8577
8723
|
}
|
|
8578
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
|
+
});
|
|
8579
8741
|
Object.defineProperty(exports, "PROJECT_CREATION_DENIED_REASON", {
|
|
8580
8742
|
enumerable: true,
|
|
8581
|
-
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; }
|
|
8582
8752
|
});
|
|
8583
8753
|
Object.defineProperty(exports, "arbiMutationKeys", {
|
|
8584
8754
|
enumerable: true,
|
|
8585
|
-
get: function () { return
|
|
8755
|
+
get: function () { return chunkCG6USBJX_cjs.arbiMutationKeys; }
|
|
8586
8756
|
});
|
|
8587
8757
|
Object.defineProperty(exports, "arbiQueryKeys", {
|
|
8588
8758
|
enumerable: true,
|
|
8589
|
-
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; }
|
|
8590
8780
|
});
|
|
8591
8781
|
Object.defineProperty(exports, "isUsageMetered", {
|
|
8592
8782
|
enumerable: true,
|
|
8593
|
-
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; }
|
|
8594
8816
|
});
|
|
8595
8817
|
Object.defineProperty(exports, "useActivity", {
|
|
8596
8818
|
enumerable: true,
|
|
8597
|
-
get: function () { return
|
|
8819
|
+
get: function () { return chunkCG6USBJX_cjs.useActivity; }
|
|
8598
8820
|
});
|
|
8599
8821
|
Object.defineProperty(exports, "useAgents", {
|
|
8600
8822
|
enumerable: true,
|
|
8601
|
-
get: function () { return
|
|
8823
|
+
get: function () { return chunkCG6USBJX_cjs.useAgents; }
|
|
8602
8824
|
});
|
|
8603
8825
|
Object.defineProperty(exports, "useAssistantQuery", {
|
|
8604
8826
|
enumerable: true,
|
|
8605
|
-
get: function () { return
|
|
8827
|
+
get: function () { return chunkCG6USBJX_cjs.useAssistantQuery; }
|
|
8606
8828
|
});
|
|
8607
8829
|
Object.defineProperty(exports, "useAvailableModels", {
|
|
8608
8830
|
enumerable: true,
|
|
8609
|
-
get: function () { return
|
|
8831
|
+
get: function () { return chunkCG6USBJX_cjs.useAvailableModels; }
|
|
8610
8832
|
});
|
|
8611
8833
|
Object.defineProperty(exports, "useCanCreateProjects", {
|
|
8612
8834
|
enumerable: true,
|
|
8613
|
-
get: function () { return
|
|
8835
|
+
get: function () { return chunkCG6USBJX_cjs.useCanCreateProjects; }
|
|
8614
8836
|
});
|
|
8615
8837
|
Object.defineProperty(exports, "useConfigs", {
|
|
8616
8838
|
enumerable: true,
|
|
8617
|
-
get: function () { return
|
|
8839
|
+
get: function () { return chunkCG6USBJX_cjs.useConfigs; }
|
|
8618
8840
|
});
|
|
8619
8841
|
Object.defineProperty(exports, "useConversationThreads", {
|
|
8620
8842
|
enumerable: true,
|
|
8621
|
-
get: function () { return
|
|
8843
|
+
get: function () { return chunkCG6USBJX_cjs.useConversationThreads; }
|
|
8622
8844
|
});
|
|
8623
8845
|
Object.defineProperty(exports, "useConversations", {
|
|
8624
8846
|
enumerable: true,
|
|
8625
|
-
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; }
|
|
8626
8852
|
});
|
|
8627
8853
|
Object.defineProperty(exports, "useCurrentUser", {
|
|
8628
8854
|
enumerable: true,
|
|
8629
|
-
get: function () { return
|
|
8855
|
+
get: function () { return chunkCG6USBJX_cjs.useCurrentUser; }
|
|
8630
8856
|
});
|
|
8631
8857
|
Object.defineProperty(exports, "useDeleteAgents", {
|
|
8632
8858
|
enumerable: true,
|
|
8633
|
-
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; }
|
|
8634
8872
|
});
|
|
8635
8873
|
Object.defineProperty(exports, "useDocuments", {
|
|
8636
8874
|
enumerable: true,
|
|
8637
|
-
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; }
|
|
8638
8888
|
});
|
|
8639
8889
|
Object.defineProperty(exports, "useFirmPool", {
|
|
8640
8890
|
enumerable: true,
|
|
8641
|
-
get: function () { return
|
|
8891
|
+
get: function () { return chunkCG6USBJX_cjs.useFirmPool; }
|
|
8642
8892
|
});
|
|
8643
8893
|
Object.defineProperty(exports, "useHealth", {
|
|
8644
8894
|
enumerable: true,
|
|
8645
|
-
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; }
|
|
8646
8900
|
});
|
|
8647
8901
|
Object.defineProperty(exports, "useParsedDocument", {
|
|
8648
8902
|
enumerable: true,
|
|
8649
|
-
get: function () { return
|
|
8903
|
+
get: function () { return chunkCG6USBJX_cjs.useParsedDocument; }
|
|
8650
8904
|
});
|
|
8651
8905
|
Object.defineProperty(exports, "useProjectInvoices", {
|
|
8652
8906
|
enumerable: true,
|
|
8653
|
-
get: function () { return
|
|
8907
|
+
get: function () { return chunkCG6USBJX_cjs.useProjectInvoices; }
|
|
8654
8908
|
});
|
|
8655
8909
|
Object.defineProperty(exports, "useProjectUsage", {
|
|
8656
8910
|
enumerable: true,
|
|
8657
|
-
get: function () { return
|
|
8911
|
+
get: function () { return chunkCG6USBJX_cjs.useProjectUsage; }
|
|
8658
8912
|
});
|
|
8659
8913
|
Object.defineProperty(exports, "useProjects", {
|
|
8660
8914
|
enumerable: true,
|
|
8661
|
-
get: function () { return
|
|
8915
|
+
get: function () { return chunkCG6USBJX_cjs.useProjects; }
|
|
8662
8916
|
});
|
|
8663
8917
|
Object.defineProperty(exports, "useProjectsUsage", {
|
|
8664
8918
|
enumerable: true,
|
|
8665
|
-
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; }
|
|
8666
8932
|
});
|
|
8667
8933
|
Object.defineProperty(exports, "useTags", {
|
|
8668
8934
|
enumerable: true,
|
|
8669
|
-
get: function () { return
|
|
8935
|
+
get: function () { return chunkCG6USBJX_cjs.useTags; }
|
|
8670
8936
|
});
|
|
8671
8937
|
Object.defineProperty(exports, "useThumbnails", {
|
|
8672
8938
|
enumerable: true,
|
|
8673
|
-
get: function () { return
|
|
8939
|
+
get: function () { return chunkCG6USBJX_cjs.useThumbnails; }
|
|
8674
8940
|
});
|
|
8675
8941
|
Object.defineProperty(exports, "useTopUpFirmPool", {
|
|
8676
8942
|
enumerable: true,
|
|
8677
|
-
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; }
|
|
8678
8952
|
});
|
|
8679
8953
|
Object.defineProperty(exports, "useUserUsageToday", {
|
|
8680
8954
|
enumerable: true,
|
|
8681
|
-
get: function () { return
|
|
8955
|
+
get: function () { return chunkCG6USBJX_cjs.useUserUsageToday; }
|
|
8682
8956
|
});
|
|
8683
8957
|
Object.defineProperty(exports, "useWorkspaceActivity", {
|
|
8684
8958
|
enumerable: true,
|
|
8685
|
-
get: function () { return
|
|
8959
|
+
get: function () { return chunkCG6USBJX_cjs.useWorkspaceActivity; }
|
|
8686
8960
|
});
|
|
8687
8961
|
Object.defineProperty(exports, "useWorkspaceUsers", {
|
|
8688
8962
|
enumerable: true,
|
|
8689
|
-
get: function () { return
|
|
8963
|
+
get: function () { return chunkCG6USBJX_cjs.useWorkspaceUsers; }
|
|
8690
8964
|
});
|
|
8691
8965
|
Object.defineProperty(exports, "useWorkspaces", {
|
|
8692
8966
|
enumerable: true,
|
|
8693
|
-
get: function () { return
|
|
8967
|
+
get: function () { return chunkCG6USBJX_cjs.useWorkspaces; }
|
|
8694
8968
|
});
|
|
8695
8969
|
Object.defineProperty(exports, "cleanDraftMarkdown", {
|
|
8696
8970
|
enumerable: true,
|
|
@@ -9609,6 +9883,7 @@ exports.DocumentCardMenu = DocumentCardMenu;
|
|
|
9609
9883
|
exports.DocumentGallery = DocumentGallery;
|
|
9610
9884
|
exports.DocumentReview = DocumentReview;
|
|
9611
9885
|
exports.DocumentTable = DocumentTable;
|
|
9886
|
+
exports.DocumentsSupportProvider = DocumentsSupportProvider;
|
|
9612
9887
|
exports.DraftTitleControls = DraftTitleControls;
|
|
9613
9888
|
exports.EMPTY_SESSION_STATE = EMPTY_SESSION_STATE;
|
|
9614
9889
|
exports.FileIcon = FileIcon;
|
|
@@ -9641,6 +9916,7 @@ exports.accountPath = accountPath;
|
|
|
9641
9916
|
exports.aliasTakenMessage = aliasTakenMessage;
|
|
9642
9917
|
exports.annotateThread = annotateThread;
|
|
9643
9918
|
exports.announceMailDraftReplaced = announceMailDraftReplaced;
|
|
9919
|
+
exports.applyOptimisticDocumentEdit = applyOptimisticDocumentEdit;
|
|
9644
9920
|
exports.arbiAccountClient = arbiAccountClient;
|
|
9645
9921
|
exports.arbiMailClient = arbiMailClient;
|
|
9646
9922
|
exports.calendarQueryKeys = calendarQueryKeys;
|
|
@@ -9671,13 +9947,13 @@ exports.identityStepFor = identityStepFor;
|
|
|
9671
9947
|
exports.inputRequestTitle = inputRequestTitle;
|
|
9672
9948
|
exports.invalidateCalendarEvents = invalidateCalendarEvents;
|
|
9673
9949
|
exports.invalidateCalendars = invalidateCalendars;
|
|
9674
|
-
exports.invalidateTagData = invalidateTagData;
|
|
9675
|
-
exports.invalidateTagTables = invalidateTagTables;
|
|
9676
9950
|
exports.isAliasTakenError = isAliasTakenError;
|
|
9677
9951
|
exports.isDeploymentAdmin = isDeploymentAdmin;
|
|
9678
9952
|
exports.isDeploymentUserNotification = isDeploymentUserNotification;
|
|
9953
|
+
exports.isOfflineReadableArbiQuery = isOfflineReadableArbiQuery;
|
|
9679
9954
|
exports.isQueuedCalendarWrite = isQueuedCalendarWrite;
|
|
9680
9955
|
exports.isReplayableArbiMutation = isReplayableArbiMutation;
|
|
9956
|
+
exports.isRestorableArbiQueryOnline = isRestorableArbiQueryOnline;
|
|
9681
9957
|
exports.isSignatureNotificationType = isSignatureNotificationType;
|
|
9682
9958
|
exports.isWorkspaceNotificationType = isWorkspaceNotificationType;
|
|
9683
9959
|
exports.mailDraftIdFromContent = mailDraftIdFromContent;
|
|
@@ -9689,12 +9965,12 @@ exports.nextViewingDocument = nextViewingDocument;
|
|
|
9689
9965
|
exports.notificationUserName = notificationUserName;
|
|
9690
9966
|
exports.parseActivityContent = parseActivityContent;
|
|
9691
9967
|
exports.parseDeleteAccountBlockers = parseDeleteAccountBlockers;
|
|
9692
|
-
exports.patchWorkspaceTags = patchWorkspaceTags;
|
|
9693
9968
|
exports.pickRecentWorkspaces = pickRecentWorkspaces;
|
|
9694
9969
|
exports.redlineStats = redlineStats;
|
|
9695
9970
|
exports.registerArbiMutationDefaults = registerArbiMutationDefaults;
|
|
9696
9971
|
exports.resetCalendarAccountSyncState = resetCalendarAccountSyncState;
|
|
9697
9972
|
exports.resolveActiveWorkspace = resolveActiveWorkspace;
|
|
9973
|
+
exports.rollbackOptimisticDocumentEdit = rollbackOptimisticDocumentEdit;
|
|
9698
9974
|
exports.safePortalUrl = safePortalUrl;
|
|
9699
9975
|
exports.selectIsGenerating = selectIsGenerating;
|
|
9700
9976
|
exports.selectViewingDocumentId = selectViewingDocumentId;
|
|
@@ -9731,6 +10007,7 @@ exports.useArbiWsStatus = useArbiWsStatus;
|
|
|
9731
10007
|
exports.useArbiWsStore = useArbiWsStore;
|
|
9732
10008
|
exports.useArbiWsTask = useArbiWsTask;
|
|
9733
10009
|
exports.useArbiWsTasks = useArbiWsTasks;
|
|
10010
|
+
exports.useAssignDocTags = useAssignDocTags;
|
|
9734
10011
|
exports.useAuthorizeLimits = useAuthorizeLimits;
|
|
9735
10012
|
exports.useAvatarCrop = useAvatarCrop;
|
|
9736
10013
|
exports.useBookingPages = useBookingPages;
|
|
@@ -9767,7 +10044,6 @@ exports.useCreateFact = useCreateFact;
|
|
|
9767
10044
|
exports.useCreateFacts = useCreateFacts;
|
|
9768
10045
|
exports.useCreateFeed = useCreateFeed;
|
|
9769
10046
|
exports.useCreateRoom = useCreateRoom;
|
|
9770
|
-
exports.useCreateTag = useCreateTag;
|
|
9771
10047
|
exports.useCreateWork = useCreateWork;
|
|
9772
10048
|
exports.useCreateWorkflow = useCreateWorkflow;
|
|
9773
10049
|
exports.useCurrentSessionId = useCurrentSessionId;
|
|
@@ -9777,31 +10053,32 @@ exports.useDeleteAccountFlow = useDeleteAccountFlow;
|
|
|
9777
10053
|
exports.useDeleteBookingPage = useDeleteBookingPage;
|
|
9778
10054
|
exports.useDeleteCalendar = useDeleteCalendar;
|
|
9779
10055
|
exports.useDeleteContact = useDeleteContact;
|
|
10056
|
+
exports.useDeleteDocuments = useDeleteDocuments;
|
|
9780
10057
|
exports.useDeleteEvent = useDeleteEvent;
|
|
9781
10058
|
exports.useDeleteFact = useDeleteFact;
|
|
9782
10059
|
exports.useDeleteNotifications = useDeleteNotifications;
|
|
9783
10060
|
exports.useDeleteSkill = useDeleteSkill;
|
|
9784
|
-
exports.useDeleteTag = useDeleteTag;
|
|
9785
10061
|
exports.useDeleteWorkflow = useDeleteWorkflow;
|
|
9786
10062
|
exports.useDirectMessages = useDirectMessages;
|
|
9787
10063
|
exports.useDisconnectCalendarAccount = useDisconnectCalendarAccount;
|
|
9788
10064
|
exports.useDisconnectMailAccount = useDisconnectMailAccount;
|
|
10065
|
+
exports.useDocumentsSupport = useDocumentsSupport;
|
|
9789
10066
|
exports.useEmailChange = useEmailChange;
|
|
9790
|
-
exports.useExtractEntities = useExtractEntities;
|
|
9791
10067
|
exports.useFacts = useFacts;
|
|
9792
10068
|
exports.useFetchCalendarEvent = useFetchCalendarEvent;
|
|
9793
10069
|
exports.useFilteredProjects = useFilteredProjects;
|
|
10070
|
+
exports.useFinaliseTranslation = useFinaliseTranslation;
|
|
9794
10071
|
exports.useFindTime = useFindTime;
|
|
9795
10072
|
exports.useFollowThread = useFollowThread;
|
|
9796
10073
|
exports.useFreeBusy = useFreeBusy;
|
|
9797
10074
|
exports.useGenerateAgentAvatar = useGenerateAgentAvatar;
|
|
10075
|
+
exports.useGenerateDocTags = useGenerateDocTags;
|
|
9798
10076
|
exports.useGrantAgentAccess = useGrantAgentAccess;
|
|
9799
10077
|
exports.useHolidayCountries = useHolidayCountries;
|
|
9800
10078
|
exports.useHouseTemplateCandidates = useHouseTemplateCandidates;
|
|
9801
10079
|
exports.useIdentityVerification = useIdentityVerification;
|
|
9802
10080
|
exports.useIdentityVerificationFlow = useIdentityVerificationFlow;
|
|
9803
10081
|
exports.useImportCalendar = useImportCalendar;
|
|
9804
|
-
exports.useInvalidateTagData = useInvalidateTagData;
|
|
9805
10082
|
exports.useInviteContacts = useInviteContacts;
|
|
9806
10083
|
exports.useMailAccounts = useMailAccounts;
|
|
9807
10084
|
exports.useMailAttachmentText = useMailAttachmentText;
|
|
@@ -9832,6 +10109,7 @@ exports.useProjectConversationUsage = useProjectConversationUsage;
|
|
|
9832
10109
|
exports.useProjectEvents = useProjectEvents;
|
|
9833
10110
|
exports.usePublishCalendar = usePublishCalendar;
|
|
9834
10111
|
exports.useRefreshCalendar = useRefreshCalendar;
|
|
10112
|
+
exports.useRemoveDocTags = useRemoveDocTags;
|
|
9835
10113
|
exports.useRequestEmailChange = useRequestEmailChange;
|
|
9836
10114
|
exports.useRespondToEvent = useRespondToEvent;
|
|
9837
10115
|
exports.useResumeCalendarAccountConnect = useResumeCalendarAccountConnect;
|
|
@@ -9851,7 +10129,6 @@ exports.useSendBackStep = useSendBackStep;
|
|
|
9851
10129
|
exports.useSendMail = useSendMail;
|
|
9852
10130
|
exports.useSessions = useSessions;
|
|
9853
10131
|
exports.useSetSkillVisibility = useSetSkillVisibility;
|
|
9854
|
-
exports.useSetTagValues = useSetTagValues;
|
|
9855
10132
|
exports.useSetWorkspaceHouseTemplate = useSetWorkspaceHouseTemplate;
|
|
9856
10133
|
exports.useShareCalendar = useShareCalendar;
|
|
9857
10134
|
exports.useShellWorkspaces = useShellWorkspaces;
|
|
@@ -9864,23 +10141,24 @@ exports.useStartWorkQuery = useStartWorkQuery;
|
|
|
9864
10141
|
exports.useSubscribeCalendar = useSubscribeCalendar;
|
|
9865
10142
|
exports.useSyncAccountsOnOpen = useSyncAccountsOnOpen;
|
|
9866
10143
|
exports.useSyncCalendarAccount = useSyncCalendarAccount;
|
|
9867
|
-
exports.useTagKindSchema = useTagKindSchema;
|
|
9868
10144
|
exports.useTerminateSession = useTerminateSession;
|
|
9869
10145
|
exports.useUnshareCalendar = useUnshareCalendar;
|
|
9870
10146
|
exports.useUpdateCalendar = useUpdateCalendar;
|
|
9871
10147
|
exports.useUpdateCalendarAccount = useUpdateCalendarAccount;
|
|
9872
10148
|
exports.useUpdateContact = useUpdateContact;
|
|
9873
10149
|
exports.useUpdateConversation = useUpdateConversation;
|
|
10150
|
+
exports.useUpdateDocTag = useUpdateDocTag;
|
|
10151
|
+
exports.useUpdateDocuments = useUpdateDocuments;
|
|
9874
10152
|
exports.useUpdateEvent = useUpdateEvent;
|
|
9875
10153
|
exports.useUpdateFact = useUpdateFact;
|
|
9876
10154
|
exports.useUpdateMailMessage = useUpdateMailMessage;
|
|
9877
10155
|
exports.useUpdateProfile = useUpdateProfile;
|
|
9878
10156
|
exports.useUpdateProjectFields = useUpdateProjectFields;
|
|
9879
|
-
exports.useUpdateTag = useUpdateTag;
|
|
9880
|
-
exports.useUpdateTagKindSchema = useUpdateTagKindSchema;
|
|
9881
10157
|
exports.useUpdateUserSettings = useUpdateUserSettings;
|
|
9882
10158
|
exports.useUpdateWorkflow = useUpdateWorkflow;
|
|
10159
|
+
exports.useUploadDocuments = useUploadDocuments;
|
|
9883
10160
|
exports.useUploadSkillFiles = useUploadSkillFiles;
|
|
10161
|
+
exports.useUploadUrls = useUploadUrls;
|
|
9884
10162
|
exports.useUserSettings = useUserSettings;
|
|
9885
10163
|
exports.useVideoRecorder = useVideoRecorder;
|
|
9886
10164
|
exports.useWorkNotifications = useWorkNotifications;
|