@arbidocs/react 0.4.152 → 0.4.154

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/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkI7UUV7FP_cjs = require('./chunk-I7UUV7FP.cjs');
3
+ var chunk37TQBT7Y_cjs = require('./chunk-37TQBT7Y.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: chunkI7UUV7FP_cjs.arbiQueryKeys.allConversations() })
46
+ onSuccess: () => qc.invalidateQueries({ queryKey: chunk37TQBT7Y_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: chunkI7UUV7FP_cjs.arbiQueryKeys.allConversations() })
54
+ onSuccess: () => qc.invalidateQueries({ queryKey: chunk37TQBT7Y_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: chunkI7UUV7FP_cjs.arbiQueryKeys.allConversations() })
62
+ onSuccess: () => qc.invalidateQueries({ queryKey: chunk37TQBT7Y_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: chunkI7UUV7FP_cjs.arbiQueryKeys.allConversations() })
73
+ onSuccess: () => qc.invalidateQueries({ queryKey: chunk37TQBT7Y_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: chunkI7UUV7FP_cjs.arbiQueryKeys.allConversations() })
86
+ onSuccess: () => qc.invalidateQueries({ queryKey: chunk37TQBT7Y_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: [...chunkI7UUV7FP_cjs.arbiQueryKeys.allConversations(), conversationId ?? "", "pending-auth"],
98
+ queryKey: [...chunk37TQBT7Y_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: chunkI7UUV7FP_cjs.arbiQueryKeys.conversationActivity(conversationId ?? ""),
107
+ queryKey: chunk37TQBT7Y_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: chunkI7UUV7FP_cjs.arbiQueryKeys.workflows(),
116
+ queryKey: chunk37TQBT7Y_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: chunkI7UUV7FP_cjs.arbiQueryKeys.workflowRuns(workflowId ?? ""),
126
+ queryKey: chunk37TQBT7Y_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: chunkI7UUV7FP_cjs.arbiQueryKeys.workflows() })
139
+ onSuccess: () => qc.invalidateQueries({ queryKey: chunk37TQBT7Y_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: chunkI7UUV7FP_cjs.arbiQueryKeys.workflows() })
150
+ onSuccess: () => qc.invalidateQueries({ queryKey: chunk37TQBT7Y_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: chunkI7UUV7FP_cjs.arbiQueryKeys.workflows() })
158
+ onSuccess: () => qc.invalidateQueries({ queryKey: chunk37TQBT7Y_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: chunkI7UUV7FP_cjs.arbiMutationKeys.runWorkflow(),
165
+ mutationKey: chunk37TQBT7Y_cjs.arbiMutationKeys.runWorkflow(),
166
166
  mutationFn: (workflowId) => arbi.workflows.run(workflowId),
167
167
  onSuccess: () => Promise.all([
168
- qc.invalidateQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.workflows() }),
169
- qc.invalidateQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.allConversations() })
168
+ qc.invalidateQueries({ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.workflows() }),
169
+ qc.invalidateQueries({ queryKey: chunk37TQBT7Y_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: chunkI7UUV7FP_cjs.arbiQueryKeys.agents() })
178
+ onSuccess: () => qc.invalidateQueries({ queryKey: chunk37TQBT7Y_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: chunkI7UUV7FP_cjs.arbiQueryKeys.agents() })
186
+ onSuccess: () => qc.invalidateQueries({ queryKey: chunk37TQBT7Y_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: chunkI7UUV7FP_cjs.arbiQueryKeys.authorizeLimits(),
192
+ queryKey: chunk37TQBT7Y_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: chunkI7UUV7FP_cjs.arbiQueryKeys.mcpTools(),
200
+ queryKey: chunk37TQBT7Y_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: chunkI7UUV7FP_cjs.arbiQueryKeys.agentConfig(agentExtId),
208
+ queryKey: chunk37TQBT7Y_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: chunkI7UUV7FP_cjs.arbiQueryKeys.models(),
216
+ queryKey: chunk37TQBT7Y_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: chunkI7UUV7FP_cjs.arbiQueryKeys.configs() }),
240
- qc.invalidateQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.agentConfig(agentExtId) }),
239
+ qc.invalidateQueries({ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.configs() }),
240
+ qc.invalidateQueries({ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.agentConfig(agentExtId) }),
241
241
  // The agent list shows the pinned persona/model, so it refreshes too.
242
- qc.invalidateQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.agents() })
242
+ qc.invalidateQueries({ queryKey: chunk37TQBT7Y_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: chunkI7UUV7FP_cjs.arbiQueryKeys.agentWorkspaces(agentExtId ?? ""),
249
+ queryKey: chunk37TQBT7Y_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: chunkI7UUV7FP_cjs.arbiQueryKeys.agentWorkspaces(agentExtId) })
270
+ onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey: chunk37TQBT7Y_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: chunkI7UUV7FP_cjs.arbiQueryKeys.agentWorkspaces(agentExtId) })
289
+ onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey: chunk37TQBT7Y_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: [...chunkI7UUV7FP_cjs.arbiQueryKeys.skills(), options?.includeHidden ?? false],
295
+ queryKey: [...chunk37TQBT7Y_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: chunkI7UUV7FP_cjs.arbiQueryKeys.skills() })
327
+ onSuccess: () => qc.invalidateQueries({ queryKey: chunk37TQBT7Y_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: chunkI7UUV7FP_cjs.arbiQueryKeys.skillSource(docExtId ?? ""),
333
+ queryKey: chunk37TQBT7Y_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: chunkI7UUV7FP_cjs.arbiQueryKeys.skills() })
348
+ onSuccess: () => qc.invalidateQueries({ queryKey: chunk37TQBT7Y_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: chunkI7UUV7FP_cjs.arbiQueryKeys.skills() })
356
+ onSuccess: () => qc.invalidateQueries({ queryKey: chunk37TQBT7Y_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: chunkI7UUV7FP_cjs.arbiQueryKeys.allConversations() })
383
+ onSuccess: () => qc.invalidateQueries({ queryKey: chunk37TQBT7Y_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: chunkI7UUV7FP_cjs.arbiQueryKeys.agentSession(agentId ?? ""),
389
+ queryKey: chunk37TQBT7Y_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: chunkI7UUV7FP_cjs.arbiQueryKeys.agentChats(agentId ?? ""),
398
+ queryKey: chunk37TQBT7Y_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
- chunkI7UUV7FP_cjs.arbiQueryKeys.agentSession(agentId),
408
- chunkI7UUV7FP_cjs.arbiQueryKeys.agentWorkspaces(agentId),
409
- chunkI7UUV7FP_cjs.arbiQueryKeys.agentChats(agentId),
410
- chunkI7UUV7FP_cjs.arbiQueryKeys.sessions()
407
+ chunk37TQBT7Y_cjs.arbiQueryKeys.agentSession(agentId),
408
+ chunk37TQBT7Y_cjs.arbiQueryKeys.agentWorkspaces(agentId),
409
+ chunk37TQBT7Y_cjs.arbiQueryKeys.agentChats(agentId),
410
+ chunk37TQBT7Y_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 } = chunkI7UUV7FP_cjs.useDocuments(workspaceId);
559
- const ordinaryHistory = chunkI7UUV7FP_cjs.useConversations(workspaceId, { enabled: !agentId, live: true });
558
+ const { data: docs = [], isLoading: isLoadingDocuments } = chunk37TQBT7Y_cjs.useDocuments(workspaceId);
559
+ const ordinaryHistory = chunk37TQBT7Y_cjs.useConversations(workspaceId, { enabled: !agentId, live: true });
560
560
  const agentHistory = useAgentChats(agentId);
561
561
  const stored = React3.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 = chunkI7UUV7FP_cjs.useAssistantQuery();
574
+ const query = chunk37TQBT7Y_cjs.useAssistantQuery();
575
575
  const { mutateAsync } = query;
576
576
  const [stagedFiles, setStagedFiles] = React3.useState([]);
577
577
  const [threads, setThreads] = React3.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 = chunkI7UUV7FP_cjs.useConversationThreads(workspaceId, active.conversationId ?? void 0, {
634
+ const loaded = chunk37TQBT7Y_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 chunkI7UUV7FP_cjs.refreshDocuments(queryClient, arbi, uploaded);
1109
+ if (uploaded.length) await chunk37TQBT7Y_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 chunkI7UUV7FP_cjs.refreshDocuments(queryClient, arbi, msg.doc_ext_ids);
1412
- void queryClient.invalidateQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.tags(workspaceId) });
1411
+ if (msg.doc_ext_ids?.length) void chunk37TQBT7Y_cjs.refreshDocuments(queryClient, arbi, msg.doc_ext_ids);
1412
+ void queryClient.invalidateQueries({ queryKey: chunk37TQBT7Y_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 (chunkI7UUV7FP_cjs.FINISHED_DOCUMENT_STATUSES.has(msg.status))
1418
- void chunkI7UUV7FP_cjs.refreshDocuments(queryClient, arbi, [msg.doc_ext_id]);
1417
+ if (chunk37TQBT7Y_cjs.FINISHED_DOCUMENT_STATUSES.has(msg.status))
1418
+ void chunk37TQBT7Y_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 = chunkI7UUV7FP_cjs.useWorkspaces();
1546
+ const query = chunk37TQBT7Y_cjs.useWorkspaces();
1547
1547
  const { select, ...rest } = options;
1548
1548
  const defaultSelect = React3.useCallback(
1549
1549
  (workspace) => arbi.selectWorkspace(workspace.id),
@@ -1562,7 +1562,7 @@ function useUpdateWorkspace() {
1562
1562
  const qc = reactQuery.useQueryClient();
1563
1563
  return reactQuery.useMutation({
1564
1564
  mutationFn: (body) => arbi.workspaces.update(body),
1565
- onSuccess: () => qc.invalidateQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.workspaces() })
1565
+ onSuccess: () => qc.invalidateQueries({ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.workspaces() })
1566
1566
  });
1567
1567
  }
1568
1568
  var MEMBERS_STALE_MS = 15 * 60 * 1e3;
@@ -1570,7 +1570,7 @@ function useWorkspaceUsers(workspaceId, options) {
1570
1570
  const arbi = chunkR2MF7YCW_cjs.useArbi();
1571
1571
  const workspace = workspaceId ?? (arbi.hasWorkspace ? arbi.getWorkspaceId() : "");
1572
1572
  return reactQuery.useQuery({
1573
- queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.workspaceUsers(workspace),
1573
+ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.workspaceUsers(workspace),
1574
1574
  enabled: !!workspace && (options?.enabled ?? arbi.hasWorkspace),
1575
1575
  queryFn: async () => {
1576
1576
  await options?.beforeFetch?.();
@@ -1582,21 +1582,21 @@ function useWorkspaceUsers(workspaceId, options) {
1582
1582
  }
1583
1583
  function settleMembership(qc) {
1584
1584
  return Promise.all([
1585
- qc.invalidateQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.allWorkspaceUsers() }),
1586
- qc.invalidateQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.workspaces() }),
1585
+ qc.invalidateQueries({ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.allWorkspaceUsers() }),
1586
+ qc.invalidateQueries({ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.workspaces() }),
1587
1587
  // A project's collaborator quota counts workspace members.
1588
- qc.invalidateQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.projects() })
1588
+ qc.invalidateQueries({ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.projects() })
1589
1589
  ]);
1590
1590
  }
