@arbidocs/react 0.5.5 → 0.5.6
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 +10 -10
- package/dist/artifacts/index.js +3 -3
- package/dist/calls/livekit/index.cjs +42 -42
- package/dist/calls/livekit/index.js +3 -3
- package/dist/{chunk-Y3LBWRXS.js → chunk-7OD25FTK.js} +4 -4
- package/dist/{chunk-Y3LBWRXS.js.map → chunk-7OD25FTK.js.map} +1 -1
- package/dist/{chunk-6YLK5AGS.js → chunk-GN33GLHR.js} +3 -3
- package/dist/{chunk-6YLK5AGS.js.map → chunk-GN33GLHR.js.map} +1 -1
- package/dist/{chunk-VLK52VXC.cjs → chunk-H4FGDXYB.cjs} +4 -2
- package/dist/chunk-H4FGDXYB.cjs.map +1 -0
- package/dist/{chunk-SBWEI3BO.cjs → chunk-KFFH2JJM.cjs} +32 -32
- package/dist/{chunk-SBWEI3BO.cjs.map → chunk-KFFH2JJM.cjs.map} +1 -1
- package/dist/{chunk-IFPSLIRL.cjs → chunk-L3NHETSD.cjs} +33 -33
- package/dist/{chunk-IFPSLIRL.cjs.map → chunk-L3NHETSD.cjs.map} +1 -1
- package/dist/{chunk-X2OC2LCD.js → chunk-ME2D5GWC.js} +3 -3
- package/dist/{chunk-X2OC2LCD.js.map → chunk-ME2D5GWC.js.map} +1 -1
- package/dist/{chunk-NVAIVJID.js → chunk-RG2ZE7DF.js} +4 -2
- package/dist/chunk-RG2ZE7DF.js.map +1 -0
- package/dist/{chunk-J62MWU4O.cjs → chunk-ZLHS3UKP.cjs} +41 -41
- package/dist/{chunk-J62MWU4O.cjs.map → chunk-ZLHS3UKP.cjs.map} +1 -1
- package/dist/document-tools/index.cjs +17 -17
- package/dist/document-tools/index.d.cts +2 -2
- package/dist/document-tools/index.d.ts +2 -2
- package/dist/document-tools/index.js +3 -3
- package/dist/index.cjs +700 -700
- package/dist/index.d.cts +55 -1
- package/dist/index.d.ts +55 -1
- package/dist/index.js +10 -10
- package/dist/{query-keys.d-Kw0JMoff.d.cts → query-keys.d-ClYiYNBR.d.cts} +2 -0
- package/dist/{query-keys.d-Kw0JMoff.d.ts → query-keys.d-ClYiYNBR.d.ts} +2 -0
- package/dist/shell/index.cjs +1 -1
- package/dist/shell/index.js +1 -1
- package/dist/ui/index.cjs +9 -9
- package/dist/ui/index.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-NVAIVJID.js.map +0 -1
- package/dist/chunk-VLK52VXC.cjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunkZLHS3UKP_cjs = require('./chunk-ZLHS3UKP.cjs');
|
|
4
|
+
var chunkKFFH2JJM_cjs = require('./chunk-KFFH2JJM.cjs');
|
|
5
|
+
var chunkL3NHETSD_cjs = require('./chunk-L3NHETSD.cjs');
|
|
6
6
|
var chunk2M4B4FFA_cjs = require('./chunk-2M4B4FFA.cjs');
|
|
7
|
-
var
|
|
7
|
+
var chunkH4FGDXYB_cjs = require('./chunk-H4FGDXYB.cjs');
|
|
8
8
|
var chunkTYZFRV7P_cjs = require('./chunk-TYZFRV7P.cjs');
|
|
9
9
|
var chunkVAMPYLQ4_cjs = require('./chunk-VAMPYLQ4.cjs');
|
|
10
10
|
var chunkN73IMVFF_cjs = require('./chunk-N73IMVFF.cjs');
|
|
@@ -15,8 +15,8 @@ var chunkEEIYXVM4_cjs = require('./chunk-EEIYXVM4.cjs');
|
|
|
15
15
|
var chunkOC7F5SNA_cjs = require('./chunk-OC7F5SNA.cjs');
|
|
16
16
|
var chunkWYZJLZ67_cjs = require('./chunk-WYZJLZ67.cjs');
|
|
17
17
|
var chunkHUZB36QU_cjs = require('./chunk-HUZB36QU.cjs');
|
|
18
|
-
var chunkZ3LLUO32_cjs = require('./chunk-Z3LLUO32.cjs');
|
|
19
18
|
var chunkHJDR5HEO_cjs = require('./chunk-HJDR5HEO.cjs');
|
|
19
|
+
var chunkZ3LLUO32_cjs = require('./chunk-Z3LLUO32.cjs');
|
|
20
20
|
var chunkS6A6FSG7_cjs = require('./chunk-S6A6FSG7.cjs');
|
|
21
21
|
var chunkTMPDW7J5_cjs = require('./chunk-TMPDW7J5.cjs');
|
|
22
22
|
var chunkQQ7SCJRY_cjs = require('./chunk-QQ7SCJRY.cjs');
|
|
@@ -71,9 +71,9 @@ function holdListPoll(refetch) {
|
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
73
|
function useConversationItems() {
|
|
74
|
-
const workspaceId =
|
|
75
|
-
const open =
|
|
76
|
-
const query =
|
|
74
|
+
const workspaceId = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
75
|
+
const open = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.workspaceStatus === "open");
|
|
76
|
+
const query = chunkL3NHETSD_cjs.useConversations(workspaceId ?? void 0, { enabled: open });
|
|
77
77
|
const { refetch } = query;
|
|
78
78
|
const all = query.data;
|
|
79
79
|
const tasks = React.useMemo(() => (all ?? []).filter((c) => c.status != null), [all]);
|
|
@@ -94,7 +94,7 @@ function useConversationItems() {
|
|
|
94
94
|
return { conversations: all ?? [], tasks, isLoading: query.isLoading, refetch };
|
|
95
95
|
}
|
|
96
96
|
function useConversationIsShared() {
|
|
97
|
-
const id =
|
|
97
|
+
const id = chunkL3NHETSD_cjs.useArbiSessionState((state) => state.conversationId);
|
|
98
98
|
const { conversations } = useConversationItems();
|
|
99
99
|
return conversations.find((conversation) => conversation.external_id === id)?.is_shared ?? false;
|
|
100
100
|
}
|
|
@@ -103,9 +103,9 @@ function useWorkItems() {
|
|
|
103
103
|
return { tasks, isLoading, refetch };
|
|
104
104
|
}
|
|
105
105
|
function useWorkspaceRole() {
|
|
106
|
-
const workspaceId =
|
|
107
|
-
const me =
|
|
108
|
-
const { data: workspaces } =
|
|
106
|
+
const workspaceId = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
107
|
+
const me = chunkL3NHETSD_cjs.useArbiSession().user?.external_id;
|
|
108
|
+
const { data: workspaces } = chunkL3NHETSD_cjs.useWorkspaces();
|
|
109
109
|
const workspace = workspaces?.find((w) => w.external_id === workspaceId);
|
|
110
110
|
return workspace?.users?.find((m) => m.user.external_id === me)?.role ?? null;
|
|
111
111
|
}
|
|
@@ -123,7 +123,7 @@ function useNotifyConversation() {
|
|
|
123
123
|
mutationFn: ({ conversationId, userIds }) => arbi.conversations.notify(conversationId, userIds),
|
|
124
124
|
onSuccess: (_data, { conversationId }) => {
|
|
125
125
|
invalidateConversationActivity(qc, conversationId);
|
|
126
|
-
void
|
|
126
|
+
void chunkZLHS3UKP_cjs.invalidateConversationLists(qc);
|
|
127
127
|
}
|
|
128
128
|
});
|
|
129
129
|
}
|
|
@@ -140,10 +140,10 @@ var THREAD_LOOKUP_DELAY_MS = 500;
|
|
|
140
140
|
function useStartTaskQuery() {
|
|
141
141
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
142
142
|
const queryClient = reactQuery.useQueryClient();
|
|
143
|
-
const chatModel =
|
|
143
|
+
const chatModel = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.chatModel);
|
|
144
144
|
const post = reactQuery.useMutation({
|
|
145
145
|
mutationFn: (query) => {
|
|
146
|
-
const selectedConfig = chatModel || queryClient.getQueriesData({ queryKey:
|
|
146
|
+
const selectedConfig = chatModel || queryClient.getQueriesData({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings() }).map(([, settings]) => settings?.last_config).find(Boolean);
|
|
147
147
|
return arbi.assistant.submit(query.input, {
|
|
148
148
|
docIds: query.docIds,
|
|
149
149
|
fullContext: false,
|
|
@@ -173,7 +173,7 @@ function useStartTaskQuery() {
|
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
if (!conversationId) return null;
|
|
176
|
-
await
|
|
176
|
+
await chunkZLHS3UKP_cjs.invalidateConversationLists(queryClient);
|
|
177
177
|
return { conversationId };
|
|
178
178
|
};
|
|
179
179
|
return {
|
|
@@ -202,8 +202,8 @@ function useUpdateConversation() {
|
|
|
202
202
|
}) => arbi.conversations.update(conversationId, patch),
|
|
203
203
|
// The list takes the server's version of the row; what hangs off it is read again.
|
|
204
204
|
onSuccess: (updated, { conversationId }) => {
|
|
205
|
-
|
|
206
|
-
return
|
|
205
|
+
chunkZLHS3UKP_cjs.patchConversation(qc, conversationId, updated);
|
|
206
|
+
return chunkZLHS3UKP_cjs.invalidateConversationDetails(qc, conversationId);
|
|
207
207
|
}
|
|
208
208
|
});
|
|
209
209
|
}
|
|
@@ -212,7 +212,7 @@ function useCreateWork() {
|
|
|
212
212
|
const qc = reactQuery.useQueryClient();
|
|
213
213
|
return reactQuery.useMutation({
|
|
214
214
|
mutationFn: (body) => arbi.conversations.createWork(body),
|
|
215
|
-
onSuccess: (created) =>
|
|
215
|
+
onSuccess: (created) => chunkZLHS3UKP_cjs.addConversationToList(qc, arbi.hasWorkspace ? arbi.getWorkspaceId() : null, created)
|
|
216
216
|
});
|
|
217
217
|
}
|
|
218
218
|
function useRunConversation() {
|
|
@@ -222,8 +222,8 @@ function useRunConversation() {
|
|
|
222
222
|
mutationFn: (conversationId) => arbi.conversations.runWithAuth(conversationId),
|
|
223
223
|
// The server's version replaces the listed one; everything under the conversation is re-read.
|
|
224
224
|
onSuccess: (updated) => {
|
|
225
|
-
if (updated?.external_id)
|
|
226
|
-
return qc.invalidateQueries({ queryKey:
|
|
225
|
+
if (updated?.external_id) chunkZLHS3UKP_cjs.patchConversation(qc, updated.external_id, updated);
|
|
226
|
+
return qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.allConversations() });
|
|
227
227
|
}
|
|
228
228
|
});
|
|
229
229
|
}
|
|
@@ -238,7 +238,7 @@ function useActOnStep() {
|
|
|
238
238
|
// The server's version of the conversation replaces the listed one; its history is re-read.
|
|
239
239
|
onSuccess: (updated) => {
|
|
240
240
|
if (!updated?.external_id) return;
|
|
241
|
-
|
|
241
|
+
chunkZLHS3UKP_cjs.patchConversation(qc, updated.external_id, updated);
|
|
242
242
|
invalidateConversationActivity(qc, updated.external_id);
|
|
243
243
|
}
|
|
244
244
|
});
|
|
@@ -253,7 +253,7 @@ function useSendBackStep() {
|
|
|
253
253
|
to,
|
|
254
254
|
note
|
|
255
255
|
}) => arbi.conversations.sendBackStep(conversationId, step, { to, note }),
|
|
256
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
256
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.allConversations() })
|
|
257
257
|
});
|
|
258
258
|
}
|
|
259
259
|
function usePlanWork() {
|
|
@@ -265,7 +265,7 @@ function usePlanWork() {
|
|
|
265
265
|
function useConversationPendingAuth(conversationId, options) {
|
|
266
266
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
267
267
|
return reactQuery.useQuery({
|
|
268
|
-
queryKey:
|
|
268
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.conversationPendingAuth(conversationId ?? ""),
|
|
269
269
|
queryFn: () => arbi.conversations.pendingAuth(conversationId),
|
|
270
270
|
enabled: (options?.enabled ?? true) && !!conversationId && arbi.isLoggedIn,
|
|
271
271
|
retry: false
|
|
@@ -274,7 +274,7 @@ function useConversationPendingAuth(conversationId, options) {
|
|
|
274
274
|
function useConversationActivity(conversationId, options) {
|
|
275
275
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
276
276
|
return reactQuery.useQuery({
|
|
277
|
-
queryKey:
|
|
277
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.conversationActivity(conversationId ?? ""),
|
|
278
278
|
queryFn: () => arbi.conversations.activity(conversationId),
|
|
279
279
|
enabled: (options?.enabled ?? true) && !!conversationId && arbi.isLoggedIn,
|
|
280
280
|
refetchInterval: options?.live ? 2500 : false
|
|
@@ -283,7 +283,7 @@ function useConversationActivity(conversationId, options) {
|
|
|
283
283
|
function useWorkflows(options) {
|
|
284
284
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
285
285
|
return reactQuery.useQuery({
|
|
286
|
-
queryKey:
|
|
286
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workflows(),
|
|
287
287
|
queryFn: () => arbi.workflows.list(),
|
|
288
288
|
// A clock or event can fire while the list is open, without a write here.
|
|
289
289
|
refetchInterval: options?.live ? 1e4 : false,
|
|
@@ -293,7 +293,7 @@ function useWorkflows(options) {
|
|
|
293
293
|
function useWorkflowRuns(workflowId) {
|
|
294
294
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
295
295
|
return reactQuery.useQuery({
|
|
296
|
-
queryKey:
|
|
296
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workflowRuns(workflowId ?? ""),
|
|
297
297
|
queryFn: () => arbi.workflows.runs(workflowId),
|
|
298
298
|
enabled: !!workflowId && arbi.isLoggedIn,
|
|
299
299
|
refetchInterval: 3e3,
|
|
@@ -306,7 +306,7 @@ function useCreateWorkflow() {
|
|
|
306
306
|
const qc = reactQuery.useQueryClient();
|
|
307
307
|
return reactQuery.useMutation({
|
|
308
308
|
mutationFn: (body) => arbi.workflows.create(body),
|
|
309
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
309
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workflows() })
|
|
310
310
|
});
|
|
311
311
|
}
|
|
312
312
|
function useUpdateWorkflow() {
|
|
@@ -317,7 +317,7 @@ function useUpdateWorkflow() {
|
|
|
317
317
|
workflowId,
|
|
318
318
|
patch
|
|
319
319
|
}) => arbi.workflows.update(workflowId, patch),
|
|
320
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
320
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workflows() })
|
|
321
321
|
});
|
|
322
322
|
}
|
|
323
323
|
function useDeleteWorkflow() {
|
|
@@ -325,18 +325,18 @@ function useDeleteWorkflow() {
|
|
|
325
325
|
const qc = reactQuery.useQueryClient();
|
|
326
326
|
return reactQuery.useMutation({
|
|
327
327
|
mutationFn: (workflowId) => arbi.workflows.delete(workflowId),
|
|
328
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
328
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workflows() })
|
|
329
329
|
});
|
|
330
330
|
}
|
|
331
331
|
function useRunWorkflow() {
|
|
332
332
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
333
333
|
const qc = reactQuery.useQueryClient();
|
|
334
334
|
return reactQuery.useMutation({
|
|
335
|
-
mutationKey:
|
|
335
|
+
mutationKey: chunkH4FGDXYB_cjs.arbiMutationKeys.runWorkflow(),
|
|
336
336
|
mutationFn: (workflowId) => arbi.workflows.run(workflowId),
|
|
337
337
|
onSuccess: () => Promise.all([
|
|
338
|
-
qc.invalidateQueries({ queryKey:
|
|
339
|
-
qc.invalidateQueries({ queryKey:
|
|
338
|
+
qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workflows() }),
|
|
339
|
+
qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.allConversations() })
|
|
340
340
|
])
|
|
341
341
|
});
|
|
342
342
|
}
|
|
@@ -345,7 +345,7 @@ function useCreateAgent() {
|
|
|
345
345
|
const qc = reactQuery.useQueryClient();
|
|
346
346
|
return reactQuery.useMutation({
|
|
347
347
|
mutationFn: (name) => arbi.agents.create(name),
|
|
348
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
348
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.agents() })
|
|
349
349
|
});
|
|
350
350
|
}
|
|
351
351
|
function useGenerateAgentAvatar() {
|
|
@@ -353,13 +353,13 @@ function useGenerateAgentAvatar() {
|
|
|
353
353
|
const qc = reactQuery.useQueryClient();
|
|
354
354
|
return reactQuery.useMutation({
|
|
355
355
|
mutationFn: ({ agentExtId, prompt }) => arbi.agents.generateAvatar(agentExtId, prompt),
|
|
356
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
356
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.agents() })
|
|
357
357
|
});
|
|
358
358
|
}
|
|
359
359
|
function useAuthorizeLimits(options) {
|
|
360
360
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
361
361
|
return reactQuery.useQuery({
|
|
362
|
-
queryKey:
|
|
362
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.authorizeLimits(),
|
|
363
363
|
queryFn: () => arbi.agents.authorizeLimits(),
|
|
364
364
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
365
365
|
});
|
|
@@ -367,7 +367,7 @@ function useAuthorizeLimits(options) {
|
|
|
367
367
|
function useMcpTools(options) {
|
|
368
368
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
369
369
|
return reactQuery.useQuery({
|
|
370
|
-
queryKey:
|
|
370
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.mcpTools(),
|
|
371
371
|
queryFn: () => arbi.health.mcpTools(),
|
|
372
372
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
373
373
|
});
|
|
@@ -375,7 +375,7 @@ function useMcpTools(options) {
|
|
|
375
375
|
function useAgentConfig(agentExtId, options) {
|
|
376
376
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
377
377
|
return reactQuery.useQuery({
|
|
378
|
-
queryKey:
|
|
378
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.agentConfig(agentExtId),
|
|
379
379
|
queryFn: async () => agentExtId ? await arbi.agents.getConfig(agentExtId) : await arbi.agentConfig.get("default"),
|
|
380
380
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
381
381
|
});
|
|
@@ -383,7 +383,7 @@ function useAgentConfig(agentExtId, options) {
|
|
|
383
383
|
function useAgentModels(options) {
|
|
384
384
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
385
385
|
return reactQuery.useQuery({
|
|
386
|
-
queryKey:
|
|
386
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.models(),
|
|
387
387
|
queryFn: async () => (await arbi.agentConfig.getModels()).models.map((m) => m.model_name),
|
|
388
388
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
389
389
|
});
|
|
@@ -406,17 +406,17 @@ function useSaveAgentConfig() {
|
|
|
406
406
|
});
|
|
407
407
|
},
|
|
408
408
|
onSuccess: (_saved, { agentExtId }) => Promise.all([
|
|
409
|
-
qc.invalidateQueries({ queryKey:
|
|
410
|
-
qc.invalidateQueries({ queryKey:
|
|
409
|
+
qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.configs() }),
|
|
410
|
+
qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.agentConfig(agentExtId) }),
|
|
411
411
|
// The agent list shows the pinned persona/model, so it refreshes too.
|
|
412
|
-
qc.invalidateQueries({ queryKey:
|
|
412
|
+
qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.agents() })
|
|
413
413
|
])
|
|
414
414
|
});
|
|
415
415
|
}
|
|
416
416
|
function useAgentWorkspaces(agentExtId, options) {
|
|
417
417
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
418
418
|
return reactQuery.useQuery({
|
|
419
|
-
queryKey:
|
|
419
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.agentWorkspaces(agentExtId ?? ""),
|
|
420
420
|
queryFn: () => arbi.agents.listWorkspaces(agentExtId),
|
|
421
421
|
enabled: (options?.enabled ?? true) && !!agentExtId && arbi.isLoggedIn
|
|
422
422
|
});
|
|
@@ -437,7 +437,7 @@ function useGrantAgentAccess() {
|
|
|
437
437
|
if (!agent?.email) throw new Error("The agent's address is unknown.");
|
|
438
438
|
return arbi.workspaces.grantAccess({ workspaceId, emails: [agent.email] });
|
|
439
439
|
},
|
|
440
|
-
onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey:
|
|
440
|
+
onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.agentWorkspaces(agentExtId) })
|
|
441
441
|
});
|
|
442
442
|
}
|
|
443
443
|
function useRevokeAgentAccess() {
|
|
@@ -445,13 +445,13 @@ function useRevokeAgentAccess() {
|
|
|
445
445
|
const qc = reactQuery.useQueryClient();
|
|
446
446
|
return reactQuery.useMutation({
|
|
447
447
|
mutationFn: ({ agentExtId, workspaceId }) => arbi.workspaces.removeUsers([agentExtId], { workspaceId }),
|
|
448
|
-
onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey:
|
|
448
|
+
onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.agentWorkspaces(agentExtId) })
|
|
449
449
|
});
|
|
450
450
|
}
|
|
451
451
|
function useSkills(options) {
|
|
452
452
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
453
453
|
return reactQuery.useQuery({
|
|
454
|
-
queryKey: [...
|
|
454
|
+
queryKey: [...chunkH4FGDXYB_cjs.arbiQueryKeys.skills(), options?.includeHidden ?? false],
|
|
455
455
|
queryFn: () => arbi.assistant.listSkills({ includeHidden: options?.includeHidden }),
|
|
456
456
|
refetchInterval: options?.live ? 5e3 : false,
|
|
457
457
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn,
|
|
@@ -477,7 +477,7 @@ function useUploadSkillFiles() {
|
|
|
477
477
|
}
|
|
478
478
|
return results;
|
|
479
479
|
},
|
|
480
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
480
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.skills() })
|
|
481
481
|
});
|
|
482
482
|
}
|
|
483
483
|
function assertSkillFolder(folder) {
|
|
@@ -502,13 +502,13 @@ function useSaveSkill() {
|
|
|
502
502
|
throwOnSkipped(result);
|
|
503
503
|
return result;
|
|
504
504
|
},
|
|
505
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
505
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.skills() })
|
|
506
506
|
});
|
|
507
507
|
}
|
|
508
508
|
function useSkillSource(docExtId, options) {
|
|
509
509
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
510
510
|
return reactQuery.useQuery({
|
|
511
|
-
queryKey:
|
|
511
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.skillSource(docExtId ?? ""),
|
|
512
512
|
queryFn: async () => {
|
|
513
513
|
const response = await arbi.documents.download(docExtId);
|
|
514
514
|
if (!response.ok) throw new Error(`Could not read the skill (${response.status})`);
|
|
@@ -523,7 +523,7 @@ function useDeleteSkill() {
|
|
|
523
523
|
const qc = reactQuery.useQueryClient();
|
|
524
524
|
return reactQuery.useMutation({
|
|
525
525
|
mutationFn: (docExtId) => arbi.documents.delete([docExtId]),
|
|
526
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
526
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.skills() })
|
|
527
527
|
});
|
|
528
528
|
}
|
|
529
529
|
function useSetSkillVisibility() {
|
|
@@ -531,13 +531,13 @@ function useSetSkillVisibility() {
|
|
|
531
531
|
const qc = reactQuery.useQueryClient();
|
|
532
532
|
return reactQuery.useMutation({
|
|
533
533
|
mutationFn: ({ docExtId, visibility }) => arbi.documents.update([{ external_id: docExtId, shared: visibility === "global" }]),
|
|
534
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
534
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.skills() })
|
|
535
535
|
});
|
|
536
536
|
}
|
|
537
537
|
function useAgentSession(agentId, options) {
|
|
538
538
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
539
539
|
return reactQuery.useQuery({
|
|
540
|
-
queryKey:
|
|
540
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.agentSession(agentId ?? ""),
|
|
541
541
|
queryFn: () => arbi.agents.getSession(agentId),
|
|
542
542
|
enabled: !!agentId && arbi.isLoggedIn && (options?.enabled ?? true),
|
|
543
543
|
refetchInterval: 5e3
|
|
@@ -546,7 +546,7 @@ function useAgentSession(agentId, options) {
|
|
|
546
546
|
function useAgentChats(agentId) {
|
|
547
547
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
548
548
|
return reactQuery.useQuery({
|
|
549
|
-
queryKey:
|
|
549
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.agentChats(agentId ?? ""),
|
|
550
550
|
queryFn: () => arbi.agents.listChats(agentId),
|
|
551
551
|
enabled: !!agentId && arbi.isLoggedIn,
|
|
552
552
|
refetchInterval: 5e3
|
|
@@ -555,10 +555,10 @@ function useAgentChats(agentId) {
|
|
|
555
555
|
function refreshAgentSession(qc, agentId) {
|
|
556
556
|
return Promise.all(
|
|
557
557
|
[
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
558
|
+
chunkH4FGDXYB_cjs.arbiQueryKeys.agentSession(agentId),
|
|
559
|
+
chunkH4FGDXYB_cjs.arbiQueryKeys.agentWorkspaces(agentId),
|
|
560
|
+
chunkH4FGDXYB_cjs.arbiQueryKeys.agentChats(agentId),
|
|
561
|
+
chunkH4FGDXYB_cjs.arbiQueryKeys.sessions()
|
|
562
562
|
].map((queryKey) => qc.invalidateQueries({ queryKey }))
|
|
563
563
|
);
|
|
564
564
|
}
|
|
@@ -603,7 +603,7 @@ function toChatCitations(source) {
|
|
|
603
603
|
});
|
|
604
604
|
}
|
|
605
605
|
function getThreadsQueryKey(conversationId) {
|
|
606
|
-
return
|
|
606
|
+
return chunkH4FGDXYB_cjs.arbiQueryKeys.conversationThreads(conversationId);
|
|
607
607
|
}
|
|
608
608
|
var allConversationThreads = {
|
|
609
609
|
predicate: ({ queryKey }) => queryKey[0] === "arbi" && queryKey[1] === "conversations" && queryKey[3] === "threads"
|
|
@@ -1245,7 +1245,7 @@ function useWorkspaceUsers(workspaceId, options) {
|
|
|
1245
1245
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
1246
1246
|
const workspace = workspaceId ?? (arbi.hasWorkspace ? arbi.getWorkspaceId() : "");
|
|
1247
1247
|
return reactQuery.useQuery({
|
|
1248
|
-
queryKey:
|
|
1248
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workspaceUsers(workspace),
|
|
1249
1249
|
enabled: !!workspace && (options?.enabled ?? arbi.hasWorkspace),
|
|
1250
1250
|
queryFn: async () => {
|
|
1251
1251
|
await options?.beforeFetch?.();
|
|
@@ -1256,21 +1256,21 @@ function useWorkspaceUsers(workspaceId, options) {
|
|
|
1256
1256
|
}
|
|
1257
1257
|
function settleMembership(qc) {
|
|
1258
1258
|
return Promise.all([
|
|
1259
|
-
qc.invalidateQueries({ queryKey:
|
|
1260
|
-
qc.invalidateQueries({ queryKey:
|
|
1259
|
+
qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.allWorkspaceUsers() }),
|
|
1260
|
+
qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workspaces() }),
|
|
1261
1261
|
// A project's collaborator quota counts workspace members.
|
|
1262
|
-
qc.invalidateQueries({ queryKey:
|
|
1262
|
+
qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.projects() })
|
|
1263
1263
|
]);
|
|
1264
1264
|
}
|
|
1265
1265
|
function useAddWorkspaceMembers() {
|
|
1266
1266
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
1267
1267
|
const qc = reactQuery.useQueryClient();
|
|
1268
1268
|
return reactQuery.useMutation({
|
|
1269
|
-
mutationKey:
|
|
1269
|
+
mutationKey: chunkH4FGDXYB_cjs.arbiMutationKeys.workspaceMembership(),
|
|
1270
1270
|
mutationFn: (request) => arbi.workspaces.addMembers(request),
|
|
1271
1271
|
onSuccess: () => Promise.all([
|
|
1272
1272
|
settleMembership(qc),
|
|
1273
|
-
qc.invalidateQueries({ queryKey:
|
|
1273
|
+
qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.contacts() })
|
|
1274
1274
|
])
|
|
1275
1275
|
});
|
|
1276
1276
|
}
|
|
@@ -1278,7 +1278,7 @@ function useRemoveWorkspaceMembers() {
|
|
|
1278
1278
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
1279
1279
|
const qc = reactQuery.useQueryClient();
|
|
1280
1280
|
return reactQuery.useMutation({
|
|
1281
|
-
mutationKey:
|
|
1281
|
+
mutationKey: chunkH4FGDXYB_cjs.arbiMutationKeys.workspaceMembership(),
|
|
1282
1282
|
mutationFn: (userIds) => arbi.workspaces.removeUsers(userIds),
|
|
1283
1283
|
onSuccess: () => settleMembership(qc)
|
|
1284
1284
|
});
|
|
@@ -1287,11 +1287,11 @@ function useSetWorkspaceMemberRoles() {
|
|
|
1287
1287
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
1288
1288
|
const qc = reactQuery.useQueryClient();
|
|
1289
1289
|
return reactQuery.useMutation({
|
|
1290
|
-
mutationKey:
|
|
1290
|
+
mutationKey: chunkH4FGDXYB_cjs.arbiMutationKeys.setWorkspaceMemberRoles(),
|
|
1291
1291
|
mutationFn: ({ userIds, role }) => arbi.workspaces.setUserRole(userIds, role),
|
|
1292
1292
|
onSuccess: () => Promise.all([
|
|
1293
|
-
qc.invalidateQueries({ queryKey:
|
|
1294
|
-
qc.invalidateQueries({ queryKey:
|
|
1293
|
+
qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.allWorkspaceUsers() }),
|
|
1294
|
+
qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workspaces() })
|
|
1295
1295
|
])
|
|
1296
1296
|
});
|
|
1297
1297
|
}
|
|
@@ -1308,31 +1308,31 @@ function buildMentionCandidates(users, currentUserId) {
|
|
|
1308
1308
|
return [{ id: "assistant", kind: "assistant", label: ASSISTANT_MENTION_LABEL }, ...people];
|
|
1309
1309
|
}
|
|
1310
1310
|
function cachedMentionCandidates(queryClient, workspaceId, currentUserId) {
|
|
1311
|
-
const users = workspaceId && queryClient.getQueryData(
|
|
1311
|
+
const users = workspaceId && queryClient.getQueryData(chunkH4FGDXYB_cjs.arbiQueryKeys.workspaceUsers(workspaceId)) || [];
|
|
1312
1312
|
return buildMentionCandidates(users, currentUserId);
|
|
1313
1313
|
}
|
|
1314
1314
|
function cachedAssistantMode(queryClient, conversationId, newMode) {
|
|
1315
1315
|
if (!conversationId) return newMode;
|
|
1316
1316
|
const threads = queryClient.getQueriesData(allConversationThreads).map(([, data]) => data).find((data) => data?.conversation_ext_id === conversationId);
|
|
1317
1317
|
if (threads?.assistant_mode) return threads.assistant_mode;
|
|
1318
|
-
return
|
|
1318
|
+
return chunkZLHS3UKP_cjs.findConversation(queryClient, conversationId)?.assistant_mode ?? "always";
|
|
1319
1319
|
}
|
|
1320
1320
|
function isCommentToPeople(queryClient, conversationId, content, candidates) {
|
|
1321
1321
|
const mentioned = chunkTYZFRV7P_cjs.extractMentions(content, candidates);
|
|
1322
1322
|
if (mentioned.some((c) => c.kind === "assistant")) return false;
|
|
1323
|
-
if (
|
|
1323
|
+
if (chunkZLHS3UKP_cjs.isConversationShared(queryClient, conversationId)) return true;
|
|
1324
1324
|
if (mentioned.some((c) => c.kind === "user")) return true;
|
|
1325
|
-
return !!conversationId && cachedAssistantMode(queryClient, conversationId, "always") === "mentioned" && !
|
|
1325
|
+
return !!conversationId && cachedAssistantMode(queryClient, conversationId, "always") === "mentioned" && !chunkZLHS3UKP_cjs.isKnownSoloConversation(queryClient, conversationId);
|
|
1326
1326
|
}
|
|
1327
1327
|
function useMentionCandidates() {
|
|
1328
1328
|
const { data: users = [] } = useWorkspaceUsers();
|
|
1329
|
-
const currentUserId =
|
|
1329
|
+
const currentUserId = chunkL3NHETSD_cjs.useArbiSession().user?.external_id;
|
|
1330
1330
|
return React.useMemo(() => buildMentionCandidates(users, currentUserId), [users, currentUserId]);
|
|
1331
1331
|
}
|
|
1332
1332
|
function useUserSettings(options) {
|
|
1333
1333
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
1334
1334
|
return reactQuery.useQuery({
|
|
1335
|
-
queryKey:
|
|
1335
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings(),
|
|
1336
1336
|
queryFn: () => arbi.settings.get(),
|
|
1337
1337
|
// Edited about once a month, and every write here patches the cache: no refetch on each mount.
|
|
1338
1338
|
staleTime: 30 * 60 * 1e3,
|
|
@@ -1345,18 +1345,18 @@ function useUpdateUserSettings() {
|
|
|
1345
1345
|
return reactQuery.useMutation({
|
|
1346
1346
|
mutationFn: (patch) => arbi.settings.update(patch),
|
|
1347
1347
|
onMutate: async (patch) => {
|
|
1348
|
-
await qc.cancelQueries({ queryKey:
|
|
1349
|
-
const previous = qc.getQueryData(
|
|
1348
|
+
await qc.cancelQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings() });
|
|
1349
|
+
const previous = qc.getQueryData(chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings());
|
|
1350
1350
|
qc.setQueryData(
|
|
1351
|
-
|
|
1351
|
+
chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings(),
|
|
1352
1352
|
(old) => old ? { ...old, ...patch } : old
|
|
1353
1353
|
);
|
|
1354
1354
|
return { previous };
|
|
1355
1355
|
},
|
|
1356
1356
|
onError: (_err, _patch, context) => {
|
|
1357
|
-
qc.setQueryData(
|
|
1357
|
+
qc.setQueryData(chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings(), context?.previous);
|
|
1358
1358
|
},
|
|
1359
|
-
onSettled: () => qc.invalidateQueries({ queryKey:
|
|
1359
|
+
onSettled: () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings() })
|
|
1360
1360
|
});
|
|
1361
1361
|
}
|
|
1362
1362
|
|
|
@@ -1383,7 +1383,7 @@ function formatConfigValidationError(error) {
|
|
|
1383
1383
|
function useConfigSchema() {
|
|
1384
1384
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
1385
1385
|
return reactQuery.useQuery({
|
|
1386
|
-
queryKey:
|
|
1386
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.configSchema(),
|
|
1387
1387
|
queryFn: () => arbi.agentConfig.getSchema(),
|
|
1388
1388
|
enabled: arbi.isLoggedIn
|
|
1389
1389
|
});
|
|
@@ -1394,8 +1394,8 @@ function useSaveConfig() {
|
|
|
1394
1394
|
return reactQuery.useMutation({
|
|
1395
1395
|
mutationFn: (body) => arbi.agentConfig.save(body),
|
|
1396
1396
|
onSuccess: () => {
|
|
1397
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
1398
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
1397
|
+
void queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.configs() });
|
|
1398
|
+
void queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings() });
|
|
1399
1399
|
},
|
|
1400
1400
|
onError: (error) => {
|
|
1401
1401
|
chunkVAMPYLQ4_cjs.notify.error(formatConfigValidationError(error), {
|
|
@@ -1409,7 +1409,7 @@ function useDeleteConfig() {
|
|
|
1409
1409
|
const queryClient = reactQuery.useQueryClient();
|
|
1410
1410
|
return reactQuery.useMutation({
|
|
1411
1411
|
mutationFn: (configId) => arbi.agentConfig.delete(configId),
|
|
1412
|
-
onSuccess: () => queryClient.invalidateQueries({ queryKey:
|
|
1412
|
+
onSuccess: () => queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.configs() })
|
|
1413
1413
|
});
|
|
1414
1414
|
}
|
|
1415
1415
|
function configDelta(active, defaults) {
|
|
@@ -1430,11 +1430,11 @@ function configDelta(active, defaults) {
|
|
|
1430
1430
|
}
|
|
1431
1431
|
function useSaveConfigField() {
|
|
1432
1432
|
const saveConfig = useSaveConfig();
|
|
1433
|
-
const { data: defaultConfig } =
|
|
1434
|
-
const chatModel =
|
|
1433
|
+
const { data: defaultConfig } = chunkL3NHETSD_cjs.useConfig("default");
|
|
1434
|
+
const chatModel = chunkL3NHETSD_cjs.useArbiSessionState((state) => state.chatModel);
|
|
1435
1435
|
const { data: userSettings } = useUserSettings();
|
|
1436
1436
|
const activeConfigId = chatModel || userSettings?.last_config || "default";
|
|
1437
|
-
const { data: activeConfigData } =
|
|
1437
|
+
const { data: activeConfigData } = chunkL3NHETSD_cjs.useConfig(activeConfigId);
|
|
1438
1438
|
const buildDelta = (changes) => {
|
|
1439
1439
|
const defaults = defaultConfig ?? {};
|
|
1440
1440
|
const active = activeConfigData ?? {};
|
|
@@ -1472,8 +1472,8 @@ function pendingChatModelSave(session) {
|
|
|
1472
1472
|
return chatModelSaves.get(session);
|
|
1473
1473
|
}
|
|
1474
1474
|
function useApplyChatModel() {
|
|
1475
|
-
const session =
|
|
1476
|
-
const { data: availableModels } =
|
|
1475
|
+
const session = chunkL3NHETSD_cjs.useArbiSessionStore();
|
|
1476
|
+
const { data: availableModels } = chunkL3NHETSD_cjs.useAvailableModels();
|
|
1477
1477
|
const configField = useSaveConfigField();
|
|
1478
1478
|
return React.useCallback(
|
|
1479
1479
|
async (model, label) => {
|
|
@@ -1509,8 +1509,8 @@ function startsWith(key, prefix) {
|
|
|
1509
1509
|
return prefix.every((part, i) => key[i] === part);
|
|
1510
1510
|
}
|
|
1511
1511
|
function subscribeDocumentReads(qc, onRows) {
|
|
1512
|
-
const lists =
|
|
1513
|
-
const one =
|
|
1512
|
+
const lists = chunkH4FGDXYB_cjs.arbiQueryKeys.allDocuments();
|
|
1513
|
+
const one = chunkH4FGDXYB_cjs.arbiQueryKeys.document("").slice(0, -1);
|
|
1514
1514
|
return qc.getQueryCache().subscribe((event) => {
|
|
1515
1515
|
if (event.type !== "updated" || event.action.type !== "success") return;
|
|
1516
1516
|
const key = event.query.queryKey;
|
|
@@ -1528,10 +1528,10 @@ var useArbiWsStore = zustand.create((set) => ({
|
|
|
1528
1528
|
presence: {},
|
|
1529
1529
|
setStatus: (status) => set({ status }),
|
|
1530
1530
|
applyTaskUpdate: (msg) => set(
|
|
1531
|
-
(s) =>
|
|
1531
|
+
(s) => chunkKFFH2JJM_cjs.isStaleTaskUpdate(s.tasks[msg.doc_ext_id], msg) ? s : { tasks: { ...s.tasks, [msg.doc_ext_id]: msg }, lastTaskUpdate: msg }
|
|
1532
1532
|
),
|
|
1533
1533
|
settleTasks: (rows) => set((s) => {
|
|
1534
|
-
const settled =
|
|
1534
|
+
const settled = chunkKFFH2JJM_cjs.settledByRows(s.tasks, rows);
|
|
1535
1535
|
if (!settled.length) return s;
|
|
1536
1536
|
const tasks = { ...s.tasks };
|
|
1537
1537
|
for (const task of settled) tasks[task.doc_ext_id] = task;
|
|
@@ -1581,7 +1581,7 @@ function useDocumentPendingSync(docId) {
|
|
|
1581
1581
|
function applyOptimisticDocumentEdit(qc, updates) {
|
|
1582
1582
|
const byId = new Map(updates.map((update) => [update.external_id, update]));
|
|
1583
1583
|
const previous = [];
|
|
1584
|
-
|
|
1584
|
+
chunkKFFH2JJM_cjs.patchDocuments(qc, (old) => {
|
|
1585
1585
|
let changed = false;
|
|
1586
1586
|
const next = old.map((doc) => {
|
|
1587
1587
|
const update = byId.get(doc.external_id);
|
|
@@ -1594,9 +1594,9 @@ function applyOptimisticDocumentEdit(qc, updates) {
|
|
|
1594
1594
|
});
|
|
1595
1595
|
const previousOwn = updates.map((update) => {
|
|
1596
1596
|
const own = qc.getQueryData(
|
|
1597
|
-
|
|
1597
|
+
chunkH4FGDXYB_cjs.arbiQueryKeys.document(update.external_id)
|
|
1598
1598
|
);
|
|
1599
|
-
if (own)
|
|
1599
|
+
if (own) chunkKFFH2JJM_cjs.setCachedDocument(qc, { ...own, ...update });
|
|
1600
1600
|
return [update.external_id, own];
|
|
1601
1601
|
});
|
|
1602
1602
|
return { optimistic: true, previous, previousOwn };
|
|
@@ -1606,38 +1606,38 @@ function rollbackOptimisticDocumentEdit(qc, context) {
|
|
|
1606
1606
|
if (!edit?.optimistic) return;
|
|
1607
1607
|
if (edit.previous.length) {
|
|
1608
1608
|
const restore = new Map(edit.previous.map((doc) => [doc.external_id, doc]));
|
|
1609
|
-
|
|
1609
|
+
chunkKFFH2JJM_cjs.patchDocuments(
|
|
1610
1610
|
qc,
|
|
1611
1611
|
(old) => old.some((doc) => restore.has(doc.external_id)) ? old.map((doc) => restore.get(doc.external_id) ?? doc) : old
|
|
1612
1612
|
);
|
|
1613
1613
|
}
|
|
1614
|
-
for (const [id, own] of edit.previousOwn) qc.setQueryData(
|
|
1614
|
+
for (const [id, own] of edit.previousOwn) qc.setQueryData(chunkH4FGDXYB_cjs.arbiQueryKeys.document(id), own);
|
|
1615
1615
|
}
|
|
1616
1616
|
function settleUpdatedDocuments(qc, updated) {
|
|
1617
1617
|
if (!updated.length) return;
|
|
1618
1618
|
const byId = new Map(updated.map((doc) => [doc.external_id, doc]));
|
|
1619
|
-
|
|
1619
|
+
chunkKFFH2JJM_cjs.patchDocuments(
|
|
1620
1620
|
qc,
|
|
1621
1621
|
(old) => old.some((doc) => byId.has(doc.external_id)) ? old.map((doc) => byId.get(doc.external_id) ?? doc) : old
|
|
1622
1622
|
);
|
|
1623
|
-
for (const doc of updated)
|
|
1623
|
+
for (const doc of updated) chunkKFFH2JJM_cjs.setCachedDocument(qc, doc);
|
|
1624
1624
|
}
|
|
1625
1625
|
function patchEachDocument(qc, docIds, reducer) {
|
|
1626
1626
|
const ids = new Set(docIds);
|
|
1627
|
-
|
|
1627
|
+
chunkKFFH2JJM_cjs.patchDocuments(
|
|
1628
1628
|
qc,
|
|
1629
1629
|
(old) => old.some((doc) => ids.has(doc.external_id)) ? old.map((doc) => ids.has(doc.external_id) ? reducer(doc) : doc) : old
|
|
1630
1630
|
);
|
|
1631
|
-
for (const id of ids)
|
|
1631
|
+
for (const id of ids) chunkKFFH2JJM_cjs.patchCachedDocument(qc, id, reducer);
|
|
1632
1632
|
}
|
|
1633
1633
|
function workspaceOf(qc, docId) {
|
|
1634
1634
|
for (const [, docs] of qc.getQueriesData({
|
|
1635
|
-
queryKey:
|
|
1635
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.allDocuments()
|
|
1636
1636
|
})) {
|
|
1637
1637
|
const doc = Array.isArray(docs) ? docs.find((d) => d.external_id === docId) : void 0;
|
|
1638
1638
|
if (doc) return doc.workspace_ext_id;
|
|
1639
1639
|
}
|
|
1640
|
-
return qc.getQueryData(
|
|
1640
|
+
return qc.getQueryData(chunkH4FGDXYB_cjs.arbiQueryKeys.document(docId))?.workspace_ext_id;
|
|
1641
1641
|
}
|
|
1642
1642
|
function settleAssignedDocTags(qc, created) {
|
|
1643
1643
|
const byDoc = /* @__PURE__ */ new Map();
|
|
@@ -1655,13 +1655,13 @@ function settleAssignedDocTags(qc, created) {
|
|
|
1655
1655
|
...doc,
|
|
1656
1656
|
doctags: [...doc.doctags ?? [], ...byDoc.get(doc.external_id) ?? []]
|
|
1657
1657
|
}));
|
|
1658
|
-
for (const [workspaceId, delta] of workspaces)
|
|
1658
|
+
for (const [workspaceId, delta] of workspaces) chunkKFFH2JJM_cjs.adjustTagCounts(qc, workspaceId, delta);
|
|
1659
1659
|
}
|
|
1660
1660
|
function settleRemovedDocTags(qc, { tagId, docIds }) {
|
|
1661
1661
|
const ids = new Set(docIds);
|
|
1662
1662
|
const removedByWorkspace = /* @__PURE__ */ new Map();
|
|
1663
1663
|
for (const [, docs] of qc.getQueriesData({
|
|
1664
|
-
queryKey:
|
|
1664
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.allDocuments()
|
|
1665
1665
|
})) {
|
|
1666
1666
|
for (const doc of Array.isArray(docs) ? docs : []) {
|
|
1667
1667
|
if (!ids.has(doc.external_id)) continue;
|
|
@@ -1677,7 +1677,7 @@ function settleRemovedDocTags(qc, { tagId, docIds }) {
|
|
|
1677
1677
|
doctags: (doc.doctags ?? []).filter((dt) => dt.tag_ext_id !== tagId)
|
|
1678
1678
|
}));
|
|
1679
1679
|
for (const [workspaceId, removed] of removedByWorkspace)
|
|
1680
|
-
|
|
1680
|
+
chunkKFFH2JJM_cjs.adjustTagCounts(qc, workspaceId, /* @__PURE__ */ new Map([[tagId, -removed]]));
|
|
1681
1681
|
}
|
|
1682
1682
|
function settleUpdatedDocTag(qc, updated) {
|
|
1683
1683
|
patchEachDocument(qc, [updated.doc_ext_id], (doc) => ({
|
|
@@ -1687,22 +1687,22 @@ function settleUpdatedDocTag(qc, updated) {
|
|
|
1687
1687
|
}
|
|
1688
1688
|
var replayableDocumentMutations = [
|
|
1689
1689
|
{
|
|
1690
|
-
mutationKey:
|
|
1690
|
+
mutationKey: chunkH4FGDXYB_cjs.arbiMutationKeys.updateDocuments(),
|
|
1691
1691
|
run: (client, input) => browser.documents.updateDocuments(client, input.documents),
|
|
1692
1692
|
settle: (qc, updated) => settleUpdatedDocuments(qc, updated)
|
|
1693
1693
|
},
|
|
1694
1694
|
{
|
|
1695
|
-
mutationKey:
|
|
1695
|
+
mutationKey: chunkH4FGDXYB_cjs.arbiMutationKeys.assignDocTags(),
|
|
1696
1696
|
run: (client, input) => browser.doctags.assignDocTags(client, input.tagId, input.docIds, input.note, input.citations),
|
|
1697
1697
|
settle: (qc, created) => settleAssignedDocTags(qc, created)
|
|
1698
1698
|
},
|
|
1699
1699
|
{
|
|
1700
|
-
mutationKey:
|
|
1700
|
+
mutationKey: chunkH4FGDXYB_cjs.arbiMutationKeys.removeDocTags(),
|
|
1701
1701
|
run: (client, input) => browser.doctags.removeDocTags(client, input.tagId, input.docIds),
|
|
1702
1702
|
settle: (qc, _data, input) => settleRemovedDocTags(qc, input)
|
|
1703
1703
|
},
|
|
1704
1704
|
{
|
|
1705
|
-
mutationKey:
|
|
1705
|
+
mutationKey: chunkH4FGDXYB_cjs.arbiMutationKeys.updateDocTag(),
|
|
1706
1706
|
run: (client, input) => browser.doctags.updateDocTag(client, input.tagId, input.docId, {
|
|
1707
1707
|
note: input.note,
|
|
1708
1708
|
citations: input.citations
|
|
@@ -1725,7 +1725,7 @@ function useUpdateDocuments() {
|
|
|
1725
1725
|
const qc = reactQuery.useQueryClient();
|
|
1726
1726
|
return resolvingOffline(
|
|
1727
1727
|
reactQuery.useMutation({
|
|
1728
|
-
mutationKey:
|
|
1728
|
+
mutationKey: chunkH4FGDXYB_cjs.arbiMutationKeys.updateDocuments(),
|
|
1729
1729
|
mutationFn: ({ documents: documents2 }) => arbi.documents.update(documents2),
|
|
1730
1730
|
onMutate: ({ documents: documents2 }) => reactQuery.onlineManager.isOnline() || !documents2.length ? void 0 : applyOptimisticDocumentEdit(qc, documents2),
|
|
1731
1731
|
onError: (_error, _input, context) => rollbackOptimisticDocumentEdit(qc, context),
|
|
@@ -1753,7 +1753,7 @@ function useRenameFolder() {
|
|
|
1753
1753
|
return folder === void 0 ? [] : [{ external_id: doc.external_id, folder }];
|
|
1754
1754
|
});
|
|
1755
1755
|
if (updates.length > 0) await mutateAsync({ documents: updates });
|
|
1756
|
-
|
|
1756
|
+
chunkKFFH2JJM_cjs.patchDocuments(qc, (rows) => {
|
|
1757
1757
|
let changed = false;
|
|
1758
1758
|
const next = rows.map((doc) => {
|
|
1759
1759
|
const folder = moved(doc.folder);
|
|
@@ -1773,30 +1773,30 @@ function useDeleteDocuments() {
|
|
|
1773
1773
|
const qc = reactQuery.useQueryClient();
|
|
1774
1774
|
const { onDocumentsDeleted } = useDocumentsSupport();
|
|
1775
1775
|
return reactQuery.useMutation({
|
|
1776
|
-
mutationKey:
|
|
1776
|
+
mutationKey: chunkH4FGDXYB_cjs.arbiMutationKeys.deleteDocuments(),
|
|
1777
1777
|
mutationFn: (docIds) => arbi.documents.delete(docIds),
|
|
1778
1778
|
onSuccess: (_data, docIds) => {
|
|
1779
1779
|
const gone = new Set(docIds);
|
|
1780
|
-
|
|
1780
|
+
chunkKFFH2JJM_cjs.patchDocuments(
|
|
1781
1781
|
qc,
|
|
1782
1782
|
(old) => old.some((doc) => gone.has(doc.external_id)) ? old.filter((doc) => !gone.has(doc.external_id)) : old
|
|
1783
1783
|
);
|
|
1784
|
-
|
|
1784
|
+
chunkKFFH2JJM_cjs.forgetDocuments(qc, docIds);
|
|
1785
1785
|
onDocumentsDeleted?.(docIds);
|
|
1786
|
-
return qc.invalidateQueries({ queryKey:
|
|
1786
|
+
return qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workspaces() });
|
|
1787
1787
|
}
|
|
1788
1788
|
});
|
|
1789
1789
|
}
|
|
1790
1790
|
async function settleUpload(qc, arbi, docIds, processingTask) {
|
|
1791
|
-
if (docIds?.length) await
|
|
1792
|
-
await qc.invalidateQueries({ queryKey:
|
|
1791
|
+
if (docIds?.length) await chunkKFFH2JJM_cjs.refreshDocuments(qc, arbi, docIds, { processingTask });
|
|
1792
|
+
await qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workspaces() });
|
|
1793
1793
|
}
|
|
1794
1794
|
function useUploadDocuments() {
|
|
1795
1795
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
1796
1796
|
const qc = reactQuery.useQueryClient();
|
|
1797
1797
|
const { processingTask } = useDocumentsSupport();
|
|
1798
1798
|
return reactQuery.useMutation({
|
|
1799
|
-
mutationKey:
|
|
1799
|
+
mutationKey: chunkH4FGDXYB_cjs.arbiMutationKeys.uploadDocuments(),
|
|
1800
1800
|
mutationFn: ({ files, options }) => arbi.documents.upload(files, options),
|
|
1801
1801
|
onSuccess: (result) => settleUpload(qc, arbi, result.doc_ext_ids, processingTask)
|
|
1802
1802
|
});
|
|
@@ -1806,7 +1806,7 @@ function useUploadUrls() {
|
|
|
1806
1806
|
const qc = reactQuery.useQueryClient();
|
|
1807
1807
|
const { processingTask } = useDocumentsSupport();
|
|
1808
1808
|
return reactQuery.useMutation({
|
|
1809
|
-
mutationKey:
|
|
1809
|
+
mutationKey: chunkH4FGDXYB_cjs.arbiMutationKeys.uploadUrls(),
|
|
1810
1810
|
mutationFn: ({ urls, shared, configExtId }) => arbi.documents.uploadUrl(urls, { shared, configExtId }),
|
|
1811
1811
|
onSuccess: (result) => settleUpload(qc, arbi, result.doc_ext_ids, processingTask)
|
|
1812
1812
|
});
|
|
@@ -1816,7 +1816,7 @@ function useAssignDocTags() {
|
|
|
1816
1816
|
const qc = reactQuery.useQueryClient();
|
|
1817
1817
|
return resolvingOffline(
|
|
1818
1818
|
reactQuery.useMutation({
|
|
1819
|
-
mutationKey:
|
|
1819
|
+
mutationKey: chunkH4FGDXYB_cjs.arbiMutationKeys.assignDocTags(),
|
|
1820
1820
|
mutationFn: ({ tagId, docIds, note, citations }) => arbi.doctags.assign(tagId, docIds, note, citations),
|
|
1821
1821
|
onSuccess: (created) => settleAssignedDocTags(qc, created)
|
|
1822
1822
|
})
|
|
@@ -1827,7 +1827,7 @@ function useRemoveDocTags() {
|
|
|
1827
1827
|
const qc = reactQuery.useQueryClient();
|
|
1828
1828
|
return resolvingOffline(
|
|
1829
1829
|
reactQuery.useMutation({
|
|
1830
|
-
mutationKey:
|
|
1830
|
+
mutationKey: chunkH4FGDXYB_cjs.arbiMutationKeys.removeDocTags(),
|
|
1831
1831
|
mutationFn: ({ tagId, docIds }) => arbi.doctags.remove(tagId, docIds),
|
|
1832
1832
|
onSuccess: (_data, input) => settleRemovedDocTags(qc, input)
|
|
1833
1833
|
})
|
|
@@ -1838,7 +1838,7 @@ function useUpdateDocTag() {
|
|
|
1838
1838
|
const qc = reactQuery.useQueryClient();
|
|
1839
1839
|
return resolvingOffline(
|
|
1840
1840
|
reactQuery.useMutation({
|
|
1841
|
-
mutationKey:
|
|
1841
|
+
mutationKey: chunkH4FGDXYB_cjs.arbiMutationKeys.updateDocTag(),
|
|
1842
1842
|
mutationFn: ({ tagId, docId, note, citations }) => arbi.doctags.update(tagId, docId, { note, citations }),
|
|
1843
1843
|
onSuccess: (updated) => settleUpdatedDocTag(qc, updated)
|
|
1844
1844
|
})
|
|
@@ -1849,13 +1849,13 @@ function useGenerateDocTags() {
|
|
|
1849
1849
|
const qc = reactQuery.useQueryClient();
|
|
1850
1850
|
const { onProcessingQueued } = useDocumentsSupport();
|
|
1851
1851
|
return reactQuery.useMutation({
|
|
1852
|
-
mutationKey:
|
|
1852
|
+
mutationKey: chunkH4FGDXYB_cjs.arbiMutationKeys.generateDocTags(),
|
|
1853
1853
|
mutationFn: ({ tagIds, docIds, overwrite }) => arbi.doctags.generate(tagIds, docIds, { overwrite }),
|
|
1854
1854
|
onMutate: ({ docIds }) => {
|
|
1855
1855
|
if (!onProcessingQueued || !docIds.length) return void 0;
|
|
1856
1856
|
const workspaceId = arbi.hasWorkspace ? arbi.getWorkspaceId() : "";
|
|
1857
1857
|
const listed = new Map(
|
|
1858
|
-
(
|
|
1858
|
+
(chunkKFFH2JJM_cjs.getCachedDocuments(qc, workspaceId) ?? []).map((doc) => [doc.external_id, doc])
|
|
1859
1859
|
);
|
|
1860
1860
|
return {
|
|
1861
1861
|
undo: onProcessingQueued(
|
|
@@ -1877,7 +1877,7 @@ function useFinaliseTranslation() {
|
|
|
1877
1877
|
const { processingTask } = useDocumentsSupport();
|
|
1878
1878
|
return reactQuery.useMutation({
|
|
1879
1879
|
mutationFn: (docId) => arbi.documents.finaliseTranslation(docId),
|
|
1880
|
-
onSuccess: (result) => void
|
|
1880
|
+
onSuccess: (result) => void chunkKFFH2JJM_cjs.refreshDocuments(qc, arbi, [result.document_ext_id], { processingTask })
|
|
1881
1881
|
});
|
|
1882
1882
|
}
|
|
1883
1883
|
|
|
@@ -2063,7 +2063,7 @@ function useDocumentThumbnails(visibleIds) {
|
|
|
2063
2063
|
for (const id of visibleIds)
|
|
2064
2064
|
if (IN_PROGRESS.has(tasks[id]?.status ?? "")) resolvedRef.current.delete(id);
|
|
2065
2065
|
const ready = visibleIds.filter(
|
|
2066
|
-
(id) => !resolvedRef.current.has(id) &&
|
|
2066
|
+
(id) => !resolvedRef.current.has(id) && chunkKFFH2JJM_cjs.FINISHED_DOCUMENT_STATUSES.has(tasks[id]?.status ?? "")
|
|
2067
2067
|
);
|
|
2068
2068
|
if (ready.length > 0) void fetchMissing(ready);
|
|
2069
2069
|
}, [tasks, idsKey, fetchMissing]);
|
|
@@ -2155,8 +2155,8 @@ function DocumentReview({
|
|
|
2155
2155
|
onClose,
|
|
2156
2156
|
className
|
|
2157
2157
|
}) {
|
|
2158
|
-
const parsedQuery =
|
|
2159
|
-
const tagsQuery =
|
|
2158
|
+
const parsedQuery = chunkL3NHETSD_cjs.useParsedDocument(docId, stage);
|
|
2159
|
+
const tagsQuery = chunkL3NHETSD_cjs.useTags(workspaceId);
|
|
2160
2160
|
const tagNameById = React__default.default.useMemo(() => {
|
|
2161
2161
|
const map = /* @__PURE__ */ new Map();
|
|
2162
2162
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -3126,7 +3126,7 @@ function useUploadFiles() {
|
|
|
3126
3126
|
if (docIds2.length > 0) {
|
|
3127
3127
|
for (const docId of docIds2) uploadedFolders.set(docId, { workspaceId, folder });
|
|
3128
3128
|
const made = new Set(docIds2);
|
|
3129
|
-
|
|
3129
|
+
chunkKFFH2JJM_cjs.patchDocuments(
|
|
3130
3130
|
qc,
|
|
3131
3131
|
(rows) => rows.map((doc) => made.has(doc.external_id) ? { ...doc, folder } : doc),
|
|
3132
3132
|
workspaceId
|
|
@@ -3142,10 +3142,10 @@ function useUploadFiles() {
|
|
|
3142
3142
|
const docIds = results.flatMap((result) => result.doc_ext_ids ?? []);
|
|
3143
3143
|
const skipped = results.flatMap((result) => result.skipped ?? []);
|
|
3144
3144
|
if (docIds.length > 0) {
|
|
3145
|
-
const read = await
|
|
3145
|
+
const read = await chunkKFFH2JJM_cjs.refreshDocuments(qc, arbi, docIds, { processingTask });
|
|
3146
3146
|
for (const doc of read) forgetUploadedDocumentFolder(doc.external_id);
|
|
3147
3147
|
}
|
|
3148
|
-
await qc.invalidateQueries({ queryKey:
|
|
3148
|
+
await qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workspaces() });
|
|
3149
3149
|
if (docIds.length > 0 && input.generateTagIds?.length) {
|
|
3150
3150
|
await generateDocTags({ tagIds: input.generateTagIds, docIds, overwrite: false }).catch(
|
|
3151
3151
|
() => void 0
|
|
@@ -3229,7 +3229,7 @@ function getRelatedLabels(related) {
|
|
|
3229
3229
|
return parts;
|
|
3230
3230
|
}
|
|
3231
3231
|
function useRelatedDocuments(documents2) {
|
|
3232
|
-
const { data: similarData } =
|
|
3232
|
+
const { data: similarData } = chunkKFFH2JJM_cjs.useSimilarDocuments();
|
|
3233
3233
|
const structuralKey = React.useMemo(() => {
|
|
3234
3234
|
const parts = [];
|
|
3235
3235
|
for (const doc of documents2) {
|
|
@@ -3309,7 +3309,7 @@ function useRelatedDocuments(documents2) {
|
|
|
3309
3309
|
}
|
|
3310
3310
|
if (similarData?.pairs) {
|
|
3311
3311
|
for (const pair of similarData.pairs) {
|
|
3312
|
-
if (pair.similarity <
|
|
3312
|
+
if (pair.similarity < chunkKFFH2JJM_cjs.SIMILARITY_THRESHOLD || pair.similarity >= 1) continue;
|
|
3313
3313
|
const docA = docById.get(pair.doc_a.external_id);
|
|
3314
3314
|
const docB = docById.get(pair.doc_b.external_id);
|
|
3315
3315
|
if (docA && docB) {
|
|
@@ -3342,11 +3342,11 @@ function createStreamHandlers(ctx, params) {
|
|
|
3342
3342
|
const clientId = streamState.queuedClientId;
|
|
3343
3343
|
if (!clientId || queuedEntryRetired) return;
|
|
3344
3344
|
queuedEntryRetired = true;
|
|
3345
|
-
const entry =
|
|
3345
|
+
const entry = chunkL3NHETSD_cjs.queuedMessages.find(session.getState().queuedMessages, clientId);
|
|
3346
3346
|
if (!entry) return;
|
|
3347
3347
|
const remainingVisibility = Math.max(
|
|
3348
3348
|
0,
|
|
3349
|
-
|
|
3349
|
+
chunkL3NHETSD_cjs.MIN_QUEUED_MESSAGE_VISIBILITY_MS - (Date.now() - entry.createdAt)
|
|
3350
3350
|
);
|
|
3351
3351
|
if (remainingVisibility === 0) {
|
|
3352
3352
|
session.removeQueuedMessage(clientId);
|
|
@@ -3363,7 +3363,7 @@ function createStreamHandlers(ctx, params) {
|
|
|
3363
3363
|
chunkTYZFRV7P_cjs.adoptNewChatDocument(session, serverConversationId, streamState.threadDocumentId ?? null);
|
|
3364
3364
|
const userExtId = ctx.userId();
|
|
3365
3365
|
const nowIso = (/* @__PURE__ */ new Date()).toISOString();
|
|
3366
|
-
|
|
3366
|
+
chunkZLHS3UKP_cjs.patchConversationList(
|
|
3367
3367
|
queryClient,
|
|
3368
3368
|
session.getState().workspaceId,
|
|
3369
3369
|
(old) => old.some((c) => c.external_id === serverConversationId) ? old : [
|
|
@@ -3479,7 +3479,7 @@ function createStreamHandlers(ctx, params) {
|
|
|
3479
3479
|
ensureAssistantMessageLoading(queryClient, conversationId, answerId);
|
|
3480
3480
|
});
|
|
3481
3481
|
}
|
|
3482
|
-
void
|
|
3482
|
+
void chunkZLHS3UKP_cjs.invalidateConversationLists(queryClient);
|
|
3483
3483
|
session.setCursor(streamState.assistantId);
|
|
3484
3484
|
};
|
|
3485
3485
|
let firstTokenSeen = false;
|
|
@@ -3652,8 +3652,8 @@ function createStreamHandlers(ctx, params) {
|
|
|
3652
3652
|
}
|
|
3653
3653
|
if (streamState.factsTouched) {
|
|
3654
3654
|
streamState.factsTouched = false;
|
|
3655
|
-
queryClient.invalidateQueries({ queryKey:
|
|
3656
|
-
queryClient.invalidateQueries({ queryKey:
|
|
3655
|
+
queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.allFacts(), refetchType: "all" });
|
|
3656
|
+
queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.allTags(), refetchType: "all" });
|
|
3657
3657
|
}
|
|
3658
3658
|
};
|
|
3659
3659
|
return {
|
|
@@ -3678,7 +3678,7 @@ function createStreamHandlers(ctx, params) {
|
|
|
3678
3678
|
}
|
|
3679
3679
|
function useStreamHandlers() {
|
|
3680
3680
|
const queryClient = reactQuery.useQueryClient();
|
|
3681
|
-
const session =
|
|
3681
|
+
const session = chunkL3NHETSD_cjs.useArbiSessionStore();
|
|
3682
3682
|
const config = chunkQQ7SCJRY_cjs.useArbiHost();
|
|
3683
3683
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
3684
3684
|
return React.useCallback(
|
|
@@ -3694,7 +3694,7 @@ function useStreamHandlers() {
|
|
|
3694
3694
|
return "";
|
|
3695
3695
|
}
|
|
3696
3696
|
},
|
|
3697
|
-
refreshDocuments: (ids) =>
|
|
3697
|
+
refreshDocuments: (ids) => chunkKFFH2JJM_cjs.refreshDocuments(queryClient, arbi, ids, config.documents)
|
|
3698
3698
|
},
|
|
3699
3699
|
params
|
|
3700
3700
|
),
|
|
@@ -3756,10 +3756,10 @@ function disconnectAttachedRun(conversationId, responseId) {
|
|
|
3756
3756
|
}
|
|
3757
3757
|
function cachedQuotaUsedUp(queryClient, workspaceId) {
|
|
3758
3758
|
if (!workspaceId) return null;
|
|
3759
|
-
const workspaces = queryClient.getQueryData(
|
|
3759
|
+
const workspaces = queryClient.getQueryData(chunkH4FGDXYB_cjs.arbiQueryKeys.workspaces());
|
|
3760
3760
|
const projectExtId = workspaces?.find((w) => w.external_id === workspaceId)?.project_ext_id;
|
|
3761
3761
|
if (!projectExtId) return null;
|
|
3762
|
-
const projects = queryClient.getQueryData(
|
|
3762
|
+
const projects = queryClient.getQueryData(chunkH4FGDXYB_cjs.arbiQueryKeys.projects());
|
|
3763
3763
|
const project = projects?.find((p) => p.external_id === projectExtId);
|
|
3764
3764
|
if (!project) return null;
|
|
3765
3765
|
const used = project.quotas?.ai_usage?.used ?? 0;
|
|
@@ -3771,7 +3771,7 @@ function cachedQuotaUsedUp(queryClient, workspaceId) {
|
|
|
3771
3771
|
// src/chat/useConversationActions.ts
|
|
3772
3772
|
var RECONCILE_TIMEOUT_MS = 5e3;
|
|
3773
3773
|
function draftAfterSend(queryClient, session, wasComment) {
|
|
3774
|
-
const shared =
|
|
3774
|
+
const shared = chunkZLHS3UKP_cjs.isConversationShared(queryClient, session.getState().conversationId);
|
|
3775
3775
|
return shared && !wasComment ? `@${ASSISTANT_MENTION_LABEL} ` : "";
|
|
3776
3776
|
}
|
|
3777
3777
|
function failQueuedContinuation(queryClient, session, streamState) {
|
|
@@ -3804,10 +3804,10 @@ function useConversationActions({
|
|
|
3804
3804
|
lastFailedMessage
|
|
3805
3805
|
}) {
|
|
3806
3806
|
const queryClient = reactQuery.useQueryClient();
|
|
3807
|
-
const session =
|
|
3807
|
+
const session = chunkL3NHETSD_cjs.useArbiSessionStore();
|
|
3808
3808
|
const currentConversationId = conversationKey2 === "new" ? null : conversationKey2;
|
|
3809
3809
|
const invalidateUserWorkspaces = React.useCallback(
|
|
3810
|
-
() => void queryClient.invalidateQueries({ queryKey:
|
|
3810
|
+
() => void queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workspaces() }),
|
|
3811
3811
|
[queryClient]
|
|
3812
3812
|
);
|
|
3813
3813
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
@@ -3859,7 +3859,7 @@ function useConversationActions({
|
|
|
3859
3859
|
if (!convId) {
|
|
3860
3860
|
session.moveConversation("new", conversationId);
|
|
3861
3861
|
chunkTYZFRV7P_cjs.adoptNewChatDocument(session, conversationId);
|
|
3862
|
-
|
|
3862
|
+
chunkZLHS3UKP_cjs.patchConversationList(queryClient, session.getState().workspaceId, (old) => [
|
|
3863
3863
|
{
|
|
3864
3864
|
external_id: conversationId,
|
|
3865
3865
|
title: content.slice(0, 40),
|
|
@@ -3877,14 +3877,14 @@ function useConversationActions({
|
|
|
3877
3877
|
]);
|
|
3878
3878
|
invalidateUserWorkspaces();
|
|
3879
3879
|
} else {
|
|
3880
|
-
|
|
3880
|
+
chunkZLHS3UKP_cjs.patchConversation(queryClient, conversationId, (c) => ({
|
|
3881
3881
|
...c,
|
|
3882
3882
|
message_count: c.message_count + 1,
|
|
3883
3883
|
updated_at: nowIso
|
|
3884
3884
|
}));
|
|
3885
3885
|
}
|
|
3886
3886
|
if (mentions.some((m) => m.type === "user")) {
|
|
3887
|
-
await
|
|
3887
|
+
await chunkZLHS3UKP_cjs.invalidateConversationLists(queryClient);
|
|
3888
3888
|
}
|
|
3889
3889
|
await queryClient.invalidateQueries({ queryKey: getThreadsQueryKey(conversationId) });
|
|
3890
3890
|
session.setCursor(saved.external_id);
|
|
@@ -3892,7 +3892,7 @@ function useConversationActions({
|
|
|
3892
3892
|
chunkVAMPYLQ4_cjs.notify.error(
|
|
3893
3893
|
error instanceof browser.ArbiApiError && error.detail || "Failed to post the message"
|
|
3894
3894
|
);
|
|
3895
|
-
if (!
|
|
3895
|
+
if (!chunkL3NHETSD_cjs.selectDraft(session.getState())) session.setDraft(content);
|
|
3896
3896
|
}
|
|
3897
3897
|
},
|
|
3898
3898
|
[arbi, session, queryClient, invalidateUserWorkspaces]
|
|
@@ -3921,7 +3921,7 @@ function useConversationActions({
|
|
|
3921
3921
|
const documentIds = (state.conversationDocuments[convKey] || []).map((doc) => doc.docId);
|
|
3922
3922
|
const factIds = [...state.conversationFacts[convKey] || []];
|
|
3923
3923
|
const newConfigId = state.chatModel;
|
|
3924
|
-
const cachedSettings = queryClient.getQueriesData({ queryKey:
|
|
3924
|
+
const cachedSettings = queryClient.getQueriesData({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings() }).map(([, data]) => data).find((data) => data?.last_config);
|
|
3925
3925
|
const lastConfigId = cachedSettings?.last_config;
|
|
3926
3926
|
const resolvedConfigId = newConfigId || (agentExtId ? void 0 : lastConfigId);
|
|
3927
3927
|
const isPaMode = !agentExtId && state.paMode;
|
|
@@ -3955,7 +3955,7 @@ function useConversationActions({
|
|
|
3955
3955
|
session.setConversationGenerating(convKey, true, abortController);
|
|
3956
3956
|
}
|
|
3957
3957
|
if (!queuedContinuation) {
|
|
3958
|
-
|
|
3958
|
+
chunkZLHS3UKP_cjs.patchConversation(queryClient, convKey, { last_message_status: "in_progress" });
|
|
3959
3959
|
}
|
|
3960
3960
|
const streamState = {
|
|
3961
3961
|
conversationId: convKey,
|
|
@@ -3993,7 +3993,7 @@ function useConversationActions({
|
|
|
3993
3993
|
handlers.onUserMessage = (message) => {
|
|
3994
3994
|
if (message.conversation_ext_id) {
|
|
3995
3995
|
session.setAgentChatOwner(message.conversation_ext_id, agentExtId);
|
|
3996
|
-
queryClient.invalidateQueries({ queryKey:
|
|
3996
|
+
queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.agentChats(agentExtId) });
|
|
3997
3997
|
}
|
|
3998
3998
|
onUserMessage(message);
|
|
3999
3999
|
};
|
|
@@ -4043,7 +4043,7 @@ function useConversationActions({
|
|
|
4043
4043
|
void queryClient.invalidateQueries({
|
|
4044
4044
|
queryKey: getThreadsQueryKey(streamState.conversationId)
|
|
4045
4045
|
});
|
|
4046
|
-
void
|
|
4046
|
+
void chunkZLHS3UKP_cjs.invalidateConversationLists(queryClient);
|
|
4047
4047
|
}
|
|
4048
4048
|
return;
|
|
4049
4049
|
}
|
|
@@ -4051,7 +4051,7 @@ function useConversationActions({
|
|
|
4051
4051
|
if (ownsGeneration) {
|
|
4052
4052
|
session.setConversationGenerating(streamState.conversationId, false, null);
|
|
4053
4053
|
}
|
|
4054
|
-
queryClient.invalidateQueries({ queryKey:
|
|
4054
|
+
queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.userUsageToday() });
|
|
4055
4055
|
if (streamState.deferredInterjections.length > 0) {
|
|
4056
4056
|
const followUp = streamState.deferredInterjections.join("\n\n");
|
|
4057
4057
|
const threadParent = streamState.assistantId;
|
|
@@ -4062,7 +4062,7 @@ function useConversationActions({
|
|
|
4062
4062
|
}
|
|
4063
4063
|
if (ownsGeneration) {
|
|
4064
4064
|
const lastStatus = streamState.serverError ? "failed" : "completed";
|
|
4065
|
-
|
|
4065
|
+
chunkZLHS3UKP_cjs.patchConversation(queryClient, streamState.conversationId, {
|
|
4066
4066
|
last_message_status: lastStatus
|
|
4067
4067
|
});
|
|
4068
4068
|
}
|
|
@@ -4094,7 +4094,7 @@ function useConversationActions({
|
|
|
4094
4094
|
});
|
|
4095
4095
|
if (ownsActiveGeneration()) {
|
|
4096
4096
|
session.setConversationGenerating(streamState.conversationId, false, null);
|
|
4097
|
-
|
|
4097
|
+
chunkZLHS3UKP_cjs.patchConversation(queryClient, streamState.conversationId, {
|
|
4098
4098
|
last_message_status: "completed"
|
|
4099
4099
|
});
|
|
4100
4100
|
}
|
|
@@ -4117,10 +4117,10 @@ function useConversationActions({
|
|
|
4117
4117
|
if (ownsActiveGeneration()) {
|
|
4118
4118
|
session.setConversationGenerating(streamState.conversationId, false, null);
|
|
4119
4119
|
}
|
|
4120
|
-
void
|
|
4120
|
+
void chunkZLHS3UKP_cjs.invalidateConversationLists(queryClient);
|
|
4121
4121
|
return;
|
|
4122
4122
|
}
|
|
4123
|
-
|
|
4123
|
+
chunkZLHS3UKP_cjs.patchConversation(queryClient, streamState.conversationId, {
|
|
4124
4124
|
last_message_status: "failed"
|
|
4125
4125
|
});
|
|
4126
4126
|
const quota = browser.quotaFromStreamError(error) ?? cachedQuotaUsedUp(queryClient, session.getState().workspaceId);
|
|
@@ -4155,7 +4155,7 @@ function useConversationActions({
|
|
|
4155
4155
|
);
|
|
4156
4156
|
const handleSendMessage = React.useCallback(
|
|
4157
4157
|
async (options) => {
|
|
4158
|
-
const currentMessage =
|
|
4158
|
+
const currentMessage = chunkL3NHETSD_cjs.selectDraft(session.getState()).trim();
|
|
4159
4159
|
if (!selectedWorkspaceId || !chunkTYZFRV7P_cjs.hasMessageBody(currentMessage)) return;
|
|
4160
4160
|
session.setSuggestedQuery(null);
|
|
4161
4161
|
if (refuseChatWhenOffline()) return;
|
|
@@ -4266,7 +4266,7 @@ function useConversationActions({
|
|
|
4266
4266
|
if (!replyTo && currentConversationId) {
|
|
4267
4267
|
try {
|
|
4268
4268
|
await arbi.conversations.delete(currentConversationId);
|
|
4269
|
-
|
|
4269
|
+
chunkZLHS3UKP_cjs.removeConversationFromLists(queryClient, currentConversationId);
|
|
4270
4270
|
session.startNewConversation();
|
|
4271
4271
|
} catch (error) {
|
|
4272
4272
|
console.error("Failed to delete conversation with orphaned first message:", error);
|
|
@@ -4334,16 +4334,16 @@ function selectThread(session, leafId) {
|
|
|
4334
4334
|
if (session.getState().cursor !== leafId) session.setCursor(leafId);
|
|
4335
4335
|
}
|
|
4336
4336
|
function useConversationData() {
|
|
4337
|
-
const session =
|
|
4338
|
-
const selectedWorkspaceId =
|
|
4339
|
-
const currentConversationId =
|
|
4340
|
-
const parentMessageId =
|
|
4341
|
-
const deepLinkMessageId =
|
|
4337
|
+
const session = chunkL3NHETSD_cjs.useArbiSessionStore();
|
|
4338
|
+
const selectedWorkspaceId = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
4339
|
+
const currentConversationId = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.conversationId);
|
|
4340
|
+
const parentMessageId = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.cursor);
|
|
4341
|
+
const deepLinkMessageId = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.deepLinkMessageId);
|
|
4342
4342
|
const {
|
|
4343
4343
|
data: threadsData,
|
|
4344
4344
|
isLoading: threadsLoading,
|
|
4345
4345
|
error: threadsError
|
|
4346
|
-
} =
|
|
4346
|
+
} = chunkL3NHETSD_cjs.useConversationThreads(currentConversationId || void 0);
|
|
4347
4347
|
const processedDeepLinkRef = React.useRef(null);
|
|
4348
4348
|
const prevConversationIdRef = React.useRef(null);
|
|
4349
4349
|
React.useEffect(() => {
|
|
@@ -4536,7 +4536,7 @@ function useBranchNavigation(threads, parentMessageId, messageHistory, setParent
|
|
|
4536
4536
|
var RECONNECT_DELAY_MS = 2e3;
|
|
4537
4537
|
var MAX_RECONNECTS = 5;
|
|
4538
4538
|
function useConnectRunStream(conversationId, messages) {
|
|
4539
|
-
const generation =
|
|
4539
|
+
const generation = chunkL3NHETSD_cjs.useArbiSessionState(
|
|
4540
4540
|
(s) => conversationId ? s.generating[conversationId] : void 0
|
|
4541
4541
|
);
|
|
4542
4542
|
const responseId = conversationId ? browser.getRunToAttach(generation, messages) : null;
|
|
@@ -4544,7 +4544,7 @@ function useConnectRunStream(conversationId, messages) {
|
|
|
4544
4544
|
}
|
|
4545
4545
|
function useAttachRun(conversationId, responseId) {
|
|
4546
4546
|
const queryClient = reactQuery.useQueryClient();
|
|
4547
|
-
const session =
|
|
4547
|
+
const session = chunkL3NHETSD_cjs.useArbiSessionStore();
|
|
4548
4548
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
4549
4549
|
const arbiRef = React.useRef(arbi);
|
|
4550
4550
|
arbiRef.current = arbi;
|
|
@@ -4742,14 +4742,14 @@ function useConversation(options = {}) {
|
|
|
4742
4742
|
const { agentId, model, titleLength = 48 } = options;
|
|
4743
4743
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
4744
4744
|
const queryClient = reactQuery.useQueryClient();
|
|
4745
|
-
const session =
|
|
4746
|
-
const sessionWorkspaceId =
|
|
4745
|
+
const session = chunkL3NHETSD_cjs.useArbiSessionStore();
|
|
4746
|
+
const sessionWorkspaceId = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
4747
4747
|
const workspaceId = options.workspaceId ?? sessionWorkspaceId ?? void 0;
|
|
4748
|
-
const conversationId =
|
|
4748
|
+
const conversationId = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.conversationId);
|
|
4749
4749
|
const conversationKey2 = conversationId ?? NEW;
|
|
4750
|
-
const generation =
|
|
4751
|
-
const newConversationMode =
|
|
4752
|
-
const queuedMessages2 =
|
|
4750
|
+
const generation = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.generating[conversationKey2]);
|
|
4751
|
+
const newConversationMode = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.newConversationAssistantMode);
|
|
4752
|
+
const queuedMessages2 = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.queuedMessages);
|
|
4753
4753
|
const isRunning = !!generation?.isGenerating;
|
|
4754
4754
|
React.useEffect(() => {
|
|
4755
4755
|
if (workspaceId && session.getState().workspaceId !== workspaceId)
|
|
@@ -4761,8 +4761,8 @@ function useConversation(options = {}) {
|
|
|
4761
4761
|
React.useEffect(() => {
|
|
4762
4762
|
if (agentId && workspaceId && !conversationId) session.setNewAgentChat({ agentId, workspaceId });
|
|
4763
4763
|
}, [session, agentId, workspaceId, conversationId]);
|
|
4764
|
-
const { data: docs = [], isLoading: isLoadingDocuments } =
|
|
4765
|
-
const ordinaryHistory =
|
|
4764
|
+
const { data: docs = [], isLoading: isLoadingDocuments } = chunkKFFH2JJM_cjs.useDocuments(workspaceId);
|
|
4765
|
+
const ordinaryHistory = chunkL3NHETSD_cjs.useConversations(workspaceId, { enabled: !agentId, live: true });
|
|
4766
4766
|
const agentHistory = useAgentChats(agentId);
|
|
4767
4767
|
const stored = React.useMemo(
|
|
4768
4768
|
() => agentId ? (agentHistory.data ?? []).filter((chat) => chat.workspace_ext_id === workspaceId).map((chat) => ({
|
|
@@ -4988,7 +4988,7 @@ function useConversation(options = {}) {
|
|
|
4988
4988
|
void (async () => {
|
|
4989
4989
|
try {
|
|
4990
4990
|
await arbi.conversations.delete(id);
|
|
4991
|
-
|
|
4991
|
+
chunkZLHS3UKP_cjs.removeConversationFromLists(queryClient, id);
|
|
4992
4992
|
if (session.getState().conversationId === id) session.startNewConversation();
|
|
4993
4993
|
} catch (e) {
|
|
4994
4994
|
setHistoryError(messageOf(e, "The conversation could not be deleted."));
|
|
@@ -5023,7 +5023,7 @@ function useConversation(options = {}) {
|
|
|
5023
5023
|
} else
|
|
5024
5024
|
uploaded.push(...(await arbi.documents.uploadFile(file, file.name)).doc_ext_ids ?? []);
|
|
5025
5025
|
}
|
|
5026
|
-
if (uploaded.length) await
|
|
5026
|
+
if (uploaded.length) await chunkKFFH2JJM_cjs.refreshDocuments(queryClient, arbi, uploaded);
|
|
5027
5027
|
} catch (e) {
|
|
5028
5028
|
setUploadError(messageOf(e, "The upload failed."));
|
|
5029
5029
|
} finally {
|
|
@@ -5072,10 +5072,10 @@ function ConversationScope({
|
|
|
5072
5072
|
conversationId,
|
|
5073
5073
|
children
|
|
5074
5074
|
}) {
|
|
5075
|
-
const outerWorkspaceId =
|
|
5075
|
+
const outerWorkspaceId = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
5076
5076
|
const scopeWorkspaceId = workspaceId ?? outerWorkspaceId;
|
|
5077
5077
|
const [session] = React.useState(
|
|
5078
|
-
() =>
|
|
5078
|
+
() => chunkL3NHETSD_cjs.createArbiSessionStore({
|
|
5079
5079
|
workspaceId: scopeWorkspaceId,
|
|
5080
5080
|
conversationId: conversationId ?? null
|
|
5081
5081
|
})
|
|
@@ -5096,7 +5096,7 @@ async function applyConversationEvent(queryClient, event) {
|
|
|
5096
5096
|
if (e.type === "response_complete") return applyRunEnded(queryClient, e);
|
|
5097
5097
|
if (e.type === "conversation.message_posted") return applyMessagePosted(queryClient, e);
|
|
5098
5098
|
if (e.type === "conversation.title_updated" && e.conversation_ext_id) {
|
|
5099
|
-
|
|
5099
|
+
chunkZLHS3UKP_cjs.patchConversation(queryClient, e.conversation_ext_id, { title: e.title ?? null });
|
|
5100
5100
|
}
|
|
5101
5101
|
}
|
|
5102
5102
|
function applyRunEnded(queryClient, e) {
|
|
@@ -5113,18 +5113,18 @@ function applyRunEnded(queryClient, e) {
|
|
|
5113
5113
|
);
|
|
5114
5114
|
}
|
|
5115
5115
|
if (failed && e.response_id) markMessageAsFailed(queryClient, conversationId, e.response_id);
|
|
5116
|
-
|
|
5116
|
+
chunkZLHS3UKP_cjs.patchConversation(queryClient, conversationId, {
|
|
5117
5117
|
last_message_status: failed ? "failed" : "completed"
|
|
5118
5118
|
});
|
|
5119
|
-
void
|
|
5119
|
+
void chunkZLHS3UKP_cjs.invalidateConversationLists(queryClient);
|
|
5120
5120
|
void queryClient.invalidateQueries({ queryKey: getThreadsQueryKey(conversationId) });
|
|
5121
|
-
if (!failed) void queryClient.invalidateQueries({ queryKey:
|
|
5121
|
+
if (!failed) void queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.userUsageToday() });
|
|
5122
5122
|
}
|
|
5123
5123
|
async function applyMessagePosted(queryClient, e) {
|
|
5124
5124
|
if (!e.conversation_ext_id) return;
|
|
5125
5125
|
const queryKey = getThreadsQueryKey(e.conversation_ext_id);
|
|
5126
5126
|
const refreshed = queryClient.invalidateQueries({ queryKey });
|
|
5127
|
-
void
|
|
5127
|
+
void chunkZLHS3UKP_cjs.invalidateConversationLists(queryClient);
|
|
5128
5128
|
await refreshed;
|
|
5129
5129
|
const cached = queryClient.getQueryData(
|
|
5130
5130
|
queryKey
|
|
@@ -5134,9 +5134,9 @@ async function applyMessagePosted(queryClient, e) {
|
|
|
5134
5134
|
}
|
|
5135
5135
|
}
|
|
5136
5136
|
function useThreadDocument() {
|
|
5137
|
-
const session =
|
|
5138
|
-
const conversationId =
|
|
5139
|
-
const newChatDocumentId =
|
|
5137
|
+
const session = chunkL3NHETSD_cjs.useArbiSessionStore();
|
|
5138
|
+
const conversationId = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.conversationId);
|
|
5139
|
+
const newChatDocumentId = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.newChatDocumentId);
|
|
5140
5140
|
const saved = React.useSyncExternalStore(
|
|
5141
5141
|
chunkTYZFRV7P_cjs.subscribeThreadDocuments,
|
|
5142
5142
|
() => chunkTYZFRV7P_cjs.threadDocumentId(conversationId),
|
|
@@ -5174,9 +5174,9 @@ function useConversationTurn({
|
|
|
5174
5174
|
selectedWorkspaceId,
|
|
5175
5175
|
parentMessageId
|
|
5176
5176
|
}) {
|
|
5177
|
-
const currentConversationId =
|
|
5177
|
+
const currentConversationId = chunkL3NHETSD_cjs.useArbiSessionState((state) => state.conversationId);
|
|
5178
5178
|
const conversationKey2 = currentConversationId || "new";
|
|
5179
|
-
const generationState =
|
|
5179
|
+
const generationState = chunkL3NHETSD_cjs.useArbiSessionState((state) => state.generating[conversationKey2]);
|
|
5180
5180
|
const isGenerating = generationState?.isGenerating ?? false;
|
|
5181
5181
|
const generationError = generationState?.error ?? null;
|
|
5182
5182
|
const lastFailedMessage = generationState?.lastFailedMessage ?? null;
|
|
@@ -5197,12 +5197,12 @@ function useConversationTurn({
|
|
|
5197
5197
|
}
|
|
5198
5198
|
var EMPTY_DOCS = [];
|
|
5199
5199
|
function useConversationDocuments() {
|
|
5200
|
-
const currentConversationId =
|
|
5200
|
+
const currentConversationId = chunkL3NHETSD_cjs.useArbiSessionState((state) => state.conversationId);
|
|
5201
5201
|
const convKey = currentConversationId || "new";
|
|
5202
|
-
const inConversationDocuments =
|
|
5202
|
+
const inConversationDocuments = chunkL3NHETSD_cjs.useArbiSessionState(
|
|
5203
5203
|
(state) => state.conversationDocuments[convKey] || EMPTY_DOCS
|
|
5204
5204
|
);
|
|
5205
|
-
const { data: documents2 = [], isLoading: isLoadingDocs } =
|
|
5205
|
+
const { data: documents2 = [], isLoading: isLoadingDocs } = chunkKFFH2JJM_cjs.useDocuments();
|
|
5206
5206
|
const conversationDocuments = React__default.default.useMemo(() => {
|
|
5207
5207
|
if (inConversationDocuments.length === 0) {
|
|
5208
5208
|
return [];
|
|
@@ -5234,8 +5234,8 @@ function useDocumentAutoAdd({
|
|
|
5234
5234
|
allWorkspaceDocuments,
|
|
5235
5235
|
hasContent = false
|
|
5236
5236
|
}) {
|
|
5237
|
-
const session =
|
|
5238
|
-
const currentConversationId =
|
|
5237
|
+
const session = chunkL3NHETSD_cjs.useArbiSessionStore();
|
|
5238
|
+
const currentConversationId = chunkL3NHETSD_cjs.useArbiSessionState((state) => state.conversationId);
|
|
5239
5239
|
const convKey = currentConversationId || "new";
|
|
5240
5240
|
const observedRef = React.useRef(null);
|
|
5241
5241
|
const offeredRef = React.useRef(/* @__PURE__ */ new Set());
|
|
@@ -5296,12 +5296,12 @@ function useDocumentAutoAdd({
|
|
|
5296
5296
|
}, [selectedWorkspaceId, convKey, allWorkspaceDocuments, hasContent, session]);
|
|
5297
5297
|
}
|
|
5298
5298
|
function useAutoSendDraft(sendDraft, ready = true) {
|
|
5299
|
-
const session =
|
|
5300
|
-
const autoSendDraft =
|
|
5299
|
+
const session = chunkL3NHETSD_cjs.useArbiSessionStore();
|
|
5300
|
+
const autoSendDraft = chunkL3NHETSD_cjs.useArbiSessionState((state) => state.autoSendDraft);
|
|
5301
5301
|
React.useEffect(() => {
|
|
5302
5302
|
if (!autoSendDraft || !ready) return;
|
|
5303
5303
|
session.setAutoSendDraft(false);
|
|
5304
|
-
if (
|
|
5304
|
+
if (chunkL3NHETSD_cjs.selectDraft(session.getState()).trim()) {
|
|
5305
5305
|
sendDraft();
|
|
5306
5306
|
}
|
|
5307
5307
|
}, [autoSendDraft, ready, sendDraft, session]);
|
|
@@ -5387,7 +5387,7 @@ function useAnswerAgentQuestion() {
|
|
|
5387
5387
|
);
|
|
5388
5388
|
}
|
|
5389
5389
|
function useAskAgain(options) {
|
|
5390
|
-
const session =
|
|
5390
|
+
const session = chunkL3NHETSD_cjs.useArbiSessionStore();
|
|
5391
5391
|
const optionsRef = React.useRef(options);
|
|
5392
5392
|
React.useEffect(() => {
|
|
5393
5393
|
optionsRef.current = options;
|
|
@@ -5479,11 +5479,11 @@ function useMessageTimer({
|
|
|
5479
5479
|
isUser,
|
|
5480
5480
|
isGenerating
|
|
5481
5481
|
}) {
|
|
5482
|
-
const session =
|
|
5482
|
+
const session = chunkL3NHETSD_cjs.useArbiSessionStore();
|
|
5483
5483
|
const convId = conversationId || "new";
|
|
5484
5484
|
const timerKey = `${convId}:${messageId}`;
|
|
5485
|
-
const generationStartTime =
|
|
5486
|
-
const storedElapsed =
|
|
5485
|
+
const generationStartTime = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.generating[convId]?.startTime ?? null);
|
|
5486
|
+
const storedElapsed = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.messageTimers[timerKey]?.elapsedTime);
|
|
5487
5487
|
const [elapsedTime, setElapsedTime] = React.useState(0);
|
|
5488
5488
|
const lastElapsedRef = React.useRef(0);
|
|
5489
5489
|
React.useEffect(() => {
|
|
@@ -5508,7 +5508,7 @@ function useMessageTimer({
|
|
|
5508
5508
|
}
|
|
5509
5509
|
function useAgentRunControl(assistantMessageExtId) {
|
|
5510
5510
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
5511
|
-
const session =
|
|
5511
|
+
const session = chunkL3NHETSD_cjs.useArbiSessionStore();
|
|
5512
5512
|
const send = React.useCallback(
|
|
5513
5513
|
(command) => {
|
|
5514
5514
|
if (!assistantMessageExtId) return;
|
|
@@ -5703,7 +5703,7 @@ function ArbiWebSocketProvider({ enabled = true, children }) {
|
|
|
5703
5703
|
if (client.isMessageType(msg, "task_update")) applyTaskUpdate(msg);
|
|
5704
5704
|
else if (client.isMessageType(msg, "presence_update")) applyPresence(msg);
|
|
5705
5705
|
else if (client.isMessageType(msg, "batch_complete") && msg.batch_type === "entity_extract")
|
|
5706
|
-
|
|
5706
|
+
chunkKFFH2JJM_cjs.finishEntityExtraction(msg.doc_ext_ids ?? []);
|
|
5707
5707
|
for (const fn of subscribersRef.current) {
|
|
5708
5708
|
try {
|
|
5709
5709
|
fn(msg);
|
|
@@ -5745,16 +5745,16 @@ function ArbiWebSocketProvider({ enabled = true, children }) {
|
|
|
5745
5745
|
reset();
|
|
5746
5746
|
};
|
|
5747
5747
|
}, [enabled, arbi, setStatus, applyTaskUpdate, applyPresence, reset]);
|
|
5748
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5748
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkZLHS3UKP_cjs.ArbiWsContext.Provider, { value: context, children });
|
|
5749
5749
|
}
|
|
5750
5750
|
function useArbiWebSocket(onMessage) {
|
|
5751
|
-
const { subscribe } =
|
|
5751
|
+
const { subscribe } = chunkZLHS3UKP_cjs.useArbiWsContext();
|
|
5752
5752
|
const handlerRef = React.useRef(onMessage);
|
|
5753
5753
|
handlerRef.current = onMessage;
|
|
5754
5754
|
React.useEffect(() => subscribe((msg) => handlerRef.current(msg)), [subscribe]);
|
|
5755
5755
|
}
|
|
5756
5756
|
function useArbiWsMessage(type, handler) {
|
|
5757
|
-
const { subscribe } =
|
|
5757
|
+
const { subscribe } = chunkZLHS3UKP_cjs.useArbiWsContext();
|
|
5758
5758
|
const handlerRef = React.useRef(handler);
|
|
5759
5759
|
handlerRef.current = handler;
|
|
5760
5760
|
React.useEffect(
|
|
@@ -5787,24 +5787,24 @@ function useArbiDocumentSync(workspaceId) {
|
|
|
5787
5787
|
if (!workspaceId) return;
|
|
5788
5788
|
if (client.isMessageType(msg, "batch_complete")) {
|
|
5789
5789
|
if (msg.workspace_ext_id !== workspaceId) return;
|
|
5790
|
-
if (msg.doc_ext_ids?.length) void
|
|
5791
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
5790
|
+
if (msg.doc_ext_ids?.length) void chunkKFFH2JJM_cjs.refreshDocuments(queryClient, arbi, msg.doc_ext_ids);
|
|
5791
|
+
void queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.tags(workspaceId) });
|
|
5792
5792
|
return;
|
|
5793
5793
|
}
|
|
5794
5794
|
if (client.isMessageType(msg, "task_update")) {
|
|
5795
5795
|
if (msg.workspace_ext_id !== workspaceId) return;
|
|
5796
|
-
if (
|
|
5797
|
-
void
|
|
5796
|
+
if (chunkKFFH2JJM_cjs.FINISHED_DOCUMENT_STATUSES.has(msg.status))
|
|
5797
|
+
void chunkKFFH2JJM_cjs.refreshDocuments(queryClient, arbi, [msg.doc_ext_id]);
|
|
5798
5798
|
}
|
|
5799
5799
|
});
|
|
5800
5800
|
}
|
|
5801
5801
|
var WORKSPACE_SCOPED_PACKAGE_KEYS = [
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
5802
|
+
chunkH4FGDXYB_cjs.arbiQueryKeys.allDocuments(),
|
|
5803
|
+
chunkH4FGDXYB_cjs.arbiQueryKeys.allSimilarDocuments(),
|
|
5804
|
+
chunkH4FGDXYB_cjs.arbiQueryKeys.allWorkspaceUsers(),
|
|
5805
|
+
chunkH4FGDXYB_cjs.arbiQueryKeys.documentSignatures(),
|
|
5806
|
+
chunkH4FGDXYB_cjs.arbiQueryKeys.signatureRequests(),
|
|
5807
|
+
chunkH4FGDXYB_cjs.arbiQueryKeys.databases()
|
|
5808
5808
|
];
|
|
5809
5809
|
function drainWorkspaceQueries(queryClient) {
|
|
5810
5810
|
for (const queryKey of WORKSPACE_SCOPED_PACKAGE_KEYS) {
|
|
@@ -5814,8 +5814,8 @@ function drainWorkspaceQueries(queryClient) {
|
|
|
5814
5814
|
}
|
|
5815
5815
|
function seedOpenedWorkspace(queryClient, workspaceId, opened) {
|
|
5816
5816
|
if (opened.conversations)
|
|
5817
|
-
queryClient.setQueryData(
|
|
5818
|
-
if (opened.tags) queryClient.setQueryData(
|
|
5817
|
+
queryClient.setQueryData(chunkH4FGDXYB_cjs.arbiQueryKeys.conversations(workspaceId), opened.conversations);
|
|
5818
|
+
if (opened.tags) queryClient.setQueryData(chunkH4FGDXYB_cjs.arbiQueryKeys.tags(workspaceId), opened.tags);
|
|
5819
5819
|
}
|
|
5820
5820
|
function isWorkspaceArchivedError(error) {
|
|
5821
5821
|
const body = error?.apiError ?? error;
|
|
@@ -5823,7 +5823,7 @@ function isWorkspaceArchivedError(error) {
|
|
|
5823
5823
|
return !!detail && typeof detail === "object" && detail.code === "workspace_archived";
|
|
5824
5824
|
}
|
|
5825
5825
|
var archivedWorkspaceMessage = (name) => `"${name}" is archived. Its owner can unarchive it from the workspace list.`;
|
|
5826
|
-
var listedWorkspace = (queryClient, workspaceId) => queryClient.getQueryData(
|
|
5826
|
+
var listedWorkspace = (queryClient, workspaceId) => queryClient.getQueryData(chunkH4FGDXYB_cjs.arbiQueryKeys.workspaces())?.find((w) => w.external_id === workspaceId);
|
|
5827
5827
|
var switchEpoch = 0;
|
|
5828
5828
|
var switching = /* @__PURE__ */ new Set();
|
|
5829
5829
|
var SIGNED_IN_WAIT_MS = 1e4;
|
|
@@ -5890,7 +5890,7 @@ function createWorkspaceSwitch({
|
|
|
5890
5890
|
session.setWorkspaceStatus("closed");
|
|
5891
5891
|
if (isWorkspaceArchivedError(error)) {
|
|
5892
5892
|
chunkVAMPYLQ4_cjs.notify.info(archivedWorkspaceMessage(name));
|
|
5893
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
5893
|
+
void queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workspaces() });
|
|
5894
5894
|
} else {
|
|
5895
5895
|
chunkVAMPYLQ4_cjs.notify.error(`Failed to open "${name}" ${noun}`);
|
|
5896
5896
|
}
|
|
@@ -5938,7 +5938,7 @@ function useSwitchWorkspace() {
|
|
|
5938
5938
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
5939
5939
|
const arbiRef = React.useRef(arbi);
|
|
5940
5940
|
arbiRef.current = arbi;
|
|
5941
|
-
const session =
|
|
5941
|
+
const session = chunkL3NHETSD_cjs.useArbiSessionStore();
|
|
5942
5942
|
const queryClient = reactQuery.useQueryClient();
|
|
5943
5943
|
return React.useMemo(
|
|
5944
5944
|
() => createWorkspaceSwitch({ arbi: () => arbiRef.current, session, queryClient }),
|
|
@@ -5948,9 +5948,9 @@ function useSwitchWorkspace() {
|
|
|
5948
5948
|
function useOpenSelectedWorkspace() {
|
|
5949
5949
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
5950
5950
|
const { clearWorkspace, openSelectedWorkspace } = useSwitchWorkspace();
|
|
5951
|
-
const workspaceId =
|
|
5952
|
-
const status =
|
|
5953
|
-
const { data: workspaces, isLoading: listing } =
|
|
5951
|
+
const workspaceId = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
5952
|
+
const status = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.workspaceStatus);
|
|
5953
|
+
const { data: workspaces, isLoading: listing } = chunkL3NHETSD_cjs.useWorkspaces();
|
|
5954
5954
|
const archived = workspaces?.find(
|
|
5955
5955
|
(w) => w.external_id === workspaceId && w.archive
|
|
5956
5956
|
);
|
|
@@ -6093,8 +6093,8 @@ function useShellWorkspaces(options) {
|
|
|
6093
6093
|
};
|
|
6094
6094
|
}
|
|
6095
6095
|
function useArbiShellWorkspaces(options = {}) {
|
|
6096
|
-
const sessionWorkspaceId =
|
|
6097
|
-
const query =
|
|
6096
|
+
const sessionWorkspaceId = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
6097
|
+
const query = chunkL3NHETSD_cjs.useWorkspaces();
|
|
6098
6098
|
const { switchWorkspace } = useSwitchWorkspace();
|
|
6099
6099
|
const { select, ...rest } = options;
|
|
6100
6100
|
const defaultSelect = React.useCallback(
|
|
@@ -6118,7 +6118,7 @@ function useUpdateWorkspace() {
|
|
|
6118
6118
|
const qc = reactQuery.useQueryClient();
|
|
6119
6119
|
return reactQuery.useMutation({
|
|
6120
6120
|
mutationFn: (body) => arbi.workspaces.update(body),
|
|
6121
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
6121
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workspaces() })
|
|
6122
6122
|
});
|
|
6123
6123
|
}
|
|
6124
6124
|
function useDeleteWorkspaces() {
|
|
@@ -6126,7 +6126,7 @@ function useDeleteWorkspaces() {
|
|
|
6126
6126
|
const qc = reactQuery.useQueryClient();
|
|
6127
6127
|
return reactQuery.useMutation({
|
|
6128
6128
|
mutationFn: (workspaceIds) => arbi.workspaces.delete(workspaceIds),
|
|
6129
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
6129
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workspaces() })
|
|
6130
6130
|
});
|
|
6131
6131
|
}
|
|
6132
6132
|
|
|
@@ -6185,7 +6185,7 @@ function usePlanWorkspaceTransfer(scope, mode, options = {}) {
|
|
|
6185
6185
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6186
6186
|
const workspaceId = openWorkspaceId(arbi);
|
|
6187
6187
|
return reactQuery.useQuery({
|
|
6188
|
-
queryKey:
|
|
6188
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workspaceTransferPlan(workspaceId, JSON.stringify(scope), mode),
|
|
6189
6189
|
queryFn: () => arbi.workspaces.transfer.plan(scope, mode),
|
|
6190
6190
|
enabled: !!workspaceId && (options.enabled ?? true),
|
|
6191
6191
|
staleTime: 1e4,
|
|
@@ -6216,7 +6216,7 @@ function useCancelWorkspaceTransfer() {
|
|
|
6216
6216
|
function useWorkspaceTransfer(transferId) {
|
|
6217
6217
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6218
6218
|
return reactQuery.useQuery({
|
|
6219
|
-
queryKey:
|
|
6219
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workspaceTransfer(transferId ?? ""),
|
|
6220
6220
|
queryFn: () => arbi.workspaces.transfer.get(transferId ?? ""),
|
|
6221
6221
|
enabled: !!transferId && arbi.isLoggedIn,
|
|
6222
6222
|
staleTime: 0,
|
|
@@ -6227,7 +6227,7 @@ function useWorkspaceTransfers(options = {}) {
|
|
|
6227
6227
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6228
6228
|
const workspaceId = openWorkspaceId(arbi);
|
|
6229
6229
|
return reactQuery.useQuery({
|
|
6230
|
-
queryKey:
|
|
6230
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workspaceTransfers(workspaceId),
|
|
6231
6231
|
queryFn: () => arbi.workspaces.transfer.list(),
|
|
6232
6232
|
enabled: !!workspaceId && (options.enabled ?? true)
|
|
6233
6233
|
});
|
|
@@ -6236,15 +6236,15 @@ function useInvalidateAfterTransfer() {
|
|
|
6236
6236
|
const queryClient = reactQuery.useQueryClient();
|
|
6237
6237
|
return React.useCallback(
|
|
6238
6238
|
(mode) => {
|
|
6239
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
6240
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
6239
|
+
void queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workspaces() });
|
|
6240
|
+
void queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.allWorkspaceTransfers() });
|
|
6241
6241
|
if (mode !== "move") return;
|
|
6242
6242
|
for (const queryKey of [
|
|
6243
|
-
|
|
6244
|
-
|
|
6245
|
-
|
|
6246
|
-
|
|
6247
|
-
|
|
6243
|
+
chunkH4FGDXYB_cjs.arbiQueryKeys.workflows(),
|
|
6244
|
+
chunkH4FGDXYB_cjs.arbiQueryKeys.allFacts(),
|
|
6245
|
+
chunkH4FGDXYB_cjs.arbiQueryKeys.allTags(),
|
|
6246
|
+
chunkH4FGDXYB_cjs.arbiQueryKeys.allDocuments(),
|
|
6247
|
+
chunkH4FGDXYB_cjs.arbiQueryKeys.allConversations()
|
|
6248
6248
|
])
|
|
6249
6249
|
void queryClient.invalidateQueries({ queryKey });
|
|
6250
6250
|
},
|
|
@@ -6323,7 +6323,7 @@ function useRequestWorkspaceAccess() {
|
|
|
6323
6323
|
note: options?.note,
|
|
6324
6324
|
workspaceExtId: options?.workspaceExtId
|
|
6325
6325
|
}),
|
|
6326
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
6326
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.allNotifications() })
|
|
6327
6327
|
});
|
|
6328
6328
|
}
|
|
6329
6329
|
function useFacts(workspaceId, options) {
|
|
@@ -6331,7 +6331,7 @@ function useFacts(workspaceId, options) {
|
|
|
6331
6331
|
const { enabled = true, ...filter } = options ?? {};
|
|
6332
6332
|
const workspace = workspaceId ?? (arbi.hasWorkspace ? arbi.getWorkspaceId() : "");
|
|
6333
6333
|
return reactQuery.useQuery({
|
|
6334
|
-
queryKey:
|
|
6334
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.factList(workspace, filter),
|
|
6335
6335
|
queryFn: () => arbi.readInWorkspace(workspace, () => arbi.facts.list(filter)),
|
|
6336
6336
|
enabled: enabled && !!workspace && arbi.hasWorkspace,
|
|
6337
6337
|
staleTime: 3e4
|
|
@@ -6339,7 +6339,7 @@ function useFacts(workspaceId, options) {
|
|
|
6339
6339
|
}
|
|
6340
6340
|
function useRefreshFacts() {
|
|
6341
6341
|
const qc = reactQuery.useQueryClient();
|
|
6342
|
-
return () => qc.invalidateQueries({ queryKey:
|
|
6342
|
+
return () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.allFacts() });
|
|
6343
6343
|
}
|
|
6344
6344
|
function useCreateFact() {
|
|
6345
6345
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
@@ -6393,7 +6393,7 @@ function usePassageQuotes(docIds) {
|
|
|
6393
6393
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6394
6394
|
const passages = reactQuery.useQueries({
|
|
6395
6395
|
queries: [...new Set(docIds ?? [])].map((docId) => ({
|
|
6396
|
-
queryKey:
|
|
6396
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.parsedDoc(docId, "final"),
|
|
6397
6397
|
queryFn: () => arbi.documents.getParsedContent(docId, "final"),
|
|
6398
6398
|
enabled: arbi.hasWorkspace,
|
|
6399
6399
|
staleTime: PARSED_STALE_TIME
|
|
@@ -6409,7 +6409,7 @@ function usePassageQuotes(docIds) {
|
|
|
6409
6409
|
);
|
|
6410
6410
|
}
|
|
6411
6411
|
var REPLAYABLE = [
|
|
6412
|
-
...
|
|
6412
|
+
...chunkKFFH2JJM_cjs.replayableTagMutations,
|
|
6413
6413
|
...replayableDocumentMutations
|
|
6414
6414
|
];
|
|
6415
6415
|
function isReplayableArbiMutation(mutationKey) {
|
|
@@ -6441,13 +6441,13 @@ function isRestorableArbiQueryOnline(queryKey, data) {
|
|
|
6441
6441
|
const docs = Array.isArray(data) ? data : [data];
|
|
6442
6442
|
return !docs.some((doc) => {
|
|
6443
6443
|
const status = doc?.status;
|
|
6444
|
-
return !!status && !
|
|
6444
|
+
return !!status && !chunkKFFH2JJM_cjs.FINISHED_DOCUMENT_STATUSES.has(status);
|
|
6445
6445
|
});
|
|
6446
6446
|
}
|
|
6447
6447
|
function useFilteredProjects(filters, options) {
|
|
6448
6448
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6449
6449
|
return reactQuery.useQuery({
|
|
6450
|
-
queryKey:
|
|
6450
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.projectsFiltered(filters.stage, filters.leadUser),
|
|
6451
6451
|
queryFn: () => arbi.projects.list(filters),
|
|
6452
6452
|
enabled: options?.enabled ?? arbi.isLoggedIn
|
|
6453
6453
|
});
|
|
@@ -6461,8 +6461,8 @@ function useUpdateProjectFields() {
|
|
|
6461
6461
|
patch
|
|
6462
6462
|
}) => arbi.projects.update(projectExtId, patch),
|
|
6463
6463
|
onSuccess: () => {
|
|
6464
|
-
void qc.invalidateQueries({ queryKey:
|
|
6465
|
-
void qc.invalidateQueries({ queryKey:
|
|
6464
|
+
void qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.projects() });
|
|
6465
|
+
void qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workspaces() });
|
|
6466
6466
|
}
|
|
6467
6467
|
});
|
|
6468
6468
|
}
|
|
@@ -6470,7 +6470,7 @@ function useProjectEvents(projectExtId, options) {
|
|
|
6470
6470
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6471
6471
|
return reactQuery.useQuery({
|
|
6472
6472
|
queryKey: [
|
|
6473
|
-
...
|
|
6473
|
+
...chunkH4FGDXYB_cjs.arbiQueryKeys.projectEvents(projectExtId ?? ""),
|
|
6474
6474
|
options?.kind ?? "all",
|
|
6475
6475
|
options?.limit ?? "default"
|
|
6476
6476
|
],
|
|
@@ -6481,7 +6481,7 @@ function useProjectEvents(projectExtId, options) {
|
|
|
6481
6481
|
function useConversationUsage(conversationId, options) {
|
|
6482
6482
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6483
6483
|
return reactQuery.useQuery({
|
|
6484
|
-
queryKey:
|
|
6484
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.conversationUsage(conversationId ?? ""),
|
|
6485
6485
|
queryFn: () => arbi.conversations.usage(conversationId),
|
|
6486
6486
|
enabled: (options?.enabled ?? true) && !!conversationId && arbi.isLoggedIn,
|
|
6487
6487
|
refetchInterval: options?.live ? 1e4 : false
|
|
@@ -6490,7 +6490,7 @@ function useConversationUsage(conversationId, options) {
|
|
|
6490
6490
|
function useProjectConversationUsage(projectExtId, monthsBack = 0, options) {
|
|
6491
6491
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6492
6492
|
return reactQuery.useQuery({
|
|
6493
|
-
queryKey:
|
|
6493
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.projectConversationUsage(projectExtId ?? "", monthsBack),
|
|
6494
6494
|
queryFn: () => arbi.projects.usageByConversation(projectExtId, monthsBack),
|
|
6495
6495
|
enabled: (options?.enabled ?? true) && !!projectExtId && arbi.isLoggedIn
|
|
6496
6496
|
});
|
|
@@ -6517,7 +6517,7 @@ function useChargeWatch(project, isPending) {
|
|
|
6517
6517
|
React.useEffect(() => {
|
|
6518
6518
|
if (!isSlow) return;
|
|
6519
6519
|
const timer = setInterval(
|
|
6520
|
-
() => queryClient.invalidateQueries({ queryKey:
|
|
6520
|
+
() => queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.projects(), exact: true }),
|
|
6521
6521
|
POLL_EVERY_MS
|
|
6522
6522
|
);
|
|
6523
6523
|
return () => clearInterval(timer);
|
|
@@ -6544,8 +6544,8 @@ function useChargeWatch(project, isPending) {
|
|
|
6544
6544
|
if (!watch2 || watch2.settled) return;
|
|
6545
6545
|
let fresh;
|
|
6546
6546
|
try {
|
|
6547
|
-
await queryClient.refetchQueries({ queryKey:
|
|
6548
|
-
fresh = queryClient.getQueryData(
|
|
6547
|
+
await queryClient.refetchQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.projects(), exact: true });
|
|
6548
|
+
fresh = queryClient.getQueryData(chunkH4FGDXYB_cjs.arbiQueryKeys.projects())?.find((p) => p.external_id === project.external_id);
|
|
6549
6549
|
} catch {
|
|
6550
6550
|
fresh = void 0;
|
|
6551
6551
|
}
|
|
@@ -6558,21 +6558,21 @@ function useChargeWatch(project, isPending) {
|
|
|
6558
6558
|
|
|
6559
6559
|
// src/billing.ts
|
|
6560
6560
|
function refreshProjects(qc, wide = false) {
|
|
6561
|
-
void qc.invalidateQueries({ queryKey:
|
|
6561
|
+
void qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.projects() });
|
|
6562
6562
|
if (wide) {
|
|
6563
|
-
void qc.invalidateQueries({ queryKey:
|
|
6564
|
-
void qc.invalidateQueries({ queryKey:
|
|
6563
|
+
void qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings() });
|
|
6564
|
+
void qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workspaces() });
|
|
6565
6565
|
}
|
|
6566
6566
|
}
|
|
6567
6567
|
var retryAbortOnly = (failureCount, error) => failureCount < 1 && error?.name === "AbortError";
|
|
6568
6568
|
function useInvalidateProjects() {
|
|
6569
6569
|
const qc = reactQuery.useQueryClient();
|
|
6570
|
-
return () => qc.invalidateQueries({ queryKey:
|
|
6570
|
+
return () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.projects() });
|
|
6571
6571
|
}
|
|
6572
6572
|
function useProducts(options) {
|
|
6573
6573
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6574
6574
|
return reactQuery.useQuery({
|
|
6575
|
-
queryKey:
|
|
6575
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.products(),
|
|
6576
6576
|
queryFn: () => arbi.projects.products(),
|
|
6577
6577
|
staleTime: 5 * 6e4,
|
|
6578
6578
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
@@ -6625,15 +6625,15 @@ function useCancelProjectSubscription() {
|
|
|
6625
6625
|
return reactQuery.useMutation({
|
|
6626
6626
|
mutationFn: (projectExtId) => arbi.projects.cancelSubscription(projectExtId),
|
|
6627
6627
|
onSuccess: () => {
|
|
6628
|
-
void qc.invalidateQueries({ queryKey:
|
|
6629
|
-
void qc.invalidateQueries({ queryKey:
|
|
6628
|
+
void qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.projects() });
|
|
6629
|
+
void qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings() });
|
|
6630
6630
|
}
|
|
6631
6631
|
});
|
|
6632
6632
|
}
|
|
6633
6633
|
function usePreviewProjectPlanChange(projectExtId, change) {
|
|
6634
6634
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6635
6635
|
return reactQuery.useQuery({
|
|
6636
|
-
queryKey: [...
|
|
6636
|
+
queryKey: [...chunkH4FGDXYB_cjs.arbiQueryKeys.billingQuotes(), "preview", projectExtId, change],
|
|
6637
6637
|
queryFn: () => arbi.projects.previewPlanChange(projectExtId, change),
|
|
6638
6638
|
enabled: !!change && arbi.isLoggedIn,
|
|
6639
6639
|
staleTime: 6e4,
|
|
@@ -6643,7 +6643,7 @@ function usePreviewProjectPlanChange(projectExtId, change) {
|
|
|
6643
6643
|
function usePlanQuote(projectExtId, body) {
|
|
6644
6644
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6645
6645
|
return reactQuery.useQuery({
|
|
6646
|
-
queryKey: [...
|
|
6646
|
+
queryKey: [...chunkH4FGDXYB_cjs.arbiQueryKeys.billingQuotes(), "plan", projectExtId ?? null, body],
|
|
6647
6647
|
queryFn: () => arbi.projects.quotePlan(projectExtId ?? null, body),
|
|
6648
6648
|
enabled: !!body && arbi.isLoggedIn,
|
|
6649
6649
|
staleTime: 5 * 6e4,
|
|
@@ -6653,7 +6653,7 @@ function usePlanQuote(projectExtId, body) {
|
|
|
6653
6653
|
function useAddonQuote(projectExtId, kind, enabled = true) {
|
|
6654
6654
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6655
6655
|
return reactQuery.useQuery({
|
|
6656
|
-
queryKey: [...
|
|
6656
|
+
queryKey: [...chunkH4FGDXYB_cjs.arbiQueryKeys.billingQuotes(), "addon", projectExtId, kind],
|
|
6657
6657
|
queryFn: () => arbi.projects.quoteAddon(projectExtId, kind),
|
|
6658
6658
|
enabled: enabled && arbi.isLoggedIn,
|
|
6659
6659
|
staleTime: 6e4,
|
|
@@ -6699,7 +6699,7 @@ function useUpdateProjectAddonSettings() {
|
|
|
6699
6699
|
function useContacts(options) {
|
|
6700
6700
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6701
6701
|
return reactQuery.useQuery({
|
|
6702
|
-
queryKey:
|
|
6702
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.contacts(),
|
|
6703
6703
|
queryFn: () => arbi.contacts.list(),
|
|
6704
6704
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn,
|
|
6705
6705
|
staleTime: 3e4
|
|
@@ -6715,7 +6715,7 @@ function usePendingContacts(options) {
|
|
|
6715
6715
|
}
|
|
6716
6716
|
function useInvalidateContacts() {
|
|
6717
6717
|
const qc = reactQuery.useQueryClient();
|
|
6718
|
-
return () => qc.invalidateQueries({ queryKey:
|
|
6718
|
+
return () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.contacts() });
|
|
6719
6719
|
}
|
|
6720
6720
|
function useInviteContacts() {
|
|
6721
6721
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
@@ -6773,7 +6773,7 @@ function useSearchContacts(q, { debounceMs = 200 } = {}) {
|
|
|
6773
6773
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6774
6774
|
const term = useDebounced(q.trim(), debounceMs);
|
|
6775
6775
|
return reactQuery.useQuery({
|
|
6776
|
-
queryKey: [...
|
|
6776
|
+
queryKey: [...chunkH4FGDXYB_cjs.arbiQueryKeys.contacts(), "search", term],
|
|
6777
6777
|
queryFn: () => arbi.contacts.search(term),
|
|
6778
6778
|
enabled: term.length > 0 && arbi.isLoggedIn,
|
|
6779
6779
|
staleTime: 6e4,
|
|
@@ -6827,8 +6827,8 @@ function usePeople() {
|
|
|
6827
6827
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6828
6828
|
const meId = arbi.isLoggedIn ? arbi.user.identity()?.externalId : void 0;
|
|
6829
6829
|
const { data: contacts = [] } = useContacts();
|
|
6830
|
-
const { data: workspaces = [] } =
|
|
6831
|
-
const { data: agents = [] } =
|
|
6830
|
+
const { data: workspaces = [] } = chunkL3NHETSD_cjs.useWorkspaces();
|
|
6831
|
+
const { data: agents = [] } = chunkL3NHETSD_cjs.useAgents();
|
|
6832
6832
|
return React.useMemo(() => {
|
|
6833
6833
|
const people = [];
|
|
6834
6834
|
const contactOf = /* @__PURE__ */ new Map();
|
|
@@ -6902,7 +6902,7 @@ function usePeopleSearch(query, { agents = false } = {}) {
|
|
|
6902
6902
|
function useHouseTemplateCandidates(workspaceId, enabled, staleTime = 6e4) {
|
|
6903
6903
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6904
6904
|
return reactQuery.useQuery({
|
|
6905
|
-
queryKey:
|
|
6905
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.houseTemplateCandidates(workspaceId ?? ""),
|
|
6906
6906
|
enabled: enabled && !!workspaceId && arbi.hasWorkspace,
|
|
6907
6907
|
staleTime,
|
|
6908
6908
|
// Read in that workspace: the server answers for the session's open one.
|
|
@@ -6914,24 +6914,24 @@ function useSetWorkspaceHouseTemplate() {
|
|
|
6914
6914
|
const queryClient = reactQuery.useQueryClient();
|
|
6915
6915
|
return reactQuery.useMutation({
|
|
6916
6916
|
mutationFn: (documentId) => arbi.houseTemplates.setWorkspace(documentId),
|
|
6917
|
-
onSuccess: () => queryClient.invalidateQueries({ queryKey:
|
|
6917
|
+
onSuccess: () => queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workspaces() })
|
|
6918
6918
|
});
|
|
6919
6919
|
}
|
|
6920
6920
|
var supportsHouseTemplates = browser.houseTemplates.supportsHouseTemplates;
|
|
6921
6921
|
var workspaceHouseTemplateId = browser.houseTemplates.workspaceHouseTemplateId;
|
|
6922
6922
|
var isDeploymentAdmin = browser.houseTemplates.isDeploymentAdmin;
|
|
6923
6923
|
function useRequestEmailChange() {
|
|
6924
|
-
const { client } =
|
|
6924
|
+
const { client } = chunkZLHS3UKP_cjs.useAccountClient();
|
|
6925
6925
|
return reactQuery.useMutation({
|
|
6926
6926
|
mutationFn: (newEmail) => client.requestEmailChange(newEmail)
|
|
6927
6927
|
});
|
|
6928
6928
|
}
|
|
6929
6929
|
function useConfirmEmailChange() {
|
|
6930
|
-
const { client } =
|
|
6930
|
+
const { client } = chunkZLHS3UKP_cjs.useAccountClient();
|
|
6931
6931
|
const qc = reactQuery.useQueryClient();
|
|
6932
6932
|
return reactQuery.useMutation({
|
|
6933
6933
|
mutationFn: ({ newEmail, code }) => client.confirmEmailChange(newEmail, code),
|
|
6934
|
-
onSuccess: () => qc.setQueryData(
|
|
6934
|
+
onSuccess: () => qc.setQueryData(chunkH4FGDXYB_cjs.arbiQueryKeys.profile(), client.profile())
|
|
6935
6935
|
});
|
|
6936
6936
|
}
|
|
6937
6937
|
function useEmailChange({
|
|
@@ -6995,7 +6995,7 @@ function useEmailChange({
|
|
|
6995
6995
|
};
|
|
6996
6996
|
}
|
|
6997
6997
|
function usePasswordChange() {
|
|
6998
|
-
const { client } =
|
|
6998
|
+
const { client } = chunkZLHS3UKP_cjs.useAccountClient();
|
|
6999
6999
|
return reactQuery.useMutation({
|
|
7000
7000
|
mutationFn: (vars) => client.changePassword(vars)
|
|
7001
7001
|
});
|
|
@@ -7104,18 +7104,18 @@ function useNotificationPreferences(keys, options) {
|
|
|
7104
7104
|
const save = reactQuery.useMutation({
|
|
7105
7105
|
mutationFn: (patch) => arbi.settings.update({ email_notifications: patch }),
|
|
7106
7106
|
onMutate: async (patch) => {
|
|
7107
|
-
await qc.cancelQueries({ queryKey:
|
|
7108
|
-
const previous = qc.getQueryData(
|
|
7107
|
+
await qc.cancelQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings() });
|
|
7108
|
+
const previous = qc.getQueryData(chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings());
|
|
7109
7109
|
qc.setQueryData(
|
|
7110
|
-
|
|
7110
|
+
chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings(),
|
|
7111
7111
|
(old) => old ? { ...old, email_notifications: { ...old.email_notifications, ...patch } } : old
|
|
7112
7112
|
);
|
|
7113
7113
|
return { previous };
|
|
7114
7114
|
},
|
|
7115
7115
|
onError: (_err, _patch, context) => {
|
|
7116
|
-
qc.setQueryData(
|
|
7116
|
+
qc.setQueryData(chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings(), context?.previous);
|
|
7117
7117
|
},
|
|
7118
|
-
onSettled: () => qc.invalidateQueries({ queryKey:
|
|
7118
|
+
onSettled: () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings() })
|
|
7119
7119
|
});
|
|
7120
7120
|
const model = React.useMemo(() => toNotificationPreferences(stored, keys), [stored, keys]);
|
|
7121
7121
|
const setAll = React.useCallback(
|
|
@@ -7142,18 +7142,18 @@ function useRelevanceSave() {
|
|
|
7142
7142
|
return reactQuery.useMutation({
|
|
7143
7143
|
mutationFn: (patch) => arbi.settings.update(patch),
|
|
7144
7144
|
onMutate: async (patch) => {
|
|
7145
|
-
await qc.cancelQueries({ queryKey:
|
|
7146
|
-
const previous = qc.getQueryData(
|
|
7145
|
+
await qc.cancelQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings() });
|
|
7146
|
+
const previous = qc.getQueryData(chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings());
|
|
7147
7147
|
qc.setQueryData(
|
|
7148
|
-
|
|
7148
|
+
chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings(),
|
|
7149
7149
|
(old) => old ? { ...old, ...patch } : old
|
|
7150
7150
|
);
|
|
7151
7151
|
return { previous };
|
|
7152
7152
|
},
|
|
7153
7153
|
onError: (_err, _patch, context) => {
|
|
7154
|
-
qc.setQueryData(
|
|
7154
|
+
qc.setQueryData(chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings(), context?.previous);
|
|
7155
7155
|
},
|
|
7156
|
-
onSettled: () => qc.invalidateQueries({ queryKey:
|
|
7156
|
+
onSettled: () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings() })
|
|
7157
7157
|
});
|
|
7158
7158
|
}
|
|
7159
7159
|
function useWorkspaceNotificationLevel(workspaceId, options) {
|
|
@@ -7164,7 +7164,7 @@ function useWorkspaceNotificationLevel(workspaceId, options) {
|
|
|
7164
7164
|
const setLevel = React.useCallback(
|
|
7165
7165
|
(next) => {
|
|
7166
7166
|
if (!workspaceId) return;
|
|
7167
|
-
const current = qc.getQueryData(
|
|
7167
|
+
const current = qc.getQueryData(chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings()) ?? settings.data;
|
|
7168
7168
|
save.mutate(browser.settings.workspaceLevelPatch(current, workspaceId, next));
|
|
7169
7169
|
},
|
|
7170
7170
|
[qc, save, settings.data, workspaceId]
|
|
@@ -7185,7 +7185,7 @@ function useFollowThread(conversationId, options) {
|
|
|
7185
7185
|
const setFollowing = React.useCallback(
|
|
7186
7186
|
(on, callbacks) => {
|
|
7187
7187
|
if (!conversationId) return;
|
|
7188
|
-
const current = qc.getQueryData(
|
|
7188
|
+
const current = qc.getQueryData(chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings()) ?? settings.data;
|
|
7189
7189
|
save.mutate(
|
|
7190
7190
|
{
|
|
7191
7191
|
followed_threads: browser.settings.withMembership(
|
|
@@ -7208,23 +7208,23 @@ function useFollowThread(conversationId, options) {
|
|
|
7208
7208
|
};
|
|
7209
7209
|
}
|
|
7210
7210
|
function useSessions(options) {
|
|
7211
|
-
const { client, enabled } =
|
|
7211
|
+
const { client, enabled } = chunkZLHS3UKP_cjs.useAccountClient();
|
|
7212
7212
|
return reactQuery.useQuery({
|
|
7213
|
-
queryKey:
|
|
7213
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.sessions(),
|
|
7214
7214
|
queryFn: () => client.listSessions(),
|
|
7215
7215
|
enabled: (options?.enabled ?? true) && enabled
|
|
7216
7216
|
});
|
|
7217
7217
|
}
|
|
7218
7218
|
function useTerminateSession() {
|
|
7219
|
-
const { client } =
|
|
7219
|
+
const { client } = chunkZLHS3UKP_cjs.useAccountClient();
|
|
7220
7220
|
const qc = reactQuery.useQueryClient();
|
|
7221
7221
|
return reactQuery.useMutation({
|
|
7222
7222
|
mutationFn: (sessionId) => client.terminateSession(sessionId),
|
|
7223
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
7223
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.sessions() })
|
|
7224
7224
|
});
|
|
7225
7225
|
}
|
|
7226
7226
|
function useSignOut() {
|
|
7227
|
-
const { client } =
|
|
7227
|
+
const { client } = chunkZLHS3UKP_cjs.useAccountClient();
|
|
7228
7228
|
const qc = reactQuery.useQueryClient();
|
|
7229
7229
|
return reactQuery.useMutation({
|
|
7230
7230
|
mutationFn: (options = {}) => client.signOut(options),
|
|
@@ -7232,7 +7232,7 @@ function useSignOut() {
|
|
|
7232
7232
|
});
|
|
7233
7233
|
}
|
|
7234
7234
|
function useCurrentSessionId() {
|
|
7235
|
-
return
|
|
7235
|
+
return chunkZLHS3UKP_cjs.useAccountClient().client.currentSessionId();
|
|
7236
7236
|
}
|
|
7237
7237
|
function parseDeleteAccountBlockers(error) {
|
|
7238
7238
|
const body = error?.apiError ?? error;
|
|
@@ -7247,7 +7247,7 @@ function parseDeleteAccountBlockers(error) {
|
|
|
7247
7247
|
return [];
|
|
7248
7248
|
}
|
|
7249
7249
|
function useDeleteAccount() {
|
|
7250
|
-
const { client } =
|
|
7250
|
+
const { client } = chunkZLHS3UKP_cjs.useAccountClient();
|
|
7251
7251
|
return reactQuery.useMutation({ mutationFn: () => client.requestDeletion() });
|
|
7252
7252
|
}
|
|
7253
7253
|
function useDeleteAccountFlow({
|
|
@@ -7363,7 +7363,7 @@ function useIdentityVerificationFlow(api, {
|
|
|
7363
7363
|
const apiRef = React.useRef(api);
|
|
7364
7364
|
apiRef.current = api;
|
|
7365
7365
|
const query = reactQuery.useQuery({
|
|
7366
|
-
queryKey:
|
|
7366
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.identity(),
|
|
7367
7367
|
queryFn: () => apiRef.current.status(),
|
|
7368
7368
|
enabled,
|
|
7369
7369
|
staleTime: 6e4
|
|
@@ -7381,7 +7381,7 @@ function useIdentityVerificationFlow(api, {
|
|
|
7381
7381
|
const lastVerified = React.useRef(void 0);
|
|
7382
7382
|
const apply = React.useCallback(
|
|
7383
7383
|
(next) => {
|
|
7384
|
-
qc.setQueryData(
|
|
7384
|
+
qc.setQueryData(chunkH4FGDXYB_cjs.arbiQueryKeys.identity(), next);
|
|
7385
7385
|
if (lastVerified.current !== void 0 && lastVerified.current !== next.verified) {
|
|
7386
7386
|
onVerifiedChange?.(next.verified);
|
|
7387
7387
|
}
|
|
@@ -7569,19 +7569,19 @@ function useIdentityVerificationFlow(api, {
|
|
|
7569
7569
|
};
|
|
7570
7570
|
}
|
|
7571
7571
|
function useIdentityVerification(options = {}) {
|
|
7572
|
-
const { client, enabled } =
|
|
7572
|
+
const { client, enabled } = chunkZLHS3UKP_cjs.useAccountClient();
|
|
7573
7573
|
const qc = reactQuery.useQueryClient();
|
|
7574
7574
|
const { onVerifiedChange, onNameAccepted, formatPrice } = options;
|
|
7575
7575
|
return useIdentityVerificationFlow(client.identity, {
|
|
7576
7576
|
enabled,
|
|
7577
7577
|
formatPrice,
|
|
7578
7578
|
onVerifiedChange: (verified) => {
|
|
7579
|
-
void qc.invalidateQueries({ queryKey:
|
|
7579
|
+
void qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.profile() });
|
|
7580
7580
|
onVerifiedChange?.(verified);
|
|
7581
7581
|
},
|
|
7582
7582
|
onNameAccepted: (name) => {
|
|
7583
|
-
void qc.invalidateQueries({ queryKey:
|
|
7584
|
-
void qc.invalidateQueries({ queryKey:
|
|
7583
|
+
void qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.profile() });
|
|
7584
|
+
void qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workspaces() });
|
|
7585
7585
|
onNameAccepted?.(name);
|
|
7586
7586
|
}
|
|
7587
7587
|
});
|
|
@@ -7720,7 +7720,7 @@ function useMailOnline() {
|
|
|
7720
7720
|
function useMailPolicy() {
|
|
7721
7721
|
const { client, enabled } = useMailClient();
|
|
7722
7722
|
return reactQuery.useQuery({
|
|
7723
|
-
queryKey:
|
|
7723
|
+
queryKey: chunkH4FGDXYB_cjs.mailQueryKeys.policy(),
|
|
7724
7724
|
queryFn: () => client.getPolicy(),
|
|
7725
7725
|
networkMode: "always",
|
|
7726
7726
|
enabled,
|
|
@@ -7731,7 +7731,7 @@ function useMailPolicy() {
|
|
|
7731
7731
|
function useMailAccounts(options = {}) {
|
|
7732
7732
|
const { client, enabled } = useMailClient();
|
|
7733
7733
|
return reactQuery.useQuery({
|
|
7734
|
-
queryKey:
|
|
7734
|
+
queryKey: chunkH4FGDXYB_cjs.mailQueryKeys.accounts(),
|
|
7735
7735
|
queryFn: () => client.listAccounts(),
|
|
7736
7736
|
networkMode: "always",
|
|
7737
7737
|
enabled: enabled && (options.enabled ?? true),
|
|
@@ -7742,7 +7742,7 @@ function useMailUnlock(account) {
|
|
|
7742
7742
|
const { client, enabled, sessionKey } = useMailClient();
|
|
7743
7743
|
const isOnline = useMailOnline();
|
|
7744
7744
|
return reactQuery.useQuery({
|
|
7745
|
-
queryKey:
|
|
7745
|
+
queryKey: chunkH4FGDXYB_cjs.mailQueryKeys.unlock(account?.id, sessionKey),
|
|
7746
7746
|
queryFn: async () => {
|
|
7747
7747
|
if (!account) throw new Error("Sign in to unlock your mailbox");
|
|
7748
7748
|
await client.unlock(account);
|
|
@@ -7756,7 +7756,7 @@ function useMailUnlock(account) {
|
|
|
7756
7756
|
function useMailFolders(account, options) {
|
|
7757
7757
|
const { client } = useMailClient();
|
|
7758
7758
|
return reactQuery.useQuery({
|
|
7759
|
-
queryKey:
|
|
7759
|
+
queryKey: chunkH4FGDXYB_cjs.mailQueryKeys.folders(account?.id),
|
|
7760
7760
|
queryFn: () => client.listFolders(account),
|
|
7761
7761
|
networkMode: "always",
|
|
7762
7762
|
enabled: !!account && (options.enabled ?? true),
|
|
@@ -7766,7 +7766,7 @@ function useMailFolders(account, options) {
|
|
|
7766
7766
|
function useMailMessages(account, folderId, query, cursor, options = {}) {
|
|
7767
7767
|
const { client } = useMailClient();
|
|
7768
7768
|
return reactQuery.useQuery({
|
|
7769
|
-
queryKey:
|
|
7769
|
+
queryKey: chunkH4FGDXYB_cjs.mailQueryKeys.messages(account?.id, folderId, query, cursor),
|
|
7770
7770
|
queryFn: () => client.listMessages(account, folderId, query, cursor),
|
|
7771
7771
|
networkMode: "always",
|
|
7772
7772
|
enabled: !!account && !!folderId && (options.enabled ?? true),
|
|
@@ -7777,7 +7777,7 @@ function useMailMessages(account, folderId, query, cursor, options = {}) {
|
|
|
7777
7777
|
function useMailMessage(account, messageId, options = {}) {
|
|
7778
7778
|
const { client } = useMailClient();
|
|
7779
7779
|
return reactQuery.useQuery({
|
|
7780
|
-
queryKey:
|
|
7780
|
+
queryKey: chunkH4FGDXYB_cjs.mailQueryKeys.message(account?.id, messageId),
|
|
7781
7781
|
queryFn: () => client.getMessage(account, messageId),
|
|
7782
7782
|
networkMode: "always",
|
|
7783
7783
|
enabled: !!account && !!messageId && (options.enabled ?? true),
|
|
@@ -7791,7 +7791,7 @@ function decodeBase64Text(b64) {
|
|
|
7791
7791
|
function useMailAttachmentText(accountId, messageId, attachment, options = {}) {
|
|
7792
7792
|
const { client } = useMailClient();
|
|
7793
7793
|
return reactQuery.useQuery({
|
|
7794
|
-
queryKey:
|
|
7794
|
+
queryKey: chunkH4FGDXYB_cjs.mailQueryKeys.attachmentText(accountId, messageId, attachment?.id ?? ""),
|
|
7795
7795
|
queryFn: async () => {
|
|
7796
7796
|
const a = attachment;
|
|
7797
7797
|
if (a.content_base64) return decodeBase64Text(a.content_base64);
|
|
@@ -7809,7 +7809,7 @@ function useClaimNativeAlias(onClaimed) {
|
|
|
7809
7809
|
return reactQuery.useMutation({
|
|
7810
7810
|
mutationFn: (alias) => mailJson(client.fetch, "/native/alias", { method: "POST", body: JSON.stringify({ alias }) }),
|
|
7811
7811
|
onSuccess: async (_data, alias) => {
|
|
7812
|
-
await queryClient.invalidateQueries({ queryKey:
|
|
7812
|
+
await queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.mailQueryKeys.all() });
|
|
7813
7813
|
onClaimed?.(alias);
|
|
7814
7814
|
}
|
|
7815
7815
|
});
|
|
@@ -7827,7 +7827,7 @@ function useConnectMailAccount() {
|
|
|
7827
7827
|
password: input.password
|
|
7828
7828
|
})
|
|
7829
7829
|
}),
|
|
7830
|
-
onSuccess: () => queryClient.invalidateQueries({ queryKey:
|
|
7830
|
+
onSuccess: () => queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.mailQueryKeys.accounts() })
|
|
7831
7831
|
});
|
|
7832
7832
|
}
|
|
7833
7833
|
function useDisconnectMailAccount() {
|
|
@@ -7835,19 +7835,19 @@ function useDisconnectMailAccount() {
|
|
|
7835
7835
|
const queryClient = reactQuery.useQueryClient();
|
|
7836
7836
|
return reactQuery.useMutation({
|
|
7837
7837
|
mutationFn: (accountId) => mailJson(client.fetch, accountPath(accountId), { method: "DELETE" }),
|
|
7838
|
-
onSuccess: () => queryClient.invalidateQueries({ queryKey:
|
|
7838
|
+
onSuccess: () => queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.mailQueryKeys.all() })
|
|
7839
7839
|
});
|
|
7840
7840
|
}
|
|
7841
7841
|
function useMailCache() {
|
|
7842
7842
|
const queryClient = reactQuery.useQueryClient();
|
|
7843
7843
|
return React.useMemo(() => {
|
|
7844
|
-
const refreshAll = () => queryClient.invalidateQueries({ queryKey:
|
|
7844
|
+
const refreshAll = () => queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.mailQueryKeys.all() });
|
|
7845
7845
|
return {
|
|
7846
7846
|
refreshAll,
|
|
7847
|
-
refreshFolders: () => queryClient.invalidateQueries({ queryKey:
|
|
7847
|
+
refreshFolders: () => queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.mailQueryKeys.allFolders() }),
|
|
7848
7848
|
/** After a write to one message: drop a read of it still in flight (it may carry the old state), then refresh. */
|
|
7849
7849
|
settleMessage: async (accountId, messageId) => {
|
|
7850
|
-
await queryClient.cancelQueries({ queryKey:
|
|
7850
|
+
await queryClient.cancelQueries({ queryKey: chunkH4FGDXYB_cjs.mailQueryKeys.message(accountId, messageId) });
|
|
7851
7851
|
await refreshAll();
|
|
7852
7852
|
}
|
|
7853
7853
|
};
|
|
@@ -7899,7 +7899,7 @@ function useSaveMailDraft(fallback) {
|
|
|
7899
7899
|
),
|
|
7900
7900
|
onSuccess: (result) => {
|
|
7901
7901
|
if (!("onDevice" in result))
|
|
7902
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
7902
|
+
void queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.mailQueryKeys.allMessages() });
|
|
7903
7903
|
}
|
|
7904
7904
|
});
|
|
7905
7905
|
}
|
|
@@ -7927,7 +7927,7 @@ function useSendMail(fallback) {
|
|
|
7927
7927
|
),
|
|
7928
7928
|
onSuccess: (result) => {
|
|
7929
7929
|
if (!(result && typeof result === "object" && "onDevice" in result))
|
|
7930
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
7930
|
+
void queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.mailQueryKeys.all() });
|
|
7931
7931
|
}
|
|
7932
7932
|
});
|
|
7933
7933
|
}
|
|
@@ -7943,13 +7943,13 @@ function useMailDraftEditor() {
|
|
|
7943
7943
|
/** Save as the draft: suggestions still waiting stay out of it. */
|
|
7944
7944
|
save: async (roomId, compose, state) => {
|
|
7945
7945
|
const saved = await call(roomId, "/save", { compose, state });
|
|
7946
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
7946
|
+
void queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.mailQueryKeys.allMessages() });
|
|
7947
7947
|
return saved;
|
|
7948
7948
|
},
|
|
7949
7949
|
/** Send (refused, `status` 409, while suggestions wait). */
|
|
7950
7950
|
send: async (roomId, compose, state) => {
|
|
7951
7951
|
const sent = await call(roomId, "/send", { compose, state });
|
|
7952
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
7952
|
+
void queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.mailQueryKeys.all() });
|
|
7953
7953
|
return sent;
|
|
7954
7954
|
},
|
|
7955
7955
|
/** The body as text and HTML (`final`: refused while suggestions wait). */
|
|
@@ -7966,7 +7966,7 @@ function useMailDraftEditor() {
|
|
|
7966
7966
|
function useMailProjects(options = {}) {
|
|
7967
7967
|
const { client } = useMailClient();
|
|
7968
7968
|
return reactQuery.useQuery({
|
|
7969
|
-
queryKey:
|
|
7969
|
+
queryKey: chunkH4FGDXYB_cjs.mailQueryKeys.projects(),
|
|
7970
7970
|
queryFn: () => mailJson(client.fetch, "/drafts/editor/projects"),
|
|
7971
7971
|
enabled: options.enabled ?? true,
|
|
7972
7972
|
staleTime: 6e4
|
|
@@ -7974,7 +7974,7 @@ function useMailProjects(options = {}) {
|
|
|
7974
7974
|
}
|
|
7975
7975
|
function useMailDraftCompose(account, draftId, prepare, options = {}) {
|
|
7976
7976
|
return reactQuery.useQuery({
|
|
7977
|
-
queryKey:
|
|
7977
|
+
queryKey: chunkH4FGDXYB_cjs.mailQueryKeys.draftCompose(account?.id, draftId),
|
|
7978
7978
|
queryFn: () => prepare(account, draftId),
|
|
7979
7979
|
networkMode: "always",
|
|
7980
7980
|
enabled: !!account && !!draftId && (options.enabled ?? true),
|
|
@@ -8007,13 +8007,13 @@ function useConnectorMutation(mutationFn) {
|
|
|
8007
8007
|
const qc = reactQuery.useQueryClient();
|
|
8008
8008
|
return reactQuery.useMutation({
|
|
8009
8009
|
mutationFn,
|
|
8010
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
8010
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.connectorQueryKeys.all() })
|
|
8011
8011
|
});
|
|
8012
8012
|
}
|
|
8013
8013
|
function useConnectorCatalog() {
|
|
8014
8014
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8015
8015
|
return reactQuery.useQuery({
|
|
8016
|
-
queryKey:
|
|
8016
|
+
queryKey: chunkH4FGDXYB_cjs.connectorQueryKeys.catalog(),
|
|
8017
8017
|
queryFn: () => arbi.connectors.catalog(),
|
|
8018
8018
|
staleTime: 5 * 6e4,
|
|
8019
8019
|
enabled: arbi.isLoggedIn
|
|
@@ -8022,7 +8022,7 @@ function useConnectorCatalog() {
|
|
|
8022
8022
|
function useMyConnectors() {
|
|
8023
8023
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8024
8024
|
return reactQuery.useQuery({
|
|
8025
|
-
queryKey:
|
|
8025
|
+
queryKey: chunkH4FGDXYB_cjs.connectorQueryKeys.mine(),
|
|
8026
8026
|
queryFn: () => arbi.connectors.mine(),
|
|
8027
8027
|
staleTime: 3e4,
|
|
8028
8028
|
enabled: arbi.isLoggedIn
|
|
@@ -8050,7 +8050,7 @@ function connectorReturnTo(reopen) {
|
|
|
8050
8050
|
function useMailboxFolders(vendorKey, enabled) {
|
|
8051
8051
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8052
8052
|
return reactQuery.useQuery({
|
|
8053
|
-
queryKey:
|
|
8053
|
+
queryKey: chunkH4FGDXYB_cjs.connectorQueryKeys.mailboxFolders(vendorKey),
|
|
8054
8054
|
queryFn: () => arbi.connectors.mailboxFolders(vendorKey),
|
|
8055
8055
|
enabled: enabled && arbi.isLoggedIn,
|
|
8056
8056
|
staleTime: 6e4
|
|
@@ -8080,7 +8080,7 @@ function useTriggerMailboxSync() {
|
|
|
8080
8080
|
function useMailboxSyncProgress(vendorKey, workspaceExtId, enabled) {
|
|
8081
8081
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8082
8082
|
return reactQuery.useQuery({
|
|
8083
|
-
queryKey:
|
|
8083
|
+
queryKey: chunkH4FGDXYB_cjs.connectorQueryKeys.mailboxSyncProgress(vendorKey, workspaceExtId),
|
|
8084
8084
|
queryFn: () => arbi.connectors.mailboxSyncProgress(vendorKey, workspaceExtId),
|
|
8085
8085
|
enabled: enabled && !!workspaceExtId && arbi.isLoggedIn,
|
|
8086
8086
|
refetchInterval: (query) => query.state.data?.running ? 1500 : false,
|
|
@@ -8096,7 +8096,7 @@ function useCancelMailboxSync() {
|
|
|
8096
8096
|
function useDriveFolders(vendorKey, enabled) {
|
|
8097
8097
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8098
8098
|
return reactQuery.useQuery({
|
|
8099
|
-
queryKey:
|
|
8099
|
+
queryKey: chunkH4FGDXYB_cjs.connectorQueryKeys.driveFolders(vendorKey),
|
|
8100
8100
|
queryFn: () => arbi.connectors.driveFolders(vendorKey),
|
|
8101
8101
|
enabled: enabled && arbi.isLoggedIn,
|
|
8102
8102
|
retry: false,
|
|
@@ -8106,7 +8106,7 @@ function useDriveFolders(vendorKey, enabled) {
|
|
|
8106
8106
|
function useDriveFolderChildren(vendorKey, itemId, enabled) {
|
|
8107
8107
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8108
8108
|
return reactQuery.useQuery({
|
|
8109
|
-
queryKey:
|
|
8109
|
+
queryKey: chunkH4FGDXYB_cjs.connectorQueryKeys.driveFolderChildren(vendorKey, itemId),
|
|
8110
8110
|
queryFn: () => arbi.connectors.driveFolderChildren(vendorKey, itemId),
|
|
8111
8111
|
enabled: enabled && arbi.isLoggedIn,
|
|
8112
8112
|
staleTime: 3e4
|
|
@@ -8115,7 +8115,7 @@ function useDriveFolderChildren(vendorKey, itemId, enabled) {
|
|
|
8115
8115
|
function useDriveFolderDocCount(vendorKey, itemId, enabled) {
|
|
8116
8116
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8117
8117
|
return reactQuery.useQuery({
|
|
8118
|
-
queryKey:
|
|
8118
|
+
queryKey: chunkH4FGDXYB_cjs.connectorQueryKeys.driveFolderDocCount(vendorKey, itemId),
|
|
8119
8119
|
queryFn: () => arbi.connectors.driveFolderDocCount(vendorKey, itemId),
|
|
8120
8120
|
enabled: enabled && arbi.isLoggedIn,
|
|
8121
8121
|
staleTime: 5 * 6e4
|
|
@@ -8143,7 +8143,7 @@ function useTriggerDriveSync() {
|
|
|
8143
8143
|
function useDriveSyncEstimate(vendorKey, enabled) {
|
|
8144
8144
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8145
8145
|
return reactQuery.useQuery({
|
|
8146
|
-
queryKey:
|
|
8146
|
+
queryKey: chunkH4FGDXYB_cjs.connectorQueryKeys.driveSyncEstimate(vendorKey),
|
|
8147
8147
|
queryFn: () => arbi.connectors.driveSyncEstimate(vendorKey),
|
|
8148
8148
|
enabled: enabled && arbi.isLoggedIn,
|
|
8149
8149
|
staleTime: 3e4
|
|
@@ -8152,7 +8152,7 @@ function useDriveSyncEstimate(vendorKey, enabled) {
|
|
|
8152
8152
|
function useDriveSyncProgress(vendorKey, enabled) {
|
|
8153
8153
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8154
8154
|
return reactQuery.useQuery({
|
|
8155
|
-
queryKey:
|
|
8155
|
+
queryKey: chunkH4FGDXYB_cjs.connectorQueryKeys.driveSyncProgress(vendorKey),
|
|
8156
8156
|
queryFn: () => arbi.connectors.driveSyncProgress(vendorKey),
|
|
8157
8157
|
enabled: enabled && arbi.isLoggedIn,
|
|
8158
8158
|
refetchInterval: (query) => query.state.data?.running ? 1500 : false,
|
|
@@ -8168,7 +8168,7 @@ function useCancelDriveSync() {
|
|
|
8168
8168
|
function useSlackConnection() {
|
|
8169
8169
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8170
8170
|
return reactQuery.useQuery({
|
|
8171
|
-
queryKey:
|
|
8171
|
+
queryKey: chunkH4FGDXYB_cjs.connectorQueryKeys.slack(),
|
|
8172
8172
|
queryFn: () => arbi.connectors.slack.status(),
|
|
8173
8173
|
enabled: arbi.isLoggedIn,
|
|
8174
8174
|
// Fresh on every visit: the OAuth return lands here before the status changed server-side.
|
|
@@ -8186,7 +8186,7 @@ function useRefreshConnectorsOnRunEnd(running) {
|
|
|
8186
8186
|
const wasRunning = React.useRef(running);
|
|
8187
8187
|
React.useEffect(() => {
|
|
8188
8188
|
if (wasRunning.current && !running) {
|
|
8189
|
-
void qc.invalidateQueries({ queryKey:
|
|
8189
|
+
void qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.connectorQueryKeys.mine() });
|
|
8190
8190
|
}
|
|
8191
8191
|
wasRunning.current = running;
|
|
8192
8192
|
}, [running, qc]);
|
|
@@ -8201,9 +8201,9 @@ function useConnectorAutoSync(workspaceExtId, opened) {
|
|
|
8201
8201
|
const check = () => {
|
|
8202
8202
|
lastCheck.current = Date.now();
|
|
8203
8203
|
void arbi.connectors.bridgeTokens({ autoSyncWorkspaceExtId: workspaceExtId }).then(() => {
|
|
8204
|
-
void qc.invalidateQueries({ queryKey:
|
|
8205
|
-
void qc.invalidateQueries({ queryKey:
|
|
8206
|
-
void qc.invalidateQueries({ queryKey:
|
|
8204
|
+
void qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.connectorQueryKeys.mine() });
|
|
8205
|
+
void qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.connectorQueryKeys.allMailboxSyncProgress() });
|
|
8206
|
+
void qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.connectorQueryKeys.allDriveSyncProgress() });
|
|
8207
8207
|
});
|
|
8208
8208
|
};
|
|
8209
8209
|
check();
|
|
@@ -8236,7 +8236,7 @@ function useCalendarSupport() {
|
|
|
8236
8236
|
authorize: (vendor, returnPath) => arbi.connectors.authorize(vendor, returnPath),
|
|
8237
8237
|
bridge: (vendor) => arbi.connectors.bridgeTokens({ vendor }),
|
|
8238
8238
|
connectedVendors: async () => (await qc.fetchQuery({
|
|
8239
|
-
queryKey:
|
|
8239
|
+
queryKey: chunkH4FGDXYB_cjs.connectorQueryKeys.mine(),
|
|
8240
8240
|
queryFn: () => arbi.connectors.mine(),
|
|
8241
8241
|
staleTime: 3e4
|
|
8242
8242
|
})).map((c) => c.vendor_key)
|
|
@@ -8247,16 +8247,16 @@ function useCalendarSupport() {
|
|
|
8247
8247
|
}
|
|
8248
8248
|
function invalidateCalendarEvents(qc) {
|
|
8249
8249
|
return Promise.all([
|
|
8250
|
-
qc.invalidateQueries({ queryKey:
|
|
8251
|
-
qc.invalidateQueries({ queryKey:
|
|
8252
|
-
qc.invalidateQueries({ queryKey:
|
|
8253
|
-
qc.invalidateQueries({ queryKey:
|
|
8250
|
+
qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.events() }),
|
|
8251
|
+
qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.eventDetails() }),
|
|
8252
|
+
qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.invitations() }),
|
|
8253
|
+
qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.allLookups() })
|
|
8254
8254
|
]);
|
|
8255
8255
|
}
|
|
8256
8256
|
function invalidateCalendars(qc) {
|
|
8257
8257
|
return Promise.all([
|
|
8258
|
-
qc.invalidateQueries({ queryKey:
|
|
8259
|
-
qc.invalidateQueries({ queryKey:
|
|
8258
|
+
qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.calendars() }),
|
|
8259
|
+
qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.events() })
|
|
8260
8260
|
]);
|
|
8261
8261
|
}
|
|
8262
8262
|
function useOfflineRead() {
|
|
@@ -8278,8 +8278,8 @@ function useCalendarSettings(enabled = true) {
|
|
|
8278
8278
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8279
8279
|
const { read, networkMode } = useOfflineRead();
|
|
8280
8280
|
return reactQuery.useQuery({
|
|
8281
|
-
queryKey:
|
|
8282
|
-
queryFn: () => read(
|
|
8281
|
+
queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.settings(),
|
|
8282
|
+
queryFn: () => read(chunkH4FGDXYB_cjs.calendarQueryKeys.settings(), () => arbi.calendar.getSettings()),
|
|
8283
8283
|
networkMode,
|
|
8284
8284
|
enabled: enabled && arbi.isLoggedIn,
|
|
8285
8285
|
staleTime: 5 * 6e4,
|
|
@@ -8290,8 +8290,8 @@ function useCalendars(enabled = true) {
|
|
|
8290
8290
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8291
8291
|
const { read, networkMode } = useOfflineRead();
|
|
8292
8292
|
return reactQuery.useQuery({
|
|
8293
|
-
queryKey:
|
|
8294
|
-
queryFn: () => read(
|
|
8293
|
+
queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.calendars(),
|
|
8294
|
+
queryFn: () => read(chunkH4FGDXYB_cjs.calendarQueryKeys.calendars(), () => arbi.calendar.listCalendars()),
|
|
8295
8295
|
networkMode,
|
|
8296
8296
|
enabled: enabled && arbi.isLoggedIn,
|
|
8297
8297
|
staleTime: 6e4,
|
|
@@ -8302,9 +8302,9 @@ function useCalendarEvents(params) {
|
|
|
8302
8302
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8303
8303
|
const { read, networkMode } = useOfflineRead();
|
|
8304
8304
|
return reactQuery.useQuery({
|
|
8305
|
-
queryKey: params ?
|
|
8305
|
+
queryKey: params ? chunkH4FGDXYB_cjs.calendarQueryKeys.eventList(params) : chunkH4FGDXYB_cjs.calendarQueryKeys.events(),
|
|
8306
8306
|
queryFn: () => read(
|
|
8307
|
-
|
|
8307
|
+
chunkH4FGDXYB_cjs.calendarQueryKeys.eventList(params),
|
|
8308
8308
|
() => arbi.calendar.listEvents(params)
|
|
8309
8309
|
),
|
|
8310
8310
|
networkMode,
|
|
@@ -8318,9 +8318,9 @@ function useCalendarEvent(id, recurrenceId) {
|
|
|
8318
8318
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8319
8319
|
const { read, networkMode } = useOfflineRead();
|
|
8320
8320
|
return reactQuery.useQuery({
|
|
8321
|
-
queryKey:
|
|
8321
|
+
queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.event(id ?? "", recurrenceId),
|
|
8322
8322
|
queryFn: () => read(
|
|
8323
|
-
|
|
8323
|
+
chunkH4FGDXYB_cjs.calendarQueryKeys.event(id, recurrenceId),
|
|
8324
8324
|
() => arbi.calendar.getEvent(id, recurrenceId)
|
|
8325
8325
|
),
|
|
8326
8326
|
networkMode,
|
|
@@ -8333,9 +8333,9 @@ function useFetchCalendarEvent() {
|
|
|
8333
8333
|
const qc = reactQuery.useQueryClient();
|
|
8334
8334
|
const { read, networkMode } = useOfflineRead();
|
|
8335
8335
|
return (id, recurrenceId) => qc.fetchQuery({
|
|
8336
|
-
queryKey:
|
|
8336
|
+
queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.event(id, recurrenceId),
|
|
8337
8337
|
queryFn: () => read(
|
|
8338
|
-
|
|
8338
|
+
chunkH4FGDXYB_cjs.calendarQueryKeys.event(id, recurrenceId),
|
|
8339
8339
|
() => arbi.calendar.getEvent(id, recurrenceId)
|
|
8340
8340
|
),
|
|
8341
8341
|
networkMode,
|
|
@@ -8346,7 +8346,7 @@ function useCalendarOverlays(range, layers) {
|
|
|
8346
8346
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8347
8347
|
const workspaceId = arbi.hasWorkspace ? arbi.getWorkspaceId() : null;
|
|
8348
8348
|
return reactQuery.useQuery({
|
|
8349
|
-
queryKey:
|
|
8349
|
+
queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.overlays(workspaceId, range ?? void 0, layers),
|
|
8350
8350
|
queryFn: () => arbi.calendar.listOverlays(range, layers),
|
|
8351
8351
|
enabled: !!workspaceId && !!range && layers.length > 0,
|
|
8352
8352
|
staleTime: 6e4,
|
|
@@ -8359,12 +8359,12 @@ function useCalendarOutbox() {
|
|
|
8359
8359
|
const { offline } = useCalendarSupport();
|
|
8360
8360
|
React.useEffect(
|
|
8361
8361
|
() => offline?.subscribe(() => {
|
|
8362
|
-
void qc.invalidateQueries({ queryKey:
|
|
8362
|
+
void qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.outbox() });
|
|
8363
8363
|
}),
|
|
8364
8364
|
[offline, qc]
|
|
8365
8365
|
);
|
|
8366
8366
|
return reactQuery.useQuery({
|
|
8367
|
-
queryKey:
|
|
8367
|
+
queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.outbox(),
|
|
8368
8368
|
queryFn: () => offline ? offline.pending() : Promise.resolve([]),
|
|
8369
8369
|
networkMode: "always",
|
|
8370
8370
|
staleTime: Infinity
|
|
@@ -8373,7 +8373,7 @@ function useCalendarOutbox() {
|
|
|
8373
8373
|
function useCalendarShares(calId) {
|
|
8374
8374
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8375
8375
|
return reactQuery.useQuery({
|
|
8376
|
-
queryKey:
|
|
8376
|
+
queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.shares(calId ?? ""),
|
|
8377
8377
|
queryFn: () => arbi.calendar.listShares(calId),
|
|
8378
8378
|
enabled: !!calId && arbi.isLoggedIn,
|
|
8379
8379
|
retry: false
|
|
@@ -8382,7 +8382,7 @@ function useCalendarShares(calId) {
|
|
|
8382
8382
|
function useHolidayCountries(enabled = true) {
|
|
8383
8383
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8384
8384
|
return reactQuery.useQuery({
|
|
8385
|
-
queryKey:
|
|
8385
|
+
queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.holidayCountries(),
|
|
8386
8386
|
queryFn: () => arbi.calendar.listHolidayCountries(),
|
|
8387
8387
|
enabled: enabled && arbi.isLoggedIn,
|
|
8388
8388
|
staleTime: Infinity,
|
|
@@ -8392,7 +8392,7 @@ function useHolidayCountries(enabled = true) {
|
|
|
8392
8392
|
function useRooms(q) {
|
|
8393
8393
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8394
8394
|
return reactQuery.useQuery({
|
|
8395
|
-
queryKey:
|
|
8395
|
+
queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.rooms(q ?? {}),
|
|
8396
8396
|
queryFn: () => arbi.calendar.listRooms(q ?? {}),
|
|
8397
8397
|
enabled: !!q && arbi.isLoggedIn,
|
|
8398
8398
|
staleTime: 3e4,
|
|
@@ -8403,7 +8403,7 @@ function useRooms(q) {
|
|
|
8403
8403
|
function useFreeBusy(attendees, start, end) {
|
|
8404
8404
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8405
8405
|
return reactQuery.useQuery({
|
|
8406
|
-
queryKey:
|
|
8406
|
+
queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.freebusy(attendees, start ?? "", end ?? ""),
|
|
8407
8407
|
queryFn: () => arbi.calendar.freeBusy({ attendees, start, end }),
|
|
8408
8408
|
enabled: attendees.length > 0 && !!start && !!end && arbi.isLoggedIn,
|
|
8409
8409
|
staleTime: 3e4,
|
|
@@ -8414,7 +8414,7 @@ function useFreeBusy(attendees, start, end) {
|
|
|
8414
8414
|
function useCalendarInvitations() {
|
|
8415
8415
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8416
8416
|
return reactQuery.useQuery({
|
|
8417
|
-
queryKey:
|
|
8417
|
+
queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.invitations(),
|
|
8418
8418
|
queryFn: () => arbi.calendar.listInvitations(),
|
|
8419
8419
|
enabled: arbi.isLoggedIn,
|
|
8420
8420
|
staleTime: 3e4,
|
|
@@ -8425,7 +8425,7 @@ function useCalendarInvitations() {
|
|
|
8425
8425
|
function useCalendarEventByUid(uid) {
|
|
8426
8426
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8427
8427
|
return reactQuery.useQuery({
|
|
8428
|
-
queryKey:
|
|
8428
|
+
queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.lookup(uid ?? ""),
|
|
8429
8429
|
queryFn: () => arbi.calendar.lookupByUid(uid),
|
|
8430
8430
|
enabled: !!uid && arbi.isLoggedIn,
|
|
8431
8431
|
retry: false
|
|
@@ -8436,7 +8436,7 @@ function useSaveCalendarSettings() {
|
|
|
8436
8436
|
const qc = reactQuery.useQueryClient();
|
|
8437
8437
|
return reactQuery.useMutation({
|
|
8438
8438
|
mutationFn: (body) => arbi.calendar.putSettings(body),
|
|
8439
|
-
onSuccess: (data) => qc.setQueryData(
|
|
8439
|
+
onSuccess: (data) => qc.setQueryData(chunkH4FGDXYB_cjs.calendarQueryKeys.settings(), data)
|
|
8440
8440
|
});
|
|
8441
8441
|
}
|
|
8442
8442
|
function useCreateCalendar() {
|
|
@@ -8524,7 +8524,7 @@ function useShareCalendar() {
|
|
|
8524
8524
|
const qc = reactQuery.useQueryClient();
|
|
8525
8525
|
return reactQuery.useMutation({
|
|
8526
8526
|
mutationFn: ({ calId, grantee, role }) => arbi.calendar.share(calId, grantee, role),
|
|
8527
|
-
onSuccess: (_d, v) => qc.invalidateQueries({ queryKey:
|
|
8527
|
+
onSuccess: (_d, v) => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.shares(v.calId) })
|
|
8528
8528
|
});
|
|
8529
8529
|
}
|
|
8530
8530
|
function useUnshareCalendar() {
|
|
@@ -8532,7 +8532,7 @@ function useUnshareCalendar() {
|
|
|
8532
8532
|
const qc = reactQuery.useQueryClient();
|
|
8533
8533
|
return reactQuery.useMutation({
|
|
8534
8534
|
mutationFn: ({ calId, userId }) => arbi.calendar.unshare(calId, userId),
|
|
8535
|
-
onSuccess: (_d, v) => qc.invalidateQueries({ queryKey:
|
|
8535
|
+
onSuccess: (_d, v) => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.shares(v.calId) })
|
|
8536
8536
|
});
|
|
8537
8537
|
}
|
|
8538
8538
|
function useSubscribeCalendar() {
|
|
@@ -8564,7 +8564,7 @@ function useCreateRoom() {
|
|
|
8564
8564
|
const qc = reactQuery.useQueryClient();
|
|
8565
8565
|
return reactQuery.useMutation({
|
|
8566
8566
|
mutationFn: (body) => arbi.calendar.createRoom(body),
|
|
8567
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
8567
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.allRooms() })
|
|
8568
8568
|
});
|
|
8569
8569
|
}
|
|
8570
8570
|
function useFindTime() {
|
|
@@ -8590,21 +8590,21 @@ function usePublishCalendar() {
|
|
|
8590
8590
|
mutationFn: ({ accountId, calendarId }) => arbi.calendar.publishToAccount(accountId, calendarId),
|
|
8591
8591
|
onSuccess: () => {
|
|
8592
8592
|
void invalidateCalendars(qc);
|
|
8593
|
-
void qc.invalidateQueries({ queryKey:
|
|
8593
|
+
void qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.accounts() });
|
|
8594
8594
|
}
|
|
8595
8595
|
});
|
|
8596
8596
|
}
|
|
8597
8597
|
function invalidateAccounts(qc) {
|
|
8598
8598
|
return Promise.all([
|
|
8599
|
-
qc.invalidateQueries({ queryKey:
|
|
8600
|
-
qc.invalidateQueries({ queryKey:
|
|
8601
|
-
qc.invalidateQueries({ queryKey:
|
|
8599
|
+
qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.accounts() }),
|
|
8600
|
+
qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.calendars() }),
|
|
8601
|
+
qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.events() })
|
|
8602
8602
|
]);
|
|
8603
8603
|
}
|
|
8604
8604
|
function useCalendarAccounts(enabled = true) {
|
|
8605
8605
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8606
8606
|
return reactQuery.useQuery({
|
|
8607
|
-
queryKey:
|
|
8607
|
+
queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.accounts(),
|
|
8608
8608
|
queryFn: () => arbi.calendar.listAccounts(),
|
|
8609
8609
|
enabled: enabled && arbi.isLoggedIn,
|
|
8610
8610
|
staleTime: 3e4,
|
|
@@ -8614,7 +8614,7 @@ function useCalendarAccounts(enabled = true) {
|
|
|
8614
8614
|
function useCalDavProfiles(enabled = true) {
|
|
8615
8615
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8616
8616
|
return reactQuery.useQuery({
|
|
8617
|
-
queryKey:
|
|
8617
|
+
queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.caldavProfiles(),
|
|
8618
8618
|
queryFn: () => arbi.calendar.listCalDavProfiles(),
|
|
8619
8619
|
enabled: enabled && arbi.isLoggedIn,
|
|
8620
8620
|
staleTime: 10 * 6e4,
|
|
@@ -8757,7 +8757,7 @@ function useSyncAccountsOnOpen(enabled = true) {
|
|
|
8757
8757
|
function useBookingPages(enabled = true) {
|
|
8758
8758
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8759
8759
|
return reactQuery.useQuery({
|
|
8760
|
-
queryKey:
|
|
8760
|
+
queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.bookingPages(),
|
|
8761
8761
|
queryFn: () => arbi.calendar.listBookingPages(),
|
|
8762
8762
|
enabled: enabled && arbi.isLoggedIn,
|
|
8763
8763
|
staleTime: 3e4,
|
|
@@ -8769,7 +8769,7 @@ function useSaveBookingPage() {
|
|
|
8769
8769
|
const qc = reactQuery.useQueryClient();
|
|
8770
8770
|
return reactQuery.useMutation({
|
|
8771
8771
|
mutationFn: (body) => arbi.calendar.putBookingPage(body),
|
|
8772
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
8772
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.bookingPages() })
|
|
8773
8773
|
});
|
|
8774
8774
|
}
|
|
8775
8775
|
function useDeleteBookingPage() {
|
|
@@ -8777,11 +8777,11 @@ function useDeleteBookingPage() {
|
|
|
8777
8777
|
const qc = reactQuery.useQueryClient();
|
|
8778
8778
|
return reactQuery.useMutation({
|
|
8779
8779
|
mutationFn: (slug) => arbi.calendar.deleteBookingPage(slug),
|
|
8780
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
8780
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.bookingPages() })
|
|
8781
8781
|
});
|
|
8782
8782
|
}
|
|
8783
8783
|
function useWorkspaceDocs(workspaceId) {
|
|
8784
|
-
const { data: docs = [], isLoading, isError } =
|
|
8784
|
+
const { data: docs = [], isLoading, isError } = chunkKFFH2JJM_cjs.useDocuments(workspaceId);
|
|
8785
8785
|
const docIds = React.useMemo(
|
|
8786
8786
|
() => docs.map((d) => d.external_id).filter((id) => !!id),
|
|
8787
8787
|
[docs]
|
|
@@ -8789,7 +8789,7 @@ function useWorkspaceDocs(workspaceId) {
|
|
|
8789
8789
|
return { wsId: workspaceId, docs, docIds, isLoading, isError, ready: docIds.length > 0 };
|
|
8790
8790
|
}
|
|
8791
8791
|
function useAiTask() {
|
|
8792
|
-
const mutation =
|
|
8792
|
+
const mutation = chunkL3NHETSD_cjs.useAssistantQuery();
|
|
8793
8793
|
const [status, setStatus] = React.useState("idle");
|
|
8794
8794
|
const [text, setText] = React.useState("");
|
|
8795
8795
|
const [stepCount, setStepCount] = React.useState(0);
|
|
@@ -10227,7 +10227,7 @@ function ActivityFeed({
|
|
|
10227
10227
|
enabled,
|
|
10228
10228
|
"data-testid": testId = "activity-feed"
|
|
10229
10229
|
}) {
|
|
10230
|
-
const { data, isLoading, isError } =
|
|
10230
|
+
const { data, isLoading, isError } = chunkL3NHETSD_cjs.useActivity({ limit, enabled });
|
|
10231
10231
|
if (isLoading) {
|
|
10232
10232
|
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: [
|
|
10233
10233
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-4 w-4 shrink-0 animate-pulse rounded-full bg-muted" }),
|
|
@@ -10279,7 +10279,7 @@ var workTypes = [
|
|
|
10279
10279
|
function useWorkNotifications(options) {
|
|
10280
10280
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
10281
10281
|
const queries = reactQuery.useQueryClient();
|
|
10282
|
-
const queryKey =
|
|
10282
|
+
const queryKey = chunkH4FGDXYB_cjs.arbiQueryKeys.typedNotifications("work", options.apiUrl, options.userId);
|
|
10283
10283
|
const query = reactQuery.useQuery({
|
|
10284
10284
|
queryKey,
|
|
10285
10285
|
queryFn: async () => (await Promise.all(workTypes.map((type) => arbi.notifications.list({ type })))).flat(),
|
|
@@ -10300,16 +10300,16 @@ function useNotifications(options = {}) {
|
|
|
10300
10300
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
10301
10301
|
const queries = reactQuery.useQueryClient();
|
|
10302
10302
|
const limit = options.limit ?? 100;
|
|
10303
|
-
const ws = React.useContext(
|
|
10303
|
+
const ws = React.useContext(chunkZLHS3UKP_cjs.ArbiWsContext);
|
|
10304
10304
|
React.useEffect(
|
|
10305
10305
|
() => ws?.subscribe((message) => {
|
|
10306
10306
|
if ("sender" in message && "recipient" in message)
|
|
10307
|
-
void queries.invalidateQueries({ queryKey:
|
|
10307
|
+
void queries.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.allNotifications() });
|
|
10308
10308
|
}),
|
|
10309
10309
|
[ws, queries]
|
|
10310
10310
|
);
|
|
10311
10311
|
return reactQuery.useQuery({
|
|
10312
|
-
queryKey:
|
|
10312
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.notifications(limit),
|
|
10313
10313
|
queryFn: () => arbi.notifications.list({ limit }),
|
|
10314
10314
|
enabled: (options.enabled ?? true) && arbi.isLoggedIn
|
|
10315
10315
|
});
|
|
@@ -10319,7 +10319,7 @@ function useDeleteNotifications() {
|
|
|
10319
10319
|
const queries = reactQuery.useQueryClient();
|
|
10320
10320
|
return reactQuery.useMutation({
|
|
10321
10321
|
mutationFn: (ids) => arbi.notifications.delete(ids),
|
|
10322
|
-
onSuccess: () => queries.invalidateQueries({ queryKey:
|
|
10322
|
+
onSuccess: () => queries.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.allNotifications() })
|
|
10323
10323
|
});
|
|
10324
10324
|
}
|
|
10325
10325
|
function useMarkNotificationsRead() {
|
|
@@ -10327,7 +10327,7 @@ function useMarkNotificationsRead() {
|
|
|
10327
10327
|
const queries = reactQuery.useQueryClient();
|
|
10328
10328
|
return reactQuery.useMutation({
|
|
10329
10329
|
mutationFn: (ids) => arbi.notifications.markRead(ids),
|
|
10330
|
-
onSuccess: () => queries.invalidateQueries({ queryKey:
|
|
10330
|
+
onSuccess: () => queries.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.allNotifications() })
|
|
10331
10331
|
});
|
|
10332
10332
|
}
|
|
10333
10333
|
|
|
@@ -11061,7 +11061,7 @@ function DmComposer({
|
|
|
11061
11061
|
function useChats(options = {}) {
|
|
11062
11062
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
11063
11063
|
return reactQuery.useQuery({
|
|
11064
|
-
queryKey:
|
|
11064
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.chatList(),
|
|
11065
11065
|
queryFn: () => arbi.chats.list(),
|
|
11066
11066
|
enabled: (options.enabled ?? true) && arbi.isLoggedIn
|
|
11067
11067
|
});
|
|
@@ -11069,20 +11069,20 @@ function useChats(options = {}) {
|
|
|
11069
11069
|
function useChatLiveUpdates() {
|
|
11070
11070
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
11071
11071
|
const queryClient = reactQuery.useQueryClient();
|
|
11072
|
-
const ws = React.useContext(
|
|
11072
|
+
const ws = React.useContext(chunkZLHS3UKP_cjs.ArbiWsContext);
|
|
11073
11073
|
const arbiRef = React.useRef(arbi);
|
|
11074
11074
|
arbiRef.current = arbi;
|
|
11075
11075
|
React.useEffect(
|
|
11076
11076
|
() => ws?.subscribe((message) => {
|
|
11077
11077
|
if (message.type.startsWith("chat.") || message.type === "agent_dm_status")
|
|
11078
|
-
void
|
|
11078
|
+
void chunkZLHS3UKP_cjs.applyChatEvent(arbiRef.current, queryClient, message);
|
|
11079
11079
|
}),
|
|
11080
11080
|
[ws, queryClient]
|
|
11081
11081
|
);
|
|
11082
11082
|
}
|
|
11083
11083
|
function useAgentDmStatus(agentExtId) {
|
|
11084
11084
|
const { data } = reactQuery.useQuery({
|
|
11085
|
-
queryKey:
|
|
11085
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.agentDmStatus(agentExtId ?? ""),
|
|
11086
11086
|
// Written by the events only: nothing to fetch.
|
|
11087
11087
|
queryFn: () => null,
|
|
11088
11088
|
enabled: false,
|
|
@@ -11097,7 +11097,7 @@ function useChatUnreadTotal() {
|
|
|
11097
11097
|
function useUnreadByPeer() {
|
|
11098
11098
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
11099
11099
|
const { data = [] } = useChats();
|
|
11100
|
-
const me =
|
|
11100
|
+
const me = chunkZLHS3UKP_cjs.myChatId(arbi);
|
|
11101
11101
|
return React.useMemo(() => {
|
|
11102
11102
|
const out = /* @__PURE__ */ new Map();
|
|
11103
11103
|
for (const c of data) {
|
|
@@ -11141,14 +11141,14 @@ function useChatThread(chat) {
|
|
|
11141
11141
|
const chatRef = React.useRef(chat);
|
|
11142
11142
|
chatRef.current = chat;
|
|
11143
11143
|
const query = reactQuery.useQuery({
|
|
11144
|
-
queryKey:
|
|
11144
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.chatThread(chatExtId),
|
|
11145
11145
|
queryFn: () => arbi.chats.page(chatRef.current),
|
|
11146
11146
|
enabled: !!chat && arbi.isLoggedIn,
|
|
11147
11147
|
staleTime: Infinity
|
|
11148
11148
|
});
|
|
11149
11149
|
const [loadingOlder, setLoadingOlder] = React.useState(false);
|
|
11150
11150
|
const loadOlder = React.useCallback(async () => {
|
|
11151
|
-
const key =
|
|
11151
|
+
const key = chunkH4FGDXYB_cjs.arbiQueryKeys.chatThread(chatExtId);
|
|
11152
11152
|
const current = queryClient.getQueryData(key);
|
|
11153
11153
|
const oldest = current?.messages.find((m) => !m.optimistic);
|
|
11154
11154
|
if (!chatRef.current || !current?.hasMore || !oldest) return;
|
|
@@ -11184,15 +11184,15 @@ function useChatPost() {
|
|
|
11184
11184
|
const queryClient = reactQuery.useQueryClient();
|
|
11185
11185
|
return React.useCallback(
|
|
11186
11186
|
async (target, post) => {
|
|
11187
|
-
const me =
|
|
11187
|
+
const me = chunkZLHS3UKP_cjs.myChatId(arbi);
|
|
11188
11188
|
if (!me) throw new Error("No active session");
|
|
11189
11189
|
let chat = target.chat;
|
|
11190
11190
|
if (!chat) {
|
|
11191
11191
|
if (!target.peerExtId) throw new Error("Could not resolve the conversation");
|
|
11192
11192
|
chat = await arbi.chats.openDirect(target.peerExtId);
|
|
11193
|
-
|
|
11193
|
+
chunkZLHS3UKP_cjs.upsertChat(queryClient, chat);
|
|
11194
11194
|
queryClient.setQueryData(
|
|
11195
|
-
|
|
11195
|
+
chunkH4FGDXYB_cjs.arbiQueryKeys.chatThread(chat.external_id),
|
|
11196
11196
|
(old) => old ?? { messages: [], hasMore: false }
|
|
11197
11197
|
);
|
|
11198
11198
|
}
|
|
@@ -11213,7 +11213,7 @@ function useChatPost() {
|
|
|
11213
11213
|
updated_at: now,
|
|
11214
11214
|
optimistic: true
|
|
11215
11215
|
};
|
|
11216
|
-
|
|
11216
|
+
chunkZLHS3UKP_cjs.appendToThread(queryClient, chat.external_id, optimistic);
|
|
11217
11217
|
try {
|
|
11218
11218
|
let attachments = [];
|
|
11219
11219
|
if (files.length) {
|
|
@@ -11233,16 +11233,16 @@ function useChatPost() {
|
|
|
11233
11233
|
...post.workspaceExtId ? { workspaceExtId: post.workspaceExtId } : {},
|
|
11234
11234
|
contextOnly: !!post.contextOnly
|
|
11235
11235
|
});
|
|
11236
|
-
|
|
11237
|
-
|
|
11236
|
+
chunkZLHS3UKP_cjs.appendToThread(queryClient, chat.external_id, message, optimisticId);
|
|
11237
|
+
chunkZLHS3UKP_cjs.upsertChat(queryClient, {
|
|
11238
11238
|
...chat,
|
|
11239
11239
|
last_message: message,
|
|
11240
11240
|
last_message_at: message.created_at
|
|
11241
11241
|
});
|
|
11242
11242
|
return { chat, message };
|
|
11243
11243
|
} catch (err) {
|
|
11244
|
-
|
|
11245
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
11244
|
+
chunkZLHS3UKP_cjs.dropFromThread(queryClient, chat.external_id, optimisticId);
|
|
11245
|
+
void queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.chatList() });
|
|
11246
11246
|
throw err;
|
|
11247
11247
|
}
|
|
11248
11248
|
},
|
|
@@ -11253,7 +11253,7 @@ function useDeleteChatMessage() {
|
|
|
11253
11253
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
11254
11254
|
const queryClient = reactQuery.useQueryClient();
|
|
11255
11255
|
return React.useCallback(
|
|
11256
|
-
(chatExtId, messageExtId) =>
|
|
11256
|
+
(chatExtId, messageExtId) => chunkZLHS3UKP_cjs.deleteChatMessage(arbi, queryClient, chatExtId, messageExtId),
|
|
11257
11257
|
[arbi, queryClient]
|
|
11258
11258
|
);
|
|
11259
11259
|
}
|
|
@@ -11262,7 +11262,7 @@ function useMarkChatRead() {
|
|
|
11262
11262
|
const queryClient = reactQuery.useQueryClient();
|
|
11263
11263
|
return React.useCallback(
|
|
11264
11264
|
(chat, messageExtId) => {
|
|
11265
|
-
|
|
11265
|
+
chunkZLHS3UKP_cjs.upsertChat(queryClient, { ...chat, unread_count: 0 });
|
|
11266
11266
|
return arbi.chats.markRead(chat.external_id, messageExtId).then(
|
|
11267
11267
|
() => void 0,
|
|
11268
11268
|
() => void 0
|
|
@@ -11276,7 +11276,7 @@ function useCreateGroupChat() {
|
|
|
11276
11276
|
const queryClient = reactQuery.useQueryClient();
|
|
11277
11277
|
return reactQuery.useMutation({
|
|
11278
11278
|
mutationFn: (params) => arbi.chats.createGroup(params),
|
|
11279
|
-
onSuccess: (chat) =>
|
|
11279
|
+
onSuccess: (chat) => chunkZLHS3UKP_cjs.upsertChat(queryClient, chat)
|
|
11280
11280
|
});
|
|
11281
11281
|
}
|
|
11282
11282
|
function useRenameChat() {
|
|
@@ -11284,7 +11284,7 @@ function useRenameChat() {
|
|
|
11284
11284
|
const queryClient = reactQuery.useQueryClient();
|
|
11285
11285
|
return reactQuery.useMutation({
|
|
11286
11286
|
mutationFn: (vars) => arbi.chats.rename(vars.chat, vars.title),
|
|
11287
|
-
onSuccess: (chat) =>
|
|
11287
|
+
onSuccess: (chat) => chunkZLHS3UKP_cjs.upsertChat(queryClient, chat)
|
|
11288
11288
|
});
|
|
11289
11289
|
}
|
|
11290
11290
|
function useAddChatMembers() {
|
|
@@ -11292,7 +11292,7 @@ function useAddChatMembers() {
|
|
|
11292
11292
|
const queryClient = reactQuery.useQueryClient();
|
|
11293
11293
|
return reactQuery.useMutation({
|
|
11294
11294
|
mutationFn: (vars) => arbi.chats.addMembers(vars.chat, vars.members, { callKey: vars.callKey }),
|
|
11295
|
-
onSuccess: (chat) =>
|
|
11295
|
+
onSuccess: (chat) => chunkZLHS3UKP_cjs.upsertChat(queryClient, chat)
|
|
11296
11296
|
});
|
|
11297
11297
|
}
|
|
11298
11298
|
function useRemoveChatMember() {
|
|
@@ -11301,8 +11301,8 @@ function useRemoveChatMember() {
|
|
|
11301
11301
|
return reactQuery.useMutation({
|
|
11302
11302
|
mutationFn: (vars) => arbi.chats.removeMember(vars.chat, vars.userExtId),
|
|
11303
11303
|
onSuccess: (_data, vars) => {
|
|
11304
|
-
if (vars.userExtId ===
|
|
11305
|
-
else return queryClient.invalidateQueries({ queryKey:
|
|
11304
|
+
if (vars.userExtId === chunkZLHS3UKP_cjs.myChatId(arbi)) chunkZLHS3UKP_cjs.removeChat(queryClient, vars.chat.external_id);
|
|
11305
|
+
else return queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.chatList() });
|
|
11306
11306
|
}
|
|
11307
11307
|
});
|
|
11308
11308
|
}
|
|
@@ -11745,1131 +11745,1131 @@ function CommandPaletteProvider({
|
|
|
11745
11745
|
|
|
11746
11746
|
Object.defineProperty(exports, "AUDIENCE_CHOICES", {
|
|
11747
11747
|
enumerable: true,
|
|
11748
|
-
get: function () { return
|
|
11748
|
+
get: function () { return chunkZLHS3UKP_cjs.AUDIENCE_CHOICES; }
|
|
11749
11749
|
});
|
|
11750
11750
|
Object.defineProperty(exports, "CALL_CAPTION_TOPIC", {
|
|
11751
11751
|
enumerable: true,
|
|
11752
|
-
get: function () { return
|
|
11752
|
+
get: function () { return chunkZLHS3UKP_cjs.CALL_CAPTION_TOPIC; }
|
|
11753
11753
|
});
|
|
11754
11754
|
Object.defineProperty(exports, "CALL_CHAT_MAX_CHARS", {
|
|
11755
11755
|
enumerable: true,
|
|
11756
|
-
get: function () { return
|
|
11756
|
+
get: function () { return chunkZLHS3UKP_cjs.CALL_CHAT_MAX_CHARS; }
|
|
11757
11757
|
});
|
|
11758
11758
|
Object.defineProperty(exports, "CALL_CHAT_TOPIC", {
|
|
11759
11759
|
enumerable: true,
|
|
11760
|
-
get: function () { return
|
|
11760
|
+
get: function () { return chunkZLHS3UKP_cjs.CALL_CHAT_TOPIC; }
|
|
11761
11761
|
});
|
|
11762
11762
|
Object.defineProperty(exports, "CALL_MODERATION_TOPIC", {
|
|
11763
11763
|
enumerable: true,
|
|
11764
|
-
get: function () { return
|
|
11764
|
+
get: function () { return chunkZLHS3UKP_cjs.CALL_MODERATION_TOPIC; }
|
|
11765
11765
|
});
|
|
11766
11766
|
Object.defineProperty(exports, "CALL_RECORDING_TOPIC", {
|
|
11767
11767
|
enumerable: true,
|
|
11768
|
-
get: function () { return
|
|
11768
|
+
get: function () { return chunkZLHS3UKP_cjs.CALL_RECORDING_TOPIC; }
|
|
11769
11769
|
});
|
|
11770
11770
|
Object.defineProperty(exports, "CALL_TRANSCRIPTION_TOPIC", {
|
|
11771
11771
|
enumerable: true,
|
|
11772
|
-
get: function () { return
|
|
11772
|
+
get: function () { return chunkZLHS3UKP_cjs.CALL_TRANSCRIPTION_TOPIC; }
|
|
11773
11773
|
});
|
|
11774
11774
|
Object.defineProperty(exports, "CALL_WEBINAR_TOPIC", {
|
|
11775
11775
|
enumerable: true,
|
|
11776
|
-
get: function () { return
|
|
11776
|
+
get: function () { return chunkZLHS3UKP_cjs.CALL_WEBINAR_TOPIC; }
|
|
11777
11777
|
});
|
|
11778
11778
|
Object.defineProperty(exports, "CAPTION_MAX_CHARS", {
|
|
11779
11779
|
enumerable: true,
|
|
11780
|
-
get: function () { return
|
|
11780
|
+
get: function () { return chunkZLHS3UKP_cjs.CAPTION_MAX_CHARS; }
|
|
11781
11781
|
});
|
|
11782
11782
|
Object.defineProperty(exports, "COMPOSITE_AUDIO_BITS_PER_SECOND", {
|
|
11783
11783
|
enumerable: true,
|
|
11784
|
-
get: function () { return
|
|
11784
|
+
get: function () { return chunkZLHS3UKP_cjs.COMPOSITE_AUDIO_BITS_PER_SECOND; }
|
|
11785
11785
|
});
|
|
11786
11786
|
Object.defineProperty(exports, "COMPOSITE_VIDEO_BITS_PER_SECOND", {
|
|
11787
11787
|
enumerable: true,
|
|
11788
|
-
get: function () { return
|
|
11788
|
+
get: function () { return chunkZLHS3UKP_cjs.COMPOSITE_VIDEO_BITS_PER_SECOND; }
|
|
11789
11789
|
});
|
|
11790
11790
|
Object.defineProperty(exports, "DEFAULT_JOIN_CHOICES", {
|
|
11791
11791
|
enumerable: true,
|
|
11792
|
-
get: function () { return
|
|
11792
|
+
get: function () { return chunkZLHS3UKP_cjs.DEFAULT_JOIN_CHOICES; }
|
|
11793
11793
|
});
|
|
11794
11794
|
Object.defineProperty(exports, "EMPTY_CALL_SESSION", {
|
|
11795
11795
|
enumerable: true,
|
|
11796
|
-
get: function () { return
|
|
11796
|
+
get: function () { return chunkZLHS3UKP_cjs.EMPTY_CALL_SESSION; }
|
|
11797
11797
|
});
|
|
11798
11798
|
Object.defineProperty(exports, "EXPORT_SAMPLE_RATE", {
|
|
11799
11799
|
enumerable: true,
|
|
11800
|
-
get: function () { return
|
|
11800
|
+
get: function () { return chunkZLHS3UKP_cjs.EXPORT_SAMPLE_RATE; }
|
|
11801
11801
|
});
|
|
11802
11802
|
Object.defineProperty(exports, "HISTORY_LIMIT", {
|
|
11803
11803
|
enumerable: true,
|
|
11804
|
-
get: function () { return
|
|
11804
|
+
get: function () { return chunkZLHS3UKP_cjs.HISTORY_LIMIT; }
|
|
11805
11805
|
});
|
|
11806
11806
|
Object.defineProperty(exports, "LIVE_SEGMENTER", {
|
|
11807
11807
|
enumerable: true,
|
|
11808
|
-
get: function () { return
|
|
11808
|
+
get: function () { return chunkZLHS3UKP_cjs.LIVE_SEGMENTER; }
|
|
11809
11809
|
});
|
|
11810
11810
|
Object.defineProperty(exports, "MAX_AVATAR_FILE_BYTES", {
|
|
11811
11811
|
enumerable: true,
|
|
11812
|
-
get: function () { return
|
|
11812
|
+
get: function () { return chunkZLHS3UKP_cjs.MAX_AVATAR_FILE_BYTES; }
|
|
11813
11813
|
});
|
|
11814
11814
|
Object.defineProperty(exports, "MUTED_DEDUPE_MS", {
|
|
11815
11815
|
enumerable: true,
|
|
11816
|
-
get: function () { return
|
|
11816
|
+
get: function () { return chunkZLHS3UKP_cjs.MUTED_DEDUPE_MS; }
|
|
11817
11817
|
});
|
|
11818
11818
|
Object.defineProperty(exports, "PLAYBACK_LOOKAHEAD_MS", {
|
|
11819
11819
|
enumerable: true,
|
|
11820
|
-
get: function () { return
|
|
11820
|
+
get: function () { return chunkZLHS3UKP_cjs.PLAYBACK_LOOKAHEAD_MS; }
|
|
11821
11821
|
});
|
|
11822
11822
|
Object.defineProperty(exports, "READ_ONLY_MEETING_TEXT", {
|
|
11823
11823
|
enumerable: true,
|
|
11824
|
-
get: function () { return
|
|
11824
|
+
get: function () { return chunkZLHS3UKP_cjs.READ_ONLY_MEETING_TEXT; }
|
|
11825
11825
|
});
|
|
11826
11826
|
Object.defineProperty(exports, "RECORDING_CHUNK_MS", {
|
|
11827
11827
|
enumerable: true,
|
|
11828
|
-
get: function () { return
|
|
11828
|
+
get: function () { return chunkZLHS3UKP_cjs.RECORDING_CHUNK_MS; }
|
|
11829
11829
|
});
|
|
11830
11830
|
Object.defineProperty(exports, "RECORDING_SEGMENTER", {
|
|
11831
11831
|
enumerable: true,
|
|
11832
|
-
get: function () { return
|
|
11832
|
+
get: function () { return chunkZLHS3UKP_cjs.RECORDING_SEGMENTER; }
|
|
11833
11833
|
});
|
|
11834
11834
|
Object.defineProperty(exports, "SEGMENT_FRAME_MS", {
|
|
11835
11835
|
enumerable: true,
|
|
11836
|
-
get: function () { return
|
|
11836
|
+
get: function () { return chunkZLHS3UKP_cjs.SEGMENT_FRAME_MS; }
|
|
11837
11837
|
});
|
|
11838
11838
|
Object.defineProperty(exports, "SEGMENT_ID_PATTERN", {
|
|
11839
11839
|
enumerable: true,
|
|
11840
|
-
get: function () { return
|
|
11840
|
+
get: function () { return chunkZLHS3UKP_cjs.SEGMENT_ID_PATTERN; }
|
|
11841
11841
|
});
|
|
11842
11842
|
Object.defineProperty(exports, "SEGMENT_PRE_ROLL_MS", {
|
|
11843
11843
|
enumerable: true,
|
|
11844
|
-
get: function () { return
|
|
11844
|
+
get: function () { return chunkZLHS3UKP_cjs.SEGMENT_PRE_ROLL_MS; }
|
|
11845
11845
|
});
|
|
11846
11846
|
Object.defineProperty(exports, "SHORT_PIECE_MERGE_GAP_MS", {
|
|
11847
11847
|
enumerable: true,
|
|
11848
|
-
get: function () { return
|
|
11848
|
+
get: function () { return chunkZLHS3UKP_cjs.SHORT_PIECE_MERGE_GAP_MS; }
|
|
11849
11849
|
});
|
|
11850
11850
|
Object.defineProperty(exports, "SPEAKER_AUDIO_BITS_PER_SECOND", {
|
|
11851
11851
|
enumerable: true,
|
|
11852
|
-
get: function () { return
|
|
11852
|
+
get: function () { return chunkZLHS3UKP_cjs.SPEAKER_AUDIO_BITS_PER_SECOND; }
|
|
11853
11853
|
});
|
|
11854
11854
|
Object.defineProperty(exports, "TrackUploader", {
|
|
11855
11855
|
enumerable: true,
|
|
11856
|
-
get: function () { return
|
|
11856
|
+
get: function () { return chunkZLHS3UKP_cjs.TrackUploader; }
|
|
11857
11857
|
});
|
|
11858
11858
|
Object.defineProperty(exports, "UPLOAD_ATTEMPTS", {
|
|
11859
11859
|
enumerable: true,
|
|
11860
|
-
get: function () { return
|
|
11860
|
+
get: function () { return chunkZLHS3UKP_cjs.UPLOAD_ATTEMPTS; }
|
|
11861
11861
|
});
|
|
11862
11862
|
Object.defineProperty(exports, "UPLOAD_BACKOFF_MS", {
|
|
11863
11863
|
enumerable: true,
|
|
11864
|
-
get: function () { return
|
|
11864
|
+
get: function () { return chunkZLHS3UKP_cjs.UPLOAD_BACKOFF_MS; }
|
|
11865
11865
|
});
|
|
11866
11866
|
Object.defineProperty(exports, "acceptRing", {
|
|
11867
11867
|
enumerable: true,
|
|
11868
|
-
get: function () { return
|
|
11868
|
+
get: function () { return chunkZLHS3UKP_cjs.acceptRing; }
|
|
11869
11869
|
});
|
|
11870
11870
|
Object.defineProperty(exports, "addConversationToList", {
|
|
11871
11871
|
enumerable: true,
|
|
11872
|
-
get: function () { return
|
|
11872
|
+
get: function () { return chunkZLHS3UKP_cjs.addConversationToList; }
|
|
11873
11873
|
});
|
|
11874
11874
|
Object.defineProperty(exports, "appendToThread", {
|
|
11875
11875
|
enumerable: true,
|
|
11876
|
-
get: function () { return
|
|
11876
|
+
get: function () { return chunkZLHS3UKP_cjs.appendToThread; }
|
|
11877
11877
|
});
|
|
11878
11878
|
Object.defineProperty(exports, "applyAgentDmStatus", {
|
|
11879
11879
|
enumerable: true,
|
|
11880
|
-
get: function () { return
|
|
11880
|
+
get: function () { return chunkZLHS3UKP_cjs.applyAgentDmStatus; }
|
|
11881
11881
|
});
|
|
11882
11882
|
Object.defineProperty(exports, "applyCallEvent", {
|
|
11883
11883
|
enumerable: true,
|
|
11884
|
-
get: function () { return
|
|
11884
|
+
get: function () { return chunkZLHS3UKP_cjs.applyCallEvent; }
|
|
11885
11885
|
});
|
|
11886
11886
|
Object.defineProperty(exports, "applyChatEvent", {
|
|
11887
11887
|
enumerable: true,
|
|
11888
|
-
get: function () { return
|
|
11888
|
+
get: function () { return chunkZLHS3UKP_cjs.applyChatEvent; }
|
|
11889
11889
|
});
|
|
11890
11890
|
Object.defineProperty(exports, "applyChatMessage", {
|
|
11891
11891
|
enumerable: true,
|
|
11892
|
-
get: function () { return
|
|
11892
|
+
get: function () { return chunkZLHS3UKP_cjs.applyChatMessage; }
|
|
11893
11893
|
});
|
|
11894
11894
|
Object.defineProperty(exports, "applyChatRead", {
|
|
11895
11895
|
enumerable: true,
|
|
11896
|
-
get: function () { return
|
|
11896
|
+
get: function () { return chunkZLHS3UKP_cjs.applyChatRead; }
|
|
11897
11897
|
});
|
|
11898
11898
|
Object.defineProperty(exports, "applyChatUpdated", {
|
|
11899
11899
|
enumerable: true,
|
|
11900
|
-
get: function () { return
|
|
11900
|
+
get: function () { return chunkZLHS3UKP_cjs.applyChatUpdated; }
|
|
11901
11901
|
});
|
|
11902
11902
|
Object.defineProperty(exports, "arbiAccountClient", {
|
|
11903
11903
|
enumerable: true,
|
|
11904
|
-
get: function () { return
|
|
11904
|
+
get: function () { return chunkZLHS3UKP_cjs.arbiAccountClient; }
|
|
11905
11905
|
});
|
|
11906
11906
|
Object.defineProperty(exports, "buildMeetingChatBody", {
|
|
11907
11907
|
enumerable: true,
|
|
11908
|
-
get: function () { return
|
|
11908
|
+
get: function () { return chunkZLHS3UKP_cjs.buildMeetingChatBody; }
|
|
11909
11909
|
});
|
|
11910
11910
|
Object.defineProperty(exports, "cachedChat", {
|
|
11911
11911
|
enumerable: true,
|
|
11912
|
-
get: function () { return
|
|
11912
|
+
get: function () { return chunkZLHS3UKP_cjs.cachedChat; }
|
|
11913
11913
|
});
|
|
11914
11914
|
Object.defineProperty(exports, "cachedChats", {
|
|
11915
11915
|
enumerable: true,
|
|
11916
|
-
get: function () { return
|
|
11916
|
+
get: function () { return chunkZLHS3UKP_cjs.cachedChats; }
|
|
11917
11917
|
});
|
|
11918
11918
|
Object.defineProperty(exports, "callLink", {
|
|
11919
11919
|
enumerable: true,
|
|
11920
|
-
get: function () { return
|
|
11920
|
+
get: function () { return chunkZLHS3UKP_cjs.callLink; }
|
|
11921
11921
|
});
|
|
11922
11922
|
Object.defineProperty(exports, "callMemberKeys", {
|
|
11923
11923
|
enumerable: true,
|
|
11924
|
-
get: function () { return
|
|
11924
|
+
get: function () { return chunkZLHS3UKP_cjs.callMemberKeys; }
|
|
11925
11925
|
});
|
|
11926
11926
|
Object.defineProperty(exports, "callSession", {
|
|
11927
11927
|
enumerable: true,
|
|
11928
|
-
get: function () { return
|
|
11928
|
+
get: function () { return chunkZLHS3UKP_cjs.callSession; }
|
|
11929
11929
|
});
|
|
11930
11930
|
Object.defineProperty(exports, "chatByExtId", {
|
|
11931
11931
|
enumerable: true,
|
|
11932
|
-
get: function () { return
|
|
11932
|
+
get: function () { return chunkZLHS3UKP_cjs.chatByExtId; }
|
|
11933
11933
|
});
|
|
11934
11934
|
Object.defineProperty(exports, "chatHasLiveCall", {
|
|
11935
11935
|
enumerable: true,
|
|
11936
|
-
get: function () { return
|
|
11936
|
+
get: function () { return chunkZLHS3UKP_cjs.chatHasLiveCall; }
|
|
11937
11937
|
});
|
|
11938
11938
|
Object.defineProperty(exports, "chatLiveCallId", {
|
|
11939
11939
|
enumerable: true,
|
|
11940
|
-
get: function () { return
|
|
11940
|
+
get: function () { return chunkZLHS3UKP_cjs.chatLiveCallId; }
|
|
11941
11941
|
});
|
|
11942
11942
|
Object.defineProperty(exports, "chatTranscriptRef", {
|
|
11943
11943
|
enumerable: true,
|
|
11944
|
-
get: function () { return
|
|
11944
|
+
get: function () { return chunkZLHS3UKP_cjs.chatTranscriptRef; }
|
|
11945
11945
|
});
|
|
11946
11946
|
Object.defineProperty(exports, "clearMeetingChatCache", {
|
|
11947
11947
|
enumerable: true,
|
|
11948
|
-
get: function () { return
|
|
11948
|
+
get: function () { return chunkZLHS3UKP_cjs.clearMeetingChatCache; }
|
|
11949
11949
|
});
|
|
11950
11950
|
Object.defineProperty(exports, "clearTrackUploaders", {
|
|
11951
11951
|
enumerable: true,
|
|
11952
|
-
get: function () { return
|
|
11952
|
+
get: function () { return chunkZLHS3UKP_cjs.clearTrackUploaders; }
|
|
11953
11953
|
});
|
|
11954
11954
|
Object.defineProperty(exports, "clockTime", {
|
|
11955
11955
|
enumerable: true,
|
|
11956
|
-
get: function () { return
|
|
11956
|
+
get: function () { return chunkZLHS3UKP_cjs.clockTime; }
|
|
11957
11957
|
});
|
|
11958
11958
|
Object.defineProperty(exports, "compositeFiles", {
|
|
11959
11959
|
enumerable: true,
|
|
11960
|
-
get: function () { return
|
|
11960
|
+
get: function () { return chunkZLHS3UKP_cjs.compositeFiles; }
|
|
11961
11961
|
});
|
|
11962
11962
|
Object.defineProperty(exports, "compositeTrack", {
|
|
11963
11963
|
enumerable: true,
|
|
11964
|
-
get: function () { return
|
|
11964
|
+
get: function () { return chunkZLHS3UKP_cjs.compositeTrack; }
|
|
11965
11965
|
});
|
|
11966
11966
|
Object.defineProperty(exports, "conversationKeyForCall", {
|
|
11967
11967
|
enumerable: true,
|
|
11968
|
-
get: function () { return
|
|
11968
|
+
get: function () { return chunkZLHS3UKP_cjs.conversationKeyForCall; }
|
|
11969
11969
|
});
|
|
11970
11970
|
Object.defineProperty(exports, "createMutedNotifier", {
|
|
11971
11971
|
enumerable: true,
|
|
11972
|
-
get: function () { return
|
|
11972
|
+
get: function () { return chunkZLHS3UKP_cjs.createMutedNotifier; }
|
|
11973
11973
|
});
|
|
11974
11974
|
Object.defineProperty(exports, "createTrackCutter", {
|
|
11975
11975
|
enumerable: true,
|
|
11976
|
-
get: function () { return
|
|
11976
|
+
get: function () { return chunkZLHS3UKP_cjs.createTrackCutter; }
|
|
11977
11977
|
});
|
|
11978
11978
|
Object.defineProperty(exports, "cutAtPauses", {
|
|
11979
11979
|
enumerable: true,
|
|
11980
|
-
get: function () { return
|
|
11980
|
+
get: function () { return chunkZLHS3UKP_cjs.cutAtPauses; }
|
|
11981
11981
|
});
|
|
11982
11982
|
Object.defineProperty(exports, "declineRing", {
|
|
11983
11983
|
enumerable: true,
|
|
11984
|
-
get: function () { return
|
|
11984
|
+
get: function () { return chunkZLHS3UKP_cjs.declineRing; }
|
|
11985
11985
|
});
|
|
11986
11986
|
Object.defineProperty(exports, "decodeCallChatPacket", {
|
|
11987
11987
|
enumerable: true,
|
|
11988
|
-
get: function () { return
|
|
11988
|
+
get: function () { return chunkZLHS3UKP_cjs.decodeCallChatPacket; }
|
|
11989
11989
|
});
|
|
11990
11990
|
Object.defineProperty(exports, "decodeCaptionPacket", {
|
|
11991
11991
|
enumerable: true,
|
|
11992
|
-
get: function () { return
|
|
11992
|
+
get: function () { return chunkZLHS3UKP_cjs.decodeCaptionPacket; }
|
|
11993
11993
|
});
|
|
11994
11994
|
Object.defineProperty(exports, "decodeMono16k", {
|
|
11995
11995
|
enumerable: true,
|
|
11996
|
-
get: function () { return
|
|
11996
|
+
get: function () { return chunkZLHS3UKP_cjs.decodeMono16k; }
|
|
11997
11997
|
});
|
|
11998
11998
|
Object.defineProperty(exports, "decryptPart", {
|
|
11999
11999
|
enumerable: true,
|
|
12000
|
-
get: function () { return
|
|
12000
|
+
get: function () { return chunkZLHS3UKP_cjs.decryptPart; }
|
|
12001
12001
|
});
|
|
12002
12002
|
Object.defineProperty(exports, "encodeCallChatPacket", {
|
|
12003
12003
|
enumerable: true,
|
|
12004
|
-
get: function () { return
|
|
12004
|
+
get: function () { return chunkZLHS3UKP_cjs.encodeCallChatPacket; }
|
|
12005
12005
|
});
|
|
12006
12006
|
Object.defineProperty(exports, "encodeCaptionPacket", {
|
|
12007
12007
|
enumerable: true,
|
|
12008
|
-
get: function () { return
|
|
12008
|
+
get: function () { return chunkZLHS3UKP_cjs.encodeCaptionPacket; }
|
|
12009
12009
|
});
|
|
12010
12010
|
Object.defineProperty(exports, "encodeWav", {
|
|
12011
12011
|
enumerable: true,
|
|
12012
|
-
get: function () { return
|
|
12012
|
+
get: function () { return chunkZLHS3UKP_cjs.encodeWav; }
|
|
12013
12013
|
});
|
|
12014
12014
|
Object.defineProperty(exports, "encryptPart", {
|
|
12015
12015
|
enumerable: true,
|
|
12016
|
-
get: function () { return
|
|
12016
|
+
get: function () { return chunkZLHS3UKP_cjs.encryptPart; }
|
|
12017
12017
|
});
|
|
12018
12018
|
Object.defineProperty(exports, "ensureMeetingChat", {
|
|
12019
12019
|
enumerable: true,
|
|
12020
|
-
get: function () { return
|
|
12020
|
+
get: function () { return chunkZLHS3UKP_cjs.ensureMeetingChat; }
|
|
12021
12021
|
});
|
|
12022
12022
|
Object.defineProperty(exports, "entitlementRefusal", {
|
|
12023
12023
|
enumerable: true,
|
|
12024
|
-
get: function () { return
|
|
12024
|
+
get: function () { return chunkZLHS3UKP_cjs.entitlementRefusal; }
|
|
12025
12025
|
});
|
|
12026
12026
|
Object.defineProperty(exports, "extensionFor", {
|
|
12027
12027
|
enumerable: true,
|
|
12028
|
-
get: function () { return
|
|
12028
|
+
get: function () { return chunkZLHS3UKP_cjs.extensionFor; }
|
|
12029
12029
|
});
|
|
12030
12030
|
Object.defineProperty(exports, "fetchPart", {
|
|
12031
12031
|
enumerable: true,
|
|
12032
|
-
get: function () { return
|
|
12032
|
+
get: function () { return chunkZLHS3UKP_cjs.fetchPart; }
|
|
12033
12033
|
});
|
|
12034
12034
|
Object.defineProperty(exports, "fileSafe", {
|
|
12035
12035
|
enumerable: true,
|
|
12036
|
-
get: function () { return
|
|
12036
|
+
get: function () { return chunkZLHS3UKP_cjs.fileSafe; }
|
|
12037
12037
|
});
|
|
12038
12038
|
Object.defineProperty(exports, "findConversation", {
|
|
12039
12039
|
enumerable: true,
|
|
12040
|
-
get: function () { return
|
|
12040
|
+
get: function () { return chunkZLHS3UKP_cjs.findConversation; }
|
|
12041
12041
|
});
|
|
12042
12042
|
Object.defineProperty(exports, "floatToWav", {
|
|
12043
12043
|
enumerable: true,
|
|
12044
|
-
get: function () { return
|
|
12044
|
+
get: function () { return chunkZLHS3UKP_cjs.floatToWav; }
|
|
12045
12045
|
});
|
|
12046
12046
|
Object.defineProperty(exports, "formatTranscriptMarkdown", {
|
|
12047
12047
|
enumerable: true,
|
|
12048
|
-
get: function () { return
|
|
12048
|
+
get: function () { return chunkZLHS3UKP_cjs.formatTranscriptMarkdown; }
|
|
12049
12049
|
});
|
|
12050
12050
|
Object.defineProperty(exports, "getOpenChat", {
|
|
12051
12051
|
enumerable: true,
|
|
12052
|
-
get: function () { return
|
|
12052
|
+
get: function () { return chunkZLHS3UKP_cjs.getOpenChat; }
|
|
12053
12053
|
});
|
|
12054
12054
|
Object.defineProperty(exports, "hasRecordingTranscript", {
|
|
12055
12055
|
enumerable: true,
|
|
12056
|
-
get: function () { return
|
|
12056
|
+
get: function () { return chunkZLHS3UKP_cjs.hasRecordingTranscript; }
|
|
12057
12057
|
});
|
|
12058
12058
|
Object.defineProperty(exports, "invalidateCall", {
|
|
12059
12059
|
enumerable: true,
|
|
12060
|
-
get: function () { return
|
|
12060
|
+
get: function () { return chunkZLHS3UKP_cjs.invalidateCall; }
|
|
12061
12061
|
});
|
|
12062
12062
|
Object.defineProperty(exports, "invalidateConversationDetails", {
|
|
12063
12063
|
enumerable: true,
|
|
12064
|
-
get: function () { return
|
|
12064
|
+
get: function () { return chunkZLHS3UKP_cjs.invalidateConversationDetails; }
|
|
12065
12065
|
});
|
|
12066
12066
|
Object.defineProperty(exports, "invalidateConversationLists", {
|
|
12067
12067
|
enumerable: true,
|
|
12068
|
-
get: function () { return
|
|
12068
|
+
get: function () { return chunkZLHS3UKP_cjs.invalidateConversationLists; }
|
|
12069
12069
|
});
|
|
12070
12070
|
Object.defineProperty(exports, "isConversationListKey", {
|
|
12071
12071
|
enumerable: true,
|
|
12072
|
-
get: function () { return
|
|
12072
|
+
get: function () { return chunkZLHS3UKP_cjs.isConversationListKey; }
|
|
12073
12073
|
});
|
|
12074
12074
|
Object.defineProperty(exports, "isConversationShared", {
|
|
12075
12075
|
enumerable: true,
|
|
12076
|
-
get: function () { return
|
|
12076
|
+
get: function () { return chunkZLHS3UKP_cjs.isConversationShared; }
|
|
12077
12077
|
});
|
|
12078
12078
|
Object.defineProperty(exports, "isKnownSoloConversation", {
|
|
12079
12079
|
enumerable: true,
|
|
12080
|
-
get: function () { return
|
|
12080
|
+
get: function () { return chunkZLHS3UKP_cjs.isKnownSoloConversation; }
|
|
12081
12081
|
});
|
|
12082
12082
|
Object.defineProperty(exports, "isRecordingOver", {
|
|
12083
12083
|
enumerable: true,
|
|
12084
|
-
get: function () { return
|
|
12084
|
+
get: function () { return chunkZLHS3UKP_cjs.isRecordingOver; }
|
|
12085
12085
|
});
|
|
12086
12086
|
Object.defineProperty(exports, "isRecordingSegmentId", {
|
|
12087
12087
|
enumerable: true,
|
|
12088
|
-
get: function () { return
|
|
12088
|
+
get: function () { return chunkZLHS3UKP_cjs.isRecordingSegmentId; }
|
|
12089
12089
|
});
|
|
12090
12090
|
Object.defineProperty(exports, "isRetryable", {
|
|
12091
12091
|
enumerable: true,
|
|
12092
|
-
get: function () { return
|
|
12092
|
+
get: function () { return chunkZLHS3UKP_cjs.isRetryable; }
|
|
12093
12093
|
});
|
|
12094
12094
|
Object.defineProperty(exports, "isWorkspaceGuestOf", {
|
|
12095
12095
|
enumerable: true,
|
|
12096
|
-
get: function () { return
|
|
12096
|
+
get: function () { return chunkZLHS3UKP_cjs.isWorkspaceGuestOf; }
|
|
12097
12097
|
});
|
|
12098
12098
|
Object.defineProperty(exports, "joinFromPreJoin", {
|
|
12099
12099
|
enumerable: true,
|
|
12100
|
-
get: function () { return
|
|
12100
|
+
get: function () { return chunkZLHS3UKP_cjs.joinFromPreJoin; }
|
|
12101
12101
|
});
|
|
12102
12102
|
Object.defineProperty(exports, "knownMeetingChat", {
|
|
12103
12103
|
enumerable: true,
|
|
12104
|
-
get: function () { return
|
|
12104
|
+
get: function () { return chunkZLHS3UKP_cjs.knownMeetingChat; }
|
|
12105
12105
|
});
|
|
12106
12106
|
Object.defineProperty(exports, "loadMeetingHistory", {
|
|
12107
12107
|
enumerable: true,
|
|
12108
|
-
get: function () { return
|
|
12108
|
+
get: function () { return chunkZLHS3UKP_cjs.loadMeetingHistory; }
|
|
12109
12109
|
});
|
|
12110
12110
|
Object.defineProperty(exports, "markRejoining", {
|
|
12111
12111
|
enumerable: true,
|
|
12112
|
-
get: function () { return
|
|
12112
|
+
get: function () { return chunkZLHS3UKP_cjs.markRejoining; }
|
|
12113
12113
|
});
|
|
12114
12114
|
Object.defineProperty(exports, "meetingChatRefFrom", {
|
|
12115
12115
|
enumerable: true,
|
|
12116
|
-
get: function () { return
|
|
12116
|
+
get: function () { return chunkZLHS3UKP_cjs.meetingChatRefFrom; }
|
|
12117
12117
|
});
|
|
12118
12118
|
Object.defineProperty(exports, "meetingRefForCall", {
|
|
12119
12119
|
enumerable: true,
|
|
12120
|
-
get: function () { return
|
|
12120
|
+
get: function () { return chunkZLHS3UKP_cjs.meetingRefForCall; }
|
|
12121
12121
|
});
|
|
12122
12122
|
Object.defineProperty(exports, "mergeChatLines", {
|
|
12123
12123
|
enumerable: true,
|
|
12124
|
-
get: function () { return
|
|
12124
|
+
get: function () { return chunkZLHS3UKP_cjs.mergeChatLines; }
|
|
12125
12125
|
});
|
|
12126
12126
|
Object.defineProperty(exports, "mutedNoticeFromEvent", {
|
|
12127
12127
|
enumerable: true,
|
|
12128
|
-
get: function () { return
|
|
12128
|
+
get: function () { return chunkZLHS3UKP_cjs.mutedNoticeFromEvent; }
|
|
12129
12129
|
});
|
|
12130
12130
|
Object.defineProperty(exports, "mutedNoticeFromPacket", {
|
|
12131
12131
|
enumerable: true,
|
|
12132
|
-
get: function () { return
|
|
12132
|
+
get: function () { return chunkZLHS3UKP_cjs.mutedNoticeFromPacket; }
|
|
12133
12133
|
});
|
|
12134
12134
|
Object.defineProperty(exports, "mutedNoticeText", {
|
|
12135
12135
|
enumerable: true,
|
|
12136
|
-
get: function () { return
|
|
12136
|
+
get: function () { return chunkZLHS3UKP_cjs.mutedNoticeText; }
|
|
12137
12137
|
});
|
|
12138
12138
|
Object.defineProperty(exports, "myChatId", {
|
|
12139
12139
|
enumerable: true,
|
|
12140
|
-
get: function () { return
|
|
12140
|
+
get: function () { return chunkZLHS3UKP_cjs.myChatId; }
|
|
12141
12141
|
});
|
|
12142
12142
|
Object.defineProperty(exports, "newPacketId", {
|
|
12143
12143
|
enumerable: true,
|
|
12144
|
-
get: function () { return
|
|
12144
|
+
get: function () { return chunkZLHS3UKP_cjs.newPacketId; }
|
|
12145
12145
|
});
|
|
12146
12146
|
Object.defineProperty(exports, "newSegmentId", {
|
|
12147
12147
|
enumerable: true,
|
|
12148
|
-
get: function () { return
|
|
12148
|
+
get: function () { return chunkZLHS3UKP_cjs.newSegmentId; }
|
|
12149
12149
|
});
|
|
12150
12150
|
Object.defineProperty(exports, "newTrackKey", {
|
|
12151
12151
|
enumerable: true,
|
|
12152
|
-
get: function () { return
|
|
12152
|
+
get: function () { return chunkZLHS3UKP_cjs.newTrackKey; }
|
|
12153
12153
|
});
|
|
12154
12154
|
Object.defineProperty(exports, "nextSeqAfter", {
|
|
12155
12155
|
enumerable: true,
|
|
12156
|
-
get: function () { return
|
|
12156
|
+
get: function () { return chunkZLHS3UKP_cjs.nextSeqAfter; }
|
|
12157
12157
|
});
|
|
12158
12158
|
Object.defineProperty(exports, "onCallEvent", {
|
|
12159
12159
|
enumerable: true,
|
|
12160
|
-
get: function () { return
|
|
12160
|
+
get: function () { return chunkZLHS3UKP_cjs.onCallEvent; }
|
|
12161
12161
|
});
|
|
12162
12162
|
Object.defineProperty(exports, "openCall", {
|
|
12163
12163
|
enumerable: true,
|
|
12164
|
-
get: function () { return
|
|
12164
|
+
get: function () { return chunkZLHS3UKP_cjs.openCall; }
|
|
12165
12165
|
});
|
|
12166
12166
|
Object.defineProperty(exports, "openQuestion", {
|
|
12167
12167
|
enumerable: true,
|
|
12168
|
-
get: function () { return
|
|
12168
|
+
get: function () { return chunkZLHS3UKP_cjs.openQuestion; }
|
|
12169
12169
|
});
|
|
12170
12170
|
Object.defineProperty(exports, "openRecording", {
|
|
12171
12171
|
enumerable: true,
|
|
12172
|
-
get: function () { return
|
|
12172
|
+
get: function () { return chunkZLHS3UKP_cjs.openRecording; }
|
|
12173
12173
|
});
|
|
12174
12174
|
Object.defineProperty(exports, "parseWebinarPacket", {
|
|
12175
12175
|
enumerable: true,
|
|
12176
|
-
get: function () { return
|
|
12176
|
+
get: function () { return chunkZLHS3UKP_cjs.parseWebinarPacket; }
|
|
12177
12177
|
});
|
|
12178
12178
|
Object.defineProperty(exports, "partKey", {
|
|
12179
12179
|
enumerable: true,
|
|
12180
|
-
get: function () { return
|
|
12180
|
+
get: function () { return chunkZLHS3UKP_cjs.partKey; }
|
|
12181
12181
|
});
|
|
12182
12182
|
Object.defineProperty(exports, "partOffsetMs", {
|
|
12183
12183
|
enumerable: true,
|
|
12184
|
-
get: function () { return
|
|
12184
|
+
get: function () { return chunkZLHS3UKP_cjs.partOffsetMs; }
|
|
12185
12185
|
});
|
|
12186
12186
|
Object.defineProperty(exports, "partsDue", {
|
|
12187
12187
|
enumerable: true,
|
|
12188
|
-
get: function () { return
|
|
12188
|
+
get: function () { return chunkZLHS3UKP_cjs.partsDue; }
|
|
12189
12189
|
});
|
|
12190
12190
|
Object.defineProperty(exports, "patchConversation", {
|
|
12191
12191
|
enumerable: true,
|
|
12192
|
-
get: function () { return
|
|
12192
|
+
get: function () { return chunkZLHS3UKP_cjs.patchConversation; }
|
|
12193
12193
|
});
|
|
12194
12194
|
Object.defineProperty(exports, "patchConversationList", {
|
|
12195
12195
|
enumerable: true,
|
|
12196
|
-
get: function () { return
|
|
12196
|
+
get: function () { return chunkZLHS3UKP_cjs.patchConversationList; }
|
|
12197
12197
|
});
|
|
12198
12198
|
Object.defineProperty(exports, "persistMeetingMessage", {
|
|
12199
12199
|
enumerable: true,
|
|
12200
|
-
get: function () { return
|
|
12200
|
+
get: function () { return chunkZLHS3UKP_cjs.persistMeetingMessage; }
|
|
12201
12201
|
});
|
|
12202
12202
|
Object.defineProperty(exports, "persistTranscriptSegment", {
|
|
12203
12203
|
enumerable: true,
|
|
12204
|
-
get: function () { return
|
|
12204
|
+
get: function () { return chunkZLHS3UKP_cjs.persistTranscriptSegment; }
|
|
12205
12205
|
});
|
|
12206
12206
|
Object.defineProperty(exports, "playheadAt", {
|
|
12207
12207
|
enumerable: true,
|
|
12208
|
-
get: function () { return
|
|
12208
|
+
get: function () { return chunkZLHS3UKP_cjs.playheadAt; }
|
|
12209
12209
|
});
|
|
12210
12210
|
Object.defineProperty(exports, "postRecordingDocsToThread", {
|
|
12211
12211
|
enumerable: true,
|
|
12212
|
-
get: function () { return
|
|
12212
|
+
get: function () { return chunkZLHS3UKP_cjs.postRecordingDocsToThread; }
|
|
12213
12213
|
});
|
|
12214
12214
|
Object.defineProperty(exports, "postTranscriptToThread", {
|
|
12215
12215
|
enumerable: true,
|
|
12216
|
-
get: function () { return
|
|
12216
|
+
get: function () { return chunkZLHS3UKP_cjs.postTranscriptToThread; }
|
|
12217
12217
|
});
|
|
12218
12218
|
Object.defineProperty(exports, "recordingFiles", {
|
|
12219
12219
|
enumerable: true,
|
|
12220
|
-
get: function () { return
|
|
12220
|
+
get: function () { return chunkZLHS3UKP_cjs.recordingFiles; }
|
|
12221
12221
|
});
|
|
12222
12222
|
Object.defineProperty(exports, "recordingWindowsOf", {
|
|
12223
12223
|
enumerable: true,
|
|
12224
|
-
get: function () { return
|
|
12224
|
+
get: function () { return chunkZLHS3UKP_cjs.recordingWindowsOf; }
|
|
12225
12225
|
});
|
|
12226
12226
|
Object.defineProperty(exports, "rejoinAsAudience", {
|
|
12227
12227
|
enumerable: true,
|
|
12228
|
-
get: function () { return
|
|
12228
|
+
get: function () { return chunkZLHS3UKP_cjs.rejoinAsAudience; }
|
|
12229
12229
|
});
|
|
12230
12230
|
Object.defineProperty(exports, "removeChat", {
|
|
12231
12231
|
enumerable: true,
|
|
12232
|
-
get: function () { return
|
|
12232
|
+
get: function () { return chunkZLHS3UKP_cjs.removeChat; }
|
|
12233
12233
|
});
|
|
12234
12234
|
Object.defineProperty(exports, "removeConversationFromLists", {
|
|
12235
12235
|
enumerable: true,
|
|
12236
|
-
get: function () { return
|
|
12236
|
+
get: function () { return chunkZLHS3UKP_cjs.removeConversationFromLists; }
|
|
12237
12237
|
});
|
|
12238
12238
|
Object.defineProperty(exports, "resetCallSession", {
|
|
12239
12239
|
enumerable: true,
|
|
12240
|
-
get: function () { return
|
|
12240
|
+
get: function () { return chunkZLHS3UKP_cjs.resetCallSession; }
|
|
12241
12241
|
});
|
|
12242
12242
|
Object.defineProperty(exports, "resolveMeetingChat", {
|
|
12243
12243
|
enumerable: true,
|
|
12244
|
-
get: function () { return
|
|
12244
|
+
get: function () { return chunkZLHS3UKP_cjs.resolveMeetingChat; }
|
|
12245
12245
|
});
|
|
12246
12246
|
Object.defineProperty(exports, "saveRecordingFilesToThread", {
|
|
12247
12247
|
enumerable: true,
|
|
12248
|
-
get: function () { return
|
|
12248
|
+
get: function () { return chunkZLHS3UKP_cjs.saveRecordingFilesToThread; }
|
|
12249
12249
|
});
|
|
12250
12250
|
Object.defineProperty(exports, "schedulePart", {
|
|
12251
12251
|
enumerable: true,
|
|
12252
|
-
get: function () { return
|
|
12252
|
+
get: function () { return chunkZLHS3UKP_cjs.schedulePart; }
|
|
12253
12253
|
});
|
|
12254
12254
|
Object.defineProperty(exports, "sealQuestionText", {
|
|
12255
12255
|
enumerable: true,
|
|
12256
|
-
get: function () { return
|
|
12256
|
+
get: function () { return chunkZLHS3UKP_cjs.sealQuestionText; }
|
|
12257
12257
|
});
|
|
12258
12258
|
Object.defineProperty(exports, "setOpenChat", {
|
|
12259
12259
|
enumerable: true,
|
|
12260
|
-
get: function () { return
|
|
12260
|
+
get: function () { return chunkZLHS3UKP_cjs.setOpenChat; }
|
|
12261
12261
|
});
|
|
12262
12262
|
Object.defineProperty(exports, "sortTranscriptMessages", {
|
|
12263
12263
|
enumerable: true,
|
|
12264
|
-
get: function () { return
|
|
12264
|
+
get: function () { return chunkZLHS3UKP_cjs.sortTranscriptMessages; }
|
|
12265
12265
|
});
|
|
12266
12266
|
Object.defineProperty(exports, "sortedParts", {
|
|
12267
12267
|
enumerable: true,
|
|
12268
|
-
get: function () { return
|
|
12268
|
+
get: function () { return chunkZLHS3UKP_cjs.sortedParts; }
|
|
12269
12269
|
});
|
|
12270
12270
|
Object.defineProperty(exports, "speakerTracks", {
|
|
12271
12271
|
enumerable: true,
|
|
12272
|
-
get: function () { return
|
|
12272
|
+
get: function () { return chunkZLHS3UKP_cjs.speakerTracks; }
|
|
12273
12273
|
});
|
|
12274
12274
|
Object.defineProperty(exports, "speakerWav", {
|
|
12275
12275
|
enumerable: true,
|
|
12276
|
-
get: function () { return
|
|
12276
|
+
get: function () { return chunkZLHS3UKP_cjs.speakerWav; }
|
|
12277
12277
|
});
|
|
12278
12278
|
Object.defineProperty(exports, "splitIntoFiles", {
|
|
12279
12279
|
enumerable: true,
|
|
12280
|
-
get: function () { return
|
|
12280
|
+
get: function () { return chunkZLHS3UKP_cjs.splitIntoFiles; }
|
|
12281
12281
|
});
|
|
12282
12282
|
Object.defineProperty(exports, "standalone", {
|
|
12283
12283
|
enumerable: true,
|
|
12284
|
-
get: function () { return
|
|
12284
|
+
get: function () { return chunkZLHS3UKP_cjs.standalone; }
|
|
12285
12285
|
});
|
|
12286
12286
|
Object.defineProperty(exports, "startChatCall", {
|
|
12287
12287
|
enumerable: true,
|
|
12288
|
-
get: function () { return
|
|
12288
|
+
get: function () { return chunkZLHS3UKP_cjs.startChatCall; }
|
|
12289
12289
|
});
|
|
12290
12290
|
Object.defineProperty(exports, "startContactsCall", {
|
|
12291
12291
|
enumerable: true,
|
|
12292
|
-
get: function () { return
|
|
12292
|
+
get: function () { return chunkZLHS3UKP_cjs.startContactsCall; }
|
|
12293
12293
|
});
|
|
12294
12294
|
Object.defineProperty(exports, "startDmCall", {
|
|
12295
12295
|
enumerable: true,
|
|
12296
|
-
get: function () { return
|
|
12296
|
+
get: function () { return chunkZLHS3UKP_cjs.startDmCall; }
|
|
12297
12297
|
});
|
|
12298
12298
|
Object.defineProperty(exports, "startThreadCall", {
|
|
12299
12299
|
enumerable: true,
|
|
12300
|
-
get: function () { return
|
|
12300
|
+
get: function () { return chunkZLHS3UKP_cjs.startThreadCall; }
|
|
12301
12301
|
});
|
|
12302
12302
|
Object.defineProperty(exports, "startsMediaFile", {
|
|
12303
12303
|
enumerable: true,
|
|
12304
|
-
get: function () { return
|
|
12304
|
+
get: function () { return chunkZLHS3UKP_cjs.startsMediaFile; }
|
|
12305
12305
|
});
|
|
12306
12306
|
Object.defineProperty(exports, "storeTranscriptSegment", {
|
|
12307
12307
|
enumerable: true,
|
|
12308
|
-
get: function () { return
|
|
12308
|
+
get: function () { return chunkZLHS3UKP_cjs.storeTranscriptSegment; }
|
|
12309
12309
|
});
|
|
12310
12310
|
Object.defineProperty(exports, "stripSpeakerPrefix", {
|
|
12311
12311
|
enumerable: true,
|
|
12312
|
-
get: function () { return
|
|
12312
|
+
get: function () { return chunkZLHS3UKP_cjs.stripSpeakerPrefix; }
|
|
12313
12313
|
});
|
|
12314
12314
|
Object.defineProperty(exports, "supersedeLiveTranscript", {
|
|
12315
12315
|
enumerable: true,
|
|
12316
|
-
get: function () { return
|
|
12316
|
+
get: function () { return chunkZLHS3UKP_cjs.supersedeLiveTranscript; }
|
|
12317
12317
|
});
|
|
12318
12318
|
Object.defineProperty(exports, "supersededTranscriptLines", {
|
|
12319
12319
|
enumerable: true,
|
|
12320
|
-
get: function () { return
|
|
12320
|
+
get: function () { return chunkZLHS3UKP_cjs.supersededTranscriptLines; }
|
|
12321
12321
|
});
|
|
12322
12322
|
Object.defineProperty(exports, "threadHasLiveCall", {
|
|
12323
12323
|
enumerable: true,
|
|
12324
|
-
get: function () { return
|
|
12324
|
+
get: function () { return chunkZLHS3UKP_cjs.threadHasLiveCall; }
|
|
12325
12325
|
});
|
|
12326
12326
|
Object.defineProperty(exports, "threadLiveCallId", {
|
|
12327
12327
|
enumerable: true,
|
|
12328
|
-
get: function () { return
|
|
12328
|
+
get: function () { return chunkZLHS3UKP_cjs.threadLiveCallId; }
|
|
12329
12329
|
});
|
|
12330
12330
|
Object.defineProperty(exports, "threadTranscriptLines", {
|
|
12331
12331
|
enumerable: true,
|
|
12332
|
-
get: function () { return
|
|
12332
|
+
get: function () { return chunkZLHS3UKP_cjs.threadTranscriptLines; }
|
|
12333
12333
|
});
|
|
12334
12334
|
Object.defineProperty(exports, "threadTranscriptRef", {
|
|
12335
12335
|
enumerable: true,
|
|
12336
|
-
get: function () { return
|
|
12336
|
+
get: function () { return chunkZLHS3UKP_cjs.threadTranscriptRef; }
|
|
12337
12337
|
});
|
|
12338
12338
|
Object.defineProperty(exports, "threadTranscriptText", {
|
|
12339
12339
|
enumerable: true,
|
|
12340
|
-
get: function () { return
|
|
12340
|
+
get: function () { return chunkZLHS3UKP_cjs.threadTranscriptText; }
|
|
12341
12341
|
});
|
|
12342
12342
|
Object.defineProperty(exports, "timelineDurationMs", {
|
|
12343
12343
|
enumerable: true,
|
|
12344
|
-
get: function () { return
|
|
12344
|
+
get: function () { return chunkZLHS3UKP_cjs.timelineDurationMs; }
|
|
12345
12345
|
});
|
|
12346
12346
|
Object.defineProperty(exports, "timelineOf", {
|
|
12347
12347
|
enumerable: true,
|
|
12348
|
-
get: function () { return
|
|
12348
|
+
get: function () { return chunkZLHS3UKP_cjs.timelineOf; }
|
|
12349
12349
|
});
|
|
12350
12350
|
Object.defineProperty(exports, "toProfileView", {
|
|
12351
12351
|
enumerable: true,
|
|
12352
|
-
get: function () { return
|
|
12352
|
+
get: function () { return chunkZLHS3UKP_cjs.toProfileView; }
|
|
12353
12353
|
});
|
|
12354
12354
|
Object.defineProperty(exports, "trackUploaderFor", {
|
|
12355
12355
|
enumerable: true,
|
|
12356
|
-
get: function () { return
|
|
12356
|
+
get: function () { return chunkZLHS3UKP_cjs.trackUploaderFor; }
|
|
12357
12357
|
});
|
|
12358
12358
|
Object.defineProperty(exports, "transcribeRecording", {
|
|
12359
12359
|
enumerable: true,
|
|
12360
|
-
get: function () { return
|
|
12360
|
+
get: function () { return chunkZLHS3UKP_cjs.transcribeRecording; }
|
|
12361
12361
|
});
|
|
12362
12362
|
Object.defineProperty(exports, "transcriptPersistRole", {
|
|
12363
12363
|
enumerable: true,
|
|
12364
|
-
get: function () { return
|
|
12364
|
+
get: function () { return chunkZLHS3UKP_cjs.transcriptPersistRole; }
|
|
12365
12365
|
});
|
|
12366
12366
|
Object.defineProperty(exports, "transcriptSegmentOf", {
|
|
12367
12367
|
enumerable: true,
|
|
12368
|
-
get: function () { return
|
|
12368
|
+
get: function () { return chunkZLHS3UKP_cjs.transcriptSegmentOf; }
|
|
12369
12369
|
});
|
|
12370
12370
|
Object.defineProperty(exports, "unwrapTrackKey", {
|
|
12371
12371
|
enumerable: true,
|
|
12372
|
-
get: function () { return
|
|
12372
|
+
get: function () { return chunkZLHS3UKP_cjs.unwrapTrackKey; }
|
|
12373
12373
|
});
|
|
12374
12374
|
Object.defineProperty(exports, "upsertChat", {
|
|
12375
12375
|
enumerable: true,
|
|
12376
|
-
get: function () { return
|
|
12376
|
+
get: function () { return chunkZLHS3UKP_cjs.upsertChat; }
|
|
12377
12377
|
});
|
|
12378
12378
|
Object.defineProperty(exports, "useAccountClient", {
|
|
12379
12379
|
enumerable: true,
|
|
12380
|
-
get: function () { return
|
|
12380
|
+
get: function () { return chunkZLHS3UKP_cjs.useAccountClient; }
|
|
12381
12381
|
});
|
|
12382
12382
|
Object.defineProperty(exports, "useArbiWsContext", {
|
|
12383
12383
|
enumerable: true,
|
|
12384
|
-
get: function () { return
|
|
12384
|
+
get: function () { return chunkZLHS3UKP_cjs.useArbiWsContext; }
|
|
12385
12385
|
});
|
|
12386
12386
|
Object.defineProperty(exports, "useAvatarCrop", {
|
|
12387
12387
|
enumerable: true,
|
|
12388
|
-
get: function () { return
|
|
12388
|
+
get: function () { return chunkZLHS3UKP_cjs.useAvatarCrop; }
|
|
12389
12389
|
});
|
|
12390
12390
|
Object.defineProperty(exports, "useCall", {
|
|
12391
12391
|
enumerable: true,
|
|
12392
|
-
get: function () { return
|
|
12392
|
+
get: function () { return chunkZLHS3UKP_cjs.useCall; }
|
|
12393
12393
|
});
|
|
12394
12394
|
Object.defineProperty(exports, "useCallInviteLinks", {
|
|
12395
12395
|
enumerable: true,
|
|
12396
|
-
get: function () { return
|
|
12396
|
+
get: function () { return chunkZLHS3UKP_cjs.useCallInviteLinks; }
|
|
12397
12397
|
});
|
|
12398
12398
|
Object.defineProperty(exports, "useCallLiveUpdates", {
|
|
12399
12399
|
enumerable: true,
|
|
12400
|
-
get: function () { return
|
|
12400
|
+
get: function () { return chunkZLHS3UKP_cjs.useCallLiveUpdates; }
|
|
12401
12401
|
});
|
|
12402
12402
|
Object.defineProperty(exports, "useCallRecording", {
|
|
12403
12403
|
enumerable: true,
|
|
12404
|
-
get: function () { return
|
|
12404
|
+
get: function () { return chunkZLHS3UKP_cjs.useCallRecording; }
|
|
12405
12405
|
});
|
|
12406
12406
|
Object.defineProperty(exports, "useCallRecordings", {
|
|
12407
12407
|
enumerable: true,
|
|
12408
|
-
get: function () { return
|
|
12408
|
+
get: function () { return chunkZLHS3UKP_cjs.useCallRecordings; }
|
|
12409
12409
|
});
|
|
12410
12410
|
Object.defineProperty(exports, "useCallSession", {
|
|
12411
12411
|
enumerable: true,
|
|
12412
|
-
get: function () { return
|
|
12412
|
+
get: function () { return chunkZLHS3UKP_cjs.useCallSession; }
|
|
12413
12413
|
});
|
|
12414
12414
|
Object.defineProperty(exports, "useCallTranscriptionAvailable", {
|
|
12415
12415
|
enumerable: true,
|
|
12416
|
-
get: function () { return
|
|
12416
|
+
get: function () { return chunkZLHS3UKP_cjs.useCallTranscriptionAvailable; }
|
|
12417
12417
|
});
|
|
12418
12418
|
Object.defineProperty(exports, "useCallsConfig", {
|
|
12419
12419
|
enumerable: true,
|
|
12420
|
-
get: function () { return
|
|
12420
|
+
get: function () { return chunkZLHS3UKP_cjs.useCallsConfig; }
|
|
12421
12421
|
});
|
|
12422
12422
|
Object.defineProperty(exports, "useCallsEnabled", {
|
|
12423
12423
|
enumerable: true,
|
|
12424
|
-
get: function () { return
|
|
12424
|
+
get: function () { return chunkZLHS3UKP_cjs.useCallsEnabled; }
|
|
12425
12425
|
});
|
|
12426
12426
|
Object.defineProperty(exports, "useCanHostCalls", {
|
|
12427
12427
|
enumerable: true,
|
|
12428
|
-
get: function () { return
|
|
12428
|
+
get: function () { return chunkZLHS3UKP_cjs.useCanHostCalls; }
|
|
12429
12429
|
});
|
|
12430
12430
|
Object.defineProperty(exports, "useEntitlements", {
|
|
12431
12431
|
enumerable: true,
|
|
12432
|
-
get: function () { return
|
|
12432
|
+
get: function () { return chunkZLHS3UKP_cjs.useEntitlements; }
|
|
12433
12433
|
});
|
|
12434
12434
|
Object.defineProperty(exports, "useIsEntitled", {
|
|
12435
12435
|
enumerable: true,
|
|
12436
|
-
get: function () { return
|
|
12436
|
+
get: function () { return chunkZLHS3UKP_cjs.useIsEntitled; }
|
|
12437
12437
|
});
|
|
12438
12438
|
Object.defineProperty(exports, "useMeetingReadOnly", {
|
|
12439
12439
|
enumerable: true,
|
|
12440
|
-
get: function () { return
|
|
12440
|
+
get: function () { return chunkZLHS3UKP_cjs.useMeetingReadOnly; }
|
|
12441
12441
|
});
|
|
12442
12442
|
Object.defineProperty(exports, "useNameEditor", {
|
|
12443
12443
|
enumerable: true,
|
|
12444
|
-
get: function () { return
|
|
12444
|
+
get: function () { return chunkZLHS3UKP_cjs.useNameEditor; }
|
|
12445
12445
|
});
|
|
12446
12446
|
Object.defineProperty(exports, "useOpenCallMeetingChat", {
|
|
12447
12447
|
enumerable: true,
|
|
12448
|
-
get: function () { return
|
|
12448
|
+
get: function () { return chunkZLHS3UKP_cjs.useOpenCallMeetingChat; }
|
|
12449
12449
|
});
|
|
12450
12450
|
Object.defineProperty(exports, "useProfile", {
|
|
12451
12451
|
enumerable: true,
|
|
12452
|
-
get: function () { return
|
|
12452
|
+
get: function () { return chunkZLHS3UKP_cjs.useProfile; }
|
|
12453
12453
|
});
|
|
12454
12454
|
Object.defineProperty(exports, "useRecordingActions", {
|
|
12455
12455
|
enumerable: true,
|
|
12456
|
-
get: function () { return
|
|
12456
|
+
get: function () { return chunkZLHS3UKP_cjs.useRecordingActions; }
|
|
12457
12457
|
});
|
|
12458
12458
|
Object.defineProperty(exports, "useRecordingWindows", {
|
|
12459
12459
|
enumerable: true,
|
|
12460
|
-
get: function () { return
|
|
12460
|
+
get: function () { return chunkZLHS3UKP_cjs.useRecordingWindows; }
|
|
12461
12461
|
});
|
|
12462
12462
|
Object.defineProperty(exports, "useRevokeCallInviteLink", {
|
|
12463
12463
|
enumerable: true,
|
|
12464
|
-
get: function () { return
|
|
12464
|
+
get: function () { return chunkZLHS3UKP_cjs.useRevokeCallInviteLink; }
|
|
12465
12465
|
});
|
|
12466
12466
|
Object.defineProperty(exports, "useSaveToThread", {
|
|
12467
12467
|
enumerable: true,
|
|
12468
|
-
get: function () { return
|
|
12468
|
+
get: function () { return chunkZLHS3UKP_cjs.useSaveToThread; }
|
|
12469
12469
|
});
|
|
12470
12470
|
Object.defineProperty(exports, "useServerCallsEnabled", {
|
|
12471
12471
|
enumerable: true,
|
|
12472
|
-
get: function () { return
|
|
12472
|
+
get: function () { return chunkZLHS3UKP_cjs.useServerCallsEnabled; }
|
|
12473
12473
|
});
|
|
12474
12474
|
Object.defineProperty(exports, "useUpdateProfile", {
|
|
12475
12475
|
enumerable: true,
|
|
12476
|
-
get: function () { return
|
|
12476
|
+
get: function () { return chunkZLHS3UKP_cjs.useUpdateProfile; }
|
|
12477
12477
|
});
|
|
12478
12478
|
Object.defineProperty(exports, "wrapTrackKey", {
|
|
12479
12479
|
enumerable: true,
|
|
12480
|
-
get: function () { return
|
|
12480
|
+
get: function () { return chunkZLHS3UKP_cjs.wrapTrackKey; }
|
|
12481
12481
|
});
|
|
12482
12482
|
Object.defineProperty(exports, "writeSamples", {
|
|
12483
12483
|
enumerable: true,
|
|
12484
|
-
get: function () { return
|
|
12484
|
+
get: function () { return chunkZLHS3UKP_cjs.writeSamples; }
|
|
12485
12485
|
});
|
|
12486
12486
|
Object.defineProperty(exports, "DOCUMENTS_FIRST_PAGE_MEASURE", {
|
|
12487
12487
|
enumerable: true,
|
|
12488
|
-
get: function () { return
|
|
12488
|
+
get: function () { return chunkKFFH2JJM_cjs.DOCUMENTS_FIRST_PAGE_MEASURE; }
|
|
12489
12489
|
});
|
|
12490
12490
|
Object.defineProperty(exports, "DOCUMENTS_FIRST_PAGE_SIZE", {
|
|
12491
12491
|
enumerable: true,
|
|
12492
|
-
get: function () { return
|
|
12492
|
+
get: function () { return chunkKFFH2JJM_cjs.DOCUMENTS_FIRST_PAGE_SIZE; }
|
|
12493
12493
|
});
|
|
12494
12494
|
Object.defineProperty(exports, "DOCUMENTS_PAGE_SIZE", {
|
|
12495
12495
|
enumerable: true,
|
|
12496
|
-
get: function () { return
|
|
12496
|
+
get: function () { return chunkKFFH2JJM_cjs.DOCUMENTS_PAGE_SIZE; }
|
|
12497
12497
|
});
|
|
12498
12498
|
Object.defineProperty(exports, "FINISHED_DOCUMENT_STATUSES", {
|
|
12499
12499
|
enumerable: true,
|
|
12500
|
-
get: function () { return
|
|
12500
|
+
get: function () { return chunkKFFH2JJM_cjs.FINISHED_DOCUMENT_STATUSES; }
|
|
12501
12501
|
});
|
|
12502
12502
|
Object.defineProperty(exports, "IN_FLIGHT_DOCUMENT_STATUSES", {
|
|
12503
12503
|
enumerable: true,
|
|
12504
|
-
get: function () { return
|
|
12504
|
+
get: function () { return chunkKFFH2JJM_cjs.IN_FLIGHT_DOCUMENT_STATUSES; }
|
|
12505
12505
|
});
|
|
12506
12506
|
Object.defineProperty(exports, "SIMILARITY_THRESHOLD", {
|
|
12507
12507
|
enumerable: true,
|
|
12508
|
-
get: function () { return
|
|
12508
|
+
get: function () { return chunkKFFH2JJM_cjs.SIMILARITY_THRESHOLD; }
|
|
12509
12509
|
});
|
|
12510
12510
|
Object.defineProperty(exports, "adjustTagCounts", {
|
|
12511
12511
|
enumerable: true,
|
|
12512
|
-
get: function () { return
|
|
12512
|
+
get: function () { return chunkKFFH2JJM_cjs.adjustTagCounts; }
|
|
12513
12513
|
});
|
|
12514
12514
|
Object.defineProperty(exports, "dropTagFromCachedDocuments", {
|
|
12515
12515
|
enumerable: true,
|
|
12516
|
-
get: function () { return
|
|
12516
|
+
get: function () { return chunkKFFH2JJM_cjs.dropTagFromCachedDocuments; }
|
|
12517
12517
|
});
|
|
12518
12518
|
Object.defineProperty(exports, "finishEntityExtraction", {
|
|
12519
12519
|
enumerable: true,
|
|
12520
|
-
get: function () { return
|
|
12520
|
+
get: function () { return chunkKFFH2JJM_cjs.finishEntityExtraction; }
|
|
12521
12521
|
});
|
|
12522
12522
|
Object.defineProperty(exports, "forgetDocuments", {
|
|
12523
12523
|
enumerable: true,
|
|
12524
|
-
get: function () { return
|
|
12524
|
+
get: function () { return chunkKFFH2JJM_cjs.forgetDocuments; }
|
|
12525
12525
|
});
|
|
12526
12526
|
Object.defineProperty(exports, "getCachedDocuments", {
|
|
12527
12527
|
enumerable: true,
|
|
12528
|
-
get: function () { return
|
|
12528
|
+
get: function () { return chunkKFFH2JJM_cjs.getCachedDocuments; }
|
|
12529
12529
|
});
|
|
12530
12530
|
Object.defineProperty(exports, "invalidateTagData", {
|
|
12531
12531
|
enumerable: true,
|
|
12532
|
-
get: function () { return
|
|
12532
|
+
get: function () { return chunkKFFH2JJM_cjs.invalidateTagData; }
|
|
12533
12533
|
});
|
|
12534
12534
|
Object.defineProperty(exports, "invalidateTagTables", {
|
|
12535
12535
|
enumerable: true,
|
|
12536
|
-
get: function () { return
|
|
12536
|
+
get: function () { return chunkKFFH2JJM_cjs.invalidateTagTables; }
|
|
12537
12537
|
});
|
|
12538
12538
|
Object.defineProperty(exports, "isDocumentsLoading", {
|
|
12539
12539
|
enumerable: true,
|
|
12540
|
-
get: function () { return
|
|
12540
|
+
get: function () { return chunkKFFH2JJM_cjs.isDocumentsLoading; }
|
|
12541
12541
|
});
|
|
12542
12542
|
Object.defineProperty(exports, "isRowNewer", {
|
|
12543
12543
|
enumerable: true,
|
|
12544
|
-
get: function () { return
|
|
12544
|
+
get: function () { return chunkKFFH2JJM_cjs.isRowNewer; }
|
|
12545
12545
|
});
|
|
12546
12546
|
Object.defineProperty(exports, "isStaleTaskUpdate", {
|
|
12547
12547
|
enumerable: true,
|
|
12548
|
-
get: function () { return
|
|
12548
|
+
get: function () { return chunkKFFH2JJM_cjs.isStaleTaskUpdate; }
|
|
12549
12549
|
});
|
|
12550
12550
|
Object.defineProperty(exports, "patchCachedDocument", {
|
|
12551
12551
|
enumerable: true,
|
|
12552
|
-
get: function () { return
|
|
12552
|
+
get: function () { return chunkKFFH2JJM_cjs.patchCachedDocument; }
|
|
12553
12553
|
});
|
|
12554
12554
|
Object.defineProperty(exports, "patchDocuments", {
|
|
12555
12555
|
enumerable: true,
|
|
12556
|
-
get: function () { return
|
|
12556
|
+
get: function () { return chunkKFFH2JJM_cjs.patchDocuments; }
|
|
12557
12557
|
});
|
|
12558
12558
|
Object.defineProperty(exports, "patchWorkspaceTags", {
|
|
12559
12559
|
enumerable: true,
|
|
12560
|
-
get: function () { return
|
|
12560
|
+
get: function () { return chunkKFFH2JJM_cjs.patchWorkspaceTags; }
|
|
12561
12561
|
});
|
|
12562
12562
|
Object.defineProperty(exports, "refreshDocuments", {
|
|
12563
12563
|
enumerable: true,
|
|
12564
|
-
get: function () { return
|
|
12564
|
+
get: function () { return chunkKFFH2JJM_cjs.refreshDocuments; }
|
|
12565
12565
|
});
|
|
12566
12566
|
Object.defineProperty(exports, "resolveDocumentStatus", {
|
|
12567
12567
|
enumerable: true,
|
|
12568
|
-
get: function () { return
|
|
12568
|
+
get: function () { return chunkKFFH2JJM_cjs.resolveDocumentStatus; }
|
|
12569
12569
|
});
|
|
12570
12570
|
Object.defineProperty(exports, "setCachedDocument", {
|
|
12571
12571
|
enumerable: true,
|
|
12572
|
-
get: function () { return
|
|
12572
|
+
get: function () { return chunkKFFH2JJM_cjs.setCachedDocument; }
|
|
12573
12573
|
});
|
|
12574
12574
|
Object.defineProperty(exports, "settledByRows", {
|
|
12575
12575
|
enumerable: true,
|
|
12576
|
-
get: function () { return
|
|
12576
|
+
get: function () { return chunkKFFH2JJM_cjs.settledByRows; }
|
|
12577
12577
|
});
|
|
12578
12578
|
Object.defineProperty(exports, "startEntityExtraction", {
|
|
12579
12579
|
enumerable: true,
|
|
12580
|
-
get: function () { return
|
|
12580
|
+
get: function () { return chunkKFFH2JJM_cjs.startEntityExtraction; }
|
|
12581
12581
|
});
|
|
12582
12582
|
Object.defineProperty(exports, "stopDocumentsLoading", {
|
|
12583
12583
|
enumerable: true,
|
|
12584
|
-
get: function () { return
|
|
12584
|
+
get: function () { return chunkKFFH2JJM_cjs.stopDocumentsLoading; }
|
|
12585
12585
|
});
|
|
12586
12586
|
Object.defineProperty(exports, "subscribeDocumentRows", {
|
|
12587
12587
|
enumerable: true,
|
|
12588
|
-
get: function () { return
|
|
12588
|
+
get: function () { return chunkKFFH2JJM_cjs.subscribeDocumentRows; }
|
|
12589
12589
|
});
|
|
12590
12590
|
Object.defineProperty(exports, "upsertDocuments", {
|
|
12591
12591
|
enumerable: true,
|
|
12592
|
-
get: function () { return
|
|
12592
|
+
get: function () { return chunkKFFH2JJM_cjs.upsertDocuments; }
|
|
12593
12593
|
});
|
|
12594
12594
|
Object.defineProperty(exports, "useCreateTag", {
|
|
12595
12595
|
enumerable: true,
|
|
12596
|
-
get: function () { return
|
|
12596
|
+
get: function () { return chunkKFFH2JJM_cjs.useCreateTag; }
|
|
12597
12597
|
});
|
|
12598
12598
|
Object.defineProperty(exports, "useDeleteTag", {
|
|
12599
12599
|
enumerable: true,
|
|
12600
|
-
get: function () { return
|
|
12600
|
+
get: function () { return chunkKFFH2JJM_cjs.useDeleteTag; }
|
|
12601
12601
|
});
|
|
12602
12602
|
Object.defineProperty(exports, "useDocument", {
|
|
12603
12603
|
enumerable: true,
|
|
12604
|
-
get: function () { return
|
|
12604
|
+
get: function () { return chunkKFFH2JJM_cjs.useDocument; }
|
|
12605
12605
|
});
|
|
12606
12606
|
Object.defineProperty(exports, "useDocuments", {
|
|
12607
12607
|
enumerable: true,
|
|
12608
|
-
get: function () { return
|
|
12608
|
+
get: function () { return chunkKFFH2JJM_cjs.useDocuments; }
|
|
12609
12609
|
});
|
|
12610
12610
|
Object.defineProperty(exports, "useDocumentsById", {
|
|
12611
12611
|
enumerable: true,
|
|
12612
|
-
get: function () { return
|
|
12612
|
+
get: function () { return chunkKFFH2JJM_cjs.useDocumentsById; }
|
|
12613
12613
|
});
|
|
12614
12614
|
Object.defineProperty(exports, "useDocumentsLoading", {
|
|
12615
12615
|
enumerable: true,
|
|
12616
|
-
get: function () { return
|
|
12616
|
+
get: function () { return chunkKFFH2JJM_cjs.useDocumentsLoading; }
|
|
12617
12617
|
});
|
|
12618
12618
|
Object.defineProperty(exports, "useEntityExtractionDocIds", {
|
|
12619
12619
|
enumerable: true,
|
|
12620
|
-
get: function () { return
|
|
12620
|
+
get: function () { return chunkKFFH2JJM_cjs.useEntityExtractionDocIds; }
|
|
12621
12621
|
});
|
|
12622
12622
|
Object.defineProperty(exports, "useExtractEntities", {
|
|
12623
12623
|
enumerable: true,
|
|
12624
|
-
get: function () { return
|
|
12624
|
+
get: function () { return chunkKFFH2JJM_cjs.useExtractEntities; }
|
|
12625
12625
|
});
|
|
12626
12626
|
Object.defineProperty(exports, "useInvalidateTagData", {
|
|
12627
12627
|
enumerable: true,
|
|
12628
|
-
get: function () { return
|
|
12628
|
+
get: function () { return chunkKFFH2JJM_cjs.useInvalidateTagData; }
|
|
12629
12629
|
});
|
|
12630
12630
|
Object.defineProperty(exports, "useIsCreatingTag", {
|
|
12631
12631
|
enumerable: true,
|
|
12632
|
-
get: function () { return
|
|
12632
|
+
get: function () { return chunkKFFH2JJM_cjs.useIsCreatingTag; }
|
|
12633
12633
|
});
|
|
12634
12634
|
Object.defineProperty(exports, "useSetTagValues", {
|
|
12635
12635
|
enumerable: true,
|
|
12636
|
-
get: function () { return
|
|
12636
|
+
get: function () { return chunkKFFH2JJM_cjs.useSetTagValues; }
|
|
12637
12637
|
});
|
|
12638
12638
|
Object.defineProperty(exports, "useSimilarDocuments", {
|
|
12639
12639
|
enumerable: true,
|
|
12640
|
-
get: function () { return
|
|
12640
|
+
get: function () { return chunkKFFH2JJM_cjs.useSimilarDocuments; }
|
|
12641
12641
|
});
|
|
12642
12642
|
Object.defineProperty(exports, "useTagKindSchema", {
|
|
12643
12643
|
enumerable: true,
|
|
12644
|
-
get: function () { return
|
|
12644
|
+
get: function () { return chunkKFFH2JJM_cjs.useTagKindSchema; }
|
|
12645
12645
|
});
|
|
12646
12646
|
Object.defineProperty(exports, "useUpdateTag", {
|
|
12647
12647
|
enumerable: true,
|
|
12648
|
-
get: function () { return
|
|
12648
|
+
get: function () { return chunkKFFH2JJM_cjs.useUpdateTag; }
|
|
12649
12649
|
});
|
|
12650
12650
|
Object.defineProperty(exports, "useUpdateTagKindSchema", {
|
|
12651
12651
|
enumerable: true,
|
|
12652
|
-
get: function () { return
|
|
12652
|
+
get: function () { return chunkKFFH2JJM_cjs.useUpdateTagKindSchema; }
|
|
12653
12653
|
});
|
|
12654
12654
|
Object.defineProperty(exports, "DEFAULT_DOCUMENT_VIEWER_STATE", {
|
|
12655
12655
|
enumerable: true,
|
|
12656
|
-
get: function () { return
|
|
12656
|
+
get: function () { return chunkL3NHETSD_cjs.DEFAULT_DOCUMENT_VIEWER_STATE; }
|
|
12657
12657
|
});
|
|
12658
12658
|
Object.defineProperty(exports, "EMPTY_SESSION_STATE", {
|
|
12659
12659
|
enumerable: true,
|
|
12660
|
-
get: function () { return
|
|
12660
|
+
get: function () { return chunkL3NHETSD_cjs.EMPTY_SESSION_STATE; }
|
|
12661
12661
|
});
|
|
12662
12662
|
Object.defineProperty(exports, "MAX_THREAD_TABS", {
|
|
12663
12663
|
enumerable: true,
|
|
12664
|
-
get: function () { return
|
|
12664
|
+
get: function () { return chunkL3NHETSD_cjs.MAX_THREAD_TABS; }
|
|
12665
12665
|
});
|
|
12666
12666
|
Object.defineProperty(exports, "MIN_QUEUED_MESSAGE_VISIBILITY_MS", {
|
|
12667
12667
|
enumerable: true,
|
|
12668
|
-
get: function () { return
|
|
12668
|
+
get: function () { return chunkL3NHETSD_cjs.MIN_QUEUED_MESSAGE_VISIBILITY_MS; }
|
|
12669
12669
|
});
|
|
12670
12670
|
Object.defineProperty(exports, "PROJECT_CREATION_DENIED_REASON", {
|
|
12671
12671
|
enumerable: true,
|
|
12672
|
-
get: function () { return
|
|
12672
|
+
get: function () { return chunkL3NHETSD_cjs.PROJECT_CREATION_DENIED_REASON; }
|
|
12673
12673
|
});
|
|
12674
12674
|
Object.defineProperty(exports, "agentControl", {
|
|
12675
12675
|
enumerable: true,
|
|
12676
|
-
get: function () { return
|
|
12676
|
+
get: function () { return chunkL3NHETSD_cjs.agentControl; }
|
|
12677
12677
|
});
|
|
12678
12678
|
Object.defineProperty(exports, "clearSealedDrafts", {
|
|
12679
12679
|
enumerable: true,
|
|
12680
|
-
get: function () { return
|
|
12680
|
+
get: function () { return chunkL3NHETSD_cjs.clearSealedDrafts; }
|
|
12681
12681
|
});
|
|
12682
12682
|
Object.defineProperty(exports, "conversationKey", {
|
|
12683
12683
|
enumerable: true,
|
|
12684
|
-
get: function () { return
|
|
12684
|
+
get: function () { return chunkL3NHETSD_cjs.conversationKey; }
|
|
12685
12685
|
});
|
|
12686
12686
|
Object.defineProperty(exports, "createArbiSessionStore", {
|
|
12687
12687
|
enumerable: true,
|
|
12688
|
-
get: function () { return
|
|
12688
|
+
get: function () { return chunkL3NHETSD_cjs.createArbiSessionStore; }
|
|
12689
12689
|
});
|
|
12690
12690
|
Object.defineProperty(exports, "createSealedDraftStorage", {
|
|
12691
12691
|
enumerable: true,
|
|
12692
|
-
get: function () { return
|
|
12692
|
+
get: function () { return chunkL3NHETSD_cjs.createSealedDraftStorage; }
|
|
12693
12693
|
});
|
|
12694
12694
|
Object.defineProperty(exports, "isUsageMetered", {
|
|
12695
12695
|
enumerable: true,
|
|
12696
|
-
get: function () { return
|
|
12696
|
+
get: function () { return chunkL3NHETSD_cjs.isUsageMetered; }
|
|
12697
12697
|
});
|
|
12698
12698
|
Object.defineProperty(exports, "nextViewingDocument", {
|
|
12699
12699
|
enumerable: true,
|
|
12700
|
-
get: function () { return
|
|
12700
|
+
get: function () { return chunkL3NHETSD_cjs.nextViewingDocument; }
|
|
12701
12701
|
});
|
|
12702
12702
|
Object.defineProperty(exports, "queuedMessages", {
|
|
12703
12703
|
enumerable: true,
|
|
12704
|
-
get: function () { return
|
|
12704
|
+
get: function () { return chunkL3NHETSD_cjs.queuedMessages; }
|
|
12705
12705
|
});
|
|
12706
12706
|
Object.defineProperty(exports, "selectDraft", {
|
|
12707
12707
|
enumerable: true,
|
|
12708
|
-
get: function () { return
|
|
12708
|
+
get: function () { return chunkL3NHETSD_cjs.selectDraft; }
|
|
12709
12709
|
});
|
|
12710
12710
|
Object.defineProperty(exports, "selectIsGenerating", {
|
|
12711
12711
|
enumerable: true,
|
|
12712
|
-
get: function () { return
|
|
12712
|
+
get: function () { return chunkL3NHETSD_cjs.selectIsGenerating; }
|
|
12713
12713
|
});
|
|
12714
12714
|
Object.defineProperty(exports, "selectViewingDocumentId", {
|
|
12715
12715
|
enumerable: true,
|
|
12716
|
-
get: function () { return
|
|
12716
|
+
get: function () { return chunkL3NHETSD_cjs.selectViewingDocumentId; }
|
|
12717
12717
|
});
|
|
12718
12718
|
Object.defineProperty(exports, "threadTabId", {
|
|
12719
12719
|
enumerable: true,
|
|
12720
|
-
get: function () { return
|
|
12720
|
+
get: function () { return chunkL3NHETSD_cjs.threadTabId; }
|
|
12721
12721
|
});
|
|
12722
12722
|
Object.defineProperty(exports, "useActivity", {
|
|
12723
12723
|
enumerable: true,
|
|
12724
|
-
get: function () { return
|
|
12724
|
+
get: function () { return chunkL3NHETSD_cjs.useActivity; }
|
|
12725
12725
|
});
|
|
12726
12726
|
Object.defineProperty(exports, "useAgents", {
|
|
12727
12727
|
enumerable: true,
|
|
12728
|
-
get: function () { return
|
|
12728
|
+
get: function () { return chunkL3NHETSD_cjs.useAgents; }
|
|
12729
12729
|
});
|
|
12730
12730
|
Object.defineProperty(exports, "useArbiSession", {
|
|
12731
12731
|
enumerable: true,
|
|
12732
|
-
get: function () { return
|
|
12732
|
+
get: function () { return chunkL3NHETSD_cjs.useArbiSession; }
|
|
12733
12733
|
});
|
|
12734
12734
|
Object.defineProperty(exports, "useArbiSessionState", {
|
|
12735
12735
|
enumerable: true,
|
|
12736
|
-
get: function () { return
|
|
12736
|
+
get: function () { return chunkL3NHETSD_cjs.useArbiSessionState; }
|
|
12737
12737
|
});
|
|
12738
12738
|
Object.defineProperty(exports, "useArbiSessionStore", {
|
|
12739
12739
|
enumerable: true,
|
|
12740
|
-
get: function () { return
|
|
12740
|
+
get: function () { return chunkL3NHETSD_cjs.useArbiSessionStore; }
|
|
12741
12741
|
});
|
|
12742
12742
|
Object.defineProperty(exports, "useAssistantQuery", {
|
|
12743
12743
|
enumerable: true,
|
|
12744
|
-
get: function () { return
|
|
12744
|
+
get: function () { return chunkL3NHETSD_cjs.useAssistantQuery; }
|
|
12745
12745
|
});
|
|
12746
12746
|
Object.defineProperty(exports, "useAvailableModels", {
|
|
12747
12747
|
enumerable: true,
|
|
12748
|
-
get: function () { return
|
|
12748
|
+
get: function () { return chunkL3NHETSD_cjs.useAvailableModels; }
|
|
12749
12749
|
});
|
|
12750
12750
|
Object.defineProperty(exports, "useBuiltinCommands", {
|
|
12751
12751
|
enumerable: true,
|
|
12752
|
-
get: function () { return
|
|
12752
|
+
get: function () { return chunkL3NHETSD_cjs.useBuiltinCommands; }
|
|
12753
12753
|
});
|
|
12754
12754
|
Object.defineProperty(exports, "useCanCreateProjects", {
|
|
12755
12755
|
enumerable: true,
|
|
12756
|
-
get: function () { return
|
|
12756
|
+
get: function () { return chunkL3NHETSD_cjs.useCanCreateProjects; }
|
|
12757
12757
|
});
|
|
12758
12758
|
Object.defineProperty(exports, "useConfig", {
|
|
12759
12759
|
enumerable: true,
|
|
12760
|
-
get: function () { return
|
|
12760
|
+
get: function () { return chunkL3NHETSD_cjs.useConfig; }
|
|
12761
12761
|
});
|
|
12762
12762
|
Object.defineProperty(exports, "useConfigs", {
|
|
12763
12763
|
enumerable: true,
|
|
12764
|
-
get: function () { return
|
|
12764
|
+
get: function () { return chunkL3NHETSD_cjs.useConfigs; }
|
|
12765
12765
|
});
|
|
12766
12766
|
Object.defineProperty(exports, "useConversationThreads", {
|
|
12767
12767
|
enumerable: true,
|
|
12768
|
-
get: function () { return
|
|
12768
|
+
get: function () { return chunkL3NHETSD_cjs.useConversationThreads; }
|
|
12769
12769
|
});
|
|
12770
12770
|
Object.defineProperty(exports, "useConversations", {
|
|
12771
12771
|
enumerable: true,
|
|
12772
|
-
get: function () { return
|
|
12772
|
+
get: function () { return chunkL3NHETSD_cjs.useConversations; }
|
|
12773
12773
|
});
|
|
12774
12774
|
Object.defineProperty(exports, "useCurrentUser", {
|
|
12775
12775
|
enumerable: true,
|
|
12776
|
-
get: function () { return
|
|
12776
|
+
get: function () { return chunkL3NHETSD_cjs.useCurrentUser; }
|
|
12777
12777
|
});
|
|
12778
12778
|
Object.defineProperty(exports, "useDeleteAgents", {
|
|
12779
12779
|
enumerable: true,
|
|
12780
|
-
get: function () { return
|
|
12780
|
+
get: function () { return chunkL3NHETSD_cjs.useDeleteAgents; }
|
|
12781
12781
|
});
|
|
12782
12782
|
Object.defineProperty(exports, "useDocumentVersionList", {
|
|
12783
12783
|
enumerable: true,
|
|
12784
|
-
get: function () { return
|
|
12784
|
+
get: function () { return chunkL3NHETSD_cjs.useDocumentVersionList; }
|
|
12785
12785
|
});
|
|
12786
12786
|
Object.defineProperty(exports, "useFirmPool", {
|
|
12787
12787
|
enumerable: true,
|
|
12788
|
-
get: function () { return
|
|
12788
|
+
get: function () { return chunkL3NHETSD_cjs.useFirmPool; }
|
|
12789
12789
|
});
|
|
12790
12790
|
Object.defineProperty(exports, "useHealth", {
|
|
12791
12791
|
enumerable: true,
|
|
12792
|
-
get: function () { return
|
|
12792
|
+
get: function () { return chunkL3NHETSD_cjs.useHealth; }
|
|
12793
12793
|
});
|
|
12794
12794
|
Object.defineProperty(exports, "useMessageDetails", {
|
|
12795
12795
|
enumerable: true,
|
|
12796
|
-
get: function () { return
|
|
12796
|
+
get: function () { return chunkL3NHETSD_cjs.useMessageDetails; }
|
|
12797
12797
|
});
|
|
12798
12798
|
Object.defineProperty(exports, "useParsedDocument", {
|
|
12799
12799
|
enumerable: true,
|
|
12800
|
-
get: function () { return
|
|
12800
|
+
get: function () { return chunkL3NHETSD_cjs.useParsedDocument; }
|
|
12801
12801
|
});
|
|
12802
12802
|
Object.defineProperty(exports, "useProjectInvoices", {
|
|
12803
12803
|
enumerable: true,
|
|
12804
|
-
get: function () { return
|
|
12804
|
+
get: function () { return chunkL3NHETSD_cjs.useProjectInvoices; }
|
|
12805
12805
|
});
|
|
12806
12806
|
Object.defineProperty(exports, "useProjectUsage", {
|
|
12807
12807
|
enumerable: true,
|
|
12808
|
-
get: function () { return
|
|
12808
|
+
get: function () { return chunkL3NHETSD_cjs.useProjectUsage; }
|
|
12809
12809
|
});
|
|
12810
12810
|
Object.defineProperty(exports, "useProjects", {
|
|
12811
12811
|
enumerable: true,
|
|
12812
|
-
get: function () { return
|
|
12812
|
+
get: function () { return chunkL3NHETSD_cjs.useProjects; }
|
|
12813
12813
|
});
|
|
12814
12814
|
Object.defineProperty(exports, "useProjectsUsage", {
|
|
12815
12815
|
enumerable: true,
|
|
12816
|
-
get: function () { return
|
|
12816
|
+
get: function () { return chunkL3NHETSD_cjs.useProjectsUsage; }
|
|
12817
12817
|
});
|
|
12818
12818
|
Object.defineProperty(exports, "useSignedInSession", {
|
|
12819
12819
|
enumerable: true,
|
|
12820
|
-
get: function () { return
|
|
12820
|
+
get: function () { return chunkL3NHETSD_cjs.useSignedInSession; }
|
|
12821
12821
|
});
|
|
12822
12822
|
Object.defineProperty(exports, "useTags", {
|
|
12823
12823
|
enumerable: true,
|
|
12824
|
-
get: function () { return
|
|
12824
|
+
get: function () { return chunkL3NHETSD_cjs.useTags; }
|
|
12825
12825
|
});
|
|
12826
12826
|
Object.defineProperty(exports, "useThumbnails", {
|
|
12827
12827
|
enumerable: true,
|
|
12828
|
-
get: function () { return
|
|
12828
|
+
get: function () { return chunkL3NHETSD_cjs.useThumbnails; }
|
|
12829
12829
|
});
|
|
12830
12830
|
Object.defineProperty(exports, "useTopUpFirmPool", {
|
|
12831
12831
|
enumerable: true,
|
|
12832
|
-
get: function () { return
|
|
12832
|
+
get: function () { return chunkL3NHETSD_cjs.useTopUpFirmPool; }
|
|
12833
12833
|
});
|
|
12834
12834
|
Object.defineProperty(exports, "useUserUsageToday", {
|
|
12835
12835
|
enumerable: true,
|
|
12836
|
-
get: function () { return
|
|
12836
|
+
get: function () { return chunkL3NHETSD_cjs.useUserUsageToday; }
|
|
12837
12837
|
});
|
|
12838
12838
|
Object.defineProperty(exports, "useWorkspaceActivity", {
|
|
12839
12839
|
enumerable: true,
|
|
12840
|
-
get: function () { return
|
|
12840
|
+
get: function () { return chunkL3NHETSD_cjs.useWorkspaceActivity; }
|
|
12841
12841
|
});
|
|
12842
12842
|
Object.defineProperty(exports, "useWorkspaces", {
|
|
12843
12843
|
enumerable: true,
|
|
12844
|
-
get: function () { return
|
|
12844
|
+
get: function () { return chunkL3NHETSD_cjs.useWorkspaces; }
|
|
12845
12845
|
});
|
|
12846
12846
|
Object.defineProperty(exports, "arbiMutationKeys", {
|
|
12847
12847
|
enumerable: true,
|
|
12848
|
-
get: function () { return
|
|
12848
|
+
get: function () { return chunkH4FGDXYB_cjs.arbiMutationKeys; }
|
|
12849
12849
|
});
|
|
12850
12850
|
Object.defineProperty(exports, "arbiQueryKeys", {
|
|
12851
12851
|
enumerable: true,
|
|
12852
|
-
get: function () { return
|
|
12852
|
+
get: function () { return chunkH4FGDXYB_cjs.arbiQueryKeys; }
|
|
12853
12853
|
});
|
|
12854
12854
|
Object.defineProperty(exports, "calendarQueryKeys", {
|
|
12855
12855
|
enumerable: true,
|
|
12856
|
-
get: function () { return
|
|
12856
|
+
get: function () { return chunkH4FGDXYB_cjs.calendarQueryKeys; }
|
|
12857
12857
|
});
|
|
12858
12858
|
Object.defineProperty(exports, "callQueryKeys", {
|
|
12859
12859
|
enumerable: true,
|
|
12860
|
-
get: function () { return
|
|
12860
|
+
get: function () { return chunkH4FGDXYB_cjs.callQueryKeys; }
|
|
12861
12861
|
});
|
|
12862
12862
|
Object.defineProperty(exports, "connectorQueryKeys", {
|
|
12863
12863
|
enumerable: true,
|
|
12864
|
-
get: function () { return
|
|
12864
|
+
get: function () { return chunkH4FGDXYB_cjs.connectorQueryKeys; }
|
|
12865
12865
|
});
|
|
12866
12866
|
Object.defineProperty(exports, "isUnderQueryKey", {
|
|
12867
12867
|
enumerable: true,
|
|
12868
|
-
get: function () { return
|
|
12868
|
+
get: function () { return chunkH4FGDXYB_cjs.isUnderQueryKey; }
|
|
12869
12869
|
});
|
|
12870
12870
|
Object.defineProperty(exports, "mailQueryKeys", {
|
|
12871
12871
|
enumerable: true,
|
|
12872
|
-
get: function () { return
|
|
12872
|
+
get: function () { return chunkH4FGDXYB_cjs.mailQueryKeys; }
|
|
12873
12873
|
});
|
|
12874
12874
|
Object.defineProperty(exports, "MENTION_HREF_PREFIX", {
|
|
12875
12875
|
enumerable: true,
|
|
@@ -13891,18 +13891,6 @@ Object.defineProperty(exports, "ScrollBar", {
|
|
|
13891
13891
|
enumerable: true,
|
|
13892
13892
|
get: function () { return chunkHUZB36QU_cjs.ScrollBar; }
|
|
13893
13893
|
});
|
|
13894
|
-
Object.defineProperty(exports, "closeOpenEmphasis", {
|
|
13895
|
-
enumerable: true,
|
|
13896
|
-
get: function () { return chunkZ3LLUO32_cjs.closeOpenEmphasis; }
|
|
13897
|
-
});
|
|
13898
|
-
Object.defineProperty(exports, "normalizeCitationMarkup", {
|
|
13899
|
-
enumerable: true,
|
|
13900
|
-
get: function () { return chunkZ3LLUO32_cjs.normalizeCitationMarkup; }
|
|
13901
|
-
});
|
|
13902
|
-
Object.defineProperty(exports, "trimOpenCitation", {
|
|
13903
|
-
enumerable: true,
|
|
13904
|
-
get: function () { return chunkZ3LLUO32_cjs.trimOpenCitation; }
|
|
13905
|
-
});
|
|
13906
13894
|
Object.defineProperty(exports, "DropdownMenu", {
|
|
13907
13895
|
enumerable: true,
|
|
13908
13896
|
get: function () { return chunkHJDR5HEO_cjs.DropdownMenu; }
|
|
@@ -13971,6 +13959,18 @@ Object.defineProperty(exports, "usePortalContainer", {
|
|
|
13971
13959
|
enumerable: true,
|
|
13972
13960
|
get: function () { return chunkHJDR5HEO_cjs.usePortalContainer; }
|
|
13973
13961
|
});
|
|
13962
|
+
Object.defineProperty(exports, "closeOpenEmphasis", {
|
|
13963
|
+
enumerable: true,
|
|
13964
|
+
get: function () { return chunkZ3LLUO32_cjs.closeOpenEmphasis; }
|
|
13965
|
+
});
|
|
13966
|
+
Object.defineProperty(exports, "normalizeCitationMarkup", {
|
|
13967
|
+
enumerable: true,
|
|
13968
|
+
get: function () { return chunkZ3LLUO32_cjs.normalizeCitationMarkup; }
|
|
13969
|
+
});
|
|
13970
|
+
Object.defineProperty(exports, "trimOpenCitation", {
|
|
13971
|
+
enumerable: true,
|
|
13972
|
+
get: function () { return chunkZ3LLUO32_cjs.trimOpenCitation; }
|
|
13973
|
+
});
|
|
13974
13974
|
Object.defineProperty(exports, "cn", {
|
|
13975
13975
|
enumerable: true,
|
|
13976
13976
|
get: function () { return chunkS6A6FSG7_cjs.cn; }
|