@arbidocs/react 0.4.145 → 0.4.146
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 +7 -7
- package/dist/artifacts/index.js +1 -1
- package/dist/{chunk-MUYBFDYJ.js → chunk-7AFGROHZ.js} +5 -3
- package/dist/chunk-7AFGROHZ.js.map +1 -0
- package/dist/{chunk-CG6USBJX.cjs → chunk-YIFUMQGA.cjs} +5 -3
- package/dist/chunk-YIFUMQGA.cjs.map +1 -0
- package/dist/index.cjs +243 -205
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +88 -3
- package/dist/index.d.ts +88 -3
- package/dist/index.js +38 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-CG6USBJX.cjs.map +0 -1
- package/dist/chunk-MUYBFDYJ.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkYIFUMQGA_cjs = require('./chunk-YIFUMQGA.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: chunkYIFUMQGA_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: chunkYIFUMQGA_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: chunkYIFUMQGA_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: chunkYIFUMQGA_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: chunkYIFUMQGA_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: [...chunkYIFUMQGA_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: chunkYIFUMQGA_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: chunkYIFUMQGA_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: chunkYIFUMQGA_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: chunkYIFUMQGA_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: chunkYIFUMQGA_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: chunkYIFUMQGA_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: chunkYIFUMQGA_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: chunkYIFUMQGA_cjs.arbiQueryKeys.workflows() }),
|
|
169
|
+
qc.invalidateQueries({ queryKey: chunkYIFUMQGA_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: chunkYIFUMQGA_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: chunkYIFUMQGA_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: chunkYIFUMQGA_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: chunkYIFUMQGA_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: chunkYIFUMQGA_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: chunkYIFUMQGA_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: chunkYIFUMQGA_cjs.arbiQueryKeys.configs() }),
|
|
240
|
+
qc.invalidateQueries({ queryKey: chunkYIFUMQGA_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: chunkYIFUMQGA_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: chunkYIFUMQGA_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: chunkYIFUMQGA_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: chunkYIFUMQGA_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: [...chunkYIFUMQGA_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: chunkYIFUMQGA_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: chunkYIFUMQGA_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: chunkYIFUMQGA_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: chunkYIFUMQGA_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: chunkYIFUMQGA_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: chunkYIFUMQGA_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: chunkYIFUMQGA_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
|
+
chunkYIFUMQGA_cjs.arbiQueryKeys.agentSession(agentId),
|
|
408
|
+
chunkYIFUMQGA_cjs.arbiQueryKeys.agentWorkspaces(agentId),
|
|
409
|
+
chunkYIFUMQGA_cjs.arbiQueryKeys.agentChats(agentId),
|
|
410
|
+
chunkYIFUMQGA_cjs.arbiQueryKeys.sessions()
|
|
411
411
|
].map((queryKey) => qc.invalidateQueries({ queryKey }))
|
|
412
412
|
);
|
|
413
413
|
}
|
|
@@ -555,8 +555,8 @@ function useArbiChat(options = {}) {
|
|
|
555
555
|
const recoveryTimeoutMs = streamRecovery?.timeoutMs ?? 12e4;
|
|
556
556
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
557
557
|
const queryClient = reactQuery.useQueryClient();
|
|
558
|
-
const { data: docs = [], isLoading: isLoadingDocuments } =
|
|
559
|
-
const ordinaryHistory =
|
|
558
|
+
const { data: docs = [], isLoading: isLoadingDocuments } = chunkYIFUMQGA_cjs.useDocuments(workspaceId);
|
|
559
|
+
const ordinaryHistory = chunkYIFUMQGA_cjs.useConversations(workspaceId, { enabled: !agentId, live: true });
|
|
560
560
|
const agentHistory = useAgentChats(agentId);
|
|
561
561
|
const stored = React.useMemo(
|
|
562
562
|
() => agentId ? (agentHistory.data ?? []).filter((chat) => chat.workspace_ext_id === workspaceId).map((chat) => ({
|
|
@@ -571,7 +571,7 @@ function useArbiChat(options = {}) {
|
|
|
571
571
|
);
|
|
572
572
|
const isLoadingThreads = agentId ? agentHistory.isLoading : ordinaryHistory.isLoading;
|
|
573
573
|
const refetchConversations = agentId ? agentHistory.refetch : ordinaryHistory.refetch;
|
|
574
|
-
const query =
|
|
574
|
+
const query = chunkYIFUMQGA_cjs.useAssistantQuery();
|
|
575
575
|
const { mutateAsync } = query;
|
|
576
576
|
const [stagedFiles, setStagedFiles] = React.useState([]);
|
|
577
577
|
const [threads, setThreads] = React.useState(() => [emptyThread()]);
|
|
@@ -631,7 +631,7 @@ function useArbiChat(options = {}) {
|
|
|
631
631
|
(conversation) => conversation.external_id === active.conversationId && conversation.status === "generating"
|
|
632
632
|
) || active.messages.some((message) => message.status === "streaming");
|
|
633
633
|
const needsLoad = !!active.conversationId && !active.isLoaded;
|
|
634
|
-
const loaded =
|
|
634
|
+
const loaded = chunkYIFUMQGA_cjs.useConversationThreads(workspaceId, active.conversationId ?? void 0, {
|
|
635
635
|
enabled: needsLoad || liveHistory && !isRunning && !isPostingComment,
|
|
636
636
|
live: liveHistory
|
|
637
637
|
});
|
|
@@ -1106,7 +1106,7 @@ function useArbiChat(options = {}) {
|
|
|
1106
1106
|
} else
|
|
1107
1107
|
uploaded.push(...(await arbi.documents.uploadFile(file, file.name)).doc_ext_ids ?? []);
|
|
1108
1108
|
}
|
|
1109
|
-
if (uploaded.length) await
|
|
1109
|
+
if (uploaded.length) await chunkYIFUMQGA_cjs.refreshDocuments(queryClient, arbi, uploaded);
|
|
1110
1110
|
} catch (e) {
|
|
1111
1111
|
setUploadError(messageOf(e, "The upload failed."));
|
|
1112
1112
|
} finally {
|
|
@@ -1408,14 +1408,14 @@ function useArbiDocumentSync(workspaceId) {
|
|
|
1408
1408
|
if (!workspaceId) return;
|
|
1409
1409
|
if (client.isMessageType(msg, "batch_complete")) {
|
|
1410
1410
|
if (msg.workspace_ext_id !== workspaceId) return;
|
|
1411
|
-
if (msg.doc_ext_ids?.length) void
|
|
1412
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
1411
|
+
if (msg.doc_ext_ids?.length) void chunkYIFUMQGA_cjs.refreshDocuments(queryClient, arbi, msg.doc_ext_ids);
|
|
1412
|
+
void queryClient.invalidateQueries({ queryKey: chunkYIFUMQGA_cjs.arbiQueryKeys.tags(workspaceId) });
|
|
1413
1413
|
return;
|
|
1414
1414
|
}
|
|
1415
1415
|
if (client.isMessageType(msg, "task_update")) {
|
|
1416
1416
|
if (msg.workspace_ext_id !== workspaceId) return;
|
|
1417
|
-
if (
|
|
1418
|
-
void
|
|
1417
|
+
if (chunkYIFUMQGA_cjs.FINISHED_DOCUMENT_STATUSES.has(msg.status))
|
|
1418
|
+
void chunkYIFUMQGA_cjs.refreshDocuments(queryClient, arbi, [msg.doc_ext_id]);
|
|
1419
1419
|
}
|
|
1420
1420
|
});
|
|
1421
1421
|
}
|
|
@@ -1543,7 +1543,7 @@ function useShellWorkspaces(options) {
|
|
|
1543
1543
|
}
|
|
1544
1544
|
function useArbiShellWorkspaces(options = {}) {
|
|
1545
1545
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1546
|
-
const query =
|
|
1546
|
+
const query = chunkYIFUMQGA_cjs.useWorkspaces();
|
|
1547
1547
|
const { select, ...rest } = options;
|
|
1548
1548
|
const defaultSelect = React.useCallback(
|
|
1549
1549
|
(workspace) => arbi.selectWorkspace(workspace.id),
|
|
@@ -1557,12 +1557,47 @@ function useArbiShellWorkspaces(options = {}) {
|
|
|
1557
1557
|
select: select ?? defaultSelect
|
|
1558
1558
|
});
|
|
1559
1559
|
}
|
|
1560
|
+
function useInvalidateMembership() {
|
|
1561
|
+
const qc = reactQuery.useQueryClient();
|
|
1562
|
+
return () => Promise.all([
|
|
1563
|
+
qc.invalidateQueries({ queryKey: chunkYIFUMQGA_cjs.arbiQueryKeys.workspaces() }),
|
|
1564
|
+
qc.invalidateQueries({ queryKey: ["arbi", "workspaceUsers"] }),
|
|
1565
|
+
qc.invalidateQueries({ queryKey: chunkYIFUMQGA_cjs.arbiQueryKeys.projects() }),
|
|
1566
|
+
qc.invalidateQueries({ queryKey: chunkYIFUMQGA_cjs.arbiQueryKeys.contacts() })
|
|
1567
|
+
]);
|
|
1568
|
+
}
|
|
1569
|
+
function useUpdateWorkspace() {
|
|
1570
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1571
|
+
const qc = reactQuery.useQueryClient();
|
|
1572
|
+
return reactQuery.useMutation({
|
|
1573
|
+
mutationFn: (body) => arbi.workspaces.update(body),
|
|
1574
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkYIFUMQGA_cjs.arbiQueryKeys.workspaces() })
|
|
1575
|
+
});
|
|
1576
|
+
}
|
|
1577
|
+
function useAddWorkspaceMembers() {
|
|
1578
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1579
|
+
const invalidate = useInvalidateMembership();
|
|
1580
|
+
return reactQuery.useMutation({
|
|
1581
|
+
mutationKey: chunkYIFUMQGA_cjs.arbiMutationKeys.workspaceMembership(),
|
|
1582
|
+
mutationFn: ({ emails, role, confirmInvite }) => arbi.workspaces.addUsers(emails, role, { confirmInvite }),
|
|
1583
|
+
onSuccess: () => invalidate()
|
|
1584
|
+
});
|
|
1585
|
+
}
|
|
1586
|
+
function useRemoveWorkspaceMembers() {
|
|
1587
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1588
|
+
const invalidate = useInvalidateMembership();
|
|
1589
|
+
return reactQuery.useMutation({
|
|
1590
|
+
mutationKey: chunkYIFUMQGA_cjs.arbiMutationKeys.workspaceMembership(),
|
|
1591
|
+
mutationFn: (userIds) => arbi.workspaces.removeUsers(userIds),
|
|
1592
|
+
onSuccess: () => invalidate()
|
|
1593
|
+
});
|
|
1594
|
+
}
|
|
1560
1595
|
function useFacts(workspaceId, options) {
|
|
1561
1596
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1562
1597
|
const { enabled = true, ...filter } = options ?? {};
|
|
1563
1598
|
const workspace = workspaceId ?? (arbi.hasWorkspace ? arbi.getWorkspaceId() : "");
|
|
1564
1599
|
return reactQuery.useQuery({
|
|
1565
|
-
queryKey: [...
|
|
1600
|
+
queryKey: [...chunkYIFUMQGA_cjs.arbiQueryKeys.facts(workspace), filter],
|
|
1566
1601
|
queryFn: () => arbi.facts.list(filter),
|
|
1567
1602
|
enabled: enabled && !!workspace && arbi.hasWorkspace,
|
|
1568
1603
|
staleTime: 3e4
|
|
@@ -1570,7 +1605,7 @@ function useFacts(workspaceId, options) {
|
|
|
1570
1605
|
}
|
|
1571
1606
|
function useRefreshFacts() {
|
|
1572
1607
|
const qc = reactQuery.useQueryClient();
|
|
1573
|
-
return () => qc.invalidateQueries({ queryKey:
|
|
1608
|
+
return () => qc.invalidateQueries({ queryKey: chunkYIFUMQGA_cjs.arbiQueryKeys.allFacts() });
|
|
1574
1609
|
}
|
|
1575
1610
|
function useCreateFact() {
|
|
1576
1611
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
@@ -1625,7 +1660,7 @@ function useDocumentsSupport() {
|
|
|
1625
1660
|
function applyOptimisticDocumentEdit(qc, updates) {
|
|
1626
1661
|
const byId = new Map(updates.map((update) => [update.external_id, update]));
|
|
1627
1662
|
const previous = [];
|
|
1628
|
-
|
|
1663
|
+
chunkYIFUMQGA_cjs.patchDocuments(qc, (old) => {
|
|
1629
1664
|
let changed = false;
|
|
1630
1665
|
const next = old.map((doc) => {
|
|
1631
1666
|
const update = byId.get(doc.external_id);
|
|
@@ -1638,9 +1673,9 @@ function applyOptimisticDocumentEdit(qc, updates) {
|
|
|
1638
1673
|
});
|
|
1639
1674
|
const previousOwn = updates.map((update) => {
|
|
1640
1675
|
const own = qc.getQueryData(
|
|
1641
|
-
|
|
1676
|
+
chunkYIFUMQGA_cjs.arbiQueryKeys.document(update.external_id)
|
|
1642
1677
|
);
|
|
1643
|
-
if (own)
|
|
1678
|
+
if (own) chunkYIFUMQGA_cjs.setCachedDocument(qc, { ...own, ...update });
|
|
1644
1679
|
return [update.external_id, own];
|
|
1645
1680
|
});
|
|
1646
1681
|
return { optimistic: true, previous, previousOwn };
|
|
@@ -1650,38 +1685,38 @@ function rollbackOptimisticDocumentEdit(qc, context) {
|
|
|
1650
1685
|
if (!edit?.optimistic) return;
|
|
1651
1686
|
if (edit.previous.length) {
|
|
1652
1687
|
const restore = new Map(edit.previous.map((doc) => [doc.external_id, doc]));
|
|
1653
|
-
|
|
1688
|
+
chunkYIFUMQGA_cjs.patchDocuments(
|
|
1654
1689
|
qc,
|
|
1655
1690
|
(old) => old.some((doc) => restore.has(doc.external_id)) ? old.map((doc) => restore.get(doc.external_id) ?? doc) : old
|
|
1656
1691
|
);
|
|
1657
1692
|
}
|
|
1658
|
-
for (const [id, own] of edit.previousOwn) qc.setQueryData(
|
|
1693
|
+
for (const [id, own] of edit.previousOwn) qc.setQueryData(chunkYIFUMQGA_cjs.arbiQueryKeys.document(id), own);
|
|
1659
1694
|
}
|
|
1660
1695
|
function settleUpdatedDocuments(qc, updated) {
|
|
1661
1696
|
if (!updated.length) return;
|
|
1662
1697
|
const byId = new Map(updated.map((doc) => [doc.external_id, doc]));
|
|
1663
|
-
|
|
1698
|
+
chunkYIFUMQGA_cjs.patchDocuments(
|
|
1664
1699
|
qc,
|
|
1665
1700
|
(old) => old.some((doc) => byId.has(doc.external_id)) ? old.map((doc) => byId.get(doc.external_id) ?? doc) : old
|
|
1666
1701
|
);
|
|
1667
|
-
for (const doc of updated)
|
|
1702
|
+
for (const doc of updated) chunkYIFUMQGA_cjs.setCachedDocument(qc, doc);
|
|
1668
1703
|
}
|
|
1669
1704
|
function patchEachDocument(qc, docIds, reducer) {
|
|
1670
1705
|
const ids = new Set(docIds);
|
|
1671
|
-
|
|
1706
|
+
chunkYIFUMQGA_cjs.patchDocuments(
|
|
1672
1707
|
qc,
|
|
1673
1708
|
(old) => old.some((doc) => ids.has(doc.external_id)) ? old.map((doc) => ids.has(doc.external_id) ? reducer(doc) : doc) : old
|
|
1674
1709
|
);
|
|
1675
|
-
for (const id of ids)
|
|
1710
|
+
for (const id of ids) chunkYIFUMQGA_cjs.patchCachedDocument(qc, id, reducer);
|
|
1676
1711
|
}
|
|
1677
1712
|
function workspaceOf(qc, docId) {
|
|
1678
1713
|
for (const [, docs] of qc.getQueriesData({
|
|
1679
|
-
queryKey:
|
|
1714
|
+
queryKey: chunkYIFUMQGA_cjs.arbiQueryKeys.allDocuments()
|
|
1680
1715
|
})) {
|
|
1681
1716
|
const doc = Array.isArray(docs) ? docs.find((d) => d.external_id === docId) : void 0;
|
|
1682
1717
|
if (doc) return doc.workspace_ext_id;
|
|
1683
1718
|
}
|
|
1684
|
-
return qc.getQueryData(
|
|
1719
|
+
return qc.getQueryData(chunkYIFUMQGA_cjs.arbiQueryKeys.document(docId))?.workspace_ext_id;
|
|
1685
1720
|
}
|
|
1686
1721
|
function settleAssignedDocTags(qc, created) {
|
|
1687
1722
|
const byDoc = /* @__PURE__ */ new Map();
|
|
@@ -1699,13 +1734,13 @@ function settleAssignedDocTags(qc, created) {
|
|
|
1699
1734
|
...doc,
|
|
1700
1735
|
doctags: [...doc.doctags ?? [], ...byDoc.get(doc.external_id) ?? []]
|
|
1701
1736
|
}));
|
|
1702
|
-
for (const [workspaceId, delta] of workspaces)
|
|
1737
|
+
for (const [workspaceId, delta] of workspaces) chunkYIFUMQGA_cjs.adjustTagCounts(qc, workspaceId, delta);
|
|
1703
1738
|
}
|
|
1704
1739
|
function settleRemovedDocTags(qc, { tagId, docIds }) {
|
|
1705
1740
|
const ids = new Set(docIds);
|
|
1706
1741
|
const removedByWorkspace = /* @__PURE__ */ new Map();
|
|
1707
1742
|
for (const [, docs] of qc.getQueriesData({
|
|
1708
|
-
queryKey:
|
|
1743
|
+
queryKey: chunkYIFUMQGA_cjs.arbiQueryKeys.allDocuments()
|
|
1709
1744
|
})) {
|
|
1710
1745
|
for (const doc of Array.isArray(docs) ? docs : []) {
|
|
1711
1746
|
if (!ids.has(doc.external_id)) continue;
|
|
@@ -1721,7 +1756,7 @@ function settleRemovedDocTags(qc, { tagId, docIds }) {
|
|
|
1721
1756
|
doctags: (doc.doctags ?? []).filter((dt) => dt.tag_ext_id !== tagId)
|
|
1722
1757
|
}));
|
|
1723
1758
|
for (const [workspaceId, removed] of removedByWorkspace)
|
|
1724
|
-
|
|
1759
|
+
chunkYIFUMQGA_cjs.adjustTagCounts(qc, workspaceId, /* @__PURE__ */ new Map([[tagId, -removed]]));
|
|
1725
1760
|
}
|
|
1726
1761
|
function settleUpdatedDocTag(qc, updated) {
|
|
1727
1762
|
patchEachDocument(qc, [updated.doc_ext_id], (doc) => ({
|
|
@@ -1731,22 +1766,22 @@ function settleUpdatedDocTag(qc, updated) {
|
|
|
1731
1766
|
}
|
|
1732
1767
|
var replayableDocumentMutations = [
|
|
1733
1768
|
{
|
|
1734
|
-
mutationKey:
|
|
1769
|
+
mutationKey: chunkYIFUMQGA_cjs.arbiMutationKeys.updateDocuments(),
|
|
1735
1770
|
run: (client, input) => browser.documents.updateDocuments(client, input.documents),
|
|
1736
1771
|
settle: (qc, updated) => settleUpdatedDocuments(qc, updated)
|
|
1737
1772
|
},
|
|
1738
1773
|
{
|
|
1739
|
-
mutationKey:
|
|
1774
|
+
mutationKey: chunkYIFUMQGA_cjs.arbiMutationKeys.assignDocTags(),
|
|
1740
1775
|
run: (client, input) => browser.doctags.assignDocTags(client, input.tagId, input.docIds, input.note, input.citations),
|
|
1741
1776
|
settle: (qc, created) => settleAssignedDocTags(qc, created)
|
|
1742
1777
|
},
|
|
1743
1778
|
{
|
|
1744
|
-
mutationKey:
|
|
1779
|
+
mutationKey: chunkYIFUMQGA_cjs.arbiMutationKeys.removeDocTags(),
|
|
1745
1780
|
run: (client, input) => browser.doctags.removeDocTags(client, input.tagId, input.docIds),
|
|
1746
1781
|
settle: (qc, _data, input) => settleRemovedDocTags(qc, input)
|
|
1747
1782
|
},
|
|
1748
1783
|
{
|
|
1749
|
-
mutationKey:
|
|
1784
|
+
mutationKey: chunkYIFUMQGA_cjs.arbiMutationKeys.updateDocTag(),
|
|
1750
1785
|
run: (client, input) => browser.doctags.updateDocTag(client, input.tagId, input.docId, {
|
|
1751
1786
|
note: input.note,
|
|
1752
1787
|
citations: input.citations
|
|
@@ -1769,7 +1804,7 @@ function useUpdateDocuments() {
|
|
|
1769
1804
|
const qc = reactQuery.useQueryClient();
|
|
1770
1805
|
return resolvingOffline(
|
|
1771
1806
|
reactQuery.useMutation({
|
|
1772
|
-
mutationKey:
|
|
1807
|
+
mutationKey: chunkYIFUMQGA_cjs.arbiMutationKeys.updateDocuments(),
|
|
1773
1808
|
mutationFn: ({ documents }) => arbi.documents.update(documents),
|
|
1774
1809
|
onMutate: ({ documents }) => reactQuery.onlineManager.isOnline() || !documents.length ? void 0 : applyOptimisticDocumentEdit(qc, documents),
|
|
1775
1810
|
onError: (_error, _input, context) => rollbackOptimisticDocumentEdit(qc, context),
|
|
@@ -1782,30 +1817,30 @@ function useDeleteDocuments() {
|
|
|
1782
1817
|
const qc = reactQuery.useQueryClient();
|
|
1783
1818
|
const { onDocumentsDeleted } = useDocumentsSupport();
|
|
1784
1819
|
return reactQuery.useMutation({
|
|
1785
|
-
mutationKey:
|
|
1820
|
+
mutationKey: chunkYIFUMQGA_cjs.arbiMutationKeys.deleteDocuments(),
|
|
1786
1821
|
mutationFn: (docIds) => arbi.documents.delete(docIds),
|
|
1787
1822
|
onSuccess: (_data, docIds) => {
|
|
1788
1823
|
const gone = new Set(docIds);
|
|
1789
|
-
|
|
1824
|
+
chunkYIFUMQGA_cjs.patchDocuments(
|
|
1790
1825
|
qc,
|
|
1791
1826
|
(old) => old.some((doc) => gone.has(doc.external_id)) ? old.filter((doc) => !gone.has(doc.external_id)) : old
|
|
1792
1827
|
);
|
|
1793
|
-
|
|
1828
|
+
chunkYIFUMQGA_cjs.forgetDocuments(qc, docIds);
|
|
1794
1829
|
onDocumentsDeleted?.(docIds);
|
|
1795
|
-
return qc.invalidateQueries({ queryKey:
|
|
1830
|
+
return qc.invalidateQueries({ queryKey: chunkYIFUMQGA_cjs.arbiQueryKeys.workspaces() });
|
|
1796
1831
|
}
|
|
1797
1832
|
});
|
|
1798
1833
|
}
|
|
1799
1834
|
async function settleUpload(qc, arbi, docIds, processingStatus) {
|
|
1800
|
-
if (docIds?.length) await
|
|
1801
|
-
await qc.invalidateQueries({ queryKey:
|
|
1835
|
+
if (docIds?.length) await chunkYIFUMQGA_cjs.refreshDocuments(qc, arbi, docIds, { processingStatus });
|
|
1836
|
+
await qc.invalidateQueries({ queryKey: chunkYIFUMQGA_cjs.arbiQueryKeys.workspaces() });
|
|
1802
1837
|
}
|
|
1803
1838
|
function useUploadDocuments() {
|
|
1804
1839
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1805
1840
|
const qc = reactQuery.useQueryClient();
|
|
1806
1841
|
const { processingStatus } = useDocumentsSupport();
|
|
1807
1842
|
return reactQuery.useMutation({
|
|
1808
|
-
mutationKey:
|
|
1843
|
+
mutationKey: chunkYIFUMQGA_cjs.arbiMutationKeys.uploadDocuments(),
|
|
1809
1844
|
mutationFn: ({ files, options }) => arbi.documents.upload(files, options),
|
|
1810
1845
|
onSuccess: (result) => settleUpload(qc, arbi, result.doc_ext_ids, processingStatus)
|
|
1811
1846
|
});
|
|
@@ -1815,7 +1850,7 @@ function useUploadUrls() {
|
|
|
1815
1850
|
const qc = reactQuery.useQueryClient();
|
|
1816
1851
|
const { processingStatus } = useDocumentsSupport();
|
|
1817
1852
|
return reactQuery.useMutation({
|
|
1818
|
-
mutationKey:
|
|
1853
|
+
mutationKey: chunkYIFUMQGA_cjs.arbiMutationKeys.uploadUrls(),
|
|
1819
1854
|
mutationFn: ({ urls, shared, configExtId }) => arbi.documents.uploadUrl(urls, { shared, configExtId }),
|
|
1820
1855
|
onSuccess: (result) => settleUpload(qc, arbi, result.doc_ext_ids, processingStatus)
|
|
1821
1856
|
});
|
|
@@ -1825,7 +1860,7 @@ function useAssignDocTags() {
|
|
|
1825
1860
|
const qc = reactQuery.useQueryClient();
|
|
1826
1861
|
return resolvingOffline(
|
|
1827
1862
|
reactQuery.useMutation({
|
|
1828
|
-
mutationKey:
|
|
1863
|
+
mutationKey: chunkYIFUMQGA_cjs.arbiMutationKeys.assignDocTags(),
|
|
1829
1864
|
mutationFn: ({ tagId, docIds, note, citations }) => arbi.doctags.assign(tagId, docIds, note, citations),
|
|
1830
1865
|
onSuccess: (created) => settleAssignedDocTags(qc, created)
|
|
1831
1866
|
})
|
|
@@ -1836,7 +1871,7 @@ function useRemoveDocTags() {
|
|
|
1836
1871
|
const qc = reactQuery.useQueryClient();
|
|
1837
1872
|
return resolvingOffline(
|
|
1838
1873
|
reactQuery.useMutation({
|
|
1839
|
-
mutationKey:
|
|
1874
|
+
mutationKey: chunkYIFUMQGA_cjs.arbiMutationKeys.removeDocTags(),
|
|
1840
1875
|
mutationFn: ({ tagId, docIds }) => arbi.doctags.remove(tagId, docIds),
|
|
1841
1876
|
onSuccess: (_data, input) => settleRemovedDocTags(qc, input)
|
|
1842
1877
|
})
|
|
@@ -1847,7 +1882,7 @@ function useUpdateDocTag() {
|
|
|
1847
1882
|
const qc = reactQuery.useQueryClient();
|
|
1848
1883
|
return resolvingOffline(
|
|
1849
1884
|
reactQuery.useMutation({
|
|
1850
|
-
mutationKey:
|
|
1885
|
+
mutationKey: chunkYIFUMQGA_cjs.arbiMutationKeys.updateDocTag(),
|
|
1851
1886
|
mutationFn: ({ tagId, docId, note, citations }) => arbi.doctags.update(tagId, docId, { note, citations }),
|
|
1852
1887
|
onSuccess: (updated) => settleUpdatedDocTag(qc, updated)
|
|
1853
1888
|
})
|
|
@@ -1858,13 +1893,13 @@ function useGenerateDocTags() {
|
|
|
1858
1893
|
const qc = reactQuery.useQueryClient();
|
|
1859
1894
|
const { onProcessingQueued } = useDocumentsSupport();
|
|
1860
1895
|
return reactQuery.useMutation({
|
|
1861
|
-
mutationKey:
|
|
1896
|
+
mutationKey: chunkYIFUMQGA_cjs.arbiMutationKeys.generateDocTags(),
|
|
1862
1897
|
mutationFn: ({ tagIds, docIds, overwrite }) => arbi.doctags.generate(tagIds, docIds, { overwrite }),
|
|
1863
1898
|
onMutate: ({ docIds }) => {
|
|
1864
1899
|
if (!onProcessingQueued || !docIds.length) return void 0;
|
|
1865
1900
|
const workspaceId = arbi.hasWorkspace ? arbi.getWorkspaceId() : "";
|
|
1866
1901
|
const listed = new Map(
|
|
1867
|
-
(
|
|
1902
|
+
(chunkYIFUMQGA_cjs.getCachedDocuments(qc, workspaceId) ?? []).map((doc) => [doc.external_id, doc])
|
|
1868
1903
|
);
|
|
1869
1904
|
return {
|
|
1870
1905
|
undo: onProcessingQueued(
|
|
@@ -1886,13 +1921,13 @@ function useFinaliseTranslation() {
|
|
|
1886
1921
|
const { processingStatus } = useDocumentsSupport();
|
|
1887
1922
|
return reactQuery.useMutation({
|
|
1888
1923
|
mutationFn: (docId) => arbi.documents.finaliseTranslation(docId),
|
|
1889
|
-
onSuccess: (result) => void
|
|
1924
|
+
onSuccess: (result) => void chunkYIFUMQGA_cjs.refreshDocuments(qc, arbi, [result.document_ext_id], { processingStatus })
|
|
1890
1925
|
});
|
|
1891
1926
|
}
|
|
1892
1927
|
|
|
1893
1928
|
// src/offline.ts
|
|
1894
1929
|
var REPLAYABLE = [
|
|
1895
|
-
...
|
|
1930
|
+
...chunkYIFUMQGA_cjs.replayableTagMutations,
|
|
1896
1931
|
...replayableDocumentMutations
|
|
1897
1932
|
];
|
|
1898
1933
|
function isReplayableArbiMutation(mutationKey) {
|
|
@@ -1922,13 +1957,13 @@ function isRestorableArbiQueryOnline(queryKey, data) {
|
|
|
1922
1957
|
const docs = Array.isArray(data) ? data : [data];
|
|
1923
1958
|
return !docs.some((doc) => {
|
|
1924
1959
|
const status = doc?.status;
|
|
1925
|
-
return !!status && !
|
|
1960
|
+
return !!status && !chunkYIFUMQGA_cjs.FINISHED_DOCUMENT_STATUSES.has(status);
|
|
1926
1961
|
});
|
|
1927
1962
|
}
|
|
1928
1963
|
function useFilteredProjects(filters, options) {
|
|
1929
1964
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1930
1965
|
return reactQuery.useQuery({
|
|
1931
|
-
queryKey:
|
|
1966
|
+
queryKey: chunkYIFUMQGA_cjs.arbiQueryKeys.projectsFiltered(filters.stage, filters.leadUser),
|
|
1932
1967
|
queryFn: () => arbi.projects.list(filters),
|
|
1933
1968
|
enabled: options?.enabled ?? arbi.isLoggedIn
|
|
1934
1969
|
});
|
|
@@ -1941,14 +1976,14 @@ function useUpdateProjectFields() {
|
|
|
1941
1976
|
projectExtId,
|
|
1942
1977
|
patch
|
|
1943
1978
|
}) => arbi.projects.update(projectExtId, patch),
|
|
1944
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
1979
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkYIFUMQGA_cjs.arbiQueryKeys.projects() })
|
|
1945
1980
|
});
|
|
1946
1981
|
}
|
|
1947
1982
|
function useProjectEvents(projectExtId, options) {
|
|
1948
1983
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1949
1984
|
return reactQuery.useQuery({
|
|
1950
1985
|
queryKey: [
|
|
1951
|
-
...
|
|
1986
|
+
...chunkYIFUMQGA_cjs.arbiQueryKeys.projectEvents(projectExtId ?? ""),
|
|
1952
1987
|
options?.kind ?? "all",
|
|
1953
1988
|
options?.limit ?? "default"
|
|
1954
1989
|
],
|
|
@@ -1959,7 +1994,7 @@ function useProjectEvents(projectExtId, options) {
|
|
|
1959
1994
|
function useConversationUsage(conversationId, options) {
|
|
1960
1995
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1961
1996
|
return reactQuery.useQuery({
|
|
1962
|
-
queryKey:
|
|
1997
|
+
queryKey: chunkYIFUMQGA_cjs.arbiQueryKeys.conversationUsage(conversationId ?? ""),
|
|
1963
1998
|
queryFn: () => arbi.conversations.usage(conversationId),
|
|
1964
1999
|
enabled: (options?.enabled ?? true) && !!conversationId && arbi.isLoggedIn,
|
|
1965
2000
|
refetchInterval: options?.live ? 1e4 : false
|
|
@@ -1968,7 +2003,7 @@ function useConversationUsage(conversationId, options) {
|
|
|
1968
2003
|
function useProjectConversationUsage(projectExtId, monthsBack = 0, options) {
|
|
1969
2004
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1970
2005
|
return reactQuery.useQuery({
|
|
1971
|
-
queryKey:
|
|
2006
|
+
queryKey: chunkYIFUMQGA_cjs.arbiQueryKeys.projectConversationUsage(projectExtId ?? "", monthsBack),
|
|
1972
2007
|
queryFn: () => arbi.projects.usageByConversation(projectExtId, monthsBack),
|
|
1973
2008
|
enabled: (options?.enabled ?? true) && !!projectExtId && arbi.isLoggedIn
|
|
1974
2009
|
});
|
|
@@ -1976,7 +2011,7 @@ function useProjectConversationUsage(projectExtId, monthsBack = 0, options) {
|
|
|
1976
2011
|
function useContacts(options) {
|
|
1977
2012
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1978
2013
|
return reactQuery.useQuery({
|
|
1979
|
-
queryKey:
|
|
2014
|
+
queryKey: chunkYIFUMQGA_cjs.arbiQueryKeys.contacts(),
|
|
1980
2015
|
queryFn: () => arbi.contacts.list(),
|
|
1981
2016
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
1982
2017
|
});
|
|
@@ -1991,7 +2026,7 @@ function usePendingContacts(options) {
|
|
|
1991
2026
|
}
|
|
1992
2027
|
function useInvalidateContacts() {
|
|
1993
2028
|
const qc = reactQuery.useQueryClient();
|
|
1994
|
-
return () => qc.invalidateQueries({ queryKey:
|
|
2029
|
+
return () => qc.invalidateQueries({ queryKey: chunkYIFUMQGA_cjs.arbiQueryKeys.contacts() });
|
|
1995
2030
|
}
|
|
1996
2031
|
function useInviteContacts() {
|
|
1997
2032
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
@@ -2029,7 +2064,7 @@ function useSearchContacts(q, { debounceMs = 200 } = {}) {
|
|
|
2029
2064
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
2030
2065
|
const term = useDebounced(q.trim(), debounceMs);
|
|
2031
2066
|
return reactQuery.useQuery({
|
|
2032
|
-
queryKey: [...
|
|
2067
|
+
queryKey: [...chunkYIFUMQGA_cjs.arbiQueryKeys.contacts(), "search", term],
|
|
2033
2068
|
queryFn: () => arbi.contacts.search(term),
|
|
2034
2069
|
enabled: term.length > 0 && arbi.isLoggedIn,
|
|
2035
2070
|
staleTime: 6e4,
|
|
@@ -2048,7 +2083,7 @@ function useDebounced(value, ms) {
|
|
|
2048
2083
|
function useHouseTemplateCandidates(workspaceId, enabled, staleTime = 6e4) {
|
|
2049
2084
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
2050
2085
|
return reactQuery.useQuery({
|
|
2051
|
-
queryKey:
|
|
2086
|
+
queryKey: chunkYIFUMQGA_cjs.arbiQueryKeys.houseTemplateCandidates(workspaceId ?? ""),
|
|
2052
2087
|
enabled: enabled && !!workspaceId && arbi.hasWorkspace,
|
|
2053
2088
|
staleTime,
|
|
2054
2089
|
queryFn: () => arbi.houseTemplates.candidates()
|
|
@@ -2059,7 +2094,7 @@ function useSetWorkspaceHouseTemplate() {
|
|
|
2059
2094
|
const queryClient = reactQuery.useQueryClient();
|
|
2060
2095
|
return reactQuery.useMutation({
|
|
2061
2096
|
mutationFn: (documentId) => arbi.houseTemplates.setWorkspace(documentId),
|
|
2062
|
-
onSuccess: () => queryClient.invalidateQueries({ queryKey:
|
|
2097
|
+
onSuccess: () => queryClient.invalidateQueries({ queryKey: chunkYIFUMQGA_cjs.arbiQueryKeys.workspaces() })
|
|
2063
2098
|
});
|
|
2064
2099
|
}
|
|
2065
2100
|
var supportsHouseTemplates = browser.houseTemplates.supportsHouseTemplates;
|
|
@@ -2160,11 +2195,11 @@ function useProfile(options) {
|
|
|
2160
2195
|
const { client, enabled } = useAccountClient();
|
|
2161
2196
|
const qc = reactQuery.useQueryClient();
|
|
2162
2197
|
React.useEffect(
|
|
2163
|
-
() => client.onProfileChange(() => qc.setQueryData(
|
|
2198
|
+
() => client.onProfileChange(() => qc.setQueryData(chunkYIFUMQGA_cjs.arbiQueryKeys.profile(), client.profile())),
|
|
2164
2199
|
[client, qc]
|
|
2165
2200
|
);
|
|
2166
2201
|
return reactQuery.useQuery({
|
|
2167
|
-
queryKey:
|
|
2202
|
+
queryKey: chunkYIFUMQGA_cjs.arbiQueryKeys.profile(),
|
|
2168
2203
|
queryFn: () => client.profile(),
|
|
2169
2204
|
enabled: (options?.enabled ?? true) && enabled,
|
|
2170
2205
|
staleTime: Infinity
|
|
@@ -2179,9 +2214,9 @@ function useUpdateProfile() {
|
|
|
2179
2214
|
return client.profile();
|
|
2180
2215
|
},
|
|
2181
2216
|
onSuccess: (profile) => {
|
|
2182
|
-
qc.setQueryData(
|
|
2183
|
-
void qc.invalidateQueries({ queryKey:
|
|
2184
|
-
return qc.invalidateQueries({ queryKey:
|
|
2217
|
+
qc.setQueryData(chunkYIFUMQGA_cjs.arbiQueryKeys.profile(), profile);
|
|
2218
|
+
void qc.invalidateQueries({ queryKey: chunkYIFUMQGA_cjs.arbiQueryKeys.identity() });
|
|
2219
|
+
return qc.invalidateQueries({ queryKey: chunkYIFUMQGA_cjs.arbiQueryKeys.workspaces() });
|
|
2185
2220
|
}
|
|
2186
2221
|
});
|
|
2187
2222
|
}
|
|
@@ -2264,7 +2299,7 @@ function useConfirmEmailChange() {
|
|
|
2264
2299
|
const qc = reactQuery.useQueryClient();
|
|
2265
2300
|
return reactQuery.useMutation({
|
|
2266
2301
|
mutationFn: ({ newEmail, code }) => client.confirmEmailChange(newEmail, code),
|
|
2267
|
-
onSuccess: () => qc.setQueryData(
|
|
2302
|
+
onSuccess: () => qc.setQueryData(chunkYIFUMQGA_cjs.arbiQueryKeys.profile(), client.profile())
|
|
2268
2303
|
});
|
|
2269
2304
|
}
|
|
2270
2305
|
function useEmailChange({
|
|
@@ -2423,7 +2458,7 @@ function usePasswordChangeForm({
|
|
|
2423
2458
|
function useUserSettings(options) {
|
|
2424
2459
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
2425
2460
|
return reactQuery.useQuery({
|
|
2426
|
-
queryKey:
|
|
2461
|
+
queryKey: chunkYIFUMQGA_cjs.arbiQueryKeys.userSettings(),
|
|
2427
2462
|
queryFn: () => arbi.settings.get(),
|
|
2428
2463
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
2429
2464
|
});
|
|
@@ -2434,18 +2469,18 @@ function useUpdateUserSettings() {
|
|
|
2434
2469
|
return reactQuery.useMutation({
|
|
2435
2470
|
mutationFn: (patch) => arbi.settings.update(patch),
|
|
2436
2471
|
onMutate: async (patch) => {
|
|
2437
|
-
await qc.cancelQueries({ queryKey:
|
|
2438
|
-
const previous = qc.getQueryData(
|
|
2472
|
+
await qc.cancelQueries({ queryKey: chunkYIFUMQGA_cjs.arbiQueryKeys.userSettings() });
|
|
2473
|
+
const previous = qc.getQueryData(chunkYIFUMQGA_cjs.arbiQueryKeys.userSettings());
|
|
2439
2474
|
qc.setQueryData(
|
|
2440
|
-
|
|
2475
|
+
chunkYIFUMQGA_cjs.arbiQueryKeys.userSettings(),
|
|
2441
2476
|
(old) => old ? { ...old, ...patch } : old
|
|
2442
2477
|
);
|
|
2443
2478
|
return { previous };
|
|
2444
2479
|
},
|
|
2445
2480
|
onError: (_err, _patch, context) => {
|
|
2446
|
-
qc.setQueryData(
|
|
2481
|
+
qc.setQueryData(chunkYIFUMQGA_cjs.arbiQueryKeys.userSettings(), context?.previous);
|
|
2447
2482
|
},
|
|
2448
|
-
onSettled: () => qc.invalidateQueries({ queryKey:
|
|
2483
|
+
onSettled: () => qc.invalidateQueries({ queryKey: chunkYIFUMQGA_cjs.arbiQueryKeys.userSettings() })
|
|
2449
2484
|
});
|
|
2450
2485
|
}
|
|
2451
2486
|
function toNotificationPreferences(stored, keys) {
|
|
@@ -2465,18 +2500,18 @@ function useNotificationPreferences(keys, options) {
|
|
|
2465
2500
|
const save = reactQuery.useMutation({
|
|
2466
2501
|
mutationFn: (patch) => arbi.settings.update({ email_notifications: patch }),
|
|
2467
2502
|
onMutate: async (patch) => {
|
|
2468
|
-
await qc.cancelQueries({ queryKey:
|
|
2469
|
-
const previous = qc.getQueryData(
|
|
2503
|
+
await qc.cancelQueries({ queryKey: chunkYIFUMQGA_cjs.arbiQueryKeys.userSettings() });
|
|
2504
|
+
const previous = qc.getQueryData(chunkYIFUMQGA_cjs.arbiQueryKeys.userSettings());
|
|
2470
2505
|
qc.setQueryData(
|
|
2471
|
-
|
|
2506
|
+
chunkYIFUMQGA_cjs.arbiQueryKeys.userSettings(),
|
|
2472
2507
|
(old) => old ? { ...old, email_notifications: { ...old.email_notifications, ...patch } } : old
|
|
2473
2508
|
);
|
|
2474
2509
|
return { previous };
|
|
2475
2510
|
},
|
|
2476
2511
|
onError: (_err, _patch, context) => {
|
|
2477
|
-
qc.setQueryData(
|
|
2512
|
+
qc.setQueryData(chunkYIFUMQGA_cjs.arbiQueryKeys.userSettings(), context?.previous);
|
|
2478
2513
|
},
|
|
2479
|
-
onSettled: () => qc.invalidateQueries({ queryKey:
|
|
2514
|
+
onSettled: () => qc.invalidateQueries({ queryKey: chunkYIFUMQGA_cjs.arbiQueryKeys.userSettings() })
|
|
2480
2515
|
});
|
|
2481
2516
|
const model = React.useMemo(() => toNotificationPreferences(stored, keys), [stored, keys]);
|
|
2482
2517
|
const setAll = React.useCallback(
|
|
@@ -2503,18 +2538,18 @@ function useRelevanceSave() {
|
|
|
2503
2538
|
return reactQuery.useMutation({
|
|
2504
2539
|
mutationFn: (patch) => arbi.settings.update(patch),
|
|
2505
2540
|
onMutate: async (patch) => {
|
|
2506
|
-
await qc.cancelQueries({ queryKey:
|
|
2507
|
-
const previous = qc.getQueryData(
|
|
2541
|
+
await qc.cancelQueries({ queryKey: chunkYIFUMQGA_cjs.arbiQueryKeys.userSettings() });
|
|
2542
|
+
const previous = qc.getQueryData(chunkYIFUMQGA_cjs.arbiQueryKeys.userSettings());
|
|
2508
2543
|
qc.setQueryData(
|
|
2509
|
-
|
|
2544
|
+
chunkYIFUMQGA_cjs.arbiQueryKeys.userSettings(),
|
|
2510
2545
|
(old) => old ? { ...old, ...patch } : old
|
|
2511
2546
|
);
|
|
2512
2547
|
return { previous };
|
|
2513
2548
|
},
|
|
2514
2549
|
onError: (_err, _patch, context) => {
|
|
2515
|
-
qc.setQueryData(
|
|
2550
|
+
qc.setQueryData(chunkYIFUMQGA_cjs.arbiQueryKeys.userSettings(), context?.previous);
|
|
2516
2551
|
},
|
|
2517
|
-
onSettled: () => qc.invalidateQueries({ queryKey:
|
|
2552
|
+
onSettled: () => qc.invalidateQueries({ queryKey: chunkYIFUMQGA_cjs.arbiQueryKeys.userSettings() })
|
|
2518
2553
|
});
|
|
2519
2554
|
}
|
|
2520
2555
|
function useWorkspaceNotificationLevel(workspaceId, options) {
|
|
@@ -2525,7 +2560,7 @@ function useWorkspaceNotificationLevel(workspaceId, options) {
|
|
|
2525
2560
|
const setLevel = React.useCallback(
|
|
2526
2561
|
(next) => {
|
|
2527
2562
|
if (!workspaceId) return;
|
|
2528
|
-
const current = qc.getQueryData(
|
|
2563
|
+
const current = qc.getQueryData(chunkYIFUMQGA_cjs.arbiQueryKeys.userSettings()) ?? settings.data;
|
|
2529
2564
|
save.mutate(browser.settings.workspaceLevelPatch(current, workspaceId, next));
|
|
2530
2565
|
},
|
|
2531
2566
|
[qc, save, settings.data, workspaceId]
|
|
@@ -2546,7 +2581,7 @@ function useFollowThread(conversationId, options) {
|
|
|
2546
2581
|
const setFollowing = React.useCallback(
|
|
2547
2582
|
(on, callbacks) => {
|
|
2548
2583
|
if (!conversationId) return;
|
|
2549
|
-
const current = qc.getQueryData(
|
|
2584
|
+
const current = qc.getQueryData(chunkYIFUMQGA_cjs.arbiQueryKeys.userSettings()) ?? settings.data;
|
|
2550
2585
|
save.mutate(
|
|
2551
2586
|
{
|
|
2552
2587
|
followed_threads: browser.settings.withMembership(
|
|
@@ -2571,7 +2606,7 @@ function useFollowThread(conversationId, options) {
|
|
|
2571
2606
|
function useSessions(options) {
|
|
2572
2607
|
const { client, enabled } = useAccountClient();
|
|
2573
2608
|
return reactQuery.useQuery({
|
|
2574
|
-
queryKey:
|
|
2609
|
+
queryKey: chunkYIFUMQGA_cjs.arbiQueryKeys.sessions(),
|
|
2575
2610
|
queryFn: () => client.listSessions(),
|
|
2576
2611
|
enabled: (options?.enabled ?? true) && enabled
|
|
2577
2612
|
});
|
|
@@ -2581,7 +2616,7 @@ function useTerminateSession() {
|
|
|
2581
2616
|
const qc = reactQuery.useQueryClient();
|
|
2582
2617
|
return reactQuery.useMutation({
|
|
2583
2618
|
mutationFn: (sessionId) => client.terminateSession(sessionId),
|
|
2584
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
2619
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkYIFUMQGA_cjs.arbiQueryKeys.sessions() })
|
|
2585
2620
|
});
|
|
2586
2621
|
}
|
|
2587
2622
|
function useSignOut() {
|
|
@@ -2724,7 +2759,7 @@ function useIdentityVerificationFlow(api, {
|
|
|
2724
2759
|
const apiRef = React.useRef(api);
|
|
2725
2760
|
apiRef.current = api;
|
|
2726
2761
|
const query = reactQuery.useQuery({
|
|
2727
|
-
queryKey:
|
|
2762
|
+
queryKey: chunkYIFUMQGA_cjs.arbiQueryKeys.identity(),
|
|
2728
2763
|
queryFn: () => apiRef.current.status(),
|
|
2729
2764
|
enabled,
|
|
2730
2765
|
staleTime: 6e4
|
|
@@ -2742,7 +2777,7 @@ function useIdentityVerificationFlow(api, {
|
|
|
2742
2777
|
const lastVerified = React.useRef(void 0);
|
|
2743
2778
|
const apply = React.useCallback(
|
|
2744
2779
|
(next) => {
|
|
2745
|
-
qc.setQueryData(
|
|
2780
|
+
qc.setQueryData(chunkYIFUMQGA_cjs.arbiQueryKeys.identity(), next);
|
|
2746
2781
|
if (lastVerified.current !== void 0 && lastVerified.current !== next.verified) {
|
|
2747
2782
|
onVerifiedChange?.(next.verified);
|
|
2748
2783
|
}
|
|
@@ -2937,12 +2972,12 @@ function useIdentityVerification(options = {}) {
|
|
|
2937
2972
|
enabled,
|
|
2938
2973
|
formatPrice,
|
|
2939
2974
|
onVerifiedChange: (verified) => {
|
|
2940
|
-
void qc.invalidateQueries({ queryKey:
|
|
2975
|
+
void qc.invalidateQueries({ queryKey: chunkYIFUMQGA_cjs.arbiQueryKeys.profile() });
|
|
2941
2976
|
onVerifiedChange?.(verified);
|
|
2942
2977
|
},
|
|
2943
2978
|
onNameAccepted: (name) => {
|
|
2944
|
-
void qc.invalidateQueries({ queryKey:
|
|
2945
|
-
void qc.invalidateQueries({ queryKey:
|
|
2979
|
+
void qc.invalidateQueries({ queryKey: chunkYIFUMQGA_cjs.arbiQueryKeys.profile() });
|
|
2980
|
+
void qc.invalidateQueries({ queryKey: chunkYIFUMQGA_cjs.arbiQueryKeys.workspaces() });
|
|
2946
2981
|
onNameAccepted?.(name);
|
|
2947
2982
|
}
|
|
2948
2983
|
});
|
|
@@ -4005,7 +4040,7 @@ function useDeleteBookingPage() {
|
|
|
4005
4040
|
});
|
|
4006
4041
|
}
|
|
4007
4042
|
function useWorkspaceDocs(workspaceId) {
|
|
4008
|
-
const { data: docs = [], isLoading, isError } =
|
|
4043
|
+
const { data: docs = [], isLoading, isError } = chunkYIFUMQGA_cjs.useDocuments(workspaceId);
|
|
4009
4044
|
const docIds = React.useMemo(
|
|
4010
4045
|
() => docs.map((d) => d.external_id).filter((id) => !!id),
|
|
4011
4046
|
[docs]
|
|
@@ -4013,7 +4048,7 @@ function useWorkspaceDocs(workspaceId) {
|
|
|
4013
4048
|
return { wsId: workspaceId, docs, docIds, isLoading, isError, ready: docIds.length > 0 };
|
|
4014
4049
|
}
|
|
4015
4050
|
function useAiTask() {
|
|
4016
|
-
const mutation =
|
|
4051
|
+
const mutation = chunkYIFUMQGA_cjs.useAssistantQuery();
|
|
4017
4052
|
const [status, setStatus] = React.useState("idle");
|
|
4018
4053
|
const [text, setText] = React.useState("");
|
|
4019
4054
|
const [stepCount, setStepCount] = React.useState(0);
|
|
@@ -4633,8 +4668,8 @@ function DocumentReview({
|
|
|
4633
4668
|
onClose,
|
|
4634
4669
|
className
|
|
4635
4670
|
}) {
|
|
4636
|
-
const parsedQuery =
|
|
4637
|
-
const tagsQuery =
|
|
4671
|
+
const parsedQuery = chunkYIFUMQGA_cjs.useParsedDocument(docId, stage);
|
|
4672
|
+
const tagsQuery = chunkYIFUMQGA_cjs.useTags(workspaceId);
|
|
4638
4673
|
const tagNameById = React__default.default.useMemo(() => {
|
|
4639
4674
|
const map = /* @__PURE__ */ new Map();
|
|
4640
4675
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -4865,7 +4900,7 @@ function SemanticSearch({
|
|
|
4865
4900
|
const { results, status, error, search, isRunning, query } = useSemanticSearch(docIds);
|
|
4866
4901
|
const [value, setValue] = React.useState("");
|
|
4867
4902
|
const [selected, setSelected] = React.useState(null);
|
|
4868
|
-
const { data: docs = [] } =
|
|
4903
|
+
const { data: docs = [] } = chunkYIFUMQGA_cjs.useDocuments(workspaceId, { enabled: !!workspaceId });
|
|
4869
4904
|
const docMap = React.useMemo(() => {
|
|
4870
4905
|
const map = /* @__PURE__ */ new Map();
|
|
4871
4906
|
for (const d of docs) if (d.external_id) map.set(d.external_id, d);
|
|
@@ -5967,7 +6002,7 @@ function ActivityFeed({
|
|
|
5967
6002
|
enabled,
|
|
5968
6003
|
"data-testid": testId = "activity-feed"
|
|
5969
6004
|
}) {
|
|
5970
|
-
const { data, isLoading, isError } =
|
|
6005
|
+
const { data, isLoading, isError } = chunkYIFUMQGA_cjs.useActivity({ limit, enabled });
|
|
5971
6006
|
if (isLoading) {
|
|
5972
6007
|
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: [
|
|
5973
6008
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-4 w-4 shrink-0 animate-pulse rounded-full bg-muted" }),
|
|
@@ -6044,12 +6079,12 @@ function useNotifications(options = {}) {
|
|
|
6044
6079
|
React.useEffect(
|
|
6045
6080
|
() => ws?.subscribe((message) => {
|
|
6046
6081
|
if ("sender" in message && "recipient" in message)
|
|
6047
|
-
void queries.invalidateQueries({ queryKey:
|
|
6082
|
+
void queries.invalidateQueries({ queryKey: chunkYIFUMQGA_cjs.arbiQueryKeys.allNotifications() });
|
|
6048
6083
|
}),
|
|
6049
6084
|
[ws, queries]
|
|
6050
6085
|
);
|
|
6051
6086
|
return reactQuery.useQuery({
|
|
6052
|
-
queryKey:
|
|
6087
|
+
queryKey: chunkYIFUMQGA_cjs.arbiQueryKeys.notifications(limit),
|
|
6053
6088
|
queryFn: () => arbi.notifications.list({ limit }),
|
|
6054
6089
|
enabled: (options.enabled ?? true) && arbi.isLoggedIn
|
|
6055
6090
|
});
|
|
@@ -6059,7 +6094,7 @@ function useDeleteNotifications() {
|
|
|
6059
6094
|
const queries = reactQuery.useQueryClient();
|
|
6060
6095
|
return reactQuery.useMutation({
|
|
6061
6096
|
mutationFn: (ids) => arbi.notifications.delete(ids),
|
|
6062
|
-
onSuccess: () => queries.invalidateQueries({ queryKey:
|
|
6097
|
+
onSuccess: () => queries.invalidateQueries({ queryKey: chunkYIFUMQGA_cjs.arbiQueryKeys.allNotifications() })
|
|
6063
6098
|
});
|
|
6064
6099
|
}
|
|
6065
6100
|
function useMarkNotificationsRead() {
|
|
@@ -6067,7 +6102,7 @@ function useMarkNotificationsRead() {
|
|
|
6067
6102
|
const queries = reactQuery.useQueryClient();
|
|
6068
6103
|
return reactQuery.useMutation({
|
|
6069
6104
|
mutationFn: (ids) => arbi.notifications.markRead(ids),
|
|
6070
|
-
onSuccess: () => queries.invalidateQueries({ queryKey:
|
|
6105
|
+
onSuccess: () => queries.invalidateQueries({ queryKey: chunkYIFUMQGA_cjs.arbiQueryKeys.allNotifications() })
|
|
6071
6106
|
});
|
|
6072
6107
|
}
|
|
6073
6108
|
|
|
@@ -6520,7 +6555,7 @@ function useDirectMessages(options) {
|
|
|
6520
6555
|
enabled
|
|
6521
6556
|
});
|
|
6522
6557
|
const contactsQuery = reactQuery.useQuery({
|
|
6523
|
-
queryKey:
|
|
6558
|
+
queryKey: chunkYIFUMQGA_cjs.arbiQueryKeys.contacts(),
|
|
6524
6559
|
queryFn: () => arbi.contacts.list(),
|
|
6525
6560
|
enabled
|
|
6526
6561
|
});
|
|
@@ -7789,10 +7824,10 @@ function DocumentTable({
|
|
|
7789
7824
|
extraColumns,
|
|
7790
7825
|
className
|
|
7791
7826
|
}) {
|
|
7792
|
-
const query =
|
|
7827
|
+
const query = chunkYIFUMQGA_cjs.useDocuments(workspaceId, { enabled: !documents });
|
|
7793
7828
|
const rows = documents ?? query.data ?? [];
|
|
7794
7829
|
const isLoading = !documents && query.isLoading;
|
|
7795
|
-
const tagsQuery =
|
|
7830
|
+
const tagsQuery = chunkYIFUMQGA_cjs.useTags(workspaceId);
|
|
7796
7831
|
const tagNameById = React__default.default.useMemo(() => {
|
|
7797
7832
|
const map = /* @__PURE__ */ new Map();
|
|
7798
7833
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -8062,10 +8097,10 @@ function DocumentGallery({
|
|
|
8062
8097
|
minTileWidth = 148,
|
|
8063
8098
|
className
|
|
8064
8099
|
}) {
|
|
8065
|
-
const query =
|
|
8100
|
+
const query = chunkYIFUMQGA_cjs.useDocuments(workspaceId, { enabled: !documents });
|
|
8066
8101
|
const rows = documents ?? query.data ?? [];
|
|
8067
8102
|
const isLoading = !documents && query.isLoading;
|
|
8068
|
-
const tagsQuery =
|
|
8103
|
+
const tagsQuery = chunkYIFUMQGA_cjs.useTags(workspaceId);
|
|
8069
8104
|
const tagNameById = React__default.default.useMemo(() => {
|
|
8070
8105
|
const map = /* @__PURE__ */ new Map();
|
|
8071
8106
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -8077,7 +8112,7 @@ function DocumentGallery({
|
|
|
8077
8112
|
() => rows.map((d) => d.external_id).filter((id) => !!id),
|
|
8078
8113
|
[rows]
|
|
8079
8114
|
);
|
|
8080
|
-
const thumbsQuery =
|
|
8115
|
+
const thumbsQuery = chunkYIFUMQGA_cjs.useThumbnails(docIds);
|
|
8081
8116
|
const thumbs = thumbsQuery.data ?? {};
|
|
8082
8117
|
const session = useArbiSessionStore();
|
|
8083
8118
|
const storeSelected = useArbiSessionState((s) => s.selectedDocumentIds);
|
|
@@ -8724,247 +8759,247 @@ function hasVideoTrack(blob) {
|
|
|
8724
8759
|
|
|
8725
8760
|
Object.defineProperty(exports, "DOCUMENTS_FIRST_PAGE_MEASURE", {
|
|
8726
8761
|
enumerable: true,
|
|
8727
|
-
get: function () { return
|
|
8762
|
+
get: function () { return chunkYIFUMQGA_cjs.DOCUMENTS_FIRST_PAGE_MEASURE; }
|
|
8728
8763
|
});
|
|
8729
8764
|
Object.defineProperty(exports, "DOCUMENTS_FIRST_PAGE_SIZE", {
|
|
8730
8765
|
enumerable: true,
|
|
8731
|
-
get: function () { return
|
|
8766
|
+
get: function () { return chunkYIFUMQGA_cjs.DOCUMENTS_FIRST_PAGE_SIZE; }
|
|
8732
8767
|
});
|
|
8733
8768
|
Object.defineProperty(exports, "DOCUMENTS_PAGE_SIZE", {
|
|
8734
8769
|
enumerable: true,
|
|
8735
|
-
get: function () { return
|
|
8770
|
+
get: function () { return chunkYIFUMQGA_cjs.DOCUMENTS_PAGE_SIZE; }
|
|
8736
8771
|
});
|
|
8737
8772
|
Object.defineProperty(exports, "FINISHED_DOCUMENT_STATUSES", {
|
|
8738
8773
|
enumerable: true,
|
|
8739
|
-
get: function () { return
|
|
8774
|
+
get: function () { return chunkYIFUMQGA_cjs.FINISHED_DOCUMENT_STATUSES; }
|
|
8740
8775
|
});
|
|
8741
8776
|
Object.defineProperty(exports, "PROJECT_CREATION_DENIED_REASON", {
|
|
8742
8777
|
enumerable: true,
|
|
8743
|
-
get: function () { return
|
|
8778
|
+
get: function () { return chunkYIFUMQGA_cjs.PROJECT_CREATION_DENIED_REASON; }
|
|
8744
8779
|
});
|
|
8745
8780
|
Object.defineProperty(exports, "SIMILARITY_THRESHOLD", {
|
|
8746
8781
|
enumerable: true,
|
|
8747
|
-
get: function () { return
|
|
8782
|
+
get: function () { return chunkYIFUMQGA_cjs.SIMILARITY_THRESHOLD; }
|
|
8748
8783
|
});
|
|
8749
8784
|
Object.defineProperty(exports, "adjustTagCounts", {
|
|
8750
8785
|
enumerable: true,
|
|
8751
|
-
get: function () { return
|
|
8786
|
+
get: function () { return chunkYIFUMQGA_cjs.adjustTagCounts; }
|
|
8752
8787
|
});
|
|
8753
8788
|
Object.defineProperty(exports, "arbiMutationKeys", {
|
|
8754
8789
|
enumerable: true,
|
|
8755
|
-
get: function () { return
|
|
8790
|
+
get: function () { return chunkYIFUMQGA_cjs.arbiMutationKeys; }
|
|
8756
8791
|
});
|
|
8757
8792
|
Object.defineProperty(exports, "arbiQueryKeys", {
|
|
8758
8793
|
enumerable: true,
|
|
8759
|
-
get: function () { return
|
|
8794
|
+
get: function () { return chunkYIFUMQGA_cjs.arbiQueryKeys; }
|
|
8760
8795
|
});
|
|
8761
8796
|
Object.defineProperty(exports, "forgetDocuments", {
|
|
8762
8797
|
enumerable: true,
|
|
8763
|
-
get: function () { return
|
|
8798
|
+
get: function () { return chunkYIFUMQGA_cjs.forgetDocuments; }
|
|
8764
8799
|
});
|
|
8765
8800
|
Object.defineProperty(exports, "getCachedDocuments", {
|
|
8766
8801
|
enumerable: true,
|
|
8767
|
-
get: function () { return
|
|
8802
|
+
get: function () { return chunkYIFUMQGA_cjs.getCachedDocuments; }
|
|
8768
8803
|
});
|
|
8769
8804
|
Object.defineProperty(exports, "invalidateTagData", {
|
|
8770
8805
|
enumerable: true,
|
|
8771
|
-
get: function () { return
|
|
8806
|
+
get: function () { return chunkYIFUMQGA_cjs.invalidateTagData; }
|
|
8772
8807
|
});
|
|
8773
8808
|
Object.defineProperty(exports, "invalidateTagTables", {
|
|
8774
8809
|
enumerable: true,
|
|
8775
|
-
get: function () { return
|
|
8810
|
+
get: function () { return chunkYIFUMQGA_cjs.invalidateTagTables; }
|
|
8776
8811
|
});
|
|
8777
8812
|
Object.defineProperty(exports, "isDocumentsLoading", {
|
|
8778
8813
|
enumerable: true,
|
|
8779
|
-
get: function () { return
|
|
8814
|
+
get: function () { return chunkYIFUMQGA_cjs.isDocumentsLoading; }
|
|
8780
8815
|
});
|
|
8781
8816
|
Object.defineProperty(exports, "isUsageMetered", {
|
|
8782
8817
|
enumerable: true,
|
|
8783
|
-
get: function () { return
|
|
8818
|
+
get: function () { return chunkYIFUMQGA_cjs.isUsageMetered; }
|
|
8784
8819
|
});
|
|
8785
8820
|
Object.defineProperty(exports, "patchCachedDocument", {
|
|
8786
8821
|
enumerable: true,
|
|
8787
|
-
get: function () { return
|
|
8822
|
+
get: function () { return chunkYIFUMQGA_cjs.patchCachedDocument; }
|
|
8788
8823
|
});
|
|
8789
8824
|
Object.defineProperty(exports, "patchDocuments", {
|
|
8790
8825
|
enumerable: true,
|
|
8791
|
-
get: function () { return
|
|
8826
|
+
get: function () { return chunkYIFUMQGA_cjs.patchDocuments; }
|
|
8792
8827
|
});
|
|
8793
8828
|
Object.defineProperty(exports, "patchWorkspaceTags", {
|
|
8794
8829
|
enumerable: true,
|
|
8795
|
-
get: function () { return
|
|
8830
|
+
get: function () { return chunkYIFUMQGA_cjs.patchWorkspaceTags; }
|
|
8796
8831
|
});
|
|
8797
8832
|
Object.defineProperty(exports, "refreshDocuments", {
|
|
8798
8833
|
enumerable: true,
|
|
8799
|
-
get: function () { return
|
|
8834
|
+
get: function () { return chunkYIFUMQGA_cjs.refreshDocuments; }
|
|
8800
8835
|
});
|
|
8801
8836
|
Object.defineProperty(exports, "setCachedDocument", {
|
|
8802
8837
|
enumerable: true,
|
|
8803
|
-
get: function () { return
|
|
8838
|
+
get: function () { return chunkYIFUMQGA_cjs.setCachedDocument; }
|
|
8804
8839
|
});
|
|
8805
8840
|
Object.defineProperty(exports, "stopDocumentsLoading", {
|
|
8806
8841
|
enumerable: true,
|
|
8807
|
-
get: function () { return
|
|
8842
|
+
get: function () { return chunkYIFUMQGA_cjs.stopDocumentsLoading; }
|
|
8808
8843
|
});
|
|
8809
8844
|
Object.defineProperty(exports, "subscribeDocumentRows", {
|
|
8810
8845
|
enumerable: true,
|
|
8811
|
-
get: function () { return
|
|
8846
|
+
get: function () { return chunkYIFUMQGA_cjs.subscribeDocumentRows; }
|
|
8812
8847
|
});
|
|
8813
8848
|
Object.defineProperty(exports, "upsertDocuments", {
|
|
8814
8849
|
enumerable: true,
|
|
8815
|
-
get: function () { return
|
|
8850
|
+
get: function () { return chunkYIFUMQGA_cjs.upsertDocuments; }
|
|
8816
8851
|
});
|
|
8817
8852
|
Object.defineProperty(exports, "useActivity", {
|
|
8818
8853
|
enumerable: true,
|
|
8819
|
-
get: function () { return
|
|
8854
|
+
get: function () { return chunkYIFUMQGA_cjs.useActivity; }
|
|
8820
8855
|
});
|
|
8821
8856
|
Object.defineProperty(exports, "useAgents", {
|
|
8822
8857
|
enumerable: true,
|
|
8823
|
-
get: function () { return
|
|
8858
|
+
get: function () { return chunkYIFUMQGA_cjs.useAgents; }
|
|
8824
8859
|
});
|
|
8825
8860
|
Object.defineProperty(exports, "useAssistantQuery", {
|
|
8826
8861
|
enumerable: true,
|
|
8827
|
-
get: function () { return
|
|
8862
|
+
get: function () { return chunkYIFUMQGA_cjs.useAssistantQuery; }
|
|
8828
8863
|
});
|
|
8829
8864
|
Object.defineProperty(exports, "useAvailableModels", {
|
|
8830
8865
|
enumerable: true,
|
|
8831
|
-
get: function () { return
|
|
8866
|
+
get: function () { return chunkYIFUMQGA_cjs.useAvailableModels; }
|
|
8832
8867
|
});
|
|
8833
8868
|
Object.defineProperty(exports, "useCanCreateProjects", {
|
|
8834
8869
|
enumerable: true,
|
|
8835
|
-
get: function () { return
|
|
8870
|
+
get: function () { return chunkYIFUMQGA_cjs.useCanCreateProjects; }
|
|
8836
8871
|
});
|
|
8837
8872
|
Object.defineProperty(exports, "useConfigs", {
|
|
8838
8873
|
enumerable: true,
|
|
8839
|
-
get: function () { return
|
|
8874
|
+
get: function () { return chunkYIFUMQGA_cjs.useConfigs; }
|
|
8840
8875
|
});
|
|
8841
8876
|
Object.defineProperty(exports, "useConversationThreads", {
|
|
8842
8877
|
enumerable: true,
|
|
8843
|
-
get: function () { return
|
|
8878
|
+
get: function () { return chunkYIFUMQGA_cjs.useConversationThreads; }
|
|
8844
8879
|
});
|
|
8845
8880
|
Object.defineProperty(exports, "useConversations", {
|
|
8846
8881
|
enumerable: true,
|
|
8847
|
-
get: function () { return
|
|
8882
|
+
get: function () { return chunkYIFUMQGA_cjs.useConversations; }
|
|
8848
8883
|
});
|
|
8849
8884
|
Object.defineProperty(exports, "useCreateTag", {
|
|
8850
8885
|
enumerable: true,
|
|
8851
|
-
get: function () { return
|
|
8886
|
+
get: function () { return chunkYIFUMQGA_cjs.useCreateTag; }
|
|
8852
8887
|
});
|
|
8853
8888
|
Object.defineProperty(exports, "useCurrentUser", {
|
|
8854
8889
|
enumerable: true,
|
|
8855
|
-
get: function () { return
|
|
8890
|
+
get: function () { return chunkYIFUMQGA_cjs.useCurrentUser; }
|
|
8856
8891
|
});
|
|
8857
8892
|
Object.defineProperty(exports, "useDeleteAgents", {
|
|
8858
8893
|
enumerable: true,
|
|
8859
|
-
get: function () { return
|
|
8894
|
+
get: function () { return chunkYIFUMQGA_cjs.useDeleteAgents; }
|
|
8860
8895
|
});
|
|
8861
8896
|
Object.defineProperty(exports, "useDeleteTag", {
|
|
8862
8897
|
enumerable: true,
|
|
8863
|
-
get: function () { return
|
|
8898
|
+
get: function () { return chunkYIFUMQGA_cjs.useDeleteTag; }
|
|
8864
8899
|
});
|
|
8865
8900
|
Object.defineProperty(exports, "useDocument", {
|
|
8866
8901
|
enumerable: true,
|
|
8867
|
-
get: function () { return
|
|
8902
|
+
get: function () { return chunkYIFUMQGA_cjs.useDocument; }
|
|
8868
8903
|
});
|
|
8869
8904
|
Object.defineProperty(exports, "useDocumentVersionList", {
|
|
8870
8905
|
enumerable: true,
|
|
8871
|
-
get: function () { return
|
|
8906
|
+
get: function () { return chunkYIFUMQGA_cjs.useDocumentVersionList; }
|
|
8872
8907
|
});
|
|
8873
8908
|
Object.defineProperty(exports, "useDocuments", {
|
|
8874
8909
|
enumerable: true,
|
|
8875
|
-
get: function () { return
|
|
8910
|
+
get: function () { return chunkYIFUMQGA_cjs.useDocuments; }
|
|
8876
8911
|
});
|
|
8877
8912
|
Object.defineProperty(exports, "useDocumentsById", {
|
|
8878
8913
|
enumerable: true,
|
|
8879
|
-
get: function () { return
|
|
8914
|
+
get: function () { return chunkYIFUMQGA_cjs.useDocumentsById; }
|
|
8880
8915
|
});
|
|
8881
8916
|
Object.defineProperty(exports, "useDocumentsLoading", {
|
|
8882
8917
|
enumerable: true,
|
|
8883
|
-
get: function () { return
|
|
8918
|
+
get: function () { return chunkYIFUMQGA_cjs.useDocumentsLoading; }
|
|
8884
8919
|
});
|
|
8885
8920
|
Object.defineProperty(exports, "useExtractEntities", {
|
|
8886
8921
|
enumerable: true,
|
|
8887
|
-
get: function () { return
|
|
8922
|
+
get: function () { return chunkYIFUMQGA_cjs.useExtractEntities; }
|
|
8888
8923
|
});
|
|
8889
8924
|
Object.defineProperty(exports, "useFirmPool", {
|
|
8890
8925
|
enumerable: true,
|
|
8891
|
-
get: function () { return
|
|
8926
|
+
get: function () { return chunkYIFUMQGA_cjs.useFirmPool; }
|
|
8892
8927
|
});
|
|
8893
8928
|
Object.defineProperty(exports, "useHealth", {
|
|
8894
8929
|
enumerable: true,
|
|
8895
|
-
get: function () { return
|
|
8930
|
+
get: function () { return chunkYIFUMQGA_cjs.useHealth; }
|
|
8896
8931
|
});
|
|
8897
8932
|
Object.defineProperty(exports, "useInvalidateTagData", {
|
|
8898
8933
|
enumerable: true,
|
|
8899
|
-
get: function () { return
|
|
8934
|
+
get: function () { return chunkYIFUMQGA_cjs.useInvalidateTagData; }
|
|
8900
8935
|
});
|
|
8901
8936
|
Object.defineProperty(exports, "useParsedDocument", {
|
|
8902
8937
|
enumerable: true,
|
|
8903
|
-
get: function () { return
|
|
8938
|
+
get: function () { return chunkYIFUMQGA_cjs.useParsedDocument; }
|
|
8904
8939
|
});
|
|
8905
8940
|
Object.defineProperty(exports, "useProjectInvoices", {
|
|
8906
8941
|
enumerable: true,
|
|
8907
|
-
get: function () { return
|
|
8942
|
+
get: function () { return chunkYIFUMQGA_cjs.useProjectInvoices; }
|
|
8908
8943
|
});
|
|
8909
8944
|
Object.defineProperty(exports, "useProjectUsage", {
|
|
8910
8945
|
enumerable: true,
|
|
8911
|
-
get: function () { return
|
|
8946
|
+
get: function () { return chunkYIFUMQGA_cjs.useProjectUsage; }
|
|
8912
8947
|
});
|
|
8913
8948
|
Object.defineProperty(exports, "useProjects", {
|
|
8914
8949
|
enumerable: true,
|
|
8915
|
-
get: function () { return
|
|
8950
|
+
get: function () { return chunkYIFUMQGA_cjs.useProjects; }
|
|
8916
8951
|
});
|
|
8917
8952
|
Object.defineProperty(exports, "useProjectsUsage", {
|
|
8918
8953
|
enumerable: true,
|
|
8919
|
-
get: function () { return
|
|
8954
|
+
get: function () { return chunkYIFUMQGA_cjs.useProjectsUsage; }
|
|
8920
8955
|
});
|
|
8921
8956
|
Object.defineProperty(exports, "useSetTagValues", {
|
|
8922
8957
|
enumerable: true,
|
|
8923
|
-
get: function () { return
|
|
8958
|
+
get: function () { return chunkYIFUMQGA_cjs.useSetTagValues; }
|
|
8924
8959
|
});
|
|
8925
8960
|
Object.defineProperty(exports, "useSimilarDocuments", {
|
|
8926
8961
|
enumerable: true,
|
|
8927
|
-
get: function () { return
|
|
8962
|
+
get: function () { return chunkYIFUMQGA_cjs.useSimilarDocuments; }
|
|
8928
8963
|
});
|
|
8929
8964
|
Object.defineProperty(exports, "useTagKindSchema", {
|
|
8930
8965
|
enumerable: true,
|
|
8931
|
-
get: function () { return
|
|
8966
|
+
get: function () { return chunkYIFUMQGA_cjs.useTagKindSchema; }
|
|
8932
8967
|
});
|
|
8933
8968
|
Object.defineProperty(exports, "useTags", {
|
|
8934
8969
|
enumerable: true,
|
|
8935
|
-
get: function () { return
|
|
8970
|
+
get: function () { return chunkYIFUMQGA_cjs.useTags; }
|
|
8936
8971
|
});
|
|
8937
8972
|
Object.defineProperty(exports, "useThumbnails", {
|
|
8938
8973
|
enumerable: true,
|
|
8939
|
-
get: function () { return
|
|
8974
|
+
get: function () { return chunkYIFUMQGA_cjs.useThumbnails; }
|
|
8940
8975
|
});
|
|
8941
8976
|
Object.defineProperty(exports, "useTopUpFirmPool", {
|
|
8942
8977
|
enumerable: true,
|
|
8943
|
-
get: function () { return
|
|
8978
|
+
get: function () { return chunkYIFUMQGA_cjs.useTopUpFirmPool; }
|
|
8944
8979
|
});
|
|
8945
8980
|
Object.defineProperty(exports, "useUpdateTag", {
|
|
8946
8981
|
enumerable: true,
|
|
8947
|
-
get: function () { return
|
|
8982
|
+
get: function () { return chunkYIFUMQGA_cjs.useUpdateTag; }
|
|
8948
8983
|
});
|
|
8949
8984
|
Object.defineProperty(exports, "useUpdateTagKindSchema", {
|
|
8950
8985
|
enumerable: true,
|
|
8951
|
-
get: function () { return
|
|
8986
|
+
get: function () { return chunkYIFUMQGA_cjs.useUpdateTagKindSchema; }
|
|
8952
8987
|
});
|
|
8953
8988
|
Object.defineProperty(exports, "useUserUsageToday", {
|
|
8954
8989
|
enumerable: true,
|
|
8955
|
-
get: function () { return
|
|
8990
|
+
get: function () { return chunkYIFUMQGA_cjs.useUserUsageToday; }
|
|
8956
8991
|
});
|
|
8957
8992
|
Object.defineProperty(exports, "useWorkspaceActivity", {
|
|
8958
8993
|
enumerable: true,
|
|
8959
|
-
get: function () { return
|
|
8994
|
+
get: function () { return chunkYIFUMQGA_cjs.useWorkspaceActivity; }
|
|
8960
8995
|
});
|
|
8961
8996
|
Object.defineProperty(exports, "useWorkspaceUsers", {
|
|
8962
8997
|
enumerable: true,
|
|
8963
|
-
get: function () { return
|
|
8998
|
+
get: function () { return chunkYIFUMQGA_cjs.useWorkspaceUsers; }
|
|
8964
8999
|
});
|
|
8965
9000
|
Object.defineProperty(exports, "useWorkspaces", {
|
|
8966
9001
|
enumerable: true,
|
|
8967
|
-
get: function () { return
|
|
9002
|
+
get: function () { return chunkYIFUMQGA_cjs.useWorkspaces; }
|
|
8968
9003
|
});
|
|
8969
9004
|
Object.defineProperty(exports, "cleanDraftMarkdown", {
|
|
8970
9005
|
enumerable: true,
|
|
@@ -9987,6 +10022,7 @@ exports.toShellWorkspace = toShellWorkspace;
|
|
|
9987
10022
|
exports.useAccountClient = useAccountClient;
|
|
9988
10023
|
exports.useActOnStep = useActOnStep;
|
|
9989
10024
|
exports.useAddHolidayCalendar = useAddHolidayCalendar;
|
|
10025
|
+
exports.useAddWorkspaceMembers = useAddWorkspaceMembers;
|
|
9990
10026
|
exports.useAgentChats = useAgentChats;
|
|
9991
10027
|
exports.useAgentConfig = useAgentConfig;
|
|
9992
10028
|
exports.useAgentModels = useAgentModels;
|
|
@@ -10110,6 +10146,7 @@ exports.useProjectEvents = useProjectEvents;
|
|
|
10110
10146
|
exports.usePublishCalendar = usePublishCalendar;
|
|
10111
10147
|
exports.useRefreshCalendar = useRefreshCalendar;
|
|
10112
10148
|
exports.useRemoveDocTags = useRemoveDocTags;
|
|
10149
|
+
exports.useRemoveWorkspaceMembers = useRemoveWorkspaceMembers;
|
|
10113
10150
|
exports.useRequestEmailChange = useRequestEmailChange;
|
|
10114
10151
|
exports.useRespondToEvent = useRespondToEvent;
|
|
10115
10152
|
exports.useResumeCalendarAccountConnect = useResumeCalendarAccountConnect;
|
|
@@ -10156,6 +10193,7 @@ exports.useUpdateProfile = useUpdateProfile;
|
|
|
10156
10193
|
exports.useUpdateProjectFields = useUpdateProjectFields;
|
|
10157
10194
|
exports.useUpdateUserSettings = useUpdateUserSettings;
|
|
10158
10195
|
exports.useUpdateWorkflow = useUpdateWorkflow;
|
|
10196
|
+
exports.useUpdateWorkspace = useUpdateWorkspace;
|
|
10159
10197
|
exports.useUploadDocuments = useUploadDocuments;
|
|
10160
10198
|
exports.useUploadSkillFiles = useUploadSkillFiles;
|
|
10161
10199
|
exports.useUploadUrls = useUploadUrls;
|