1591
1591
  function useAddWorkspaceMembers() {
1592
1592
  const arbi = chunkR2MF7YCW_cjs.useArbi();
1593
1593
  const qc = reactQuery.useQueryClient();
1594
1594
  return reactQuery.useMutation({
1595
- mutationKey: chunkI7UUV7FP_cjs.arbiMutationKeys.workspaceMembership(),
1595
+ mutationKey: chunk37TQBT7Y_cjs.arbiMutationKeys.workspaceMembership(),
1596
1596
  mutationFn: (request) => arbi.workspaces.addMembers(request),
1597
1597
  onSuccess: () => Promise.all([
1598
1598
  settleMembership(qc),
1599
- qc.invalidateQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.contacts() })
1599
+ qc.invalidateQueries({ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.contacts() })
1600
1600
  ])
1601
1601
  });
1602
1602
  }
@@ -1604,7 +1604,7 @@ function useRemoveWorkspaceMembers() {
1604
1604
  const arbi = chunkR2MF7YCW_cjs.useArbi();
1605
1605
  const qc = reactQuery.useQueryClient();
1606
1606
  return reactQuery.useMutation({
1607
- mutationKey: chunkI7UUV7FP_cjs.arbiMutationKeys.workspaceMembership(),
1607
+ mutationKey: chunk37TQBT7Y_cjs.arbiMutationKeys.workspaceMembership(),
1608
1608
  mutationFn: (userIds) => arbi.workspaces.removeUsers(userIds),
1609
1609
  onSuccess: () => settleMembership(qc)
1610
1610
  });
@@ -1613,20 +1613,28 @@ function useSetWorkspaceMemberRoles() {
1613
1613
  const arbi = chunkR2MF7YCW_cjs.useArbi();
1614
1614
  const qc = reactQuery.useQueryClient();
1615
1615
  return reactQuery.useMutation({
1616
- mutationKey: chunkI7UUV7FP_cjs.arbiMutationKeys.setWorkspaceMemberRoles(),
1616
+ mutationKey: chunk37TQBT7Y_cjs.arbiMutationKeys.setWorkspaceMemberRoles(),
1617
1617
  mutationFn: ({ userIds, role }) => arbi.workspaces.setUserRole(userIds, role),
1618
1618
  onSuccess: () => Promise.all([
1619
- qc.invalidateQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.allWorkspaceUsers() }),
1620
- qc.invalidateQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.workspaces() })
1619
+ qc.invalidateQueries({ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.allWorkspaceUsers() }),
1620
+ qc.invalidateQueries({ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.workspaces() })
1621
1621
  ])
1622
1622
  });
1623
1623
  }
