@arbidocs/react 0.5.19 → 0.5.21
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/{ProductionDialog.d-CttHqQAh.d.ts → ProductionDialog.d-BDJwBSzj.d.ts} +1 -1
- package/dist/{ProductionDialog.d-BD1osHeq.d.cts → ProductionDialog.d-DjRQFmQw.d.cts} +1 -1
- package/dist/annotations/freeze/index.cjs +15 -15
- package/dist/annotations/freeze/index.d.cts +1 -1
- package/dist/annotations/freeze/index.d.ts +1 -1
- package/dist/annotations/freeze/index.js +3 -3
- package/dist/annotations/index.cjs +56 -56
- package/dist/annotations/index.d.cts +5 -5
- package/dist/annotations/index.d.ts +5 -5
- package/dist/annotations/index.js +2 -2
- package/dist/artifacts/index.cjs +11 -11
- package/dist/artifacts/index.js +4 -4
- package/dist/bundle-DCWPYNGD.cjs +14 -0
- package/dist/{bundle-B5AN4B7H.cjs.map → bundle-DCWPYNGD.cjs.map} +1 -1
- package/dist/bundle-JCKKGEJE.js +5 -0
- package/dist/{bundle-4TKU5WEQ.js.map → bundle-JCKKGEJE.js.map} +1 -1
- package/dist/calls/livekit/index.cjs +43 -43
- package/dist/calls/livekit/index.js +4 -4
- package/dist/{chunk-YWYCEEBF.js → chunk-2HVCNYFH.js} +32 -3
- package/dist/chunk-2HVCNYFH.js.map +1 -0
- package/dist/{chunk-NSSGDZSL.cjs → chunk-2IJP73ZG.cjs} +2 -2
- package/dist/{chunk-NSSGDZSL.cjs.map → chunk-2IJP73ZG.cjs.map} +1 -1
- package/dist/{chunk-KFFH2JJM.cjs → chunk-4UDIA47U.cjs} +32 -32
- package/dist/{chunk-KFFH2JJM.cjs.map → chunk-4UDIA47U.cjs.map} +1 -1
- package/dist/{chunk-D63FAYES.js → chunk-A2XSLTIP.js} +5 -5
- package/dist/chunk-A2XSLTIP.js.map +1 -0
- package/dist/{chunk-EYOXZHXM.cjs → chunk-B6I2HRRF.cjs} +9 -9
- package/dist/chunk-B6I2HRRF.cjs.map +1 -0
- package/dist/{chunk-2M4B4FFA.cjs → chunk-CZP7FF3E.cjs} +31 -2
- package/dist/chunk-CZP7FF3E.cjs.map +1 -0
- package/dist/{chunk-GUCQMP6G.js → chunk-EEJHABLB.js} +5 -5
- package/dist/chunk-EEJHABLB.js.map +1 -0
- package/dist/{chunk-CNRF5SLZ.cjs → chunk-FLAZSNC5.cjs} +33 -33
- package/dist/{chunk-CNRF5SLZ.cjs.map → chunk-FLAZSNC5.cjs.map} +1 -1
- package/dist/{chunk-J2GERLMU.js → chunk-LYGJVSNM.js} +3 -3
- package/dist/{chunk-J2GERLMU.js.map → chunk-LYGJVSNM.js.map} +1 -1
- package/dist/{chunk-GN33GLHR.js → chunk-MQ7LZWGP.js} +3 -3
- package/dist/{chunk-GN33GLHR.js.map → chunk-MQ7LZWGP.js.map} +1 -1
- package/dist/{chunk-RG2ZE7DF.js → chunk-PBXJFMES.js} +5 -2
- package/dist/chunk-PBXJFMES.js.map +1 -0
- package/dist/{chunk-4VQ3XHAQ.cjs → chunk-RB23E45O.cjs} +42 -42
- package/dist/chunk-RB23E45O.cjs.map +1 -0
- package/dist/{chunk-H4FGDXYB.cjs → chunk-RRWAX52L.cjs} +5 -2
- package/dist/chunk-RRWAX52L.cjs.map +1 -0
- package/dist/{chunk-ALLWAYMB.cjs → chunk-SUZORMAB.cjs} +157 -65
- package/dist/chunk-SUZORMAB.cjs.map +1 -0
- package/dist/{chunk-XTWUMTCQ.js → chunk-T3USOSVN.js} +2 -2
- package/dist/{chunk-XTWUMTCQ.js.map → chunk-T3USOSVN.js.map} +1 -1
- package/dist/{chunk-2XMHFQ7M.js → chunk-T4CLW3DN.js} +141 -49
- package/dist/chunk-T4CLW3DN.js.map +1 -0
- package/dist/document-tools/index.cjs +174 -69
- package/dist/document-tools/index.cjs.map +1 -1
- package/dist/document-tools/index.d.cts +99 -6
- package/dist/document-tools/index.d.ts +99 -6
- package/dist/document-tools/index.js +107 -10
- package/dist/document-tools/index.js.map +1 -1
- package/dist/index.cjs +856 -747
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +75 -8
- package/dist/index.d.ts +75 -8
- package/dist/index.js +119 -13
- package/dist/index.js.map +1 -1
- package/dist/{model.d-D63gedpb.d.cts → model.d-CNtRWKVK.d.cts} +1 -1
- package/dist/{model.d-D63gedpb.d.ts → model.d-CNtRWKVK.d.ts} +1 -1
- package/dist/{query-keys.d-ClYiYNBR.d.cts → query-keys.d-DM2N5pzN.d.cts} +3 -0
- package/dist/{query-keys.d-ClYiYNBR.d.ts → query-keys.d-DM2N5pzN.d.ts} +3 -0
- package/package.json +3 -3
- package/dist/bundle-4TKU5WEQ.js +0 -5
- package/dist/bundle-B5AN4B7H.cjs +0 -14
- package/dist/chunk-2M4B4FFA.cjs.map +0 -1
- package/dist/chunk-2XMHFQ7M.js.map +0 -1
- package/dist/chunk-4VQ3XHAQ.cjs.map +0 -1
- package/dist/chunk-ALLWAYMB.cjs.map +0 -1
- package/dist/chunk-D63FAYES.js.map +0 -1
- package/dist/chunk-EYOXZHXM.cjs.map +0 -1
- package/dist/chunk-GUCQMP6G.js.map +0 -1
- package/dist/chunk-H4FGDXYB.cjs.map +0 -1
- package/dist/chunk-RG2ZE7DF.js.map +0 -1
- package/dist/chunk-YWYCEEBF.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
3
|
+
var chunkRB23E45O_cjs = require('./chunk-RB23E45O.cjs');
|
|
4
|
+
var chunk4UDIA47U_cjs = require('./chunk-4UDIA47U.cjs');
|
|
5
|
+
var chunkFLAZSNC5_cjs = require('./chunk-FLAZSNC5.cjs');
|
|
6
|
+
var chunkCZP7FF3E_cjs = require('./chunk-CZP7FF3E.cjs');
|
|
7
|
+
var chunkRRWAX52L_cjs = require('./chunk-RRWAX52L.cjs');
|
|
8
8
|
var chunkYBIW7T66_cjs = require('./chunk-YBIW7T66.cjs');
|
|
9
9
|
var chunkVAMPYLQ4_cjs = require('./chunk-VAMPYLQ4.cjs');
|
|
10
10
|
var chunkN73IMVFF_cjs = require('./chunk-N73IMVFF.cjs');
|
|
11
11
|
var chunkZWFMFOGP_cjs = require('./chunk-ZWFMFOGP.cjs');
|
|
12
12
|
require('./chunk-VOFNX4P6.cjs');
|
|
13
|
+
var chunkTMPDW7J5_cjs = require('./chunk-TMPDW7J5.cjs');
|
|
14
|
+
var chunkQQ7SCJRY_cjs = require('./chunk-QQ7SCJRY.cjs');
|
|
13
15
|
var chunk7NHOKV7N_cjs = require('./chunk-7NHOKV7N.cjs');
|
|
14
16
|
var chunkEEIYXVM4_cjs = require('./chunk-EEIYXVM4.cjs');
|
|
15
17
|
var chunkOC7F5SNA_cjs = require('./chunk-OC7F5SNA.cjs');
|
|
@@ -18,8 +20,6 @@ var chunk5YWIUUUT_cjs = require('./chunk-5YWIUUUT.cjs');
|
|
|
18
20
|
var chunkHJDR5HEO_cjs = require('./chunk-HJDR5HEO.cjs');
|
|
19
21
|
var chunkZ3LLUO32_cjs = require('./chunk-Z3LLUO32.cjs');
|
|
20
22
|
var chunkS6A6FSG7_cjs = require('./chunk-S6A6FSG7.cjs');
|
|
21
|
-
var chunkTMPDW7J5_cjs = require('./chunk-TMPDW7J5.cjs');
|
|
22
|
-
var chunkQQ7SCJRY_cjs = require('./chunk-QQ7SCJRY.cjs');
|
|
23
23
|
var chunkRCKA7BEF_cjs = require('./chunk-RCKA7BEF.cjs');
|
|
24
24
|
var React = require('react');
|
|
25
25
|
var reactQuery = require('@tanstack/react-query');
|
|
@@ -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 = chunkFLAZSNC5_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
75
|
+
const open = chunkFLAZSNC5_cjs.useArbiSessionState((s) => s.workspaceStatus === "open");
|
|
76
|
+
const query = chunkFLAZSNC5_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 = chunkFLAZSNC5_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 = chunkFLAZSNC5_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
107
|
+
const me = chunkFLAZSNC5_cjs.useArbiSession().user?.external_id;
|
|
108
|
+
const { data: workspaces } = chunkFLAZSNC5_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 chunkRB23E45O_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 = chunkFLAZSNC5_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: chunkRRWAX52L_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 chunkRB23E45O_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
|
+
chunkRB23E45O_cjs.patchConversation(qc, conversationId, updated);
|
|
206
|
+
return chunkRB23E45O_cjs.invalidateConversationDetails(qc, conversationId);
|
|
207
207
|
}
|
|
208
208
|
});
|
|
209
209
|
}
|
|
@@ -212,7 +212,7 @@ function useDeleteConversation() {
|
|
|
212
212
|
const qc = reactQuery.useQueryClient();
|
|
213
213
|
return reactQuery.useMutation({
|
|
214
214
|
mutationFn: (conversationId) => arbi.conversations.delete(conversationId),
|
|
215
|
-
onSuccess: (_res, conversationId) =>
|
|
215
|
+
onSuccess: (_res, conversationId) => chunkRB23E45O_cjs.removeConversationFromLists(qc, conversationId)
|
|
216
216
|
});
|
|
217
217
|
}
|
|
218
218
|
function useConversationSearch() {
|
|
@@ -226,7 +226,7 @@ function useCreateWork() {
|
|
|
226
226
|
const qc = reactQuery.useQueryClient();
|
|
227
227
|
return reactQuery.useMutation({
|
|
228
228
|
mutationFn: (body) => arbi.conversations.createWork(body),
|
|
229
|
-
onSuccess: (created) =>
|
|
229
|
+
onSuccess: (created) => chunkRB23E45O_cjs.addConversationToList(qc, arbi.hasWorkspace ? arbi.getWorkspaceId() : null, created)
|
|
230
230
|
});
|
|
231
231
|
}
|
|
232
232
|
function useRunConversation() {
|
|
@@ -236,8 +236,8 @@ function useRunConversation() {
|
|
|
236
236
|
mutationFn: (conversationId) => arbi.conversations.runWithAuth(conversationId),
|
|
237
237
|
// The server's version replaces the listed one; everything under the conversation is re-read.
|
|
238
238
|
onSuccess: (updated) => {
|
|
239
|
-
if (updated?.external_id)
|
|
240
|
-
return qc.invalidateQueries({ queryKey:
|
|
239
|
+
if (updated?.external_id) chunkRB23E45O_cjs.patchConversation(qc, updated.external_id, updated);
|
|
240
|
+
return qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.allConversations() });
|
|
241
241
|
}
|
|
242
242
|
});
|
|
243
243
|
}
|
|
@@ -252,7 +252,7 @@ function useActOnStep() {
|
|
|
252
252
|
// The server's version of the conversation replaces the listed one; its history is re-read.
|
|
253
253
|
onSuccess: (updated) => {
|
|
254
254
|
if (!updated?.external_id) return;
|
|
255
|
-
|
|
255
|
+
chunkRB23E45O_cjs.patchConversation(qc, updated.external_id, updated);
|
|
256
256
|
invalidateConversationActivity(qc, updated.external_id);
|
|
257
257
|
}
|
|
258
258
|
});
|
|
@@ -267,7 +267,7 @@ function useSendBackStep() {
|
|
|
267
267
|
to,
|
|
268
268
|
note
|
|
269
269
|
}) => arbi.conversations.sendBackStep(conversationId, step, { to, note }),
|
|
270
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
270
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.allConversations() })
|
|
271
271
|
});
|
|
272
272
|
}
|
|
273
273
|
function usePlanWork() {
|
|
@@ -279,7 +279,7 @@ function usePlanWork() {
|
|
|
279
279
|
function useConversationPendingAuth(conversationId, options) {
|
|
280
280
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
281
281
|
return reactQuery.useQuery({
|
|
282
|
-
queryKey:
|
|
282
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.conversationPendingAuth(conversationId ?? ""),
|
|
283
283
|
queryFn: () => arbi.conversations.pendingAuth(conversationId),
|
|
284
284
|
enabled: (options?.enabled ?? true) && !!conversationId && arbi.isLoggedIn,
|
|
285
285
|
retry: false
|
|
@@ -288,7 +288,7 @@ function useConversationPendingAuth(conversationId, options) {
|
|
|
288
288
|
function useConversationActivity(conversationId, options) {
|
|
289
289
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
290
290
|
return reactQuery.useQuery({
|
|
291
|
-
queryKey:
|
|
291
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.conversationActivity(conversationId ?? ""),
|
|
292
292
|
queryFn: () => arbi.conversations.activity(conversationId),
|
|
293
293
|
enabled: (options?.enabled ?? true) && !!conversationId && arbi.isLoggedIn,
|
|
294
294
|
refetchInterval: options?.live ? 2500 : false
|
|
@@ -297,7 +297,7 @@ function useConversationActivity(conversationId, options) {
|
|
|
297
297
|
function useWorkflows(options) {
|
|
298
298
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
299
299
|
return reactQuery.useQuery({
|
|
300
|
-
queryKey:
|
|
300
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.workflows(),
|
|
301
301
|
queryFn: () => arbi.workflows.list(),
|
|
302
302
|
// A clock or event can fire while the list is open, without a write here.
|
|
303
303
|
refetchInterval: options?.live ? 1e4 : false,
|
|
@@ -307,7 +307,7 @@ function useWorkflows(options) {
|
|
|
307
307
|
function useWorkflowRuns(workflowId) {
|
|
308
308
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
309
309
|
return reactQuery.useQuery({
|
|
310
|
-
queryKey:
|
|
310
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.workflowRuns(workflowId ?? ""),
|
|
311
311
|
queryFn: () => arbi.workflows.runs(workflowId),
|
|
312
312
|
enabled: !!workflowId && arbi.isLoggedIn,
|
|
313
313
|
refetchInterval: 3e3,
|
|
@@ -320,7 +320,7 @@ function useCreateWorkflow() {
|
|
|
320
320
|
const qc = reactQuery.useQueryClient();
|
|
321
321
|
return reactQuery.useMutation({
|
|
322
322
|
mutationFn: (body) => arbi.workflows.create(body),
|
|
323
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
323
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.workflows() })
|
|
324
324
|
});
|
|
325
325
|
}
|
|
326
326
|
function useUpdateWorkflow() {
|
|
@@ -331,7 +331,7 @@ function useUpdateWorkflow() {
|
|
|
331
331
|
workflowId,
|
|
332
332
|
patch
|
|
333
333
|
}) => arbi.workflows.update(workflowId, patch),
|
|
334
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
334
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.workflows() })
|
|
335
335
|
});
|
|
336
336
|
}
|
|
337
337
|
function useDeleteWorkflow() {
|
|
@@ -339,18 +339,18 @@ function useDeleteWorkflow() {
|
|
|
339
339
|
const qc = reactQuery.useQueryClient();
|
|
340
340
|
return reactQuery.useMutation({
|
|
341
341
|
mutationFn: (workflowId) => arbi.workflows.delete(workflowId),
|
|
342
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
342
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.workflows() })
|
|
343
343
|
});
|
|
344
344
|
}
|
|
345
345
|
function useRunWorkflow() {
|
|
346
346
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
347
347
|
const qc = reactQuery.useQueryClient();
|
|
348
348
|
return reactQuery.useMutation({
|
|
349
|
-
mutationKey:
|
|
349
|
+
mutationKey: chunkRRWAX52L_cjs.arbiMutationKeys.runWorkflow(),
|
|
350
350
|
mutationFn: (workflowId) => arbi.workflows.run(workflowId),
|
|
351
351
|
onSuccess: () => Promise.all([
|
|
352
|
-
qc.invalidateQueries({ queryKey:
|
|
353
|
-
qc.invalidateQueries({ queryKey:
|
|
352
|
+
qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.workflows() }),
|
|
353
|
+
qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.allConversations() })
|
|
354
354
|
])
|
|
355
355
|
});
|
|
356
356
|
}
|
|
@@ -359,7 +359,7 @@ function useCreateAgent() {
|
|
|
359
359
|
const qc = reactQuery.useQueryClient();
|
|
360
360
|
return reactQuery.useMutation({
|
|
361
361
|
mutationFn: (name) => arbi.agents.create(name),
|
|
362
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
362
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.agents() })
|
|
363
363
|
});
|
|
364
364
|
}
|
|
365
365
|
function useGenerateAgentAvatar() {
|
|
@@ -367,13 +367,13 @@ function useGenerateAgentAvatar() {
|
|
|
367
367
|
const qc = reactQuery.useQueryClient();
|
|
368
368
|
return reactQuery.useMutation({
|
|
369
369
|
mutationFn: ({ agentExtId, prompt }) => arbi.agents.generateAvatar(agentExtId, prompt),
|
|
370
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
370
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.agents() })
|
|
371
371
|
});
|
|
372
372
|
}
|
|
373
373
|
function useAuthorizeLimits(options) {
|
|
374
374
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
375
375
|
return reactQuery.useQuery({
|
|
376
|
-
queryKey:
|
|
376
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.authorizeLimits(),
|
|
377
377
|
queryFn: () => arbi.agents.authorizeLimits(),
|
|
378
378
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
379
379
|
});
|
|
@@ -381,7 +381,7 @@ function useAuthorizeLimits(options) {
|
|
|
381
381
|
function useMcpTools(options) {
|
|
382
382
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
383
383
|
return reactQuery.useQuery({
|
|
384
|
-
queryKey:
|
|
384
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.mcpTools(),
|
|
385
385
|
queryFn: () => arbi.health.mcpTools(),
|
|
386
386
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
387
387
|
});
|
|
@@ -389,7 +389,7 @@ function useMcpTools(options) {
|
|
|
389
389
|
function useAgentConfig(agentExtId, options) {
|
|
390
390
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
391
391
|
return reactQuery.useQuery({
|
|
392
|
-
queryKey:
|
|
392
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.agentConfig(agentExtId),
|
|
393
393
|
queryFn: async () => agentExtId ? await arbi.agents.getConfig(agentExtId) : await arbi.agentConfig.get("default"),
|
|
394
394
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
395
395
|
});
|
|
@@ -397,7 +397,7 @@ function useAgentConfig(agentExtId, options) {
|
|
|
397
397
|
function useAgentModels(options) {
|
|
398
398
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
399
399
|
return reactQuery.useQuery({
|
|
400
|
-
queryKey:
|
|
400
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.models(),
|
|
401
401
|
queryFn: async () => (await arbi.agentConfig.getModels()).models.map((m) => m.model_name),
|
|
402
402
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
403
403
|
});
|
|
@@ -420,17 +420,17 @@ function useSaveAgentConfig() {
|
|
|
420
420
|
});
|
|
421
421
|
},
|
|
422
422
|
onSuccess: (_saved, { agentExtId }) => Promise.all([
|
|
423
|
-
qc.invalidateQueries({ queryKey:
|
|
424
|
-
qc.invalidateQueries({ queryKey:
|
|
423
|
+
qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.configs() }),
|
|
424
|
+
qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.agentConfig(agentExtId) }),
|
|
425
425
|
// The agent list shows the pinned persona/model, so it refreshes too.
|
|
426
|
-
qc.invalidateQueries({ queryKey:
|
|
426
|
+
qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.agents() })
|
|
427
427
|
])
|
|
428
428
|
});
|
|
429
429
|
}
|
|
430
430
|
function useAgentWorkspaces(agentExtId, options) {
|
|
431
431
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
432
432
|
return reactQuery.useQuery({
|
|
433
|
-
queryKey:
|
|
433
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.agentWorkspaces(agentExtId ?? ""),
|
|
434
434
|
queryFn: () => arbi.agents.listWorkspaces(agentExtId),
|
|
435
435
|
enabled: (options?.enabled ?? true) && !!agentExtId && arbi.isLoggedIn
|
|
436
436
|
});
|
|
@@ -452,9 +452,9 @@ function useGrantAgentAccess() {
|
|
|
452
452
|
return arbi.workspaces.grantAccess({ workspaceId, emails: [agent.email] });
|
|
453
453
|
},
|
|
454
454
|
onSuccess: (_res, { agentExtId, mode }) => {
|
|
455
|
-
void qc.invalidateQueries({ queryKey:
|
|
455
|
+
void qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.agentWorkspaces(agentExtId) });
|
|
456
456
|
if (mode?.kind === "temporary")
|
|
457
|
-
void qc.invalidateQueries({ queryKey:
|
|
457
|
+
void qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.sessions() });
|
|
458
458
|
}
|
|
459
459
|
});
|
|
460
460
|
}
|
|
@@ -463,13 +463,13 @@ function useRevokeAgentAccess() {
|
|
|
463
463
|
const qc = reactQuery.useQueryClient();
|
|
464
464
|
return reactQuery.useMutation({
|
|
465
465
|
mutationFn: ({ agentExtId, workspaceId }) => arbi.workspaces.removeUsers([agentExtId], { workspaceId }),
|
|
466
|
-
onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey:
|
|
466
|
+
onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.agentWorkspaces(agentExtId) })
|
|
467
467
|
});
|
|
468
468
|
}
|
|
469
469
|
function useSkills(options) {
|
|
470
470
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
471
471
|
return reactQuery.useQuery({
|
|
472
|
-
queryKey: [...
|
|
472
|
+
queryKey: [...chunkRRWAX52L_cjs.arbiQueryKeys.skills(), options?.includeHidden ?? false],
|
|
473
473
|
queryFn: () => arbi.assistant.listSkills({ includeHidden: options?.includeHidden }),
|
|
474
474
|
refetchInterval: options?.live ? 5e3 : false,
|
|
475
475
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn,
|
|
@@ -495,7 +495,7 @@ function useUploadSkillFiles() {
|
|
|
495
495
|
}
|
|
496
496
|
return results;
|
|
497
497
|
},
|
|
498
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
498
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.skills() })
|
|
499
499
|
});
|
|
500
500
|
}
|
|
501
501
|
function assertSkillFolder(folder) {
|
|
@@ -520,13 +520,13 @@ function useSaveSkill() {
|
|
|
520
520
|
throwOnSkipped(result);
|
|
521
521
|
return result;
|
|
522
522
|
},
|
|
523
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
523
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.skills() })
|
|
524
524
|
});
|
|
525
525
|
}
|
|
526
526
|
function useSkillSource(docExtId, options) {
|
|
527
527
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
528
528
|
return reactQuery.useQuery({
|
|
529
|
-
queryKey:
|
|
529
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.skillSource(docExtId ?? ""),
|
|
530
530
|
queryFn: async () => {
|
|
531
531
|
const response = await arbi.documents.download(docExtId);
|
|
532
532
|
if (!response.ok) throw new Error(`Could not read the skill (${response.status})`);
|
|
@@ -541,7 +541,7 @@ function useDeleteSkill() {
|
|
|
541
541
|
const qc = reactQuery.useQueryClient();
|
|
542
542
|
return reactQuery.useMutation({
|
|
543
543
|
mutationFn: (docExtId) => arbi.documents.delete([docExtId]),
|
|
544
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
544
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.skills() })
|
|
545
545
|
});
|
|
546
546
|
}
|
|
547
547
|
function useSetSkillVisibility() {
|
|
@@ -549,13 +549,13 @@ function useSetSkillVisibility() {
|
|
|
549
549
|
const qc = reactQuery.useQueryClient();
|
|
550
550
|
return reactQuery.useMutation({
|
|
551
551
|
mutationFn: ({ docExtId, visibility }) => arbi.documents.update([{ external_id: docExtId, shared: visibility === "global" }]),
|
|
552
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
552
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.skills() })
|
|
553
553
|
});
|
|
554
554
|
}
|
|
555
555
|
function useAgentSession(agentId, options) {
|
|
556
556
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
557
557
|
return reactQuery.useQuery({
|
|
558
|
-
queryKey:
|
|
558
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.agentSession(agentId ?? ""),
|
|
559
559
|
queryFn: () => arbi.agents.getSession(agentId),
|
|
560
560
|
enabled: !!agentId && arbi.isLoggedIn && (options?.enabled ?? true),
|
|
561
561
|
refetchInterval: 5e3
|
|
@@ -564,7 +564,7 @@ function useAgentSession(agentId, options) {
|
|
|
564
564
|
function useAgentChats(agentId) {
|
|
565
565
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
566
566
|
return reactQuery.useQuery({
|
|
567
|
-
queryKey:
|
|
567
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.agentChats(agentId ?? ""),
|
|
568
568
|
queryFn: () => arbi.agents.listChats(agentId),
|
|
569
569
|
enabled: !!agentId && arbi.isLoggedIn,
|
|
570
570
|
refetchInterval: 5e3
|
|
@@ -573,10 +573,10 @@ function useAgentChats(agentId) {
|
|
|
573
573
|
function refreshAgentSession(qc, agentId) {
|
|
574
574
|
return Promise.all(
|
|
575
575
|
[
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
576
|
+
chunkRRWAX52L_cjs.arbiQueryKeys.agentSession(agentId),
|
|
577
|
+
chunkRRWAX52L_cjs.arbiQueryKeys.agentWorkspaces(agentId),
|
|
578
|
+
chunkRRWAX52L_cjs.arbiQueryKeys.agentChats(agentId),
|
|
579
|
+
chunkRRWAX52L_cjs.arbiQueryKeys.sessions()
|
|
580
580
|
].map((queryKey) => qc.invalidateQueries({ queryKey }))
|
|
581
581
|
);
|
|
582
582
|
}
|
|
@@ -621,7 +621,7 @@ function toChatCitations(source) {
|
|
|
621
621
|
});
|
|
622
622
|
}
|
|
623
623
|
function getThreadsQueryKey(conversationId) {
|
|
624
|
-
return
|
|
624
|
+
return chunkRRWAX52L_cjs.arbiQueryKeys.conversationThreads(conversationId);
|
|
625
625
|
}
|
|
626
626
|
var allConversationThreads = {
|
|
627
627
|
predicate: ({ queryKey }) => queryKey[0] === "arbi" && queryKey[1] === "conversations" && queryKey[3] === "threads"
|
|
@@ -1263,7 +1263,7 @@ function useWorkspaceUsers(workspaceId, options) {
|
|
|
1263
1263
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
1264
1264
|
const workspace = workspaceId ?? (arbi.hasWorkspace ? arbi.getWorkspaceId() : "");
|
|
1265
1265
|
return reactQuery.useQuery({
|
|
1266
|
-
queryKey:
|
|
1266
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.workspaceUsers(workspace),
|
|
1267
1267
|
enabled: !!workspace && (options?.enabled ?? arbi.hasWorkspace),
|
|
1268
1268
|
queryFn: async () => {
|
|
1269
1269
|
await options?.beforeFetch?.();
|
|
@@ -1274,21 +1274,21 @@ function useWorkspaceUsers(workspaceId, options) {
|
|
|
1274
1274
|
}
|
|
1275
1275
|
function settleMembership(qc) {
|
|
1276
1276
|
return Promise.all([
|
|
1277
|
-
qc.invalidateQueries({ queryKey:
|
|
1278
|
-
qc.invalidateQueries({ queryKey:
|
|
1277
|
+
qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.allWorkspaceUsers() }),
|
|
1278
|
+
qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.workspaces() }),
|
|
1279
1279
|
// A project's collaborator quota counts workspace members.
|
|
1280
|
-
qc.invalidateQueries({ queryKey:
|
|
1280
|
+
qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.projects() })
|
|
1281
1281
|
]);
|
|
1282
1282
|
}
|
|
1283
1283
|
function useAddWorkspaceMembers() {
|
|
1284
1284
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
1285
1285
|
const qc = reactQuery.useQueryClient();
|
|
1286
1286
|
return reactQuery.useMutation({
|
|
1287
|
-
mutationKey:
|
|
1287
|
+
mutationKey: chunkRRWAX52L_cjs.arbiMutationKeys.workspaceMembership(),
|
|
1288
1288
|
mutationFn: (request) => arbi.workspaces.addMembers(request),
|
|
1289
1289
|
onSuccess: () => Promise.all([
|
|
1290
1290
|
settleMembership(qc),
|
|
1291
|
-
qc.invalidateQueries({ queryKey:
|
|
1291
|
+
qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.contacts() })
|
|
1292
1292
|
])
|
|
1293
1293
|
});
|
|
1294
1294
|
}
|
|
@@ -1296,7 +1296,7 @@ function useRemoveWorkspaceMembers() {
|
|
|
1296
1296
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
1297
1297
|
const qc = reactQuery.useQueryClient();
|
|
1298
1298
|
return reactQuery.useMutation({
|
|
1299
|
-
mutationKey:
|
|
1299
|
+
mutationKey: chunkRRWAX52L_cjs.arbiMutationKeys.workspaceMembership(),
|
|
1300
1300
|
mutationFn: (userIds) => arbi.workspaces.removeUsers(userIds),
|
|
1301
1301
|
onSuccess: () => settleMembership(qc)
|
|
1302
1302
|
});
|
|
@@ -1305,11 +1305,11 @@ function useSetWorkspaceMemberRoles() {
|
|
|
1305
1305
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
1306
1306
|
const qc = reactQuery.useQueryClient();
|
|
1307
1307
|
return reactQuery.useMutation({
|
|
1308
|
-
mutationKey:
|
|
1308
|
+
mutationKey: chunkRRWAX52L_cjs.arbiMutationKeys.setWorkspaceMemberRoles(),
|
|
1309
1309
|
mutationFn: ({ userIds, role }) => arbi.workspaces.setUserRole(userIds, role),
|
|
1310
1310
|
onSuccess: () => Promise.all([
|
|
1311
|
-
qc.invalidateQueries({ queryKey:
|
|
1312
|
-
qc.invalidateQueries({ queryKey:
|
|
1311
|
+
qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.allWorkspaceUsers() }),
|
|
1312
|
+
qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.workspaces() })
|
|
1313
1313
|
])
|
|
1314
1314
|
});
|
|
1315
1315
|
}
|
|
@@ -1326,31 +1326,31 @@ function buildMentionCandidates(users, currentUserId) {
|
|
|
1326
1326
|
return [{ id: "assistant", kind: "assistant", label: ASSISTANT_MENTION_LABEL }, ...people];
|
|
1327
1327
|
}
|
|
1328
1328
|
function cachedMentionCandidates(queryClient, workspaceId, currentUserId) {
|
|
1329
|
-
const users = workspaceId && queryClient.getQueryData(
|
|
1329
|
+
const users = workspaceId && queryClient.getQueryData(chunkRRWAX52L_cjs.arbiQueryKeys.workspaceUsers(workspaceId)) || [];
|
|
1330
1330
|
return buildMentionCandidates(users, currentUserId);
|
|
1331
1331
|
}
|
|
1332
1332
|
function cachedAssistantMode(queryClient, conversationId, newMode) {
|
|
1333
1333
|
if (!conversationId) return newMode;
|
|
1334
1334
|
const threads = queryClient.getQueriesData(allConversationThreads).map(([, data]) => data).find((data) => data?.conversation_ext_id === conversationId);
|
|
1335
1335
|
if (threads?.assistant_mode) return threads.assistant_mode;
|
|
1336
|
-
return
|
|
1336
|
+
return chunkRB23E45O_cjs.findConversation(queryClient, conversationId)?.assistant_mode ?? "always";
|
|
1337
1337
|
}
|
|
1338
1338
|
function isCommentToPeople(queryClient, conversationId, content, candidates) {
|
|
1339
1339
|
const mentioned = chunkYBIW7T66_cjs.extractMentions(content, candidates);
|
|
1340
1340
|
if (mentioned.some((c) => c.kind === "assistant")) return false;
|
|
1341
|
-
if (
|
|
1341
|
+
if (chunkRB23E45O_cjs.isConversationShared(queryClient, conversationId)) return true;
|
|
1342
1342
|
if (mentioned.some((c) => c.kind === "user")) return true;
|
|
1343
|
-
return !!conversationId && cachedAssistantMode(queryClient, conversationId, "always") === "mentioned" && !
|
|
1343
|
+
return !!conversationId && cachedAssistantMode(queryClient, conversationId, "always") === "mentioned" && !chunkRB23E45O_cjs.isKnownSoloConversation(queryClient, conversationId);
|
|
1344
1344
|
}
|
|
1345
1345
|
function useMentionCandidates() {
|
|
1346
1346
|
const { data: users = [] } = useWorkspaceUsers();
|
|
1347
|
-
const currentUserId =
|
|
1347
|
+
const currentUserId = chunkFLAZSNC5_cjs.useArbiSession().user?.external_id;
|
|
1348
1348
|
return React.useMemo(() => buildMentionCandidates(users, currentUserId), [users, currentUserId]);
|
|
1349
1349
|
}
|
|
1350
1350
|
function useUserSettings(options) {
|
|
1351
1351
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
1352
1352
|
return reactQuery.useQuery({
|
|
1353
|
-
queryKey:
|
|
1353
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.userSettings(),
|
|
1354
1354
|
queryFn: () => arbi.settings.get(),
|
|
1355
1355
|
// Edited about once a month, and every write here patches the cache: no refetch on each mount.
|
|
1356
1356
|
staleTime: 30 * 60 * 1e3,
|
|
@@ -1363,18 +1363,18 @@ function useUpdateUserSettings() {
|
|
|
1363
1363
|
return reactQuery.useMutation({
|
|
1364
1364
|
mutationFn: (patch) => arbi.settings.update(patch),
|
|
1365
1365
|
onMutate: async (patch) => {
|
|
1366
|
-
await qc.cancelQueries({ queryKey:
|
|
1367
|
-
const previous = qc.getQueryData(
|
|
1366
|
+
await qc.cancelQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.userSettings() });
|
|
1367
|
+
const previous = qc.getQueryData(chunkRRWAX52L_cjs.arbiQueryKeys.userSettings());
|
|
1368
1368
|
qc.setQueryData(
|
|
1369
|
-
|
|
1369
|
+
chunkRRWAX52L_cjs.arbiQueryKeys.userSettings(),
|
|
1370
1370
|
(old) => old ? { ...old, ...patch } : old
|
|
1371
1371
|
);
|
|
1372
1372
|
return { previous };
|
|
1373
1373
|
},
|
|
1374
1374
|
onError: (_err, _patch, context) => {
|
|
1375
|
-
qc.setQueryData(
|
|
1375
|
+
qc.setQueryData(chunkRRWAX52L_cjs.arbiQueryKeys.userSettings(), context?.previous);
|
|
1376
1376
|
},
|
|
1377
|
-
onSettled: () => qc.invalidateQueries({ queryKey:
|
|
1377
|
+
onSettled: () => qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.userSettings() })
|
|
1378
1378
|
});
|
|
1379
1379
|
}
|
|
1380
1380
|
|
|
@@ -1401,7 +1401,7 @@ function formatConfigValidationError(error) {
|
|
|
1401
1401
|
function useConfigSchema() {
|
|
1402
1402
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
1403
1403
|
return reactQuery.useQuery({
|
|
1404
|
-
queryKey:
|
|
1404
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.configSchema(),
|
|
1405
1405
|
queryFn: () => arbi.agentConfig.getSchema(),
|
|
1406
1406
|
enabled: arbi.isLoggedIn
|
|
1407
1407
|
});
|
|
@@ -1412,8 +1412,8 @@ function useSaveConfig() {
|
|
|
1412
1412
|
return reactQuery.useMutation({
|
|
1413
1413
|
mutationFn: (body) => arbi.agentConfig.save(body),
|
|
1414
1414
|
onSuccess: () => {
|
|
1415
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
1416
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
1415
|
+
void queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.configs() });
|
|
1416
|
+
void queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.userSettings() });
|
|
1417
1417
|
},
|
|
1418
1418
|
onError: (error) => {
|
|
1419
1419
|
chunkVAMPYLQ4_cjs.notify.error(formatConfigValidationError(error), {
|
|
@@ -1427,7 +1427,7 @@ function useDeleteConfig() {
|
|
|
1427
1427
|
const queryClient = reactQuery.useQueryClient();
|
|
1428
1428
|
return reactQuery.useMutation({
|
|
1429
1429
|
mutationFn: (configId) => arbi.agentConfig.delete(configId),
|
|
1430
|
-
onSuccess: () => queryClient.invalidateQueries({ queryKey:
|
|
1430
|
+
onSuccess: () => queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.configs() })
|
|
1431
1431
|
});
|
|
1432
1432
|
}
|
|
1433
1433
|
function configDelta(active, defaults) {
|
|
@@ -1448,11 +1448,11 @@ function configDelta(active, defaults) {
|
|
|
1448
1448
|
}
|
|
1449
1449
|
function useSaveConfigField() {
|
|
1450
1450
|
const saveConfig = useSaveConfig();
|
|
1451
|
-
const { data: defaultConfig } =
|
|
1452
|
-
const chatModel =
|
|
1451
|
+
const { data: defaultConfig } = chunkFLAZSNC5_cjs.useConfig("default");
|
|
1452
|
+
const chatModel = chunkFLAZSNC5_cjs.useArbiSessionState((state) => state.chatModel);
|
|
1453
1453
|
const { data: userSettings } = useUserSettings();
|
|
1454
1454
|
const activeConfigId = chatModel || userSettings?.last_config || "default";
|
|
1455
|
-
const { data: activeConfigData } =
|
|
1455
|
+
const { data: activeConfigData } = chunkFLAZSNC5_cjs.useConfig(activeConfigId);
|
|
1456
1456
|
const buildDelta = (changes) => {
|
|
1457
1457
|
const defaults = defaultConfig ?? {};
|
|
1458
1458
|
const active = activeConfigData ?? {};
|
|
@@ -1490,8 +1490,8 @@ function pendingChatModelSave(session) {
|
|
|
1490
1490
|
return chatModelSaves.get(session);
|
|
1491
1491
|
}
|
|
1492
1492
|
function useApplyChatModel() {
|
|
1493
|
-
const session =
|
|
1494
|
-
const { data: availableModels } =
|
|
1493
|
+
const session = chunkFLAZSNC5_cjs.useArbiSessionStore();
|
|
1494
|
+
const { data: availableModels } = chunkFLAZSNC5_cjs.useAvailableModels();
|
|
1495
1495
|
const configField = useSaveConfigField();
|
|
1496
1496
|
return React.useCallback(
|
|
1497
1497
|
async (model, label) => {
|
|
@@ -1519,7 +1519,7 @@ function useApplyChatModel() {
|
|
|
1519
1519
|
// src/chat/thread-binding.ts
|
|
1520
1520
|
function threadBinding(queryClient, conversationId) {
|
|
1521
1521
|
if (!conversationId) return chunkYBIW7T66_cjs.UNBOUND;
|
|
1522
|
-
const row =
|
|
1522
|
+
const row = chunkRB23E45O_cjs.findConversation(queryClient, conversationId);
|
|
1523
1523
|
if (row) return chunkYBIW7T66_cjs.bindingOfRow(row);
|
|
1524
1524
|
const threads = queryClient.getQueryData(getThreadsQueryKey(conversationId));
|
|
1525
1525
|
return chunkYBIW7T66_cjs.bindingOfRow(threads ? { external_id: conversationId, ...threads } : null);
|
|
@@ -1532,7 +1532,7 @@ function cacheThreadBinding(queryClient, conversationId, binding) {
|
|
|
1532
1532
|
bound_document_ext_id: binding.documentId,
|
|
1533
1533
|
bound_document_unavailable: binding.unavailable
|
|
1534
1534
|
};
|
|
1535
|
-
|
|
1535
|
+
chunkRB23E45O_cjs.patchConversation(queryClient, conversationId, fields);
|
|
1536
1536
|
queryClient.setQueryData(
|
|
1537
1537
|
getThreadsQueryKey(conversationId),
|
|
1538
1538
|
(old) => old ? { ...old, ...fields } : old
|
|
@@ -1546,7 +1546,7 @@ async function bindThreadDocument(arbi, queryClient, conversationId, documentId)
|
|
|
1546
1546
|
const saved = await arbi.conversations.update(conversationId, {
|
|
1547
1547
|
bound_document_ext_id: documentId
|
|
1548
1548
|
});
|
|
1549
|
-
|
|
1549
|
+
chunkRB23E45O_cjs.patchConversation(queryClient, conversationId, saved);
|
|
1550
1550
|
cacheThreadBinding(queryClient, conversationId, chunkYBIW7T66_cjs.bindingOfRow(saved));
|
|
1551
1551
|
} catch (error) {
|
|
1552
1552
|
cacheThreadBinding(queryClient, conversationId, before);
|
|
@@ -1588,8 +1588,8 @@ function startsWith(key, prefix) {
|
|
|
1588
1588
|
return prefix.every((part, i) => key[i] === part);
|
|
1589
1589
|
}
|
|
1590
1590
|
function subscribeDocumentReads(qc, onRows) {
|
|
1591
|
-
const lists =
|
|
1592
|
-
const one =
|
|
1591
|
+
const lists = chunkRRWAX52L_cjs.arbiQueryKeys.allDocuments();
|
|
1592
|
+
const one = chunkRRWAX52L_cjs.arbiQueryKeys.document("").slice(0, -1);
|
|
1593
1593
|
return qc.getQueryCache().subscribe((event) => {
|
|
1594
1594
|
if (event.type !== "updated" || event.action.type !== "success") return;
|
|
1595
1595
|
const key = event.query.queryKey;
|
|
@@ -1607,10 +1607,10 @@ var useArbiWsStore = zustand.create((set) => ({
|
|
|
1607
1607
|
presence: {},
|
|
1608
1608
|
setStatus: (status) => set({ status }),
|
|
1609
1609
|
applyTaskUpdate: (msg) => set(
|
|
1610
|
-
(s) =>
|
|
1610
|
+
(s) => chunk4UDIA47U_cjs.isStaleTaskUpdate(s.tasks[msg.doc_ext_id], msg) ? s : { tasks: { ...s.tasks, [msg.doc_ext_id]: msg }, lastTaskUpdate: msg }
|
|
1611
1611
|
),
|
|
1612
1612
|
settleTasks: (rows) => set((s) => {
|
|
1613
|
-
const settled =
|
|
1613
|
+
const settled = chunk4UDIA47U_cjs.settledByRows(s.tasks, rows);
|
|
1614
1614
|
if (!settled.length) return s;
|
|
1615
1615
|
const tasks = { ...s.tasks };
|
|
1616
1616
|
for (const task of settled) tasks[task.doc_ext_id] = task;
|
|
@@ -1660,7 +1660,7 @@ function useDocumentPendingSync(docId) {
|
|
|
1660
1660
|
function applyOptimisticDocumentEdit(qc, updates) {
|
|
1661
1661
|
const byId = new Map(updates.map((update) => [update.external_id, update]));
|
|
1662
1662
|
const previous = [];
|
|
1663
|
-
|
|
1663
|
+
chunk4UDIA47U_cjs.patchDocuments(qc, (old) => {
|
|
1664
1664
|
let changed = false;
|
|
1665
1665
|
const next = old.map((doc) => {
|
|
1666
1666
|
const update = byId.get(doc.external_id);
|
|
@@ -1673,9 +1673,9 @@ function applyOptimisticDocumentEdit(qc, updates) {
|
|
|
1673
1673
|
});
|
|
1674
1674
|
const previousOwn = updates.map((update) => {
|
|
1675
1675
|
const own = qc.getQueryData(
|
|
1676
|
-
|
|
1676
|
+
chunkRRWAX52L_cjs.arbiQueryKeys.document(update.external_id)
|
|
1677
1677
|
);
|
|
1678
|
-
if (own)
|
|
1678
|
+
if (own) chunk4UDIA47U_cjs.setCachedDocument(qc, { ...own, ...update });
|
|
1679
1679
|
return [update.external_id, own];
|
|
1680
1680
|
});
|
|
1681
1681
|
return { optimistic: true, previous, previousOwn };
|
|
@@ -1685,38 +1685,38 @@ function rollbackOptimisticDocumentEdit(qc, context) {
|
|
|
1685
1685
|
if (!edit?.optimistic) return;
|
|
1686
1686
|
if (edit.previous.length) {
|
|
1687
1687
|
const restore = new Map(edit.previous.map((doc) => [doc.external_id, doc]));
|
|
1688
|
-
|
|
1688
|
+
chunk4UDIA47U_cjs.patchDocuments(
|
|
1689
1689
|
qc,
|
|
1690
1690
|
(old) => old.some((doc) => restore.has(doc.external_id)) ? old.map((doc) => restore.get(doc.external_id) ?? doc) : old
|
|
1691
1691
|
);
|
|
1692
1692
|
}
|
|
1693
|
-
for (const [id, own] of edit.previousOwn) qc.setQueryData(
|
|
1693
|
+
for (const [id, own] of edit.previousOwn) qc.setQueryData(chunkRRWAX52L_cjs.arbiQueryKeys.document(id), own);
|
|
1694
1694
|
}
|
|
1695
1695
|
function settleUpdatedDocuments(qc, updated) {
|
|
1696
1696
|
if (!updated.length) return;
|
|
1697
1697
|
const byId = new Map(updated.map((doc) => [doc.external_id, doc]));
|
|
1698
|
-
|
|
1698
|
+
chunk4UDIA47U_cjs.patchDocuments(
|
|
1699
1699
|
qc,
|
|
1700
1700
|
(old) => old.some((doc) => byId.has(doc.external_id)) ? old.map((doc) => byId.get(doc.external_id) ?? doc) : old
|
|
1701
1701
|
);
|
|
1702
|
-
for (const doc of updated)
|
|
1702
|
+
for (const doc of updated) chunk4UDIA47U_cjs.setCachedDocument(qc, doc);
|
|
1703
1703
|
}
|
|
1704
1704
|
function patchEachDocument(qc, docIds, reducer) {
|
|
1705
1705
|
const ids = new Set(docIds);
|
|
1706
|
-
|
|
1706
|
+
chunk4UDIA47U_cjs.patchDocuments(
|
|
1707
1707
|
qc,
|
|
1708
1708
|
(old) => old.some((doc) => ids.has(doc.external_id)) ? old.map((doc) => ids.has(doc.external_id) ? reducer(doc) : doc) : old
|
|
1709
1709
|
);
|
|
1710
|
-
for (const id of ids)
|
|
1710
|
+
for (const id of ids) chunk4UDIA47U_cjs.patchCachedDocument(qc, id, reducer);
|
|
1711
1711
|
}
|
|
1712
1712
|
function workspaceOf(qc, docId) {
|
|
1713
1713
|
for (const [, docs] of qc.getQueriesData({
|
|
1714
|
-
queryKey:
|
|
1714
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.allDocuments()
|
|
1715
1715
|
})) {
|
|
1716
1716
|
const doc = Array.isArray(docs) ? docs.find((d) => d.external_id === docId) : void 0;
|
|
1717
1717
|
if (doc) return doc.workspace_ext_id;
|
|
1718
1718
|
}
|
|
1719
|
-
return qc.getQueryData(
|
|
1719
|
+
return qc.getQueryData(chunkRRWAX52L_cjs.arbiQueryKeys.document(docId))?.workspace_ext_id;
|
|
1720
1720
|
}
|
|
1721
1721
|
function settleAssignedDocTags(qc, created) {
|
|
1722
1722
|
const byDoc = /* @__PURE__ */ new Map();
|
|
@@ -1734,13 +1734,13 @@ function settleAssignedDocTags(qc, created) {
|
|
|
1734
1734
|
...doc,
|
|
1735
1735
|
doctags: [...doc.doctags ?? [], ...byDoc.get(doc.external_id) ?? []]
|
|
1736
1736
|
}));
|
|
1737
|
-
for (const [workspaceId, delta] of workspaces)
|
|
1737
|
+
for (const [workspaceId, delta] of workspaces) chunk4UDIA47U_cjs.adjustTagCounts(qc, workspaceId, delta);
|
|
1738
1738
|
}
|
|
1739
1739
|
function settleRemovedDocTags(qc, { tagId, docIds }) {
|
|
1740
1740
|
const ids = new Set(docIds);
|
|
1741
1741
|
const removedByWorkspace = /* @__PURE__ */ new Map();
|
|
1742
1742
|
for (const [, docs] of qc.getQueriesData({
|
|
1743
|
-
queryKey:
|
|
1743
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.allDocuments()
|
|
1744
1744
|
})) {
|
|
1745
1745
|
for (const doc of Array.isArray(docs) ? docs : []) {
|
|
1746
1746
|
if (!ids.has(doc.external_id)) continue;
|
|
@@ -1756,7 +1756,7 @@ function settleRemovedDocTags(qc, { tagId, docIds }) {
|
|
|
1756
1756
|
doctags: (doc.doctags ?? []).filter((dt) => dt.tag_ext_id !== tagId)
|
|
1757
1757
|
}));
|
|
1758
1758
|
for (const [workspaceId, removed] of removedByWorkspace)
|
|
1759
|
-
|
|
1759
|
+
chunk4UDIA47U_cjs.adjustTagCounts(qc, workspaceId, /* @__PURE__ */ new Map([[tagId, -removed]]));
|
|
1760
1760
|
}
|
|
1761
1761
|
function settleUpdatedDocTag(qc, updated) {
|
|
1762
1762
|
patchEachDocument(qc, [updated.doc_ext_id], (doc) => ({
|
|
@@ -1766,22 +1766,22 @@ function settleUpdatedDocTag(qc, updated) {
|
|
|
1766
1766
|
}
|
|
1767
1767
|
var replayableDocumentMutations = [
|
|
1768
1768
|
{
|
|
1769
|
-
mutationKey:
|
|
1769
|
+
mutationKey: chunkRRWAX52L_cjs.arbiMutationKeys.updateDocuments(),
|
|
1770
1770
|
run: (client, input) => browser.documents.updateDocuments(client, input.documents),
|
|
1771
1771
|
settle: (qc, updated) => settleUpdatedDocuments(qc, updated)
|
|
1772
1772
|
},
|
|
1773
1773
|
{
|
|
1774
|
-
mutationKey:
|
|
1774
|
+
mutationKey: chunkRRWAX52L_cjs.arbiMutationKeys.assignDocTags(),
|
|
1775
1775
|
run: (client, input) => browser.doctags.assignDocTags(client, input.tagId, input.docIds, input.note, input.citations),
|
|
1776
1776
|
settle: (qc, created) => settleAssignedDocTags(qc, created)
|
|
1777
1777
|
},
|
|
1778
1778
|
{
|
|
1779
|
-
mutationKey:
|
|
1779
|
+
mutationKey: chunkRRWAX52L_cjs.arbiMutationKeys.removeDocTags(),
|
|
1780
1780
|
run: (client, input) => browser.doctags.removeDocTags(client, input.tagId, input.docIds),
|
|
1781
1781
|
settle: (qc, _data, input) => settleRemovedDocTags(qc, input)
|
|
1782
1782
|
},
|
|
1783
1783
|
{
|
|
1784
|
-
mutationKey:
|
|
1784
|
+
mutationKey: chunkRRWAX52L_cjs.arbiMutationKeys.updateDocTag(),
|
|
1785
1785
|
run: (client, input) => browser.doctags.updateDocTag(client, input.tagId, input.docId, {
|
|
1786
1786
|
note: input.note,
|
|
1787
1787
|
citations: input.citations
|
|
@@ -1804,7 +1804,7 @@ function useUpdateDocuments() {
|
|
|
1804
1804
|
const qc = reactQuery.useQueryClient();
|
|
1805
1805
|
return resolvingOffline(
|
|
1806
1806
|
reactQuery.useMutation({
|
|
1807
|
-
mutationKey:
|
|
1807
|
+
mutationKey: chunkRRWAX52L_cjs.arbiMutationKeys.updateDocuments(),
|
|
1808
1808
|
mutationFn: ({ documents: documents2 }) => arbi.documents.update(documents2),
|
|
1809
1809
|
onMutate: ({ documents: documents2 }) => reactQuery.onlineManager.isOnline() || !documents2.length ? void 0 : applyOptimisticDocumentEdit(qc, documents2),
|
|
1810
1810
|
onError: (_error, _input, context) => rollbackOptimisticDocumentEdit(qc, context),
|
|
@@ -1832,7 +1832,7 @@ function useRenameFolder() {
|
|
|
1832
1832
|
return folder === void 0 ? [] : [{ external_id: doc.external_id, folder }];
|
|
1833
1833
|
});
|
|
1834
1834
|
if (updates.length > 0) await mutateAsync({ documents: updates });
|
|
1835
|
-
|
|
1835
|
+
chunk4UDIA47U_cjs.patchDocuments(qc, (rows) => {
|
|
1836
1836
|
let changed = false;
|
|
1837
1837
|
const next = rows.map((doc) => {
|
|
1838
1838
|
const folder = moved(doc.folder);
|
|
@@ -1852,30 +1852,30 @@ function useDeleteDocuments() {
|
|
|
1852
1852
|
const qc = reactQuery.useQueryClient();
|
|
1853
1853
|
const { onDocumentsDeleted } = useDocumentsSupport();
|
|
1854
1854
|
return reactQuery.useMutation({
|
|
1855
|
-
mutationKey:
|
|
1855
|
+
mutationKey: chunkRRWAX52L_cjs.arbiMutationKeys.deleteDocuments(),
|
|
1856
1856
|
mutationFn: (docIds) => arbi.documents.delete(docIds),
|
|
1857
1857
|
onSuccess: (_data, docIds) => {
|
|
1858
1858
|
const gone = new Set(docIds);
|
|
1859
|
-
|
|
1859
|
+
chunk4UDIA47U_cjs.patchDocuments(
|
|
1860
1860
|
qc,
|
|
1861
1861
|
(old) => old.some((doc) => gone.has(doc.external_id)) ? old.filter((doc) => !gone.has(doc.external_id)) : old
|
|
1862
1862
|
);
|
|
1863
|
-
|
|
1863
|
+
chunk4UDIA47U_cjs.forgetDocuments(qc, docIds);
|
|
1864
1864
|
onDocumentsDeleted?.(docIds);
|
|
1865
|
-
return qc.invalidateQueries({ queryKey:
|
|
1865
|
+
return qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.workspaces() });
|
|
1866
1866
|
}
|
|
1867
1867
|
});
|
|
1868
1868
|
}
|
|
1869
1869
|
async function settleUpload(qc, arbi, docIds, processingTask) {
|
|
1870
|
-
if (docIds?.length) await
|
|
1871
|
-
await qc.invalidateQueries({ queryKey:
|
|
1870
|
+
if (docIds?.length) await chunk4UDIA47U_cjs.refreshDocuments(qc, arbi, docIds, { processingTask });
|
|
1871
|
+
await qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.workspaces() });
|
|
1872
1872
|
}
|
|
1873
1873
|
function useUploadDocuments() {
|
|
1874
1874
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
1875
1875
|
const qc = reactQuery.useQueryClient();
|
|
1876
1876
|
const { processingTask } = useDocumentsSupport();
|
|
1877
1877
|
return reactQuery.useMutation({
|
|
1878
|
-
mutationKey:
|
|
1878
|
+
mutationKey: chunkRRWAX52L_cjs.arbiMutationKeys.uploadDocuments(),
|
|
1879
1879
|
mutationFn: ({ files, options }) => arbi.documents.upload(files, options),
|
|
1880
1880
|
onSuccess: (result) => settleUpload(qc, arbi, result.doc_ext_ids, processingTask)
|
|
1881
1881
|
});
|
|
@@ -1885,7 +1885,7 @@ function useUploadUrls() {
|
|
|
1885
1885
|
const qc = reactQuery.useQueryClient();
|
|
1886
1886
|
const { processingTask } = useDocumentsSupport();
|
|
1887
1887
|
return reactQuery.useMutation({
|
|
1888
|
-
mutationKey:
|
|
1888
|
+
mutationKey: chunkRRWAX52L_cjs.arbiMutationKeys.uploadUrls(),
|
|
1889
1889
|
mutationFn: ({ urls, shared, configExtId }) => arbi.documents.uploadUrl(urls, { shared, configExtId }),
|
|
1890
1890
|
onSuccess: (result) => settleUpload(qc, arbi, result.doc_ext_ids, processingTask)
|
|
1891
1891
|
});
|
|
@@ -1895,7 +1895,7 @@ function useAssignDocTags() {
|
|
|
1895
1895
|
const qc = reactQuery.useQueryClient();
|
|
1896
1896
|
return resolvingOffline(
|
|
1897
1897
|
reactQuery.useMutation({
|
|
1898
|
-
mutationKey:
|
|
1898
|
+
mutationKey: chunkRRWAX52L_cjs.arbiMutationKeys.assignDocTags(),
|
|
1899
1899
|
mutationFn: ({ tagId, docIds, note, citations }) => arbi.doctags.assign(tagId, docIds, note, citations),
|
|
1900
1900
|
onSuccess: (created) => settleAssignedDocTags(qc, created)
|
|
1901
1901
|
})
|
|
@@ -1906,7 +1906,7 @@ function useRemoveDocTags() {
|
|
|
1906
1906
|
const qc = reactQuery.useQueryClient();
|
|
1907
1907
|
return resolvingOffline(
|
|
1908
1908
|
reactQuery.useMutation({
|
|
1909
|
-
mutationKey:
|
|
1909
|
+
mutationKey: chunkRRWAX52L_cjs.arbiMutationKeys.removeDocTags(),
|
|
1910
1910
|
mutationFn: ({ tagId, docIds }) => arbi.doctags.remove(tagId, docIds),
|
|
1911
1911
|
onSuccess: (_data, input) => settleRemovedDocTags(qc, input)
|
|
1912
1912
|
})
|
|
@@ -1917,7 +1917,7 @@ function useUpdateDocTag() {
|
|
|
1917
1917
|
const qc = reactQuery.useQueryClient();
|
|
1918
1918
|
return resolvingOffline(
|
|
1919
1919
|
reactQuery.useMutation({
|
|
1920
|
-
mutationKey:
|
|
1920
|
+
mutationKey: chunkRRWAX52L_cjs.arbiMutationKeys.updateDocTag(),
|
|
1921
1921
|
mutationFn: ({ tagId, docId, note, citations }) => arbi.doctags.update(tagId, docId, { note, citations }),
|
|
1922
1922
|
onSuccess: (updated) => settleUpdatedDocTag(qc, updated)
|
|
1923
1923
|
})
|
|
@@ -1928,13 +1928,13 @@ function useGenerateDocTags() {
|
|
|
1928
1928
|
const qc = reactQuery.useQueryClient();
|
|
1929
1929
|
const { onProcessingQueued } = useDocumentsSupport();
|
|
1930
1930
|
return reactQuery.useMutation({
|
|
1931
|
-
mutationKey:
|
|
1931
|
+
mutationKey: chunkRRWAX52L_cjs.arbiMutationKeys.generateDocTags(),
|
|
1932
1932
|
mutationFn: ({ tagIds, docIds, overwrite }) => arbi.doctags.generate(tagIds, docIds, { overwrite }),
|
|
1933
1933
|
onMutate: ({ docIds }) => {
|
|
1934
1934
|
if (!onProcessingQueued || !docIds.length) return void 0;
|
|
1935
1935
|
const workspaceId = arbi.hasWorkspace ? arbi.getWorkspaceId() : "";
|
|
1936
1936
|
const listed = new Map(
|
|
1937
|
-
(
|
|
1937
|
+
(chunk4UDIA47U_cjs.getCachedDocuments(qc, workspaceId) ?? []).map((doc) => [doc.external_id, doc])
|
|
1938
1938
|
);
|
|
1939
1939
|
return {
|
|
1940
1940
|
undo: onProcessingQueued(
|
|
@@ -1956,7 +1956,7 @@ function useFinaliseTranslation() {
|
|
|
1956
1956
|
const { processingTask } = useDocumentsSupport();
|
|
1957
1957
|
return reactQuery.useMutation({
|
|
1958
1958
|
mutationFn: (docId) => arbi.documents.finaliseTranslation(docId),
|
|
1959
|
-
onSuccess: (result) => void
|
|
1959
|
+
onSuccess: (result) => void chunk4UDIA47U_cjs.refreshDocuments(qc, arbi, [result.document_ext_id], { processingTask })
|
|
1960
1960
|
});
|
|
1961
1961
|
}
|
|
1962
1962
|
|
|
@@ -2011,7 +2011,7 @@ function useDownloadDocuments({ workspaceName } = {}) {
|
|
|
2011
2011
|
const [isDownloading, setIsDownloading] = React.useState(false);
|
|
2012
2012
|
const fetchNamedFile = React.useCallback(
|
|
2013
2013
|
async (doc) => {
|
|
2014
|
-
const blob = await
|
|
2014
|
+
const blob = await chunkCZP7FF3E_cjs.fetchDocumentFile(arbi.getClient().fetch, doc.external_id);
|
|
2015
2015
|
return { blob, name: blob instanceof File && blob.name ? blob.name : fallbackFileName(doc) };
|
|
2016
2016
|
},
|
|
2017
2017
|
[arbi]
|
|
@@ -2053,7 +2053,7 @@ function useDownloadDocuments({ workspaceName } = {}) {
|
|
|
2053
2053
|
);
|
|
2054
2054
|
}
|
|
2055
2055
|
const zipFileName = archiveName(workspaceName, `${successCount}_documents`);
|
|
2056
|
-
|
|
2056
|
+
chunkCZP7FF3E_cjs.downloadBlob(await zip.generateAsync({ type: "blob" }), zipFileName);
|
|
2057
2057
|
const documentsLabel = `${successCount} document${successCount !== 1 ? "s" : ""}`;
|
|
2058
2058
|
const contents = includeMetadataCsv ? `${documentsLabel} and index.csv in ${zipFileName}` : `${documentsLabel} in ${zipFileName}`;
|
|
2059
2059
|
if (failedDocs.length === 0) chunkVAMPYLQ4_cjs.notify.success(`Successfully downloaded ${contents}`);
|
|
@@ -2072,7 +2072,7 @@ function useDownloadDocuments({ workspaceName } = {}) {
|
|
|
2072
2072
|
setIsDownloading(true);
|
|
2073
2073
|
try {
|
|
2074
2074
|
const file = await fetchNamedFile(doc);
|
|
2075
|
-
|
|
2075
|
+
chunkCZP7FF3E_cjs.downloadBlob(file.blob, file.name);
|
|
2076
2076
|
chunkVAMPYLQ4_cjs.notify.success(`Successfully downloaded ${file.name}`);
|
|
2077
2077
|
} catch (error) {
|
|
2078
2078
|
console.error("Failed to download document", error);
|
|
@@ -2142,7 +2142,7 @@ function useDocumentThumbnails(visibleIds) {
|
|
|
2142
2142
|
for (const id of visibleIds)
|
|
2143
2143
|
if (IN_PROGRESS.has(tasks[id]?.status ?? "")) resolvedRef.current.delete(id);
|
|
2144
2144
|
const ready = visibleIds.filter(
|
|
2145
|
-
(id) => !resolvedRef.current.has(id) &&
|
|
2145
|
+
(id) => !resolvedRef.current.has(id) && chunk4UDIA47U_cjs.FINISHED_DOCUMENT_STATUSES.has(tasks[id]?.status ?? "")
|
|
2146
2146
|
);
|
|
2147
2147
|
if (ready.length > 0) void fetchMissing(ready);
|
|
2148
2148
|
}, [tasks, idsKey, fetchMissing]);
|
|
@@ -2234,8 +2234,8 @@ function DocumentReview({
|
|
|
2234
2234
|
onClose,
|
|
2235
2235
|
className
|
|
2236
2236
|
}) {
|
|
2237
|
-
const parsedQuery =
|
|
2238
|
-
const tagsQuery =
|
|
2237
|
+
const parsedQuery = chunkFLAZSNC5_cjs.useParsedDocument(docId, stage);
|
|
2238
|
+
const tagsQuery = chunkFLAZSNC5_cjs.useTags(workspaceId);
|
|
2239
2239
|
const tagNameById = React__default.default.useMemo(() => {
|
|
2240
2240
|
const map = /* @__PURE__ */ new Map();
|
|
2241
2241
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -3207,7 +3207,7 @@ function useUploadFiles() {
|
|
|
3207
3207
|
if (docIds2.length > 0) {
|
|
3208
3208
|
for (const docId of docIds2) uploadedFolders.set(docId, { workspaceId, folder });
|
|
3209
3209
|
const made = new Set(docIds2);
|
|
3210
|
-
|
|
3210
|
+
chunk4UDIA47U_cjs.patchDocuments(
|
|
3211
3211
|
qc,
|
|
3212
3212
|
(rows) => rows.map((doc) => made.has(doc.external_id) ? { ...doc, folder } : doc),
|
|
3213
3213
|
workspaceId
|
|
@@ -3223,10 +3223,10 @@ function useUploadFiles() {
|
|
|
3223
3223
|
const docIds = results.flatMap((result) => result.doc_ext_ids ?? []);
|
|
3224
3224
|
const skipped = results.flatMap((result) => result.skipped ?? []);
|
|
3225
3225
|
if (docIds.length > 0) {
|
|
3226
|
-
const read = await
|
|
3226
|
+
const read = await chunk4UDIA47U_cjs.refreshDocuments(qc, arbi, docIds, { processingTask });
|
|
3227
3227
|
for (const doc of read) forgetUploadedDocumentFolder(doc.external_id);
|
|
3228
3228
|
}
|
|
3229
|
-
await qc.invalidateQueries({ queryKey:
|
|
3229
|
+
await qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.workspaces() });
|
|
3230
3230
|
if (docIds.length > 0 && input.generateTagIds?.length) {
|
|
3231
3231
|
await generateDocTags({ tagIds: input.generateTagIds, docIds, overwrite: false }).catch(
|
|
3232
3232
|
() => void 0
|
|
@@ -3310,7 +3310,7 @@ function getRelatedLabels(related) {
|
|
|
3310
3310
|
return parts;
|
|
3311
3311
|
}
|
|
3312
3312
|
function useRelatedDocuments(documents2) {
|
|
3313
|
-
const { data: similarData } =
|
|
3313
|
+
const { data: similarData } = chunk4UDIA47U_cjs.useSimilarDocuments();
|
|
3314
3314
|
const structuralKey = React.useMemo(() => {
|
|
3315
3315
|
const parts = [];
|
|
3316
3316
|
for (const doc of documents2) {
|
|
@@ -3390,7 +3390,7 @@ function useRelatedDocuments(documents2) {
|
|
|
3390
3390
|
}
|
|
3391
3391
|
if (similarData?.pairs) {
|
|
3392
3392
|
for (const pair of similarData.pairs) {
|
|
3393
|
-
if (pair.similarity <
|
|
3393
|
+
if (pair.similarity < chunk4UDIA47U_cjs.SIMILARITY_THRESHOLD || pair.similarity >= 1) continue;
|
|
3394
3394
|
const docA = docById.get(pair.doc_a.external_id);
|
|
3395
3395
|
const docB = docById.get(pair.doc_b.external_id);
|
|
3396
3396
|
if (docA && docB) {
|
|
@@ -3423,11 +3423,11 @@ function createStreamHandlers(ctx, params) {
|
|
|
3423
3423
|
const clientId = streamState.queuedClientId;
|
|
3424
3424
|
if (!clientId || queuedEntryRetired) return;
|
|
3425
3425
|
queuedEntryRetired = true;
|
|
3426
|
-
const entry =
|
|
3426
|
+
const entry = chunkFLAZSNC5_cjs.queuedMessages.find(session.getState().queuedMessages, clientId);
|
|
3427
3427
|
if (!entry) return;
|
|
3428
3428
|
const remainingVisibility = Math.max(
|
|
3429
3429
|
0,
|
|
3430
|
-
|
|
3430
|
+
chunkFLAZSNC5_cjs.MIN_QUEUED_MESSAGE_VISIBILITY_MS - (Date.now() - entry.createdAt)
|
|
3431
3431
|
);
|
|
3432
3432
|
if (remainingVisibility === 0) {
|
|
3433
3433
|
session.removeQueuedMessage(clientId);
|
|
@@ -3443,7 +3443,7 @@ function createStreamHandlers(ctx, params) {
|
|
|
3443
3443
|
session.moveConversation("new", serverConversationId);
|
|
3444
3444
|
const userExtId = ctx.userId();
|
|
3445
3445
|
const nowIso = (/* @__PURE__ */ new Date()).toISOString();
|
|
3446
|
-
|
|
3446
|
+
chunkRB23E45O_cjs.patchConversationList(
|
|
3447
3447
|
queryClient,
|
|
3448
3448
|
session.getState().workspaceId,
|
|
3449
3449
|
(old) => old.some((c) => c.external_id === serverConversationId) ? old : [
|
|
@@ -3565,7 +3565,7 @@ function createStreamHandlers(ctx, params) {
|
|
|
3565
3565
|
ensureAssistantMessageLoading(queryClient, conversationId, answerId);
|
|
3566
3566
|
});
|
|
3567
3567
|
}
|
|
3568
|
-
void
|
|
3568
|
+
void chunkRB23E45O_cjs.invalidateConversationLists(queryClient);
|
|
3569
3569
|
session.setCursor(streamState.assistantId);
|
|
3570
3570
|
};
|
|
3571
3571
|
let firstTokenSeen = false;
|
|
@@ -3738,8 +3738,8 @@ function createStreamHandlers(ctx, params) {
|
|
|
3738
3738
|
}
|
|
3739
3739
|
if (streamState.factsTouched) {
|
|
3740
3740
|
streamState.factsTouched = false;
|
|
3741
|
-
queryClient.invalidateQueries({ queryKey:
|
|
3742
|
-
queryClient.invalidateQueries({ queryKey:
|
|
3741
|
+
queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.allFacts(), refetchType: "all" });
|
|
3742
|
+
queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.allTags(), refetchType: "all" });
|
|
3743
3743
|
}
|
|
3744
3744
|
};
|
|
3745
3745
|
return {
|
|
@@ -3764,7 +3764,7 @@ function createStreamHandlers(ctx, params) {
|
|
|
3764
3764
|
}
|
|
3765
3765
|
function useStreamHandlers() {
|
|
3766
3766
|
const queryClient = reactQuery.useQueryClient();
|
|
3767
|
-
const session =
|
|
3767
|
+
const session = chunkFLAZSNC5_cjs.useArbiSessionStore();
|
|
3768
3768
|
const config = chunkQQ7SCJRY_cjs.useArbiHost();
|
|
3769
3769
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
3770
3770
|
return React.useCallback(
|
|
@@ -3780,7 +3780,7 @@ function useStreamHandlers() {
|
|
|
3780
3780
|
return "";
|
|
3781
3781
|
}
|
|
3782
3782
|
},
|
|
3783
|
-
refreshDocuments: (ids) =>
|
|
3783
|
+
refreshDocuments: (ids) => chunk4UDIA47U_cjs.refreshDocuments(queryClient, arbi, ids, config.documents)
|
|
3784
3784
|
},
|
|
3785
3785
|
params
|
|
3786
3786
|
),
|
|
@@ -3842,10 +3842,10 @@ function disconnectAttachedRun(conversationId, responseId) {
|
|
|
3842
3842
|
}
|
|
3843
3843
|
function cachedQuotaUsedUp(queryClient, workspaceId) {
|
|
3844
3844
|
if (!workspaceId) return null;
|
|
3845
|
-
const workspaces = queryClient.getQueryData(
|
|
3845
|
+
const workspaces = queryClient.getQueryData(chunkRRWAX52L_cjs.arbiQueryKeys.workspaces());
|
|
3846
3846
|
const projectExtId = workspaces?.find((w) => w.external_id === workspaceId)?.project_ext_id;
|
|
3847
3847
|
if (!projectExtId) return null;
|
|
3848
|
-
const projects = queryClient.getQueryData(
|
|
3848
|
+
const projects = queryClient.getQueryData(chunkRRWAX52L_cjs.arbiQueryKeys.projects());
|
|
3849
3849
|
const project = projects?.find((p) => p.external_id === projectExtId);
|
|
3850
3850
|
if (!project) return null;
|
|
3851
3851
|
const used = project.quotas?.ai_usage?.used ?? 0;
|
|
@@ -3857,7 +3857,7 @@ function cachedQuotaUsedUp(queryClient, workspaceId) {
|
|
|
3857
3857
|
// src/chat/useConversationActions.ts
|
|
3858
3858
|
var RECONCILE_TIMEOUT_MS = 5e3;
|
|
3859
3859
|
function draftAfterSend(queryClient, session, wasComment) {
|
|
3860
|
-
const shared =
|
|
3860
|
+
const shared = chunkRB23E45O_cjs.isConversationShared(queryClient, session.getState().conversationId);
|
|
3861
3861
|
return shared && !wasComment ? `@${ASSISTANT_MENTION_LABEL} ` : "";
|
|
3862
3862
|
}
|
|
3863
3863
|
function failQueuedContinuation(queryClient, session, streamState) {
|
|
@@ -3890,10 +3890,10 @@ function useConversationActions({
|
|
|
3890
3890
|
lastFailedMessage
|
|
3891
3891
|
}) {
|
|
3892
3892
|
const queryClient = reactQuery.useQueryClient();
|
|
3893
|
-
const session =
|
|
3893
|
+
const session = chunkFLAZSNC5_cjs.useArbiSessionStore();
|
|
3894
3894
|
const currentConversationId = conversationKey2 === "new" ? null : conversationKey2;
|
|
3895
3895
|
const invalidateUserWorkspaces = React.useCallback(
|
|
3896
|
-
() => void queryClient.invalidateQueries({ queryKey:
|
|
3896
|
+
() => void queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.workspaces() }),
|
|
3897
3897
|
[queryClient]
|
|
3898
3898
|
);
|
|
3899
3899
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
@@ -3946,7 +3946,7 @@ function useConversationActions({
|
|
|
3946
3946
|
const bindTo = session.getState().newChatDocumentId;
|
|
3947
3947
|
session.moveConversation("new", conversationId);
|
|
3948
3948
|
if (bindTo) session.setNewChatDocumentId(null);
|
|
3949
|
-
|
|
3949
|
+
chunkRB23E45O_cjs.patchConversationList(queryClient, session.getState().workspaceId, (old) => [
|
|
3950
3950
|
{
|
|
3951
3951
|
external_id: conversationId,
|
|
3952
3952
|
title: content.slice(0, 40),
|
|
@@ -3968,14 +3968,14 @@ function useConversationActions({
|
|
|
3968
3968
|
);
|
|
3969
3969
|
invalidateUserWorkspaces();
|
|
3970
3970
|
} else {
|
|
3971
|
-
|
|
3971
|
+
chunkRB23E45O_cjs.patchConversation(queryClient, conversationId, (c) => ({
|
|
3972
3972
|
...c,
|
|
3973
3973
|
message_count: c.message_count + 1,
|
|
3974
3974
|
updated_at: nowIso
|
|
3975
3975
|
}));
|
|
3976
3976
|
}
|
|
3977
3977
|
if (mentions.some((m) => m.type === "user")) {
|
|
3978
|
-
await
|
|
3978
|
+
await chunkRB23E45O_cjs.invalidateConversationLists(queryClient);
|
|
3979
3979
|
}
|
|
3980
3980
|
await queryClient.invalidateQueries({ queryKey: getThreadsQueryKey(conversationId) });
|
|
3981
3981
|
session.setCursor(saved.external_id);
|
|
@@ -3983,7 +3983,7 @@ function useConversationActions({
|
|
|
3983
3983
|
chunkVAMPYLQ4_cjs.notify.error(
|
|
3984
3984
|
error instanceof browser.ArbiApiError && error.detail || "Failed to post the message"
|
|
3985
3985
|
);
|
|
3986
|
-
if (!
|
|
3986
|
+
if (!chunkFLAZSNC5_cjs.selectDraft(session.getState())) session.setDraft(content);
|
|
3987
3987
|
}
|
|
3988
3988
|
},
|
|
3989
3989
|
[arbi, session, queryClient, invalidateUserWorkspaces]
|
|
@@ -4012,7 +4012,7 @@ function useConversationActions({
|
|
|
4012
4012
|
const documentIds = (state.conversationDocuments[convKey] || []).map((doc) => doc.docId);
|
|
4013
4013
|
const factIds = [...state.conversationFacts[convKey] || []];
|
|
4014
4014
|
const newConfigId = state.chatModel;
|
|
4015
|
-
const cachedSettings = queryClient.getQueriesData({ queryKey:
|
|
4015
|
+
const cachedSettings = queryClient.getQueriesData({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.userSettings() }).map(([, data]) => data).find((data) => data?.last_config);
|
|
4016
4016
|
const lastConfigId = cachedSettings?.last_config;
|
|
4017
4017
|
const resolvedConfigId = newConfigId || (agentExtId ? void 0 : lastConfigId);
|
|
4018
4018
|
const isPaMode = !agentExtId && state.paMode;
|
|
@@ -4048,7 +4048,7 @@ function useConversationActions({
|
|
|
4048
4048
|
session.setConversationGenerating(convKey, true, abortController);
|
|
4049
4049
|
}
|
|
4050
4050
|
if (!queuedContinuation) {
|
|
4051
|
-
|
|
4051
|
+
chunkRB23E45O_cjs.patchConversation(queryClient, convKey, { last_message_status: "in_progress" });
|
|
4052
4052
|
}
|
|
4053
4053
|
const streamState = {
|
|
4054
4054
|
conversationId: convKey,
|
|
@@ -4086,7 +4086,7 @@ function useConversationActions({
|
|
|
4086
4086
|
handlers.onUserMessage = (message) => {
|
|
4087
4087
|
if (message.conversation_ext_id) {
|
|
4088
4088
|
session.setAgentChatOwner(message.conversation_ext_id, agentExtId);
|
|
4089
|
-
queryClient.invalidateQueries({ queryKey:
|
|
4089
|
+
queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.agentChats(agentExtId) });
|
|
4090
4090
|
}
|
|
4091
4091
|
onUserMessage(message);
|
|
4092
4092
|
};
|
|
@@ -4137,7 +4137,7 @@ function useConversationActions({
|
|
|
4137
4137
|
void queryClient.invalidateQueries({
|
|
4138
4138
|
queryKey: getThreadsQueryKey(streamState.conversationId)
|
|
4139
4139
|
});
|
|
4140
|
-
void
|
|
4140
|
+
void chunkRB23E45O_cjs.invalidateConversationLists(queryClient);
|
|
4141
4141
|
}
|
|
4142
4142
|
return;
|
|
4143
4143
|
}
|
|
@@ -4145,7 +4145,7 @@ function useConversationActions({
|
|
|
4145
4145
|
if (ownsGeneration) {
|
|
4146
4146
|
session.setConversationGenerating(streamState.conversationId, false, null);
|
|
4147
4147
|
}
|
|
4148
|
-
queryClient.invalidateQueries({ queryKey:
|
|
4148
|
+
queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.userUsageToday() });
|
|
4149
4149
|
if (streamState.deferredInterjections.length > 0) {
|
|
4150
4150
|
const followUp = streamState.deferredInterjections.join("\n\n");
|
|
4151
4151
|
const threadParent = streamState.assistantId;
|
|
@@ -4156,7 +4156,7 @@ function useConversationActions({
|
|
|
4156
4156
|
}
|
|
4157
4157
|
if (ownsGeneration) {
|
|
4158
4158
|
const lastStatus = streamState.serverError ? "failed" : "completed";
|
|
4159
|
-
|
|
4159
|
+
chunkRB23E45O_cjs.patchConversation(queryClient, streamState.conversationId, {
|
|
4160
4160
|
last_message_status: lastStatus
|
|
4161
4161
|
});
|
|
4162
4162
|
}
|
|
@@ -4189,7 +4189,7 @@ function useConversationActions({
|
|
|
4189
4189
|
});
|
|
4190
4190
|
if (ownsActiveGeneration()) {
|
|
4191
4191
|
session.setConversationGenerating(streamState.conversationId, false, null);
|
|
4192
|
-
|
|
4192
|
+
chunkRB23E45O_cjs.patchConversation(queryClient, streamState.conversationId, {
|
|
4193
4193
|
last_message_status: "completed"
|
|
4194
4194
|
});
|
|
4195
4195
|
}
|
|
@@ -4212,10 +4212,10 @@ function useConversationActions({
|
|
|
4212
4212
|
if (ownsActiveGeneration()) {
|
|
4213
4213
|
session.setConversationGenerating(streamState.conversationId, false, null);
|
|
4214
4214
|
}
|
|
4215
|
-
void
|
|
4215
|
+
void chunkRB23E45O_cjs.invalidateConversationLists(queryClient);
|
|
4216
4216
|
return;
|
|
4217
4217
|
}
|
|
4218
|
-
|
|
4218
|
+
chunkRB23E45O_cjs.patchConversation(queryClient, streamState.conversationId, {
|
|
4219
4219
|
last_message_status: "failed"
|
|
4220
4220
|
});
|
|
4221
4221
|
const quota = browser.quotaFromStreamError(error) ?? cachedQuotaUsedUp(queryClient, session.getState().workspaceId);
|
|
@@ -4250,7 +4250,7 @@ function useConversationActions({
|
|
|
4250
4250
|
);
|
|
4251
4251
|
const handleSendMessage = React.useCallback(
|
|
4252
4252
|
async (options) => {
|
|
4253
|
-
const currentMessage =
|
|
4253
|
+
const currentMessage = chunkFLAZSNC5_cjs.selectDraft(session.getState()).trim();
|
|
4254
4254
|
if (!selectedWorkspaceId || !chunkYBIW7T66_cjs.hasMessageBody(currentMessage)) return;
|
|
4255
4255
|
session.setSuggestedQuery(null);
|
|
4256
4256
|
if (refuseChatWhenOffline()) return;
|
|
@@ -4361,7 +4361,7 @@ function useConversationActions({
|
|
|
4361
4361
|
if (!replyTo && currentConversationId) {
|
|
4362
4362
|
try {
|
|
4363
4363
|
await arbi.conversations.delete(currentConversationId);
|
|
4364
|
-
|
|
4364
|
+
chunkRB23E45O_cjs.removeConversationFromLists(queryClient, currentConversationId);
|
|
4365
4365
|
session.startNewConversation();
|
|
4366
4366
|
} catch (error) {
|
|
4367
4367
|
console.error("Failed to delete conversation with orphaned first message:", error);
|
|
@@ -4429,16 +4429,16 @@ function selectThread(session, leafId) {
|
|
|
4429
4429
|
if (session.getState().cursor !== leafId) session.setCursor(leafId);
|
|
4430
4430
|
}
|
|
4431
4431
|
function useConversationData() {
|
|
4432
|
-
const session =
|
|
4433
|
-
const selectedWorkspaceId =
|
|
4434
|
-
const currentConversationId =
|
|
4435
|
-
const parentMessageId =
|
|
4436
|
-
const deepLinkMessageId =
|
|
4432
|
+
const session = chunkFLAZSNC5_cjs.useArbiSessionStore();
|
|
4433
|
+
const selectedWorkspaceId = chunkFLAZSNC5_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
4434
|
+
const currentConversationId = chunkFLAZSNC5_cjs.useArbiSessionState((s) => s.conversationId);
|
|
4435
|
+
const parentMessageId = chunkFLAZSNC5_cjs.useArbiSessionState((s) => s.cursor);
|
|
4436
|
+
const deepLinkMessageId = chunkFLAZSNC5_cjs.useArbiSessionState((s) => s.deepLinkMessageId);
|
|
4437
4437
|
const {
|
|
4438
4438
|
data: threadsData,
|
|
4439
4439
|
isLoading: threadsLoading,
|
|
4440
4440
|
error: threadsError
|
|
4441
|
-
} =
|
|
4441
|
+
} = chunkFLAZSNC5_cjs.useConversationThreads(currentConversationId || void 0);
|
|
4442
4442
|
const processedDeepLinkRef = React.useRef(null);
|
|
4443
4443
|
const prevConversationIdRef = React.useRef(null);
|
|
4444
4444
|
React.useEffect(() => {
|
|
@@ -4631,7 +4631,7 @@ function useBranchNavigation(threads, parentMessageId, messageHistory, setParent
|
|
|
4631
4631
|
var RECONNECT_DELAY_MS = 2e3;
|
|
4632
4632
|
var MAX_RECONNECTS = 5;
|
|
4633
4633
|
function useConnectRunStream(conversationId, messages) {
|
|
4634
|
-
const generation =
|
|
4634
|
+
const generation = chunkFLAZSNC5_cjs.useArbiSessionState(
|
|
4635
4635
|
(s) => conversationId ? s.generating[conversationId] : void 0
|
|
4636
4636
|
);
|
|
4637
4637
|
const responseId = conversationId ? browser.getRunToAttach(generation, messages) : null;
|
|
@@ -4639,7 +4639,7 @@ function useConnectRunStream(conversationId, messages) {
|
|
|
4639
4639
|
}
|
|
4640
4640
|
function useAttachRun(conversationId, responseId) {
|
|
4641
4641
|
const queryClient = reactQuery.useQueryClient();
|
|
4642
|
-
const session =
|
|
4642
|
+
const session = chunkFLAZSNC5_cjs.useArbiSessionStore();
|
|
4643
4643
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
4644
4644
|
const arbiRef = React.useRef(arbi);
|
|
4645
4645
|
arbiRef.current = arbi;
|
|
@@ -4838,14 +4838,14 @@ function useConversation(options = {}) {
|
|
|
4838
4838
|
const { agentId, model, titleLength = 48 } = options;
|
|
4839
4839
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
4840
4840
|
const queryClient = reactQuery.useQueryClient();
|
|
4841
|
-
const session =
|
|
4842
|
-
const sessionWorkspaceId =
|
|
4841
|
+
const session = chunkFLAZSNC5_cjs.useArbiSessionStore();
|
|
4842
|
+
const sessionWorkspaceId = chunkFLAZSNC5_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
4843
4843
|
const workspaceId = options.workspaceId ?? sessionWorkspaceId ?? void 0;
|
|
4844
|
-
const conversationId =
|
|
4844
|
+
const conversationId = chunkFLAZSNC5_cjs.useArbiSessionState((s) => s.conversationId);
|
|
4845
4845
|
const conversationKey2 = conversationId ?? NEW;
|
|
4846
|
-
const generation =
|
|
4847
|
-
const newConversationMode =
|
|
4848
|
-
const queuedMessages2 =
|
|
4846
|
+
const generation = chunkFLAZSNC5_cjs.useArbiSessionState((s) => s.generating[conversationKey2]);
|
|
4847
|
+
const newConversationMode = chunkFLAZSNC5_cjs.useArbiSessionState((s) => s.newConversationAssistantMode);
|
|
4848
|
+
const queuedMessages2 = chunkFLAZSNC5_cjs.useArbiSessionState((s) => s.queuedMessages);
|
|
4849
4849
|
const isRunning = !!generation?.isGenerating;
|
|
4850
4850
|
React.useEffect(() => {
|
|
4851
4851
|
if (workspaceId && session.getState().workspaceId !== workspaceId)
|
|
@@ -4857,8 +4857,8 @@ function useConversation(options = {}) {
|
|
|
4857
4857
|
React.useEffect(() => {
|
|
4858
4858
|
if (agentId && workspaceId && !conversationId) session.setNewAgentChat({ agentId, workspaceId });
|
|
4859
4859
|
}, [session, agentId, workspaceId, conversationId]);
|
|
4860
|
-
const { data: docs = [], isLoading: isLoadingDocuments } =
|
|
4861
|
-
const ordinaryHistory =
|
|
4860
|
+
const { data: docs = [], isLoading: isLoadingDocuments } = chunk4UDIA47U_cjs.useDocuments(workspaceId);
|
|
4861
|
+
const ordinaryHistory = chunkFLAZSNC5_cjs.useConversations(workspaceId, { enabled: !agentId, live: true });
|
|
4862
4862
|
const agentHistory = useAgentChats(agentId);
|
|
4863
4863
|
const stored = React.useMemo(
|
|
4864
4864
|
() => agentId ? (agentHistory.data ?? []).filter((chat) => chat.workspace_ext_id === workspaceId).map((chat) => ({
|
|
@@ -5084,7 +5084,7 @@ function useConversation(options = {}) {
|
|
|
5084
5084
|
void (async () => {
|
|
5085
5085
|
try {
|
|
5086
5086
|
await arbi.conversations.delete(id);
|
|
5087
|
-
|
|
5087
|
+
chunkRB23E45O_cjs.removeConversationFromLists(queryClient, id);
|
|
5088
5088
|
if (session.getState().conversationId === id) session.startNewConversation();
|
|
5089
5089
|
} catch (e) {
|
|
5090
5090
|
setHistoryError(messageOf(e, "The conversation could not be deleted."));
|
|
@@ -5119,7 +5119,7 @@ function useConversation(options = {}) {
|
|
|
5119
5119
|
} else
|
|
5120
5120
|
uploaded.push(...(await arbi.documents.uploadFile(file, file.name)).doc_ext_ids ?? []);
|
|
5121
5121
|
}
|
|
5122
|
-
if (uploaded.length) await
|
|
5122
|
+
if (uploaded.length) await chunk4UDIA47U_cjs.refreshDocuments(queryClient, arbi, uploaded);
|
|
5123
5123
|
} catch (e) {
|
|
5124
5124
|
setUploadError(messageOf(e, "The upload failed."));
|
|
5125
5125
|
} finally {
|
|
@@ -5168,10 +5168,10 @@ function ConversationScope({
|
|
|
5168
5168
|
conversationId,
|
|
5169
5169
|
children
|
|
5170
5170
|
}) {
|
|
5171
|
-
const outerWorkspaceId =
|
|
5171
|
+
const outerWorkspaceId = chunkFLAZSNC5_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
5172
5172
|
const scopeWorkspaceId = workspaceId ?? outerWorkspaceId;
|
|
5173
5173
|
const [session] = React.useState(
|
|
5174
|
-
() =>
|
|
5174
|
+
() => chunkFLAZSNC5_cjs.createArbiSessionStore({
|
|
5175
5175
|
workspaceId: scopeWorkspaceId,
|
|
5176
5176
|
conversationId: conversationId ?? null
|
|
5177
5177
|
})
|
|
@@ -5192,11 +5192,11 @@ async function applyConversationEvent(queryClient, event) {
|
|
|
5192
5192
|
if (e.type === "response_complete") return applyRunEnded(queryClient, e);
|
|
5193
5193
|
if (e.type === "conversation.message_posted") return applyMessagePosted(queryClient, e);
|
|
5194
5194
|
if (e.type === "conversation.title_updated" && e.conversation_ext_id) {
|
|
5195
|
-
|
|
5195
|
+
chunkRB23E45O_cjs.patchConversation(queryClient, e.conversation_ext_id, { title: e.title ?? null });
|
|
5196
5196
|
}
|
|
5197
5197
|
if (e.type === "conversation.document_binding_changed" && e.conversation_ext_id) {
|
|
5198
5198
|
void queryClient.invalidateQueries({ queryKey: getThreadsQueryKey(e.conversation_ext_id) });
|
|
5199
|
-
void
|
|
5199
|
+
void chunkRB23E45O_cjs.invalidateConversationLists(queryClient);
|
|
5200
5200
|
}
|
|
5201
5201
|
}
|
|
5202
5202
|
function applyRunEnded(queryClient, e) {
|
|
@@ -5213,18 +5213,18 @@ function applyRunEnded(queryClient, e) {
|
|
|
5213
5213
|
);
|
|
5214
5214
|
}
|
|
5215
5215
|
if (failed && e.response_id) markMessageAsFailed(queryClient, conversationId, e.response_id);
|
|
5216
|
-
|
|
5216
|
+
chunkRB23E45O_cjs.patchConversation(queryClient, conversationId, {
|
|
5217
5217
|
last_message_status: failed ? "failed" : "completed"
|
|
5218
5218
|
});
|
|
5219
|
-
void
|
|
5219
|
+
void chunkRB23E45O_cjs.invalidateConversationLists(queryClient);
|
|
5220
5220
|
void queryClient.invalidateQueries({ queryKey: getThreadsQueryKey(conversationId) });
|
|
5221
|
-
if (!failed) void queryClient.invalidateQueries({ queryKey:
|
|
5221
|
+
if (!failed) void queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.userUsageToday() });
|
|
5222
5222
|
}
|
|
5223
5223
|
async function applyMessagePosted(queryClient, e) {
|
|
5224
5224
|
if (!e.conversation_ext_id) return;
|
|
5225
5225
|
const queryKey = getThreadsQueryKey(e.conversation_ext_id);
|
|
5226
5226
|
const refreshed = queryClient.invalidateQueries({ queryKey });
|
|
5227
|
-
void
|
|
5227
|
+
void chunkRB23E45O_cjs.invalidateConversationLists(queryClient);
|
|
5228
5228
|
await refreshed;
|
|
5229
5229
|
const cached = queryClient.getQueryData(
|
|
5230
5230
|
queryKey
|
|
@@ -5237,10 +5237,10 @@ var migratedWorkspaces = /* @__PURE__ */ new Set();
|
|
|
5237
5237
|
function useThreadDocument() {
|
|
5238
5238
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
5239
5239
|
const queryClient = reactQuery.useQueryClient();
|
|
5240
|
-
const session =
|
|
5241
|
-
const conversationId =
|
|
5242
|
-
const workspaceId =
|
|
5243
|
-
const newChatDocumentId =
|
|
5240
|
+
const session = chunkFLAZSNC5_cjs.useArbiSessionStore();
|
|
5241
|
+
const conversationId = chunkFLAZSNC5_cjs.useArbiSessionState((s) => s.conversationId);
|
|
5242
|
+
const workspaceId = chunkFLAZSNC5_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
5243
|
+
const newChatDocumentId = chunkFLAZSNC5_cjs.useArbiSessionState((s) => s.newChatDocumentId);
|
|
5244
5244
|
const subscribe = React.useCallback(
|
|
5245
5245
|
(onChange) => queryClient.getQueryCache().subscribe(onChange),
|
|
5246
5246
|
[queryClient]
|
|
@@ -5255,7 +5255,7 @@ function useThreadDocument() {
|
|
|
5255
5255
|
() => threadBinding(queryClient, conversationId).unavailable,
|
|
5256
5256
|
() => false
|
|
5257
5257
|
);
|
|
5258
|
-
const { data: conversations, isPlaceholderData } =
|
|
5258
|
+
const { data: conversations, isPlaceholderData } = chunkFLAZSNC5_cjs.useConversations(workspaceId ?? void 0);
|
|
5259
5259
|
React.useEffect(() => {
|
|
5260
5260
|
if (!workspaceId || !conversations || isPlaceholderData || migratedWorkspaces.has(workspaceId))
|
|
5261
5261
|
return;
|
|
@@ -5305,9 +5305,9 @@ function useConversationTurn({
|
|
|
5305
5305
|
selectedWorkspaceId,
|
|
5306
5306
|
parentMessageId
|
|
5307
5307
|
}) {
|
|
5308
|
-
const currentConversationId =
|
|
5308
|
+
const currentConversationId = chunkFLAZSNC5_cjs.useArbiSessionState((state) => state.conversationId);
|
|
5309
5309
|
const conversationKey2 = currentConversationId || "new";
|
|
5310
|
-
const generationState =
|
|
5310
|
+
const generationState = chunkFLAZSNC5_cjs.useArbiSessionState((state) => state.generating[conversationKey2]);
|
|
5311
5311
|
const isGenerating = generationState?.isGenerating ?? false;
|
|
5312
5312
|
const generationError = generationState?.error ?? null;
|
|
5313
5313
|
const lastFailedMessage = generationState?.lastFailedMessage ?? null;
|
|
@@ -5328,12 +5328,12 @@ function useConversationTurn({
|
|
|
5328
5328
|
}
|
|
5329
5329
|
var EMPTY_DOCS = [];
|
|
5330
5330
|
function useConversationDocuments() {
|
|
5331
|
-
const currentConversationId =
|
|
5331
|
+
const currentConversationId = chunkFLAZSNC5_cjs.useArbiSessionState((state) => state.conversationId);
|
|
5332
5332
|
const convKey = currentConversationId || "new";
|
|
5333
|
-
const inConversationDocuments =
|
|
5333
|
+
const inConversationDocuments = chunkFLAZSNC5_cjs.useArbiSessionState(
|
|
5334
5334
|
(state) => state.conversationDocuments[convKey] || EMPTY_DOCS
|
|
5335
5335
|
);
|
|
5336
|
-
const { data: documents2 = [], isLoading: isLoadingDocs } =
|
|
5336
|
+
const { data: documents2 = [], isLoading: isLoadingDocs } = chunk4UDIA47U_cjs.useDocuments();
|
|
5337
5337
|
const conversationDocuments = React__default.default.useMemo(() => {
|
|
5338
5338
|
if (inConversationDocuments.length === 0) {
|
|
5339
5339
|
return [];
|
|
@@ -5365,8 +5365,8 @@ function useDocumentAutoAdd({
|
|
|
5365
5365
|
allWorkspaceDocuments,
|
|
5366
5366
|
hasContent = false
|
|
5367
5367
|
}) {
|
|
5368
|
-
const session =
|
|
5369
|
-
const currentConversationId =
|
|
5368
|
+
const session = chunkFLAZSNC5_cjs.useArbiSessionStore();
|
|
5369
|
+
const currentConversationId = chunkFLAZSNC5_cjs.useArbiSessionState((state) => state.conversationId);
|
|
5370
5370
|
const convKey = currentConversationId || "new";
|
|
5371
5371
|
const observedRef = React.useRef(null);
|
|
5372
5372
|
const offeredRef = React.useRef(/* @__PURE__ */ new Set());
|
|
@@ -5427,12 +5427,12 @@ function useDocumentAutoAdd({
|
|
|
5427
5427
|
}, [selectedWorkspaceId, convKey, allWorkspaceDocuments, hasContent, session]);
|
|
5428
5428
|
}
|
|
5429
5429
|
function useAutoSendDraft(sendDraft, ready = true) {
|
|
5430
|
-
const session =
|
|
5431
|
-
const autoSendDraft =
|
|
5430
|
+
const session = chunkFLAZSNC5_cjs.useArbiSessionStore();
|
|
5431
|
+
const autoSendDraft = chunkFLAZSNC5_cjs.useArbiSessionState((state) => state.autoSendDraft);
|
|
5432
5432
|
React.useEffect(() => {
|
|
5433
5433
|
if (!autoSendDraft || !ready) return;
|
|
5434
5434
|
session.setAutoSendDraft(false);
|
|
5435
|
-
if (
|
|
5435
|
+
if (chunkFLAZSNC5_cjs.selectDraft(session.getState()).trim()) {
|
|
5436
5436
|
sendDraft();
|
|
5437
5437
|
}
|
|
5438
5438
|
}, [autoSendDraft, ready, sendDraft, session]);
|
|
@@ -5518,7 +5518,7 @@ function useAnswerAgentQuestion() {
|
|
|
5518
5518
|
);
|
|
5519
5519
|
}
|
|
5520
5520
|
function useAskAgain(options) {
|
|
5521
|
-
const session =
|
|
5521
|
+
const session = chunkFLAZSNC5_cjs.useArbiSessionStore();
|
|
5522
5522
|
const optionsRef = React.useRef(options);
|
|
5523
5523
|
React.useEffect(() => {
|
|
5524
5524
|
optionsRef.current = options;
|
|
@@ -5610,11 +5610,11 @@ function useMessageTimer({
|
|
|
5610
5610
|
isUser,
|
|
5611
5611
|
isGenerating
|
|
5612
5612
|
}) {
|
|
5613
|
-
const session =
|
|
5613
|
+
const session = chunkFLAZSNC5_cjs.useArbiSessionStore();
|
|
5614
5614
|
const convId = conversationId || "new";
|
|
5615
5615
|
const timerKey = `${convId}:${messageId}`;
|
|
5616
|
-
const generationStartTime =
|
|
5617
|
-
const storedElapsed =
|
|
5616
|
+
const generationStartTime = chunkFLAZSNC5_cjs.useArbiSessionState((s) => s.generating[convId]?.startTime ?? null);
|
|
5617
|
+
const storedElapsed = chunkFLAZSNC5_cjs.useArbiSessionState((s) => s.messageTimers[timerKey]?.elapsedTime);
|
|
5618
5618
|
const [elapsedTime, setElapsedTime] = React.useState(0);
|
|
5619
5619
|
const lastElapsedRef = React.useRef(0);
|
|
5620
5620
|
React.useEffect(() => {
|
|
@@ -5639,7 +5639,7 @@ function useMessageTimer({
|
|
|
5639
5639
|
}
|
|
5640
5640
|
function useAgentRunControl(assistantMessageExtId) {
|
|
5641
5641
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
5642
|
-
const session =
|
|
5642
|
+
const session = chunkFLAZSNC5_cjs.useArbiSessionStore();
|
|
5643
5643
|
const send = React.useCallback(
|
|
5644
5644
|
(command) => {
|
|
5645
5645
|
if (!assistantMessageExtId) return;
|
|
@@ -5834,7 +5834,7 @@ function ArbiWebSocketProvider({ enabled = true, children }) {
|
|
|
5834
5834
|
if (client.isMessageType(msg, "task_update")) applyTaskUpdate(msg);
|
|
5835
5835
|
else if (client.isMessageType(msg, "presence_update")) applyPresence(msg);
|
|
5836
5836
|
else if (client.isMessageType(msg, "batch_complete") && msg.batch_type === "entity_extract")
|
|
5837
|
-
|
|
5837
|
+
chunk4UDIA47U_cjs.finishEntityExtraction(msg.doc_ext_ids ?? []);
|
|
5838
5838
|
for (const fn of subscribersRef.current) {
|
|
5839
5839
|
try {
|
|
5840
5840
|
fn(msg);
|
|
@@ -5876,16 +5876,16 @@ function ArbiWebSocketProvider({ enabled = true, children }) {
|
|
|
5876
5876
|
reset();
|
|
5877
5877
|
};
|
|
5878
5878
|
}, [enabled, arbi, setStatus, applyTaskUpdate, applyPresence, reset]);
|
|
5879
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5879
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkRB23E45O_cjs.ArbiWsContext.Provider, { value: context, children });
|
|
5880
5880
|
}
|
|
5881
5881
|
function useArbiWebSocket(onMessage) {
|
|
5882
|
-
const { subscribe } =
|
|
5882
|
+
const { subscribe } = chunkRB23E45O_cjs.useArbiWsContext();
|
|
5883
5883
|
const handlerRef = React.useRef(onMessage);
|
|
5884
5884
|
handlerRef.current = onMessage;
|
|
5885
5885
|
React.useEffect(() => subscribe((msg) => handlerRef.current(msg)), [subscribe]);
|
|
5886
5886
|
}
|
|
5887
5887
|
function useArbiWsMessage(type, handler) {
|
|
5888
|
-
const { subscribe } =
|
|
5888
|
+
const { subscribe } = chunkRB23E45O_cjs.useArbiWsContext();
|
|
5889
5889
|
const handlerRef = React.useRef(handler);
|
|
5890
5890
|
handlerRef.current = handler;
|
|
5891
5891
|
React.useEffect(
|
|
@@ -5918,24 +5918,24 @@ function useArbiDocumentSync(workspaceId) {
|
|
|
5918
5918
|
if (!workspaceId) return;
|
|
5919
5919
|
if (client.isMessageType(msg, "batch_complete")) {
|
|
5920
5920
|
if (msg.workspace_ext_id !== workspaceId) return;
|
|
5921
|
-
if (msg.doc_ext_ids?.length) void
|
|
5922
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
5921
|
+
if (msg.doc_ext_ids?.length) void chunk4UDIA47U_cjs.refreshDocuments(queryClient, arbi, msg.doc_ext_ids);
|
|
5922
|
+
void queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.tags(workspaceId) });
|
|
5923
5923
|
return;
|
|
5924
5924
|
}
|
|
5925
5925
|
if (client.isMessageType(msg, "task_update")) {
|
|
5926
5926
|
if (msg.workspace_ext_id !== workspaceId) return;
|
|
5927
|
-
if (
|
|
5928
|
-
void
|
|
5927
|
+
if (chunk4UDIA47U_cjs.FINISHED_DOCUMENT_STATUSES.has(msg.status))
|
|
5928
|
+
void chunk4UDIA47U_cjs.refreshDocuments(queryClient, arbi, [msg.doc_ext_id]);
|
|
5929
5929
|
}
|
|
5930
5930
|
});
|
|
5931
5931
|
}
|
|
5932
5932
|
var WORKSPACE_SCOPED_PACKAGE_KEYS = [
|
|
5933
|
-
|
|
5934
|
-
|
|
5935
|
-
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
|
|
5933
|
+
chunkRRWAX52L_cjs.arbiQueryKeys.allDocuments(),
|
|
5934
|
+
chunkRRWAX52L_cjs.arbiQueryKeys.allSimilarDocuments(),
|
|
5935
|
+
chunkRRWAX52L_cjs.arbiQueryKeys.allWorkspaceUsers(),
|
|
5936
|
+
chunkRRWAX52L_cjs.arbiQueryKeys.documentSignatures(),
|
|
5937
|
+
chunkRRWAX52L_cjs.arbiQueryKeys.signatureRequests(),
|
|
5938
|
+
chunkRRWAX52L_cjs.arbiQueryKeys.databases()
|
|
5939
5939
|
];
|
|
5940
5940
|
function drainWorkspaceQueries(queryClient) {
|
|
5941
5941
|
for (const queryKey of WORKSPACE_SCOPED_PACKAGE_KEYS) {
|
|
@@ -5945,8 +5945,8 @@ function drainWorkspaceQueries(queryClient) {
|
|
|
5945
5945
|
}
|
|
5946
5946
|
function seedOpenedWorkspace(queryClient, workspaceId, opened) {
|
|
5947
5947
|
if (opened.conversations)
|
|
5948
|
-
queryClient.setQueryData(
|
|
5949
|
-
if (opened.tags) queryClient.setQueryData(
|
|
5948
|
+
queryClient.setQueryData(chunkRRWAX52L_cjs.arbiQueryKeys.conversations(workspaceId), opened.conversations);
|
|
5949
|
+
if (opened.tags) queryClient.setQueryData(chunkRRWAX52L_cjs.arbiQueryKeys.tags(workspaceId), opened.tags);
|
|
5950
5950
|
}
|
|
5951
5951
|
function isWorkspaceArchivedError(error) {
|
|
5952
5952
|
const body = error?.apiError ?? error;
|
|
@@ -5954,7 +5954,7 @@ function isWorkspaceArchivedError(error) {
|
|
|
5954
5954
|
return !!detail && typeof detail === "object" && detail.code === "workspace_archived";
|
|
5955
5955
|
}
|
|
5956
5956
|
var archivedWorkspaceMessage = (name) => `"${name}" is archived. Its owner can unarchive it from the workspace list.`;
|
|
5957
|
-
var listedWorkspace = (queryClient, workspaceId) => queryClient.getQueryData(
|
|
5957
|
+
var listedWorkspace = (queryClient, workspaceId) => queryClient.getQueryData(chunkRRWAX52L_cjs.arbiQueryKeys.workspaces())?.find((w) => w.external_id === workspaceId);
|
|
5958
5958
|
var switchEpoch = 0;
|
|
5959
5959
|
var switching = /* @__PURE__ */ new Set();
|
|
5960
5960
|
var SIGNED_IN_WAIT_MS = 1e4;
|
|
@@ -6021,7 +6021,7 @@ function createWorkspaceSwitch({
|
|
|
6021
6021
|
session.setWorkspaceStatus("closed");
|
|
6022
6022
|
if (isWorkspaceArchivedError(error)) {
|
|
6023
6023
|
chunkVAMPYLQ4_cjs.notify.info(archivedWorkspaceMessage(name));
|
|
6024
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
6024
|
+
void queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.workspaces() });
|
|
6025
6025
|
} else {
|
|
6026
6026
|
chunkVAMPYLQ4_cjs.notify.error(`Failed to open "${name}" ${noun}`);
|
|
6027
6027
|
}
|
|
@@ -6069,7 +6069,7 @@ function useSwitchWorkspace() {
|
|
|
6069
6069
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6070
6070
|
const arbiRef = React.useRef(arbi);
|
|
6071
6071
|
arbiRef.current = arbi;
|
|
6072
|
-
const session =
|
|
6072
|
+
const session = chunkFLAZSNC5_cjs.useArbiSessionStore();
|
|
6073
6073
|
const queryClient = reactQuery.useQueryClient();
|
|
6074
6074
|
return React.useMemo(
|
|
6075
6075
|
() => createWorkspaceSwitch({ arbi: () => arbiRef.current, session, queryClient }),
|
|
@@ -6079,9 +6079,9 @@ function useSwitchWorkspace() {
|
|
|
6079
6079
|
function useOpenSelectedWorkspace() {
|
|
6080
6080
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6081
6081
|
const { clearWorkspace, openSelectedWorkspace } = useSwitchWorkspace();
|
|
6082
|
-
const workspaceId =
|
|
6083
|
-
const status =
|
|
6084
|
-
const { data: workspaces, isLoading: listing } =
|
|
6082
|
+
const workspaceId = chunkFLAZSNC5_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
6083
|
+
const status = chunkFLAZSNC5_cjs.useArbiSessionState((s) => s.workspaceStatus);
|
|
6084
|
+
const { data: workspaces, isLoading: listing } = chunkFLAZSNC5_cjs.useWorkspaces();
|
|
6085
6085
|
const archived = workspaces?.find(
|
|
6086
6086
|
(w) => w.external_id === workspaceId && w.archive
|
|
6087
6087
|
);
|
|
@@ -6224,8 +6224,8 @@ function useShellWorkspaces(options) {
|
|
|
6224
6224
|
};
|
|
6225
6225
|
}
|
|
6226
6226
|
function useArbiShellWorkspaces(options = {}) {
|
|
6227
|
-
const sessionWorkspaceId =
|
|
6228
|
-
const query =
|
|
6227
|
+
const sessionWorkspaceId = chunkFLAZSNC5_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
6228
|
+
const query = chunkFLAZSNC5_cjs.useWorkspaces();
|
|
6229
6229
|
const { switchWorkspace } = useSwitchWorkspace();
|
|
6230
6230
|
const { select, ...rest } = options;
|
|
6231
6231
|
const defaultSelect = React.useCallback(
|
|
@@ -6250,14 +6250,14 @@ function useCreateWorkspace() {
|
|
|
6250
6250
|
return reactQuery.useMutation({
|
|
6251
6251
|
mutationFn: ({ name, projectId, description, isPublic }) => arbi.workspaces.create(name, projectId, description, isPublic),
|
|
6252
6252
|
onSuccess: (created) => {
|
|
6253
|
-
if (qc.getQueryCache().find({ queryKey:
|
|
6253
|
+
if (qc.getQueryCache().find({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.workspaces(), exact: true })) {
|
|
6254
6254
|
qc.setQueryData(
|
|
6255
|
-
|
|
6255
|
+
chunkRRWAX52L_cjs.arbiQueryKeys.workspaces(),
|
|
6256
6256
|
(list = []) => list.some((w) => w.external_id === created.external_id) ? list : [...list, created]
|
|
6257
6257
|
);
|
|
6258
6258
|
}
|
|
6259
|
-
void qc.invalidateQueries({ queryKey:
|
|
6260
|
-
void qc.invalidateQueries({ queryKey:
|
|
6259
|
+
void qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.workspaces() });
|
|
6260
|
+
void qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.projects() });
|
|
6261
6261
|
}
|
|
6262
6262
|
});
|
|
6263
6263
|
}
|
|
@@ -6267,8 +6267,8 @@ function useMoveWorkspaceToProject() {
|
|
|
6267
6267
|
return reactQuery.useMutation({
|
|
6268
6268
|
mutationFn: ({ workspaceId, projectId }) => arbi.workspaces.moveToProject(workspaceId, projectId),
|
|
6269
6269
|
onSuccess: () => {
|
|
6270
|
-
void qc.invalidateQueries({ queryKey:
|
|
6271
|
-
void qc.invalidateQueries({ queryKey:
|
|
6270
|
+
void qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.workspaces() });
|
|
6271
|
+
void qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.projects() });
|
|
6272
6272
|
}
|
|
6273
6273
|
});
|
|
6274
6274
|
}
|
|
@@ -6277,7 +6277,7 @@ function useUpdateWorkspace() {
|
|
|
6277
6277
|
const qc = reactQuery.useQueryClient();
|
|
6278
6278
|
return reactQuery.useMutation({
|
|
6279
6279
|
mutationFn: (body) => arbi.workspaces.update(body),
|
|
6280
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
6280
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.workspaces() })
|
|
6281
6281
|
});
|
|
6282
6282
|
}
|
|
6283
6283
|
function useDeleteWorkspaces() {
|
|
@@ -6285,7 +6285,7 @@ function useDeleteWorkspaces() {
|
|
|
6285
6285
|
const qc = reactQuery.useQueryClient();
|
|
6286
6286
|
return reactQuery.useMutation({
|
|
6287
6287
|
mutationFn: (workspaceIds) => arbi.workspaces.delete(workspaceIds),
|
|
6288
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
6288
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.workspaces() })
|
|
6289
6289
|
});
|
|
6290
6290
|
}
|
|
6291
6291
|
|
|
@@ -6344,7 +6344,7 @@ function usePlanWorkspaceTransfer(scope, mode, options = {}) {
|
|
|
6344
6344
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6345
6345
|
const workspaceId = openWorkspaceId(arbi);
|
|
6346
6346
|
return reactQuery.useQuery({
|
|
6347
|
-
queryKey:
|
|
6347
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.workspaceTransferPlan(workspaceId, JSON.stringify(scope), mode),
|
|
6348
6348
|
queryFn: () => arbi.workspaces.transfer.plan(scope, mode),
|
|
6349
6349
|
enabled: !!workspaceId && (options.enabled ?? true),
|
|
6350
6350
|
staleTime: 1e4,
|
|
@@ -6375,7 +6375,7 @@ function useCancelWorkspaceTransfer() {
|
|
|
6375
6375
|
function useWorkspaceTransfer(transferId) {
|
|
6376
6376
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6377
6377
|
return reactQuery.useQuery({
|
|
6378
|
-
queryKey:
|
|
6378
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.workspaceTransfer(transferId ?? ""),
|
|
6379
6379
|
queryFn: () => arbi.workspaces.transfer.get(transferId ?? ""),
|
|
6380
6380
|
enabled: !!transferId && arbi.isLoggedIn,
|
|
6381
6381
|
staleTime: 0,
|
|
@@ -6386,7 +6386,7 @@ function useWorkspaceTransfers(options = {}) {
|
|
|
6386
6386
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6387
6387
|
const workspaceId = openWorkspaceId(arbi);
|
|
6388
6388
|
return reactQuery.useQuery({
|
|
6389
|
-
queryKey:
|
|
6389
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.workspaceTransfers(workspaceId),
|
|
6390
6390
|
queryFn: () => arbi.workspaces.transfer.list(),
|
|
6391
6391
|
enabled: !!workspaceId && (options.enabled ?? true)
|
|
6392
6392
|
});
|
|
@@ -6395,15 +6395,15 @@ function useInvalidateAfterTransfer() {
|
|
|
6395
6395
|
const queryClient = reactQuery.useQueryClient();
|
|
6396
6396
|
return React.useCallback(
|
|
6397
6397
|
(mode) => {
|
|
6398
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
6399
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
6398
|
+
void queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.workspaces() });
|
|
6399
|
+
void queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.allWorkspaceTransfers() });
|
|
6400
6400
|
if (mode !== "move") return;
|
|
6401
6401
|
for (const queryKey of [
|
|
6402
|
-
|
|
6403
|
-
|
|
6404
|
-
|
|
6405
|
-
|
|
6406
|
-
|
|
6402
|
+
chunkRRWAX52L_cjs.arbiQueryKeys.workflows(),
|
|
6403
|
+
chunkRRWAX52L_cjs.arbiQueryKeys.allFacts(),
|
|
6404
|
+
chunkRRWAX52L_cjs.arbiQueryKeys.allTags(),
|
|
6405
|
+
chunkRRWAX52L_cjs.arbiQueryKeys.allDocuments(),
|
|
6406
|
+
chunkRRWAX52L_cjs.arbiQueryKeys.allConversations()
|
|
6407
6407
|
])
|
|
6408
6408
|
void queryClient.invalidateQueries({ queryKey });
|
|
6409
6409
|
},
|
|
@@ -6432,12 +6432,12 @@ function useWorkspaceExportDownload({ workspaceName } = {}) {
|
|
|
6432
6432
|
const client = arbi.getClient().fetch;
|
|
6433
6433
|
const archive = await buildWorkspaceArchive({
|
|
6434
6434
|
exportData: data,
|
|
6435
|
-
fetchFile: async (docExtId, version, kind) => kind === "markup" ? (await
|
|
6435
|
+
fetchFile: async (docExtId, version, kind) => kind === "markup" ? (await chunkCZP7FF3E_cjs.fetchMarkupPdf(client, docExtId, version)).blob : chunkCZP7FF3E_cjs.fetchDocumentFile(client, docExtId, { version }),
|
|
6436
6436
|
metadataCsv,
|
|
6437
6437
|
onProgress: (done, total) => setProgress({ done, total })
|
|
6438
6438
|
});
|
|
6439
6439
|
const fileName = archiveName(workspaceName, "export");
|
|
6440
|
-
|
|
6440
|
+
chunkCZP7FF3E_cjs.downloadBlob(archive.blob, fileName);
|
|
6441
6441
|
const files = `${archive.fileCount} file${archive.fileCount !== 1 ? "s" : ""}`;
|
|
6442
6442
|
if (archive.failed.length === 0) {
|
|
6443
6443
|
chunkVAMPYLQ4_cjs.notify.success(`Successfully downloaded ${files} and data in ${fileName}`);
|
|
@@ -6482,7 +6482,7 @@ function useRequestWorkspaceAccess() {
|
|
|
6482
6482
|
note: options?.note,
|
|
6483
6483
|
workspaceExtId: options?.workspaceExtId
|
|
6484
6484
|
}),
|
|
6485
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
6485
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.allNotifications() })
|
|
6486
6486
|
});
|
|
6487
6487
|
}
|
|
6488
6488
|
var ARCHIVE_POLL_MS = 5e3;
|
|
@@ -6490,7 +6490,7 @@ var isArchiveMoving = (status) => status === "archiving" || status === "restorin
|
|
|
6490
6490
|
function useWorkspaceArchive(workspaceId, enabled = true) {
|
|
6491
6491
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6492
6492
|
return reactQuery.useQuery({
|
|
6493
|
-
queryKey:
|
|
6493
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.workspaceArchive(workspaceId ?? ""),
|
|
6494
6494
|
queryFn: () => arbi.workspaces.archiveState(workspaceId),
|
|
6495
6495
|
enabled: arbi.isLoggedIn && enabled && Boolean(workspaceId),
|
|
6496
6496
|
retry: false,
|
|
@@ -6499,9 +6499,9 @@ function useWorkspaceArchive(workspaceId, enabled = true) {
|
|
|
6499
6499
|
}
|
|
6500
6500
|
function invalidateArchive(queryClient) {
|
|
6501
6501
|
return Promise.all([
|
|
6502
|
-
queryClient.invalidateQueries({ queryKey:
|
|
6503
|
-
queryClient.invalidateQueries({ queryKey:
|
|
6504
|
-
queryClient.invalidateQueries({ queryKey:
|
|
6502
|
+
queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.workspaces() }),
|
|
6503
|
+
queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.workspaceArchive() }),
|
|
6504
|
+
queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.storage() })
|
|
6505
6505
|
]);
|
|
6506
6506
|
}
|
|
6507
6507
|
function useArchiveWorkspace() {
|
|
@@ -6526,7 +6526,7 @@ function useArchiveProgressPolling(workspaces) {
|
|
|
6526
6526
|
React.useEffect(() => {
|
|
6527
6527
|
if (!moving) return;
|
|
6528
6528
|
const timer = window.setInterval(() => {
|
|
6529
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
6529
|
+
void queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.workspaces() });
|
|
6530
6530
|
}, ARCHIVE_POLL_MS);
|
|
6531
6531
|
return () => window.clearInterval(timer);
|
|
6532
6532
|
}, [moving, queryClient]);
|
|
@@ -6536,7 +6536,7 @@ function useFacts(workspaceId, options) {
|
|
|
6536
6536
|
const { enabled = true, ...filter } = options ?? {};
|
|
6537
6537
|
const workspace = workspaceId ?? (arbi.hasWorkspace ? arbi.getWorkspaceId() : "");
|
|
6538
6538
|
return reactQuery.useQuery({
|
|
6539
|
-
queryKey:
|
|
6539
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.factList(workspace, filter),
|
|
6540
6540
|
queryFn: () => arbi.readInWorkspace(workspace, () => arbi.facts.list(filter)),
|
|
6541
6541
|
enabled: enabled && !!workspace && arbi.hasWorkspace,
|
|
6542
6542
|
staleTime: 3e4
|
|
@@ -6544,7 +6544,7 @@ function useFacts(workspaceId, options) {
|
|
|
6544
6544
|
}
|
|
6545
6545
|
function useRefreshFacts() {
|
|
6546
6546
|
const qc = reactQuery.useQueryClient();
|
|
6547
|
-
return () => qc.invalidateQueries({ queryKey:
|
|
6547
|
+
return () => qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.allFacts() });
|
|
6548
6548
|
}
|
|
6549
6549
|
function useCreateFact() {
|
|
6550
6550
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
@@ -6588,7 +6588,7 @@ var DATABASE_ROWS_PAGE = 1e3;
|
|
|
6588
6588
|
var DATABASE_RELATION_PICK_LIMIT = 50;
|
|
6589
6589
|
function invalidateRelatedRows(queryClient, databaseId, includeSelf) {
|
|
6590
6590
|
return queryClient.invalidateQueries({
|
|
6591
|
-
queryKey:
|
|
6591
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.databaseRows(),
|
|
6592
6592
|
// ['arbi', 'databases', 'rows', databaseId, params]
|
|
6593
6593
|
predicate: (query) => includeSelf || query.queryKey[3] !== databaseId
|
|
6594
6594
|
});
|
|
@@ -6596,15 +6596,15 @@ function invalidateRelatedRows(queryClient, databaseId, includeSelf) {
|
|
|
6596
6596
|
function useInvalidate() {
|
|
6597
6597
|
const queryClient = reactQuery.useQueryClient();
|
|
6598
6598
|
return {
|
|
6599
|
-
list: () => queryClient.invalidateQueries({ queryKey:
|
|
6600
|
-
rows: () => queryClient.invalidateQueries({ queryKey:
|
|
6601
|
-
all: () => queryClient.invalidateQueries({ queryKey:
|
|
6599
|
+
list: () => queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.databaseList() }),
|
|
6600
|
+
rows: () => queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.databaseRows() }),
|
|
6601
|
+
all: () => queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.databases() })
|
|
6602
6602
|
};
|
|
6603
6603
|
}
|
|
6604
6604
|
function useDatabases() {
|
|
6605
6605
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6606
6606
|
return reactQuery.useQuery({
|
|
6607
|
-
queryKey:
|
|
6607
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.databaseList(),
|
|
6608
6608
|
queryFn: () => arbi.databases.list(),
|
|
6609
6609
|
enabled: arbi.hasWorkspace,
|
|
6610
6610
|
staleTime: 1e3 * 30
|
|
@@ -6613,7 +6613,7 @@ function useDatabases() {
|
|
|
6613
6613
|
function useDatabase(databaseId) {
|
|
6614
6614
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6615
6615
|
return reactQuery.useQuery({
|
|
6616
|
-
queryKey:
|
|
6616
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.database(databaseId ?? ""),
|
|
6617
6617
|
queryFn: () => arbi.databases.get(databaseId),
|
|
6618
6618
|
enabled: arbi.hasWorkspace && Boolean(databaseId),
|
|
6619
6619
|
staleTime: 1e3 * 30
|
|
@@ -6623,7 +6623,7 @@ function useDatabaseRows(databaseId, q) {
|
|
|
6623
6623
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6624
6624
|
const query = { q: q.trim() || void 0, limit: DATABASE_ROWS_PAGE };
|
|
6625
6625
|
return reactQuery.useQuery({
|
|
6626
|
-
queryKey:
|
|
6626
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.databaseRows(databaseId ?? "", query),
|
|
6627
6627
|
queryFn: () => arbi.databases.rows(databaseId, query),
|
|
6628
6628
|
enabled: arbi.hasWorkspace && Boolean(databaseId),
|
|
6629
6629
|
staleTime: 1e3 * 15,
|
|
@@ -6682,7 +6682,7 @@ function useUpdateDatabaseRow() {
|
|
|
6682
6682
|
values
|
|
6683
6683
|
}) => arbi.databases.updateRow(databaseId, rowId, values),
|
|
6684
6684
|
onSuccess: (saved) => queryClient.setQueriesData(
|
|
6685
|
-
{ queryKey:
|
|
6685
|
+
{ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.databaseRows() },
|
|
6686
6686
|
(page) => page && { ...page, rows: page.rows.map((row) => row.id === saved.id ? saved : row) }
|
|
6687
6687
|
)
|
|
6688
6688
|
});
|
|
@@ -6732,7 +6732,7 @@ function usePassageQuotes(docIds) {
|
|
|
6732
6732
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6733
6733
|
const passages = reactQuery.useQueries({
|
|
6734
6734
|
queries: [...new Set(docIds ?? [])].map((docId) => ({
|
|
6735
|
-
queryKey:
|
|
6735
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.parsedDoc(docId, "final"),
|
|
6736
6736
|
queryFn: () => arbi.documents.getParsedContent(docId, "final"),
|
|
6737
6737
|
enabled: arbi.hasWorkspace,
|
|
6738
6738
|
staleTime: PARSED_STALE_TIME
|
|
@@ -6748,7 +6748,7 @@ function usePassageQuotes(docIds) {
|
|
|
6748
6748
|
);
|
|
6749
6749
|
}
|
|
6750
6750
|
var REPLAYABLE = [
|
|
6751
|
-
...
|
|
6751
|
+
...chunk4UDIA47U_cjs.replayableTagMutations,
|
|
6752
6752
|
...replayableDocumentMutations
|
|
6753
6753
|
];
|
|
6754
6754
|
function isReplayableArbiMutation(mutationKey) {
|
|
@@ -6780,13 +6780,13 @@ function isRestorableArbiQueryOnline(queryKey, data) {
|
|
|
6780
6780
|
const docs = Array.isArray(data) ? data : [data];
|
|
6781
6781
|
return !docs.some((doc) => {
|
|
6782
6782
|
const status = doc?.status;
|
|
6783
|
-
return !!status && !
|
|
6783
|
+
return !!status && !chunk4UDIA47U_cjs.FINISHED_DOCUMENT_STATUSES.has(status);
|
|
6784
6784
|
});
|
|
6785
6785
|
}
|
|
6786
6786
|
function useFilteredProjects(filters, options) {
|
|
6787
6787
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6788
6788
|
return reactQuery.useQuery({
|
|
6789
|
-
queryKey:
|
|
6789
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.projectsFiltered(filters.stage, filters.leadUser),
|
|
6790
6790
|
queryFn: () => arbi.projects.list(filters),
|
|
6791
6791
|
enabled: options?.enabled ?? arbi.isLoggedIn
|
|
6792
6792
|
});
|
|
@@ -6800,8 +6800,8 @@ function useUpdateProjectFields() {
|
|
|
6800
6800
|
patch
|
|
6801
6801
|
}) => arbi.projects.update(projectExtId, patch),
|
|
6802
6802
|
onSuccess: () => {
|
|
6803
|
-
void qc.invalidateQueries({ queryKey:
|
|
6804
|
-
void qc.invalidateQueries({ queryKey:
|
|
6803
|
+
void qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.projects() });
|
|
6804
|
+
void qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.workspaces() });
|
|
6805
6805
|
}
|
|
6806
6806
|
});
|
|
6807
6807
|
}
|
|
@@ -6809,7 +6809,7 @@ function useProjectEvents(projectExtId, options) {
|
|
|
6809
6809
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6810
6810
|
return reactQuery.useQuery({
|
|
6811
6811
|
queryKey: [
|
|
6812
|
-
...
|
|
6812
|
+
...chunkRRWAX52L_cjs.arbiQueryKeys.projectEvents(projectExtId ?? ""),
|
|
6813
6813
|
options?.kind ?? "all",
|
|
6814
6814
|
options?.limit ?? "default"
|
|
6815
6815
|
],
|
|
@@ -6820,7 +6820,7 @@ function useProjectEvents(projectExtId, options) {
|
|
|
6820
6820
|
function useConversationUsage(conversationId, options) {
|
|
6821
6821
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6822
6822
|
return reactQuery.useQuery({
|
|
6823
|
-
queryKey:
|
|
6823
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.conversationUsage(conversationId ?? ""),
|
|
6824
6824
|
queryFn: () => arbi.conversations.usage(conversationId),
|
|
6825
6825
|
enabled: (options?.enabled ?? true) && !!conversationId && arbi.isLoggedIn,
|
|
6826
6826
|
refetchInterval: options?.live ? 1e4 : false
|
|
@@ -6829,7 +6829,7 @@ function useConversationUsage(conversationId, options) {
|
|
|
6829
6829
|
function useProjectConversationUsage(projectExtId, monthsBack = 0, options) {
|
|
6830
6830
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6831
6831
|
return reactQuery.useQuery({
|
|
6832
|
-
queryKey:
|
|
6832
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.projectConversationUsage(projectExtId ?? "", monthsBack),
|
|
6833
6833
|
queryFn: () => arbi.projects.usageByConversation(projectExtId, monthsBack),
|
|
6834
6834
|
enabled: (options?.enabled ?? true) && !!projectExtId && arbi.isLoggedIn
|
|
6835
6835
|
});
|
|
@@ -6856,7 +6856,7 @@ function useChargeWatch(project, isPending) {
|
|
|
6856
6856
|
React.useEffect(() => {
|
|
6857
6857
|
if (!isSlow) return;
|
|
6858
6858
|
const timer = setInterval(
|
|
6859
|
-
() => queryClient.invalidateQueries({ queryKey:
|
|
6859
|
+
() => queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.projects(), exact: true }),
|
|
6860
6860
|
POLL_EVERY_MS
|
|
6861
6861
|
);
|
|
6862
6862
|
return () => clearInterval(timer);
|
|
@@ -6883,8 +6883,8 @@ function useChargeWatch(project, isPending) {
|
|
|
6883
6883
|
if (!watch2 || watch2.settled) return;
|
|
6884
6884
|
let fresh;
|
|
6885
6885
|
try {
|
|
6886
|
-
await queryClient.refetchQueries({ queryKey:
|
|
6887
|
-
fresh = queryClient.getQueryData(
|
|
6886
|
+
await queryClient.refetchQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.projects(), exact: true });
|
|
6887
|
+
fresh = queryClient.getQueryData(chunkRRWAX52L_cjs.arbiQueryKeys.projects())?.find((p) => p.external_id === project.external_id);
|
|
6888
6888
|
} catch {
|
|
6889
6889
|
fresh = void 0;
|
|
6890
6890
|
}
|
|
@@ -6897,21 +6897,21 @@ function useChargeWatch(project, isPending) {
|
|
|
6897
6897
|
|
|
6898
6898
|
// src/billing.ts
|
|
6899
6899
|
function refreshProjects(qc, wide = false) {
|
|
6900
|
-
void qc.invalidateQueries({ queryKey:
|
|
6900
|
+
void qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.projects() });
|
|
6901
6901
|
if (wide) {
|
|
6902
|
-
void qc.invalidateQueries({ queryKey:
|
|
6903
|
-
void qc.invalidateQueries({ queryKey:
|
|
6902
|
+
void qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.userSettings() });
|
|
6903
|
+
void qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.workspaces() });
|
|
6904
6904
|
}
|
|
6905
6905
|
}
|
|
6906
6906
|
var retryAbortOnly = (failureCount, error) => failureCount < 1 && error?.name === "AbortError";
|
|
6907
6907
|
function useInvalidateProjects() {
|
|
6908
6908
|
const qc = reactQuery.useQueryClient();
|
|
6909
|
-
return () => qc.invalidateQueries({ queryKey:
|
|
6909
|
+
return () => qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.projects() });
|
|
6910
6910
|
}
|
|
6911
6911
|
function useProducts(options) {
|
|
6912
6912
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6913
6913
|
return reactQuery.useQuery({
|
|
6914
|
-
queryKey:
|
|
6914
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.products(),
|
|
6915
6915
|
queryFn: () => arbi.projects.products(),
|
|
6916
6916
|
staleTime: 5 * 6e4,
|
|
6917
6917
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
@@ -6934,18 +6934,18 @@ function useCreateProject() {
|
|
|
6934
6934
|
},
|
|
6935
6935
|
onSuccess: async ({ workspace, ...project }) => {
|
|
6936
6936
|
await Promise.all([
|
|
6937
|
-
qc.cancelQueries({ queryKey:
|
|
6938
|
-
qc.cancelQueries({ queryKey:
|
|
6937
|
+
qc.cancelQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.projects() }),
|
|
6938
|
+
qc.cancelQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.workspaces() })
|
|
6939
6939
|
]);
|
|
6940
6940
|
const id = (item) => item.external_id;
|
|
6941
6941
|
qc.setQueryData(
|
|
6942
|
-
|
|
6942
|
+
chunkRRWAX52L_cjs.arbiQueryKeys.projects(),
|
|
6943
6943
|
(old) => Array.isArray(old) ? [project, ...old.filter((p) => id(p) !== project.external_id)] : old
|
|
6944
6944
|
);
|
|
6945
6945
|
if (workspace) {
|
|
6946
6946
|
const listed = { ...workspace, project_ext_id: project.external_id };
|
|
6947
6947
|
qc.setQueryData(
|
|
6948
|
-
|
|
6948
|
+
chunkRRWAX52L_cjs.arbiQueryKeys.workspaces(),
|
|
6949
6949
|
(old) => Array.isArray(old) ? [listed, ...old.filter((w) => id(w) !== workspace.external_id)] : old
|
|
6950
6950
|
);
|
|
6951
6951
|
}
|
|
@@ -6992,15 +6992,15 @@ function useCancelProjectSubscription() {
|
|
|
6992
6992
|
return reactQuery.useMutation({
|
|
6993
6993
|
mutationFn: (projectExtId) => arbi.projects.cancelSubscription(projectExtId),
|
|
6994
6994
|
onSuccess: () => {
|
|
6995
|
-
void qc.invalidateQueries({ queryKey:
|
|
6996
|
-
void qc.invalidateQueries({ queryKey:
|
|
6995
|
+
void qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.projects() });
|
|
6996
|
+
void qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.userSettings() });
|
|
6997
6997
|
}
|
|
6998
6998
|
});
|
|
6999
6999
|
}
|
|
7000
7000
|
function usePreviewProjectPlanChange(projectExtId, change) {
|
|
7001
7001
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
7002
7002
|
return reactQuery.useQuery({
|
|
7003
|
-
queryKey: [...
|
|
7003
|
+
queryKey: [...chunkRRWAX52L_cjs.arbiQueryKeys.billingQuotes(), "preview", projectExtId, change],
|
|
7004
7004
|
queryFn: () => arbi.projects.previewPlanChange(projectExtId, change),
|
|
7005
7005
|
enabled: !!change && arbi.isLoggedIn,
|
|
7006
7006
|
staleTime: 6e4,
|
|
@@ -7010,7 +7010,7 @@ function usePreviewProjectPlanChange(projectExtId, change) {
|
|
|
7010
7010
|
function usePlanQuote(projectExtId, body) {
|
|
7011
7011
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
7012
7012
|
return reactQuery.useQuery({
|
|
7013
|
-
queryKey: [...
|
|
7013
|
+
queryKey: [...chunkRRWAX52L_cjs.arbiQueryKeys.billingQuotes(), "plan", projectExtId ?? null, body],
|
|
7014
7014
|
queryFn: () => arbi.projects.quotePlan(projectExtId ?? null, body),
|
|
7015
7015
|
enabled: !!body && arbi.isLoggedIn,
|
|
7016
7016
|
staleTime: 5 * 6e4,
|
|
@@ -7020,7 +7020,7 @@ function usePlanQuote(projectExtId, body) {
|
|
|
7020
7020
|
function useAddonQuote(projectExtId, kind, enabled = true) {
|
|
7021
7021
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
7022
7022
|
return reactQuery.useQuery({
|
|
7023
|
-
queryKey: [...
|
|
7023
|
+
queryKey: [...chunkRRWAX52L_cjs.arbiQueryKeys.billingQuotes(), "addon", projectExtId, kind],
|
|
7024
7024
|
queryFn: () => arbi.projects.quoteAddon(projectExtId, kind),
|
|
7025
7025
|
enabled: enabled && arbi.isLoggedIn,
|
|
7026
7026
|
staleTime: 6e4,
|
|
@@ -7071,7 +7071,7 @@ function useStorageProjects(scope = "mine", project) {
|
|
|
7071
7071
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
7072
7072
|
const query = { scope, include: ["workspaces"], ...project ? { project } : {} };
|
|
7073
7073
|
return reactQuery.useQuery({
|
|
7074
|
-
queryKey:
|
|
7074
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.storageProjects(query),
|
|
7075
7075
|
queryFn: async () => dataOrThrow(await arbi.getClient().fetch.GET("/v1/storage/projects", { params: { query } })),
|
|
7076
7076
|
enabled: arbi.isLoggedIn,
|
|
7077
7077
|
retry: false,
|
|
@@ -7082,7 +7082,7 @@ function useStorageItems(query, enabled = true) {
|
|
|
7082
7082
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
7083
7083
|
const params = { limit: 50, ...query };
|
|
7084
7084
|
return reactQuery.useQuery({
|
|
7085
|
-
queryKey:
|
|
7085
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.storageItems(params),
|
|
7086
7086
|
queryFn: async () => dataOrThrow(
|
|
7087
7087
|
await arbi.getClient().fetch.GET("/v1/storage/items", { params: { query: params } })
|
|
7088
7088
|
),
|
|
@@ -7099,7 +7099,7 @@ function useStorageItemNames(items, query) {
|
|
|
7099
7099
|
)
|
|
7100
7100
|
].sort();
|
|
7101
7101
|
return reactQuery.useQuery({
|
|
7102
|
-
queryKey:
|
|
7102
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.storageItemNames({ workspaces, query }),
|
|
7103
7103
|
enabled: arbi.isLoggedIn && workspaces.length > 0,
|
|
7104
7104
|
staleTime: 6e4,
|
|
7105
7105
|
retry: false,
|
|
@@ -7129,7 +7129,7 @@ function useStorageSnapshots(enabled) {
|
|
|
7129
7129
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
7130
7130
|
const query = { limit: 90 };
|
|
7131
7131
|
return reactQuery.useQuery({
|
|
7132
|
-
queryKey:
|
|
7132
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.storageSnapshots(query),
|
|
7133
7133
|
queryFn: async () => dataOrThrow(await arbi.getClient().fetch.GET("/v1/storage/snapshots", { params: { query } })),
|
|
7134
7134
|
enabled: arbi.isLoggedIn && enabled,
|
|
7135
7135
|
retry: false,
|
|
@@ -7139,8 +7139,8 @@ function useStorageSnapshots(enabled) {
|
|
|
7139
7139
|
function useInvalidateStorage() {
|
|
7140
7140
|
const queryClient = reactQuery.useQueryClient();
|
|
7141
7141
|
return () => Promise.all([
|
|
7142
|
-
queryClient.invalidateQueries({ queryKey:
|
|
7143
|
-
queryClient.invalidateQueries({ queryKey:
|
|
7142
|
+
queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.storage() }),
|
|
7143
|
+
queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.projects() })
|
|
7144
7144
|
]);
|
|
7145
7145
|
}
|
|
7146
7146
|
var StorageActionError = class extends Error {
|
|
@@ -7154,7 +7154,7 @@ function fail(fallback, error) {
|
|
|
7154
7154
|
function useWorkspaceTrash(workspace, enabled = true) {
|
|
7155
7155
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
7156
7156
|
return reactQuery.useQuery({
|
|
7157
|
-
queryKey:
|
|
7157
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.workspaceTrash(workspace ?? ""),
|
|
7158
7158
|
enabled: arbi.isLoggedIn && Boolean(workspace) && enabled,
|
|
7159
7159
|
retry: false,
|
|
7160
7160
|
// Other members delete and restore too, and deleting from the documents list doesn't touch this cache:
|
|
@@ -7237,7 +7237,7 @@ function useStorageActions() {
|
|
|
7237
7237
|
function useContacts(options) {
|
|
7238
7238
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
7239
7239
|
return reactQuery.useQuery({
|
|
7240
|
-
queryKey:
|
|
7240
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.contacts(),
|
|
7241
7241
|
queryFn: () => arbi.contacts.list(),
|
|
7242
7242
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn,
|
|
7243
7243
|
staleTime: 3e4
|
|
@@ -7253,7 +7253,7 @@ function usePendingContacts(options) {
|
|
|
7253
7253
|
}
|
|
7254
7254
|
function useInvalidateContacts() {
|
|
7255
7255
|
const qc = reactQuery.useQueryClient();
|
|
7256
|
-
return () => qc.invalidateQueries({ queryKey:
|
|
7256
|
+
return () => qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.contacts() });
|
|
7257
7257
|
}
|
|
7258
7258
|
function useInviteContacts() {
|
|
7259
7259
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
@@ -7311,7 +7311,7 @@ function useSearchContacts(q, { debounceMs = 200 } = {}) {
|
|
|
7311
7311
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
7312
7312
|
const term = useDebounced(q.trim(), debounceMs);
|
|
7313
7313
|
return reactQuery.useQuery({
|
|
7314
|
-
queryKey: [...
|
|
7314
|
+
queryKey: [...chunkRRWAX52L_cjs.arbiQueryKeys.contacts(), "search", term],
|
|
7315
7315
|
queryFn: () => arbi.contacts.search(term),
|
|
7316
7316
|
enabled: term.length > 0 && arbi.isLoggedIn,
|
|
7317
7317
|
staleTime: 6e4,
|
|
@@ -7365,8 +7365,8 @@ function usePeople() {
|
|
|
7365
7365
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
7366
7366
|
const meId = arbi.isLoggedIn ? arbi.user.identity()?.externalId : void 0;
|
|
7367
7367
|
const { data: contacts = [] } = useContacts();
|
|
7368
|
-
const { data: workspaces = [] } =
|
|
7369
|
-
const { data: agents = [] } =
|
|
7368
|
+
const { data: workspaces = [] } = chunkFLAZSNC5_cjs.useWorkspaces();
|
|
7369
|
+
const { data: agents = [] } = chunkFLAZSNC5_cjs.useAgents();
|
|
7370
7370
|
return React.useMemo(() => {
|
|
7371
7371
|
const people = [];
|
|
7372
7372
|
const contactOf = /* @__PURE__ */ new Map();
|
|
@@ -7440,7 +7440,7 @@ function usePeopleSearch(query, { agents = false } = {}) {
|
|
|
7440
7440
|
function useHouseTemplateCandidates(workspaceId, enabled, staleTime = 6e4) {
|
|
7441
7441
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
7442
7442
|
return reactQuery.useQuery({
|
|
7443
|
-
queryKey:
|
|
7443
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.houseTemplateCandidates(workspaceId ?? ""),
|
|
7444
7444
|
enabled: enabled && !!workspaceId && arbi.hasWorkspace,
|
|
7445
7445
|
staleTime,
|
|
7446
7446
|
// Read in that workspace: the server answers for the session's open one.
|
|
@@ -7452,24 +7452,24 @@ function useSetWorkspaceHouseTemplate() {
|
|
|
7452
7452
|
const queryClient = reactQuery.useQueryClient();
|
|
7453
7453
|
return reactQuery.useMutation({
|
|
7454
7454
|
mutationFn: (documentId) => arbi.houseTemplates.setWorkspace(documentId),
|
|
7455
|
-
onSuccess: () => queryClient.invalidateQueries({ queryKey:
|
|
7455
|
+
onSuccess: () => queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.workspaces() })
|
|
7456
7456
|
});
|
|
7457
7457
|
}
|
|
7458
7458
|
var supportsHouseTemplates = browser.houseTemplates.supportsHouseTemplates;
|
|
7459
7459
|
var workspaceHouseTemplateId = browser.houseTemplates.workspaceHouseTemplateId;
|
|
7460
7460
|
var isDeploymentAdmin = browser.houseTemplates.isDeploymentAdmin;
|
|
7461
7461
|
function useRequestEmailChange() {
|
|
7462
|
-
const { client } =
|
|
7462
|
+
const { client } = chunkRB23E45O_cjs.useAccountClient();
|
|
7463
7463
|
return reactQuery.useMutation({
|
|
7464
7464
|
mutationFn: (newEmail) => client.requestEmailChange(newEmail)
|
|
7465
7465
|
});
|
|
7466
7466
|
}
|
|
7467
7467
|
function useConfirmEmailChange() {
|
|
7468
|
-
const { client } =
|
|
7468
|
+
const { client } = chunkRB23E45O_cjs.useAccountClient();
|
|
7469
7469
|
const qc = reactQuery.useQueryClient();
|
|
7470
7470
|
return reactQuery.useMutation({
|
|
7471
7471
|
mutationFn: ({ newEmail, code }) => client.confirmEmailChange(newEmail, code),
|
|
7472
|
-
onSuccess: () => qc.setQueryData(
|
|
7472
|
+
onSuccess: () => qc.setQueryData(chunkRRWAX52L_cjs.arbiQueryKeys.profile(), client.profile())
|
|
7473
7473
|
});
|
|
7474
7474
|
}
|
|
7475
7475
|
function useEmailChange({
|
|
@@ -7533,7 +7533,7 @@ function useEmailChange({
|
|
|
7533
7533
|
};
|
|
7534
7534
|
}
|
|
7535
7535
|
function usePasswordChange() {
|
|
7536
|
-
const { client } =
|
|
7536
|
+
const { client } = chunkRB23E45O_cjs.useAccountClient();
|
|
7537
7537
|
return reactQuery.useMutation({
|
|
7538
7538
|
mutationFn: (vars) => client.changePassword(vars)
|
|
7539
7539
|
});
|
|
@@ -7642,18 +7642,18 @@ function useNotificationPreferences(keys, options) {
|
|
|
7642
7642
|
const save = reactQuery.useMutation({
|
|
7643
7643
|
mutationFn: (patch) => arbi.settings.update({ email_notifications: patch }),
|
|
7644
7644
|
onMutate: async (patch) => {
|
|
7645
|
-
await qc.cancelQueries({ queryKey:
|
|
7646
|
-
const previous = qc.getQueryData(
|
|
7645
|
+
await qc.cancelQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.userSettings() });
|
|
7646
|
+
const previous = qc.getQueryData(chunkRRWAX52L_cjs.arbiQueryKeys.userSettings());
|
|
7647
7647
|
qc.setQueryData(
|
|
7648
|
-
|
|
7648
|
+
chunkRRWAX52L_cjs.arbiQueryKeys.userSettings(),
|
|
7649
7649
|
(old) => old ? { ...old, email_notifications: { ...old.email_notifications, ...patch } } : old
|
|
7650
7650
|
);
|
|
7651
7651
|
return { previous };
|
|
7652
7652
|
},
|
|
7653
7653
|
onError: (_err, _patch, context) => {
|
|
7654
|
-
qc.setQueryData(
|
|
7654
|
+
qc.setQueryData(chunkRRWAX52L_cjs.arbiQueryKeys.userSettings(), context?.previous);
|
|
7655
7655
|
},
|
|
7656
|
-
onSettled: () => qc.invalidateQueries({ queryKey:
|
|
7656
|
+
onSettled: () => qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.userSettings() })
|
|
7657
7657
|
});
|
|
7658
7658
|
const model = React.useMemo(() => toNotificationPreferences(stored, keys), [stored, keys]);
|
|
7659
7659
|
const setAll = React.useCallback(
|
|
@@ -7680,18 +7680,18 @@ function useRelevanceSave() {
|
|
|
7680
7680
|
return reactQuery.useMutation({
|
|
7681
7681
|
mutationFn: (patch) => arbi.settings.update(patch),
|
|
7682
7682
|
onMutate: async (patch) => {
|
|
7683
|
-
await qc.cancelQueries({ queryKey:
|
|
7684
|
-
const previous = qc.getQueryData(
|
|
7683
|
+
await qc.cancelQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.userSettings() });
|
|
7684
|
+
const previous = qc.getQueryData(chunkRRWAX52L_cjs.arbiQueryKeys.userSettings());
|
|
7685
7685
|
qc.setQueryData(
|
|
7686
|
-
|
|
7686
|
+
chunkRRWAX52L_cjs.arbiQueryKeys.userSettings(),
|
|
7687
7687
|
(old) => old ? { ...old, ...patch } : old
|
|
7688
7688
|
);
|
|
7689
7689
|
return { previous };
|
|
7690
7690
|
},
|
|
7691
7691
|
onError: (_err, _patch, context) => {
|
|
7692
|
-
qc.setQueryData(
|
|
7692
|
+
qc.setQueryData(chunkRRWAX52L_cjs.arbiQueryKeys.userSettings(), context?.previous);
|
|
7693
7693
|
},
|
|
7694
|
-
onSettled: () => qc.invalidateQueries({ queryKey:
|
|
7694
|
+
onSettled: () => qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.userSettings() })
|
|
7695
7695
|
});
|
|
7696
7696
|
}
|
|
7697
7697
|
function useWorkspaceNotificationLevel(workspaceId, options) {
|
|
@@ -7702,7 +7702,7 @@ function useWorkspaceNotificationLevel(workspaceId, options) {
|
|
|
7702
7702
|
const setLevel = React.useCallback(
|
|
7703
7703
|
(next) => {
|
|
7704
7704
|
if (!workspaceId) return;
|
|
7705
|
-
const current = qc.getQueryData(
|
|
7705
|
+
const current = qc.getQueryData(chunkRRWAX52L_cjs.arbiQueryKeys.userSettings()) ?? settings.data;
|
|
7706
7706
|
save.mutate(browser.settings.workspaceLevelPatch(current, workspaceId, next));
|
|
7707
7707
|
},
|
|
7708
7708
|
[qc, save, settings.data, workspaceId]
|
|
@@ -7723,7 +7723,7 @@ function useFollowThread(conversationId, options) {
|
|
|
7723
7723
|
const setFollowing = React.useCallback(
|
|
7724
7724
|
(on, callbacks) => {
|
|
7725
7725
|
if (!conversationId) return;
|
|
7726
|
-
const current = qc.getQueryData(
|
|
7726
|
+
const current = qc.getQueryData(chunkRRWAX52L_cjs.arbiQueryKeys.userSettings()) ?? settings.data;
|
|
7727
7727
|
save.mutate(
|
|
7728
7728
|
{
|
|
7729
7729
|
followed_threads: browser.settings.withMembership(
|
|
@@ -7746,23 +7746,23 @@ function useFollowThread(conversationId, options) {
|
|
|
7746
7746
|
};
|
|
7747
7747
|
}
|
|
7748
7748
|
function useSessions(options) {
|
|
7749
|
-
const { client, enabled } =
|
|
7749
|
+
const { client, enabled } = chunkRB23E45O_cjs.useAccountClient();
|
|
7750
7750
|
return reactQuery.useQuery({
|
|
7751
|
-
queryKey:
|
|
7751
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.sessions(),
|
|
7752
7752
|
queryFn: () => client.listSessions(),
|
|
7753
7753
|
enabled: (options?.enabled ?? true) && enabled
|
|
7754
7754
|
});
|
|
7755
7755
|
}
|
|
7756
7756
|
function useTerminateSession() {
|
|
7757
|
-
const { client } =
|
|
7757
|
+
const { client } = chunkRB23E45O_cjs.useAccountClient();
|
|
7758
7758
|
const qc = reactQuery.useQueryClient();
|
|
7759
7759
|
return reactQuery.useMutation({
|
|
7760
7760
|
mutationFn: (sessionId) => client.terminateSession(sessionId),
|
|
7761
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
7761
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.sessions() })
|
|
7762
7762
|
});
|
|
7763
7763
|
}
|
|
7764
7764
|
function useSignOut() {
|
|
7765
|
-
const { client } =
|
|
7765
|
+
const { client } = chunkRB23E45O_cjs.useAccountClient();
|
|
7766
7766
|
const qc = reactQuery.useQueryClient();
|
|
7767
7767
|
return reactQuery.useMutation({
|
|
7768
7768
|
mutationFn: (options = {}) => client.signOut(options),
|
|
@@ -7770,7 +7770,7 @@ function useSignOut() {
|
|
|
7770
7770
|
});
|
|
7771
7771
|
}
|
|
7772
7772
|
function useCurrentSessionId() {
|
|
7773
|
-
return
|
|
7773
|
+
return chunkRB23E45O_cjs.useAccountClient().client.currentSessionId();
|
|
7774
7774
|
}
|
|
7775
7775
|
function parseDeleteAccountBlockers(error) {
|
|
7776
7776
|
const body = error?.apiError ?? error;
|
|
@@ -7785,7 +7785,7 @@ function parseDeleteAccountBlockers(error) {
|
|
|
7785
7785
|
return [];
|
|
7786
7786
|
}
|
|
7787
7787
|
function useDeleteAccount() {
|
|
7788
|
-
const { client } =
|
|
7788
|
+
const { client } = chunkRB23E45O_cjs.useAccountClient();
|
|
7789
7789
|
return reactQuery.useMutation({ mutationFn: () => client.requestDeletion() });
|
|
7790
7790
|
}
|
|
7791
7791
|
function useDeleteAccountFlow({
|
|
@@ -7901,7 +7901,7 @@ function useIdentityVerificationFlow(api, {
|
|
|
7901
7901
|
const apiRef = React.useRef(api);
|
|
7902
7902
|
apiRef.current = api;
|
|
7903
7903
|
const query = reactQuery.useQuery({
|
|
7904
|
-
queryKey:
|
|
7904
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.identity(),
|
|
7905
7905
|
queryFn: () => apiRef.current.status(),
|
|
7906
7906
|
enabled,
|
|
7907
7907
|
staleTime: 6e4
|
|
@@ -7919,7 +7919,7 @@ function useIdentityVerificationFlow(api, {
|
|
|
7919
7919
|
const lastVerified = React.useRef(void 0);
|
|
7920
7920
|
const apply = React.useCallback(
|
|
7921
7921
|
(next) => {
|
|
7922
|
-
qc.setQueryData(
|
|
7922
|
+
qc.setQueryData(chunkRRWAX52L_cjs.arbiQueryKeys.identity(), next);
|
|
7923
7923
|
if (lastVerified.current !== void 0 && lastVerified.current !== next.verified) {
|
|
7924
7924
|
onVerifiedChange?.(next.verified);
|
|
7925
7925
|
}
|
|
@@ -8107,19 +8107,19 @@ function useIdentityVerificationFlow(api, {
|
|
|
8107
8107
|
};
|
|
8108
8108
|
}
|
|
8109
8109
|
function useIdentityVerification(options = {}) {
|
|
8110
|
-
const { client, enabled } =
|
|
8110
|
+
const { client, enabled } = chunkRB23E45O_cjs.useAccountClient();
|
|
8111
8111
|
const qc = reactQuery.useQueryClient();
|
|
8112
8112
|
const { onVerifiedChange, onNameAccepted, formatPrice } = options;
|
|
8113
8113
|
return useIdentityVerificationFlow(client.identity, {
|
|
8114
8114
|
enabled,
|
|
8115
8115
|
formatPrice,
|
|
8116
8116
|
onVerifiedChange: (verified) => {
|
|
8117
|
-
void qc.invalidateQueries({ queryKey:
|
|
8117
|
+
void qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.profile() });
|
|
8118
8118
|
onVerifiedChange?.(verified);
|
|
8119
8119
|
},
|
|
8120
8120
|
onNameAccepted: (name) => {
|
|
8121
|
-
void qc.invalidateQueries({ queryKey:
|
|
8122
|
-
void qc.invalidateQueries({ queryKey:
|
|
8121
|
+
void qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.profile() });
|
|
8122
|
+
void qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.workspaces() });
|
|
8123
8123
|
onNameAccepted?.(name);
|
|
8124
8124
|
}
|
|
8125
8125
|
});
|
|
@@ -8129,7 +8129,7 @@ async function downloadRecoveryFile(params) {
|
|
|
8129
8129
|
...params,
|
|
8130
8130
|
origin: params.origin ?? window.location.origin
|
|
8131
8131
|
});
|
|
8132
|
-
|
|
8132
|
+
chunkCZP7FF3E_cjs.downloadBlob(new Blob([file.html], { type: "text/html" }), file.filename);
|
|
8133
8133
|
}
|
|
8134
8134
|
|
|
8135
8135
|
// src/mail/client.ts
|
|
@@ -8258,7 +8258,7 @@ function useMailOnline() {
|
|
|
8258
8258
|
function useMailPolicy() {
|
|
8259
8259
|
const { client, enabled } = useMailClient();
|
|
8260
8260
|
return reactQuery.useQuery({
|
|
8261
|
-
queryKey:
|
|
8261
|
+
queryKey: chunkRRWAX52L_cjs.mailQueryKeys.policy(),
|
|
8262
8262
|
queryFn: () => client.getPolicy(),
|
|
8263
8263
|
networkMode: "always",
|
|
8264
8264
|
enabled,
|
|
@@ -8269,7 +8269,7 @@ function useMailPolicy() {
|
|
|
8269
8269
|
function useMailAccounts(options = {}) {
|
|
8270
8270
|
const { client, enabled } = useMailClient();
|
|
8271
8271
|
return reactQuery.useQuery({
|
|
8272
|
-
queryKey:
|
|
8272
|
+
queryKey: chunkRRWAX52L_cjs.mailQueryKeys.accounts(),
|
|
8273
8273
|
queryFn: () => client.listAccounts(),
|
|
8274
8274
|
networkMode: "always",
|
|
8275
8275
|
enabled: enabled && (options.enabled ?? true),
|
|
@@ -8280,7 +8280,7 @@ function useMailUnlock(account) {
|
|
|
8280
8280
|
const { client, enabled, sessionKey } = useMailClient();
|
|
8281
8281
|
const isOnline = useMailOnline();
|
|
8282
8282
|
return reactQuery.useQuery({
|
|
8283
|
-
queryKey:
|
|
8283
|
+
queryKey: chunkRRWAX52L_cjs.mailQueryKeys.unlock(account?.id, sessionKey),
|
|
8284
8284
|
queryFn: async () => {
|
|
8285
8285
|
if (!account) throw new Error("Sign in to unlock your mailbox");
|
|
8286
8286
|
await client.unlock(account);
|
|
@@ -8294,7 +8294,7 @@ function useMailUnlock(account) {
|
|
|
8294
8294
|
function useMailFolders(account, options) {
|
|
8295
8295
|
const { client } = useMailClient();
|
|
8296
8296
|
return reactQuery.useQuery({
|
|
8297
|
-
queryKey:
|
|
8297
|
+
queryKey: chunkRRWAX52L_cjs.mailQueryKeys.folders(account?.id),
|
|
8298
8298
|
queryFn: () => client.listFolders(account),
|
|
8299
8299
|
networkMode: "always",
|
|
8300
8300
|
enabled: !!account && (options.enabled ?? true),
|
|
@@ -8304,7 +8304,7 @@ function useMailFolders(account, options) {
|
|
|
8304
8304
|
function useMailMessages(account, folderId, query, cursor, options = {}) {
|
|
8305
8305
|
const { client } = useMailClient();
|
|
8306
8306
|
return reactQuery.useQuery({
|
|
8307
|
-
queryKey:
|
|
8307
|
+
queryKey: chunkRRWAX52L_cjs.mailQueryKeys.messages(account?.id, folderId, query, cursor),
|
|
8308
8308
|
queryFn: () => client.listMessages(account, folderId, query, cursor),
|
|
8309
8309
|
networkMode: "always",
|
|
8310
8310
|
enabled: !!account && !!folderId && (options.enabled ?? true),
|
|
@@ -8315,7 +8315,7 @@ function useMailMessages(account, folderId, query, cursor, options = {}) {
|
|
|
8315
8315
|
function useMailMessage(account, messageId, options = {}) {
|
|
8316
8316
|
const { client } = useMailClient();
|
|
8317
8317
|
return reactQuery.useQuery({
|
|
8318
|
-
queryKey:
|
|
8318
|
+
queryKey: chunkRRWAX52L_cjs.mailQueryKeys.message(account?.id, messageId),
|
|
8319
8319
|
queryFn: () => client.getMessage(account, messageId),
|
|
8320
8320
|
networkMode: "always",
|
|
8321
8321
|
enabled: !!account && !!messageId && (options.enabled ?? true),
|
|
@@ -8329,7 +8329,7 @@ function decodeBase64Text(b64) {
|
|
|
8329
8329
|
function useMailAttachmentText(accountId, messageId, attachment, options = {}) {
|
|
8330
8330
|
const { client } = useMailClient();
|
|
8331
8331
|
return reactQuery.useQuery({
|
|
8332
|
-
queryKey:
|
|
8332
|
+
queryKey: chunkRRWAX52L_cjs.mailQueryKeys.attachmentText(accountId, messageId, attachment?.id ?? ""),
|
|
8333
8333
|
queryFn: async () => {
|
|
8334
8334
|
const a = attachment;
|
|
8335
8335
|
if (a.content_base64) return decodeBase64Text(a.content_base64);
|
|
@@ -8347,7 +8347,7 @@ function useClaimNativeAlias(onClaimed) {
|
|
|
8347
8347
|
return reactQuery.useMutation({
|
|
8348
8348
|
mutationFn: (alias) => mailJson(client.fetch, "/native/alias", { method: "POST", body: JSON.stringify({ alias }) }),
|
|
8349
8349
|
onSuccess: async (_data, alias) => {
|
|
8350
|
-
await queryClient.invalidateQueries({ queryKey:
|
|
8350
|
+
await queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.mailQueryKeys.all() });
|
|
8351
8351
|
onClaimed?.(alias);
|
|
8352
8352
|
}
|
|
8353
8353
|
});
|
|
@@ -8365,7 +8365,7 @@ function useConnectMailAccount() {
|
|
|
8365
8365
|
password: input.password
|
|
8366
8366
|
})
|
|
8367
8367
|
}),
|
|
8368
|
-
onSuccess: () => queryClient.invalidateQueries({ queryKey:
|
|
8368
|
+
onSuccess: () => queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.mailQueryKeys.accounts() })
|
|
8369
8369
|
});
|
|
8370
8370
|
}
|
|
8371
8371
|
function useDisconnectMailAccount() {
|
|
@@ -8373,19 +8373,19 @@ function useDisconnectMailAccount() {
|
|
|
8373
8373
|
const queryClient = reactQuery.useQueryClient();
|
|
8374
8374
|
return reactQuery.useMutation({
|
|
8375
8375
|
mutationFn: (accountId) => mailJson(client.fetch, accountPath(accountId), { method: "DELETE" }),
|
|
8376
|
-
onSuccess: () => queryClient.invalidateQueries({ queryKey:
|
|
8376
|
+
onSuccess: () => queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.mailQueryKeys.all() })
|
|
8377
8377
|
});
|
|
8378
8378
|
}
|
|
8379
8379
|
function useMailCache() {
|
|
8380
8380
|
const queryClient = reactQuery.useQueryClient();
|
|
8381
8381
|
return React.useMemo(() => {
|
|
8382
|
-
const refreshAll = () => queryClient.invalidateQueries({ queryKey:
|
|
8382
|
+
const refreshAll = () => queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.mailQueryKeys.all() });
|
|
8383
8383
|
return {
|
|
8384
8384
|
refreshAll,
|
|
8385
|
-
refreshFolders: () => queryClient.invalidateQueries({ queryKey:
|
|
8385
|
+
refreshFolders: () => queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.mailQueryKeys.allFolders() }),
|
|
8386
8386
|
/** After a write to one message: drop a read of it still in flight (it may carry the old state), then refresh. */
|
|
8387
8387
|
settleMessage: async (accountId, messageId) => {
|
|
8388
|
-
await queryClient.cancelQueries({ queryKey:
|
|
8388
|
+
await queryClient.cancelQueries({ queryKey: chunkRRWAX52L_cjs.mailQueryKeys.message(accountId, messageId) });
|
|
8389
8389
|
await refreshAll();
|
|
8390
8390
|
}
|
|
8391
8391
|
};
|
|
@@ -8437,7 +8437,7 @@ function useSaveMailDraft(fallback) {
|
|
|
8437
8437
|
),
|
|
8438
8438
|
onSuccess: (result) => {
|
|
8439
8439
|
if (!("onDevice" in result))
|
|
8440
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
8440
|
+
void queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.mailQueryKeys.allMessages() });
|
|
8441
8441
|
}
|
|
8442
8442
|
});
|
|
8443
8443
|
}
|
|
@@ -8465,7 +8465,7 @@ function useSendMail(fallback) {
|
|
|
8465
8465
|
),
|
|
8466
8466
|
onSuccess: (result) => {
|
|
8467
8467
|
if (!(result && typeof result === "object" && "onDevice" in result))
|
|
8468
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
8468
|
+
void queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.mailQueryKeys.all() });
|
|
8469
8469
|
}
|
|
8470
8470
|
});
|
|
8471
8471
|
}
|
|
@@ -8481,13 +8481,13 @@ function useMailDraftEditor() {
|
|
|
8481
8481
|
/** Save as the draft: suggestions still waiting stay out of it. */
|
|
8482
8482
|
save: async (roomId, compose, state) => {
|
|
8483
8483
|
const saved = await call(roomId, "/save", { compose, state });
|
|
8484
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
8484
|
+
void queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.mailQueryKeys.allMessages() });
|
|
8485
8485
|
return saved;
|
|
8486
8486
|
},
|
|
8487
8487
|
/** Send (refused, `status` 409, while suggestions wait). */
|
|
8488
8488
|
send: async (roomId, compose, state) => {
|
|
8489
8489
|
const sent = await call(roomId, "/send", { compose, state });
|
|
8490
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
8490
|
+
void queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.mailQueryKeys.all() });
|
|
8491
8491
|
return sent;
|
|
8492
8492
|
},
|
|
8493
8493
|
/** The body as text and HTML (`final`: refused while suggestions wait). */
|
|
@@ -8504,7 +8504,7 @@ function useMailDraftEditor() {
|
|
|
8504
8504
|
function useMailProjects(options = {}) {
|
|
8505
8505
|
const { client } = useMailClient();
|
|
8506
8506
|
return reactQuery.useQuery({
|
|
8507
|
-
queryKey:
|
|
8507
|
+
queryKey: chunkRRWAX52L_cjs.mailQueryKeys.projects(),
|
|
8508
8508
|
queryFn: () => mailJson(client.fetch, "/drafts/editor/projects"),
|
|
8509
8509
|
enabled: options.enabled ?? true,
|
|
8510
8510
|
staleTime: 6e4
|
|
@@ -8512,7 +8512,7 @@ function useMailProjects(options = {}) {
|
|
|
8512
8512
|
}
|
|
8513
8513
|
function useMailDraftCompose(account, draftId, prepare, options = {}) {
|
|
8514
8514
|
return reactQuery.useQuery({
|
|
8515
|
-
queryKey:
|
|
8515
|
+
queryKey: chunkRRWAX52L_cjs.mailQueryKeys.draftCompose(account?.id, draftId),
|
|
8516
8516
|
queryFn: () => prepare(account, draftId),
|
|
8517
8517
|
networkMode: "always",
|
|
8518
8518
|
enabled: !!account && !!draftId && (options.enabled ?? true),
|
|
@@ -8545,13 +8545,13 @@ function useConnectorMutation(mutationFn) {
|
|
|
8545
8545
|
const qc = reactQuery.useQueryClient();
|
|
8546
8546
|
return reactQuery.useMutation({
|
|
8547
8547
|
mutationFn,
|
|
8548
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
8548
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.connectorQueryKeys.all() })
|
|
8549
8549
|
});
|
|
8550
8550
|
}
|
|
8551
8551
|
function useConnectorCatalog() {
|
|
8552
8552
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8553
8553
|
return reactQuery.useQuery({
|
|
8554
|
-
queryKey:
|
|
8554
|
+
queryKey: chunkRRWAX52L_cjs.connectorQueryKeys.catalog(),
|
|
8555
8555
|
queryFn: () => arbi.connectors.catalog(),
|
|
8556
8556
|
staleTime: 5 * 6e4,
|
|
8557
8557
|
enabled: arbi.isLoggedIn
|
|
@@ -8560,7 +8560,7 @@ function useConnectorCatalog() {
|
|
|
8560
8560
|
function useMyConnectors() {
|
|
8561
8561
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8562
8562
|
return reactQuery.useQuery({
|
|
8563
|
-
queryKey:
|
|
8563
|
+
queryKey: chunkRRWAX52L_cjs.connectorQueryKeys.mine(),
|
|
8564
8564
|
queryFn: () => arbi.connectors.mine(),
|
|
8565
8565
|
staleTime: 3e4,
|
|
8566
8566
|
enabled: arbi.isLoggedIn
|
|
@@ -8588,7 +8588,7 @@ function connectorReturnTo(reopen) {
|
|
|
8588
8588
|
function useMailboxFolders(vendorKey, enabled) {
|
|
8589
8589
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8590
8590
|
return reactQuery.useQuery({
|
|
8591
|
-
queryKey:
|
|
8591
|
+
queryKey: chunkRRWAX52L_cjs.connectorQueryKeys.mailboxFolders(vendorKey),
|
|
8592
8592
|
queryFn: () => arbi.connectors.mailboxFolders(vendorKey),
|
|
8593
8593
|
enabled: enabled && arbi.isLoggedIn,
|
|
8594
8594
|
staleTime: 6e4
|
|
@@ -8618,7 +8618,7 @@ function useTriggerMailboxSync() {
|
|
|
8618
8618
|
function useMailboxSyncProgress(vendorKey, workspaceExtId, enabled) {
|
|
8619
8619
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8620
8620
|
return reactQuery.useQuery({
|
|
8621
|
-
queryKey:
|
|
8621
|
+
queryKey: chunkRRWAX52L_cjs.connectorQueryKeys.mailboxSyncProgress(vendorKey, workspaceExtId),
|
|
8622
8622
|
queryFn: () => arbi.connectors.mailboxSyncProgress(vendorKey, workspaceExtId),
|
|
8623
8623
|
enabled: enabled && !!workspaceExtId && arbi.isLoggedIn,
|
|
8624
8624
|
refetchInterval: (query) => query.state.data?.running ? 1500 : false,
|
|
@@ -8634,7 +8634,7 @@ function useCancelMailboxSync() {
|
|
|
8634
8634
|
function useDriveFolders(vendorKey, enabled) {
|
|
8635
8635
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8636
8636
|
return reactQuery.useQuery({
|
|
8637
|
-
queryKey:
|
|
8637
|
+
queryKey: chunkRRWAX52L_cjs.connectorQueryKeys.driveFolders(vendorKey),
|
|
8638
8638
|
queryFn: () => arbi.connectors.driveFolders(vendorKey),
|
|
8639
8639
|
enabled: enabled && arbi.isLoggedIn,
|
|
8640
8640
|
retry: false,
|
|
@@ -8644,7 +8644,7 @@ function useDriveFolders(vendorKey, enabled) {
|
|
|
8644
8644
|
function useDriveFolderChildren(vendorKey, itemId, enabled) {
|
|
8645
8645
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8646
8646
|
return reactQuery.useQuery({
|
|
8647
|
-
queryKey:
|
|
8647
|
+
queryKey: chunkRRWAX52L_cjs.connectorQueryKeys.driveFolderChildren(vendorKey, itemId),
|
|
8648
8648
|
queryFn: () => arbi.connectors.driveFolderChildren(vendorKey, itemId),
|
|
8649
8649
|
enabled: enabled && arbi.isLoggedIn,
|
|
8650
8650
|
staleTime: 3e4
|
|
@@ -8653,7 +8653,7 @@ function useDriveFolderChildren(vendorKey, itemId, enabled) {
|
|
|
8653
8653
|
function useDriveFolderDocCount(vendorKey, itemId, enabled) {
|
|
8654
8654
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8655
8655
|
return reactQuery.useQuery({
|
|
8656
|
-
queryKey:
|
|
8656
|
+
queryKey: chunkRRWAX52L_cjs.connectorQueryKeys.driveFolderDocCount(vendorKey, itemId),
|
|
8657
8657
|
queryFn: () => arbi.connectors.driveFolderDocCount(vendorKey, itemId),
|
|
8658
8658
|
enabled: enabled && arbi.isLoggedIn,
|
|
8659
8659
|
staleTime: 5 * 6e4
|
|
@@ -8681,7 +8681,7 @@ function useTriggerDriveSync() {
|
|
|
8681
8681
|
function useDriveSyncEstimate(vendorKey, enabled) {
|
|
8682
8682
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8683
8683
|
return reactQuery.useQuery({
|
|
8684
|
-
queryKey:
|
|
8684
|
+
queryKey: chunkRRWAX52L_cjs.connectorQueryKeys.driveSyncEstimate(vendorKey),
|
|
8685
8685
|
queryFn: () => arbi.connectors.driveSyncEstimate(vendorKey),
|
|
8686
8686
|
enabled: enabled && arbi.isLoggedIn,
|
|
8687
8687
|
staleTime: 3e4
|
|
@@ -8690,7 +8690,7 @@ function useDriveSyncEstimate(vendorKey, enabled) {
|
|
|
8690
8690
|
function useDriveSyncProgress(vendorKey, enabled) {
|
|
8691
8691
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8692
8692
|
return reactQuery.useQuery({
|
|
8693
|
-
queryKey:
|
|
8693
|
+
queryKey: chunkRRWAX52L_cjs.connectorQueryKeys.driveSyncProgress(vendorKey),
|
|
8694
8694
|
queryFn: () => arbi.connectors.driveSyncProgress(vendorKey),
|
|
8695
8695
|
enabled: enabled && arbi.isLoggedIn,
|
|
8696
8696
|
refetchInterval: (query) => query.state.data?.running ? 1500 : false,
|
|
@@ -8706,7 +8706,7 @@ function useCancelDriveSync() {
|
|
|
8706
8706
|
function useSlackConnection() {
|
|
8707
8707
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8708
8708
|
return reactQuery.useQuery({
|
|
8709
|
-
queryKey:
|
|
8709
|
+
queryKey: chunkRRWAX52L_cjs.connectorQueryKeys.slack(),
|
|
8710
8710
|
queryFn: () => arbi.connectors.slack.status(),
|
|
8711
8711
|
enabled: arbi.isLoggedIn,
|
|
8712
8712
|
// Fresh on every visit: the OAuth return lands here before the status changed server-side.
|
|
@@ -8724,7 +8724,7 @@ function useRefreshConnectorsOnRunEnd(running) {
|
|
|
8724
8724
|
const wasRunning = React.useRef(running);
|
|
8725
8725
|
React.useEffect(() => {
|
|
8726
8726
|
if (wasRunning.current && !running) {
|
|
8727
|
-
void qc.invalidateQueries({ queryKey:
|
|
8727
|
+
void qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.connectorQueryKeys.mine() });
|
|
8728
8728
|
}
|
|
8729
8729
|
wasRunning.current = running;
|
|
8730
8730
|
}, [running, qc]);
|
|
@@ -8739,9 +8739,9 @@ function useConnectorAutoSync(workspaceExtId, opened) {
|
|
|
8739
8739
|
const check = () => {
|
|
8740
8740
|
lastCheck.current = Date.now();
|
|
8741
8741
|
void arbi.connectors.bridgeTokens({ autoSyncWorkspaceExtId: workspaceExtId }).then(() => {
|
|
8742
|
-
void qc.invalidateQueries({ queryKey:
|
|
8743
|
-
void qc.invalidateQueries({ queryKey:
|
|
8744
|
-
void qc.invalidateQueries({ queryKey:
|
|
8742
|
+
void qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.connectorQueryKeys.mine() });
|
|
8743
|
+
void qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.connectorQueryKeys.allMailboxSyncProgress() });
|
|
8744
|
+
void qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.connectorQueryKeys.allDriveSyncProgress() });
|
|
8745
8745
|
});
|
|
8746
8746
|
};
|
|
8747
8747
|
check();
|
|
@@ -8774,7 +8774,7 @@ function useCalendarSupport() {
|
|
|
8774
8774
|
authorize: (vendor, returnPath) => arbi.connectors.authorize(vendor, returnPath),
|
|
8775
8775
|
bridge: (vendor) => arbi.connectors.bridgeTokens({ vendor }),
|
|
8776
8776
|
connectedVendors: async () => (await qc.fetchQuery({
|
|
8777
|
-
queryKey:
|
|
8777
|
+
queryKey: chunkRRWAX52L_cjs.connectorQueryKeys.mine(),
|
|
8778
8778
|
queryFn: () => arbi.connectors.mine(),
|
|
8779
8779
|
staleTime: 3e4
|
|
8780
8780
|
})).map((c) => c.vendor_key)
|
|
@@ -8785,16 +8785,16 @@ function useCalendarSupport() {
|
|
|
8785
8785
|
}
|
|
8786
8786
|
function invalidateCalendarEvents(qc) {
|
|
8787
8787
|
return Promise.all([
|
|
8788
|
-
qc.invalidateQueries({ queryKey:
|
|
8789
|
-
qc.invalidateQueries({ queryKey:
|
|
8790
|
-
qc.invalidateQueries({ queryKey:
|
|
8791
|
-
qc.invalidateQueries({ queryKey:
|
|
8788
|
+
qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.calendarQueryKeys.events() }),
|
|
8789
|
+
qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.calendarQueryKeys.eventDetails() }),
|
|
8790
|
+
qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.calendarQueryKeys.invitations() }),
|
|
8791
|
+
qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.calendarQueryKeys.allLookups() })
|
|
8792
8792
|
]);
|
|
8793
8793
|
}
|
|
8794
8794
|
function invalidateCalendars(qc) {
|
|
8795
8795
|
return Promise.all([
|
|
8796
|
-
qc.invalidateQueries({ queryKey:
|
|
8797
|
-
qc.invalidateQueries({ queryKey:
|
|
8796
|
+
qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.calendarQueryKeys.calendars() }),
|
|
8797
|
+
qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.calendarQueryKeys.events() })
|
|
8798
8798
|
]);
|
|
8799
8799
|
}
|
|
8800
8800
|
function useOfflineRead() {
|
|
@@ -8816,8 +8816,8 @@ function useCalendarSettings(enabled = true) {
|
|
|
8816
8816
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8817
8817
|
const { read, networkMode } = useOfflineRead();
|
|
8818
8818
|
return reactQuery.useQuery({
|
|
8819
|
-
queryKey:
|
|
8820
|
-
queryFn: () => read(
|
|
8819
|
+
queryKey: chunkRRWAX52L_cjs.calendarQueryKeys.settings(),
|
|
8820
|
+
queryFn: () => read(chunkRRWAX52L_cjs.calendarQueryKeys.settings(), () => arbi.calendar.getSettings()),
|
|
8821
8821
|
networkMode,
|
|
8822
8822
|
enabled: enabled && arbi.isLoggedIn,
|
|
8823
8823
|
staleTime: 5 * 6e4,
|
|
@@ -8828,8 +8828,8 @@ function useCalendars(enabled = true) {
|
|
|
8828
8828
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8829
8829
|
const { read, networkMode } = useOfflineRead();
|
|
8830
8830
|
return reactQuery.useQuery({
|
|
8831
|
-
queryKey:
|
|
8832
|
-
queryFn: () => read(
|
|
8831
|
+
queryKey: chunkRRWAX52L_cjs.calendarQueryKeys.calendars(),
|
|
8832
|
+
queryFn: () => read(chunkRRWAX52L_cjs.calendarQueryKeys.calendars(), () => arbi.calendar.listCalendars()),
|
|
8833
8833
|
networkMode,
|
|
8834
8834
|
enabled: enabled && arbi.isLoggedIn,
|
|
8835
8835
|
staleTime: 6e4,
|
|
@@ -8840,9 +8840,9 @@ function useCalendarEvents(params) {
|
|
|
8840
8840
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8841
8841
|
const { read, networkMode } = useOfflineRead();
|
|
8842
8842
|
return reactQuery.useQuery({
|
|
8843
|
-
queryKey: params ?
|
|
8843
|
+
queryKey: params ? chunkRRWAX52L_cjs.calendarQueryKeys.eventList(params) : chunkRRWAX52L_cjs.calendarQueryKeys.events(),
|
|
8844
8844
|
queryFn: () => read(
|
|
8845
|
-
|
|
8845
|
+
chunkRRWAX52L_cjs.calendarQueryKeys.eventList(params),
|
|
8846
8846
|
() => arbi.calendar.listEvents(params)
|
|
8847
8847
|
),
|
|
8848
8848
|
networkMode,
|
|
@@ -8856,9 +8856,9 @@ function useCalendarEvent(id, recurrenceId) {
|
|
|
8856
8856
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8857
8857
|
const { read, networkMode } = useOfflineRead();
|
|
8858
8858
|
return reactQuery.useQuery({
|
|
8859
|
-
queryKey:
|
|
8859
|
+
queryKey: chunkRRWAX52L_cjs.calendarQueryKeys.event(id ?? "", recurrenceId),
|
|
8860
8860
|
queryFn: () => read(
|
|
8861
|
-
|
|
8861
|
+
chunkRRWAX52L_cjs.calendarQueryKeys.event(id, recurrenceId),
|
|
8862
8862
|
() => arbi.calendar.getEvent(id, recurrenceId)
|
|
8863
8863
|
),
|
|
8864
8864
|
networkMode,
|
|
@@ -8871,9 +8871,9 @@ function useFetchCalendarEvent() {
|
|
|
8871
8871
|
const qc = reactQuery.useQueryClient();
|
|
8872
8872
|
const { read, networkMode } = useOfflineRead();
|
|
8873
8873
|
return (id, recurrenceId) => qc.fetchQuery({
|
|
8874
|
-
queryKey:
|
|
8874
|
+
queryKey: chunkRRWAX52L_cjs.calendarQueryKeys.event(id, recurrenceId),
|
|
8875
8875
|
queryFn: () => read(
|
|
8876
|
-
|
|
8876
|
+
chunkRRWAX52L_cjs.calendarQueryKeys.event(id, recurrenceId),
|
|
8877
8877
|
() => arbi.calendar.getEvent(id, recurrenceId)
|
|
8878
8878
|
),
|
|
8879
8879
|
networkMode,
|
|
@@ -8884,7 +8884,7 @@ function useCalendarOverlays(range, layers) {
|
|
|
8884
8884
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8885
8885
|
const workspaceId = arbi.hasWorkspace ? arbi.getWorkspaceId() : null;
|
|
8886
8886
|
return reactQuery.useQuery({
|
|
8887
|
-
queryKey:
|
|
8887
|
+
queryKey: chunkRRWAX52L_cjs.calendarQueryKeys.overlays(workspaceId, range ?? void 0, layers),
|
|
8888
8888
|
queryFn: () => arbi.calendar.listOverlays(range, layers),
|
|
8889
8889
|
enabled: !!workspaceId && !!range && layers.length > 0,
|
|
8890
8890
|
staleTime: 6e4,
|
|
@@ -8897,12 +8897,12 @@ function useCalendarOutbox() {
|
|
|
8897
8897
|
const { offline } = useCalendarSupport();
|
|
8898
8898
|
React.useEffect(
|
|
8899
8899
|
() => offline?.subscribe(() => {
|
|
8900
|
-
void qc.invalidateQueries({ queryKey:
|
|
8900
|
+
void qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.calendarQueryKeys.outbox() });
|
|
8901
8901
|
}),
|
|
8902
8902
|
[offline, qc]
|
|
8903
8903
|
);
|
|
8904
8904
|
return reactQuery.useQuery({
|
|
8905
|
-
queryKey:
|
|
8905
|
+
queryKey: chunkRRWAX52L_cjs.calendarQueryKeys.outbox(),
|
|
8906
8906
|
queryFn: () => offline ? offline.pending() : Promise.resolve([]),
|
|
8907
8907
|
networkMode: "always",
|
|
8908
8908
|
staleTime: Infinity
|
|
@@ -8911,7 +8911,7 @@ function useCalendarOutbox() {
|
|
|
8911
8911
|
function useCalendarShares(calId) {
|
|
8912
8912
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8913
8913
|
return reactQuery.useQuery({
|
|
8914
|
-
queryKey:
|
|
8914
|
+
queryKey: chunkRRWAX52L_cjs.calendarQueryKeys.shares(calId ?? ""),
|
|
8915
8915
|
queryFn: () => arbi.calendar.listShares(calId),
|
|
8916
8916
|
enabled: !!calId && arbi.isLoggedIn,
|
|
8917
8917
|
retry: false
|
|
@@ -8920,7 +8920,7 @@ function useCalendarShares(calId) {
|
|
|
8920
8920
|
function useHolidayCountries(enabled = true) {
|
|
8921
8921
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8922
8922
|
return reactQuery.useQuery({
|
|
8923
|
-
queryKey:
|
|
8923
|
+
queryKey: chunkRRWAX52L_cjs.calendarQueryKeys.holidayCountries(),
|
|
8924
8924
|
queryFn: () => arbi.calendar.listHolidayCountries(),
|
|
8925
8925
|
enabled: enabled && arbi.isLoggedIn,
|
|
8926
8926
|
staleTime: Infinity,
|
|
@@ -8930,7 +8930,7 @@ function useHolidayCountries(enabled = true) {
|
|
|
8930
8930
|
function useRooms(q) {
|
|
8931
8931
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8932
8932
|
return reactQuery.useQuery({
|
|
8933
|
-
queryKey:
|
|
8933
|
+
queryKey: chunkRRWAX52L_cjs.calendarQueryKeys.rooms(q ?? {}),
|
|
8934
8934
|
queryFn: () => arbi.calendar.listRooms(q ?? {}),
|
|
8935
8935
|
enabled: !!q && arbi.isLoggedIn,
|
|
8936
8936
|
staleTime: 3e4,
|
|
@@ -8941,7 +8941,7 @@ function useRooms(q) {
|
|
|
8941
8941
|
function useFreeBusy(attendees, start, end) {
|
|
8942
8942
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8943
8943
|
return reactQuery.useQuery({
|
|
8944
|
-
queryKey:
|
|
8944
|
+
queryKey: chunkRRWAX52L_cjs.calendarQueryKeys.freebusy(attendees, start ?? "", end ?? ""),
|
|
8945
8945
|
queryFn: () => arbi.calendar.freeBusy({ attendees, start, end }),
|
|
8946
8946
|
enabled: attendees.length > 0 && !!start && !!end && arbi.isLoggedIn,
|
|
8947
8947
|
staleTime: 3e4,
|
|
@@ -8952,7 +8952,7 @@ function useFreeBusy(attendees, start, end) {
|
|
|
8952
8952
|
function useCalendarInvitations() {
|
|
8953
8953
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8954
8954
|
return reactQuery.useQuery({
|
|
8955
|
-
queryKey:
|
|
8955
|
+
queryKey: chunkRRWAX52L_cjs.calendarQueryKeys.invitations(),
|
|
8956
8956
|
queryFn: () => arbi.calendar.listInvitations(),
|
|
8957
8957
|
enabled: arbi.isLoggedIn,
|
|
8958
8958
|
staleTime: 3e4,
|
|
@@ -8963,7 +8963,7 @@ function useCalendarInvitations() {
|
|
|
8963
8963
|
function useCalendarEventByUid(uid) {
|
|
8964
8964
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8965
8965
|
return reactQuery.useQuery({
|
|
8966
|
-
queryKey:
|
|
8966
|
+
queryKey: chunkRRWAX52L_cjs.calendarQueryKeys.lookup(uid ?? ""),
|
|
8967
8967
|
queryFn: () => arbi.calendar.lookupByUid(uid),
|
|
8968
8968
|
enabled: !!uid && arbi.isLoggedIn,
|
|
8969
8969
|
retry: false
|
|
@@ -8974,7 +8974,7 @@ function useSaveCalendarSettings() {
|
|
|
8974
8974
|
const qc = reactQuery.useQueryClient();
|
|
8975
8975
|
return reactQuery.useMutation({
|
|
8976
8976
|
mutationFn: (body) => arbi.calendar.putSettings(body),
|
|
8977
|
-
onSuccess: (data) => qc.setQueryData(
|
|
8977
|
+
onSuccess: (data) => qc.setQueryData(chunkRRWAX52L_cjs.calendarQueryKeys.settings(), data)
|
|
8978
8978
|
});
|
|
8979
8979
|
}
|
|
8980
8980
|
function useCreateCalendar() {
|
|
@@ -9062,7 +9062,7 @@ function useShareCalendar() {
|
|
|
9062
9062
|
const qc = reactQuery.useQueryClient();
|
|
9063
9063
|
return reactQuery.useMutation({
|
|
9064
9064
|
mutationFn: ({ calId, grantee, role }) => arbi.calendar.share(calId, grantee, role),
|
|
9065
|
-
onSuccess: (_d, v) => qc.invalidateQueries({ queryKey:
|
|
9065
|
+
onSuccess: (_d, v) => qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.calendarQueryKeys.shares(v.calId) })
|
|
9066
9066
|
});
|
|
9067
9067
|
}
|
|
9068
9068
|
function useUnshareCalendar() {
|
|
@@ -9070,7 +9070,7 @@ function useUnshareCalendar() {
|
|
|
9070
9070
|
const qc = reactQuery.useQueryClient();
|
|
9071
9071
|
return reactQuery.useMutation({
|
|
9072
9072
|
mutationFn: ({ calId, userId }) => arbi.calendar.unshare(calId, userId),
|
|
9073
|
-
onSuccess: (_d, v) => qc.invalidateQueries({ queryKey:
|
|
9073
|
+
onSuccess: (_d, v) => qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.calendarQueryKeys.shares(v.calId) })
|
|
9074
9074
|
});
|
|
9075
9075
|
}
|
|
9076
9076
|
function useSubscribeCalendar() {
|
|
@@ -9102,7 +9102,7 @@ function useCreateRoom() {
|
|
|
9102
9102
|
const qc = reactQuery.useQueryClient();
|
|
9103
9103
|
return reactQuery.useMutation({
|
|
9104
9104
|
mutationFn: (body) => arbi.calendar.createRoom(body),
|
|
9105
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
9105
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.calendarQueryKeys.allRooms() })
|
|
9106
9106
|
});
|
|
9107
9107
|
}
|
|
9108
9108
|
function useFindTime() {
|
|
@@ -9128,21 +9128,21 @@ function usePublishCalendar() {
|
|
|
9128
9128
|
mutationFn: ({ accountId, calendarId }) => arbi.calendar.publishToAccount(accountId, calendarId),
|
|
9129
9129
|
onSuccess: () => {
|
|
9130
9130
|
void invalidateCalendars(qc);
|
|
9131
|
-
void qc.invalidateQueries({ queryKey:
|
|
9131
|
+
void qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.calendarQueryKeys.accounts() });
|
|
9132
9132
|
}
|
|
9133
9133
|
});
|
|
9134
9134
|
}
|
|
9135
9135
|
function invalidateAccounts(qc) {
|
|
9136
9136
|
return Promise.all([
|
|
9137
|
-
qc.invalidateQueries({ queryKey:
|
|
9138
|
-
qc.invalidateQueries({ queryKey:
|
|
9139
|
-
qc.invalidateQueries({ queryKey:
|
|
9137
|
+
qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.calendarQueryKeys.accounts() }),
|
|
9138
|
+
qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.calendarQueryKeys.calendars() }),
|
|
9139
|
+
qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.calendarQueryKeys.events() })
|
|
9140
9140
|
]);
|
|
9141
9141
|
}
|
|
9142
9142
|
function useCalendarAccounts(enabled = true) {
|
|
9143
9143
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
9144
9144
|
return reactQuery.useQuery({
|
|
9145
|
-
queryKey:
|
|
9145
|
+
queryKey: chunkRRWAX52L_cjs.calendarQueryKeys.accounts(),
|
|
9146
9146
|
queryFn: () => arbi.calendar.listAccounts(),
|
|
9147
9147
|
enabled: enabled && arbi.isLoggedIn,
|
|
9148
9148
|
staleTime: 3e4,
|
|
@@ -9152,7 +9152,7 @@ function useCalendarAccounts(enabled = true) {
|
|
|
9152
9152
|
function useCalDavProfiles(enabled = true) {
|
|
9153
9153
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
9154
9154
|
return reactQuery.useQuery({
|
|
9155
|
-
queryKey:
|
|
9155
|
+
queryKey: chunkRRWAX52L_cjs.calendarQueryKeys.caldavProfiles(),
|
|
9156
9156
|
queryFn: () => arbi.calendar.listCalDavProfiles(),
|
|
9157
9157
|
enabled: enabled && arbi.isLoggedIn,
|
|
9158
9158
|
staleTime: 10 * 6e4,
|
|
@@ -9295,7 +9295,7 @@ function useSyncAccountsOnOpen(enabled = true) {
|
|
|
9295
9295
|
function useBookingPages(enabled = true) {
|
|
9296
9296
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
9297
9297
|
return reactQuery.useQuery({
|
|
9298
|
-
queryKey:
|
|
9298
|
+
queryKey: chunkRRWAX52L_cjs.calendarQueryKeys.bookingPages(),
|
|
9299
9299
|
queryFn: () => arbi.calendar.listBookingPages(),
|
|
9300
9300
|
enabled: enabled && arbi.isLoggedIn,
|
|
9301
9301
|
staleTime: 3e4,
|
|
@@ -9307,7 +9307,7 @@ function useSaveBookingPage() {
|
|
|
9307
9307
|
const qc = reactQuery.useQueryClient();
|
|
9308
9308
|
return reactQuery.useMutation({
|
|
9309
9309
|
mutationFn: (body) => arbi.calendar.putBookingPage(body),
|
|
9310
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
9310
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.calendarQueryKeys.bookingPages() })
|
|
9311
9311
|
});
|
|
9312
9312
|
}
|
|
9313
9313
|
function useDeleteBookingPage() {
|
|
@@ -9315,11 +9315,11 @@ function useDeleteBookingPage() {
|
|
|
9315
9315
|
const qc = reactQuery.useQueryClient();
|
|
9316
9316
|
return reactQuery.useMutation({
|
|
9317
9317
|
mutationFn: (slug) => arbi.calendar.deleteBookingPage(slug),
|
|
9318
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
9318
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.calendarQueryKeys.bookingPages() })
|
|
9319
9319
|
});
|
|
9320
9320
|
}
|
|
9321
9321
|
function useWorkspaceDocs(workspaceId) {
|
|
9322
|
-
const { data: docs = [], isLoading, isError } =
|
|
9322
|
+
const { data: docs = [], isLoading, isError } = chunk4UDIA47U_cjs.useDocuments(workspaceId);
|
|
9323
9323
|
const docIds = React.useMemo(
|
|
9324
9324
|
() => docs.map((d) => d.external_id).filter((id) => !!id),
|
|
9325
9325
|
[docs]
|
|
@@ -9327,7 +9327,7 @@ function useWorkspaceDocs(workspaceId) {
|
|
|
9327
9327
|
return { wsId: workspaceId, docs, docIds, isLoading, isError, ready: docIds.length > 0 };
|
|
9328
9328
|
}
|
|
9329
9329
|
function useAiTask() {
|
|
9330
|
-
const mutation =
|
|
9330
|
+
const mutation = chunkFLAZSNC5_cjs.useAssistantQuery();
|
|
9331
9331
|
const [status, setStatus] = React.useState("idle");
|
|
9332
9332
|
const [text, setText] = React.useState("");
|
|
9333
9333
|
const [stepCount, setStepCount] = React.useState(0);
|
|
@@ -10619,6 +10619,8 @@ function getNotificationTypeMeta(type) {
|
|
|
10619
10619
|
case "docx_mention":
|
|
10620
10620
|
case "mention":
|
|
10621
10621
|
return { Icon: lucideReact.AtSign, iconClassName: "text-primary", label: "Mention" };
|
|
10622
|
+
case "file_shared":
|
|
10623
|
+
return { Icon: lucideReact.FileText, iconClassName: "text-primary", label: "Shared file" };
|
|
10622
10624
|
case "signature_requested":
|
|
10623
10625
|
return { Icon: lucideReact.PenLine, iconClassName: "text-primary", label: "Signature" };
|
|
10624
10626
|
case "signature_completed":
|
|
@@ -10765,7 +10767,7 @@ function ActivityFeed({
|
|
|
10765
10767
|
enabled,
|
|
10766
10768
|
"data-testid": testId = "activity-feed"
|
|
10767
10769
|
}) {
|
|
10768
|
-
const { data, isLoading, isError } =
|
|
10770
|
+
const { data, isLoading, isError } = chunkFLAZSNC5_cjs.useActivity({ limit, enabled });
|
|
10769
10771
|
if (isLoading) {
|
|
10770
10772
|
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: [
|
|
10771
10773
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-4 w-4 shrink-0 animate-pulse rounded-full bg-muted" }),
|
|
@@ -10817,7 +10819,7 @@ var workTypes = [
|
|
|
10817
10819
|
function useWorkNotifications(options) {
|
|
10818
10820
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
10819
10821
|
const queries = reactQuery.useQueryClient();
|
|
10820
|
-
const queryKey =
|
|
10822
|
+
const queryKey = chunkRRWAX52L_cjs.arbiQueryKeys.typedNotifications("work", options.apiUrl, options.userId);
|
|
10821
10823
|
const query = reactQuery.useQuery({
|
|
10822
10824
|
queryKey,
|
|
10823
10825
|
queryFn: async () => (await Promise.all(workTypes.map((type) => arbi.notifications.list({ type })))).flat(),
|
|
@@ -10838,16 +10840,16 @@ function useNotifications(options = {}) {
|
|
|
10838
10840
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
10839
10841
|
const queries = reactQuery.useQueryClient();
|
|
10840
10842
|
const limit = options.limit ?? 100;
|
|
10841
|
-
const ws = React.useContext(
|
|
10843
|
+
const ws = React.useContext(chunkRB23E45O_cjs.ArbiWsContext);
|
|
10842
10844
|
React.useEffect(
|
|
10843
10845
|
() => ws?.subscribe((message) => {
|
|
10844
10846
|
if ("sender" in message && "recipient" in message)
|
|
10845
|
-
void queries.invalidateQueries({ queryKey:
|
|
10847
|
+
void queries.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.allNotifications() });
|
|
10846
10848
|
}),
|
|
10847
10849
|
[ws, queries]
|
|
10848
10850
|
);
|
|
10849
10851
|
return reactQuery.useQuery({
|
|
10850
|
-
queryKey:
|
|
10852
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.notifications(limit),
|
|
10851
10853
|
queryFn: () => arbi.notifications.list({ limit }),
|
|
10852
10854
|
enabled: (options.enabled ?? true) && arbi.isLoggedIn
|
|
10853
10855
|
});
|
|
@@ -10857,7 +10859,7 @@ function useDeleteNotifications() {
|
|
|
10857
10859
|
const queries = reactQuery.useQueryClient();
|
|
10858
10860
|
return reactQuery.useMutation({
|
|
10859
10861
|
mutationFn: (ids) => arbi.notifications.delete(ids),
|
|
10860
|
-
onSuccess: () => queries.invalidateQueries({ queryKey:
|
|
10862
|
+
onSuccess: () => queries.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.allNotifications() })
|
|
10861
10863
|
});
|
|
10862
10864
|
}
|
|
10863
10865
|
function useMarkNotificationsRead() {
|
|
@@ -10865,7 +10867,7 @@ function useMarkNotificationsRead() {
|
|
|
10865
10867
|
const queries = reactQuery.useQueryClient();
|
|
10866
10868
|
return reactQuery.useMutation({
|
|
10867
10869
|
mutationFn: (ids) => arbi.notifications.markRead(ids),
|
|
10868
|
-
onSuccess: () => queries.invalidateQueries({ queryKey:
|
|
10870
|
+
onSuccess: () => queries.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.allNotifications() })
|
|
10869
10871
|
});
|
|
10870
10872
|
}
|
|
10871
10873
|
|
|
@@ -11046,6 +11048,17 @@ function describeServerNotification(n, options = {}) {
|
|
|
11046
11048
|
};
|
|
11047
11049
|
}
|
|
11048
11050
|
switch (type) {
|
|
11051
|
+
case "file_shared": {
|
|
11052
|
+
const meta = parse(n.content);
|
|
11053
|
+
const id = meta?.file_share_id;
|
|
11054
|
+
if (typeof id !== "string" || !/^fsh-[0-9a-f]{32}$/.test(id)) return null;
|
|
11055
|
+
return {
|
|
11056
|
+
title: meta?.declined ? `${senderName} declined to sign a file` : meta?.completed ? "Everyone has signed. Your PDF is ready." : meta?.signature ? `${senderName} asked you to sign a file` : `${senderName} shared a file with you`,
|
|
11057
|
+
variant: meta?.declined ? "warning" : meta?.completed ? "success" : "info",
|
|
11058
|
+
actionLabel: meta?.signature && !meta?.completed ? "Review and sign" : "Open file",
|
|
11059
|
+
target: { kind: "url", url: `/shared-files/${id}` }
|
|
11060
|
+
};
|
|
11061
|
+
}
|
|
11049
11062
|
case "call_missed":
|
|
11050
11063
|
return {
|
|
11051
11064
|
title: `Missed call from ${senderName}`,
|
|
@@ -11231,6 +11244,99 @@ function describeServerNotification(n, options = {}) {
|
|
|
11231
11244
|
}
|
|
11232
11245
|
}
|
|
11233
11246
|
|
|
11247
|
+
// src/notifications/calendar-notifications.ts
|
|
11248
|
+
function validZone(zone) {
|
|
11249
|
+
if (typeof zone !== "string" || !zone) return void 0;
|
|
11250
|
+
try {
|
|
11251
|
+
new Intl.DateTimeFormat("en", { timeZone: zone });
|
|
11252
|
+
return zone;
|
|
11253
|
+
} catch {
|
|
11254
|
+
return void 0;
|
|
11255
|
+
}
|
|
11256
|
+
}
|
|
11257
|
+
function calendarNotificationMeta(content) {
|
|
11258
|
+
try {
|
|
11259
|
+
const m = JSON.parse(content || "{}");
|
|
11260
|
+
const startsAt = typeof m.starts_at === "string" ? new Date(m.starts_at) : void 0;
|
|
11261
|
+
return {
|
|
11262
|
+
eventId: typeof m.event_id === "string" && /^evt-[A-Za-z0-9]{8}$/.test(m.event_id) ? m.event_id : void 0,
|
|
11263
|
+
recurrenceId: typeof m.recurrence_id === "string" ? m.recurrence_id : null,
|
|
11264
|
+
startsAt: startsAt && Number.isFinite(startsAt.getTime()) ? startsAt : void 0,
|
|
11265
|
+
partstat: typeof m.partstat === "string" ? m.partstat : void 0,
|
|
11266
|
+
hasConference: m.has_conference === true,
|
|
11267
|
+
timeZone: validZone(m.time_zone)
|
|
11268
|
+
};
|
|
11269
|
+
} catch {
|
|
11270
|
+
return { hasConference: false };
|
|
11271
|
+
}
|
|
11272
|
+
}
|
|
11273
|
+
function when(date, timeZone) {
|
|
11274
|
+
if (!date) return "";
|
|
11275
|
+
return ` (${date.toLocaleString([], { weekday: "short", day: "numeric", month: "short", hour: "2-digit", minute: "2-digit", timeZone })})`;
|
|
11276
|
+
}
|
|
11277
|
+
var PARTSTAT_WORDS = {
|
|
11278
|
+
accepted: "accepted",
|
|
11279
|
+
declined: "declined",
|
|
11280
|
+
tentative: "tentatively accepted",
|
|
11281
|
+
delegated: "delegated"
|
|
11282
|
+
};
|
|
11283
|
+
function describeCalendarNotification(n, { senderName, timeZone }) {
|
|
11284
|
+
const type = n.type;
|
|
11285
|
+
if (!type.startsWith("calendar_")) return null;
|
|
11286
|
+
const meta = calendarNotificationMeta(n.content);
|
|
11287
|
+
const zone = meta.timeZone ?? validZone(timeZone);
|
|
11288
|
+
const at = when(meta.startsAt, zone);
|
|
11289
|
+
const target = {
|
|
11290
|
+
kind: "calendar",
|
|
11291
|
+
...meta.eventId && { eventId: meta.eventId, recurrenceId: meta.recurrenceId }
|
|
11292
|
+
};
|
|
11293
|
+
switch (type) {
|
|
11294
|
+
case "calendar_invite":
|
|
11295
|
+
return { title: `${senderName} invited you to an event${at}`, variant: "info", target };
|
|
11296
|
+
case "calendar_update":
|
|
11297
|
+
return { title: `${senderName} updated an event${at}`, variant: "info", target };
|
|
11298
|
+
case "calendar_cancel":
|
|
11299
|
+
return { title: `${senderName} cancelled an event${at}`, variant: "warning", target };
|
|
11300
|
+
case "calendar_reply": {
|
|
11301
|
+
const word = PARTSTAT_WORDS[meta.partstat ?? ""] ?? "replied to";
|
|
11302
|
+
return {
|
|
11303
|
+
title: `${senderName} ${word} your invitation${at}`,
|
|
11304
|
+
variant: meta.partstat === "declined" ? "warning" : "info",
|
|
11305
|
+
target
|
|
11306
|
+
};
|
|
11307
|
+
}
|
|
11308
|
+
case "calendar_share":
|
|
11309
|
+
return { title: `${senderName} shared a calendar with you`, variant: "info", target };
|
|
11310
|
+
case "calendar_counter":
|
|
11311
|
+
return { title: `${senderName} proposed a new time${at}`, variant: "info", target };
|
|
11312
|
+
case "calendar_reminder": {
|
|
11313
|
+
const title = meta.startsAt ? `An event starts at ${meta.startsAt.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", timeZone: zone })}` : "An event starts soon";
|
|
11314
|
+
if (meta.hasConference && meta.eventId)
|
|
11315
|
+
return { title, variant: "info", actionLabel: "Join", target: { ...target, join: true } };
|
|
11316
|
+
return { title, variant: "info", actionLabel: "Open", target };
|
|
11317
|
+
}
|
|
11318
|
+
default:
|
|
11319
|
+
return { title: "Calendar update", variant: "info", target };
|
|
11320
|
+
}
|
|
11321
|
+
}
|
|
11322
|
+
|
|
11323
|
+
// src/notifications/bell.ts
|
|
11324
|
+
function serverNotificationBellEntry(n, { open, workspaceHref, calendarTimeZone, ...describe }) {
|
|
11325
|
+
const senderName = notificationUserName(n.sender);
|
|
11326
|
+
const described = describeCalendarNotification(n, { senderName, timeZone: calendarTimeZone }) ?? describeServerNotification(n, { senderName, ...describe });
|
|
11327
|
+
if (!described) return null;
|
|
11328
|
+
const { title, variant, actionLabel, target } = described;
|
|
11329
|
+
return {
|
|
11330
|
+
id: n.external_id,
|
|
11331
|
+
ts: Date.parse(n.created_at),
|
|
11332
|
+
read: n.read ?? false,
|
|
11333
|
+
title,
|
|
11334
|
+
variant,
|
|
11335
|
+
href: target?.kind === "workspace" ? workspaceHref?.(target.workspaceId) : void 0,
|
|
11336
|
+
...target && target.kind !== "workspace" && { actionLabel, onSelect: () => open(target) }
|
|
11337
|
+
};
|
|
11338
|
+
}
|
|
11339
|
+
|
|
11234
11340
|
// src/directmessages/utils.ts
|
|
11235
11341
|
function userInitials(user) {
|
|
11236
11342
|
const parts = [user.given_name, user.family_name].filter(Boolean);
|
|
@@ -11599,7 +11705,7 @@ function DmComposer({
|
|
|
11599
11705
|
function useChats(options = {}) {
|
|
11600
11706
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
11601
11707
|
return reactQuery.useQuery({
|
|
11602
|
-
queryKey:
|
|
11708
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.chatList(),
|
|
11603
11709
|
queryFn: () => arbi.chats.list(),
|
|
11604
11710
|
enabled: (options.enabled ?? true) && arbi.isLoggedIn
|
|
11605
11711
|
});
|
|
@@ -11607,20 +11713,20 @@ function useChats(options = {}) {
|
|
|
11607
11713
|
function useChatLiveUpdates() {
|
|
11608
11714
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
11609
11715
|
const queryClient = reactQuery.useQueryClient();
|
|
11610
|
-
const ws = React.useContext(
|
|
11716
|
+
const ws = React.useContext(chunkRB23E45O_cjs.ArbiWsContext);
|
|
11611
11717
|
const arbiRef = React.useRef(arbi);
|
|
11612
11718
|
arbiRef.current = arbi;
|
|
11613
11719
|
React.useEffect(
|
|
11614
11720
|
() => ws?.subscribe((message) => {
|
|
11615
11721
|
if (message.type.startsWith("chat.") || message.type === "agent_dm_status")
|
|
11616
|
-
void
|
|
11722
|
+
void chunkRB23E45O_cjs.applyChatEvent(arbiRef.current, queryClient, message);
|
|
11617
11723
|
}),
|
|
11618
11724
|
[ws, queryClient]
|
|
11619
11725
|
);
|
|
11620
11726
|
}
|
|
11621
11727
|
function useAgentDmStatus(agentExtId) {
|
|
11622
11728
|
const { data } = reactQuery.useQuery({
|
|
11623
|
-
queryKey:
|
|
11729
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.agentDmStatus(agentExtId ?? ""),
|
|
11624
11730
|
// Written by the events only: nothing to fetch.
|
|
11625
11731
|
queryFn: () => null,
|
|
11626
11732
|
enabled: false,
|
|
@@ -11635,7 +11741,7 @@ function useChatUnreadTotal() {
|
|
|
11635
11741
|
function useUnreadByPeer() {
|
|
11636
11742
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
11637
11743
|
const { data = [] } = useChats();
|
|
11638
|
-
const me =
|
|
11744
|
+
const me = chunkRB23E45O_cjs.myChatId(arbi);
|
|
11639
11745
|
return React.useMemo(() => {
|
|
11640
11746
|
const out = /* @__PURE__ */ new Map();
|
|
11641
11747
|
for (const c of data) {
|
|
@@ -11679,14 +11785,14 @@ function useChatThread(chat) {
|
|
|
11679
11785
|
const chatRef = React.useRef(chat);
|
|
11680
11786
|
chatRef.current = chat;
|
|
11681
11787
|
const query = reactQuery.useQuery({
|
|
11682
|
-
queryKey:
|
|
11788
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.chatThread(chatExtId),
|
|
11683
11789
|
queryFn: () => arbi.chats.page(chatRef.current),
|
|
11684
11790
|
enabled: !!chat && arbi.isLoggedIn,
|
|
11685
11791
|
staleTime: Infinity
|
|
11686
11792
|
});
|
|
11687
11793
|
const [loadingOlder, setLoadingOlder] = React.useState(false);
|
|
11688
11794
|
const loadOlder = React.useCallback(async () => {
|
|
11689
|
-
const key =
|
|
11795
|
+
const key = chunkRRWAX52L_cjs.arbiQueryKeys.chatThread(chatExtId);
|
|
11690
11796
|
const current = queryClient.getQueryData(key);
|
|
11691
11797
|
const oldest = current?.messages.find((m) => !m.optimistic);
|
|
11692
11798
|
if (!chatRef.current || !current?.hasMore || !oldest) return;
|
|
@@ -11722,15 +11828,15 @@ function useChatPost() {
|
|
|
11722
11828
|
const queryClient = reactQuery.useQueryClient();
|
|
11723
11829
|
return React.useCallback(
|
|
11724
11830
|
async (target, post) => {
|
|
11725
|
-
const me =
|
|
11831
|
+
const me = chunkRB23E45O_cjs.myChatId(arbi);
|
|
11726
11832
|
if (!me) throw new Error("No active session");
|
|
11727
11833
|
let chat = target.chat;
|
|
11728
11834
|
if (!chat) {
|
|
11729
11835
|
if (!target.peerExtId) throw new Error("Could not resolve the conversation");
|
|
11730
11836
|
chat = await arbi.chats.openDirect(target.peerExtId);
|
|
11731
|
-
|
|
11837
|
+
chunkRB23E45O_cjs.upsertChat(queryClient, chat);
|
|
11732
11838
|
queryClient.setQueryData(
|
|
11733
|
-
|
|
11839
|
+
chunkRRWAX52L_cjs.arbiQueryKeys.chatThread(chat.external_id),
|
|
11734
11840
|
(old) => old ?? { messages: [], hasMore: false }
|
|
11735
11841
|
);
|
|
11736
11842
|
}
|
|
@@ -11751,7 +11857,7 @@ function useChatPost() {
|
|
|
11751
11857
|
updated_at: now,
|
|
11752
11858
|
optimistic: true
|
|
11753
11859
|
};
|
|
11754
|
-
|
|
11860
|
+
chunkRB23E45O_cjs.appendToThread(queryClient, chat.external_id, optimistic);
|
|
11755
11861
|
try {
|
|
11756
11862
|
let attachments = [];
|
|
11757
11863
|
if (files.length) {
|
|
@@ -11771,16 +11877,16 @@ function useChatPost() {
|
|
|
11771
11877
|
...post.workspaceExtId ? { workspaceExtId: post.workspaceExtId } : {},
|
|
11772
11878
|
contextOnly: !!post.contextOnly
|
|
11773
11879
|
});
|
|
11774
|
-
|
|
11775
|
-
|
|
11880
|
+
chunkRB23E45O_cjs.appendToThread(queryClient, chat.external_id, message, optimisticId);
|
|
11881
|
+
chunkRB23E45O_cjs.upsertChat(queryClient, {
|
|
11776
11882
|
...chat,
|
|
11777
11883
|
last_message: message,
|
|
11778
11884
|
last_message_at: message.created_at
|
|
11779
11885
|
});
|
|
11780
11886
|
return { chat, message };
|
|
11781
11887
|
} catch (err) {
|
|
11782
|
-
|
|
11783
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
11888
|
+
chunkRB23E45O_cjs.dropFromThread(queryClient, chat.external_id, optimisticId);
|
|
11889
|
+
void queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.chatList() });
|
|
11784
11890
|
throw err;
|
|
11785
11891
|
}
|
|
11786
11892
|
},
|
|
@@ -11791,7 +11897,7 @@ function useDeleteChatMessage() {
|
|
|
11791
11897
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
11792
11898
|
const queryClient = reactQuery.useQueryClient();
|
|
11793
11899
|
return React.useCallback(
|
|
11794
|
-
(chatExtId, messageExtId) =>
|
|
11900
|
+
(chatExtId, messageExtId) => chunkRB23E45O_cjs.deleteChatMessage(arbi, queryClient, chatExtId, messageExtId),
|
|
11795
11901
|
[arbi, queryClient]
|
|
11796
11902
|
);
|
|
11797
11903
|
}
|
|
@@ -11800,7 +11906,7 @@ function useMarkChatRead() {
|
|
|
11800
11906
|
const queryClient = reactQuery.useQueryClient();
|
|
11801
11907
|
return React.useCallback(
|
|
11802
11908
|
(chat, messageExtId) => {
|
|
11803
|
-
|
|
11909
|
+
chunkRB23E45O_cjs.upsertChat(queryClient, { ...chat, unread_count: 0 });
|
|
11804
11910
|
return arbi.chats.markRead(chat.external_id, messageExtId).then(
|
|
11805
11911
|
() => void 0,
|
|
11806
11912
|
() => void 0
|
|
@@ -11814,7 +11920,7 @@ function useCreateGroupChat() {
|
|
|
11814
11920
|
const queryClient = reactQuery.useQueryClient();
|
|
11815
11921
|
return reactQuery.useMutation({
|
|
11816
11922
|
mutationFn: (params) => arbi.chats.createGroup(params),
|
|
11817
|
-
onSuccess: (chat) =>
|
|
11923
|
+
onSuccess: (chat) => chunkRB23E45O_cjs.upsertChat(queryClient, chat)
|
|
11818
11924
|
});
|
|
11819
11925
|
}
|
|
11820
11926
|
function useRenameChat() {
|
|
@@ -11822,7 +11928,7 @@ function useRenameChat() {
|
|
|
11822
11928
|
const queryClient = reactQuery.useQueryClient();
|
|
11823
11929
|
return reactQuery.useMutation({
|
|
11824
11930
|
mutationFn: (vars) => arbi.chats.rename(vars.chat, vars.title),
|
|
11825
|
-
onSuccess: (chat) =>
|
|
11931
|
+
onSuccess: (chat) => chunkRB23E45O_cjs.upsertChat(queryClient, chat)
|
|
11826
11932
|
});
|
|
11827
11933
|
}
|
|
11828
11934
|
function useAddChatMembers() {
|
|
@@ -11830,7 +11936,7 @@ function useAddChatMembers() {
|
|
|
11830
11936
|
const queryClient = reactQuery.useQueryClient();
|
|
11831
11937
|
return reactQuery.useMutation({
|
|
11832
11938
|
mutationFn: (vars) => arbi.chats.addMembers(vars.chat, vars.members, { callKey: vars.callKey }),
|
|
11833
|
-
onSuccess: (chat) =>
|
|
11939
|
+
onSuccess: (chat) => chunkRB23E45O_cjs.upsertChat(queryClient, chat)
|
|
11834
11940
|
});
|
|
11835
11941
|
}
|
|
11836
11942
|
function useRemoveChatMember() {
|
|
@@ -11839,8 +11945,8 @@ function useRemoveChatMember() {
|
|
|
11839
11945
|
return reactQuery.useMutation({
|
|
11840
11946
|
mutationFn: (vars) => arbi.chats.removeMember(vars.chat, vars.userExtId),
|
|
11841
11947
|
onSuccess: (_data, vars) => {
|
|
11842
|
-
if (vars.userExtId ===
|
|
11843
|
-
else return queryClient.invalidateQueries({ queryKey:
|
|
11948
|
+
if (vars.userExtId === chunkRB23E45O_cjs.myChatId(arbi)) chunkRB23E45O_cjs.removeChat(queryClient, vars.chat.external_id);
|
|
11949
|
+
else return queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.chatList() });
|
|
11844
11950
|
}
|
|
11845
11951
|
});
|
|
11846
11952
|
}
|
|
@@ -12283,1135 +12389,1135 @@ function CommandPaletteProvider({
|
|
|
12283
12389
|
|
|
12284
12390
|
Object.defineProperty(exports, "AUDIENCE_CHOICES", {
|
|
12285
12391
|
enumerable: true,
|
|
12286
|
-
get: function () { return
|
|
12392
|
+
get: function () { return chunkRB23E45O_cjs.AUDIENCE_CHOICES; }
|
|
12287
12393
|
});
|
|
12288
12394
|
Object.defineProperty(exports, "CALL_CAPTION_TOPIC", {
|
|
12289
12395
|
enumerable: true,
|
|
12290
|
-
get: function () { return
|
|
12396
|
+
get: function () { return chunkRB23E45O_cjs.CALL_CAPTION_TOPIC; }
|
|
12291
12397
|
});
|
|
12292
12398
|
Object.defineProperty(exports, "CALL_CHAT_MAX_CHARS", {
|
|
12293
12399
|
enumerable: true,
|
|
12294
|
-
get: function () { return
|
|
12400
|
+
get: function () { return chunkRB23E45O_cjs.CALL_CHAT_MAX_CHARS; }
|
|
12295
12401
|
});
|
|
12296
12402
|
Object.defineProperty(exports, "CALL_CHAT_TOPIC", {
|
|
12297
12403
|
enumerable: true,
|
|
12298
|
-
get: function () { return
|
|
12404
|
+
get: function () { return chunkRB23E45O_cjs.CALL_CHAT_TOPIC; }
|
|
12299
12405
|
});
|
|
12300
12406
|
Object.defineProperty(exports, "CALL_MODERATION_TOPIC", {
|
|
12301
12407
|
enumerable: true,
|
|
12302
|
-
get: function () { return
|
|
12408
|
+
get: function () { return chunkRB23E45O_cjs.CALL_MODERATION_TOPIC; }
|
|
12303
12409
|
});
|
|
12304
12410
|
Object.defineProperty(exports, "CALL_RECORDING_TOPIC", {
|
|
12305
12411
|
enumerable: true,
|
|
12306
|
-
get: function () { return
|
|
12412
|
+
get: function () { return chunkRB23E45O_cjs.CALL_RECORDING_TOPIC; }
|
|
12307
12413
|
});
|
|
12308
12414
|
Object.defineProperty(exports, "CALL_TRANSCRIPTION_TOPIC", {
|
|
12309
12415
|
enumerable: true,
|
|
12310
|
-
get: function () { return
|
|
12416
|
+
get: function () { return chunkRB23E45O_cjs.CALL_TRANSCRIPTION_TOPIC; }
|
|
12311
12417
|
});
|
|
12312
12418
|
Object.defineProperty(exports, "CALL_WEBINAR_TOPIC", {
|
|
12313
12419
|
enumerable: true,
|
|
12314
|
-
get: function () { return
|
|
12420
|
+
get: function () { return chunkRB23E45O_cjs.CALL_WEBINAR_TOPIC; }
|
|
12315
12421
|
});
|
|
12316
12422
|
Object.defineProperty(exports, "CAPTION_MAX_CHARS", {
|
|
12317
12423
|
enumerable: true,
|
|
12318
|
-
get: function () { return
|
|
12424
|
+
get: function () { return chunkRB23E45O_cjs.CAPTION_MAX_CHARS; }
|
|
12319
12425
|
});
|
|
12320
12426
|
Object.defineProperty(exports, "COMPOSITE_AUDIO_BITS_PER_SECOND", {
|
|
12321
12427
|
enumerable: true,
|
|
12322
|
-
get: function () { return
|
|
12428
|
+
get: function () { return chunkRB23E45O_cjs.COMPOSITE_AUDIO_BITS_PER_SECOND; }
|
|
12323
12429
|
});
|
|
12324
12430
|
Object.defineProperty(exports, "COMPOSITE_VIDEO_BITS_PER_SECOND", {
|
|
12325
12431
|
enumerable: true,
|
|
12326
|
-
get: function () { return
|
|
12432
|
+
get: function () { return chunkRB23E45O_cjs.COMPOSITE_VIDEO_BITS_PER_SECOND; }
|
|
12327
12433
|
});
|
|
12328
12434
|
Object.defineProperty(exports, "DEFAULT_JOIN_CHOICES", {
|
|
12329
12435
|
enumerable: true,
|
|
12330
|
-
get: function () { return
|
|
12436
|
+
get: function () { return chunkRB23E45O_cjs.DEFAULT_JOIN_CHOICES; }
|
|
12331
12437
|
});
|
|
12332
12438
|
Object.defineProperty(exports, "EMPTY_CALL_SESSION", {
|
|
12333
12439
|
enumerable: true,
|
|
12334
|
-
get: function () { return
|
|
12440
|
+
get: function () { return chunkRB23E45O_cjs.EMPTY_CALL_SESSION; }
|
|
12335
12441
|
});
|
|
12336
12442
|
Object.defineProperty(exports, "EXPORT_SAMPLE_RATE", {
|
|
12337
12443
|
enumerable: true,
|
|
12338
|
-
get: function () { return
|
|
12444
|
+
get: function () { return chunkRB23E45O_cjs.EXPORT_SAMPLE_RATE; }
|
|
12339
12445
|
});
|
|
12340
12446
|
Object.defineProperty(exports, "HISTORY_LIMIT", {
|
|
12341
12447
|
enumerable: true,
|
|
12342
|
-
get: function () { return
|
|
12448
|
+
get: function () { return chunkRB23E45O_cjs.HISTORY_LIMIT; }
|
|
12343
12449
|
});
|
|
12344
12450
|
Object.defineProperty(exports, "LIVE_SEGMENTER", {
|
|
12345
12451
|
enumerable: true,
|
|
12346
|
-
get: function () { return
|
|
12452
|
+
get: function () { return chunkRB23E45O_cjs.LIVE_SEGMENTER; }
|
|
12347
12453
|
});
|
|
12348
12454
|
Object.defineProperty(exports, "MAX_AVATAR_FILE_BYTES", {
|
|
12349
12455
|
enumerable: true,
|
|
12350
|
-
get: function () { return
|
|
12456
|
+
get: function () { return chunkRB23E45O_cjs.MAX_AVATAR_FILE_BYTES; }
|
|
12351
12457
|
});
|
|
12352
12458
|
Object.defineProperty(exports, "MUTED_DEDUPE_MS", {
|
|
12353
12459
|
enumerable: true,
|
|
12354
|
-
get: function () { return
|
|
12460
|
+
get: function () { return chunkRB23E45O_cjs.MUTED_DEDUPE_MS; }
|
|
12355
12461
|
});
|
|
12356
12462
|
Object.defineProperty(exports, "PLAYBACK_LOOKAHEAD_MS", {
|
|
12357
12463
|
enumerable: true,
|
|
12358
|
-
get: function () { return
|
|
12464
|
+
get: function () { return chunkRB23E45O_cjs.PLAYBACK_LOOKAHEAD_MS; }
|
|
12359
12465
|
});
|
|
12360
12466
|
Object.defineProperty(exports, "READ_ONLY_MEETING_TEXT", {
|
|
12361
12467
|
enumerable: true,
|
|
12362
|
-
get: function () { return
|
|
12468
|
+
get: function () { return chunkRB23E45O_cjs.READ_ONLY_MEETING_TEXT; }
|
|
12363
12469
|
});
|
|
12364
12470
|
Object.defineProperty(exports, "RECORDING_CHUNK_MS", {
|
|
12365
12471
|
enumerable: true,
|
|
12366
|
-
get: function () { return
|
|
12472
|
+
get: function () { return chunkRB23E45O_cjs.RECORDING_CHUNK_MS; }
|
|
12367
12473
|
});
|
|
12368
12474
|
Object.defineProperty(exports, "RECORDING_SEGMENTER", {
|
|
12369
12475
|
enumerable: true,
|
|
12370
|
-
get: function () { return
|
|
12476
|
+
get: function () { return chunkRB23E45O_cjs.RECORDING_SEGMENTER; }
|
|
12371
12477
|
});
|
|
12372
12478
|
Object.defineProperty(exports, "SEGMENT_FRAME_MS", {
|
|
12373
12479
|
enumerable: true,
|
|
12374
|
-
get: function () { return
|
|
12480
|
+
get: function () { return chunkRB23E45O_cjs.SEGMENT_FRAME_MS; }
|
|
12375
12481
|
});
|
|
12376
12482
|
Object.defineProperty(exports, "SEGMENT_ID_PATTERN", {
|
|
12377
12483
|
enumerable: true,
|
|
12378
|
-
get: function () { return
|
|
12484
|
+
get: function () { return chunkRB23E45O_cjs.SEGMENT_ID_PATTERN; }
|
|
12379
12485
|
});
|
|
12380
12486
|
Object.defineProperty(exports, "SEGMENT_PRE_ROLL_MS", {
|
|
12381
12487
|
enumerable: true,
|
|
12382
|
-
get: function () { return
|
|
12488
|
+
get: function () { return chunkRB23E45O_cjs.SEGMENT_PRE_ROLL_MS; }
|
|
12383
12489
|
});
|
|
12384
12490
|
Object.defineProperty(exports, "SHORT_PIECE_MERGE_GAP_MS", {
|
|
12385
12491
|
enumerable: true,
|
|
12386
|
-
get: function () { return
|
|
12492
|
+
get: function () { return chunkRB23E45O_cjs.SHORT_PIECE_MERGE_GAP_MS; }
|
|
12387
12493
|
});
|
|
12388
12494
|
Object.defineProperty(exports, "SPEAKER_AUDIO_BITS_PER_SECOND", {
|
|
12389
12495
|
enumerable: true,
|
|
12390
|
-
get: function () { return
|
|
12496
|
+
get: function () { return chunkRB23E45O_cjs.SPEAKER_AUDIO_BITS_PER_SECOND; }
|
|
12391
12497
|
});
|
|
12392
12498
|
Object.defineProperty(exports, "TrackUploader", {
|
|
12393
12499
|
enumerable: true,
|
|
12394
|
-
get: function () { return
|
|
12500
|
+
get: function () { return chunkRB23E45O_cjs.TrackUploader; }
|
|
12395
12501
|
});
|
|
12396
12502
|
Object.defineProperty(exports, "UPLOAD_ATTEMPTS", {
|
|
12397
12503
|
enumerable: true,
|
|
12398
|
-
get: function () { return
|
|
12504
|
+
get: function () { return chunkRB23E45O_cjs.UPLOAD_ATTEMPTS; }
|
|
12399
12505
|
});
|
|
12400
12506
|
Object.defineProperty(exports, "UPLOAD_BACKOFF_MS", {
|
|
12401
12507
|
enumerable: true,
|
|
12402
|
-
get: function () { return
|
|
12508
|
+
get: function () { return chunkRB23E45O_cjs.UPLOAD_BACKOFF_MS; }
|
|
12403
12509
|
});
|
|
12404
12510
|
Object.defineProperty(exports, "acceptRing", {
|
|
12405
12511
|
enumerable: true,
|
|
12406
|
-
get: function () { return
|
|
12512
|
+
get: function () { return chunkRB23E45O_cjs.acceptRing; }
|
|
12407
12513
|
});
|
|
12408
12514
|
Object.defineProperty(exports, "addConversationToList", {
|
|
12409
12515
|
enumerable: true,
|
|
12410
|
-
get: function () { return
|
|
12516
|
+
get: function () { return chunkRB23E45O_cjs.addConversationToList; }
|
|
12411
12517
|
});
|
|
12412
12518
|
Object.defineProperty(exports, "appendToThread", {
|
|
12413
12519
|
enumerable: true,
|
|
12414
|
-
get: function () { return
|
|
12520
|
+
get: function () { return chunkRB23E45O_cjs.appendToThread; }
|
|
12415
12521
|
});
|
|
12416
12522
|
Object.defineProperty(exports, "applyAgentDmStatus", {
|
|
12417
12523
|
enumerable: true,
|
|
12418
|
-
get: function () { return
|
|
12524
|
+
get: function () { return chunkRB23E45O_cjs.applyAgentDmStatus; }
|
|
12419
12525
|
});
|
|
12420
12526
|
Object.defineProperty(exports, "applyCallEvent", {
|
|
12421
12527
|
enumerable: true,
|
|
12422
|
-
get: function () { return
|
|
12528
|
+
get: function () { return chunkRB23E45O_cjs.applyCallEvent; }
|
|
12423
12529
|
});
|
|
12424
12530
|
Object.defineProperty(exports, "applyChatEvent", {
|
|
12425
12531
|
enumerable: true,
|
|
12426
|
-
get: function () { return
|
|
12532
|
+
get: function () { return chunkRB23E45O_cjs.applyChatEvent; }
|
|
12427
12533
|
});
|
|
12428
12534
|
Object.defineProperty(exports, "applyChatMessage", {
|
|
12429
12535
|
enumerable: true,
|
|
12430
|
-
get: function () { return
|
|
12536
|
+
get: function () { return chunkRB23E45O_cjs.applyChatMessage; }
|
|
12431
12537
|
});
|
|
12432
12538
|
Object.defineProperty(exports, "applyChatRead", {
|
|
12433
12539
|
enumerable: true,
|
|
12434
|
-
get: function () { return
|
|
12540
|
+
get: function () { return chunkRB23E45O_cjs.applyChatRead; }
|
|
12435
12541
|
});
|
|
12436
12542
|
Object.defineProperty(exports, "applyChatUpdated", {
|
|
12437
12543
|
enumerable: true,
|
|
12438
|
-
get: function () { return
|
|
12544
|
+
get: function () { return chunkRB23E45O_cjs.applyChatUpdated; }
|
|
12439
12545
|
});
|
|
12440
12546
|
Object.defineProperty(exports, "arbiAccountClient", {
|
|
12441
12547
|
enumerable: true,
|
|
12442
|
-
get: function () { return
|
|
12548
|
+
get: function () { return chunkRB23E45O_cjs.arbiAccountClient; }
|
|
12443
12549
|
});
|
|
12444
12550
|
Object.defineProperty(exports, "buildMeetingChatBody", {
|
|
12445
12551
|
enumerable: true,
|
|
12446
|
-
get: function () { return
|
|
12552
|
+
get: function () { return chunkRB23E45O_cjs.buildMeetingChatBody; }
|
|
12447
12553
|
});
|
|
12448
12554
|
Object.defineProperty(exports, "cachedChat", {
|
|
12449
12555
|
enumerable: true,
|
|
12450
|
-
get: function () { return
|
|
12556
|
+
get: function () { return chunkRB23E45O_cjs.cachedChat; }
|
|
12451
12557
|
});
|
|
12452
12558
|
Object.defineProperty(exports, "cachedChats", {
|
|
12453
12559
|
enumerable: true,
|
|
12454
|
-
get: function () { return
|
|
12560
|
+
get: function () { return chunkRB23E45O_cjs.cachedChats; }
|
|
12455
12561
|
});
|
|
12456
12562
|
Object.defineProperty(exports, "callLink", {
|
|
12457
12563
|
enumerable: true,
|
|
12458
|
-
get: function () { return
|
|
12564
|
+
get: function () { return chunkRB23E45O_cjs.callLink; }
|
|
12459
12565
|
});
|
|
12460
12566
|
Object.defineProperty(exports, "callMemberKeys", {
|
|
12461
12567
|
enumerable: true,
|
|
12462
|
-
get: function () { return
|
|
12568
|
+
get: function () { return chunkRB23E45O_cjs.callMemberKeys; }
|
|
12463
12569
|
});
|
|
12464
12570
|
Object.defineProperty(exports, "callSession", {
|
|
12465
12571
|
enumerable: true,
|
|
12466
|
-
get: function () { return
|
|
12572
|
+
get: function () { return chunkRB23E45O_cjs.callSession; }
|
|
12467
12573
|
});
|
|
12468
12574
|
Object.defineProperty(exports, "chatByExtId", {
|
|
12469
12575
|
enumerable: true,
|
|
12470
|
-
get: function () { return
|
|
12576
|
+
get: function () { return chunkRB23E45O_cjs.chatByExtId; }
|
|
12471
12577
|
});
|
|
12472
12578
|
Object.defineProperty(exports, "chatHasLiveCall", {
|
|
12473
12579
|
enumerable: true,
|
|
12474
|
-
get: function () { return
|
|
12580
|
+
get: function () { return chunkRB23E45O_cjs.chatHasLiveCall; }
|
|
12475
12581
|
});
|
|
12476
12582
|
Object.defineProperty(exports, "chatLiveCallId", {
|
|
12477
12583
|
enumerable: true,
|
|
12478
|
-
get: function () { return
|
|
12584
|
+
get: function () { return chunkRB23E45O_cjs.chatLiveCallId; }
|
|
12479
12585
|
});
|
|
12480
12586
|
Object.defineProperty(exports, "chatTranscriptRef", {
|
|
12481
12587
|
enumerable: true,
|
|
12482
|
-
get: function () { return
|
|
12588
|
+
get: function () { return chunkRB23E45O_cjs.chatTranscriptRef; }
|
|
12483
12589
|
});
|
|
12484
12590
|
Object.defineProperty(exports, "clearMeetingChatCache", {
|
|
12485
12591
|
enumerable: true,
|
|
12486
|
-
get: function () { return
|
|
12592
|
+
get: function () { return chunkRB23E45O_cjs.clearMeetingChatCache; }
|
|
12487
12593
|
});
|
|
12488
12594
|
Object.defineProperty(exports, "clearTrackUploaders", {
|
|
12489
12595
|
enumerable: true,
|
|
12490
|
-
get: function () { return
|
|
12596
|
+
get: function () { return chunkRB23E45O_cjs.clearTrackUploaders; }
|
|
12491
12597
|
});
|
|
12492
12598
|
Object.defineProperty(exports, "clockTime", {
|
|
12493
12599
|
enumerable: true,
|
|
12494
|
-
get: function () { return
|
|
12600
|
+
get: function () { return chunkRB23E45O_cjs.clockTime; }
|
|
12495
12601
|
});
|
|
12496
12602
|
Object.defineProperty(exports, "compositeFiles", {
|
|
12497
12603
|
enumerable: true,
|
|
12498
|
-
get: function () { return
|
|
12604
|
+
get: function () { return chunkRB23E45O_cjs.compositeFiles; }
|
|
12499
12605
|
});
|
|
12500
12606
|
Object.defineProperty(exports, "compositeTrack", {
|
|
12501
12607
|
enumerable: true,
|
|
12502
|
-
get: function () { return
|
|
12608
|
+
get: function () { return chunkRB23E45O_cjs.compositeTrack; }
|
|
12503
12609
|
});
|
|
12504
12610
|
Object.defineProperty(exports, "conversationKeyForCall", {
|
|
12505
12611
|
enumerable: true,
|
|
12506
|
-
get: function () { return
|
|
12612
|
+
get: function () { return chunkRB23E45O_cjs.conversationKeyForCall; }
|
|
12507
12613
|
});
|
|
12508
12614
|
Object.defineProperty(exports, "createMutedNotifier", {
|
|
12509
12615
|
enumerable: true,
|
|
12510
|
-
get: function () { return
|
|
12616
|
+
get: function () { return chunkRB23E45O_cjs.createMutedNotifier; }
|
|
12511
12617
|
});
|
|
12512
12618
|
Object.defineProperty(exports, "createTrackCutter", {
|
|
12513
12619
|
enumerable: true,
|
|
12514
|
-
get: function () { return
|
|
12620
|
+
get: function () { return chunkRB23E45O_cjs.createTrackCutter; }
|
|
12515
12621
|
});
|
|
12516
12622
|
Object.defineProperty(exports, "cutAtPauses", {
|
|
12517
12623
|
enumerable: true,
|
|
12518
|
-
get: function () { return
|
|
12624
|
+
get: function () { return chunkRB23E45O_cjs.cutAtPauses; }
|
|
12519
12625
|
});
|
|
12520
12626
|
Object.defineProperty(exports, "declineRing", {
|
|
12521
12627
|
enumerable: true,
|
|
12522
|
-
get: function () { return
|
|
12628
|
+
get: function () { return chunkRB23E45O_cjs.declineRing; }
|
|
12523
12629
|
});
|
|
12524
12630
|
Object.defineProperty(exports, "decodeCallChatPacket", {
|
|
12525
12631
|
enumerable: true,
|
|
12526
|
-
get: function () { return
|
|
12632
|
+
get: function () { return chunkRB23E45O_cjs.decodeCallChatPacket; }
|
|
12527
12633
|
});
|
|
12528
12634
|
Object.defineProperty(exports, "decodeCaptionPacket", {
|
|
12529
12635
|
enumerable: true,
|
|
12530
|
-
get: function () { return
|
|
12636
|
+
get: function () { return chunkRB23E45O_cjs.decodeCaptionPacket; }
|
|
12531
12637
|
});
|
|
12532
12638
|
Object.defineProperty(exports, "decodeMono16k", {
|
|
12533
12639
|
enumerable: true,
|
|
12534
|
-
get: function () { return
|
|
12640
|
+
get: function () { return chunkRB23E45O_cjs.decodeMono16k; }
|
|
12535
12641
|
});
|
|
12536
12642
|
Object.defineProperty(exports, "decryptPart", {
|
|
12537
12643
|
enumerable: true,
|
|
12538
|
-
get: function () { return
|
|
12644
|
+
get: function () { return chunkRB23E45O_cjs.decryptPart; }
|
|
12539
12645
|
});
|
|
12540
12646
|
Object.defineProperty(exports, "encodeCallChatPacket", {
|
|
12541
12647
|
enumerable: true,
|
|
12542
|
-
get: function () { return
|
|
12648
|
+
get: function () { return chunkRB23E45O_cjs.encodeCallChatPacket; }
|
|
12543
12649
|
});
|
|
12544
12650
|
Object.defineProperty(exports, "encodeCaptionPacket", {
|
|
12545
12651
|
enumerable: true,
|
|
12546
|
-
get: function () { return
|
|
12652
|
+
get: function () { return chunkRB23E45O_cjs.encodeCaptionPacket; }
|
|
12547
12653
|
});
|
|
12548
12654
|
Object.defineProperty(exports, "encodeWav", {
|
|
12549
12655
|
enumerable: true,
|
|
12550
|
-
get: function () { return
|
|
12656
|
+
get: function () { return chunkRB23E45O_cjs.encodeWav; }
|
|
12551
12657
|
});
|
|
12552
12658
|
Object.defineProperty(exports, "encryptPart", {
|
|
12553
12659
|
enumerable: true,
|
|
12554
|
-
get: function () { return
|
|
12660
|
+
get: function () { return chunkRB23E45O_cjs.encryptPart; }
|
|
12555
12661
|
});
|
|
12556
12662
|
Object.defineProperty(exports, "ensureMeetingChat", {
|
|
12557
12663
|
enumerable: true,
|
|
12558
|
-
get: function () { return
|
|
12664
|
+
get: function () { return chunkRB23E45O_cjs.ensureMeetingChat; }
|
|
12559
12665
|
});
|
|
12560
12666
|
Object.defineProperty(exports, "entitlementRefusal", {
|
|
12561
12667
|
enumerable: true,
|
|
12562
|
-
get: function () { return
|
|
12668
|
+
get: function () { return chunkRB23E45O_cjs.entitlementRefusal; }
|
|
12563
12669
|
});
|
|
12564
12670
|
Object.defineProperty(exports, "extensionFor", {
|
|
12565
12671
|
enumerable: true,
|
|
12566
|
-
get: function () { return
|
|
12672
|
+
get: function () { return chunkRB23E45O_cjs.extensionFor; }
|
|
12567
12673
|
});
|
|
12568
12674
|
Object.defineProperty(exports, "fetchPart", {
|
|
12569
12675
|
enumerable: true,
|
|
12570
|
-
get: function () { return
|
|
12676
|
+
get: function () { return chunkRB23E45O_cjs.fetchPart; }
|
|
12571
12677
|
});
|
|
12572
12678
|
Object.defineProperty(exports, "fileSafe", {
|
|
12573
12679
|
enumerable: true,
|
|
12574
|
-
get: function () { return
|
|
12680
|
+
get: function () { return chunkRB23E45O_cjs.fileSafe; }
|
|
12575
12681
|
});
|
|
12576
12682
|
Object.defineProperty(exports, "findConversation", {
|
|
12577
12683
|
enumerable: true,
|
|
12578
|
-
get: function () { return
|
|
12684
|
+
get: function () { return chunkRB23E45O_cjs.findConversation; }
|
|
12579
12685
|
});
|
|
12580
12686
|
Object.defineProperty(exports, "floatToWav", {
|
|
12581
12687
|
enumerable: true,
|
|
12582
|
-
get: function () { return
|
|
12688
|
+
get: function () { return chunkRB23E45O_cjs.floatToWav; }
|
|
12583
12689
|
});
|
|
12584
12690
|
Object.defineProperty(exports, "formatTranscriptMarkdown", {
|
|
12585
12691
|
enumerable: true,
|
|
12586
|
-
get: function () { return
|
|
12692
|
+
get: function () { return chunkRB23E45O_cjs.formatTranscriptMarkdown; }
|
|
12587
12693
|
});
|
|
12588
12694
|
Object.defineProperty(exports, "getOpenChat", {
|
|
12589
12695
|
enumerable: true,
|
|
12590
|
-
get: function () { return
|
|
12696
|
+
get: function () { return chunkRB23E45O_cjs.getOpenChat; }
|
|
12591
12697
|
});
|
|
12592
12698
|
Object.defineProperty(exports, "hasRecordingTranscript", {
|
|
12593
12699
|
enumerable: true,
|
|
12594
|
-
get: function () { return
|
|
12700
|
+
get: function () { return chunkRB23E45O_cjs.hasRecordingTranscript; }
|
|
12595
12701
|
});
|
|
12596
12702
|
Object.defineProperty(exports, "invalidateCall", {
|
|
12597
12703
|
enumerable: true,
|
|
12598
|
-
get: function () { return
|
|
12704
|
+
get: function () { return chunkRB23E45O_cjs.invalidateCall; }
|
|
12599
12705
|
});
|
|
12600
12706
|
Object.defineProperty(exports, "invalidateConversationDetails", {
|
|
12601
12707
|
enumerable: true,
|
|
12602
|
-
get: function () { return
|
|
12708
|
+
get: function () { return chunkRB23E45O_cjs.invalidateConversationDetails; }
|
|
12603
12709
|
});
|
|
12604
12710
|
Object.defineProperty(exports, "invalidateConversationLists", {
|
|
12605
12711
|
enumerable: true,
|
|
12606
|
-
get: function () { return
|
|
12712
|
+
get: function () { return chunkRB23E45O_cjs.invalidateConversationLists; }
|
|
12607
12713
|
});
|
|
12608
12714
|
Object.defineProperty(exports, "isConversationListKey", {
|
|
12609
12715
|
enumerable: true,
|
|
12610
|
-
get: function () { return
|
|
12716
|
+
get: function () { return chunkRB23E45O_cjs.isConversationListKey; }
|
|
12611
12717
|
});
|
|
12612
12718
|
Object.defineProperty(exports, "isConversationShared", {
|
|
12613
12719
|
enumerable: true,
|
|
12614
|
-
get: function () { return
|
|
12720
|
+
get: function () { return chunkRB23E45O_cjs.isConversationShared; }
|
|
12615
12721
|
});
|
|
12616
12722
|
Object.defineProperty(exports, "isKnownSoloConversation", {
|
|
12617
12723
|
enumerable: true,
|
|
12618
|
-
get: function () { return
|
|
12724
|
+
get: function () { return chunkRB23E45O_cjs.isKnownSoloConversation; }
|
|
12619
12725
|
});
|
|
12620
12726
|
Object.defineProperty(exports, "isRecordingOver", {
|
|
12621
12727
|
enumerable: true,
|
|
12622
|
-
get: function () { return
|
|
12728
|
+
get: function () { return chunkRB23E45O_cjs.isRecordingOver; }
|
|
12623
12729
|
});
|
|
12624
12730
|
Object.defineProperty(exports, "isRecordingSegmentId", {
|
|
12625
12731
|
enumerable: true,
|
|
12626
|
-
get: function () { return
|
|
12732
|
+
get: function () { return chunkRB23E45O_cjs.isRecordingSegmentId; }
|
|
12627
12733
|
});
|
|
12628
12734
|
Object.defineProperty(exports, "isRetryable", {
|
|
12629
12735
|
enumerable: true,
|
|
12630
|
-
get: function () { return
|
|
12736
|
+
get: function () { return chunkRB23E45O_cjs.isRetryable; }
|
|
12631
12737
|
});
|
|
12632
12738
|
Object.defineProperty(exports, "isWorkspaceGuestOf", {
|
|
12633
12739
|
enumerable: true,
|
|
12634
|
-
get: function () { return
|
|
12740
|
+
get: function () { return chunkRB23E45O_cjs.isWorkspaceGuestOf; }
|
|
12635
12741
|
});
|
|
12636
12742
|
Object.defineProperty(exports, "joinFromPreJoin", {
|
|
12637
12743
|
enumerable: true,
|
|
12638
|
-
get: function () { return
|
|
12744
|
+
get: function () { return chunkRB23E45O_cjs.joinFromPreJoin; }
|
|
12639
12745
|
});
|
|
12640
12746
|
Object.defineProperty(exports, "knownMeetingChat", {
|
|
12641
12747
|
enumerable: true,
|
|
12642
|
-
get: function () { return
|
|
12748
|
+
get: function () { return chunkRB23E45O_cjs.knownMeetingChat; }
|
|
12643
12749
|
});
|
|
12644
12750
|
Object.defineProperty(exports, "loadMeetingHistory", {
|
|
12645
12751
|
enumerable: true,
|
|
12646
|
-
get: function () { return
|
|
12752
|
+
get: function () { return chunkRB23E45O_cjs.loadMeetingHistory; }
|
|
12647
12753
|
});
|
|
12648
12754
|
Object.defineProperty(exports, "markRejoining", {
|
|
12649
12755
|
enumerable: true,
|
|
12650
|
-
get: function () { return
|
|
12756
|
+
get: function () { return chunkRB23E45O_cjs.markRejoining; }
|
|
12651
12757
|
});
|
|
12652
12758
|
Object.defineProperty(exports, "meetingChatRefFrom", {
|
|
12653
12759
|
enumerable: true,
|
|
12654
|
-
get: function () { return
|
|
12760
|
+
get: function () { return chunkRB23E45O_cjs.meetingChatRefFrom; }
|
|
12655
12761
|
});
|
|
12656
12762
|
Object.defineProperty(exports, "meetingRefForCall", {
|
|
12657
12763
|
enumerable: true,
|
|
12658
|
-
get: function () { return
|
|
12764
|
+
get: function () { return chunkRB23E45O_cjs.meetingRefForCall; }
|
|
12659
12765
|
});
|
|
12660
12766
|
Object.defineProperty(exports, "mergeChatLines", {
|
|
12661
12767
|
enumerable: true,
|
|
12662
|
-
get: function () { return
|
|
12768
|
+
get: function () { return chunkRB23E45O_cjs.mergeChatLines; }
|
|
12663
12769
|
});
|
|
12664
12770
|
Object.defineProperty(exports, "mutedNoticeFromEvent", {
|
|
12665
12771
|
enumerable: true,
|
|
12666
|
-
get: function () { return
|
|
12772
|
+
get: function () { return chunkRB23E45O_cjs.mutedNoticeFromEvent; }
|
|
12667
12773
|
});
|
|
12668
12774
|
Object.defineProperty(exports, "mutedNoticeFromPacket", {
|
|
12669
12775
|
enumerable: true,
|
|
12670
|
-
get: function () { return
|
|
12776
|
+
get: function () { return chunkRB23E45O_cjs.mutedNoticeFromPacket; }
|
|
12671
12777
|
});
|
|
12672
12778
|
Object.defineProperty(exports, "mutedNoticeText", {
|
|
12673
12779
|
enumerable: true,
|
|
12674
|
-
get: function () { return
|
|
12780
|
+
get: function () { return chunkRB23E45O_cjs.mutedNoticeText; }
|
|
12675
12781
|
});
|
|
12676
12782
|
Object.defineProperty(exports, "myChatId", {
|
|
12677
12783
|
enumerable: true,
|
|
12678
|
-
get: function () { return
|
|
12784
|
+
get: function () { return chunkRB23E45O_cjs.myChatId; }
|
|
12679
12785
|
});
|
|
12680
12786
|
Object.defineProperty(exports, "newPacketId", {
|
|
12681
12787
|
enumerable: true,
|
|
12682
|
-
get: function () { return
|
|
12788
|
+
get: function () { return chunkRB23E45O_cjs.newPacketId; }
|
|
12683
12789
|
});
|
|
12684
12790
|
Object.defineProperty(exports, "newSegmentId", {
|
|
12685
12791
|
enumerable: true,
|
|
12686
|
-
get: function () { return
|
|
12792
|
+
get: function () { return chunkRB23E45O_cjs.newSegmentId; }
|
|
12687
12793
|
});
|
|
12688
12794
|
Object.defineProperty(exports, "newTrackKey", {
|
|
12689
12795
|
enumerable: true,
|
|
12690
|
-
get: function () { return
|
|
12796
|
+
get: function () { return chunkRB23E45O_cjs.newTrackKey; }
|
|
12691
12797
|
});
|
|
12692
12798
|
Object.defineProperty(exports, "nextSeqAfter", {
|
|
12693
12799
|
enumerable: true,
|
|
12694
|
-
get: function () { return
|
|
12800
|
+
get: function () { return chunkRB23E45O_cjs.nextSeqAfter; }
|
|
12695
12801
|
});
|
|
12696
12802
|
Object.defineProperty(exports, "onCallEvent", {
|
|
12697
12803
|
enumerable: true,
|
|
12698
|
-
get: function () { return
|
|
12804
|
+
get: function () { return chunkRB23E45O_cjs.onCallEvent; }
|
|
12699
12805
|
});
|
|
12700
12806
|
Object.defineProperty(exports, "openCall", {
|
|
12701
12807
|
enumerable: true,
|
|
12702
|
-
get: function () { return
|
|
12808
|
+
get: function () { return chunkRB23E45O_cjs.openCall; }
|
|
12703
12809
|
});
|
|
12704
12810
|
Object.defineProperty(exports, "openQuestion", {
|
|
12705
12811
|
enumerable: true,
|
|
12706
|
-
get: function () { return
|
|
12812
|
+
get: function () { return chunkRB23E45O_cjs.openQuestion; }
|
|
12707
12813
|
});
|
|
12708
12814
|
Object.defineProperty(exports, "openRecording", {
|
|
12709
12815
|
enumerable: true,
|
|
12710
|
-
get: function () { return
|
|
12816
|
+
get: function () { return chunkRB23E45O_cjs.openRecording; }
|
|
12711
12817
|
});
|
|
12712
12818
|
Object.defineProperty(exports, "parseWebinarPacket", {
|
|
12713
12819
|
enumerable: true,
|
|
12714
|
-
get: function () { return
|
|
12820
|
+
get: function () { return chunkRB23E45O_cjs.parseWebinarPacket; }
|
|
12715
12821
|
});
|
|
12716
12822
|
Object.defineProperty(exports, "partKey", {
|
|
12717
12823
|
enumerable: true,
|
|
12718
|
-
get: function () { return
|
|
12824
|
+
get: function () { return chunkRB23E45O_cjs.partKey; }
|
|
12719
12825
|
});
|
|
12720
12826
|
Object.defineProperty(exports, "partOffsetMs", {
|
|
12721
12827
|
enumerable: true,
|
|
12722
|
-
get: function () { return
|
|
12828
|
+
get: function () { return chunkRB23E45O_cjs.partOffsetMs; }
|
|
12723
12829
|
});
|
|
12724
12830
|
Object.defineProperty(exports, "partsDue", {
|
|
12725
12831
|
enumerable: true,
|
|
12726
|
-
get: function () { return
|
|
12832
|
+
get: function () { return chunkRB23E45O_cjs.partsDue; }
|
|
12727
12833
|
});
|
|
12728
12834
|
Object.defineProperty(exports, "patchConversation", {
|
|
12729
12835
|
enumerable: true,
|
|
12730
|
-
get: function () { return
|
|
12836
|
+
get: function () { return chunkRB23E45O_cjs.patchConversation; }
|
|
12731
12837
|
});
|
|
12732
12838
|
Object.defineProperty(exports, "patchConversationList", {
|
|
12733
12839
|
enumerable: true,
|
|
12734
|
-
get: function () { return
|
|
12840
|
+
get: function () { return chunkRB23E45O_cjs.patchConversationList; }
|
|
12735
12841
|
});
|
|
12736
12842
|
Object.defineProperty(exports, "persistMeetingMessage", {
|
|
12737
12843
|
enumerable: true,
|
|
12738
|
-
get: function () { return
|
|
12844
|
+
get: function () { return chunkRB23E45O_cjs.persistMeetingMessage; }
|
|
12739
12845
|
});
|
|
12740
12846
|
Object.defineProperty(exports, "persistTranscriptSegment", {
|
|
12741
12847
|
enumerable: true,
|
|
12742
|
-
get: function () { return
|
|
12848
|
+
get: function () { return chunkRB23E45O_cjs.persistTranscriptSegment; }
|
|
12743
12849
|
});
|
|
12744
12850
|
Object.defineProperty(exports, "playheadAt", {
|
|
12745
12851
|
enumerable: true,
|
|
12746
|
-
get: function () { return
|
|
12852
|
+
get: function () { return chunkRB23E45O_cjs.playheadAt; }
|
|
12747
12853
|
});
|
|
12748
12854
|
Object.defineProperty(exports, "postRecordingDocsToThread", {
|
|
12749
12855
|
enumerable: true,
|
|
12750
|
-
get: function () { return
|
|
12856
|
+
get: function () { return chunkRB23E45O_cjs.postRecordingDocsToThread; }
|
|
12751
12857
|
});
|
|
12752
12858
|
Object.defineProperty(exports, "postTranscriptToThread", {
|
|
12753
12859
|
enumerable: true,
|
|
12754
|
-
get: function () { return
|
|
12860
|
+
get: function () { return chunkRB23E45O_cjs.postTranscriptToThread; }
|
|
12755
12861
|
});
|
|
12756
12862
|
Object.defineProperty(exports, "recordingFiles", {
|
|
12757
12863
|
enumerable: true,
|
|
12758
|
-
get: function () { return
|
|
12864
|
+
get: function () { return chunkRB23E45O_cjs.recordingFiles; }
|
|
12759
12865
|
});
|
|
12760
12866
|
Object.defineProperty(exports, "recordingWindowsOf", {
|
|
12761
12867
|
enumerable: true,
|
|
12762
|
-
get: function () { return
|
|
12868
|
+
get: function () { return chunkRB23E45O_cjs.recordingWindowsOf; }
|
|
12763
12869
|
});
|
|
12764
12870
|
Object.defineProperty(exports, "rejoinAsAudience", {
|
|
12765
12871
|
enumerable: true,
|
|
12766
|
-
get: function () { return
|
|
12872
|
+
get: function () { return chunkRB23E45O_cjs.rejoinAsAudience; }
|
|
12767
12873
|
});
|
|
12768
12874
|
Object.defineProperty(exports, "removeChat", {
|
|
12769
12875
|
enumerable: true,
|
|
12770
|
-
get: function () { return
|
|
12876
|
+
get: function () { return chunkRB23E45O_cjs.removeChat; }
|
|
12771
12877
|
});
|
|
12772
12878
|
Object.defineProperty(exports, "removeConversationFromLists", {
|
|
12773
12879
|
enumerable: true,
|
|
12774
|
-
get: function () { return
|
|
12880
|
+
get: function () { return chunkRB23E45O_cjs.removeConversationFromLists; }
|
|
12775
12881
|
});
|
|
12776
12882
|
Object.defineProperty(exports, "resetCallSession", {
|
|
12777
12883
|
enumerable: true,
|
|
12778
|
-
get: function () { return
|
|
12884
|
+
get: function () { return chunkRB23E45O_cjs.resetCallSession; }
|
|
12779
12885
|
});
|
|
12780
12886
|
Object.defineProperty(exports, "resolveMeetingChat", {
|
|
12781
12887
|
enumerable: true,
|
|
12782
|
-
get: function () { return
|
|
12888
|
+
get: function () { return chunkRB23E45O_cjs.resolveMeetingChat; }
|
|
12783
12889
|
});
|
|
12784
12890
|
Object.defineProperty(exports, "saveRecordingFilesToThread", {
|
|
12785
12891
|
enumerable: true,
|
|
12786
|
-
get: function () { return
|
|
12892
|
+
get: function () { return chunkRB23E45O_cjs.saveRecordingFilesToThread; }
|
|
12787
12893
|
});
|
|
12788
12894
|
Object.defineProperty(exports, "schedulePart", {
|
|
12789
12895
|
enumerable: true,
|
|
12790
|
-
get: function () { return
|
|
12896
|
+
get: function () { return chunkRB23E45O_cjs.schedulePart; }
|
|
12791
12897
|
});
|
|
12792
12898
|
Object.defineProperty(exports, "sealQuestionText", {
|
|
12793
12899
|
enumerable: true,
|
|
12794
|
-
get: function () { return
|
|
12900
|
+
get: function () { return chunkRB23E45O_cjs.sealQuestionText; }
|
|
12795
12901
|
});
|
|
12796
12902
|
Object.defineProperty(exports, "setOpenChat", {
|
|
12797
12903
|
enumerable: true,
|
|
12798
|
-
get: function () { return
|
|
12904
|
+
get: function () { return chunkRB23E45O_cjs.setOpenChat; }
|
|
12799
12905
|
});
|
|
12800
12906
|
Object.defineProperty(exports, "sortTranscriptMessages", {
|
|
12801
12907
|
enumerable: true,
|
|
12802
|
-
get: function () { return
|
|
12908
|
+
get: function () { return chunkRB23E45O_cjs.sortTranscriptMessages; }
|
|
12803
12909
|
});
|
|
12804
12910
|
Object.defineProperty(exports, "sortedParts", {
|
|
12805
12911
|
enumerable: true,
|
|
12806
|
-
get: function () { return
|
|
12912
|
+
get: function () { return chunkRB23E45O_cjs.sortedParts; }
|
|
12807
12913
|
});
|
|
12808
12914
|
Object.defineProperty(exports, "speakerTracks", {
|
|
12809
12915
|
enumerable: true,
|
|
12810
|
-
get: function () { return
|
|
12916
|
+
get: function () { return chunkRB23E45O_cjs.speakerTracks; }
|
|
12811
12917
|
});
|
|
12812
12918
|
Object.defineProperty(exports, "speakerWav", {
|
|
12813
12919
|
enumerable: true,
|
|
12814
|
-
get: function () { return
|
|
12920
|
+
get: function () { return chunkRB23E45O_cjs.speakerWav; }
|
|
12815
12921
|
});
|
|
12816
12922
|
Object.defineProperty(exports, "splitIntoFiles", {
|
|
12817
12923
|
enumerable: true,
|
|
12818
|
-
get: function () { return
|
|
12924
|
+
get: function () { return chunkRB23E45O_cjs.splitIntoFiles; }
|
|
12819
12925
|
});
|
|
12820
12926
|
Object.defineProperty(exports, "standalone", {
|
|
12821
12927
|
enumerable: true,
|
|
12822
|
-
get: function () { return
|
|
12928
|
+
get: function () { return chunkRB23E45O_cjs.standalone; }
|
|
12823
12929
|
});
|
|
12824
12930
|
Object.defineProperty(exports, "startChatCall", {
|
|
12825
12931
|
enumerable: true,
|
|
12826
|
-
get: function () { return
|
|
12932
|
+
get: function () { return chunkRB23E45O_cjs.startChatCall; }
|
|
12827
12933
|
});
|
|
12828
12934
|
Object.defineProperty(exports, "startContactsCall", {
|
|
12829
12935
|
enumerable: true,
|
|
12830
|
-
get: function () { return
|
|
12936
|
+
get: function () { return chunkRB23E45O_cjs.startContactsCall; }
|
|
12831
12937
|
});
|
|
12832
12938
|
Object.defineProperty(exports, "startDmCall", {
|
|
12833
12939
|
enumerable: true,
|
|
12834
|
-
get: function () { return
|
|
12940
|
+
get: function () { return chunkRB23E45O_cjs.startDmCall; }
|
|
12835
12941
|
});
|
|
12836
12942
|
Object.defineProperty(exports, "startThreadCall", {
|
|
12837
12943
|
enumerable: true,
|
|
12838
|
-
get: function () { return
|
|
12944
|
+
get: function () { return chunkRB23E45O_cjs.startThreadCall; }
|
|
12839
12945
|
});
|
|
12840
12946
|
Object.defineProperty(exports, "startsMediaFile", {
|
|
12841
12947
|
enumerable: true,
|
|
12842
|
-
get: function () { return
|
|
12948
|
+
get: function () { return chunkRB23E45O_cjs.startsMediaFile; }
|
|
12843
12949
|
});
|
|
12844
12950
|
Object.defineProperty(exports, "storeTranscriptSegment", {
|
|
12845
12951
|
enumerable: true,
|
|
12846
|
-
get: function () { return
|
|
12952
|
+
get: function () { return chunkRB23E45O_cjs.storeTranscriptSegment; }
|
|
12847
12953
|
});
|
|
12848
12954
|
Object.defineProperty(exports, "stripSpeakerPrefix", {
|
|
12849
12955
|
enumerable: true,
|
|
12850
|
-
get: function () { return
|
|
12956
|
+
get: function () { return chunkRB23E45O_cjs.stripSpeakerPrefix; }
|
|
12851
12957
|
});
|
|
12852
12958
|
Object.defineProperty(exports, "supersedeLiveTranscript", {
|
|
12853
12959
|
enumerable: true,
|
|
12854
|
-
get: function () { return
|
|
12960
|
+
get: function () { return chunkRB23E45O_cjs.supersedeLiveTranscript; }
|
|
12855
12961
|
});
|
|
12856
12962
|
Object.defineProperty(exports, "supersededTranscriptLines", {
|
|
12857
12963
|
enumerable: true,
|
|
12858
|
-
get: function () { return
|
|
12964
|
+
get: function () { return chunkRB23E45O_cjs.supersededTranscriptLines; }
|
|
12859
12965
|
});
|
|
12860
12966
|
Object.defineProperty(exports, "threadHasLiveCall", {
|
|
12861
12967
|
enumerable: true,
|
|
12862
|
-
get: function () { return
|
|
12968
|
+
get: function () { return chunkRB23E45O_cjs.threadHasLiveCall; }
|
|
12863
12969
|
});
|
|
12864
12970
|
Object.defineProperty(exports, "threadLiveCallId", {
|
|
12865
12971
|
enumerable: true,
|
|
12866
|
-
get: function () { return
|
|
12972
|
+
get: function () { return chunkRB23E45O_cjs.threadLiveCallId; }
|
|
12867
12973
|
});
|
|
12868
12974
|
Object.defineProperty(exports, "threadTranscriptLines", {
|
|
12869
12975
|
enumerable: true,
|
|
12870
|
-
get: function () { return
|
|
12976
|
+
get: function () { return chunkRB23E45O_cjs.threadTranscriptLines; }
|
|
12871
12977
|
});
|
|
12872
12978
|
Object.defineProperty(exports, "threadTranscriptRef", {
|
|
12873
12979
|
enumerable: true,
|
|
12874
|
-
get: function () { return
|
|
12980
|
+
get: function () { return chunkRB23E45O_cjs.threadTranscriptRef; }
|
|
12875
12981
|
});
|
|
12876
12982
|
Object.defineProperty(exports, "threadTranscriptText", {
|
|
12877
12983
|
enumerable: true,
|
|
12878
|
-
get: function () { return
|
|
12984
|
+
get: function () { return chunkRB23E45O_cjs.threadTranscriptText; }
|
|
12879
12985
|
});
|
|
12880
12986
|
Object.defineProperty(exports, "timelineDurationMs", {
|
|
12881
12987
|
enumerable: true,
|
|
12882
|
-
get: function () { return
|
|
12988
|
+
get: function () { return chunkRB23E45O_cjs.timelineDurationMs; }
|
|
12883
12989
|
});
|
|
12884
12990
|
Object.defineProperty(exports, "timelineOf", {
|
|
12885
12991
|
enumerable: true,
|
|
12886
|
-
get: function () { return
|
|
12992
|
+
get: function () { return chunkRB23E45O_cjs.timelineOf; }
|
|
12887
12993
|
});
|
|
12888
12994
|
Object.defineProperty(exports, "toProfileView", {
|
|
12889
12995
|
enumerable: true,
|
|
12890
|
-
get: function () { return
|
|
12996
|
+
get: function () { return chunkRB23E45O_cjs.toProfileView; }
|
|
12891
12997
|
});
|
|
12892
12998
|
Object.defineProperty(exports, "trackUploaderFor", {
|
|
12893
12999
|
enumerable: true,
|
|
12894
|
-
get: function () { return
|
|
13000
|
+
get: function () { return chunkRB23E45O_cjs.trackUploaderFor; }
|
|
12895
13001
|
});
|
|
12896
13002
|
Object.defineProperty(exports, "transcribeRecording", {
|
|
12897
13003
|
enumerable: true,
|
|
12898
|
-
get: function () { return
|
|
13004
|
+
get: function () { return chunkRB23E45O_cjs.transcribeRecording; }
|
|
12899
13005
|
});
|
|
12900
13006
|
Object.defineProperty(exports, "transcriptPersistRole", {
|
|
12901
13007
|
enumerable: true,
|
|
12902
|
-
get: function () { return
|
|
13008
|
+
get: function () { return chunkRB23E45O_cjs.transcriptPersistRole; }
|
|
12903
13009
|
});
|
|
12904
13010
|
Object.defineProperty(exports, "transcriptSegmentOf", {
|
|
12905
13011
|
enumerable: true,
|
|
12906
|
-
get: function () { return
|
|
13012
|
+
get: function () { return chunkRB23E45O_cjs.transcriptSegmentOf; }
|
|
12907
13013
|
});
|
|
12908
13014
|
Object.defineProperty(exports, "unwrapTrackKey", {
|
|
12909
13015
|
enumerable: true,
|
|
12910
|
-
get: function () { return
|
|
13016
|
+
get: function () { return chunkRB23E45O_cjs.unwrapTrackKey; }
|
|
12911
13017
|
});
|
|
12912
13018
|
Object.defineProperty(exports, "upsertChat", {
|
|
12913
13019
|
enumerable: true,
|
|
12914
|
-
get: function () { return
|
|
13020
|
+
get: function () { return chunkRB23E45O_cjs.upsertChat; }
|
|
12915
13021
|
});
|
|
12916
13022
|
Object.defineProperty(exports, "useAccountClient", {
|
|
12917
13023
|
enumerable: true,
|
|
12918
|
-
get: function () { return
|
|
13024
|
+
get: function () { return chunkRB23E45O_cjs.useAccountClient; }
|
|
12919
13025
|
});
|
|
12920
13026
|
Object.defineProperty(exports, "useArbiWsContext", {
|
|
12921
13027
|
enumerable: true,
|
|
12922
|
-
get: function () { return
|
|
13028
|
+
get: function () { return chunkRB23E45O_cjs.useArbiWsContext; }
|
|
12923
13029
|
});
|
|
12924
13030
|
Object.defineProperty(exports, "useAvatarCrop", {
|
|
12925
13031
|
enumerable: true,
|
|
12926
|
-
get: function () { return
|
|
13032
|
+
get: function () { return chunkRB23E45O_cjs.useAvatarCrop; }
|
|
12927
13033
|
});
|
|
12928
13034
|
Object.defineProperty(exports, "useCall", {
|
|
12929
13035
|
enumerable: true,
|
|
12930
|
-
get: function () { return
|
|
13036
|
+
get: function () { return chunkRB23E45O_cjs.useCall; }
|
|
12931
13037
|
});
|
|
12932
13038
|
Object.defineProperty(exports, "useCallInviteLinks", {
|
|
12933
13039
|
enumerable: true,
|
|
12934
|
-
get: function () { return
|
|
13040
|
+
get: function () { return chunkRB23E45O_cjs.useCallInviteLinks; }
|
|
12935
13041
|
});
|
|
12936
13042
|
Object.defineProperty(exports, "useCallLiveUpdates", {
|
|
12937
13043
|
enumerable: true,
|
|
12938
|
-
get: function () { return
|
|
13044
|
+
get: function () { return chunkRB23E45O_cjs.useCallLiveUpdates; }
|
|
12939
13045
|
});
|
|
12940
13046
|
Object.defineProperty(exports, "useCallRecording", {
|
|
12941
13047
|
enumerable: true,
|
|
12942
|
-
get: function () { return
|
|
13048
|
+
get: function () { return chunkRB23E45O_cjs.useCallRecording; }
|
|
12943
13049
|
});
|
|
12944
13050
|
Object.defineProperty(exports, "useCallRecordings", {
|
|
12945
13051
|
enumerable: true,
|
|
12946
|
-
get: function () { return
|
|
13052
|
+
get: function () { return chunkRB23E45O_cjs.useCallRecordings; }
|
|
12947
13053
|
});
|
|
12948
13054
|
Object.defineProperty(exports, "useCallSession", {
|
|
12949
13055
|
enumerable: true,
|
|
12950
|
-
get: function () { return
|
|
13056
|
+
get: function () { return chunkRB23E45O_cjs.useCallSession; }
|
|
12951
13057
|
});
|
|
12952
13058
|
Object.defineProperty(exports, "useCallTranscriptionAvailable", {
|
|
12953
13059
|
enumerable: true,
|
|
12954
|
-
get: function () { return
|
|
13060
|
+
get: function () { return chunkRB23E45O_cjs.useCallTranscriptionAvailable; }
|
|
12955
13061
|
});
|
|
12956
13062
|
Object.defineProperty(exports, "useCallsConfig", {
|
|
12957
13063
|
enumerable: true,
|
|
12958
|
-
get: function () { return
|
|
13064
|
+
get: function () { return chunkRB23E45O_cjs.useCallsConfig; }
|
|
12959
13065
|
});
|
|
12960
13066
|
Object.defineProperty(exports, "useCallsEnabled", {
|
|
12961
13067
|
enumerable: true,
|
|
12962
|
-
get: function () { return
|
|
13068
|
+
get: function () { return chunkRB23E45O_cjs.useCallsEnabled; }
|
|
12963
13069
|
});
|
|
12964
13070
|
Object.defineProperty(exports, "useCanHostCalls", {
|
|
12965
13071
|
enumerable: true,
|
|
12966
|
-
get: function () { return
|
|
13072
|
+
get: function () { return chunkRB23E45O_cjs.useCanHostCalls; }
|
|
12967
13073
|
});
|
|
12968
13074
|
Object.defineProperty(exports, "useEntitlements", {
|
|
12969
13075
|
enumerable: true,
|
|
12970
|
-
get: function () { return
|
|
13076
|
+
get: function () { return chunkRB23E45O_cjs.useEntitlements; }
|
|
12971
13077
|
});
|
|
12972
13078
|
Object.defineProperty(exports, "useIsEntitled", {
|
|
12973
13079
|
enumerable: true,
|
|
12974
|
-
get: function () { return
|
|
13080
|
+
get: function () { return chunkRB23E45O_cjs.useIsEntitled; }
|
|
12975
13081
|
});
|
|
12976
13082
|
Object.defineProperty(exports, "useMeetingReadOnly", {
|
|
12977
13083
|
enumerable: true,
|
|
12978
|
-
get: function () { return
|
|
13084
|
+
get: function () { return chunkRB23E45O_cjs.useMeetingReadOnly; }
|
|
12979
13085
|
});
|
|
12980
13086
|
Object.defineProperty(exports, "useNameEditor", {
|
|
12981
13087
|
enumerable: true,
|
|
12982
|
-
get: function () { return
|
|
13088
|
+
get: function () { return chunkRB23E45O_cjs.useNameEditor; }
|
|
12983
13089
|
});
|
|
12984
13090
|
Object.defineProperty(exports, "useOpenCallMeetingChat", {
|
|
12985
13091
|
enumerable: true,
|
|
12986
|
-
get: function () { return
|
|
13092
|
+
get: function () { return chunkRB23E45O_cjs.useOpenCallMeetingChat; }
|
|
12987
13093
|
});
|
|
12988
13094
|
Object.defineProperty(exports, "useProfile", {
|
|
12989
13095
|
enumerable: true,
|
|
12990
|
-
get: function () { return
|
|
13096
|
+
get: function () { return chunkRB23E45O_cjs.useProfile; }
|
|
12991
13097
|
});
|
|
12992
13098
|
Object.defineProperty(exports, "useRecordingActions", {
|
|
12993
13099
|
enumerable: true,
|
|
12994
|
-
get: function () { return
|
|
13100
|
+
get: function () { return chunkRB23E45O_cjs.useRecordingActions; }
|
|
12995
13101
|
});
|
|
12996
13102
|
Object.defineProperty(exports, "useRecordingWindows", {
|
|
12997
13103
|
enumerable: true,
|
|
12998
|
-
get: function () { return
|
|
13104
|
+
get: function () { return chunkRB23E45O_cjs.useRecordingWindows; }
|
|
12999
13105
|
});
|
|
13000
13106
|
Object.defineProperty(exports, "useRevokeCallInviteLink", {
|
|
13001
13107
|
enumerable: true,
|
|
13002
|
-
get: function () { return
|
|
13108
|
+
get: function () { return chunkRB23E45O_cjs.useRevokeCallInviteLink; }
|
|
13003
13109
|
});
|
|
13004
13110
|
Object.defineProperty(exports, "useSaveToThread", {
|
|
13005
13111
|
enumerable: true,
|
|
13006
|
-
get: function () { return
|
|
13112
|
+
get: function () { return chunkRB23E45O_cjs.useSaveToThread; }
|
|
13007
13113
|
});
|
|
13008
13114
|
Object.defineProperty(exports, "useServerCallsEnabled", {
|
|
13009
13115
|
enumerable: true,
|
|
13010
|
-
get: function () { return
|
|
13116
|
+
get: function () { return chunkRB23E45O_cjs.useServerCallsEnabled; }
|
|
13011
13117
|
});
|
|
13012
13118
|
Object.defineProperty(exports, "useUpdateProfile", {
|
|
13013
13119
|
enumerable: true,
|
|
13014
|
-
get: function () { return
|
|
13120
|
+
get: function () { return chunkRB23E45O_cjs.useUpdateProfile; }
|
|
13015
13121
|
});
|
|
13016
13122
|
Object.defineProperty(exports, "wrapTrackKey", {
|
|
13017
13123
|
enumerable: true,
|
|
13018
|
-
get: function () { return
|
|
13124
|
+
get: function () { return chunkRB23E45O_cjs.wrapTrackKey; }
|
|
13019
13125
|
});
|
|
13020
13126
|
Object.defineProperty(exports, "writeSamples", {
|
|
13021
13127
|
enumerable: true,
|
|
13022
|
-
get: function () { return
|
|
13128
|
+
get: function () { return chunkRB23E45O_cjs.writeSamples; }
|
|
13023
13129
|
});
|
|
13024
13130
|
Object.defineProperty(exports, "DOCUMENTS_FIRST_PAGE_MEASURE", {
|
|
13025
13131
|
enumerable: true,
|
|
13026
|
-
get: function () { return
|
|
13132
|
+
get: function () { return chunk4UDIA47U_cjs.DOCUMENTS_FIRST_PAGE_MEASURE; }
|
|
13027
13133
|
});
|
|
13028
13134
|
Object.defineProperty(exports, "DOCUMENTS_FIRST_PAGE_SIZE", {
|
|
13029
13135
|
enumerable: true,
|
|
13030
|
-
get: function () { return
|
|
13136
|
+
get: function () { return chunk4UDIA47U_cjs.DOCUMENTS_FIRST_PAGE_SIZE; }
|
|
13031
13137
|
});
|
|
13032
13138
|
Object.defineProperty(exports, "DOCUMENTS_PAGE_SIZE", {
|
|
13033
13139
|
enumerable: true,
|
|
13034
|
-
get: function () { return
|
|
13140
|
+
get: function () { return chunk4UDIA47U_cjs.DOCUMENTS_PAGE_SIZE; }
|
|
13035
13141
|
});
|
|
13036
13142
|
Object.defineProperty(exports, "FINISHED_DOCUMENT_STATUSES", {
|
|
13037
13143
|
enumerable: true,
|
|
13038
|
-
get: function () { return
|
|
13144
|
+
get: function () { return chunk4UDIA47U_cjs.FINISHED_DOCUMENT_STATUSES; }
|
|
13039
13145
|
});
|
|
13040
13146
|
Object.defineProperty(exports, "IN_FLIGHT_DOCUMENT_STATUSES", {
|
|
13041
13147
|
enumerable: true,
|
|
13042
|
-
get: function () { return
|
|
13148
|
+
get: function () { return chunk4UDIA47U_cjs.IN_FLIGHT_DOCUMENT_STATUSES; }
|
|
13043
13149
|
});
|
|
13044
13150
|
Object.defineProperty(exports, "SIMILARITY_THRESHOLD", {
|
|
13045
13151
|
enumerable: true,
|
|
13046
|
-
get: function () { return
|
|
13152
|
+
get: function () { return chunk4UDIA47U_cjs.SIMILARITY_THRESHOLD; }
|
|
13047
13153
|
});
|
|
13048
13154
|
Object.defineProperty(exports, "adjustTagCounts", {
|
|
13049
13155
|
enumerable: true,
|
|
13050
|
-
get: function () { return
|
|
13156
|
+
get: function () { return chunk4UDIA47U_cjs.adjustTagCounts; }
|
|
13051
13157
|
});
|
|
13052
13158
|
Object.defineProperty(exports, "dropTagFromCachedDocuments", {
|
|
13053
13159
|
enumerable: true,
|
|
13054
|
-
get: function () { return
|
|
13160
|
+
get: function () { return chunk4UDIA47U_cjs.dropTagFromCachedDocuments; }
|
|
13055
13161
|
});
|
|
13056
13162
|
Object.defineProperty(exports, "finishEntityExtraction", {
|
|
13057
13163
|
enumerable: true,
|
|
13058
|
-
get: function () { return
|
|
13164
|
+
get: function () { return chunk4UDIA47U_cjs.finishEntityExtraction; }
|
|
13059
13165
|
});
|
|
13060
13166
|
Object.defineProperty(exports, "forgetDocuments", {
|
|
13061
13167
|
enumerable: true,
|
|
13062
|
-
get: function () { return
|
|
13168
|
+
get: function () { return chunk4UDIA47U_cjs.forgetDocuments; }
|
|
13063
13169
|
});
|
|
13064
13170
|
Object.defineProperty(exports, "getCachedDocuments", {
|
|
13065
13171
|
enumerable: true,
|
|
13066
|
-
get: function () { return
|
|
13172
|
+
get: function () { return chunk4UDIA47U_cjs.getCachedDocuments; }
|
|
13067
13173
|
});
|
|
13068
13174
|
Object.defineProperty(exports, "invalidateTagData", {
|
|
13069
13175
|
enumerable: true,
|
|
13070
|
-
get: function () { return
|
|
13176
|
+
get: function () { return chunk4UDIA47U_cjs.invalidateTagData; }
|
|
13071
13177
|
});
|
|
13072
13178
|
Object.defineProperty(exports, "invalidateTagTables", {
|
|
13073
13179
|
enumerable: true,
|
|
13074
|
-
get: function () { return
|
|
13180
|
+
get: function () { return chunk4UDIA47U_cjs.invalidateTagTables; }
|
|
13075
13181
|
});
|
|
13076
13182
|
Object.defineProperty(exports, "isDocumentsLoading", {
|
|
13077
13183
|
enumerable: true,
|
|
13078
|
-
get: function () { return
|
|
13184
|
+
get: function () { return chunk4UDIA47U_cjs.isDocumentsLoading; }
|
|
13079
13185
|
});
|
|
13080
13186
|
Object.defineProperty(exports, "isRowNewer", {
|
|
13081
13187
|
enumerable: true,
|
|
13082
|
-
get: function () { return
|
|
13188
|
+
get: function () { return chunk4UDIA47U_cjs.isRowNewer; }
|
|
13083
13189
|
});
|
|
13084
13190
|
Object.defineProperty(exports, "isStaleTaskUpdate", {
|
|
13085
13191
|
enumerable: true,
|
|
13086
|
-
get: function () { return
|
|
13192
|
+
get: function () { return chunk4UDIA47U_cjs.isStaleTaskUpdate; }
|
|
13087
13193
|
});
|
|
13088
13194
|
Object.defineProperty(exports, "patchCachedDocument", {
|
|
13089
13195
|
enumerable: true,
|
|
13090
|
-
get: function () { return
|
|
13196
|
+
get: function () { return chunk4UDIA47U_cjs.patchCachedDocument; }
|
|
13091
13197
|
});
|
|
13092
13198
|
Object.defineProperty(exports, "patchDocuments", {
|
|
13093
13199
|
enumerable: true,
|
|
13094
|
-
get: function () { return
|
|
13200
|
+
get: function () { return chunk4UDIA47U_cjs.patchDocuments; }
|
|
13095
13201
|
});
|
|
13096
13202
|
Object.defineProperty(exports, "patchWorkspaceTags", {
|
|
13097
13203
|
enumerable: true,
|
|
13098
|
-
get: function () { return
|
|
13204
|
+
get: function () { return chunk4UDIA47U_cjs.patchWorkspaceTags; }
|
|
13099
13205
|
});
|
|
13100
13206
|
Object.defineProperty(exports, "refreshDocuments", {
|
|
13101
13207
|
enumerable: true,
|
|
13102
|
-
get: function () { return
|
|
13208
|
+
get: function () { return chunk4UDIA47U_cjs.refreshDocuments; }
|
|
13103
13209
|
});
|
|
13104
13210
|
Object.defineProperty(exports, "resolveDocumentStatus", {
|
|
13105
13211
|
enumerable: true,
|
|
13106
|
-
get: function () { return
|
|
13212
|
+
get: function () { return chunk4UDIA47U_cjs.resolveDocumentStatus; }
|
|
13107
13213
|
});
|
|
13108
13214
|
Object.defineProperty(exports, "setCachedDocument", {
|
|
13109
13215
|
enumerable: true,
|
|
13110
|
-
get: function () { return
|
|
13216
|
+
get: function () { return chunk4UDIA47U_cjs.setCachedDocument; }
|
|
13111
13217
|
});
|
|
13112
13218
|
Object.defineProperty(exports, "settledByRows", {
|
|
13113
13219
|
enumerable: true,
|
|
13114
|
-
get: function () { return
|
|
13220
|
+
get: function () { return chunk4UDIA47U_cjs.settledByRows; }
|
|
13115
13221
|
});
|
|
13116
13222
|
Object.defineProperty(exports, "startEntityExtraction", {
|
|
13117
13223
|
enumerable: true,
|
|
13118
|
-
get: function () { return
|
|
13224
|
+
get: function () { return chunk4UDIA47U_cjs.startEntityExtraction; }
|
|
13119
13225
|
});
|
|
13120
13226
|
Object.defineProperty(exports, "stopDocumentsLoading", {
|
|
13121
13227
|
enumerable: true,
|
|
13122
|
-
get: function () { return
|
|
13228
|
+
get: function () { return chunk4UDIA47U_cjs.stopDocumentsLoading; }
|
|
13123
13229
|
});
|
|
13124
13230
|
Object.defineProperty(exports, "subscribeDocumentRows", {
|
|
13125
13231
|
enumerable: true,
|
|
13126
|
-
get: function () { return
|
|
13232
|
+
get: function () { return chunk4UDIA47U_cjs.subscribeDocumentRows; }
|
|
13127
13233
|
});
|
|
13128
13234
|
Object.defineProperty(exports, "upsertDocuments", {
|
|
13129
13235
|
enumerable: true,
|
|
13130
|
-
get: function () { return
|
|
13236
|
+
get: function () { return chunk4UDIA47U_cjs.upsertDocuments; }
|
|
13131
13237
|
});
|
|
13132
13238
|
Object.defineProperty(exports, "useCreateTag", {
|
|
13133
13239
|
enumerable: true,
|
|
13134
|
-
get: function () { return
|
|
13240
|
+
get: function () { return chunk4UDIA47U_cjs.useCreateTag; }
|
|
13135
13241
|
});
|
|
13136
13242
|
Object.defineProperty(exports, "useDeleteTag", {
|
|
13137
13243
|
enumerable: true,
|
|
13138
|
-
get: function () { return
|
|
13244
|
+
get: function () { return chunk4UDIA47U_cjs.useDeleteTag; }
|
|
13139
13245
|
});
|
|
13140
13246
|
Object.defineProperty(exports, "useDocument", {
|
|
13141
13247
|
enumerable: true,
|
|
13142
|
-
get: function () { return
|
|
13248
|
+
get: function () { return chunk4UDIA47U_cjs.useDocument; }
|
|
13143
13249
|
});
|
|
13144
13250
|
Object.defineProperty(exports, "useDocuments", {
|
|
13145
13251
|
enumerable: true,
|
|
13146
|
-
get: function () { return
|
|
13252
|
+
get: function () { return chunk4UDIA47U_cjs.useDocuments; }
|
|
13147
13253
|
});
|
|
13148
13254
|
Object.defineProperty(exports, "useDocumentsById", {
|
|
13149
13255
|
enumerable: true,
|
|
13150
|
-
get: function () { return
|
|
13256
|
+
get: function () { return chunk4UDIA47U_cjs.useDocumentsById; }
|
|
13151
13257
|
});
|
|
13152
13258
|
Object.defineProperty(exports, "useDocumentsLoading", {
|
|
13153
13259
|
enumerable: true,
|
|
13154
|
-
get: function () { return
|
|
13260
|
+
get: function () { return chunk4UDIA47U_cjs.useDocumentsLoading; }
|
|
13155
13261
|
});
|
|
13156
13262
|
Object.defineProperty(exports, "useEntityExtractionDocIds", {
|
|
13157
13263
|
enumerable: true,
|
|
13158
|
-
get: function () { return
|
|
13264
|
+
get: function () { return chunk4UDIA47U_cjs.useEntityExtractionDocIds; }
|
|
13159
13265
|
});
|
|
13160
13266
|
Object.defineProperty(exports, "useExtractEntities", {
|
|
13161
13267
|
enumerable: true,
|
|
13162
|
-
get: function () { return
|
|
13268
|
+
get: function () { return chunk4UDIA47U_cjs.useExtractEntities; }
|
|
13163
13269
|
});
|
|
13164
13270
|
Object.defineProperty(exports, "useInvalidateTagData", {
|
|
13165
13271
|
enumerable: true,
|
|
13166
|
-
get: function () { return
|
|
13272
|
+
get: function () { return chunk4UDIA47U_cjs.useInvalidateTagData; }
|
|
13167
13273
|
});
|
|
13168
13274
|
Object.defineProperty(exports, "useIsCreatingTag", {
|
|
13169
13275
|
enumerable: true,
|
|
13170
|
-
get: function () { return
|
|
13276
|
+
get: function () { return chunk4UDIA47U_cjs.useIsCreatingTag; }
|
|
13171
13277
|
});
|
|
13172
13278
|
Object.defineProperty(exports, "useSetTagValues", {
|
|
13173
13279
|
enumerable: true,
|
|
13174
|
-
get: function () { return
|
|
13280
|
+
get: function () { return chunk4UDIA47U_cjs.useSetTagValues; }
|
|
13175
13281
|
});
|
|
13176
13282
|
Object.defineProperty(exports, "useSimilarDocuments", {
|
|
13177
13283
|
enumerable: true,
|
|
13178
|
-
get: function () { return
|
|
13284
|
+
get: function () { return chunk4UDIA47U_cjs.useSimilarDocuments; }
|
|
13179
13285
|
});
|
|
13180
13286
|
Object.defineProperty(exports, "useTagKindSchema", {
|
|
13181
13287
|
enumerable: true,
|
|
13182
|
-
get: function () { return
|
|
13288
|
+
get: function () { return chunk4UDIA47U_cjs.useTagKindSchema; }
|
|
13183
13289
|
});
|
|
13184
13290
|
Object.defineProperty(exports, "useUpdateTag", {
|
|
13185
13291
|
enumerable: true,
|
|
13186
|
-
get: function () { return
|
|
13292
|
+
get: function () { return chunk4UDIA47U_cjs.useUpdateTag; }
|
|
13187
13293
|
});
|
|
13188
13294
|
Object.defineProperty(exports, "useUpdateTagKindSchema", {
|
|
13189
13295
|
enumerable: true,
|
|
13190
|
-
get: function () { return
|
|
13296
|
+
get: function () { return chunk4UDIA47U_cjs.useUpdateTagKindSchema; }
|
|
13191
13297
|
});
|
|
13192
13298
|
Object.defineProperty(exports, "DEFAULT_DOCUMENT_VIEWER_STATE", {
|
|
13193
13299
|
enumerable: true,
|
|
13194
|
-
get: function () { return
|
|
13300
|
+
get: function () { return chunkFLAZSNC5_cjs.DEFAULT_DOCUMENT_VIEWER_STATE; }
|
|
13195
13301
|
});
|
|
13196
13302
|
Object.defineProperty(exports, "EMPTY_SESSION_STATE", {
|
|
13197
13303
|
enumerable: true,
|
|
13198
|
-
get: function () { return
|
|
13304
|
+
get: function () { return chunkFLAZSNC5_cjs.EMPTY_SESSION_STATE; }
|
|
13199
13305
|
});
|
|
13200
13306
|
Object.defineProperty(exports, "MAX_THREAD_TABS", {
|
|
13201
13307
|
enumerable: true,
|
|
13202
|
-
get: function () { return
|
|
13308
|
+
get: function () { return chunkFLAZSNC5_cjs.MAX_THREAD_TABS; }
|
|
13203
13309
|
});
|
|
13204
13310
|
Object.defineProperty(exports, "MIN_QUEUED_MESSAGE_VISIBILITY_MS", {
|
|
13205
13311
|
enumerable: true,
|
|
13206
|
-
get: function () { return
|
|
13312
|
+
get: function () { return chunkFLAZSNC5_cjs.MIN_QUEUED_MESSAGE_VISIBILITY_MS; }
|
|
13207
13313
|
});
|
|
13208
13314
|
Object.defineProperty(exports, "PROJECT_CREATION_DENIED_REASON", {
|
|
13209
13315
|
enumerable: true,
|
|
13210
|
-
get: function () { return
|
|
13316
|
+
get: function () { return chunkFLAZSNC5_cjs.PROJECT_CREATION_DENIED_REASON; }
|
|
13211
13317
|
});
|
|
13212
13318
|
Object.defineProperty(exports, "agentControl", {
|
|
13213
13319
|
enumerable: true,
|
|
13214
|
-
get: function () { return
|
|
13320
|
+
get: function () { return chunkFLAZSNC5_cjs.agentControl; }
|
|
13215
13321
|
});
|
|
13216
13322
|
Object.defineProperty(exports, "clearSealedDrafts", {
|
|
13217
13323
|
enumerable: true,
|
|
13218
|
-
get: function () { return
|
|
13324
|
+
get: function () { return chunkFLAZSNC5_cjs.clearSealedDrafts; }
|
|
13219
13325
|
});
|
|
13220
13326
|
Object.defineProperty(exports, "conversationKey", {
|
|
13221
13327
|
enumerable: true,
|
|
13222
|
-
get: function () { return
|
|
13328
|
+
get: function () { return chunkFLAZSNC5_cjs.conversationKey; }
|
|
13223
13329
|
});
|
|
13224
13330
|
Object.defineProperty(exports, "createArbiSessionStore", {
|
|
13225
13331
|
enumerable: true,
|
|
13226
|
-
get: function () { return
|
|
13332
|
+
get: function () { return chunkFLAZSNC5_cjs.createArbiSessionStore; }
|
|
13227
13333
|
});
|
|
13228
13334
|
Object.defineProperty(exports, "createSealedDraftStorage", {
|
|
13229
13335
|
enumerable: true,
|
|
13230
|
-
get: function () { return
|
|
13336
|
+
get: function () { return chunkFLAZSNC5_cjs.createSealedDraftStorage; }
|
|
13231
13337
|
});
|
|
13232
13338
|
Object.defineProperty(exports, "isUsageMetered", {
|
|
13233
13339
|
enumerable: true,
|
|
13234
|
-
get: function () { return
|
|
13340
|
+
get: function () { return chunkFLAZSNC5_cjs.isUsageMetered; }
|
|
13235
13341
|
});
|
|
13236
13342
|
Object.defineProperty(exports, "nextViewingDocument", {
|
|
13237
13343
|
enumerable: true,
|
|
13238
|
-
get: function () { return
|
|
13344
|
+
get: function () { return chunkFLAZSNC5_cjs.nextViewingDocument; }
|
|
13239
13345
|
});
|
|
13240
13346
|
Object.defineProperty(exports, "queuedMessages", {
|
|
13241
13347
|
enumerable: true,
|
|
13242
|
-
get: function () { return
|
|
13348
|
+
get: function () { return chunkFLAZSNC5_cjs.queuedMessages; }
|
|
13243
13349
|
});
|
|
13244
13350
|
Object.defineProperty(exports, "selectDraft", {
|
|
13245
13351
|
enumerable: true,
|
|
13246
|
-
get: function () { return
|
|
13352
|
+
get: function () { return chunkFLAZSNC5_cjs.selectDraft; }
|
|
13247
13353
|
});
|
|
13248
13354
|
Object.defineProperty(exports, "selectIsGenerating", {
|
|
13249
13355
|
enumerable: true,
|
|
13250
|
-
get: function () { return
|
|
13356
|
+
get: function () { return chunkFLAZSNC5_cjs.selectIsGenerating; }
|
|
13251
13357
|
});
|
|
13252
13358
|
Object.defineProperty(exports, "selectViewingDocumentId", {
|
|
13253
13359
|
enumerable: true,
|
|
13254
|
-
get: function () { return
|
|
13360
|
+
get: function () { return chunkFLAZSNC5_cjs.selectViewingDocumentId; }
|
|
13255
13361
|
});
|
|
13256
13362
|
Object.defineProperty(exports, "threadTabId", {
|
|
13257
13363
|
enumerable: true,
|
|
13258
|
-
get: function () { return
|
|
13364
|
+
get: function () { return chunkFLAZSNC5_cjs.threadTabId; }
|
|
13259
13365
|
});
|
|
13260
13366
|
Object.defineProperty(exports, "useActivity", {
|
|
13261
13367
|
enumerable: true,
|
|
13262
|
-
get: function () { return
|
|
13368
|
+
get: function () { return chunkFLAZSNC5_cjs.useActivity; }
|
|
13263
13369
|
});
|
|
13264
13370
|
Object.defineProperty(exports, "useAgents", {
|
|
13265
13371
|
enumerable: true,
|
|
13266
|
-
get: function () { return
|
|
13372
|
+
get: function () { return chunkFLAZSNC5_cjs.useAgents; }
|
|
13267
13373
|
});
|
|
13268
13374
|
Object.defineProperty(exports, "useArbiSession", {
|
|
13269
13375
|
enumerable: true,
|
|
13270
|
-
get: function () { return
|
|
13376
|
+
get: function () { return chunkFLAZSNC5_cjs.useArbiSession; }
|
|
13271
13377
|
});
|
|
13272
13378
|
Object.defineProperty(exports, "useArbiSessionState", {
|
|
13273
13379
|
enumerable: true,
|
|
13274
|
-
get: function () { return
|
|
13380
|
+
get: function () { return chunkFLAZSNC5_cjs.useArbiSessionState; }
|
|
13275
13381
|
});
|
|
13276
13382
|
Object.defineProperty(exports, "useArbiSessionStore", {
|
|
13277
13383
|
enumerable: true,
|
|
13278
|
-
get: function () { return
|
|
13384
|
+
get: function () { return chunkFLAZSNC5_cjs.useArbiSessionStore; }
|
|
13279
13385
|
});
|
|
13280
13386
|
Object.defineProperty(exports, "useAssistantQuery", {
|
|
13281
13387
|
enumerable: true,
|
|
13282
|
-
get: function () { return
|
|
13388
|
+
get: function () { return chunkFLAZSNC5_cjs.useAssistantQuery; }
|
|
13283
13389
|
});
|
|
13284
13390
|
Object.defineProperty(exports, "useAvailableModels", {
|
|
13285
13391
|
enumerable: true,
|
|
13286
|
-
get: function () { return
|
|
13392
|
+
get: function () { return chunkFLAZSNC5_cjs.useAvailableModels; }
|
|
13287
13393
|
});
|
|
13288
13394
|
Object.defineProperty(exports, "useBoxRole", {
|
|
13289
13395
|
enumerable: true,
|
|
13290
|
-
get: function () { return
|
|
13396
|
+
get: function () { return chunkFLAZSNC5_cjs.useBoxRole; }
|
|
13291
13397
|
});
|
|
13292
13398
|
Object.defineProperty(exports, "useBuiltinCommands", {
|
|
13293
13399
|
enumerable: true,
|
|
13294
|
-
get: function () { return
|
|
13400
|
+
get: function () { return chunkFLAZSNC5_cjs.useBuiltinCommands; }
|
|
13295
13401
|
});
|
|
13296
13402
|
Object.defineProperty(exports, "useCanCreateProjects", {
|
|
13297
13403
|
enumerable: true,
|
|
13298
|
-
get: function () { return
|
|
13404
|
+
get: function () { return chunkFLAZSNC5_cjs.useCanCreateProjects; }
|
|
13299
13405
|
});
|
|
13300
13406
|
Object.defineProperty(exports, "useConfig", {
|
|
13301
13407
|
enumerable: true,
|
|
13302
|
-
get: function () { return
|
|
13408
|
+
get: function () { return chunkFLAZSNC5_cjs.useConfig; }
|
|
13303
13409
|
});
|
|
13304
13410
|
Object.defineProperty(exports, "useConfigs", {
|
|
13305
13411
|
enumerable: true,
|
|
13306
|
-
get: function () { return
|
|
13412
|
+
get: function () { return chunkFLAZSNC5_cjs.useConfigs; }
|
|
13307
13413
|
});
|
|
13308
13414
|
Object.defineProperty(exports, "useConversationThreads", {
|
|
13309
13415
|
enumerable: true,
|
|
13310
|
-
get: function () { return
|
|
13416
|
+
get: function () { return chunkFLAZSNC5_cjs.useConversationThreads; }
|
|
13311
13417
|
});
|
|
13312
13418
|
Object.defineProperty(exports, "useConversations", {
|
|
13313
13419
|
enumerable: true,
|
|
13314
|
-
get: function () { return
|
|
13420
|
+
get: function () { return chunkFLAZSNC5_cjs.useConversations; }
|
|
13315
13421
|
});
|
|
13316
13422
|
Object.defineProperty(exports, "useCurrentUser", {
|
|
13317
13423
|
enumerable: true,
|
|
13318
|
-
get: function () { return
|
|
13424
|
+
get: function () { return chunkFLAZSNC5_cjs.useCurrentUser; }
|
|
13319
13425
|
});
|
|
13320
13426
|
Object.defineProperty(exports, "useDeleteAgents", {
|
|
13321
13427
|
enumerable: true,
|
|
13322
|
-
get: function () { return
|
|
13428
|
+
get: function () { return chunkFLAZSNC5_cjs.useDeleteAgents; }
|
|
13323
13429
|
});
|
|
13324
13430
|
Object.defineProperty(exports, "useDocumentVersionList", {
|
|
13325
13431
|
enumerable: true,
|
|
13326
|
-
get: function () { return
|
|
13432
|
+
get: function () { return chunkFLAZSNC5_cjs.useDocumentVersionList; }
|
|
13327
13433
|
});
|
|
13328
13434
|
Object.defineProperty(exports, "useFirmPool", {
|
|
13329
13435
|
enumerable: true,
|
|
13330
|
-
get: function () { return
|
|
13436
|
+
get: function () { return chunkFLAZSNC5_cjs.useFirmPool; }
|
|
13331
13437
|
});
|
|
13332
13438
|
Object.defineProperty(exports, "useHealth", {
|
|
13333
13439
|
enumerable: true,
|
|
13334
|
-
get: function () { return
|
|
13440
|
+
get: function () { return chunkFLAZSNC5_cjs.useHealth; }
|
|
13335
13441
|
});
|
|
13336
13442
|
Object.defineProperty(exports, "useMessageDetails", {
|
|
13337
13443
|
enumerable: true,
|
|
13338
|
-
get: function () { return
|
|
13444
|
+
get: function () { return chunkFLAZSNC5_cjs.useMessageDetails; }
|
|
13339
13445
|
});
|
|
13340
13446
|
Object.defineProperty(exports, "useParsedDocument", {
|
|
13341
13447
|
enumerable: true,
|
|
13342
|
-
get: function () { return
|
|
13448
|
+
get: function () { return chunkFLAZSNC5_cjs.useParsedDocument; }
|
|
13343
13449
|
});
|
|
13344
13450
|
Object.defineProperty(exports, "useProjectInvoices", {
|
|
13345
13451
|
enumerable: true,
|
|
13346
|
-
get: function () { return
|
|
13452
|
+
get: function () { return chunkFLAZSNC5_cjs.useProjectInvoices; }
|
|
13347
13453
|
});
|
|
13348
13454
|
Object.defineProperty(exports, "useProjectUsage", {
|
|
13349
13455
|
enumerable: true,
|
|
13350
|
-
get: function () { return
|
|
13456
|
+
get: function () { return chunkFLAZSNC5_cjs.useProjectUsage; }
|
|
13351
13457
|
});
|
|
13352
13458
|
Object.defineProperty(exports, "useProjects", {
|
|
13353
13459
|
enumerable: true,
|
|
13354
|
-
get: function () { return
|
|
13460
|
+
get: function () { return chunkFLAZSNC5_cjs.useProjects; }
|
|
13355
13461
|
});
|
|
13356
13462
|
Object.defineProperty(exports, "useProjectsUsage", {
|
|
13357
13463
|
enumerable: true,
|
|
13358
|
-
get: function () { return
|
|
13464
|
+
get: function () { return chunkFLAZSNC5_cjs.useProjectsUsage; }
|
|
13359
13465
|
});
|
|
13360
13466
|
Object.defineProperty(exports, "useSignedInSession", {
|
|
13361
13467
|
enumerable: true,
|
|
13362
|
-
get: function () { return
|
|
13468
|
+
get: function () { return chunkFLAZSNC5_cjs.useSignedInSession; }
|
|
13363
13469
|
});
|
|
13364
13470
|
Object.defineProperty(exports, "useTags", {
|
|
13365
13471
|
enumerable: true,
|
|
13366
|
-
get: function () { return
|
|
13472
|
+
get: function () { return chunkFLAZSNC5_cjs.useTags; }
|
|
13367
13473
|
});
|
|
13368
13474
|
Object.defineProperty(exports, "useThumbnails", {
|
|
13369
13475
|
enumerable: true,
|
|
13370
|
-
get: function () { return
|
|
13476
|
+
get: function () { return chunkFLAZSNC5_cjs.useThumbnails; }
|
|
13371
13477
|
});
|
|
13372
13478
|
Object.defineProperty(exports, "useTopUpFirmPool", {
|
|
13373
13479
|
enumerable: true,
|
|
13374
|
-
get: function () { return
|
|
13480
|
+
get: function () { return chunkFLAZSNC5_cjs.useTopUpFirmPool; }
|
|
13375
13481
|
});
|
|
13376
13482
|
Object.defineProperty(exports, "useUserUsageToday", {
|
|
13377
13483
|
enumerable: true,
|
|
13378
|
-
get: function () { return
|
|
13484
|
+
get: function () { return chunkFLAZSNC5_cjs.useUserUsageToday; }
|
|
13379
13485
|
});
|
|
13380
13486
|
Object.defineProperty(exports, "useWorkspaceActivity", {
|
|
13381
13487
|
enumerable: true,
|
|
13382
|
-
get: function () { return
|
|
13488
|
+
get: function () { return chunkFLAZSNC5_cjs.useWorkspaceActivity; }
|
|
13383
13489
|
});
|
|
13384
13490
|
Object.defineProperty(exports, "useWorkspaces", {
|
|
13385
13491
|
enumerable: true,
|
|
13386
|
-
get: function () { return
|
|
13492
|
+
get: function () { return chunkFLAZSNC5_cjs.useWorkspaces; }
|
|
13387
13493
|
});
|
|
13388
13494
|
Object.defineProperty(exports, "arbiMutationKeys", {
|
|
13389
13495
|
enumerable: true,
|
|
13390
|
-
get: function () { return
|
|
13496
|
+
get: function () { return chunkRRWAX52L_cjs.arbiMutationKeys; }
|
|
13391
13497
|
});
|
|
13392
13498
|
Object.defineProperty(exports, "arbiQueryKeys", {
|
|
13393
13499
|
enumerable: true,
|
|
13394
|
-
get: function () { return
|
|
13500
|
+
get: function () { return chunkRRWAX52L_cjs.arbiQueryKeys; }
|
|
13395
13501
|
});
|
|
13396
13502
|
Object.defineProperty(exports, "calendarQueryKeys", {
|
|
13397
13503
|
enumerable: true,
|
|
13398
|
-
get: function () { return
|
|
13504
|
+
get: function () { return chunkRRWAX52L_cjs.calendarQueryKeys; }
|
|
13399
13505
|
});
|
|
13400
13506
|
Object.defineProperty(exports, "callQueryKeys", {
|
|
13401
13507
|
enumerable: true,
|
|
13402
|
-
get: function () { return
|
|
13508
|
+
get: function () { return chunkRRWAX52L_cjs.callQueryKeys; }
|
|
13403
13509
|
});
|
|
13404
13510
|
Object.defineProperty(exports, "connectorQueryKeys", {
|
|
13405
13511
|
enumerable: true,
|
|
13406
|
-
get: function () { return
|
|
13512
|
+
get: function () { return chunkRRWAX52L_cjs.connectorQueryKeys; }
|
|
13407
13513
|
});
|
|
13408
13514
|
Object.defineProperty(exports, "isUnderQueryKey", {
|
|
13409
13515
|
enumerable: true,
|
|
13410
|
-
get: function () { return
|
|
13516
|
+
get: function () { return chunkRRWAX52L_cjs.isUnderQueryKey; }
|
|
13411
13517
|
});
|
|
13412
13518
|
Object.defineProperty(exports, "mailQueryKeys", {
|
|
13413
13519
|
enumerable: true,
|
|
13414
|
-
get: function () { return
|
|
13520
|
+
get: function () { return chunkRRWAX52L_cjs.mailQueryKeys; }
|
|
13415
13521
|
});
|
|
13416
13522
|
Object.defineProperty(exports, "LEGACY_THREAD_DOCUMENTS_KEY", {
|
|
13417
13523
|
enumerable: true,
|
|
@@ -13605,6 +13711,18 @@ Object.defineProperty(exports, "unwrapCitationLinks", {
|
|
|
13605
13711
|
enumerable: true,
|
|
13606
13712
|
get: function () { return chunkZWFMFOGP_cjs.unwrapCitationLinks; }
|
|
13607
13713
|
});
|
|
13714
|
+
Object.defineProperty(exports, "useArbi", {
|
|
13715
|
+
enumerable: true,
|
|
13716
|
+
get: function () { return chunkQQ7SCJRY_cjs.useArbi; }
|
|
13717
|
+
});
|
|
13718
|
+
Object.defineProperty(exports, "useArbiHost", {
|
|
13719
|
+
enumerable: true,
|
|
13720
|
+
get: function () { return chunkQQ7SCJRY_cjs.useArbiHost; }
|
|
13721
|
+
});
|
|
13722
|
+
Object.defineProperty(exports, "useDeploymentDomain", {
|
|
13723
|
+
enumerable: true,
|
|
13724
|
+
get: function () { return chunkQQ7SCJRY_cjs.useDeploymentDomain; }
|
|
13725
|
+
});
|
|
13608
13726
|
Object.defineProperty(exports, "ARBI_MARK_SRC", {
|
|
13609
13727
|
enumerable: true,
|
|
13610
13728
|
get: function () { return chunk7NHOKV7N_cjs.ARBI_MARK_SRC; }
|
|
@@ -14513,18 +14631,6 @@ Object.defineProperty(exports, "cn", {
|
|
|
14513
14631
|
enumerable: true,
|
|
14514
14632
|
get: function () { return chunkS6A6FSG7_cjs.cn; }
|
|
14515
14633
|
});
|
|
14516
|
-
Object.defineProperty(exports, "useArbi", {
|
|
14517
|
-
enumerable: true,
|
|
14518
|
-
get: function () { return chunkQQ7SCJRY_cjs.useArbi; }
|
|
14519
|
-
});
|
|
14520
|
-
Object.defineProperty(exports, "useArbiHost", {
|
|
14521
|
-
enumerable: true,
|
|
14522
|
-
get: function () { return chunkQQ7SCJRY_cjs.useArbiHost; }
|
|
14523
|
-
});
|
|
14524
|
-
Object.defineProperty(exports, "useDeploymentDomain", {
|
|
14525
|
-
enumerable: true,
|
|
14526
|
-
get: function () { return chunkQQ7SCJRY_cjs.useDeploymentDomain; }
|
|
14527
|
-
});
|
|
14528
14634
|
Object.defineProperty(exports, "useHostConfigRecord", {
|
|
14529
14635
|
enumerable: true,
|
|
14530
14636
|
get: function () { return chunkRCKA7BEF_cjs.useHostConfigRecord; }
|
|
@@ -14713,6 +14819,7 @@ exports.cacheThreadBinding = cacheThreadBinding;
|
|
|
14713
14819
|
exports.cachedAssistantMode = cachedAssistantMode;
|
|
14714
14820
|
exports.cachedMentionCandidates = cachedMentionCandidates;
|
|
14715
14821
|
exports.cachedQuotaUsedUp = cachedQuotaUsedUp;
|
|
14822
|
+
exports.calendarNotificationMeta = calendarNotificationMeta;
|
|
14716
14823
|
exports.callNotificationMeta = callNotificationMeta;
|
|
14717
14824
|
exports.captureFrameAsBlob = captureFrameAsBlob;
|
|
14718
14825
|
exports.clearLoadingState = clearLoadingState;
|
|
@@ -14730,6 +14837,7 @@ exports.dayKey = dayKey;
|
|
|
14730
14837
|
exports.defaultMailAlias = defaultMailAlias;
|
|
14731
14838
|
exports.deploymentUserMeta = deploymentUserMeta;
|
|
14732
14839
|
exports.describeActivity = describeActivity;
|
|
14840
|
+
exports.describeCalendarNotification = describeCalendarNotification;
|
|
14733
14841
|
exports.describeServerNotification = describeServerNotification;
|
|
14734
14842
|
exports.discardStreamingTokensForMessage = discardStreamingTokensForMessage;
|
|
14735
14843
|
exports.disconnectAttachedRun = disconnectAttachedRun;
|
|
@@ -14812,6 +14920,7 @@ exports.resolveConfigModel = resolveConfigModel;
|
|
|
14812
14920
|
exports.resolveReplyTarget = resolveReplyTarget;
|
|
14813
14921
|
exports.rollbackOptimisticDocumentEdit = rollbackOptimisticDocumentEdit;
|
|
14814
14922
|
exports.safePortalUrl = safePortalUrl;
|
|
14923
|
+
exports.serverNotificationBellEntry = serverNotificationBellEntry;
|
|
14815
14924
|
exports.setMessageContent = setMessageContent;
|
|
14816
14925
|
exports.setUserInputRequest = setUserInputRequest;
|
|
14817
14926
|
exports.signatureNotificationPhrase = signatureNotificationPhrase;
|