1624
+ function useDeleteWorkspaces() {
1625
+ const arbi = chunkR2MF7YCW_cjs.useArbi();
1626
+ const qc = reactQuery.useQueryClient();
1627
+ return reactQuery.useMutation({
1628
+ mutationFn: (workspaceIds) => arbi.workspaces.delete(workspaceIds),
1629
+ onSuccess: () => qc.invalidateQueries({ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.workspaces() })
1630
+ });
1631
+ }
1624
1632
  function useFacts(workspaceId, options) {
1625
1633
  const arbi = chunkR2MF7YCW_cjs.useArbi();
1626
1634
  const { enabled = true, ...filter } = options ?? {};
1627
1635
  const workspace = workspaceId ?? (arbi.hasWorkspace ? arbi.getWorkspaceId() : "");
1628
1636
  return reactQuery.useQuery({
1629
- queryKey: [...chunkI7UUV7FP_cjs.arbiQueryKeys.facts(workspace), filter],
1637
+ queryKey: [...chunk37TQBT7Y_cjs.arbiQueryKeys.facts(workspace), filter],
1630
1638
  queryFn: () => arbi.facts.list(filter),
1631
1639
  enabled: enabled && !!workspace && arbi.hasWorkspace,
1632
1640
  staleTime: 3e4
@@ -1634,7 +1642,7 @@ function useFacts(workspaceId, options) {
1634
1642
  }
1635
1643
  function useRefreshFacts() {
1636
1644
  const qc = reactQuery.useQueryClient();
1637
- return () => qc.invalidateQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.allFacts() });
1645
+ return () => qc.invalidateQueries({ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.allFacts() });
1638
1646
  }
1639
1647
  function useCreateFact() {
1640
1648
  const arbi = chunkR2MF7YCW_cjs.useArbi();
@@ -1688,7 +1696,7 @@ function usePassageQuotes(docIds) {
1688
1696
  const arbi = chunkR2MF7YCW_cjs.useArbi();
1689
1697
  const passages = reactQuery.useQueries({
1690
1698
  queries: [...new Set(docIds ?? [])].map((docId) => ({
1691
- queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.parsedDoc(docId, "final"),
1699
+ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.parsedDoc(docId, "final"),
1692
1700
  queryFn: () => arbi.documents.getParsedContent(docId, "final"),
1693
1701
  enabled: arbi.hasWorkspace,
1694
1702
  staleTime: PARSED_STALE_TIME
@@ -1718,7 +1726,7 @@ function useDocumentsSupport() {
1718
1726
  function applyOptimisticDocumentEdit(qc, updates) {
1719
1727
  const byId = new Map(updates.map((update) => [update.external_id, update]));
1720
1728
  const previous = [];
1721
- chunkI7UUV7FP_cjs.patchDocuments(qc, (old) => {
1729
+ chunk37TQBT7Y_cjs.patchDocuments(qc, (old) => {
1722
1730
  let changed = false;
1723
1731
  const next = old.map((doc) => {
1724
1732
  const update = byId.get(doc.external_id);
@@ -1731,9 +1739,9 @@ function applyOptimisticDocumentEdit(qc, updates) {
1731
1739
  });
1732
1740
  const previousOwn = updates.map((update) => {
1733
1741
  const own = qc.getQueryData(
1734
- chunkI7UUV7FP_cjs.arbiQueryKeys.document(update.external_id)
1742
+ chunk37TQBT7Y_cjs.arbiQueryKeys.document(update.external_id)
1735
1743
  );
1736
- if (own) chunkI7UUV7FP_cjs.setCachedDocument(qc, { ...own, ...update });
1744
+ if (own) chunk37TQBT7Y_cjs.setCachedDocument(qc, { ...own, ...update });
1737
1745
  return [update.external_id, own];
1738
1746
  });
1739
1747
  return { optimistic: true, previous, previousOwn };
@@ -1743,38 +1751,38 @@ function rollbackOptimisticDocumentEdit(qc, context) {
1743
1751
  if (!edit?.optimistic) return;
1744
1752
  if (edit.previous.length) {
1745
1753
  const restore = new Map(edit.previous.map((doc) => [doc.external_id, doc]));
1746
- chunkI7UUV7FP_cjs.patchDocuments(
1754
+ chunk37TQBT7Y_cjs.patchDocuments(
1747
1755
  qc,
1748
1756
  (old) => old.some((doc) => restore.has(doc.external_id)) ? old.map((doc) => restore.get(doc.external_id) ?? doc) : old
1749
1757
  );
1750
1758
  }
1751
- for (const [id, own] of edit.previousOwn) qc.setQueryData(chunkI7UUV7FP_cjs.arbiQueryKeys.document(id), own);
1759
+ for (const [id, own] of edit.previousOwn) qc.setQueryData(chunk37TQBT7Y_cjs.arbiQueryKeys.document(id), own);
1752
1760
  }
1753
1761
  function settleUpdatedDocuments(qc, updated) {
1754
1762
  if (!updated.length) return;
1755
1763
  const byId = new Map(updated.map((doc) => [doc.external_id, doc]));
1756
- chunkI7UUV7FP_cjs.patchDocuments(
1764
+ chunk37TQBT7Y_cjs.patchDocuments(
1757
1765
  qc,
1758
1766
  (old) => old.some((doc) => byId.has(doc.external_id)) ? old.map((doc) => byId.get(doc.external_id) ?? doc) : old
1759
1767
  );
1760
- for (const doc of updated) chunkI7UUV7FP_cjs.setCachedDocument(qc, doc);
1768
+ for (const doc of updated) chunk37TQBT7Y_cjs.setCachedDocument(qc, doc);
1761
1769
  }
1762
1770
  function patchEachDocument(qc, docIds, reducer) {
1763
1771
  const ids = new Set(docIds);
1764
- chunkI7UUV7FP_cjs.patchDocuments(
1772
+ chunk37TQBT7Y_cjs.patchDocuments(
1765
1773
  qc,
1766
1774
  (old) => old.some((doc) => ids.has(doc.external_id)) ? old.map((doc) => ids.has(doc.external_id) ? reducer(doc) : doc) : old
1767
1775
  );
1768
- for (const id of ids) chunkI7UUV7FP_cjs.patchCachedDocument(qc, id, reducer);
1776
+ for (const id of ids) chunk37TQBT7Y_cjs.patchCachedDocument(qc, id, reducer);
1769
1777
  }
1770
1778
  function workspaceOf(qc, docId) {
1771
1779
  for (const [, docs] of qc.getQueriesData({
1772
- queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.allDocuments()
1780
+ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.allDocuments()
1773
1781
  })) {
1774
1782
  const doc = Array.isArray(docs) ? docs.find((d) => d.external_id === docId) : void 0;
1775
1783
  if (doc) return doc.workspace_ext_id;
1776
1784
  }
1777
- return qc.getQueryData(chunkI7UUV7FP_cjs.arbiQueryKeys.document(docId))?.workspace_ext_id;
1785
+ return qc.getQueryData(chunk37TQBT7Y_cjs.arbiQueryKeys.document(docId))?.workspace_ext_id;
1778
1786
  }
1779
1787
  function settleAssignedDocTags(qc, created) {
1780
1788
  const byDoc = /* @__PURE__ */ new Map();
@@ -1792,13 +1800,13 @@ function settleAssignedDocTags(qc, created) {
1792
1800
  ...doc,
1793
1801
  doctags: [...doc.doctags ?? [], ...byDoc.get(doc.external_id) ?? []]
1794
1802
  }));
1795
- for (const [workspaceId, delta] of workspaces) chunkI7UUV7FP_cjs.adjustTagCounts(qc, workspaceId, delta);
1803
+ for (const [workspaceId, delta] of workspaces) chunk37TQBT7Y_cjs.adjustTagCounts(qc, workspaceId, delta);
1796
1804
  }
1797
1805
  function settleRemovedDocTags(qc, { tagId, docIds }) {
1798
1806
  const ids = new Set(docIds);
1799
1807
  const removedByWorkspace = /* @__PURE__ */ new Map();
1800
1808
  for (const [, docs] of qc.getQueriesData({
1801
- queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.allDocuments()
1809
+ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.allDocuments()
1802
1810
  })) {
1803
1811
  for (const doc of Array.isArray(docs) ? docs : []) {
1804
1812
  if (!ids.has(doc.external_id)) continue;
@@ -1814,7 +1822,7 @@ function settleRemovedDocTags(qc, { tagId, docIds }) {
1814
1822
  doctags: (doc.doctags ?? []).filter((dt) => dt.tag_ext_id !== tagId)
1815
1823
  }));
1816
1824
  for (const [workspaceId, removed] of removedByWorkspace)
1817
- chunkI7UUV7FP_cjs.adjustTagCounts(qc, workspaceId, /* @__PURE__ */ new Map([[tagId, -removed]]));
1825
+ chunk37TQBT7Y_cjs.adjustTagCounts(qc, workspaceId, /* @__PURE__ */ new Map([[tagId, -removed]]));
1818
1826
  }
1819
1827
  function settleUpdatedDocTag(qc, updated) {
1820
1828
  patchEachDocument(qc, [updated.doc_ext_id], (doc) => ({
@@ -1824,22 +1832,22 @@ function settleUpdatedDocTag(qc, updated) {
1824
1832
  }
1825
1833
  var replayableDocumentMutations = [
1826
1834
  {
1827
- mutationKey: chunkI7UUV7FP_cjs.arbiMutationKeys.updateDocuments(),
1835
+ mutationKey: chunk37TQBT7Y_cjs.arbiMutationKeys.updateDocuments(),
1828
1836
  run: (client, input) => browser.documents.updateDocuments(client, input.documents),
1829
1837
  settle: (qc, updated) => settleUpdatedDocuments(qc, updated)
1830
1838
  },
1831
1839
  {
1832
- mutationKey: chunkI7UUV7FP_cjs.arbiMutationKeys.assignDocTags(),
1840
+ mutationKey: chunk37TQBT7Y_cjs.arbiMutationKeys.assignDocTags(),
1833
1841
  run: (client, input) => browser.doctags.assignDocTags(client, input.tagId, input.docIds, input.note, input.citations),
1834
1842
  settle: (qc, created) => settleAssignedDocTags(qc, created)
1835
1843
  },
1836
1844
  {
1837
- mutationKey: chunkI7UUV7FP_cjs.arbiMutationKeys.removeDocTags(),
1845
+ mutationKey: chunk37TQBT7Y_cjs.arbiMutationKeys.removeDocTags(),
1838
1846
  run: (client, input) => browser.doctags.removeDocTags(client, input.tagId, input.docIds),
1839
1847
  settle: (qc, _data, input) => settleRemovedDocTags(qc, input)
1840
1848
  },
1841
1849
  {
1842
- mutationKey: chunkI7UUV7FP_cjs.arbiMutationKeys.updateDocTag(),
1850
+ mutationKey: chunk37TQBT7Y_cjs.arbiMutationKeys.updateDocTag(),
1843
1851
  run: (client, input) => browser.doctags.updateDocTag(client, input.tagId, input.docId, {
1844
1852
  note: input.note,
1845
1853
  citations: input.citations
@@ -1862,7 +1870,7 @@ function useUpdateDocuments() {
1862
1870
  const qc = reactQuery.useQueryClient();
1863
1871
  return resolvingOffline(
1864
1872
  reactQuery.useMutation({
1865
- mutationKey: chunkI7UUV7FP_cjs.arbiMutationKeys.updateDocuments(),
1873
+ mutationKey: chunk37TQBT7Y_cjs.arbiMutationKeys.updateDocuments(),
1866
1874
  mutationFn: ({ documents }) => arbi.documents.update(documents),
1867
1875
  onMutate: ({ documents }) => reactQuery.onlineManager.isOnline() || !documents.length ? void 0 : applyOptimisticDocumentEdit(qc, documents),
1868
1876
  onError: (_error, _input, context) => rollbackOptimisticDocumentEdit(qc, context),
@@ -1875,30 +1883,30 @@ function useDeleteDocuments() {
1875
1883
  const qc = reactQuery.useQueryClient();
1876
1884
  const { onDocumentsDeleted } = useDocumentsSupport();
1877
1885
  return reactQuery.useMutation({
1878
- mutationKey: chunkI7UUV7FP_cjs.arbiMutationKeys.deleteDocuments(),
1886
+ mutationKey: chunk37TQBT7Y_cjs.arbiMutationKeys.deleteDocuments(),
1879
1887
  mutationFn: (docIds) => arbi.documents.delete(docIds),
1880
1888
  onSuccess: (_data, docIds) => {
1881
1889
  const gone = new Set(docIds);
1882
- chunkI7UUV7FP_cjs.patchDocuments(
1890
+ chunk37TQBT7Y_cjs.patchDocuments(
1883
1891
  qc,
1884
1892
  (old) => old.some((doc) => gone.has(doc.external_id)) ? old.filter((doc) => !gone.has(doc.external_id)) : old
1885
1893
  );
1886
- chunkI7UUV7FP_cjs.forgetDocuments(qc, docIds);
1894
+ chunk37TQBT7Y_cjs.forgetDocuments(qc, docIds);
1887
1895
  onDocumentsDeleted?.(docIds);
1888
- return qc.invalidateQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.workspaces() });
1896
+ return qc.invalidateQueries({ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.workspaces() });
1889
1897
  }
1890
1898
  });
1891
1899
  }
1892
1900
  async function settleUpload(qc, arbi, docIds, processingStatus) {
1893
- if (docIds?.length) await chunkI7UUV7FP_cjs.refreshDocuments(qc, arbi, docIds, { processingStatus });
1894
- await qc.invalidateQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.workspaces() });
1901
+ if (docIds?.length) await chunk37TQBT7Y_cjs.refreshDocuments(qc, arbi, docIds, { processingStatus });
1902
+ await qc.invalidateQueries({ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.workspaces() });
1895
1903
  }
1896
1904
  function useUploadDocuments() {
1897
1905
  const arbi = chunkR2MF7YCW_cjs.useArbi();
1898
1906
  const qc = reactQuery.useQueryClient();
1899
1907
  const { processingStatus } = useDocumentsSupport();
1900
1908
  return reactQuery.useMutation({
1901
- mutationKey: chunkI7UUV7FP_cjs.arbiMutationKeys.uploadDocuments(),
1909
+ mutationKey: chunk37TQBT7Y_cjs.arbiMutationKeys.uploadDocuments(),
1902
1910
  mutationFn: ({ files, options }) => arbi.documents.upload(files, options),
1903
1911
  onSuccess: (result) => settleUpload(qc, arbi, result.doc_ext_ids, processingStatus)
1904
1912
  });
@@ -1908,7 +1916,7 @@ function useUploadUrls() {
1908
1916
  const qc = reactQuery.useQueryClient();
1909
1917
  const { processingStatus } = useDocumentsSupport();
1910
1918
  return reactQuery.useMutation({
1911
- mutationKey: chunkI7UUV7FP_cjs.arbiMutationKeys.uploadUrls(),
1919
+ mutationKey: chunk37TQBT7Y_cjs.arbiMutationKeys.uploadUrls(),
1912
1920
  mutationFn: ({ urls, shared, configExtId }) => arbi.documents.uploadUrl(urls, { shared, configExtId }),
1913
1921
  onSuccess: (result) => settleUpload(qc, arbi, result.doc_ext_ids, processingStatus)
1914
1922
  });
@@ -1918,7 +1926,7 @@ function useAssignDocTags() {
1918
1926
  const qc = reactQuery.useQueryClient();
1919
1927
  return resolvingOffline(
1920
1928
  reactQuery.useMutation({
1921
- mutationKey: chunkI7UUV7FP_cjs.arbiMutationKeys.assignDocTags(),
1929
+ mutationKey: chunk37TQBT7Y_cjs.arbiMutationKeys.assignDocTags(),
1922
1930
  mutationFn: ({ tagId, docIds, note, citations }) => arbi.doctags.assign(tagId, docIds, note, citations),
1923
1931
  onSuccess: (created) => settleAssignedDocTags(qc, created)
1924
1932
  })
@@ -1929,7 +1937,7 @@ function useRemoveDocTags() {
1929
1937
  const qc = reactQuery.useQueryClient();
1930
1938
  return resolvingOffline(
1931
1939
  reactQuery.useMutation({
1932
- mutationKey: chunkI7UUV7FP_cjs.arbiMutationKeys.removeDocTags(),
1940
+ mutationKey: chunk37TQBT7Y_cjs.arbiMutationKeys.removeDocTags(),
1933
1941
  mutationFn: ({ tagId, docIds }) => arbi.doctags.remove(tagId, docIds),
1934
1942
  onSuccess: (_data, input) => settleRemovedDocTags(qc, input)
1935
1943
  })
@@ -1940,7 +1948,7 @@ function useUpdateDocTag() {
1940
1948
  const qc = reactQuery.useQueryClient();
1941
1949
  return resolvingOffline(
1942
1950
  reactQuery.useMutation({
1943
- mutationKey: chunkI7UUV7FP_cjs.arbiMutationKeys.updateDocTag(),
1951
+ mutationKey: chunk37TQBT7Y_cjs.arbiMutationKeys.updateDocTag(),
1944
1952
  mutationFn: ({ tagId, docId, note, citations }) => arbi.doctags.update(tagId, docId, { note, citations }),
1945
1953
  onSuccess: (updated) => settleUpdatedDocTag(qc, updated)
1946
1954
  })
@@ -1951,13 +1959,13 @@ function useGenerateDocTags() {
1951
1959
  const qc = reactQuery.useQueryClient();
1952
1960
  const { onProcessingQueued } = useDocumentsSupport();
1953
1961
  return reactQuery.useMutation({
1954
- mutationKey: chunkI7UUV7FP_cjs.arbiMutationKeys.generateDocTags(),
1962
+ mutationKey: chunk37TQBT7Y_cjs.arbiMutationKeys.generateDocTags(),
1955
1963
  mutationFn: ({ tagIds, docIds, overwrite }) => arbi.doctags.generate(tagIds, docIds, { overwrite }),
1956
1964
  onMutate: ({ docIds }) => {
1957
1965
  if (!onProcessingQueued || !docIds.length) return void 0;
1958
1966
  const workspaceId = arbi.hasWorkspace ? arbi.getWorkspaceId() : "";
1959
1967
  const listed = new Map(
1960
- (chunkI7UUV7FP_cjs.getCachedDocuments(qc, workspaceId) ?? []).map((doc) => [doc.external_id, doc])
1968
+ (chunk37TQBT7Y_cjs.getCachedDocuments(qc, workspaceId) ?? []).map((doc) => [doc.external_id, doc])
1961
1969
  );
1962
1970
  return {
1963
1971
  undo: onProcessingQueued(
@@ -1979,13 +1987,13 @@ function useFinaliseTranslation() {
1979
1987
  const { processingStatus } = useDocumentsSupport();
1980
1988
  return reactQuery.useMutation({
1981
1989
  mutationFn: (docId) => arbi.documents.finaliseTranslation(docId),
1982
- onSuccess: (result) => void chunkI7UUV7FP_cjs.refreshDocuments(qc, arbi, [result.document_ext_id], { processingStatus })
1990
+ onSuccess: (result) => void chunk37TQBT7Y_cjs.refreshDocuments(qc, arbi, [result.document_ext_id], { processingStatus })
1983
1991
  });
1984
1992
  }
1985
1993
 
1986
1994
  // src/offline.ts
1987
1995
  var REPLAYABLE = [
1988
- ...chunkI7UUV7FP_cjs.replayableTagMutations,
1996
+ ...chunk37TQBT7Y_cjs.replayableTagMutations,
1989
1997
  ...replayableDocumentMutations
1990
1998
  ];
1991
1999
  function isReplayableArbiMutation(mutationKey) {
@@ -2015,13 +2023,13 @@ function isRestorableArbiQueryOnline(queryKey, data) {
2015
2023
  const docs = Array.isArray(data) ? data : [data];
2016
2024
  return !docs.some((doc) => {
2017
2025
  const status = doc?.status;
2018
- return !!status && !chunkI7UUV7FP_cjs.FINISHED_DOCUMENT_STATUSES.has(status);
2026
+ return !!status && !chunk37TQBT7Y_cjs.FINISHED_DOCUMENT_STATUSES.has(status);
2019
2027
  });
2020
2028
  }
2021
2029
  function useFilteredProjects(filters, options) {
2022
2030
  const arbi = chunkR2MF7YCW_cjs.useArbi();
2023
2031
  return reactQuery.useQuery({
2024
- queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.projectsFiltered(filters.stage, filters.leadUser),
2032
+ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.projectsFiltered(filters.stage, filters.leadUser),
2025
2033
  queryFn: () => arbi.projects.list(filters),
2026
2034
  enabled: options?.enabled ?? arbi.isLoggedIn
2027
2035
  });
@@ -2035,8 +2043,8 @@ function useUpdateProjectFields() {
2035
2043
  patch
2036
2044
  }) => arbi.projects.update(projectExtId, patch),
2037
2045
  onSuccess: () => {
2038
- void qc.invalidateQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.projects() });
2039
- void qc.invalidateQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.workspaces() });
2046
+ void qc.invalidateQueries({ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.projects() });
2047
+ void qc.invalidateQueries({ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.workspaces() });
2040
2048
  }
2041
2049
  });
2042
2050
  }
@@ -2044,7 +2052,7 @@ function useProjectEvents(projectExtId, options) {
2044
2052
  const arbi = chunkR2MF7YCW_cjs.useArbi();
2045
2053
  return reactQuery.useQuery({
2046
2054
  queryKey: [
2047
- ...chunkI7UUV7FP_cjs.arbiQueryKeys.projectEvents(projectExtId ?? ""),
2055
+ ...chunk37TQBT7Y_cjs.arbiQueryKeys.projectEvents(projectExtId ?? ""),
2048
2056
  options?.kind ?? "all",
2049
2057
  options?.limit ?? "default"
2050
2058
  ],
@@ -2055,7 +2063,7 @@ function useProjectEvents(projectExtId, options) {
2055
2063
  function useConversationUsage(conversationId, options) {
2056
2064
  const arbi = chunkR2MF7YCW_cjs.useArbi();
2057
2065
  return reactQuery.useQuery({
2058
- queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.conversationUsage(conversationId ?? ""),
2066
+ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.conversationUsage(conversationId ?? ""),
2059
2067
  queryFn: () => arbi.conversations.usage(conversationId),
2060
2068
  enabled: (options?.enabled ?? true) && !!conversationId && arbi.isLoggedIn,
2061
2069
  refetchInterval: options?.live ? 1e4 : false
@@ -2064,7 +2072,7 @@ function useConversationUsage(conversationId, options) {
2064
2072
  function useProjectConversationUsage(projectExtId, monthsBack = 0, options) {
2065
2073
  const arbi = chunkR2MF7YCW_cjs.useArbi();
2066
2074
  return reactQuery.useQuery({
2067
- queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.projectConversationUsage(projectExtId ?? "", monthsBack),
2075
+ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.projectConversationUsage(projectExtId ?? "", monthsBack),
2068
2076
  queryFn: () => arbi.projects.usageByConversation(projectExtId, monthsBack),
2069
2077
  enabled: (options?.enabled ?? true) && !!projectExtId && arbi.isLoggedIn
2070
2078
  });
@@ -2091,7 +2099,7 @@ function useChargeWatch(project, isPending) {
2091
2099
  React3.useEffect(() => {
2092
2100
  if (!isSlow) return;
2093
2101
  const timer = setInterval(
2094
- () => queryClient.invalidateQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.projects(), exact: true }),
2102
+ () => queryClient.invalidateQueries({ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.projects(), exact: true }),
2095
2103
  POLL_EVERY_MS
2096
2104
  );
2097
2105
  return () => clearInterval(timer);
@@ -2118,8 +2126,8 @@ function useChargeWatch(project, isPending) {
2118
2126
  if (!watch2 || watch2.settled) return;
2119
2127
  let fresh;
2120
2128
  try {
2121
- await queryClient.refetchQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.projects(), exact: true });
2122
- fresh = queryClient.getQueryData(chunkI7UUV7FP_cjs.arbiQueryKeys.projects())?.find((p) => p.external_id === project.external_id);
2129
+ await queryClient.refetchQueries({ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.projects(), exact: true });
2130
+ fresh = queryClient.getQueryData(chunk37TQBT7Y_cjs.arbiQueryKeys.projects())?.find((p) => p.external_id === project.external_id);
2123
2131
  } catch {
2124
2132
  fresh = void 0;
2125
2133
  }
@@ -2132,21 +2140,21 @@ function useChargeWatch(project, isPending) {
2132
2140
 
2133
2141
  // src/billing.ts
2134
2142
  function refreshProjects(qc, wide = false) {
2135
- void qc.invalidateQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.projects() });
2143
+ void qc.invalidateQueries({ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.projects() });
2136
2144
  if (wide) {
2137
- void qc.invalidateQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.userSettings() });
2138
- void qc.invalidateQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.workspaces() });
2145
+ void qc.invalidateQueries({ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.userSettings() });
2146
+ void qc.invalidateQueries({ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.workspaces() });
2139
2147
  }
2140
2148
  }
2141
2149
  var retryAbortOnly = (failureCount, error) => failureCount < 1 && error?.name === "AbortError";
2142
2150
  function useInvalidateProjects() {
2143
2151
  const qc = reactQuery.useQueryClient();
2144
- return () => qc.invalidateQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.projects() });
2152
+ return () => qc.invalidateQueries({ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.projects() });
2145
2153
  }
2146
2154
  function useProducts(options) {
2147
2155
  const arbi = chunkR2MF7YCW_cjs.useArbi();
2148
2156
  return reactQuery.useQuery({
2149
- queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.products(),
2157
+ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.products(),
2150
2158
  queryFn: () => arbi.projects.products(),
2151
2159
  staleTime: 5 * 6e4,
2152
2160
  enabled: (options?.enabled ?? true) && arbi.isLoggedIn
@@ -2199,15 +2207,15 @@ function useCancelProjectSubscription() {
2199
2207
  return reactQuery.useMutation({
2200
2208
  mutationFn: (projectExtId) => arbi.projects.cancelSubscription(projectExtId),
2201
2209
  onSuccess: () => {
2202
- void qc.invalidateQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.projects() });
2203
- void qc.invalidateQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.userSettings() });
2210
+ void qc.invalidateQueries({ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.projects() });
2211
+ void qc.invalidateQueries({ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.userSettings() });
2204
2212
  }
2205
2213
  });
2206
2214
  }
2207
2215
  function usePreviewProjectPlanChange(projectExtId, change) {
2208
2216
  const arbi = chunkR2MF7YCW_cjs.useArbi();
2209
2217
  return reactQuery.useQuery({
2210
- queryKey: [...chunkI7UUV7FP_cjs.arbiQueryKeys.billingQuotes(), "preview", projectExtId, change],
2218
+ queryKey: [...chunk37TQBT7Y_cjs.arbiQueryKeys.billingQuotes(), "preview", projectExtId, change],
2211
2219
  queryFn: () => arbi.projects.previewPlanChange(projectExtId, change),
2212
2220
  enabled: !!change && arbi.isLoggedIn,
2213
2221
  staleTime: 6e4,
@@ -2217,7 +2225,7 @@ function usePreviewProjectPlanChange(projectExtId, change) {
2217
2225
  function usePlanQuote(projectExtId, body) {
2218
2226
  const arbi = chunkR2MF7YCW_cjs.useArbi();
2219
2227
  return reactQuery.useQuery({
2220
- queryKey: [...chunkI7UUV7FP_cjs.arbiQueryKeys.billingQuotes(), "plan", projectExtId ?? null, body],
2228
+ queryKey: [...chunk37TQBT7Y_cjs.arbiQueryKeys.billingQuotes(), "plan", projectExtId ?? null, body],
2221
2229
  queryFn: () => arbi.projects.quotePlan(projectExtId ?? null, body),
2222
2230
  enabled: !!body && arbi.isLoggedIn,
2223
2231
  staleTime: 5 * 6e4,
@@ -2227,7 +2235,7 @@ function usePlanQuote(projectExtId, body) {
2227
2235
  function useAddonQuote(projectExtId, kind, enabled = true) {
2228
2236
  const arbi = chunkR2MF7YCW_cjs.useArbi();
2229
2237
  return reactQuery.useQuery({
2230
- queryKey: [...chunkI7UUV7FP_cjs.arbiQueryKeys.billingQuotes(), "addon", projectExtId, kind],
2238
+ queryKey: [...chunk37TQBT7Y_cjs.arbiQueryKeys.billingQuotes(), "addon", projectExtId, kind],
2231
2239
  queryFn: () => arbi.projects.quoteAddon(projectExtId, kind),
2232
2240
  enabled: enabled && arbi.isLoggedIn,
2233
2241
  staleTime: 6e4,
@@ -2273,7 +2281,7 @@ function useUpdateProjectAddonSettings() {
2273
2281
  function useContacts(options) {
2274
2282
  const arbi = chunkR2MF7YCW_cjs.useArbi();
2275
2283
  return reactQuery.useQuery({
2276
- queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.contacts(),
2284
+ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.contacts(),
2277
2285
  queryFn: () => arbi.contacts.list(),
2278
2286
  enabled: (options?.enabled ?? true) && arbi.isLoggedIn
2279
2287
  });
@@ -2288,7 +2296,7 @@ function usePendingContacts(options) {
2288
2296
  }
2289
2297
  function useInvalidateContacts() {
2290
2298
  const qc = reactQuery.useQueryClient();
2291
- return () => qc.invalidateQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.contacts() });
2299
+ return () => qc.invalidateQueries({ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.contacts() });
2292
2300
  }
2293
2301
  function useInviteContacts() {
2294
2302
  const arbi = chunkR2MF7YCW_cjs.useArbi();
@@ -2326,7 +2334,7 @@ function useSearchContacts(q, { debounceMs = 200 } = {}) {
2326
2334
  const arbi = chunkR2MF7YCW_cjs.useArbi();
2327
2335
  const term = useDebounced(q.trim(), debounceMs);
2328
2336
  return reactQuery.useQuery({
2329
- queryKey: [...chunkI7UUV7FP_cjs.arbiQueryKeys.contacts(), "search", term],
2337
+ queryKey: [...chunk37TQBT7Y_cjs.arbiQueryKeys.contacts(), "search", term],
2330
2338
  queryFn: () => arbi.contacts.search(term),
2331
2339
  enabled: term.length > 0 && arbi.isLoggedIn,
2332
2340
  staleTime: 6e4,
@@ -2345,7 +2353,7 @@ function useDebounced(value, ms) {
2345
2353
  function useHouseTemplateCandidates(workspaceId, enabled, staleTime = 6e4) {
2346
2354
  const arbi = chunkR2MF7YCW_cjs.useArbi();
2347
2355
  return reactQuery.useQuery({
2348
- queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.houseTemplateCandidates(workspaceId ?? ""),
2356
+ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.houseTemplateCandidates(workspaceId ?? ""),
2349
2357
  enabled: enabled && !!workspaceId && arbi.hasWorkspace,
2350
2358
  staleTime,
2351
2359
  queryFn: () => arbi.houseTemplates.candidates()
@@ -2356,7 +2364,7 @@ function useSetWorkspaceHouseTemplate() {
2356
2364
  const queryClient = reactQuery.useQueryClient();
2357
2365
  return reactQuery.useMutation({
2358
2366
  mutationFn: (documentId) => arbi.houseTemplates.setWorkspace(documentId),
2359
- onSuccess: () => queryClient.invalidateQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.workspaces() })
2367
+ onSuccess: () => queryClient.invalidateQueries({ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.workspaces() })
2360
2368
  });
2361
2369
  }
2362
2370
  var supportsHouseTemplates = browser.houseTemplates.supportsHouseTemplates;
@@ -2457,11 +2465,11 @@ function useProfile(options) {
2457
2465
  const { client, enabled } = useAccountClient();
2458
2466
  const qc = reactQuery.useQueryClient();
2459
2467
  React3.useEffect(
2460
- () => client.onProfileChange(() => qc.setQueryData(chunkI7UUV7FP_cjs.arbiQueryKeys.profile(), client.profile())),
2468
+ () => client.onProfileChange(() => qc.setQueryData(chunk37TQBT7Y_cjs.arbiQueryKeys.profile(), client.profile())),
2461
2469
  [client, qc]
2462
2470
  );
2463
2471
  return reactQuery.useQuery({
2464
- queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.profile(),
2472
+ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.profile(),
2465
2473
  queryFn: () => client.profile(),
2466
2474
  enabled: (options?.enabled ?? true) && enabled,
2467
2475
  staleTime: Infinity
@@ -2476,9 +2484,9 @@ function useUpdateProfile() {
2476
2484
  return client.profile();
2477
2485
  },
2478
2486
  onSuccess: (profile) => {
2479
- qc.setQueryData(chunkI7UUV7FP_cjs.arbiQueryKeys.profile(), profile);
2480
- void qc.invalidateQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.identity() });
2481
- return qc.invalidateQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.workspaces() });
2487
+ qc.setQueryData(chunk37TQBT7Y_cjs.arbiQueryKeys.profile(), profile);
2488
+ void qc.invalidateQueries({ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.identity() });
2489
+ return qc.invalidateQueries({ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.workspaces() });
2482
2490
  }
2483
2491
  });
2484
2492
  }
@@ -2561,7 +2569,7 @@ function useConfirmEmailChange() {
2561
2569
  const qc = reactQuery.useQueryClient();
2562
2570
  return reactQuery.useMutation({
2563
2571
  mutationFn: ({ newEmail, code }) => client.confirmEmailChange(newEmail, code),
2564
- onSuccess: () => qc.setQueryData(chunkI7UUV7FP_cjs.arbiQueryKeys.profile(), client.profile())
2572
+ onSuccess: () => qc.setQueryData(chunk37TQBT7Y_cjs.arbiQueryKeys.profile(), client.profile())
2565
2573
  });
2566
2574
  }
2567
2575
  function useEmailChange({
@@ -2720,7 +2728,7 @@ function usePasswordChangeForm({
2720
2728
  function useUserSettings(options) {
2721
2729
  const arbi = chunkR2MF7YCW_cjs.useArbi();
2722
2730
  return reactQuery.useQuery({
2723
- queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.userSettings(),
2731
+ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.userSettings(),
2724
2732
  queryFn: () => arbi.settings.get(),
2725
2733
  enabled: (options?.enabled ?? true) && arbi.isLoggedIn
2726
2734
  });
@@ -2731,18 +2739,18 @@ function useUpdateUserSettings() {
2731
2739
  return reactQuery.useMutation({
2732
2740
  mutationFn: (patch) => arbi.settings.update(patch),
2733
2741
  onMutate: async (patch) => {
2734
- await qc.cancelQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.userSettings() });
2735
- const previous = qc.getQueryData(chunkI7UUV7FP_cjs.arbiQueryKeys.userSettings());
2742
+ await qc.cancelQueries({ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.userSettings() });
2743
+ const previous = qc.getQueryData(chunk37TQBT7Y_cjs.arbiQueryKeys.userSettings());
2736
2744
  qc.setQueryData(
2737
- chunkI7UUV7FP_cjs.arbiQueryKeys.userSettings(),
2745
+ chunk37TQBT7Y_cjs.arbiQueryKeys.userSettings(),
2738
2746
  (old) => old ? { ...old, ...patch } : old
2739
2747
  );
2740
2748
  return { previous };
2741
2749
  },
2742
2750
  onError: (_err, _patch, context) => {
2743
- qc.setQueryData(chunkI7UUV7FP_cjs.arbiQueryKeys.userSettings(), context?.previous);
2751
+ qc.setQueryData(chunk37TQBT7Y_cjs.arbiQueryKeys.userSettings(), context?.previous);
2744
2752
  },
2745
- onSettled: () => qc.invalidateQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.userSettings() })
2753
+ onSettled: () => qc.invalidateQueries({ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.userSettings() })
2746
2754
  });
2747
2755
  }
2748
2756
  function toNotificationPreferences(stored, keys) {
@@ -2762,18 +2770,18 @@ function useNotificationPreferences(keys, options) {
2762
2770
  const save = reactQuery.useMutation({
2763
2771
  mutationFn: (patch) => arbi.settings.update({ email_notifications: patch }),
2764
2772
  onMutate: async (patch) => {
2765
- await qc.cancelQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.userSettings() });
2766
- const previous = qc.getQueryData(chunkI7UUV7FP_cjs.arbiQueryKeys.userSettings());
2773
+ await qc.cancelQueries({ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.userSettings() });
2774
+ const previous = qc.getQueryData(chunk37TQBT7Y_cjs.arbiQueryKeys.userSettings());
2767
2775
  qc.setQueryData(
2768
- chunkI7UUV7FP_cjs.arbiQueryKeys.userSettings(),
2776
+ chunk37TQBT7Y_cjs.arbiQueryKeys.userSettings(),
2769
2777
  (old) => old ? { ...old, email_notifications: { ...old.email_notifications, ...patch } } : old
2770
2778
  );
2771
2779
  return { previous };
2772
2780
  },
2773
2781
  onError: (_err, _patch, context) => {
2774
- qc.setQueryData(chunkI7UUV7FP_cjs.arbiQueryKeys.userSettings(), context?.previous);
2782
+ qc.setQueryData(chunk37TQBT7Y_cjs.arbiQueryKeys.userSettings(), context?.previous);
2775
2783
  },
2776
- onSettled: () => qc.invalidateQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.userSettings() })
2784
+ onSettled: () => qc.invalidateQueries({ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.userSettings() })
2777
2785
  });
2778
2786
  const model = React3.useMemo(() => toNotificationPreferences(stored, keys), [stored, keys]);
2779
2787
  const setAll = React3.useCallback(
@@ -2800,18 +2808,18 @@ function useRelevanceSave() {
2800
2808
  return reactQuery.useMutation({
2801
2809
  mutationFn: (patch) => arbi.settings.update(patch),
2802
2810
  onMutate: async (patch) => {
2803
- await qc.cancelQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.userSettings() });
2804
- const previous = qc.getQueryData(chunkI7UUV7FP_cjs.arbiQueryKeys.userSettings());
2811
+ await qc.cancelQueries({ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.userSettings() });
2812
+ const previous = qc.getQueryData(chunk37TQBT7Y_cjs.arbiQueryKeys.userSettings());
2805
2813
  qc.setQueryData(
2806
- chunkI7UUV7FP_cjs.arbiQueryKeys.userSettings(),
2814
+ chunk37TQBT7Y_cjs.arbiQueryKeys.userSettings(),
2807
2815
  (old) => old ? { ...old, ...patch } : old
2808
2816
  );
2809
2817
  return { previous };
2810
2818
  },
2811
2819
  onError: (_err, _patch, context) => {
2812
- qc.setQueryData(chunkI7UUV7FP_cjs.arbiQueryKeys.userSettings(), context?.previous);
2820
+ qc.setQueryData(chunk37TQBT7Y_cjs.arbiQueryKeys.userSettings(), context?.previous);
2813
2821
  },
2814
- onSettled: () => qc.invalidateQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.userSettings() })
2822
+ onSettled: () => qc.invalidateQueries({ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.userSettings() })
2815
2823
  });
2816
2824
  }
2817
2825
  function useWorkspaceNotificationLevel(workspaceId, options) {
@@ -2822,7 +2830,7 @@ function useWorkspaceNotificationLevel(workspaceId, options) {
2822
2830
  const setLevel = React3.useCallback(
2823
2831
  (next) => {
2824
2832
  if (!workspaceId) return;
2825
- const current = qc.getQueryData(chunkI7UUV7FP_cjs.arbiQueryKeys.userSettings()) ?? settings.data;
2833
+ const current = qc.getQueryData(chunk37TQBT7Y_cjs.arbiQueryKeys.userSettings()) ?? settings.data;
2826
2834
  save.mutate(browser.settings.workspaceLevelPatch(current, workspaceId, next));
2827
2835
  },
2828
2836
  [qc, save, settings.data, workspaceId]
@@ -2843,7 +2851,7 @@ function useFollowThread(conversationId, options) {
2843
2851
  const setFollowing = React3.useCallback(
2844
2852
  (on, callbacks) => {
2845
2853
  if (!conversationId) return;
2846
- const current = qc.getQueryData(chunkI7UUV7FP_cjs.arbiQueryKeys.userSettings()) ?? settings.data;
2854
+ const current = qc.getQueryData(chunk37TQBT7Y_cjs.arbiQueryKeys.userSettings()) ?? settings.data;
2847
2855
  save.mutate(
2848
2856
  {
2849
2857
  followed_threads: browser.settings.withMembership(
@@ -2868,7 +2876,7 @@ function useFollowThread(conversationId, options) {
2868
2876
  function useSessions(options) {
2869
2877
  const { client, enabled } = useAccountClient();
2870
2878
  return reactQuery.useQuery({
2871
- queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.sessions(),
2879
+ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.sessions(),
2872
2880
  queryFn: () => client.listSessions(),
2873
2881
  enabled: (options?.enabled ?? true) && enabled
2874
2882
  });
@@ -2878,7 +2886,7 @@ function useTerminateSession() {
2878
2886
  const qc = reactQuery.useQueryClient();
2879
2887
  return reactQuery.useMutation({
2880
2888
  mutationFn: (sessionId) => client.terminateSession(sessionId),
2881
- onSuccess: () => qc.invalidateQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.sessions() })
2889
+ onSuccess: () => qc.invalidateQueries({ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.sessions() })
2882
2890
  });
2883
2891
  }
2884
2892
  function useSignOut() {
@@ -3021,7 +3029,7 @@ function useIdentityVerificationFlow(api, {
3021
3029
  const apiRef = React3.useRef(api);
3022
3030
  apiRef.current = api;
3023
3031
  const query = reactQuery.useQuery({
3024
- queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.identity(),
3032
+ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.identity(),
3025
3033
  queryFn: () => apiRef.current.status(),
3026
3034
  enabled,
3027
3035
  staleTime: 6e4
@@ -3039,7 +3047,7 @@ function useIdentityVerificationFlow(api, {
3039
3047
  const lastVerified = React3.useRef(void 0);
3040
3048
  const apply = React3.useCallback(
3041
3049
  (next) => {
3042
- qc.setQueryData(chunkI7UUV7FP_cjs.arbiQueryKeys.identity(), next);
3050
+ qc.setQueryData(chunk37TQBT7Y_cjs.arbiQueryKeys.identity(), next);
3043
3051
  if (lastVerified.current !== void 0 && lastVerified.current !== next.verified) {
3044
3052
  onVerifiedChange?.(next.verified);
3045
3053
  }
@@ -3234,12 +3242,12 @@ function useIdentityVerification(options = {}) {
3234
3242
  enabled,
3235
3243
  formatPrice,
3236
3244
  onVerifiedChange: (verified) => {
3237
- void qc.invalidateQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.profile() });
3245
+ void qc.invalidateQueries({ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.profile() });
3238
3246
  onVerifiedChange?.(verified);
3239
3247
  },
3240
3248
  onNameAccepted: (name) => {
3241
- void qc.invalidateQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.profile() });
3242
- void qc.invalidateQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.workspaces() });
3249
+ void qc.invalidateQueries({ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.profile() });
3250
+ void qc.invalidateQueries({ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.workspaces() });
3243
3251
  onNameAccepted?.(name);
3244
3252
  }
3245
3253
  });
@@ -4511,7 +4519,7 @@ function useDeleteBookingPage() {
4511
4519
  });
4512
4520
  }
4513
4521
  function useWorkspaceDocs(workspaceId) {
4514
- const { data: docs = [], isLoading, isError } = chunkI7UUV7FP_cjs.useDocuments(workspaceId);
4522
+ const { data: docs = [], isLoading, isError } = chunk37TQBT7Y_cjs.useDocuments(workspaceId);
4515
4523
  const docIds = React3.useMemo(
4516
4524
  () => docs.map((d) => d.external_id).filter((id) => !!id),
4517
4525
  [docs]
@@ -4519,7 +4527,7 @@ function useWorkspaceDocs(workspaceId) {
4519
4527
  return { wsId: workspaceId, docs, docIds, isLoading, isError, ready: docIds.length > 0 };
4520
4528
  }
4521
4529
  function useAiTask() {
4522
- const mutation = chunkI7UUV7FP_cjs.useAssistantQuery();
4530
+ const mutation = chunk37TQBT7Y_cjs.useAssistantQuery();
4523
4531
  const [status, setStatus] = React3.useState("idle");
4524
4532
  const [text, setText] = React3.useState("");
4525
4533
  const [stepCount, setStepCount] = React3.useState(0);
@@ -6131,7 +6139,7 @@ function ActivityFeed({
6131
6139
  enabled,
6132
6140
  "data-testid": testId = "activity-feed"
6133
6141
  }) {
6134
- const { data, isLoading, isError } = chunkI7UUV7FP_cjs.useActivity({ limit, enabled });
6142
+ const { data, isLoading, isError } = chunk37TQBT7Y_cjs.useActivity({ limit, enabled });
6135
6143
  if (isLoading) {
6136
6144
  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: [
6137
6145
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-4 w-4 shrink-0 animate-pulse rounded-full bg-muted" }),
@@ -6208,12 +6216,12 @@ function useNotifications(options = {}) {
6208
6216
  React3.useEffect(
6209
6217
  () => ws?.subscribe((message) => {
6210
6218
  if ("sender" in message && "recipient" in message)
6211
- void queries.invalidateQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.allNotifications() });
6219
+ void queries.invalidateQueries({ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.allNotifications() });
6212
6220
  }),
6213
6221
  [ws, queries]
6214
6222
  );
6215
6223
  return reactQuery.useQuery({
6216
- queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.notifications(limit),
6224
+ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.notifications(limit),
6217
6225
  queryFn: () => arbi.notifications.list({ limit }),
6218
6226
  enabled: (options.enabled ?? true) && arbi.isLoggedIn
6219
6227
  });
@@ -6223,7 +6231,7 @@ function useDeleteNotifications() {
6223
6231
  const queries = reactQuery.useQueryClient();
6224
6232
  return reactQuery.useMutation({
6225
6233
  mutationFn: (ids) => arbi.notifications.delete(ids),
6226
- onSuccess: () => queries.invalidateQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.allNotifications() })
6234
+ onSuccess: () => queries.invalidateQueries({ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.allNotifications() })
6227
6235
  });
6228
6236
  }
6229
6237
  function useMarkNotificationsRead() {
@@ -6231,7 +6239,7 @@ function useMarkNotificationsRead() {
6231
6239
  const queries = reactQuery.useQueryClient();
6232
6240
  return reactQuery.useMutation({
6233
6241
  mutationFn: (ids) => arbi.notifications.markRead(ids),
6234
- onSuccess: () => queries.invalidateQueries({ queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.allNotifications() })
6242
+ onSuccess: () => queries.invalidateQueries({ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.allNotifications() })
6235
6243
  });
6236
6244
  }
6237
6245
 
@@ -6685,7 +6693,7 @@ function useDirectMessages(options) {
6685
6693
  enabled
6686
6694
  });
6687
6695
  const contactsQuery = reactQuery.useQuery({
6688
- queryKey: chunkI7UUV7FP_cjs.arbiQueryKeys.contacts(),
6696
+ queryKey: chunk37TQBT7Y_cjs.arbiQueryKeys.contacts(),
6689
6697
  queryFn: () => arbi.contacts.list(),
6690
6698
  enabled
6691
6699
  });
@@ -7968,10 +7976,10 @@ function DocumentTable({
7968
7976
  extraColumns,
7969
7977
  className
7970
7978
  }) {
7971
- const query = chunkI7UUV7FP_cjs.useDocuments(workspaceId, { enabled: !documents });
7979
+ const query = chunk37TQBT7Y_cjs.useDocuments(workspaceId, { enabled: !documents });
7972
7980
  const rows = documents ?? query.data ?? [];
7973
7981
  const isLoading = !documents && query.isLoading;
7974
- const tagsQuery = chunkI7UUV7FP_cjs.useTags(workspaceId);
7982
+ const tagsQuery = chunk37TQBT7Y_cjs.useTags(workspaceId);
7975
7983
  const tagNameById = React3__default.default.useMemo(() => {
7976
7984
  const map = /* @__PURE__ */ new Map();
7977
7985
  for (const t of tagsQuery.data ?? []) {
@@ -8241,10 +8249,10 @@ function DocumentGallery({
8241
8249
  minTileWidth = 148,
8242
8250
  className
8243
8251
  }) {
8244
- const query = chunkI7UUV7FP_cjs.useDocuments(workspaceId, { enabled: !documents });
8252
+ const query = chunk37TQBT7Y_cjs.useDocuments(workspaceId, { enabled: !documents });
8245
8253
  const rows = documents ?? query.data ?? [];
8246
8254
  const isLoading = !documents && query.isLoading;
8247
- const tagsQuery = chunkI7UUV7FP_cjs.useTags(workspaceId);
8255
+ const tagsQuery = chunk37TQBT7Y_cjs.useTags(workspaceId);
8248
8256
  const tagNameById = React3__default.default.useMemo(() => {
8249
8257
  const map = /* @__PURE__ */ new Map();
8250
8258
  for (const t of tagsQuery.data ?? []) {
@@ -8256,7 +8264,7 @@ function DocumentGallery({
8256
8264
  () => rows.map((d) => d.external_id).filter((id) => !!id),
8257
8265
  [rows]
8258
8266
  );
8259
- const thumbsQuery = chunkI7UUV7FP_cjs.useThumbnails(docIds);
8267
+ const thumbsQuery = chunk37TQBT7Y_cjs.useThumbnails(docIds);
8260
8268
  const thumbs = thumbsQuery.data ?? {};
8261
8269
  const session = useArbiSessionStore();
8262
8270
  const storeSelected = useArbiSessionState((s) => s.selectedDocumentIds);
@@ -8365,8 +8373,8 @@ function DocumentReview({
8365
8373
  onClose,
8366
8374
  className
8367
8375
  }) {
8368
- const parsedQuery = chunkI7UUV7FP_cjs.useParsedDocument(docId, stage);
8369
- const tagsQuery = chunkI7UUV7FP_cjs.useTags(workspaceId);
8376
+ const parsedQuery = chunk37TQBT7Y_cjs.useParsedDocument(docId, stage);
8377
+ const tagsQuery = chunk37TQBT7Y_cjs.useTags(workspaceId);
8370
8378
  const tagNameById = React3__default.default.useMemo(() => {
8371
8379
  const map = /* @__PURE__ */ new Map();
8372
8380
  for (const t of tagsQuery.data ?? []) {
@@ -9083,243 +9091,243 @@ function hasVideoTrack(blob) {
9083
9091
 
9084
9092
  Object.defineProperty(exports, "DOCUMENTS_FIRST_PAGE_MEASURE", {
9085
9093
  enumerable: true,
9086
- get: function () { return chunkI7UUV7FP_cjs.DOCUMENTS_FIRST_PAGE_MEASURE; }
9094
+ get: function () { return chunk37TQBT7Y_cjs.DOCUMENTS_FIRST_PAGE_MEASURE; }
9087
9095
  });
9088
9096
  Object.defineProperty(exports, "DOCUMENTS_FIRST_PAGE_SIZE", {
9089
9097
  enumerable: true,
9090
- get: function () { return chunkI7UUV7FP_cjs.DOCUMENTS_FIRST_PAGE_SIZE; }
9098
+ get: function () { return chunk37TQBT7Y_cjs.DOCUMENTS_FIRST_PAGE_SIZE; }
9091
9099
  });
9092
9100
  Object.defineProperty(exports, "DOCUMENTS_PAGE_SIZE", {
9093
9101
  enumerable: true,
9094
- get: function () { return chunkI7UUV7FP_cjs.DOCUMENTS_PAGE_SIZE; }
9102
+ get: function () { return chunk37TQBT7Y_cjs.DOCUMENTS_PAGE_SIZE; }
9095
9103
  });
9096
9104
  Object.defineProperty(exports, "FINISHED_DOCUMENT_STATUSES", {
9097
9105
  enumerable: true,
9098
- get: function () { return chunkI7UUV7FP_cjs.FINISHED_DOCUMENT_STATUSES; }
9106
+ get: function () { return chunk37TQBT7Y_cjs.FINISHED_DOCUMENT_STATUSES; }
9099
9107
  });
9100
9108
  Object.defineProperty(exports, "PROJECT_CREATION_DENIED_REASON", {
9101
9109
  enumerable: true,
9102
- get: function () { return chunkI7UUV7FP_cjs.PROJECT_CREATION_DENIED_REASON; }
9110
+ get: function () { return chunk37TQBT7Y_cjs.PROJECT_CREATION_DENIED_REASON; }
9103
9111
  });
9104
9112
  Object.defineProperty(exports, "SIMILARITY_THRESHOLD", {
9105
9113
  enumerable: true,
9106
- get: function () { return chunkI7UUV7FP_cjs.SIMILARITY_THRESHOLD; }
9114
+ get: function () { return chunk37TQBT7Y_cjs.SIMILARITY_THRESHOLD; }
9107
9115
  });
9108
9116
  Object.defineProperty(exports, "adjustTagCounts", {
9109
9117
  enumerable: true,
9110
- get: function () { return chunkI7UUV7FP_cjs.adjustTagCounts; }
9118
+ get: function () { return chunk37TQBT7Y_cjs.adjustTagCounts; }
9111
9119
  });
9112
9120
  Object.defineProperty(exports, "arbiMutationKeys", {
9113
9121
  enumerable: true,
9114
- get: function () { return chunkI7UUV7FP_cjs.arbiMutationKeys; }
9122
+ get: function () { return chunk37TQBT7Y_cjs.arbiMutationKeys; }
9115
9123
  });
9116
9124
  Object.defineProperty(exports, "arbiQueryKeys", {
9117
9125
  enumerable: true,
9118
- get: function () { return chunkI7UUV7FP_cjs.arbiQueryKeys; }
9126
+ get: function () { return chunk37TQBT7Y_cjs.arbiQueryKeys; }
9119
9127
  });
9120
9128
  Object.defineProperty(exports, "forgetDocuments", {
9121
9129
  enumerable: true,
9122
- get: function () { return chunkI7UUV7FP_cjs.forgetDocuments; }
9130
+ get: function () { return chunk37TQBT7Y_cjs.forgetDocuments; }
9123
9131
  });
9124
9132
  Object.defineProperty(exports, "getCachedDocuments", {
9125
9133
  enumerable: true,
9126
- get: function () { return chunkI7UUV7FP_cjs.getCachedDocuments; }
9134
+ get: function () { return chunk37TQBT7Y_cjs.getCachedDocuments; }
9127
9135
  });
9128
9136
  Object.defineProperty(exports, "invalidateTagData", {
9129
9137
  enumerable: true,
9130
- get: function () { return chunkI7UUV7FP_cjs.invalidateTagData; }
9138
+ get: function () { return chunk37TQBT7Y_cjs.invalidateTagData; }
9131
9139
  });
9132
9140
  Object.defineProperty(exports, "invalidateTagTables", {
9133
9141
  enumerable: true,
9134
- get: function () { return chunkI7UUV7FP_cjs.invalidateTagTables; }
9142
+ get: function () { return chunk37TQBT7Y_cjs.invalidateTagTables; }
9135
9143
  });
9136
9144
  Object.defineProperty(exports, "isDocumentsLoading", {
9137
9145
  enumerable: true,
9138
- get: function () { return chunkI7UUV7FP_cjs.isDocumentsLoading; }
9146
+ get: function () { return chunk37TQBT7Y_cjs.isDocumentsLoading; }
9139
9147
  });
9140
9148
  Object.defineProperty(exports, "isUsageMetered", {
9141
9149
  enumerable: true,
9142
- get: function () { return chunkI7UUV7FP_cjs.isUsageMetered; }
9150
+ get: function () { return chunk37TQBT7Y_cjs.isUsageMetered; }
9143
9151
  });
9144
9152
  Object.defineProperty(exports, "patchCachedDocument", {
9145
9153
  enumerable: true,
9146
- get: function () { return chunkI7UUV7FP_cjs.patchCachedDocument; }
9154
+ get: function () { return chunk37TQBT7Y_cjs.patchCachedDocument; }
9147
9155
  });
9148
9156
  Object.defineProperty(exports, "patchDocuments", {
9149
9157
  enumerable: true,
9150
- get: function () { return chunkI7UUV7FP_cjs.patchDocuments; }
9158
+ get: function () { return chunk37TQBT7Y_cjs.patchDocuments; }
9151
9159
  });
9152
9160
  Object.defineProperty(exports, "patchWorkspaceTags", {
9153
9161
  enumerable: true,
9154
- get: function () { return chunkI7UUV7FP_cjs.patchWorkspaceTags; }
9162
+ get: function () { return chunk37TQBT7Y_cjs.patchWorkspaceTags; }
9155
9163
  });
9156
9164
  Object.defineProperty(exports, "refreshDocuments", {
9157
9165
  enumerable: true,
9158
- get: function () { return chunkI7UUV7FP_cjs.refreshDocuments; }
9166
+ get: function () { return chunk37TQBT7Y_cjs.refreshDocuments; }
9159
9167
  });
9160
9168
  Object.defineProperty(exports, "setCachedDocument", {
9161
9169
  enumerable: true,
9162
- get: function () { return chunkI7UUV7FP_cjs.setCachedDocument; }
9170
+ get: function () { return chunk37TQBT7Y_cjs.setCachedDocument; }
9163
9171
  });
9164
9172
  Object.defineProperty(exports, "stopDocumentsLoading", {
9165
9173
  enumerable: true,
9166
- get: function () { return chunkI7UUV7FP_cjs.stopDocumentsLoading; }
9174
+ get: function () { return chunk37TQBT7Y_cjs.stopDocumentsLoading; }
9167
9175
  });
9168
9176
  Object.defineProperty(exports, "subscribeDocumentRows", {
9169
9177
  enumerable: true,
9170
- get: function () { return chunkI7UUV7FP_cjs.subscribeDocumentRows; }
9178
+ get: function () { return chunk37TQBT7Y_cjs.subscribeDocumentRows; }
9171
9179
  });
9172
9180
  Object.defineProperty(exports, "upsertDocuments", {
9173
9181
  enumerable: true,
9174
- get: function () { return chunkI7UUV7FP_cjs.upsertDocuments; }
9182
+ get: function () { return chunk37TQBT7Y_cjs.upsertDocuments; }
9175
9183
  });
9176
9184
  Object.defineProperty(exports, "useActivity", {
9177
9185
  enumerable: true,
9178
- get: function () { return chunkI7UUV7FP_cjs.useActivity; }
9186
+ get: function () { return chunk37TQBT7Y_cjs.useActivity; }
9179
9187
  });
9180
9188
  Object.defineProperty(exports, "useAgents", {
9181
9189
  enumerable: true,
9182
- get: function () { return chunkI7UUV7FP_cjs.useAgents; }
9190
+ get: function () { return chunk37TQBT7Y_cjs.useAgents; }
9183
9191
  });
9184
9192
  Object.defineProperty(exports, "useAssistantQuery", {
9185
9193
  enumerable: true,
9186
- get: function () { return chunkI7UUV7FP_cjs.useAssistantQuery; }
9194
+ get: function () { return chunk37TQBT7Y_cjs.useAssistantQuery; }
9187
9195
  });
9188
9196
  Object.defineProperty(exports, "useAvailableModels", {
9189
9197
  enumerable: true,
9190
- get: function () { return chunkI7UUV7FP_cjs.useAvailableModels; }
9198
+ get: function () { return chunk37TQBT7Y_cjs.useAvailableModels; }
9191
9199
  });
9192
9200
  Object.defineProperty(exports, "useCanCreateProjects", {
9193
9201
  enumerable: true,
9194
- get: function () { return chunkI7UUV7FP_cjs.useCanCreateProjects; }
9202
+ get: function () { return chunk37TQBT7Y_cjs.useCanCreateProjects; }
9195
9203
  });
9196
9204
  Object.defineProperty(exports, "useConfigs", {
9197
9205
  enumerable: true,
9198
- get: function () { return chunkI7UUV7FP_cjs.useConfigs; }
9206
+ get: function () { return chunk37TQBT7Y_cjs.useConfigs; }
9199
9207
  });
9200
9208
  Object.defineProperty(exports, "useConversationThreads", {
9201
9209
  enumerable: true,
9202
- get: function () { return chunkI7UUV7FP_cjs.useConversationThreads; }
9210
+ get: function () { return chunk37TQBT7Y_cjs.useConversationThreads; }
9203
9211
  });
9204
9212
  Object.defineProperty(exports, "useConversations", {
9205
9213
  enumerable: true,
9206
- get: function () { return chunkI7UUV7FP_cjs.useConversations; }
9214
+ get: function () { return chunk37TQBT7Y_cjs.useConversations; }
9207
9215
  });
9208
9216
  Object.defineProperty(exports, "useCreateTag", {
9209
9217
  enumerable: true,
9210
- get: function () { return chunkI7UUV7FP_cjs.useCreateTag; }
9218
+ get: function () { return chunk37TQBT7Y_cjs.useCreateTag; }
9211
9219
  });
9212
9220
  Object.defineProperty(exports, "useCurrentUser", {
9213
9221
  enumerable: true,
9214
- get: function () { return chunkI7UUV7FP_cjs.useCurrentUser; }
9222
+ get: function () { return chunk37TQBT7Y_cjs.useCurrentUser; }
9215
9223
  });
9216
9224
  Object.defineProperty(exports, "useDeleteAgents", {
9217
9225
  enumerable: true,
9218
- get: function () { return chunkI7UUV7FP_cjs.useDeleteAgents; }
9226
+ get: function () { return chunk37TQBT7Y_cjs.useDeleteAgents; }
9219
9227
  });
9220
9228
  Object.defineProperty(exports, "useDeleteTag", {
9221
9229
  enumerable: true,
9222
- get: function () { return chunkI7UUV7FP_cjs.useDeleteTag; }
9230
+ get: function () { return chunk37TQBT7Y_cjs.useDeleteTag; }
9223
9231
  });
9224
9232
  Object.defineProperty(exports, "useDocument", {
9225
9233
  enumerable: true,
9226
- get: function () { return chunkI7UUV7FP_cjs.useDocument; }
9234
+ get: function () { return chunk37TQBT7Y_cjs.useDocument; }
9227
9235
  });
9228
9236
  Object.defineProperty(exports, "useDocumentVersionList", {
9229
9237
  enumerable: true,
9230
- get: function () { return chunkI7UUV7FP_cjs.useDocumentVersionList; }
9238
+ get: function () { return chunk37TQBT7Y_cjs.useDocumentVersionList; }
9231
9239
  });
9232
9240
  Object.defineProperty(exports, "useDocuments", {
9233
9241
  enumerable: true,
9234
- get: function () { return chunkI7UUV7FP_cjs.useDocuments; }
9242
+ get: function () { return chunk37TQBT7Y_cjs.useDocuments; }
9235
9243
  });
9236
9244
  Object.defineProperty(exports, "useDocumentsById", {
9237
9245
  enumerable: true,
9238
- get: function () { return chunkI7UUV7FP_cjs.useDocumentsById; }
9246
+ get: function () { return chunk37TQBT7Y_cjs.useDocumentsById; }
9239
9247
  });
9240
9248
  Object.defineProperty(exports, "useDocumentsLoading", {
9241
9249
  enumerable: true,
9242
- get: function () { return chunkI7UUV7FP_cjs.useDocumentsLoading; }
9250
+ get: function () { return chunk37TQBT7Y_cjs.useDocumentsLoading; }
9243
9251
  });
9244
9252
  Object.defineProperty(exports, "useExtractEntities", {
9245
9253
  enumerable: true,
9246
- get: function () { return chunkI7UUV7FP_cjs.useExtractEntities; }
9254
+ get: function () { return chunk37TQBT7Y_cjs.useExtractEntities; }
9247
9255
  });
9248
9256
  Object.defineProperty(exports, "useFirmPool", {
9249
9257
  enumerable: true,
9250
- get: function () { return chunkI7UUV7FP_cjs.useFirmPool; }
9258
+ get: function () { return chunk37TQBT7Y_cjs.useFirmPool; }
9251
9259
  });
9252
9260
  Object.defineProperty(exports, "useHealth", {
9253
9261
  enumerable: true,
9254
- get: function () { return chunkI7UUV7FP_cjs.useHealth; }
9262
+ get: function () { return chunk37TQBT7Y_cjs.useHealth; }
9255
9263
  });
9256
9264
  Object.defineProperty(exports, "useInvalidateTagData", {
9257
9265
  enumerable: true,
9258
- get: function () { return chunkI7UUV7FP_cjs.useInvalidateTagData; }
9266
+ get: function () { return chunk37TQBT7Y_cjs.useInvalidateTagData; }
9259
9267
  });
9260
9268
  Object.defineProperty(exports, "useParsedDocument", {
9261
9269
  enumerable: true,
9262
- get: function () { return chunkI7UUV7FP_cjs.useParsedDocument; }
9270
+ get: function () { return chunk37TQBT7Y_cjs.useParsedDocument; }
9263
9271
  });
9264
9272
  Object.defineProperty(exports, "useProjectInvoices", {
9265
9273
  enumerable: true,
9266
- get: function () { return chunkI7UUV7FP_cjs.useProjectInvoices; }
9274
+ get: function () { return chunk37TQBT7Y_cjs.useProjectInvoices; }
9267
9275
  });
9268
9276
  Object.defineProperty(exports, "useProjectUsage", {
9269
9277
  enumerable: true,
9270
- get: function () { return chunkI7UUV7FP_cjs.useProjectUsage; }
9278
+ get: function () { return chunk37TQBT7Y_cjs.useProjectUsage; }
9271
9279
  });
9272
9280
  Object.defineProperty(exports, "useProjects", {
9273
9281
  enumerable: true,
9274
- get: function () { return chunkI7UUV7FP_cjs.useProjects; }
9282
+ get: function () { return chunk37TQBT7Y_cjs.useProjects; }
9275
9283
  });
9276
9284
  Object.defineProperty(exports, "useProjectsUsage", {
9277
9285
  enumerable: true,
9278
- get: function () { return chunkI7UUV7FP_cjs.useProjectsUsage; }
9286
+ get: function () { return chunk37TQBT7Y_cjs.useProjectsUsage; }
9279
9287
  });
9280
9288
  Object.defineProperty(exports, "useSetTagValues", {
9281
9289
  enumerable: true,
9282
- get: function () { return chunkI7UUV7FP_cjs.useSetTagValues; }
9290
+ get: function () { return chunk37TQBT7Y_cjs.useSetTagValues; }
9283
9291
  });
9284
9292
  Object.defineProperty(exports, "useSimilarDocuments", {
9285
9293
  enumerable: true,
9286
- get: function () { return chunkI7UUV7FP_cjs.useSimilarDocuments; }
9294
+ get: function () { return chunk37TQBT7Y_cjs.useSimilarDocuments; }
9287
9295
  });
9288
9296
  Object.defineProperty(exports, "useTagKindSchema", {
9289
9297
  enumerable: true,
9290
- get: function () { return chunkI7UUV7FP_cjs.useTagKindSchema; }
9298
+ get: function () { return chunk37TQBT7Y_cjs.useTagKindSchema; }
9291
9299
  });
9292
9300
  Object.defineProperty(exports, "useTags", {
9293
9301
  enumerable: true,
9294
- get: function () { return chunkI7UUV7FP_cjs.useTags; }
9302
+ get: function () { return chunk37TQBT7Y_cjs.useTags; }
9295
9303
  });
9296
9304
  Object.defineProperty(exports, "useThumbnails", {
9297
9305
  enumerable: true,
9298
- get: function () { return chunkI7UUV7FP_cjs.useThumbnails; }
9306
+ get: function () { return chunk37TQBT7Y_cjs.useThumbnails; }
9299
9307
  });
9300
9308
  Object.defineProperty(exports, "useTopUpFirmPool", {
9301
9309
  enumerable: true,
9302
- get: function () { return chunkI7UUV7FP_cjs.useTopUpFirmPool; }
9310
+ get: function () { return chunk37TQBT7Y_cjs.useTopUpFirmPool; }
9303
9311
  });
9304
9312
  Object.defineProperty(exports, "useUpdateTag", {
9305
9313
  enumerable: true,
9306
- get: function () { return chunkI7UUV7FP_cjs.useUpdateTag; }
9314
+ get: function () { return chunk37TQBT7Y_cjs.useUpdateTag; }
9307
9315
  });
9308
9316
  Object.defineProperty(exports, "useUpdateTagKindSchema", {
9309
9317
  enumerable: true,
9310
- get: function () { return chunkI7UUV7FP_cjs.useUpdateTagKindSchema; }
9318
+ get: function () { return chunk37TQBT7Y_cjs.useUpdateTagKindSchema; }
9311
9319
  });
9312
9320
  Object.defineProperty(exports, "useUserUsageToday", {
9313
9321
  enumerable: true,
9314
- get: function () { return chunkI7UUV7FP_cjs.useUserUsageToday; }
9322
+ get: function () { return chunk37TQBT7Y_cjs.useUserUsageToday; }
9315
9323
  });
9316
9324
  Object.defineProperty(exports, "useWorkspaceActivity", {
9317
9325
  enumerable: true,
9318
- get: function () { return chunkI7UUV7FP_cjs.useWorkspaceActivity; }
9326
+ get: function () { return chunk37TQBT7Y_cjs.useWorkspaceActivity; }
9319
9327
  });
9320
9328
  Object.defineProperty(exports, "useWorkspaces", {
9321
9329
  enumerable: true,
9322
- get: function () { return chunkI7UUV7FP_cjs.useWorkspaces; }
9330
+ get: function () { return chunk37TQBT7Y_cjs.useWorkspaces; }
9323
9331
  });
9324
9332
  Object.defineProperty(exports, "cleanDraftMarkdown", {
9325
9333
  enumerable: true,
@@ -10555,6 +10563,7 @@ exports.useDeleteNotifications = useDeleteNotifications;
10555
10563
  exports.useDeleteProject = useDeleteProject;
10556
10564
  exports.useDeleteSkill = useDeleteSkill;
10557
10565
  exports.useDeleteWorkflow = useDeleteWorkflow;
10566
+ exports.useDeleteWorkspaces = useDeleteWorkspaces;
10558
10567
  exports.useDirectMessages = useDirectMessages;
10559
10568
  exports.useDisconnectCalendarAccount = useDisconnectCalendarAccount;
10560
10569
  exports.useDisconnectConnector = useDisconnectConnector;