@arbidocs/react 0.5.5 → 0.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/artifacts/index.cjs +10 -10
- package/dist/artifacts/index.js +3 -3
- package/dist/calls/livekit/index.cjs +42 -42
- package/dist/calls/livekit/index.js +3 -3
- package/dist/{chunk-Y3LBWRXS.js → chunk-7OD25FTK.js} +4 -4
- package/dist/{chunk-Y3LBWRXS.js.map → chunk-7OD25FTK.js.map} +1 -1
- package/dist/{chunk-6YLK5AGS.js → chunk-GN33GLHR.js} +3 -3
- package/dist/{chunk-6YLK5AGS.js.map → chunk-GN33GLHR.js.map} +1 -1
- package/dist/{chunk-VLK52VXC.cjs → chunk-H4FGDXYB.cjs} +4 -2
- package/dist/chunk-H4FGDXYB.cjs.map +1 -0
- package/dist/{chunk-SBWEI3BO.cjs → chunk-KFFH2JJM.cjs} +32 -32
- package/dist/{chunk-SBWEI3BO.cjs.map → chunk-KFFH2JJM.cjs.map} +1 -1
- package/dist/{chunk-IFPSLIRL.cjs → chunk-L3NHETSD.cjs} +33 -33
- package/dist/{chunk-IFPSLIRL.cjs.map → chunk-L3NHETSD.cjs.map} +1 -1
- package/dist/{chunk-X2OC2LCD.js → chunk-ME2D5GWC.js} +3 -3
- package/dist/{chunk-X2OC2LCD.js.map → chunk-ME2D5GWC.js.map} +1 -1
- package/dist/{chunk-QVGAUQSD.js → chunk-OILCKGGB.js} +29 -61
- package/dist/chunk-OILCKGGB.js.map +1 -0
- package/dist/{chunk-TYZFRV7P.cjs → chunk-QYUL4GQC.cjs} +33 -67
- package/dist/chunk-QYUL4GQC.cjs.map +1 -0
- package/dist/{chunk-NVAIVJID.js → chunk-RG2ZE7DF.js} +4 -2
- package/dist/chunk-RG2ZE7DF.js.map +1 -0
- package/dist/{chunk-J62MWU4O.cjs → chunk-ZLHS3UKP.cjs} +41 -41
- package/dist/{chunk-J62MWU4O.cjs.map → chunk-ZLHS3UKP.cjs.map} +1 -1
- package/dist/document-tools/index.cjs +17 -17
- package/dist/document-tools/index.d.cts +2 -2
- package/dist/document-tools/index.d.ts +2 -2
- package/dist/document-tools/index.js +3 -3
- package/dist/index.cjs +877 -771
- package/dist/index.cjs.map +1 -1
- package/dist/{index.d-C_Fa1zTU.d.ts → index.d-CMhTWoA-.d.cts} +32 -30
- package/dist/{index.d-C_Fa1zTU.d.cts → index.d-CMhTWoA-.d.ts} +32 -30
- package/dist/index.d.cts +141 -8
- package/dist/index.d.ts +141 -8
- package/dist/index.js +133 -25
- package/dist/index.js.map +1 -1
- package/dist/{query-keys.d-Kw0JMoff.d.cts → query-keys.d-ClYiYNBR.d.cts} +2 -0
- package/dist/{query-keys.d-Kw0JMoff.d.ts → query-keys.d-ClYiYNBR.d.ts} +2 -0
- package/dist/shell/index.cjs +41 -49
- package/dist/shell/index.d.cts +1 -1
- package/dist/shell/index.d.ts +1 -1
- package/dist/shell/index.js +2 -2
- package/dist/ui/index.cjs +9 -9
- package/dist/ui/index.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-NVAIVJID.js.map +0 -1
- package/dist/chunk-QVGAUQSD.js.map +0 -1
- package/dist/chunk-TYZFRV7P.cjs.map +0 -1
- package/dist/chunk-VLK52VXC.cjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunkZLHS3UKP_cjs = require('./chunk-ZLHS3UKP.cjs');
|
|
4
|
+
var chunkKFFH2JJM_cjs = require('./chunk-KFFH2JJM.cjs');
|
|
5
|
+
var chunkL3NHETSD_cjs = require('./chunk-L3NHETSD.cjs');
|
|
6
6
|
var chunk2M4B4FFA_cjs = require('./chunk-2M4B4FFA.cjs');
|
|
7
|
-
var
|
|
8
|
-
var
|
|
7
|
+
var chunkH4FGDXYB_cjs = require('./chunk-H4FGDXYB.cjs');
|
|
8
|
+
var chunkQYUL4GQC_cjs = require('./chunk-QYUL4GQC.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');
|
|
@@ -15,8 +15,8 @@ var chunkEEIYXVM4_cjs = require('./chunk-EEIYXVM4.cjs');
|
|
|
15
15
|
var chunkOC7F5SNA_cjs = require('./chunk-OC7F5SNA.cjs');
|
|
16
16
|
var chunkWYZJLZ67_cjs = require('./chunk-WYZJLZ67.cjs');
|
|
17
17
|
var chunkHUZB36QU_cjs = require('./chunk-HUZB36QU.cjs');
|
|
18
|
-
var chunkZ3LLUO32_cjs = require('./chunk-Z3LLUO32.cjs');
|
|
19
18
|
var chunkHJDR5HEO_cjs = require('./chunk-HJDR5HEO.cjs');
|
|
19
|
+
var chunkZ3LLUO32_cjs = require('./chunk-Z3LLUO32.cjs');
|
|
20
20
|
var chunkS6A6FSG7_cjs = require('./chunk-S6A6FSG7.cjs');
|
|
21
21
|
var chunkTMPDW7J5_cjs = require('./chunk-TMPDW7J5.cjs');
|
|
22
22
|
var chunkQQ7SCJRY_cjs = require('./chunk-QQ7SCJRY.cjs');
|
|
@@ -41,7 +41,7 @@ var ReactMarkdown__default = /*#__PURE__*/_interopDefault(ReactMarkdown);
|
|
|
41
41
|
var Cropper__default = /*#__PURE__*/_interopDefault(Cropper);
|
|
42
42
|
|
|
43
43
|
// src/host/index.ts
|
|
44
|
-
var ArbiHost2 =
|
|
44
|
+
var ArbiHost2 = chunkQYUL4GQC_cjs.ArbiHost;
|
|
45
45
|
function isActivityKey(queryKey, conversationId) {
|
|
46
46
|
const [scope, resource, id, leaf] = queryKey;
|
|
47
47
|
if (scope !== "arbi" || resource !== "conversations" || leaf !== "activity") return false;
|
|
@@ -71,9 +71,9 @@ function holdListPoll(refetch) {
|
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
73
|
function useConversationItems() {
|
|
74
|
-
const workspaceId =
|
|
75
|
-
const open =
|
|
76
|
-
const query =
|
|
74
|
+
const workspaceId = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
75
|
+
const open = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.workspaceStatus === "open");
|
|
76
|
+
const query = chunkL3NHETSD_cjs.useConversations(workspaceId ?? void 0, { enabled: open });
|
|
77
77
|
const { refetch } = query;
|
|
78
78
|
const all = query.data;
|
|
79
79
|
const tasks = React.useMemo(() => (all ?? []).filter((c) => c.status != null), [all]);
|
|
@@ -94,7 +94,7 @@ function useConversationItems() {
|
|
|
94
94
|
return { conversations: all ?? [], tasks, isLoading: query.isLoading, refetch };
|
|
95
95
|
}
|
|
96
96
|
function useConversationIsShared() {
|
|
97
|
-
const id =
|
|
97
|
+
const id = chunkL3NHETSD_cjs.useArbiSessionState((state) => state.conversationId);
|
|
98
98
|
const { conversations } = useConversationItems();
|
|
99
99
|
return conversations.find((conversation) => conversation.external_id === id)?.is_shared ?? false;
|
|
100
100
|
}
|
|
@@ -103,9 +103,9 @@ function useWorkItems() {
|
|
|
103
103
|
return { tasks, isLoading, refetch };
|
|
104
104
|
}
|
|
105
105
|
function useWorkspaceRole() {
|
|
106
|
-
const workspaceId =
|
|
107
|
-
const me =
|
|
108
|
-
const { data: workspaces } =
|
|
106
|
+
const workspaceId = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
107
|
+
const me = chunkL3NHETSD_cjs.useArbiSession().user?.external_id;
|
|
108
|
+
const { data: workspaces } = chunkL3NHETSD_cjs.useWorkspaces();
|
|
109
109
|
const workspace = workspaces?.find((w) => w.external_id === workspaceId);
|
|
110
110
|
return workspace?.users?.find((m) => m.user.external_id === me)?.role ?? null;
|
|
111
111
|
}
|
|
@@ -123,7 +123,7 @@ function useNotifyConversation() {
|
|
|
123
123
|
mutationFn: ({ conversationId, userIds }) => arbi.conversations.notify(conversationId, userIds),
|
|
124
124
|
onSuccess: (_data, { conversationId }) => {
|
|
125
125
|
invalidateConversationActivity(qc, conversationId);
|
|
126
|
-
void
|
|
126
|
+
void chunkZLHS3UKP_cjs.invalidateConversationLists(qc);
|
|
127
127
|
}
|
|
128
128
|
});
|
|
129
129
|
}
|
|
@@ -140,10 +140,10 @@ var THREAD_LOOKUP_DELAY_MS = 500;
|
|
|
140
140
|
function useStartTaskQuery() {
|
|
141
141
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
142
142
|
const queryClient = reactQuery.useQueryClient();
|
|
143
|
-
const chatModel =
|
|
143
|
+
const chatModel = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.chatModel);
|
|
144
144
|
const post = reactQuery.useMutation({
|
|
145
145
|
mutationFn: (query) => {
|
|
146
|
-
const selectedConfig = chatModel || queryClient.getQueriesData({ queryKey:
|
|
146
|
+
const selectedConfig = chatModel || queryClient.getQueriesData({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings() }).map(([, settings]) => settings?.last_config).find(Boolean);
|
|
147
147
|
return arbi.assistant.submit(query.input, {
|
|
148
148
|
docIds: query.docIds,
|
|
149
149
|
fullContext: false,
|
|
@@ -173,7 +173,7 @@ function useStartTaskQuery() {
|
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
if (!conversationId) return null;
|
|
176
|
-
await
|
|
176
|
+
await chunkZLHS3UKP_cjs.invalidateConversationLists(queryClient);
|
|
177
177
|
return { conversationId };
|
|
178
178
|
};
|
|
179
179
|
return {
|
|
@@ -202,8 +202,8 @@ function useUpdateConversation() {
|
|
|
202
202
|
}) => arbi.conversations.update(conversationId, patch),
|
|
203
203
|
// The list takes the server's version of the row; what hangs off it is read again.
|
|
204
204
|
onSuccess: (updated, { conversationId }) => {
|
|
205
|
-
|
|
206
|
-
return
|
|
205
|
+
chunkZLHS3UKP_cjs.patchConversation(qc, conversationId, updated);
|
|
206
|
+
return chunkZLHS3UKP_cjs.invalidateConversationDetails(qc, conversationId);
|
|
207
207
|
}
|
|
208
208
|
});
|
|
209
209
|
}
|
|
@@ -212,7 +212,7 @@ function useCreateWork() {
|
|
|
212
212
|
const qc = reactQuery.useQueryClient();
|
|
213
213
|
return reactQuery.useMutation({
|
|
214
214
|
mutationFn: (body) => arbi.conversations.createWork(body),
|
|
215
|
-
onSuccess: (created) =>
|
|
215
|
+
onSuccess: (created) => chunkZLHS3UKP_cjs.addConversationToList(qc, arbi.hasWorkspace ? arbi.getWorkspaceId() : null, created)
|
|
216
216
|
});
|
|
217
217
|
}
|
|
218
218
|
function useRunConversation() {
|
|
@@ -222,8 +222,8 @@ function useRunConversation() {
|
|
|
222
222
|
mutationFn: (conversationId) => arbi.conversations.runWithAuth(conversationId),
|
|
223
223
|
// The server's version replaces the listed one; everything under the conversation is re-read.
|
|
224
224
|
onSuccess: (updated) => {
|
|
225
|
-
if (updated?.external_id)
|
|
226
|
-
return qc.invalidateQueries({ queryKey:
|
|
225
|
+
if (updated?.external_id) chunkZLHS3UKP_cjs.patchConversation(qc, updated.external_id, updated);
|
|
226
|
+
return qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.allConversations() });
|
|
227
227
|
}
|
|
228
228
|
});
|
|
229
229
|
}
|
|
@@ -238,7 +238,7 @@ function useActOnStep() {
|
|
|
238
238
|
// The server's version of the conversation replaces the listed one; its history is re-read.
|
|
239
239
|
onSuccess: (updated) => {
|
|
240
240
|
if (!updated?.external_id) return;
|
|
241
|
-
|
|
241
|
+
chunkZLHS3UKP_cjs.patchConversation(qc, updated.external_id, updated);
|
|
242
242
|
invalidateConversationActivity(qc, updated.external_id);
|
|
243
243
|
}
|
|
244
244
|
});
|
|
@@ -253,7 +253,7 @@ function useSendBackStep() {
|
|
|
253
253
|
to,
|
|
254
254
|
note
|
|
255
255
|
}) => arbi.conversations.sendBackStep(conversationId, step, { to, note }),
|
|
256
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
256
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.allConversations() })
|
|
257
257
|
});
|
|
258
258
|
}
|
|
259
259
|
function usePlanWork() {
|
|
@@ -265,7 +265,7 @@ function usePlanWork() {
|
|
|
265
265
|
function useConversationPendingAuth(conversationId, options) {
|
|
266
266
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
267
267
|
return reactQuery.useQuery({
|
|
268
|
-
queryKey:
|
|
268
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.conversationPendingAuth(conversationId ?? ""),
|
|
269
269
|
queryFn: () => arbi.conversations.pendingAuth(conversationId),
|
|
270
270
|
enabled: (options?.enabled ?? true) && !!conversationId && arbi.isLoggedIn,
|
|
271
271
|
retry: false
|
|
@@ -274,7 +274,7 @@ function useConversationPendingAuth(conversationId, options) {
|
|
|
274
274
|
function useConversationActivity(conversationId, options) {
|
|
275
275
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
276
276
|
return reactQuery.useQuery({
|
|
277
|
-
queryKey:
|
|
277
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.conversationActivity(conversationId ?? ""),
|
|
278
278
|
queryFn: () => arbi.conversations.activity(conversationId),
|
|
279
279
|
enabled: (options?.enabled ?? true) && !!conversationId && arbi.isLoggedIn,
|
|
280
280
|
refetchInterval: options?.live ? 2500 : false
|
|
@@ -283,7 +283,7 @@ function useConversationActivity(conversationId, options) {
|
|
|
283
283
|
function useWorkflows(options) {
|
|
284
284
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
285
285
|
return reactQuery.useQuery({
|
|
286
|
-
queryKey:
|
|
286
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workflows(),
|
|
287
287
|
queryFn: () => arbi.workflows.list(),
|
|
288
288
|
// A clock or event can fire while the list is open, without a write here.
|
|
289
289
|
refetchInterval: options?.live ? 1e4 : false,
|
|
@@ -293,7 +293,7 @@ function useWorkflows(options) {
|
|
|
293
293
|
function useWorkflowRuns(workflowId) {
|
|
294
294
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
295
295
|
return reactQuery.useQuery({
|
|
296
|
-
queryKey:
|
|
296
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workflowRuns(workflowId ?? ""),
|
|
297
297
|
queryFn: () => arbi.workflows.runs(workflowId),
|
|
298
298
|
enabled: !!workflowId && arbi.isLoggedIn,
|
|
299
299
|
refetchInterval: 3e3,
|
|
@@ -306,7 +306,7 @@ function useCreateWorkflow() {
|
|
|
306
306
|
const qc = reactQuery.useQueryClient();
|
|
307
307
|
return reactQuery.useMutation({
|
|
308
308
|
mutationFn: (body) => arbi.workflows.create(body),
|
|
309
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
309
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workflows() })
|
|
310
310
|
});
|
|
311
311
|
}
|
|
312
312
|
function useUpdateWorkflow() {
|
|
@@ -317,7 +317,7 @@ function useUpdateWorkflow() {
|
|
|
317
317
|
workflowId,
|
|
318
318
|
patch
|
|
319
319
|
}) => arbi.workflows.update(workflowId, patch),
|
|
320
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
320
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workflows() })
|
|
321
321
|
});
|
|
322
322
|
}
|
|
323
323
|
function useDeleteWorkflow() {
|
|
@@ -325,18 +325,18 @@ function useDeleteWorkflow() {
|
|
|
325
325
|
const qc = reactQuery.useQueryClient();
|
|
326
326
|
return reactQuery.useMutation({
|
|
327
327
|
mutationFn: (workflowId) => arbi.workflows.delete(workflowId),
|
|
328
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
328
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workflows() })
|
|
329
329
|
});
|
|
330
330
|
}
|
|
331
331
|
function useRunWorkflow() {
|
|
332
332
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
333
333
|
const qc = reactQuery.useQueryClient();
|
|
334
334
|
return reactQuery.useMutation({
|
|
335
|
-
mutationKey:
|
|
335
|
+
mutationKey: chunkH4FGDXYB_cjs.arbiMutationKeys.runWorkflow(),
|
|
336
336
|
mutationFn: (workflowId) => arbi.workflows.run(workflowId),
|
|
337
337
|
onSuccess: () => Promise.all([
|
|
338
|
-
qc.invalidateQueries({ queryKey:
|
|
339
|
-
qc.invalidateQueries({ queryKey:
|
|
338
|
+
qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workflows() }),
|
|
339
|
+
qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.allConversations() })
|
|
340
340
|
])
|
|
341
341
|
});
|
|
342
342
|
}
|
|
@@ -345,7 +345,7 @@ function useCreateAgent() {
|
|
|
345
345
|
const qc = reactQuery.useQueryClient();
|
|
346
346
|
return reactQuery.useMutation({
|
|
347
347
|
mutationFn: (name) => arbi.agents.create(name),
|
|
348
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
348
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.agents() })
|
|
349
349
|
});
|
|
350
350
|
}
|
|
351
351
|
function useGenerateAgentAvatar() {
|
|
@@ -353,13 +353,13 @@ function useGenerateAgentAvatar() {
|
|
|
353
353
|
const qc = reactQuery.useQueryClient();
|
|
354
354
|
return reactQuery.useMutation({
|
|
355
355
|
mutationFn: ({ agentExtId, prompt }) => arbi.agents.generateAvatar(agentExtId, prompt),
|
|
356
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
356
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.agents() })
|
|
357
357
|
});
|
|
358
358
|
}
|
|
359
359
|
function useAuthorizeLimits(options) {
|
|
360
360
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
361
361
|
return reactQuery.useQuery({
|
|
362
|
-
queryKey:
|
|
362
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.authorizeLimits(),
|
|
363
363
|
queryFn: () => arbi.agents.authorizeLimits(),
|
|
364
364
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
365
365
|
});
|
|
@@ -367,7 +367,7 @@ function useAuthorizeLimits(options) {
|
|
|
367
367
|
function useMcpTools(options) {
|
|
368
368
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
369
369
|
return reactQuery.useQuery({
|
|
370
|
-
queryKey:
|
|
370
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.mcpTools(),
|
|
371
371
|
queryFn: () => arbi.health.mcpTools(),
|
|
372
372
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
373
373
|
});
|
|
@@ -375,7 +375,7 @@ function useMcpTools(options) {
|
|
|
375
375
|
function useAgentConfig(agentExtId, options) {
|
|
376
376
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
377
377
|
return reactQuery.useQuery({
|
|
378
|
-
queryKey:
|
|
378
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.agentConfig(agentExtId),
|
|
379
379
|
queryFn: async () => agentExtId ? await arbi.agents.getConfig(agentExtId) : await arbi.agentConfig.get("default"),
|
|
380
380
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
381
381
|
});
|
|
@@ -383,7 +383,7 @@ function useAgentConfig(agentExtId, options) {
|
|
|
383
383
|
function useAgentModels(options) {
|
|
384
384
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
385
385
|
return reactQuery.useQuery({
|
|
386
|
-
queryKey:
|
|
386
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.models(),
|
|
387
387
|
queryFn: async () => (await arbi.agentConfig.getModels()).models.map((m) => m.model_name),
|
|
388
388
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
389
389
|
});
|
|
@@ -406,17 +406,17 @@ function useSaveAgentConfig() {
|
|
|
406
406
|
});
|
|
407
407
|
},
|
|
408
408
|
onSuccess: (_saved, { agentExtId }) => Promise.all([
|
|
409
|
-
qc.invalidateQueries({ queryKey:
|
|
410
|
-
qc.invalidateQueries({ queryKey:
|
|
409
|
+
qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.configs() }),
|
|
410
|
+
qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.agentConfig(agentExtId) }),
|
|
411
411
|
// The agent list shows the pinned persona/model, so it refreshes too.
|
|
412
|
-
qc.invalidateQueries({ queryKey:
|
|
412
|
+
qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.agents() })
|
|
413
413
|
])
|
|
414
414
|
});
|
|
415
415
|
}
|
|
416
416
|
function useAgentWorkspaces(agentExtId, options) {
|
|
417
417
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
418
418
|
return reactQuery.useQuery({
|
|
419
|
-
queryKey:
|
|
419
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.agentWorkspaces(agentExtId ?? ""),
|
|
420
420
|
queryFn: () => arbi.agents.listWorkspaces(agentExtId),
|
|
421
421
|
enabled: (options?.enabled ?? true) && !!agentExtId && arbi.isLoggedIn
|
|
422
422
|
});
|
|
@@ -437,7 +437,7 @@ function useGrantAgentAccess() {
|
|
|
437
437
|
if (!agent?.email) throw new Error("The agent's address is unknown.");
|
|
438
438
|
return arbi.workspaces.grantAccess({ workspaceId, emails: [agent.email] });
|
|
439
439
|
},
|
|
440
|
-
onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey:
|
|
440
|
+
onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.agentWorkspaces(agentExtId) })
|
|
441
441
|
});
|
|
442
442
|
}
|
|
443
443
|
function useRevokeAgentAccess() {
|
|
@@ -445,13 +445,13 @@ function useRevokeAgentAccess() {
|
|
|
445
445
|
const qc = reactQuery.useQueryClient();
|
|
446
446
|
return reactQuery.useMutation({
|
|
447
447
|
mutationFn: ({ agentExtId, workspaceId }) => arbi.workspaces.removeUsers([agentExtId], { workspaceId }),
|
|
448
|
-
onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey:
|
|
448
|
+
onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.agentWorkspaces(agentExtId) })
|
|
449
449
|
});
|
|
450
450
|
}
|
|
451
451
|
function useSkills(options) {
|
|
452
452
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
453
453
|
return reactQuery.useQuery({
|
|
454
|
-
queryKey: [...
|
|
454
|
+
queryKey: [...chunkH4FGDXYB_cjs.arbiQueryKeys.skills(), options?.includeHidden ?? false],
|
|
455
455
|
queryFn: () => arbi.assistant.listSkills({ includeHidden: options?.includeHidden }),
|
|
456
456
|
refetchInterval: options?.live ? 5e3 : false,
|
|
457
457
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn,
|
|
@@ -477,7 +477,7 @@ function useUploadSkillFiles() {
|
|
|
477
477
|
}
|
|
478
478
|
return results;
|
|
479
479
|
},
|
|
480
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
480
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.skills() })
|
|
481
481
|
});
|
|
482
482
|
}
|
|
483
483
|
function assertSkillFolder(folder) {
|
|
@@ -502,13 +502,13 @@ function useSaveSkill() {
|
|
|
502
502
|
throwOnSkipped(result);
|
|
503
503
|
return result;
|
|
504
504
|
},
|
|
505
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
505
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.skills() })
|
|
506
506
|
});
|
|
507
507
|
}
|
|
508
508
|
function useSkillSource(docExtId, options) {
|
|
509
509
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
510
510
|
return reactQuery.useQuery({
|
|
511
|
-
queryKey:
|
|
511
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.skillSource(docExtId ?? ""),
|
|
512
512
|
queryFn: async () => {
|
|
513
513
|
const response = await arbi.documents.download(docExtId);
|
|
514
514
|
if (!response.ok) throw new Error(`Could not read the skill (${response.status})`);
|
|
@@ -523,7 +523,7 @@ function useDeleteSkill() {
|
|
|
523
523
|
const qc = reactQuery.useQueryClient();
|
|
524
524
|
return reactQuery.useMutation({
|
|
525
525
|
mutationFn: (docExtId) => arbi.documents.delete([docExtId]),
|
|
526
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
526
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.skills() })
|
|
527
527
|
});
|
|
528
528
|
}
|
|
529
529
|
function useSetSkillVisibility() {
|
|
@@ -531,13 +531,13 @@ function useSetSkillVisibility() {
|
|
|
531
531
|
const qc = reactQuery.useQueryClient();
|
|
532
532
|
return reactQuery.useMutation({
|
|
533
533
|
mutationFn: ({ docExtId, visibility }) => arbi.documents.update([{ external_id: docExtId, shared: visibility === "global" }]),
|
|
534
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
534
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.skills() })
|
|
535
535
|
});
|
|
536
536
|
}
|
|
537
537
|
function useAgentSession(agentId, options) {
|
|
538
538
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
539
539
|
return reactQuery.useQuery({
|
|
540
|
-
queryKey:
|
|
540
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.agentSession(agentId ?? ""),
|
|
541
541
|
queryFn: () => arbi.agents.getSession(agentId),
|
|
542
542
|
enabled: !!agentId && arbi.isLoggedIn && (options?.enabled ?? true),
|
|
543
543
|
refetchInterval: 5e3
|
|
@@ -546,7 +546,7 @@ function useAgentSession(agentId, options) {
|
|
|
546
546
|
function useAgentChats(agentId) {
|
|
547
547
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
548
548
|
return reactQuery.useQuery({
|
|
549
|
-
queryKey:
|
|
549
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.agentChats(agentId ?? ""),
|
|
550
550
|
queryFn: () => arbi.agents.listChats(agentId),
|
|
551
551
|
enabled: !!agentId && arbi.isLoggedIn,
|
|
552
552
|
refetchInterval: 5e3
|
|
@@ -555,10 +555,10 @@ function useAgentChats(agentId) {
|
|
|
555
555
|
function refreshAgentSession(qc, agentId) {
|
|
556
556
|
return Promise.all(
|
|
557
557
|
[
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
558
|
+
chunkH4FGDXYB_cjs.arbiQueryKeys.agentSession(agentId),
|
|
559
|
+
chunkH4FGDXYB_cjs.arbiQueryKeys.agentWorkspaces(agentId),
|
|
560
|
+
chunkH4FGDXYB_cjs.arbiQueryKeys.agentChats(agentId),
|
|
561
|
+
chunkH4FGDXYB_cjs.arbiQueryKeys.sessions()
|
|
562
562
|
].map((queryKey) => qc.invalidateQueries({ queryKey }))
|
|
563
563
|
);
|
|
564
564
|
}
|
|
@@ -603,7 +603,7 @@ function toChatCitations(source) {
|
|
|
603
603
|
});
|
|
604
604
|
}
|
|
605
605
|
function getThreadsQueryKey(conversationId) {
|
|
606
|
-
return
|
|
606
|
+
return chunkH4FGDXYB_cjs.arbiQueryKeys.conversationThreads(conversationId);
|
|
607
607
|
}
|
|
608
608
|
var allConversationThreads = {
|
|
609
609
|
predicate: ({ queryKey }) => queryKey[0] === "arbi" && queryKey[1] === "conversations" && queryKey[3] === "threads"
|
|
@@ -1245,7 +1245,7 @@ function useWorkspaceUsers(workspaceId, options) {
|
|
|
1245
1245
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
1246
1246
|
const workspace = workspaceId ?? (arbi.hasWorkspace ? arbi.getWorkspaceId() : "");
|
|
1247
1247
|
return reactQuery.useQuery({
|
|
1248
|
-
queryKey:
|
|
1248
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workspaceUsers(workspace),
|
|
1249
1249
|
enabled: !!workspace && (options?.enabled ?? arbi.hasWorkspace),
|
|
1250
1250
|
queryFn: async () => {
|
|
1251
1251
|
await options?.beforeFetch?.();
|
|
@@ -1256,21 +1256,21 @@ function useWorkspaceUsers(workspaceId, options) {
|
|
|
1256
1256
|
}
|
|
1257
1257
|
function settleMembership(qc) {
|
|
1258
1258
|
return Promise.all([
|
|
1259
|
-
qc.invalidateQueries({ queryKey:
|
|
1260
|
-
qc.invalidateQueries({ queryKey:
|
|
1259
|
+
qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.allWorkspaceUsers() }),
|
|
1260
|
+
qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workspaces() }),
|
|
1261
1261
|
// A project's collaborator quota counts workspace members.
|
|
1262
|
-
qc.invalidateQueries({ queryKey:
|
|
1262
|
+
qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.projects() })
|
|
1263
1263
|
]);
|
|
1264
1264
|
}
|
|
1265
1265
|
function useAddWorkspaceMembers() {
|
|
1266
1266
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
1267
1267
|
const qc = reactQuery.useQueryClient();
|
|
1268
1268
|
return reactQuery.useMutation({
|
|
1269
|
-
mutationKey:
|
|
1269
|
+
mutationKey: chunkH4FGDXYB_cjs.arbiMutationKeys.workspaceMembership(),
|
|
1270
1270
|
mutationFn: (request) => arbi.workspaces.addMembers(request),
|
|
1271
1271
|
onSuccess: () => Promise.all([
|
|
1272
1272
|
settleMembership(qc),
|
|
1273
|
-
qc.invalidateQueries({ queryKey:
|
|
1273
|
+
qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.contacts() })
|
|
1274
1274
|
])
|
|
1275
1275
|
});
|
|
1276
1276
|
}
|
|
@@ -1278,7 +1278,7 @@ function useRemoveWorkspaceMembers() {
|
|
|
1278
1278
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
1279
1279
|
const qc = reactQuery.useQueryClient();
|
|
1280
1280
|
return reactQuery.useMutation({
|
|
1281
|
-
mutationKey:
|
|
1281
|
+
mutationKey: chunkH4FGDXYB_cjs.arbiMutationKeys.workspaceMembership(),
|
|
1282
1282
|
mutationFn: (userIds) => arbi.workspaces.removeUsers(userIds),
|
|
1283
1283
|
onSuccess: () => settleMembership(qc)
|
|
1284
1284
|
});
|
|
@@ -1287,11 +1287,11 @@ function useSetWorkspaceMemberRoles() {
|
|
|
1287
1287
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
1288
1288
|
const qc = reactQuery.useQueryClient();
|
|
1289
1289
|
return reactQuery.useMutation({
|
|
1290
|
-
mutationKey:
|
|
1290
|
+
mutationKey: chunkH4FGDXYB_cjs.arbiMutationKeys.setWorkspaceMemberRoles(),
|
|
1291
1291
|
mutationFn: ({ userIds, role }) => arbi.workspaces.setUserRole(userIds, role),
|
|
1292
1292
|
onSuccess: () => Promise.all([
|
|
1293
|
-
qc.invalidateQueries({ queryKey:
|
|
1294
|
-
qc.invalidateQueries({ queryKey:
|
|
1293
|
+
qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.allWorkspaceUsers() }),
|
|
1294
|
+
qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workspaces() })
|
|
1295
1295
|
])
|
|
1296
1296
|
});
|
|
1297
1297
|
}
|
|
@@ -1308,31 +1308,31 @@ function buildMentionCandidates(users, currentUserId) {
|
|
|
1308
1308
|
return [{ id: "assistant", kind: "assistant", label: ASSISTANT_MENTION_LABEL }, ...people];
|
|
1309
1309
|
}
|
|
1310
1310
|
function cachedMentionCandidates(queryClient, workspaceId, currentUserId) {
|
|
1311
|
-
const users = workspaceId && queryClient.getQueryData(
|
|
1311
|
+
const users = workspaceId && queryClient.getQueryData(chunkH4FGDXYB_cjs.arbiQueryKeys.workspaceUsers(workspaceId)) || [];
|
|
1312
1312
|
return buildMentionCandidates(users, currentUserId);
|
|
1313
1313
|
}
|
|
1314
1314
|
function cachedAssistantMode(queryClient, conversationId, newMode) {
|
|
1315
1315
|
if (!conversationId) return newMode;
|
|
1316
1316
|
const threads = queryClient.getQueriesData(allConversationThreads).map(([, data]) => data).find((data) => data?.conversation_ext_id === conversationId);
|
|
1317
1317
|
if (threads?.assistant_mode) return threads.assistant_mode;
|
|
1318
|
-
return
|
|
1318
|
+
return chunkZLHS3UKP_cjs.findConversation(queryClient, conversationId)?.assistant_mode ?? "always";
|
|
1319
1319
|
}
|
|
1320
1320
|
function isCommentToPeople(queryClient, conversationId, content, candidates) {
|
|
1321
|
-
const mentioned =
|
|
1321
|
+
const mentioned = chunkQYUL4GQC_cjs.extractMentions(content, candidates);
|
|
1322
1322
|
if (mentioned.some((c) => c.kind === "assistant")) return false;
|
|
1323
|
-
if (
|
|
1323
|
+
if (chunkZLHS3UKP_cjs.isConversationShared(queryClient, conversationId)) return true;
|
|
1324
1324
|
if (mentioned.some((c) => c.kind === "user")) return true;
|
|
1325
|
-
return !!conversationId && cachedAssistantMode(queryClient, conversationId, "always") === "mentioned" && !
|
|
1325
|
+
return !!conversationId && cachedAssistantMode(queryClient, conversationId, "always") === "mentioned" && !chunkZLHS3UKP_cjs.isKnownSoloConversation(queryClient, conversationId);
|
|
1326
1326
|
}
|
|
1327
1327
|
function useMentionCandidates() {
|
|
1328
1328
|
const { data: users = [] } = useWorkspaceUsers();
|
|
1329
|
-
const currentUserId =
|
|
1329
|
+
const currentUserId = chunkL3NHETSD_cjs.useArbiSession().user?.external_id;
|
|
1330
1330
|
return React.useMemo(() => buildMentionCandidates(users, currentUserId), [users, currentUserId]);
|
|
1331
1331
|
}
|
|
1332
1332
|
function useUserSettings(options) {
|
|
1333
1333
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
1334
1334
|
return reactQuery.useQuery({
|
|
1335
|
-
queryKey:
|
|
1335
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings(),
|
|
1336
1336
|
queryFn: () => arbi.settings.get(),
|
|
1337
1337
|
// Edited about once a month, and every write here patches the cache: no refetch on each mount.
|
|
1338
1338
|
staleTime: 30 * 60 * 1e3,
|
|
@@ -1345,18 +1345,18 @@ function useUpdateUserSettings() {
|
|
|
1345
1345
|
return reactQuery.useMutation({
|
|
1346
1346
|
mutationFn: (patch) => arbi.settings.update(patch),
|
|
1347
1347
|
onMutate: async (patch) => {
|
|
1348
|
-
await qc.cancelQueries({ queryKey:
|
|
1349
|
-
const previous = qc.getQueryData(
|
|
1348
|
+
await qc.cancelQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings() });
|
|
1349
|
+
const previous = qc.getQueryData(chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings());
|
|
1350
1350
|
qc.setQueryData(
|
|
1351
|
-
|
|
1351
|
+
chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings(),
|
|
1352
1352
|
(old) => old ? { ...old, ...patch } : old
|
|
1353
1353
|
);
|
|
1354
1354
|
return { previous };
|
|
1355
1355
|
},
|
|
1356
1356
|
onError: (_err, _patch, context) => {
|
|
1357
|
-
qc.setQueryData(
|
|
1357
|
+
qc.setQueryData(chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings(), context?.previous);
|
|
1358
1358
|
},
|
|
1359
|
-
onSettled: () => qc.invalidateQueries({ queryKey:
|
|
1359
|
+
onSettled: () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings() })
|
|
1360
1360
|
});
|
|
1361
1361
|
}
|
|
1362
1362
|
|
|
@@ -1383,7 +1383,7 @@ function formatConfigValidationError(error) {
|
|
|
1383
1383
|
function useConfigSchema() {
|
|
1384
1384
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
1385
1385
|
return reactQuery.useQuery({
|
|
1386
|
-
queryKey:
|
|
1386
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.configSchema(),
|
|
1387
1387
|
queryFn: () => arbi.agentConfig.getSchema(),
|
|
1388
1388
|
enabled: arbi.isLoggedIn
|
|
1389
1389
|
});
|
|
@@ -1394,8 +1394,8 @@ function useSaveConfig() {
|
|
|
1394
1394
|
return reactQuery.useMutation({
|
|
1395
1395
|
mutationFn: (body) => arbi.agentConfig.save(body),
|
|
1396
1396
|
onSuccess: () => {
|
|
1397
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
1398
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
1397
|
+
void queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.configs() });
|
|
1398
|
+
void queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings() });
|
|
1399
1399
|
},
|
|
1400
1400
|
onError: (error) => {
|
|
1401
1401
|
chunkVAMPYLQ4_cjs.notify.error(formatConfigValidationError(error), {
|
|
@@ -1409,7 +1409,7 @@ function useDeleteConfig() {
|
|
|
1409
1409
|
const queryClient = reactQuery.useQueryClient();
|
|
1410
1410
|
return reactQuery.useMutation({
|
|
1411
1411
|
mutationFn: (configId) => arbi.agentConfig.delete(configId),
|
|
1412
|
-
onSuccess: () => queryClient.invalidateQueries({ queryKey:
|
|
1412
|
+
onSuccess: () => queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.configs() })
|
|
1413
1413
|
});
|
|
1414
1414
|
}
|
|
1415
1415
|
function configDelta(active, defaults) {
|
|
@@ -1430,11 +1430,11 @@ function configDelta(active, defaults) {
|
|
|
1430
1430
|
}
|
|
1431
1431
|
function useSaveConfigField() {
|
|
1432
1432
|
const saveConfig = useSaveConfig();
|
|
1433
|
-
const { data: defaultConfig } =
|
|
1434
|
-
const chatModel =
|
|
1433
|
+
const { data: defaultConfig } = chunkL3NHETSD_cjs.useConfig("default");
|
|
1434
|
+
const chatModel = chunkL3NHETSD_cjs.useArbiSessionState((state) => state.chatModel);
|
|
1435
1435
|
const { data: userSettings } = useUserSettings();
|
|
1436
1436
|
const activeConfigId = chatModel || userSettings?.last_config || "default";
|
|
1437
|
-
const { data: activeConfigData } =
|
|
1437
|
+
const { data: activeConfigData } = chunkL3NHETSD_cjs.useConfig(activeConfigId);
|
|
1438
1438
|
const buildDelta = (changes) => {
|
|
1439
1439
|
const defaults = defaultConfig ?? {};
|
|
1440
1440
|
const active = activeConfigData ?? {};
|
|
@@ -1472,8 +1472,8 @@ function pendingChatModelSave(session) {
|
|
|
1472
1472
|
return chatModelSaves.get(session);
|
|
1473
1473
|
}
|
|
1474
1474
|
function useApplyChatModel() {
|
|
1475
|
-
const session =
|
|
1476
|
-
const { data: availableModels } =
|
|
1475
|
+
const session = chunkL3NHETSD_cjs.useArbiSessionStore();
|
|
1476
|
+
const { data: availableModels } = chunkL3NHETSD_cjs.useAvailableModels();
|
|
1477
1477
|
const configField = useSaveConfigField();
|
|
1478
1478
|
return React.useCallback(
|
|
1479
1479
|
async (model, label) => {
|
|
@@ -1497,6 +1497,67 @@ function useApplyChatModel() {
|
|
|
1497
1497
|
[availableModels, configField, session]
|
|
1498
1498
|
);
|
|
1499
1499
|
}
|
|
1500
|
+
|
|
1501
|
+
// src/chat/thread-binding.ts
|
|
1502
|
+
function threadBinding(queryClient, conversationId) {
|
|
1503
|
+
if (!conversationId) return chunkQYUL4GQC_cjs.UNBOUND;
|
|
1504
|
+
const row = chunkZLHS3UKP_cjs.findConversation(queryClient, conversationId);
|
|
1505
|
+
if (row) return chunkQYUL4GQC_cjs.bindingOfRow(row);
|
|
1506
|
+
const threads = queryClient.getQueryData(getThreadsQueryKey(conversationId));
|
|
1507
|
+
return chunkQYUL4GQC_cjs.bindingOfRow(threads ? { external_id: conversationId, ...threads } : null);
|
|
1508
|
+
}
|
|
1509
|
+
function boundDocumentOf(queryClient, state) {
|
|
1510
|
+
return state.conversationId ? threadBinding(queryClient, state.conversationId).documentId : state.newChatDocumentId;
|
|
1511
|
+
}
|
|
1512
|
+
function cacheThreadBinding(queryClient, conversationId, binding) {
|
|
1513
|
+
const fields = {
|
|
1514
|
+
bound_document_ext_id: binding.documentId,
|
|
1515
|
+
bound_document_unavailable: binding.unavailable
|
|
1516
|
+
};
|
|
1517
|
+
chunkZLHS3UKP_cjs.patchConversation(queryClient, conversationId, fields);
|
|
1518
|
+
queryClient.setQueryData(
|
|
1519
|
+
getThreadsQueryKey(conversationId),
|
|
1520
|
+
(old) => old ? { ...old, ...fields } : old
|
|
1521
|
+
);
|
|
1522
|
+
}
|
|
1523
|
+
async function bindThreadDocument(arbi, queryClient, conversationId, documentId) {
|
|
1524
|
+
const before = threadBinding(queryClient, conversationId);
|
|
1525
|
+
if (before.documentId === documentId && !before.unavailable) return;
|
|
1526
|
+
cacheThreadBinding(queryClient, conversationId, { documentId, unavailable: false });
|
|
1527
|
+
try {
|
|
1528
|
+
const saved = await arbi.conversations.update(conversationId, {
|
|
1529
|
+
bound_document_ext_id: documentId
|
|
1530
|
+
});
|
|
1531
|
+
chunkZLHS3UKP_cjs.patchConversation(queryClient, conversationId, saved);
|
|
1532
|
+
cacheThreadBinding(queryClient, conversationId, chunkQYUL4GQC_cjs.bindingOfRow(saved));
|
|
1533
|
+
} catch (error) {
|
|
1534
|
+
cacheThreadBinding(queryClient, conversationId, before);
|
|
1535
|
+
throw error;
|
|
1536
|
+
}
|
|
1537
|
+
}
|
|
1538
|
+
function adoptNewChatDocument(session, queryClient, conversationId, documentId = session.getState().newChatDocumentId) {
|
|
1539
|
+
if (!documentId) return;
|
|
1540
|
+
cacheThreadBinding(queryClient, conversationId, { documentId, unavailable: false });
|
|
1541
|
+
if (session.getState().newChatDocumentId === documentId) session.setNewChatDocumentId(null);
|
|
1542
|
+
}
|
|
1543
|
+
async function migrateLegacyThreadDocuments(arbi, queryClient, conversations) {
|
|
1544
|
+
const legacy = chunkQYUL4GQC_cjs.readLegacyThreadDocuments();
|
|
1545
|
+
const listed = conversations.filter(
|
|
1546
|
+
(c) => c.external_id in legacy && "bound_document_unavailable" in c
|
|
1547
|
+
);
|
|
1548
|
+
if (listed.length === 0) return;
|
|
1549
|
+
await Promise.all(
|
|
1550
|
+
listed.map(async (row) => {
|
|
1551
|
+
const server = chunkQYUL4GQC_cjs.bindingOfRow(row);
|
|
1552
|
+
if (server.documentId || server.unavailable) return;
|
|
1553
|
+
try {
|
|
1554
|
+
await bindThreadDocument(arbi, queryClient, row.external_id, legacy[row.external_id]);
|
|
1555
|
+
} catch {
|
|
1556
|
+
}
|
|
1557
|
+
})
|
|
1558
|
+
);
|
|
1559
|
+
chunkQYUL4GQC_cjs.forgetLegacyThreadDocuments(listed.map((c) => c.external_id));
|
|
1560
|
+
}
|
|
1500
1561
|
function resolveReplyTarget(queryClient, conversationId, parentId) {
|
|
1501
1562
|
if (!parentId) return null;
|
|
1502
1563
|
const data = queryClient.getQueryData(getThreadsQueryKey(conversationId));
|
|
@@ -1509,8 +1570,8 @@ function startsWith(key, prefix) {
|
|
|
1509
1570
|
return prefix.every((part, i) => key[i] === part);
|
|
1510
1571
|
}
|
|
1511
1572
|
function subscribeDocumentReads(qc, onRows) {
|
|
1512
|
-
const lists =
|
|
1513
|
-
const one =
|
|
1573
|
+
const lists = chunkH4FGDXYB_cjs.arbiQueryKeys.allDocuments();
|
|
1574
|
+
const one = chunkH4FGDXYB_cjs.arbiQueryKeys.document("").slice(0, -1);
|
|
1514
1575
|
return qc.getQueryCache().subscribe((event) => {
|
|
1515
1576
|
if (event.type !== "updated" || event.action.type !== "success") return;
|
|
1516
1577
|
const key = event.query.queryKey;
|
|
@@ -1528,10 +1589,10 @@ var useArbiWsStore = zustand.create((set) => ({
|
|
|
1528
1589
|
presence: {},
|
|
1529
1590
|
setStatus: (status) => set({ status }),
|
|
1530
1591
|
applyTaskUpdate: (msg) => set(
|
|
1531
|
-
(s) =>
|
|
1592
|
+
(s) => chunkKFFH2JJM_cjs.isStaleTaskUpdate(s.tasks[msg.doc_ext_id], msg) ? s : { tasks: { ...s.tasks, [msg.doc_ext_id]: msg }, lastTaskUpdate: msg }
|
|
1532
1593
|
),
|
|
1533
1594
|
settleTasks: (rows) => set((s) => {
|
|
1534
|
-
const settled =
|
|
1595
|
+
const settled = chunkKFFH2JJM_cjs.settledByRows(s.tasks, rows);
|
|
1535
1596
|
if (!settled.length) return s;
|
|
1536
1597
|
const tasks = { ...s.tasks };
|
|
1537
1598
|
for (const task of settled) tasks[task.doc_ext_id] = task;
|
|
@@ -1581,7 +1642,7 @@ function useDocumentPendingSync(docId) {
|
|
|
1581
1642
|
function applyOptimisticDocumentEdit(qc, updates) {
|
|
1582
1643
|
const byId = new Map(updates.map((update) => [update.external_id, update]));
|
|
1583
1644
|
const previous = [];
|
|
1584
|
-
|
|
1645
|
+
chunkKFFH2JJM_cjs.patchDocuments(qc, (old) => {
|
|
1585
1646
|
let changed = false;
|
|
1586
1647
|
const next = old.map((doc) => {
|
|
1587
1648
|
const update = byId.get(doc.external_id);
|
|
@@ -1594,9 +1655,9 @@ function applyOptimisticDocumentEdit(qc, updates) {
|
|
|
1594
1655
|
});
|
|
1595
1656
|
const previousOwn = updates.map((update) => {
|
|
1596
1657
|
const own = qc.getQueryData(
|
|
1597
|
-
|
|
1658
|
+
chunkH4FGDXYB_cjs.arbiQueryKeys.document(update.external_id)
|
|
1598
1659
|
);
|
|
1599
|
-
if (own)
|
|
1660
|
+
if (own) chunkKFFH2JJM_cjs.setCachedDocument(qc, { ...own, ...update });
|
|
1600
1661
|
return [update.external_id, own];
|
|
1601
1662
|
});
|
|
1602
1663
|
return { optimistic: true, previous, previousOwn };
|
|
@@ -1606,38 +1667,38 @@ function rollbackOptimisticDocumentEdit(qc, context) {
|
|
|
1606
1667
|
if (!edit?.optimistic) return;
|
|
1607
1668
|
if (edit.previous.length) {
|
|
1608
1669
|
const restore = new Map(edit.previous.map((doc) => [doc.external_id, doc]));
|
|
1609
|
-
|
|
1670
|
+
chunkKFFH2JJM_cjs.patchDocuments(
|
|
1610
1671
|
qc,
|
|
1611
1672
|
(old) => old.some((doc) => restore.has(doc.external_id)) ? old.map((doc) => restore.get(doc.external_id) ?? doc) : old
|
|
1612
1673
|
);
|
|
1613
1674
|
}
|
|
1614
|
-
for (const [id, own] of edit.previousOwn) qc.setQueryData(
|
|
1675
|
+
for (const [id, own] of edit.previousOwn) qc.setQueryData(chunkH4FGDXYB_cjs.arbiQueryKeys.document(id), own);
|
|
1615
1676
|
}
|
|
1616
1677
|
function settleUpdatedDocuments(qc, updated) {
|
|
1617
1678
|
if (!updated.length) return;
|
|
1618
1679
|
const byId = new Map(updated.map((doc) => [doc.external_id, doc]));
|
|
1619
|
-
|
|
1680
|
+
chunkKFFH2JJM_cjs.patchDocuments(
|
|
1620
1681
|
qc,
|
|
1621
1682
|
(old) => old.some((doc) => byId.has(doc.external_id)) ? old.map((doc) => byId.get(doc.external_id) ?? doc) : old
|
|
1622
1683
|
);
|
|
1623
|
-
for (const doc of updated)
|
|
1684
|
+
for (const doc of updated) chunkKFFH2JJM_cjs.setCachedDocument(qc, doc);
|
|
1624
1685
|
}
|
|
1625
1686
|
function patchEachDocument(qc, docIds, reducer) {
|
|
1626
1687
|
const ids = new Set(docIds);
|
|
1627
|
-
|
|
1688
|
+
chunkKFFH2JJM_cjs.patchDocuments(
|
|
1628
1689
|
qc,
|
|
1629
1690
|
(old) => old.some((doc) => ids.has(doc.external_id)) ? old.map((doc) => ids.has(doc.external_id) ? reducer(doc) : doc) : old
|
|
1630
1691
|
);
|
|
1631
|
-
for (const id of ids)
|
|
1692
|
+
for (const id of ids) chunkKFFH2JJM_cjs.patchCachedDocument(qc, id, reducer);
|
|
1632
1693
|
}
|
|
1633
1694
|
function workspaceOf(qc, docId) {
|
|
1634
1695
|
for (const [, docs] of qc.getQueriesData({
|
|
1635
|
-
queryKey:
|
|
1696
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.allDocuments()
|
|
1636
1697
|
})) {
|
|
1637
1698
|
const doc = Array.isArray(docs) ? docs.find((d) => d.external_id === docId) : void 0;
|
|
1638
1699
|
if (doc) return doc.workspace_ext_id;
|
|
1639
1700
|
}
|
|
1640
|
-
return qc.getQueryData(
|
|
1701
|
+
return qc.getQueryData(chunkH4FGDXYB_cjs.arbiQueryKeys.document(docId))?.workspace_ext_id;
|
|
1641
1702
|
}
|
|
1642
1703
|
function settleAssignedDocTags(qc, created) {
|
|
1643
1704
|
const byDoc = /* @__PURE__ */ new Map();
|
|
@@ -1655,13 +1716,13 @@ function settleAssignedDocTags(qc, created) {
|
|
|
1655
1716
|
...doc,
|
|
1656
1717
|
doctags: [...doc.doctags ?? [], ...byDoc.get(doc.external_id) ?? []]
|
|
1657
1718
|
}));
|
|
1658
|
-
for (const [workspaceId, delta] of workspaces)
|
|
1719
|
+
for (const [workspaceId, delta] of workspaces) chunkKFFH2JJM_cjs.adjustTagCounts(qc, workspaceId, delta);
|
|
1659
1720
|
}
|
|
1660
1721
|
function settleRemovedDocTags(qc, { tagId, docIds }) {
|
|
1661
1722
|
const ids = new Set(docIds);
|
|
1662
1723
|
const removedByWorkspace = /* @__PURE__ */ new Map();
|
|
1663
1724
|
for (const [, docs] of qc.getQueriesData({
|
|
1664
|
-
queryKey:
|
|
1725
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.allDocuments()
|
|
1665
1726
|
})) {
|
|
1666
1727
|
for (const doc of Array.isArray(docs) ? docs : []) {
|
|
1667
1728
|
if (!ids.has(doc.external_id)) continue;
|
|
@@ -1677,7 +1738,7 @@ function settleRemovedDocTags(qc, { tagId, docIds }) {
|
|
|
1677
1738
|
doctags: (doc.doctags ?? []).filter((dt) => dt.tag_ext_id !== tagId)
|
|
1678
1739
|
}));
|
|
1679
1740
|
for (const [workspaceId, removed] of removedByWorkspace)
|
|
1680
|
-
|
|
1741
|
+
chunkKFFH2JJM_cjs.adjustTagCounts(qc, workspaceId, /* @__PURE__ */ new Map([[tagId, -removed]]));
|
|
1681
1742
|
}
|
|
1682
1743
|
function settleUpdatedDocTag(qc, updated) {
|
|
1683
1744
|
patchEachDocument(qc, [updated.doc_ext_id], (doc) => ({
|
|
@@ -1687,22 +1748,22 @@ function settleUpdatedDocTag(qc, updated) {
|
|
|
1687
1748
|
}
|
|
1688
1749
|
var replayableDocumentMutations = [
|
|
1689
1750
|
{
|
|
1690
|
-
mutationKey:
|
|
1751
|
+
mutationKey: chunkH4FGDXYB_cjs.arbiMutationKeys.updateDocuments(),
|
|
1691
1752
|
run: (client, input) => browser.documents.updateDocuments(client, input.documents),
|
|
1692
1753
|
settle: (qc, updated) => settleUpdatedDocuments(qc, updated)
|
|
1693
1754
|
},
|
|
1694
1755
|
{
|
|
1695
|
-
mutationKey:
|
|
1756
|
+
mutationKey: chunkH4FGDXYB_cjs.arbiMutationKeys.assignDocTags(),
|
|
1696
1757
|
run: (client, input) => browser.doctags.assignDocTags(client, input.tagId, input.docIds, input.note, input.citations),
|
|
1697
1758
|
settle: (qc, created) => settleAssignedDocTags(qc, created)
|
|
1698
1759
|
},
|
|
1699
1760
|
{
|
|
1700
|
-
mutationKey:
|
|
1761
|
+
mutationKey: chunkH4FGDXYB_cjs.arbiMutationKeys.removeDocTags(),
|
|
1701
1762
|
run: (client, input) => browser.doctags.removeDocTags(client, input.tagId, input.docIds),
|
|
1702
1763
|
settle: (qc, _data, input) => settleRemovedDocTags(qc, input)
|
|
1703
1764
|
},
|
|
1704
1765
|
{
|
|
1705
|
-
mutationKey:
|
|
1766
|
+
mutationKey: chunkH4FGDXYB_cjs.arbiMutationKeys.updateDocTag(),
|
|
1706
1767
|
run: (client, input) => browser.doctags.updateDocTag(client, input.tagId, input.docId, {
|
|
1707
1768
|
note: input.note,
|
|
1708
1769
|
citations: input.citations
|
|
@@ -1725,7 +1786,7 @@ function useUpdateDocuments() {
|
|
|
1725
1786
|
const qc = reactQuery.useQueryClient();
|
|
1726
1787
|
return resolvingOffline(
|
|
1727
1788
|
reactQuery.useMutation({
|
|
1728
|
-
mutationKey:
|
|
1789
|
+
mutationKey: chunkH4FGDXYB_cjs.arbiMutationKeys.updateDocuments(),
|
|
1729
1790
|
mutationFn: ({ documents: documents2 }) => arbi.documents.update(documents2),
|
|
1730
1791
|
onMutate: ({ documents: documents2 }) => reactQuery.onlineManager.isOnline() || !documents2.length ? void 0 : applyOptimisticDocumentEdit(qc, documents2),
|
|
1731
1792
|
onError: (_error, _input, context) => rollbackOptimisticDocumentEdit(qc, context),
|
|
@@ -1753,7 +1814,7 @@ function useRenameFolder() {
|
|
|
1753
1814
|
return folder === void 0 ? [] : [{ external_id: doc.external_id, folder }];
|
|
1754
1815
|
});
|
|
1755
1816
|
if (updates.length > 0) await mutateAsync({ documents: updates });
|
|
1756
|
-
|
|
1817
|
+
chunkKFFH2JJM_cjs.patchDocuments(qc, (rows) => {
|
|
1757
1818
|
let changed = false;
|
|
1758
1819
|
const next = rows.map((doc) => {
|
|
1759
1820
|
const folder = moved(doc.folder);
|
|
@@ -1773,30 +1834,30 @@ function useDeleteDocuments() {
|
|
|
1773
1834
|
const qc = reactQuery.useQueryClient();
|
|
1774
1835
|
const { onDocumentsDeleted } = useDocumentsSupport();
|
|
1775
1836
|
return reactQuery.useMutation({
|
|
1776
|
-
mutationKey:
|
|
1837
|
+
mutationKey: chunkH4FGDXYB_cjs.arbiMutationKeys.deleteDocuments(),
|
|
1777
1838
|
mutationFn: (docIds) => arbi.documents.delete(docIds),
|
|
1778
1839
|
onSuccess: (_data, docIds) => {
|
|
1779
1840
|
const gone = new Set(docIds);
|
|
1780
|
-
|
|
1841
|
+
chunkKFFH2JJM_cjs.patchDocuments(
|
|
1781
1842
|
qc,
|
|
1782
1843
|
(old) => old.some((doc) => gone.has(doc.external_id)) ? old.filter((doc) => !gone.has(doc.external_id)) : old
|
|
1783
1844
|
);
|
|
1784
|
-
|
|
1845
|
+
chunkKFFH2JJM_cjs.forgetDocuments(qc, docIds);
|
|
1785
1846
|
onDocumentsDeleted?.(docIds);
|
|
1786
|
-
return qc.invalidateQueries({ queryKey:
|
|
1847
|
+
return qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workspaces() });
|
|
1787
1848
|
}
|
|
1788
1849
|
});
|
|
1789
1850
|
}
|
|
1790
1851
|
async function settleUpload(qc, arbi, docIds, processingTask) {
|
|
1791
|
-
if (docIds?.length) await
|
|
1792
|
-
await qc.invalidateQueries({ queryKey:
|
|
1852
|
+
if (docIds?.length) await chunkKFFH2JJM_cjs.refreshDocuments(qc, arbi, docIds, { processingTask });
|
|
1853
|
+
await qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workspaces() });
|
|
1793
1854
|
}
|
|
1794
1855
|
function useUploadDocuments() {
|
|
1795
1856
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
1796
1857
|
const qc = reactQuery.useQueryClient();
|
|
1797
1858
|
const { processingTask } = useDocumentsSupport();
|
|
1798
1859
|
return reactQuery.useMutation({
|
|
1799
|
-
mutationKey:
|
|
1860
|
+
mutationKey: chunkH4FGDXYB_cjs.arbiMutationKeys.uploadDocuments(),
|
|
1800
1861
|
mutationFn: ({ files, options }) => arbi.documents.upload(files, options),
|
|
1801
1862
|
onSuccess: (result) => settleUpload(qc, arbi, result.doc_ext_ids, processingTask)
|
|
1802
1863
|
});
|
|
@@ -1806,7 +1867,7 @@ function useUploadUrls() {
|
|
|
1806
1867
|
const qc = reactQuery.useQueryClient();
|
|
1807
1868
|
const { processingTask } = useDocumentsSupport();
|
|
1808
1869
|
return reactQuery.useMutation({
|
|
1809
|
-
mutationKey:
|
|
1870
|
+
mutationKey: chunkH4FGDXYB_cjs.arbiMutationKeys.uploadUrls(),
|
|
1810
1871
|
mutationFn: ({ urls, shared, configExtId }) => arbi.documents.uploadUrl(urls, { shared, configExtId }),
|
|
1811
1872
|
onSuccess: (result) => settleUpload(qc, arbi, result.doc_ext_ids, processingTask)
|
|
1812
1873
|
});
|
|
@@ -1816,7 +1877,7 @@ function useAssignDocTags() {
|
|
|
1816
1877
|
const qc = reactQuery.useQueryClient();
|
|
1817
1878
|
return resolvingOffline(
|
|
1818
1879
|
reactQuery.useMutation({
|
|
1819
|
-
mutationKey:
|
|
1880
|
+
mutationKey: chunkH4FGDXYB_cjs.arbiMutationKeys.assignDocTags(),
|
|
1820
1881
|
mutationFn: ({ tagId, docIds, note, citations }) => arbi.doctags.assign(tagId, docIds, note, citations),
|
|
1821
1882
|
onSuccess: (created) => settleAssignedDocTags(qc, created)
|
|
1822
1883
|
})
|
|
@@ -1827,7 +1888,7 @@ function useRemoveDocTags() {
|
|
|
1827
1888
|
const qc = reactQuery.useQueryClient();
|
|
1828
1889
|
return resolvingOffline(
|
|
1829
1890
|
reactQuery.useMutation({
|
|
1830
|
-
mutationKey:
|
|
1891
|
+
mutationKey: chunkH4FGDXYB_cjs.arbiMutationKeys.removeDocTags(),
|
|
1831
1892
|
mutationFn: ({ tagId, docIds }) => arbi.doctags.remove(tagId, docIds),
|
|
1832
1893
|
onSuccess: (_data, input) => settleRemovedDocTags(qc, input)
|
|
1833
1894
|
})
|
|
@@ -1838,7 +1899,7 @@ function useUpdateDocTag() {
|
|
|
1838
1899
|
const qc = reactQuery.useQueryClient();
|
|
1839
1900
|
return resolvingOffline(
|
|
1840
1901
|
reactQuery.useMutation({
|
|
1841
|
-
mutationKey:
|
|
1902
|
+
mutationKey: chunkH4FGDXYB_cjs.arbiMutationKeys.updateDocTag(),
|
|
1842
1903
|
mutationFn: ({ tagId, docId, note, citations }) => arbi.doctags.update(tagId, docId, { note, citations }),
|
|
1843
1904
|
onSuccess: (updated) => settleUpdatedDocTag(qc, updated)
|
|
1844
1905
|
})
|
|
@@ -1849,13 +1910,13 @@ function useGenerateDocTags() {
|
|
|
1849
1910
|
const qc = reactQuery.useQueryClient();
|
|
1850
1911
|
const { onProcessingQueued } = useDocumentsSupport();
|
|
1851
1912
|
return reactQuery.useMutation({
|
|
1852
|
-
mutationKey:
|
|
1913
|
+
mutationKey: chunkH4FGDXYB_cjs.arbiMutationKeys.generateDocTags(),
|
|
1853
1914
|
mutationFn: ({ tagIds, docIds, overwrite }) => arbi.doctags.generate(tagIds, docIds, { overwrite }),
|
|
1854
1915
|
onMutate: ({ docIds }) => {
|
|
1855
1916
|
if (!onProcessingQueued || !docIds.length) return void 0;
|
|
1856
1917
|
const workspaceId = arbi.hasWorkspace ? arbi.getWorkspaceId() : "";
|
|
1857
1918
|
const listed = new Map(
|
|
1858
|
-
(
|
|
1919
|
+
(chunkKFFH2JJM_cjs.getCachedDocuments(qc, workspaceId) ?? []).map((doc) => [doc.external_id, doc])
|
|
1859
1920
|
);
|
|
1860
1921
|
return {
|
|
1861
1922
|
undo: onProcessingQueued(
|
|
@@ -1877,7 +1938,7 @@ function useFinaliseTranslation() {
|
|
|
1877
1938
|
const { processingTask } = useDocumentsSupport();
|
|
1878
1939
|
return reactQuery.useMutation({
|
|
1879
1940
|
mutationFn: (docId) => arbi.documents.finaliseTranslation(docId),
|
|
1880
|
-
onSuccess: (result) => void
|
|
1941
|
+
onSuccess: (result) => void chunkKFFH2JJM_cjs.refreshDocuments(qc, arbi, [result.document_ext_id], { processingTask })
|
|
1881
1942
|
});
|
|
1882
1943
|
}
|
|
1883
1944
|
|
|
@@ -2063,7 +2124,7 @@ function useDocumentThumbnails(visibleIds) {
|
|
|
2063
2124
|
for (const id of visibleIds)
|
|
2064
2125
|
if (IN_PROGRESS.has(tasks[id]?.status ?? "")) resolvedRef.current.delete(id);
|
|
2065
2126
|
const ready = visibleIds.filter(
|
|
2066
|
-
(id) => !resolvedRef.current.has(id) &&
|
|
2127
|
+
(id) => !resolvedRef.current.has(id) && chunkKFFH2JJM_cjs.FINISHED_DOCUMENT_STATUSES.has(tasks[id]?.status ?? "")
|
|
2067
2128
|
);
|
|
2068
2129
|
if (ready.length > 0) void fetchMissing(ready);
|
|
2069
2130
|
}, [tasks, idsKey, fetchMissing]);
|
|
@@ -2155,8 +2216,8 @@ function DocumentReview({
|
|
|
2155
2216
|
onClose,
|
|
2156
2217
|
className
|
|
2157
2218
|
}) {
|
|
2158
|
-
const parsedQuery =
|
|
2159
|
-
const tagsQuery =
|
|
2219
|
+
const parsedQuery = chunkL3NHETSD_cjs.useParsedDocument(docId, stage);
|
|
2220
|
+
const tagsQuery = chunkL3NHETSD_cjs.useTags(workspaceId);
|
|
2160
2221
|
const tagNameById = React__default.default.useMemo(() => {
|
|
2161
2222
|
const map = /* @__PURE__ */ new Map();
|
|
2162
2223
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -3126,7 +3187,7 @@ function useUploadFiles() {
|
|
|
3126
3187
|
if (docIds2.length > 0) {
|
|
3127
3188
|
for (const docId of docIds2) uploadedFolders.set(docId, { workspaceId, folder });
|
|
3128
3189
|
const made = new Set(docIds2);
|
|
3129
|
-
|
|
3190
|
+
chunkKFFH2JJM_cjs.patchDocuments(
|
|
3130
3191
|
qc,
|
|
3131
3192
|
(rows) => rows.map((doc) => made.has(doc.external_id) ? { ...doc, folder } : doc),
|
|
3132
3193
|
workspaceId
|
|
@@ -3142,10 +3203,10 @@ function useUploadFiles() {
|
|
|
3142
3203
|
const docIds = results.flatMap((result) => result.doc_ext_ids ?? []);
|
|
3143
3204
|
const skipped = results.flatMap((result) => result.skipped ?? []);
|
|
3144
3205
|
if (docIds.length > 0) {
|
|
3145
|
-
const read = await
|
|
3206
|
+
const read = await chunkKFFH2JJM_cjs.refreshDocuments(qc, arbi, docIds, { processingTask });
|
|
3146
3207
|
for (const doc of read) forgetUploadedDocumentFolder(doc.external_id);
|
|
3147
3208
|
}
|
|
3148
|
-
await qc.invalidateQueries({ queryKey:
|
|
3209
|
+
await qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workspaces() });
|
|
3149
3210
|
if (docIds.length > 0 && input.generateTagIds?.length) {
|
|
3150
3211
|
await generateDocTags({ tagIds: input.generateTagIds, docIds, overwrite: false }).catch(
|
|
3151
3212
|
() => void 0
|
|
@@ -3229,7 +3290,7 @@ function getRelatedLabels(related) {
|
|
|
3229
3290
|
return parts;
|
|
3230
3291
|
}
|
|
3231
3292
|
function useRelatedDocuments(documents2) {
|
|
3232
|
-
const { data: similarData } =
|
|
3293
|
+
const { data: similarData } = chunkKFFH2JJM_cjs.useSimilarDocuments();
|
|
3233
3294
|
const structuralKey = React.useMemo(() => {
|
|
3234
3295
|
const parts = [];
|
|
3235
3296
|
for (const doc of documents2) {
|
|
@@ -3309,7 +3370,7 @@ function useRelatedDocuments(documents2) {
|
|
|
3309
3370
|
}
|
|
3310
3371
|
if (similarData?.pairs) {
|
|
3311
3372
|
for (const pair of similarData.pairs) {
|
|
3312
|
-
if (pair.similarity <
|
|
3373
|
+
if (pair.similarity < chunkKFFH2JJM_cjs.SIMILARITY_THRESHOLD || pair.similarity >= 1) continue;
|
|
3313
3374
|
const docA = docById.get(pair.doc_a.external_id);
|
|
3314
3375
|
const docB = docById.get(pair.doc_b.external_id);
|
|
3315
3376
|
if (docA && docB) {
|
|
@@ -3342,11 +3403,11 @@ function createStreamHandlers(ctx, params) {
|
|
|
3342
3403
|
const clientId = streamState.queuedClientId;
|
|
3343
3404
|
if (!clientId || queuedEntryRetired) return;
|
|
3344
3405
|
queuedEntryRetired = true;
|
|
3345
|
-
const entry =
|
|
3406
|
+
const entry = chunkL3NHETSD_cjs.queuedMessages.find(session.getState().queuedMessages, clientId);
|
|
3346
3407
|
if (!entry) return;
|
|
3347
3408
|
const remainingVisibility = Math.max(
|
|
3348
3409
|
0,
|
|
3349
|
-
|
|
3410
|
+
chunkL3NHETSD_cjs.MIN_QUEUED_MESSAGE_VISIBILITY_MS - (Date.now() - entry.createdAt)
|
|
3350
3411
|
);
|
|
3351
3412
|
if (remainingVisibility === 0) {
|
|
3352
3413
|
session.removeQueuedMessage(clientId);
|
|
@@ -3360,10 +3421,9 @@ function createStreamHandlers(ctx, params) {
|
|
|
3360
3421
|
if (serverConversationId && streamState.conversationId === "new") {
|
|
3361
3422
|
streamState.conversationId = serverConversationId;
|
|
3362
3423
|
session.moveConversation("new", serverConversationId);
|
|
3363
|
-
chunkTYZFRV7P_cjs.adoptNewChatDocument(session, serverConversationId, streamState.threadDocumentId ?? null);
|
|
3364
3424
|
const userExtId = ctx.userId();
|
|
3365
3425
|
const nowIso = (/* @__PURE__ */ new Date()).toISOString();
|
|
3366
|
-
|
|
3426
|
+
chunkZLHS3UKP_cjs.patchConversationList(
|
|
3367
3427
|
queryClient,
|
|
3368
3428
|
session.getState().workspaceId,
|
|
3369
3429
|
(old) => old.some((c) => c.external_id === serverConversationId) ? old : [
|
|
@@ -3381,6 +3441,12 @@ function createStreamHandlers(ctx, params) {
|
|
|
3381
3441
|
...old
|
|
3382
3442
|
]
|
|
3383
3443
|
);
|
|
3444
|
+
adoptNewChatDocument(
|
|
3445
|
+
session,
|
|
3446
|
+
queryClient,
|
|
3447
|
+
serverConversationId,
|
|
3448
|
+
streamState.threadDocumentId ?? null
|
|
3449
|
+
);
|
|
3384
3450
|
}
|
|
3385
3451
|
const { type: _type, ...messageData } = userMessage;
|
|
3386
3452
|
const userMsg = { ...messageData, isLoading: true };
|
|
@@ -3479,7 +3545,7 @@ function createStreamHandlers(ctx, params) {
|
|
|
3479
3545
|
ensureAssistantMessageLoading(queryClient, conversationId, answerId);
|
|
3480
3546
|
});
|
|
3481
3547
|
}
|
|
3482
|
-
void
|
|
3548
|
+
void chunkZLHS3UKP_cjs.invalidateConversationLists(queryClient);
|
|
3483
3549
|
session.setCursor(streamState.assistantId);
|
|
3484
3550
|
};
|
|
3485
3551
|
let firstTokenSeen = false;
|
|
@@ -3652,8 +3718,8 @@ function createStreamHandlers(ctx, params) {
|
|
|
3652
3718
|
}
|
|
3653
3719
|
if (streamState.factsTouched) {
|
|
3654
3720
|
streamState.factsTouched = false;
|
|
3655
|
-
queryClient.invalidateQueries({ queryKey:
|
|
3656
|
-
queryClient.invalidateQueries({ queryKey:
|
|
3721
|
+
queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.allFacts(), refetchType: "all" });
|
|
3722
|
+
queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.allTags(), refetchType: "all" });
|
|
3657
3723
|
}
|
|
3658
3724
|
};
|
|
3659
3725
|
return {
|
|
@@ -3678,7 +3744,7 @@ function createStreamHandlers(ctx, params) {
|
|
|
3678
3744
|
}
|
|
3679
3745
|
function useStreamHandlers() {
|
|
3680
3746
|
const queryClient = reactQuery.useQueryClient();
|
|
3681
|
-
const session =
|
|
3747
|
+
const session = chunkL3NHETSD_cjs.useArbiSessionStore();
|
|
3682
3748
|
const config = chunkQQ7SCJRY_cjs.useArbiHost();
|
|
3683
3749
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
3684
3750
|
return React.useCallback(
|
|
@@ -3694,7 +3760,7 @@ function useStreamHandlers() {
|
|
|
3694
3760
|
return "";
|
|
3695
3761
|
}
|
|
3696
3762
|
},
|
|
3697
|
-
refreshDocuments: (ids) =>
|
|
3763
|
+
refreshDocuments: (ids) => chunkKFFH2JJM_cjs.refreshDocuments(queryClient, arbi, ids, config.documents)
|
|
3698
3764
|
},
|
|
3699
3765
|
params
|
|
3700
3766
|
),
|
|
@@ -3756,10 +3822,10 @@ function disconnectAttachedRun(conversationId, responseId) {
|
|
|
3756
3822
|
}
|
|
3757
3823
|
function cachedQuotaUsedUp(queryClient, workspaceId) {
|
|
3758
3824
|
if (!workspaceId) return null;
|
|
3759
|
-
const workspaces = queryClient.getQueryData(
|
|
3825
|
+
const workspaces = queryClient.getQueryData(chunkH4FGDXYB_cjs.arbiQueryKeys.workspaces());
|
|
3760
3826
|
const projectExtId = workspaces?.find((w) => w.external_id === workspaceId)?.project_ext_id;
|
|
3761
3827
|
if (!projectExtId) return null;
|
|
3762
|
-
const projects = queryClient.getQueryData(
|
|
3828
|
+
const projects = queryClient.getQueryData(chunkH4FGDXYB_cjs.arbiQueryKeys.projects());
|
|
3763
3829
|
const project = projects?.find((p) => p.external_id === projectExtId);
|
|
3764
3830
|
if (!project) return null;
|
|
3765
3831
|
const used = project.quotas?.ai_usage?.used ?? 0;
|
|
@@ -3771,7 +3837,7 @@ function cachedQuotaUsedUp(queryClient, workspaceId) {
|
|
|
3771
3837
|
// src/chat/useConversationActions.ts
|
|
3772
3838
|
var RECONCILE_TIMEOUT_MS = 5e3;
|
|
3773
3839
|
function draftAfterSend(queryClient, session, wasComment) {
|
|
3774
|
-
const shared =
|
|
3840
|
+
const shared = chunkZLHS3UKP_cjs.isConversationShared(queryClient, session.getState().conversationId);
|
|
3775
3841
|
return shared && !wasComment ? `@${ASSISTANT_MENTION_LABEL} ` : "";
|
|
3776
3842
|
}
|
|
3777
3843
|
function failQueuedContinuation(queryClient, session, streamState) {
|
|
@@ -3804,10 +3870,10 @@ function useConversationActions({
|
|
|
3804
3870
|
lastFailedMessage
|
|
3805
3871
|
}) {
|
|
3806
3872
|
const queryClient = reactQuery.useQueryClient();
|
|
3807
|
-
const session =
|
|
3873
|
+
const session = chunkL3NHETSD_cjs.useArbiSessionStore();
|
|
3808
3874
|
const currentConversationId = conversationKey2 === "new" ? null : conversationKey2;
|
|
3809
3875
|
const invalidateUserWorkspaces = React.useCallback(
|
|
3810
|
-
() => void queryClient.invalidateQueries({ queryKey:
|
|
3876
|
+
() => void queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workspaces() }),
|
|
3811
3877
|
[queryClient]
|
|
3812
3878
|
);
|
|
3813
3879
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
@@ -3826,10 +3892,10 @@ function useConversationActions({
|
|
|
3826
3892
|
(content) => {
|
|
3827
3893
|
const { conversationId: convId, newConversationAssistantMode } = session.getState();
|
|
3828
3894
|
const candidates = mentionCandidates();
|
|
3829
|
-
const mentioned =
|
|
3895
|
+
const mentioned = chunkQYUL4GQC_cjs.extractMentions(content, candidates);
|
|
3830
3896
|
const assistantMode = cachedAssistantMode(queryClient, convId, newConversationAssistantMode);
|
|
3831
3897
|
const isComment = isCommentToPeople(queryClient, convId, content, candidates);
|
|
3832
|
-
const mentions =
|
|
3898
|
+
const mentions = chunkQYUL4GQC_cjs.toMessageMentions(mentioned);
|
|
3833
3899
|
if (!isComment && assistantMode === "mentioned" && !mentions.some((m) => m.type === "assistant")) {
|
|
3834
3900
|
mentions.push({ type: "assistant" });
|
|
3835
3901
|
}
|
|
@@ -3857,9 +3923,10 @@ function useConversationActions({
|
|
|
3857
3923
|
const conversationId = saved.conversation_ext_id;
|
|
3858
3924
|
const nowIso = (/* @__PURE__ */ new Date()).toISOString();
|
|
3859
3925
|
if (!convId) {
|
|
3926
|
+
const bindTo = session.getState().newChatDocumentId;
|
|
3860
3927
|
session.moveConversation("new", conversationId);
|
|
3861
|
-
|
|
3862
|
-
|
|
3928
|
+
if (bindTo) session.setNewChatDocumentId(null);
|
|
3929
|
+
chunkZLHS3UKP_cjs.patchConversationList(queryClient, session.getState().workspaceId, (old) => [
|
|
3863
3930
|
{
|
|
3864
3931
|
external_id: conversationId,
|
|
3865
3932
|
title: content.slice(0, 40),
|
|
@@ -3875,16 +3942,20 @@ function useConversationActions({
|
|
|
3875
3942
|
},
|
|
3876
3943
|
...old
|
|
3877
3944
|
]);
|
|
3945
|
+
if (bindTo)
|
|
3946
|
+
bindThreadDocument(arbi, queryClient, conversationId, bindTo).catch(
|
|
3947
|
+
() => chunkVAMPYLQ4_cjs.notify.error("Could not attach the document to this thread")
|
|
3948
|
+
);
|
|
3878
3949
|
invalidateUserWorkspaces();
|
|
3879
3950
|
} else {
|
|
3880
|
-
|
|
3951
|
+
chunkZLHS3UKP_cjs.patchConversation(queryClient, conversationId, (c) => ({
|
|
3881
3952
|
...c,
|
|
3882
3953
|
message_count: c.message_count + 1,
|
|
3883
3954
|
updated_at: nowIso
|
|
3884
3955
|
}));
|
|
3885
3956
|
}
|
|
3886
3957
|
if (mentions.some((m) => m.type === "user")) {
|
|
3887
|
-
await
|
|
3958
|
+
await chunkZLHS3UKP_cjs.invalidateConversationLists(queryClient);
|
|
3888
3959
|
}
|
|
3889
3960
|
await queryClient.invalidateQueries({ queryKey: getThreadsQueryKey(conversationId) });
|
|
3890
3961
|
session.setCursor(saved.external_id);
|
|
@@ -3892,7 +3963,7 @@ function useConversationActions({
|
|
|
3892
3963
|
chunkVAMPYLQ4_cjs.notify.error(
|
|
3893
3964
|
error instanceof browser.ArbiApiError && error.detail || "Failed to post the message"
|
|
3894
3965
|
);
|
|
3895
|
-
if (!
|
|
3966
|
+
if (!chunkL3NHETSD_cjs.selectDraft(session.getState())) session.setDraft(content);
|
|
3896
3967
|
}
|
|
3897
3968
|
},
|
|
3898
3969
|
[arbi, session, queryClient, invalidateUserWorkspaces]
|
|
@@ -3921,13 +3992,13 @@ function useConversationActions({
|
|
|
3921
3992
|
const documentIds = (state.conversationDocuments[convKey] || []).map((doc) => doc.docId);
|
|
3922
3993
|
const factIds = [...state.conversationFacts[convKey] || []];
|
|
3923
3994
|
const newConfigId = state.chatModel;
|
|
3924
|
-
const cachedSettings = queryClient.getQueriesData({ queryKey:
|
|
3995
|
+
const cachedSettings = queryClient.getQueriesData({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings() }).map(([, data]) => data).find((data) => data?.last_config);
|
|
3925
3996
|
const lastConfigId = cachedSettings?.last_config;
|
|
3926
3997
|
const resolvedConfigId = newConfigId || (agentExtId ? void 0 : lastConfigId);
|
|
3927
3998
|
const isPaMode = !agentExtId && state.paMode;
|
|
3928
|
-
const
|
|
3929
|
-
const activeArtifactExtId = isPaMode ? null :
|
|
3930
|
-
boundDocumentId:
|
|
3999
|
+
const threadDocumentId = boundDocumentOf(queryClient, state);
|
|
4000
|
+
const activeArtifactExtId = isPaMode ? null : chunkQYUL4GQC_cjs.takeDocumentForTurn({
|
|
4001
|
+
boundDocumentId: threadDocumentId,
|
|
3931
4002
|
conversationId: convId,
|
|
3932
4003
|
workspaceId: selectedWorkspaceId
|
|
3933
4004
|
});
|
|
@@ -3943,6 +4014,8 @@ function useConversationActions({
|
|
|
3943
4014
|
tools: toolsOverride,
|
|
3944
4015
|
personalAgent: isPaMode,
|
|
3945
4016
|
activeArtifactExtId,
|
|
4017
|
+
// A new chat about a document is bound by its first turn, on the server (every device).
|
|
4018
|
+
...!convId && threadDocumentId ? { bindDocumentId: threadDocumentId } : {},
|
|
3946
4019
|
previousResponseId: parentId,
|
|
3947
4020
|
agentId: agentExtId,
|
|
3948
4021
|
model: resolvedConfigId,
|
|
@@ -3955,7 +4028,7 @@ function useConversationActions({
|
|
|
3955
4028
|
session.setConversationGenerating(convKey, true, abortController);
|
|
3956
4029
|
}
|
|
3957
4030
|
if (!queuedContinuation) {
|
|
3958
|
-
|
|
4031
|
+
chunkZLHS3UKP_cjs.patchConversation(queryClient, convKey, { last_message_status: "in_progress" });
|
|
3959
4032
|
}
|
|
3960
4033
|
const streamState = {
|
|
3961
4034
|
conversationId: convKey,
|
|
@@ -3982,7 +4055,7 @@ function useConversationActions({
|
|
|
3982
4055
|
// Set when a create_fact / label_facts tool runs this turn, so the Facts
|
|
3983
4056
|
// table + label vocabulary refresh on completion (see handleComplete).
|
|
3984
4057
|
factsTouched: false,
|
|
3985
|
-
threadDocumentId
|
|
4058
|
+
threadDocumentId,
|
|
3986
4059
|
// Set by the handlers: the server stored the question / reported its own failure.
|
|
3987
4060
|
userMessageId: null,
|
|
3988
4061
|
serverError: null
|
|
@@ -3993,7 +4066,7 @@ function useConversationActions({
|
|
|
3993
4066
|
handlers.onUserMessage = (message) => {
|
|
3994
4067
|
if (message.conversation_ext_id) {
|
|
3995
4068
|
session.setAgentChatOwner(message.conversation_ext_id, agentExtId);
|
|
3996
|
-
queryClient.invalidateQueries({ queryKey:
|
|
4069
|
+
queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.agentChats(agentExtId) });
|
|
3997
4070
|
}
|
|
3998
4071
|
onUserMessage(message);
|
|
3999
4072
|
};
|
|
@@ -4043,7 +4116,7 @@ function useConversationActions({
|
|
|
4043
4116
|
void queryClient.invalidateQueries({
|
|
4044
4117
|
queryKey: getThreadsQueryKey(streamState.conversationId)
|
|
4045
4118
|
});
|
|
4046
|
-
void
|
|
4119
|
+
void chunkZLHS3UKP_cjs.invalidateConversationLists(queryClient);
|
|
4047
4120
|
}
|
|
4048
4121
|
return;
|
|
4049
4122
|
}
|
|
@@ -4051,7 +4124,7 @@ function useConversationActions({
|
|
|
4051
4124
|
if (ownsGeneration) {
|
|
4052
4125
|
session.setConversationGenerating(streamState.conversationId, false, null);
|
|
4053
4126
|
}
|
|
4054
|
-
queryClient.invalidateQueries({ queryKey:
|
|
4127
|
+
queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.userUsageToday() });
|
|
4055
4128
|
if (streamState.deferredInterjections.length > 0) {
|
|
4056
4129
|
const followUp = streamState.deferredInterjections.join("\n\n");
|
|
4057
4130
|
const threadParent = streamState.assistantId;
|
|
@@ -4062,7 +4135,7 @@ function useConversationActions({
|
|
|
4062
4135
|
}
|
|
4063
4136
|
if (ownsGeneration) {
|
|
4064
4137
|
const lastStatus = streamState.serverError ? "failed" : "completed";
|
|
4065
|
-
|
|
4138
|
+
chunkZLHS3UKP_cjs.patchConversation(queryClient, streamState.conversationId, {
|
|
4066
4139
|
last_message_status: lastStatus
|
|
4067
4140
|
});
|
|
4068
4141
|
}
|
|
@@ -4094,7 +4167,7 @@ function useConversationActions({
|
|
|
4094
4167
|
});
|
|
4095
4168
|
if (ownsActiveGeneration()) {
|
|
4096
4169
|
session.setConversationGenerating(streamState.conversationId, false, null);
|
|
4097
|
-
|
|
4170
|
+
chunkZLHS3UKP_cjs.patchConversation(queryClient, streamState.conversationId, {
|
|
4098
4171
|
last_message_status: "completed"
|
|
4099
4172
|
});
|
|
4100
4173
|
}
|
|
@@ -4117,10 +4190,10 @@ function useConversationActions({
|
|
|
4117
4190
|
if (ownsActiveGeneration()) {
|
|
4118
4191
|
session.setConversationGenerating(streamState.conversationId, false, null);
|
|
4119
4192
|
}
|
|
4120
|
-
void
|
|
4193
|
+
void chunkZLHS3UKP_cjs.invalidateConversationLists(queryClient);
|
|
4121
4194
|
return;
|
|
4122
4195
|
}
|
|
4123
|
-
|
|
4196
|
+
chunkZLHS3UKP_cjs.patchConversation(queryClient, streamState.conversationId, {
|
|
4124
4197
|
last_message_status: "failed"
|
|
4125
4198
|
});
|
|
4126
4199
|
const quota = browser.quotaFromStreamError(error) ?? cachedQuotaUsedUp(queryClient, session.getState().workspaceId);
|
|
@@ -4155,8 +4228,8 @@ function useConversationActions({
|
|
|
4155
4228
|
);
|
|
4156
4229
|
const handleSendMessage = React.useCallback(
|
|
4157
4230
|
async (options) => {
|
|
4158
|
-
const currentMessage =
|
|
4159
|
-
if (!selectedWorkspaceId || !
|
|
4231
|
+
const currentMessage = chunkL3NHETSD_cjs.selectDraft(session.getState()).trim();
|
|
4232
|
+
if (!selectedWorkspaceId || !chunkQYUL4GQC_cjs.hasMessageBody(currentMessage)) return;
|
|
4160
4233
|
session.setSuggestedQuery(null);
|
|
4161
4234
|
if (refuseChatWhenOffline()) return;
|
|
4162
4235
|
if (isGenerating) {
|
|
@@ -4266,7 +4339,7 @@ function useConversationActions({
|
|
|
4266
4339
|
if (!replyTo && currentConversationId) {
|
|
4267
4340
|
try {
|
|
4268
4341
|
await arbi.conversations.delete(currentConversationId);
|
|
4269
|
-
|
|
4342
|
+
chunkZLHS3UKP_cjs.removeConversationFromLists(queryClient, currentConversationId);
|
|
4270
4343
|
session.startNewConversation();
|
|
4271
4344
|
} catch (error) {
|
|
4272
4345
|
console.error("Failed to delete conversation with orphaned first message:", error);
|
|
@@ -4334,16 +4407,16 @@ function selectThread(session, leafId) {
|
|
|
4334
4407
|
if (session.getState().cursor !== leafId) session.setCursor(leafId);
|
|
4335
4408
|
}
|
|
4336
4409
|
function useConversationData() {
|
|
4337
|
-
const session =
|
|
4338
|
-
const selectedWorkspaceId =
|
|
4339
|
-
const currentConversationId =
|
|
4340
|
-
const parentMessageId =
|
|
4341
|
-
const deepLinkMessageId =
|
|
4410
|
+
const session = chunkL3NHETSD_cjs.useArbiSessionStore();
|
|
4411
|
+
const selectedWorkspaceId = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
4412
|
+
const currentConversationId = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.conversationId);
|
|
4413
|
+
const parentMessageId = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.cursor);
|
|
4414
|
+
const deepLinkMessageId = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.deepLinkMessageId);
|
|
4342
4415
|
const {
|
|
4343
4416
|
data: threadsData,
|
|
4344
4417
|
isLoading: threadsLoading,
|
|
4345
4418
|
error: threadsError
|
|
4346
|
-
} =
|
|
4419
|
+
} = chunkL3NHETSD_cjs.useConversationThreads(currentConversationId || void 0);
|
|
4347
4420
|
const processedDeepLinkRef = React.useRef(null);
|
|
4348
4421
|
const prevConversationIdRef = React.useRef(null);
|
|
4349
4422
|
React.useEffect(() => {
|
|
@@ -4536,7 +4609,7 @@ function useBranchNavigation(threads, parentMessageId, messageHistory, setParent
|
|
|
4536
4609
|
var RECONNECT_DELAY_MS = 2e3;
|
|
4537
4610
|
var MAX_RECONNECTS = 5;
|
|
4538
4611
|
function useConnectRunStream(conversationId, messages) {
|
|
4539
|
-
const generation =
|
|
4612
|
+
const generation = chunkL3NHETSD_cjs.useArbiSessionState(
|
|
4540
4613
|
(s) => conversationId ? s.generating[conversationId] : void 0
|
|
4541
4614
|
);
|
|
4542
4615
|
const responseId = conversationId ? browser.getRunToAttach(generation, messages) : null;
|
|
@@ -4544,7 +4617,7 @@ function useConnectRunStream(conversationId, messages) {
|
|
|
4544
4617
|
}
|
|
4545
4618
|
function useAttachRun(conversationId, responseId) {
|
|
4546
4619
|
const queryClient = reactQuery.useQueryClient();
|
|
4547
|
-
const session =
|
|
4620
|
+
const session = chunkL3NHETSD_cjs.useArbiSessionStore();
|
|
4548
4621
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
4549
4622
|
const arbiRef = React.useRef(arbi);
|
|
4550
4623
|
arbiRef.current = arbi;
|
|
@@ -4742,14 +4815,14 @@ function useConversation(options = {}) {
|
|
|
4742
4815
|
const { agentId, model, titleLength = 48 } = options;
|
|
4743
4816
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
4744
4817
|
const queryClient = reactQuery.useQueryClient();
|
|
4745
|
-
const session =
|
|
4746
|
-
const sessionWorkspaceId =
|
|
4818
|
+
const session = chunkL3NHETSD_cjs.useArbiSessionStore();
|
|
4819
|
+
const sessionWorkspaceId = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
4747
4820
|
const workspaceId = options.workspaceId ?? sessionWorkspaceId ?? void 0;
|
|
4748
|
-
const conversationId =
|
|
4821
|
+
const conversationId = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.conversationId);
|
|
4749
4822
|
const conversationKey2 = conversationId ?? NEW;
|
|
4750
|
-
const generation =
|
|
4751
|
-
const newConversationMode =
|
|
4752
|
-
const queuedMessages2 =
|
|
4823
|
+
const generation = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.generating[conversationKey2]);
|
|
4824
|
+
const newConversationMode = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.newConversationAssistantMode);
|
|
4825
|
+
const queuedMessages2 = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.queuedMessages);
|
|
4753
4826
|
const isRunning = !!generation?.isGenerating;
|
|
4754
4827
|
React.useEffect(() => {
|
|
4755
4828
|
if (workspaceId && session.getState().workspaceId !== workspaceId)
|
|
@@ -4761,8 +4834,8 @@ function useConversation(options = {}) {
|
|
|
4761
4834
|
React.useEffect(() => {
|
|
4762
4835
|
if (agentId && workspaceId && !conversationId) session.setNewAgentChat({ agentId, workspaceId });
|
|
4763
4836
|
}, [session, agentId, workspaceId, conversationId]);
|
|
4764
|
-
const { data: docs = [], isLoading: isLoadingDocuments } =
|
|
4765
|
-
const ordinaryHistory =
|
|
4837
|
+
const { data: docs = [], isLoading: isLoadingDocuments } = chunkKFFH2JJM_cjs.useDocuments(workspaceId);
|
|
4838
|
+
const ordinaryHistory = chunkL3NHETSD_cjs.useConversations(workspaceId, { enabled: !agentId, live: true });
|
|
4766
4839
|
const agentHistory = useAgentChats(agentId);
|
|
4767
4840
|
const stored = React.useMemo(
|
|
4768
4841
|
() => agentId ? (agentHistory.data ?? []).filter((chat) => chat.workspace_ext_id === workspaceId).map((chat) => ({
|
|
@@ -4988,7 +5061,7 @@ function useConversation(options = {}) {
|
|
|
4988
5061
|
void (async () => {
|
|
4989
5062
|
try {
|
|
4990
5063
|
await arbi.conversations.delete(id);
|
|
4991
|
-
|
|
5064
|
+
chunkZLHS3UKP_cjs.removeConversationFromLists(queryClient, id);
|
|
4992
5065
|
if (session.getState().conversationId === id) session.startNewConversation();
|
|
4993
5066
|
} catch (e) {
|
|
4994
5067
|
setHistoryError(messageOf(e, "The conversation could not be deleted."));
|
|
@@ -5023,7 +5096,7 @@ function useConversation(options = {}) {
|
|
|
5023
5096
|
} else
|
|
5024
5097
|
uploaded.push(...(await arbi.documents.uploadFile(file, file.name)).doc_ext_ids ?? []);
|
|
5025
5098
|
}
|
|
5026
|
-
if (uploaded.length) await
|
|
5099
|
+
if (uploaded.length) await chunkKFFH2JJM_cjs.refreshDocuments(queryClient, arbi, uploaded);
|
|
5027
5100
|
} catch (e) {
|
|
5028
5101
|
setUploadError(messageOf(e, "The upload failed."));
|
|
5029
5102
|
} finally {
|
|
@@ -5072,10 +5145,10 @@ function ConversationScope({
|
|
|
5072
5145
|
conversationId,
|
|
5073
5146
|
children
|
|
5074
5147
|
}) {
|
|
5075
|
-
const outerWorkspaceId =
|
|
5148
|
+
const outerWorkspaceId = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
5076
5149
|
const scopeWorkspaceId = workspaceId ?? outerWorkspaceId;
|
|
5077
5150
|
const [session] = React.useState(
|
|
5078
|
-
() =>
|
|
5151
|
+
() => chunkL3NHETSD_cjs.createArbiSessionStore({
|
|
5079
5152
|
workspaceId: scopeWorkspaceId,
|
|
5080
5153
|
conversationId: conversationId ?? null
|
|
5081
5154
|
})
|
|
@@ -5096,7 +5169,11 @@ async function applyConversationEvent(queryClient, event) {
|
|
|
5096
5169
|
if (e.type === "response_complete") return applyRunEnded(queryClient, e);
|
|
5097
5170
|
if (e.type === "conversation.message_posted") return applyMessagePosted(queryClient, e);
|
|
5098
5171
|
if (e.type === "conversation.title_updated" && e.conversation_ext_id) {
|
|
5099
|
-
|
|
5172
|
+
chunkZLHS3UKP_cjs.patchConversation(queryClient, e.conversation_ext_id, { title: e.title ?? null });
|
|
5173
|
+
}
|
|
5174
|
+
if (e.type === "conversation.document_binding_changed" && e.conversation_ext_id) {
|
|
5175
|
+
void queryClient.invalidateQueries({ queryKey: getThreadsQueryKey(e.conversation_ext_id) });
|
|
5176
|
+
void chunkZLHS3UKP_cjs.invalidateConversationLists(queryClient);
|
|
5100
5177
|
}
|
|
5101
5178
|
}
|
|
5102
5179
|
function applyRunEnded(queryClient, e) {
|
|
@@ -5113,18 +5190,18 @@ function applyRunEnded(queryClient, e) {
|
|
|
5113
5190
|
);
|
|
5114
5191
|
}
|
|
5115
5192
|
if (failed && e.response_id) markMessageAsFailed(queryClient, conversationId, e.response_id);
|
|
5116
|
-
|
|
5193
|
+
chunkZLHS3UKP_cjs.patchConversation(queryClient, conversationId, {
|
|
5117
5194
|
last_message_status: failed ? "failed" : "completed"
|
|
5118
5195
|
});
|
|
5119
|
-
void
|
|
5196
|
+
void chunkZLHS3UKP_cjs.invalidateConversationLists(queryClient);
|
|
5120
5197
|
void queryClient.invalidateQueries({ queryKey: getThreadsQueryKey(conversationId) });
|
|
5121
|
-
if (!failed) void queryClient.invalidateQueries({ queryKey:
|
|
5198
|
+
if (!failed) void queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.userUsageToday() });
|
|
5122
5199
|
}
|
|
5123
5200
|
async function applyMessagePosted(queryClient, e) {
|
|
5124
5201
|
if (!e.conversation_ext_id) return;
|
|
5125
5202
|
const queryKey = getThreadsQueryKey(e.conversation_ext_id);
|
|
5126
5203
|
const refreshed = queryClient.invalidateQueries({ queryKey });
|
|
5127
|
-
void
|
|
5204
|
+
void chunkZLHS3UKP_cjs.invalidateConversationLists(queryClient);
|
|
5128
5205
|
await refreshed;
|
|
5129
5206
|
const cached = queryClient.getQueryData(
|
|
5130
5207
|
queryKey
|
|
@@ -5133,24 +5210,55 @@ async function applyMessagePosted(queryClient, e) {
|
|
|
5133
5210
|
await queryClient.refetchQueries({ queryKey, type: "active" });
|
|
5134
5211
|
}
|
|
5135
5212
|
}
|
|
5213
|
+
var migratedWorkspaces = /* @__PURE__ */ new Set();
|
|
5136
5214
|
function useThreadDocument() {
|
|
5137
|
-
const
|
|
5138
|
-
const
|
|
5139
|
-
const
|
|
5140
|
-
const
|
|
5141
|
-
|
|
5142
|
-
|
|
5215
|
+
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
5216
|
+
const queryClient = reactQuery.useQueryClient();
|
|
5217
|
+
const session = chunkL3NHETSD_cjs.useArbiSessionStore();
|
|
5218
|
+
const conversationId = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.conversationId);
|
|
5219
|
+
const workspaceId = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
5220
|
+
const newChatDocumentId = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.newChatDocumentId);
|
|
5221
|
+
const subscribe = React.useCallback(
|
|
5222
|
+
(onChange) => queryClient.getQueryCache().subscribe(onChange),
|
|
5223
|
+
[queryClient]
|
|
5224
|
+
);
|
|
5225
|
+
const savedDocumentId = React.useSyncExternalStore(
|
|
5226
|
+
subscribe,
|
|
5227
|
+
() => threadBinding(queryClient, conversationId).documentId,
|
|
5143
5228
|
() => null
|
|
5144
5229
|
);
|
|
5230
|
+
const unavailable = React.useSyncExternalStore(
|
|
5231
|
+
subscribe,
|
|
5232
|
+
() => threadBinding(queryClient, conversationId).unavailable,
|
|
5233
|
+
() => false
|
|
5234
|
+
);
|
|
5235
|
+
const { data: conversations, isPlaceholderData } = chunkL3NHETSD_cjs.useConversations(workspaceId ?? void 0);
|
|
5236
|
+
React.useEffect(() => {
|
|
5237
|
+
if (!workspaceId || !conversations || isPlaceholderData || migratedWorkspaces.has(workspaceId))
|
|
5238
|
+
return;
|
|
5239
|
+
migratedWorkspaces.add(workspaceId);
|
|
5240
|
+
void migrateLegacyThreadDocuments(arbi, queryClient, conversations);
|
|
5241
|
+
}, [arbi, queryClient, workspaceId, conversations, isPlaceholderData]);
|
|
5145
5242
|
const bind = React.useCallback(
|
|
5146
5243
|
(documentId) => {
|
|
5147
5244
|
const { conversationId: open } = session.getState();
|
|
5148
|
-
if (open)
|
|
5149
|
-
|
|
5245
|
+
if (!open) {
|
|
5246
|
+
session.setNewChatDocumentId(documentId);
|
|
5247
|
+
return;
|
|
5248
|
+
}
|
|
5249
|
+
bindThreadDocument(arbi, queryClient, open, documentId).catch(
|
|
5250
|
+
() => chunkVAMPYLQ4_cjs.notify.error(
|
|
5251
|
+
documentId ? "Could not attach the document to this thread" : "Could not unbind the document"
|
|
5252
|
+
)
|
|
5253
|
+
);
|
|
5150
5254
|
},
|
|
5151
|
-
[session]
|
|
5255
|
+
[arbi, queryClient, session]
|
|
5152
5256
|
);
|
|
5153
|
-
return {
|
|
5257
|
+
return {
|
|
5258
|
+
documentId: conversationId ? savedDocumentId : newChatDocumentId,
|
|
5259
|
+
unavailable: conversationId ? unavailable : false,
|
|
5260
|
+
bind
|
|
5261
|
+
};
|
|
5154
5262
|
}
|
|
5155
5263
|
|
|
5156
5264
|
// src/chat/config-model.ts
|
|
@@ -5174,9 +5282,9 @@ function useConversationTurn({
|
|
|
5174
5282
|
selectedWorkspaceId,
|
|
5175
5283
|
parentMessageId
|
|
5176
5284
|
}) {
|
|
5177
|
-
const currentConversationId =
|
|
5285
|
+
const currentConversationId = chunkL3NHETSD_cjs.useArbiSessionState((state) => state.conversationId);
|
|
5178
5286
|
const conversationKey2 = currentConversationId || "new";
|
|
5179
|
-
const generationState =
|
|
5287
|
+
const generationState = chunkL3NHETSD_cjs.useArbiSessionState((state) => state.generating[conversationKey2]);
|
|
5180
5288
|
const isGenerating = generationState?.isGenerating ?? false;
|
|
5181
5289
|
const generationError = generationState?.error ?? null;
|
|
5182
5290
|
const lastFailedMessage = generationState?.lastFailedMessage ?? null;
|
|
@@ -5197,12 +5305,12 @@ function useConversationTurn({
|
|
|
5197
5305
|
}
|
|
5198
5306
|
var EMPTY_DOCS = [];
|
|
5199
5307
|
function useConversationDocuments() {
|
|
5200
|
-
const currentConversationId =
|
|
5308
|
+
const currentConversationId = chunkL3NHETSD_cjs.useArbiSessionState((state) => state.conversationId);
|
|
5201
5309
|
const convKey = currentConversationId || "new";
|
|
5202
|
-
const inConversationDocuments =
|
|
5310
|
+
const inConversationDocuments = chunkL3NHETSD_cjs.useArbiSessionState(
|
|
5203
5311
|
(state) => state.conversationDocuments[convKey] || EMPTY_DOCS
|
|
5204
5312
|
);
|
|
5205
|
-
const { data: documents2 = [], isLoading: isLoadingDocs } =
|
|
5313
|
+
const { data: documents2 = [], isLoading: isLoadingDocs } = chunkKFFH2JJM_cjs.useDocuments();
|
|
5206
5314
|
const conversationDocuments = React__default.default.useMemo(() => {
|
|
5207
5315
|
if (inConversationDocuments.length === 0) {
|
|
5208
5316
|
return [];
|
|
@@ -5234,8 +5342,8 @@ function useDocumentAutoAdd({
|
|
|
5234
5342
|
allWorkspaceDocuments,
|
|
5235
5343
|
hasContent = false
|
|
5236
5344
|
}) {
|
|
5237
|
-
const session =
|
|
5238
|
-
const currentConversationId =
|
|
5345
|
+
const session = chunkL3NHETSD_cjs.useArbiSessionStore();
|
|
5346
|
+
const currentConversationId = chunkL3NHETSD_cjs.useArbiSessionState((state) => state.conversationId);
|
|
5239
5347
|
const convKey = currentConversationId || "new";
|
|
5240
5348
|
const observedRef = React.useRef(null);
|
|
5241
5349
|
const offeredRef = React.useRef(/* @__PURE__ */ new Set());
|
|
@@ -5296,12 +5404,12 @@ function useDocumentAutoAdd({
|
|
|
5296
5404
|
}, [selectedWorkspaceId, convKey, allWorkspaceDocuments, hasContent, session]);
|
|
5297
5405
|
}
|
|
5298
5406
|
function useAutoSendDraft(sendDraft, ready = true) {
|
|
5299
|
-
const session =
|
|
5300
|
-
const autoSendDraft =
|
|
5407
|
+
const session = chunkL3NHETSD_cjs.useArbiSessionStore();
|
|
5408
|
+
const autoSendDraft = chunkL3NHETSD_cjs.useArbiSessionState((state) => state.autoSendDraft);
|
|
5301
5409
|
React.useEffect(() => {
|
|
5302
5410
|
if (!autoSendDraft || !ready) return;
|
|
5303
5411
|
session.setAutoSendDraft(false);
|
|
5304
|
-
if (
|
|
5412
|
+
if (chunkL3NHETSD_cjs.selectDraft(session.getState()).trim()) {
|
|
5305
5413
|
sendDraft();
|
|
5306
5414
|
}
|
|
5307
5415
|
}, [autoSendDraft, ready, sendDraft, session]);
|
|
@@ -5387,7 +5495,7 @@ function useAnswerAgentQuestion() {
|
|
|
5387
5495
|
);
|
|
5388
5496
|
}
|
|
5389
5497
|
function useAskAgain(options) {
|
|
5390
|
-
const session =
|
|
5498
|
+
const session = chunkL3NHETSD_cjs.useArbiSessionStore();
|
|
5391
5499
|
const optionsRef = React.useRef(options);
|
|
5392
5500
|
React.useEffect(() => {
|
|
5393
5501
|
optionsRef.current = options;
|
|
@@ -5479,11 +5587,11 @@ function useMessageTimer({
|
|
|
5479
5587
|
isUser,
|
|
5480
5588
|
isGenerating
|
|
5481
5589
|
}) {
|
|
5482
|
-
const session =
|
|
5590
|
+
const session = chunkL3NHETSD_cjs.useArbiSessionStore();
|
|
5483
5591
|
const convId = conversationId || "new";
|
|
5484
5592
|
const timerKey = `${convId}:${messageId}`;
|
|
5485
|
-
const generationStartTime =
|
|
5486
|
-
const storedElapsed =
|
|
5593
|
+
const generationStartTime = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.generating[convId]?.startTime ?? null);
|
|
5594
|
+
const storedElapsed = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.messageTimers[timerKey]?.elapsedTime);
|
|
5487
5595
|
const [elapsedTime, setElapsedTime] = React.useState(0);
|
|
5488
5596
|
const lastElapsedRef = React.useRef(0);
|
|
5489
5597
|
React.useEffect(() => {
|
|
@@ -5508,7 +5616,7 @@ function useMessageTimer({
|
|
|
5508
5616
|
}
|
|
5509
5617
|
function useAgentRunControl(assistantMessageExtId) {
|
|
5510
5618
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
5511
|
-
const session =
|
|
5619
|
+
const session = chunkL3NHETSD_cjs.useArbiSessionStore();
|
|
5512
5620
|
const send = React.useCallback(
|
|
5513
5621
|
(command) => {
|
|
5514
5622
|
if (!assistantMessageExtId) return;
|
|
@@ -5703,7 +5811,7 @@ function ArbiWebSocketProvider({ enabled = true, children }) {
|
|
|
5703
5811
|
if (client.isMessageType(msg, "task_update")) applyTaskUpdate(msg);
|
|
5704
5812
|
else if (client.isMessageType(msg, "presence_update")) applyPresence(msg);
|
|
5705
5813
|
else if (client.isMessageType(msg, "batch_complete") && msg.batch_type === "entity_extract")
|
|
5706
|
-
|
|
5814
|
+
chunkKFFH2JJM_cjs.finishEntityExtraction(msg.doc_ext_ids ?? []);
|
|
5707
5815
|
for (const fn of subscribersRef.current) {
|
|
5708
5816
|
try {
|
|
5709
5817
|
fn(msg);
|
|
@@ -5745,16 +5853,16 @@ function ArbiWebSocketProvider({ enabled = true, children }) {
|
|
|
5745
5853
|
reset();
|
|
5746
5854
|
};
|
|
5747
5855
|
}, [enabled, arbi, setStatus, applyTaskUpdate, applyPresence, reset]);
|
|
5748
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5856
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkZLHS3UKP_cjs.ArbiWsContext.Provider, { value: context, children });
|
|
5749
5857
|
}
|
|
5750
5858
|
function useArbiWebSocket(onMessage) {
|
|
5751
|
-
const { subscribe } =
|
|
5859
|
+
const { subscribe } = chunkZLHS3UKP_cjs.useArbiWsContext();
|
|
5752
5860
|
const handlerRef = React.useRef(onMessage);
|
|
5753
5861
|
handlerRef.current = onMessage;
|
|
5754
5862
|
React.useEffect(() => subscribe((msg) => handlerRef.current(msg)), [subscribe]);
|
|
5755
5863
|
}
|
|
5756
5864
|
function useArbiWsMessage(type, handler) {
|
|
5757
|
-
const { subscribe } =
|
|
5865
|
+
const { subscribe } = chunkZLHS3UKP_cjs.useArbiWsContext();
|
|
5758
5866
|
const handlerRef = React.useRef(handler);
|
|
5759
5867
|
handlerRef.current = handler;
|
|
5760
5868
|
React.useEffect(
|
|
@@ -5787,24 +5895,24 @@ function useArbiDocumentSync(workspaceId) {
|
|
|
5787
5895
|
if (!workspaceId) return;
|
|
5788
5896
|
if (client.isMessageType(msg, "batch_complete")) {
|
|
5789
5897
|
if (msg.workspace_ext_id !== workspaceId) return;
|
|
5790
|
-
if (msg.doc_ext_ids?.length) void
|
|
5791
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
5898
|
+
if (msg.doc_ext_ids?.length) void chunkKFFH2JJM_cjs.refreshDocuments(queryClient, arbi, msg.doc_ext_ids);
|
|
5899
|
+
void queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.tags(workspaceId) });
|
|
5792
5900
|
return;
|
|
5793
5901
|
}
|
|
5794
5902
|
if (client.isMessageType(msg, "task_update")) {
|
|
5795
5903
|
if (msg.workspace_ext_id !== workspaceId) return;
|
|
5796
|
-
if (
|
|
5797
|
-
void
|
|
5904
|
+
if (chunkKFFH2JJM_cjs.FINISHED_DOCUMENT_STATUSES.has(msg.status))
|
|
5905
|
+
void chunkKFFH2JJM_cjs.refreshDocuments(queryClient, arbi, [msg.doc_ext_id]);
|
|
5798
5906
|
}
|
|
5799
5907
|
});
|
|
5800
5908
|
}
|
|
5801
5909
|
var WORKSPACE_SCOPED_PACKAGE_KEYS = [
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
5910
|
+
chunkH4FGDXYB_cjs.arbiQueryKeys.allDocuments(),
|
|
5911
|
+
chunkH4FGDXYB_cjs.arbiQueryKeys.allSimilarDocuments(),
|
|
5912
|
+
chunkH4FGDXYB_cjs.arbiQueryKeys.allWorkspaceUsers(),
|
|
5913
|
+
chunkH4FGDXYB_cjs.arbiQueryKeys.documentSignatures(),
|
|
5914
|
+
chunkH4FGDXYB_cjs.arbiQueryKeys.signatureRequests(),
|
|
5915
|
+
chunkH4FGDXYB_cjs.arbiQueryKeys.databases()
|
|
5808
5916
|
];
|
|
5809
5917
|
function drainWorkspaceQueries(queryClient) {
|
|
5810
5918
|
for (const queryKey of WORKSPACE_SCOPED_PACKAGE_KEYS) {
|
|
@@ -5814,8 +5922,8 @@ function drainWorkspaceQueries(queryClient) {
|
|
|
5814
5922
|
}
|
|
5815
5923
|
function seedOpenedWorkspace(queryClient, workspaceId, opened) {
|
|
5816
5924
|
if (opened.conversations)
|
|
5817
|
-
queryClient.setQueryData(
|
|
5818
|
-
if (opened.tags) queryClient.setQueryData(
|
|
5925
|
+
queryClient.setQueryData(chunkH4FGDXYB_cjs.arbiQueryKeys.conversations(workspaceId), opened.conversations);
|
|
5926
|
+
if (opened.tags) queryClient.setQueryData(chunkH4FGDXYB_cjs.arbiQueryKeys.tags(workspaceId), opened.tags);
|
|
5819
5927
|
}
|
|
5820
5928
|
function isWorkspaceArchivedError(error) {
|
|
5821
5929
|
const body = error?.apiError ?? error;
|
|
@@ -5823,7 +5931,7 @@ function isWorkspaceArchivedError(error) {
|
|
|
5823
5931
|
return !!detail && typeof detail === "object" && detail.code === "workspace_archived";
|
|
5824
5932
|
}
|
|
5825
5933
|
var archivedWorkspaceMessage = (name) => `"${name}" is archived. Its owner can unarchive it from the workspace list.`;
|
|
5826
|
-
var listedWorkspace = (queryClient, workspaceId) => queryClient.getQueryData(
|
|
5934
|
+
var listedWorkspace = (queryClient, workspaceId) => queryClient.getQueryData(chunkH4FGDXYB_cjs.arbiQueryKeys.workspaces())?.find((w) => w.external_id === workspaceId);
|
|
5827
5935
|
var switchEpoch = 0;
|
|
5828
5936
|
var switching = /* @__PURE__ */ new Set();
|
|
5829
5937
|
var SIGNED_IN_WAIT_MS = 1e4;
|
|
@@ -5890,7 +5998,7 @@ function createWorkspaceSwitch({
|
|
|
5890
5998
|
session.setWorkspaceStatus("closed");
|
|
5891
5999
|
if (isWorkspaceArchivedError(error)) {
|
|
5892
6000
|
chunkVAMPYLQ4_cjs.notify.info(archivedWorkspaceMessage(name));
|
|
5893
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
6001
|
+
void queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workspaces() });
|
|
5894
6002
|
} else {
|
|
5895
6003
|
chunkVAMPYLQ4_cjs.notify.error(`Failed to open "${name}" ${noun}`);
|
|
5896
6004
|
}
|
|
@@ -5938,7 +6046,7 @@ function useSwitchWorkspace() {
|
|
|
5938
6046
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
5939
6047
|
const arbiRef = React.useRef(arbi);
|
|
5940
6048
|
arbiRef.current = arbi;
|
|
5941
|
-
const session =
|
|
6049
|
+
const session = chunkL3NHETSD_cjs.useArbiSessionStore();
|
|
5942
6050
|
const queryClient = reactQuery.useQueryClient();
|
|
5943
6051
|
return React.useMemo(
|
|
5944
6052
|
() => createWorkspaceSwitch({ arbi: () => arbiRef.current, session, queryClient }),
|
|
@@ -5948,9 +6056,9 @@ function useSwitchWorkspace() {
|
|
|
5948
6056
|
function useOpenSelectedWorkspace() {
|
|
5949
6057
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
5950
6058
|
const { clearWorkspace, openSelectedWorkspace } = useSwitchWorkspace();
|
|
5951
|
-
const workspaceId =
|
|
5952
|
-
const status =
|
|
5953
|
-
const { data: workspaces, isLoading: listing } =
|
|
6059
|
+
const workspaceId = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
6060
|
+
const status = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.workspaceStatus);
|
|
6061
|
+
const { data: workspaces, isLoading: listing } = chunkL3NHETSD_cjs.useWorkspaces();
|
|
5954
6062
|
const archived = workspaces?.find(
|
|
5955
6063
|
(w) => w.external_id === workspaceId && w.archive
|
|
5956
6064
|
);
|
|
@@ -6093,8 +6201,8 @@ function useShellWorkspaces(options) {
|
|
|
6093
6201
|
};
|
|
6094
6202
|
}
|
|
6095
6203
|
function useArbiShellWorkspaces(options = {}) {
|
|
6096
|
-
const sessionWorkspaceId =
|
|
6097
|
-
const query =
|
|
6204
|
+
const sessionWorkspaceId = chunkL3NHETSD_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
6205
|
+
const query = chunkL3NHETSD_cjs.useWorkspaces();
|
|
6098
6206
|
const { switchWorkspace } = useSwitchWorkspace();
|
|
6099
6207
|
const { select, ...rest } = options;
|
|
6100
6208
|
const defaultSelect = React.useCallback(
|
|
@@ -6118,7 +6226,7 @@ function useUpdateWorkspace() {
|
|
|
6118
6226
|
const qc = reactQuery.useQueryClient();
|
|
6119
6227
|
return reactQuery.useMutation({
|
|
6120
6228
|
mutationFn: (body) => arbi.workspaces.update(body),
|
|
6121
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
6229
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workspaces() })
|
|
6122
6230
|
});
|
|
6123
6231
|
}
|
|
6124
6232
|
function useDeleteWorkspaces() {
|
|
@@ -6126,7 +6234,7 @@ function useDeleteWorkspaces() {
|
|
|
6126
6234
|
const qc = reactQuery.useQueryClient();
|
|
6127
6235
|
return reactQuery.useMutation({
|
|
6128
6236
|
mutationFn: (workspaceIds) => arbi.workspaces.delete(workspaceIds),
|
|
6129
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
6237
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workspaces() })
|
|
6130
6238
|
});
|
|
6131
6239
|
}
|
|
6132
6240
|
|
|
@@ -6185,7 +6293,7 @@ function usePlanWorkspaceTransfer(scope, mode, options = {}) {
|
|
|
6185
6293
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6186
6294
|
const workspaceId = openWorkspaceId(arbi);
|
|
6187
6295
|
return reactQuery.useQuery({
|
|
6188
|
-
queryKey:
|
|
6296
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workspaceTransferPlan(workspaceId, JSON.stringify(scope), mode),
|
|
6189
6297
|
queryFn: () => arbi.workspaces.transfer.plan(scope, mode),
|
|
6190
6298
|
enabled: !!workspaceId && (options.enabled ?? true),
|
|
6191
6299
|
staleTime: 1e4,
|
|
@@ -6216,7 +6324,7 @@ function useCancelWorkspaceTransfer() {
|
|
|
6216
6324
|
function useWorkspaceTransfer(transferId) {
|
|
6217
6325
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6218
6326
|
return reactQuery.useQuery({
|
|
6219
|
-
queryKey:
|
|
6327
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workspaceTransfer(transferId ?? ""),
|
|
6220
6328
|
queryFn: () => arbi.workspaces.transfer.get(transferId ?? ""),
|
|
6221
6329
|
enabled: !!transferId && arbi.isLoggedIn,
|
|
6222
6330
|
staleTime: 0,
|
|
@@ -6227,7 +6335,7 @@ function useWorkspaceTransfers(options = {}) {
|
|
|
6227
6335
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6228
6336
|
const workspaceId = openWorkspaceId(arbi);
|
|
6229
6337
|
return reactQuery.useQuery({
|
|
6230
|
-
queryKey:
|
|
6338
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workspaceTransfers(workspaceId),
|
|
6231
6339
|
queryFn: () => arbi.workspaces.transfer.list(),
|
|
6232
6340
|
enabled: !!workspaceId && (options.enabled ?? true)
|
|
6233
6341
|
});
|
|
@@ -6236,15 +6344,15 @@ function useInvalidateAfterTransfer() {
|
|
|
6236
6344
|
const queryClient = reactQuery.useQueryClient();
|
|
6237
6345
|
return React.useCallback(
|
|
6238
6346
|
(mode) => {
|
|
6239
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
6240
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
6347
|
+
void queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workspaces() });
|
|
6348
|
+
void queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.allWorkspaceTransfers() });
|
|
6241
6349
|
if (mode !== "move") return;
|
|
6242
6350
|
for (const queryKey of [
|
|
6243
|
-
|
|
6244
|
-
|
|
6245
|
-
|
|
6246
|
-
|
|
6247
|
-
|
|
6351
|
+
chunkH4FGDXYB_cjs.arbiQueryKeys.workflows(),
|
|
6352
|
+
chunkH4FGDXYB_cjs.arbiQueryKeys.allFacts(),
|
|
6353
|
+
chunkH4FGDXYB_cjs.arbiQueryKeys.allTags(),
|
|
6354
|
+
chunkH4FGDXYB_cjs.arbiQueryKeys.allDocuments(),
|
|
6355
|
+
chunkH4FGDXYB_cjs.arbiQueryKeys.allConversations()
|
|
6248
6356
|
])
|
|
6249
6357
|
void queryClient.invalidateQueries({ queryKey });
|
|
6250
6358
|
},
|
|
@@ -6323,7 +6431,7 @@ function useRequestWorkspaceAccess() {
|
|
|
6323
6431
|
note: options?.note,
|
|
6324
6432
|
workspaceExtId: options?.workspaceExtId
|
|
6325
6433
|
}),
|
|
6326
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
6434
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.allNotifications() })
|
|
6327
6435
|
});
|
|
6328
6436
|
}
|
|
6329
6437
|
function useFacts(workspaceId, options) {
|
|
@@ -6331,7 +6439,7 @@ function useFacts(workspaceId, options) {
|
|
|
6331
6439
|
const { enabled = true, ...filter } = options ?? {};
|
|
6332
6440
|
const workspace = workspaceId ?? (arbi.hasWorkspace ? arbi.getWorkspaceId() : "");
|
|
6333
6441
|
return reactQuery.useQuery({
|
|
6334
|
-
queryKey:
|
|
6442
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.factList(workspace, filter),
|
|
6335
6443
|
queryFn: () => arbi.readInWorkspace(workspace, () => arbi.facts.list(filter)),
|
|
6336
6444
|
enabled: enabled && !!workspace && arbi.hasWorkspace,
|
|
6337
6445
|
staleTime: 3e4
|
|
@@ -6339,7 +6447,7 @@ function useFacts(workspaceId, options) {
|
|
|
6339
6447
|
}
|
|
6340
6448
|
function useRefreshFacts() {
|
|
6341
6449
|
const qc = reactQuery.useQueryClient();
|
|
6342
|
-
return () => qc.invalidateQueries({ queryKey:
|
|
6450
|
+
return () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.allFacts() });
|
|
6343
6451
|
}
|
|
6344
6452
|
function useCreateFact() {
|
|
6345
6453
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
@@ -6393,7 +6501,7 @@ function usePassageQuotes(docIds) {
|
|
|
6393
6501
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6394
6502
|
const passages = reactQuery.useQueries({
|
|
6395
6503
|
queries: [...new Set(docIds ?? [])].map((docId) => ({
|
|
6396
|
-
queryKey:
|
|
6504
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.parsedDoc(docId, "final"),
|
|
6397
6505
|
queryFn: () => arbi.documents.getParsedContent(docId, "final"),
|
|
6398
6506
|
enabled: arbi.hasWorkspace,
|
|
6399
6507
|
staleTime: PARSED_STALE_TIME
|
|
@@ -6409,7 +6517,7 @@ function usePassageQuotes(docIds) {
|
|
|
6409
6517
|
);
|
|
6410
6518
|
}
|
|
6411
6519
|
var REPLAYABLE = [
|
|
6412
|
-
...
|
|
6520
|
+
...chunkKFFH2JJM_cjs.replayableTagMutations,
|
|
6413
6521
|
...replayableDocumentMutations
|
|
6414
6522
|
];
|
|
6415
6523
|
function isReplayableArbiMutation(mutationKey) {
|
|
@@ -6441,13 +6549,13 @@ function isRestorableArbiQueryOnline(queryKey, data) {
|
|
|
6441
6549
|
const docs = Array.isArray(data) ? data : [data];
|
|
6442
6550
|
return !docs.some((doc) => {
|
|
6443
6551
|
const status = doc?.status;
|
|
6444
|
-
return !!status && !
|
|
6552
|
+
return !!status && !chunkKFFH2JJM_cjs.FINISHED_DOCUMENT_STATUSES.has(status);
|
|
6445
6553
|
});
|
|
6446
6554
|
}
|
|
6447
6555
|
function useFilteredProjects(filters, options) {
|
|
6448
6556
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6449
6557
|
return reactQuery.useQuery({
|
|
6450
|
-
queryKey:
|
|
6558
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.projectsFiltered(filters.stage, filters.leadUser),
|
|
6451
6559
|
queryFn: () => arbi.projects.list(filters),
|
|
6452
6560
|
enabled: options?.enabled ?? arbi.isLoggedIn
|
|
6453
6561
|
});
|
|
@@ -6461,8 +6569,8 @@ function useUpdateProjectFields() {
|
|
|
6461
6569
|
patch
|
|
6462
6570
|
}) => arbi.projects.update(projectExtId, patch),
|
|
6463
6571
|
onSuccess: () => {
|
|
6464
|
-
void qc.invalidateQueries({ queryKey:
|
|
6465
|
-
void qc.invalidateQueries({ queryKey:
|
|
6572
|
+
void qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.projects() });
|
|
6573
|
+
void qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workspaces() });
|
|
6466
6574
|
}
|
|
6467
6575
|
});
|
|
6468
6576
|
}
|
|
@@ -6470,7 +6578,7 @@ function useProjectEvents(projectExtId, options) {
|
|
|
6470
6578
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6471
6579
|
return reactQuery.useQuery({
|
|
6472
6580
|
queryKey: [
|
|
6473
|
-
...
|
|
6581
|
+
...chunkH4FGDXYB_cjs.arbiQueryKeys.projectEvents(projectExtId ?? ""),
|
|
6474
6582
|
options?.kind ?? "all",
|
|
6475
6583
|
options?.limit ?? "default"
|
|
6476
6584
|
],
|
|
@@ -6481,7 +6589,7 @@ function useProjectEvents(projectExtId, options) {
|
|
|
6481
6589
|
function useConversationUsage(conversationId, options) {
|
|
6482
6590
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6483
6591
|
return reactQuery.useQuery({
|
|
6484
|
-
queryKey:
|
|
6592
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.conversationUsage(conversationId ?? ""),
|
|
6485
6593
|
queryFn: () => arbi.conversations.usage(conversationId),
|
|
6486
6594
|
enabled: (options?.enabled ?? true) && !!conversationId && arbi.isLoggedIn,
|
|
6487
6595
|
refetchInterval: options?.live ? 1e4 : false
|
|
@@ -6490,7 +6598,7 @@ function useConversationUsage(conversationId, options) {
|
|
|
6490
6598
|
function useProjectConversationUsage(projectExtId, monthsBack = 0, options) {
|
|
6491
6599
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6492
6600
|
return reactQuery.useQuery({
|
|
6493
|
-
queryKey:
|
|
6601
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.projectConversationUsage(projectExtId ?? "", monthsBack),
|
|
6494
6602
|
queryFn: () => arbi.projects.usageByConversation(projectExtId, monthsBack),
|
|
6495
6603
|
enabled: (options?.enabled ?? true) && !!projectExtId && arbi.isLoggedIn
|
|
6496
6604
|
});
|
|
@@ -6517,7 +6625,7 @@ function useChargeWatch(project, isPending) {
|
|
|
6517
6625
|
React.useEffect(() => {
|
|
6518
6626
|
if (!isSlow) return;
|
|
6519
6627
|
const timer = setInterval(
|
|
6520
|
-
() => queryClient.invalidateQueries({ queryKey:
|
|
6628
|
+
() => queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.projects(), exact: true }),
|
|
6521
6629
|
POLL_EVERY_MS
|
|
6522
6630
|
);
|
|
6523
6631
|
return () => clearInterval(timer);
|
|
@@ -6544,8 +6652,8 @@ function useChargeWatch(project, isPending) {
|
|
|
6544
6652
|
if (!watch2 || watch2.settled) return;
|
|
6545
6653
|
let fresh;
|
|
6546
6654
|
try {
|
|
6547
|
-
await queryClient.refetchQueries({ queryKey:
|
|
6548
|
-
fresh = queryClient.getQueryData(
|
|
6655
|
+
await queryClient.refetchQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.projects(), exact: true });
|
|
6656
|
+
fresh = queryClient.getQueryData(chunkH4FGDXYB_cjs.arbiQueryKeys.projects())?.find((p) => p.external_id === project.external_id);
|
|
6549
6657
|
} catch {
|
|
6550
6658
|
fresh = void 0;
|
|
6551
6659
|
}
|
|
@@ -6558,21 +6666,21 @@ function useChargeWatch(project, isPending) {
|
|
|
6558
6666
|
|
|
6559
6667
|
// src/billing.ts
|
|
6560
6668
|
function refreshProjects(qc, wide = false) {
|
|
6561
|
-
void qc.invalidateQueries({ queryKey:
|
|
6669
|
+
void qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.projects() });
|
|
6562
6670
|
if (wide) {
|
|
6563
|
-
void qc.invalidateQueries({ queryKey:
|
|
6564
|
-
void qc.invalidateQueries({ queryKey:
|
|
6671
|
+
void qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings() });
|
|
6672
|
+
void qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workspaces() });
|
|
6565
6673
|
}
|
|
6566
6674
|
}
|
|
6567
6675
|
var retryAbortOnly = (failureCount, error) => failureCount < 1 && error?.name === "AbortError";
|
|
6568
6676
|
function useInvalidateProjects() {
|
|
6569
6677
|
const qc = reactQuery.useQueryClient();
|
|
6570
|
-
return () => qc.invalidateQueries({ queryKey:
|
|
6678
|
+
return () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.projects() });
|
|
6571
6679
|
}
|
|
6572
6680
|
function useProducts(options) {
|
|
6573
6681
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6574
6682
|
return reactQuery.useQuery({
|
|
6575
|
-
queryKey:
|
|
6683
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.products(),
|
|
6576
6684
|
queryFn: () => arbi.projects.products(),
|
|
6577
6685
|
staleTime: 5 * 6e4,
|
|
6578
6686
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
@@ -6625,15 +6733,15 @@ function useCancelProjectSubscription() {
|
|
|
6625
6733
|
return reactQuery.useMutation({
|
|
6626
6734
|
mutationFn: (projectExtId) => arbi.projects.cancelSubscription(projectExtId),
|
|
6627
6735
|
onSuccess: () => {
|
|
6628
|
-
void qc.invalidateQueries({ queryKey:
|
|
6629
|
-
void qc.invalidateQueries({ queryKey:
|
|
6736
|
+
void qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.projects() });
|
|
6737
|
+
void qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings() });
|
|
6630
6738
|
}
|
|
6631
6739
|
});
|
|
6632
6740
|
}
|
|
6633
6741
|
function usePreviewProjectPlanChange(projectExtId, change) {
|
|
6634
6742
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6635
6743
|
return reactQuery.useQuery({
|
|
6636
|
-
queryKey: [...
|
|
6744
|
+
queryKey: [...chunkH4FGDXYB_cjs.arbiQueryKeys.billingQuotes(), "preview", projectExtId, change],
|
|
6637
6745
|
queryFn: () => arbi.projects.previewPlanChange(projectExtId, change),
|
|
6638
6746
|
enabled: !!change && arbi.isLoggedIn,
|
|
6639
6747
|
staleTime: 6e4,
|
|
@@ -6643,7 +6751,7 @@ function usePreviewProjectPlanChange(projectExtId, change) {
|
|
|
6643
6751
|
function usePlanQuote(projectExtId, body) {
|
|
6644
6752
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6645
6753
|
return reactQuery.useQuery({
|
|
6646
|
-
queryKey: [...
|
|
6754
|
+
queryKey: [...chunkH4FGDXYB_cjs.arbiQueryKeys.billingQuotes(), "plan", projectExtId ?? null, body],
|
|
6647
6755
|
queryFn: () => arbi.projects.quotePlan(projectExtId ?? null, body),
|
|
6648
6756
|
enabled: !!body && arbi.isLoggedIn,
|
|
6649
6757
|
staleTime: 5 * 6e4,
|
|
@@ -6653,7 +6761,7 @@ function usePlanQuote(projectExtId, body) {
|
|
|
6653
6761
|
function useAddonQuote(projectExtId, kind, enabled = true) {
|
|
6654
6762
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6655
6763
|
return reactQuery.useQuery({
|
|
6656
|
-
queryKey: [...
|
|
6764
|
+
queryKey: [...chunkH4FGDXYB_cjs.arbiQueryKeys.billingQuotes(), "addon", projectExtId, kind],
|
|
6657
6765
|
queryFn: () => arbi.projects.quoteAddon(projectExtId, kind),
|
|
6658
6766
|
enabled: enabled && arbi.isLoggedIn,
|
|
6659
6767
|
staleTime: 6e4,
|
|
@@ -6699,7 +6807,7 @@ function useUpdateProjectAddonSettings() {
|
|
|
6699
6807
|
function useContacts(options) {
|
|
6700
6808
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6701
6809
|
return reactQuery.useQuery({
|
|
6702
|
-
queryKey:
|
|
6810
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.contacts(),
|
|
6703
6811
|
queryFn: () => arbi.contacts.list(),
|
|
6704
6812
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn,
|
|
6705
6813
|
staleTime: 3e4
|
|
@@ -6715,7 +6823,7 @@ function usePendingContacts(options) {
|
|
|
6715
6823
|
}
|
|
6716
6824
|
function useInvalidateContacts() {
|
|
6717
6825
|
const qc = reactQuery.useQueryClient();
|
|
6718
|
-
return () => qc.invalidateQueries({ queryKey:
|
|
6826
|
+
return () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.contacts() });
|
|
6719
6827
|
}
|
|
6720
6828
|
function useInviteContacts() {
|
|
6721
6829
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
@@ -6773,7 +6881,7 @@ function useSearchContacts(q, { debounceMs = 200 } = {}) {
|
|
|
6773
6881
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6774
6882
|
const term = useDebounced(q.trim(), debounceMs);
|
|
6775
6883
|
return reactQuery.useQuery({
|
|
6776
|
-
queryKey: [...
|
|
6884
|
+
queryKey: [...chunkH4FGDXYB_cjs.arbiQueryKeys.contacts(), "search", term],
|
|
6777
6885
|
queryFn: () => arbi.contacts.search(term),
|
|
6778
6886
|
enabled: term.length > 0 && arbi.isLoggedIn,
|
|
6779
6887
|
staleTime: 6e4,
|
|
@@ -6827,8 +6935,8 @@ function usePeople() {
|
|
|
6827
6935
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6828
6936
|
const meId = arbi.isLoggedIn ? arbi.user.identity()?.externalId : void 0;
|
|
6829
6937
|
const { data: contacts = [] } = useContacts();
|
|
6830
|
-
const { data: workspaces = [] } =
|
|
6831
|
-
const { data: agents = [] } =
|
|
6938
|
+
const { data: workspaces = [] } = chunkL3NHETSD_cjs.useWorkspaces();
|
|
6939
|
+
const { data: agents = [] } = chunkL3NHETSD_cjs.useAgents();
|
|
6832
6940
|
return React.useMemo(() => {
|
|
6833
6941
|
const people = [];
|
|
6834
6942
|
const contactOf = /* @__PURE__ */ new Map();
|
|
@@ -6902,7 +7010,7 @@ function usePeopleSearch(query, { agents = false } = {}) {
|
|
|
6902
7010
|
function useHouseTemplateCandidates(workspaceId, enabled, staleTime = 6e4) {
|
|
6903
7011
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6904
7012
|
return reactQuery.useQuery({
|
|
6905
|
-
queryKey:
|
|
7013
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.houseTemplateCandidates(workspaceId ?? ""),
|
|
6906
7014
|
enabled: enabled && !!workspaceId && arbi.hasWorkspace,
|
|
6907
7015
|
staleTime,
|
|
6908
7016
|
// Read in that workspace: the server answers for the session's open one.
|
|
@@ -6914,24 +7022,24 @@ function useSetWorkspaceHouseTemplate() {
|
|
|
6914
7022
|
const queryClient = reactQuery.useQueryClient();
|
|
6915
7023
|
return reactQuery.useMutation({
|
|
6916
7024
|
mutationFn: (documentId) => arbi.houseTemplates.setWorkspace(documentId),
|
|
6917
|
-
onSuccess: () => queryClient.invalidateQueries({ queryKey:
|
|
7025
|
+
onSuccess: () => queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workspaces() })
|
|
6918
7026
|
});
|
|
6919
7027
|
}
|
|
6920
7028
|
var supportsHouseTemplates = browser.houseTemplates.supportsHouseTemplates;
|
|
6921
7029
|
var workspaceHouseTemplateId = browser.houseTemplates.workspaceHouseTemplateId;
|
|
6922
7030
|
var isDeploymentAdmin = browser.houseTemplates.isDeploymentAdmin;
|
|
6923
7031
|
function useRequestEmailChange() {
|
|
6924
|
-
const { client } =
|
|
7032
|
+
const { client } = chunkZLHS3UKP_cjs.useAccountClient();
|
|
6925
7033
|
return reactQuery.useMutation({
|
|
6926
7034
|
mutationFn: (newEmail) => client.requestEmailChange(newEmail)
|
|
6927
7035
|
});
|
|
6928
7036
|
}
|
|
6929
7037
|
function useConfirmEmailChange() {
|
|
6930
|
-
const { client } =
|
|
7038
|
+
const { client } = chunkZLHS3UKP_cjs.useAccountClient();
|
|
6931
7039
|
const qc = reactQuery.useQueryClient();
|
|
6932
7040
|
return reactQuery.useMutation({
|
|
6933
7041
|
mutationFn: ({ newEmail, code }) => client.confirmEmailChange(newEmail, code),
|
|
6934
|
-
onSuccess: () => qc.setQueryData(
|
|
7042
|
+
onSuccess: () => qc.setQueryData(chunkH4FGDXYB_cjs.arbiQueryKeys.profile(), client.profile())
|
|
6935
7043
|
});
|
|
6936
7044
|
}
|
|
6937
7045
|
function useEmailChange({
|
|
@@ -6995,7 +7103,7 @@ function useEmailChange({
|
|
|
6995
7103
|
};
|
|
6996
7104
|
}
|
|
6997
7105
|
function usePasswordChange() {
|
|
6998
|
-
const { client } =
|
|
7106
|
+
const { client } = chunkZLHS3UKP_cjs.useAccountClient();
|
|
6999
7107
|
return reactQuery.useMutation({
|
|
7000
7108
|
mutationFn: (vars) => client.changePassword(vars)
|
|
7001
7109
|
});
|
|
@@ -7104,18 +7212,18 @@ function useNotificationPreferences(keys, options) {
|
|
|
7104
7212
|
const save = reactQuery.useMutation({
|
|
7105
7213
|
mutationFn: (patch) => arbi.settings.update({ email_notifications: patch }),
|
|
7106
7214
|
onMutate: async (patch) => {
|
|
7107
|
-
await qc.cancelQueries({ queryKey:
|
|
7108
|
-
const previous = qc.getQueryData(
|
|
7215
|
+
await qc.cancelQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings() });
|
|
7216
|
+
const previous = qc.getQueryData(chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings());
|
|
7109
7217
|
qc.setQueryData(
|
|
7110
|
-
|
|
7218
|
+
chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings(),
|
|
7111
7219
|
(old) => old ? { ...old, email_notifications: { ...old.email_notifications, ...patch } } : old
|
|
7112
7220
|
);
|
|
7113
7221
|
return { previous };
|
|
7114
7222
|
},
|
|
7115
7223
|
onError: (_err, _patch, context) => {
|
|
7116
|
-
qc.setQueryData(
|
|
7224
|
+
qc.setQueryData(chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings(), context?.previous);
|
|
7117
7225
|
},
|
|
7118
|
-
onSettled: () => qc.invalidateQueries({ queryKey:
|
|
7226
|
+
onSettled: () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings() })
|
|
7119
7227
|
});
|
|
7120
7228
|
const model = React.useMemo(() => toNotificationPreferences(stored, keys), [stored, keys]);
|
|
7121
7229
|
const setAll = React.useCallback(
|
|
@@ -7142,18 +7250,18 @@ function useRelevanceSave() {
|
|
|
7142
7250
|
return reactQuery.useMutation({
|
|
7143
7251
|
mutationFn: (patch) => arbi.settings.update(patch),
|
|
7144
7252
|
onMutate: async (patch) => {
|
|
7145
|
-
await qc.cancelQueries({ queryKey:
|
|
7146
|
-
const previous = qc.getQueryData(
|
|
7253
|
+
await qc.cancelQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings() });
|
|
7254
|
+
const previous = qc.getQueryData(chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings());
|
|
7147
7255
|
qc.setQueryData(
|
|
7148
|
-
|
|
7256
|
+
chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings(),
|
|
7149
7257
|
(old) => old ? { ...old, ...patch } : old
|
|
7150
7258
|
);
|
|
7151
7259
|
return { previous };
|
|
7152
7260
|
},
|
|
7153
7261
|
onError: (_err, _patch, context) => {
|
|
7154
|
-
qc.setQueryData(
|
|
7262
|
+
qc.setQueryData(chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings(), context?.previous);
|
|
7155
7263
|
},
|
|
7156
|
-
onSettled: () => qc.invalidateQueries({ queryKey:
|
|
7264
|
+
onSettled: () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings() })
|
|
7157
7265
|
});
|
|
7158
7266
|
}
|
|
7159
7267
|
function useWorkspaceNotificationLevel(workspaceId, options) {
|
|
@@ -7164,7 +7272,7 @@ function useWorkspaceNotificationLevel(workspaceId, options) {
|
|
|
7164
7272
|
const setLevel = React.useCallback(
|
|
7165
7273
|
(next) => {
|
|
7166
7274
|
if (!workspaceId) return;
|
|
7167
|
-
const current = qc.getQueryData(
|
|
7275
|
+
const current = qc.getQueryData(chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings()) ?? settings.data;
|
|
7168
7276
|
save.mutate(browser.settings.workspaceLevelPatch(current, workspaceId, next));
|
|
7169
7277
|
},
|
|
7170
7278
|
[qc, save, settings.data, workspaceId]
|
|
@@ -7185,7 +7293,7 @@ function useFollowThread(conversationId, options) {
|
|
|
7185
7293
|
const setFollowing = React.useCallback(
|
|
7186
7294
|
(on, callbacks) => {
|
|
7187
7295
|
if (!conversationId) return;
|
|
7188
|
-
const current = qc.getQueryData(
|
|
7296
|
+
const current = qc.getQueryData(chunkH4FGDXYB_cjs.arbiQueryKeys.userSettings()) ?? settings.data;
|
|
7189
7297
|
save.mutate(
|
|
7190
7298
|
{
|
|
7191
7299
|
followed_threads: browser.settings.withMembership(
|
|
@@ -7208,23 +7316,23 @@ function useFollowThread(conversationId, options) {
|
|
|
7208
7316
|
};
|
|
7209
7317
|
}
|
|
7210
7318
|
function useSessions(options) {
|
|
7211
|
-
const { client, enabled } =
|
|
7319
|
+
const { client, enabled } = chunkZLHS3UKP_cjs.useAccountClient();
|
|
7212
7320
|
return reactQuery.useQuery({
|
|
7213
|
-
queryKey:
|
|
7321
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.sessions(),
|
|
7214
7322
|
queryFn: () => client.listSessions(),
|
|
7215
7323
|
enabled: (options?.enabled ?? true) && enabled
|
|
7216
7324
|
});
|
|
7217
7325
|
}
|
|
7218
7326
|
function useTerminateSession() {
|
|
7219
|
-
const { client } =
|
|
7327
|
+
const { client } = chunkZLHS3UKP_cjs.useAccountClient();
|
|
7220
7328
|
const qc = reactQuery.useQueryClient();
|
|
7221
7329
|
return reactQuery.useMutation({
|
|
7222
7330
|
mutationFn: (sessionId) => client.terminateSession(sessionId),
|
|
7223
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
7331
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.sessions() })
|
|
7224
7332
|
});
|
|
7225
7333
|
}
|
|
7226
7334
|
function useSignOut() {
|
|
7227
|
-
const { client } =
|
|
7335
|
+
const { client } = chunkZLHS3UKP_cjs.useAccountClient();
|
|
7228
7336
|
const qc = reactQuery.useQueryClient();
|
|
7229
7337
|
return reactQuery.useMutation({
|
|
7230
7338
|
mutationFn: (options = {}) => client.signOut(options),
|
|
@@ -7232,7 +7340,7 @@ function useSignOut() {
|
|
|
7232
7340
|
});
|
|
7233
7341
|
}
|
|
7234
7342
|
function useCurrentSessionId() {
|
|
7235
|
-
return
|
|
7343
|
+
return chunkZLHS3UKP_cjs.useAccountClient().client.currentSessionId();
|
|
7236
7344
|
}
|
|
7237
7345
|
function parseDeleteAccountBlockers(error) {
|
|
7238
7346
|
const body = error?.apiError ?? error;
|
|
@@ -7247,7 +7355,7 @@ function parseDeleteAccountBlockers(error) {
|
|
|
7247
7355
|
return [];
|
|
7248
7356
|
}
|
|
7249
7357
|
function useDeleteAccount() {
|
|
7250
|
-
const { client } =
|
|
7358
|
+
const { client } = chunkZLHS3UKP_cjs.useAccountClient();
|
|
7251
7359
|
return reactQuery.useMutation({ mutationFn: () => client.requestDeletion() });
|
|
7252
7360
|
}
|
|
7253
7361
|
function useDeleteAccountFlow({
|
|
@@ -7363,7 +7471,7 @@ function useIdentityVerificationFlow(api, {
|
|
|
7363
7471
|
const apiRef = React.useRef(api);
|
|
7364
7472
|
apiRef.current = api;
|
|
7365
7473
|
const query = reactQuery.useQuery({
|
|
7366
|
-
queryKey:
|
|
7474
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.identity(),
|
|
7367
7475
|
queryFn: () => apiRef.current.status(),
|
|
7368
7476
|
enabled,
|
|
7369
7477
|
staleTime: 6e4
|
|
@@ -7381,7 +7489,7 @@ function useIdentityVerificationFlow(api, {
|
|
|
7381
7489
|
const lastVerified = React.useRef(void 0);
|
|
7382
7490
|
const apply = React.useCallback(
|
|
7383
7491
|
(next) => {
|
|
7384
|
-
qc.setQueryData(
|
|
7492
|
+
qc.setQueryData(chunkH4FGDXYB_cjs.arbiQueryKeys.identity(), next);
|
|
7385
7493
|
if (lastVerified.current !== void 0 && lastVerified.current !== next.verified) {
|
|
7386
7494
|
onVerifiedChange?.(next.verified);
|
|
7387
7495
|
}
|
|
@@ -7569,19 +7677,19 @@ function useIdentityVerificationFlow(api, {
|
|
|
7569
7677
|
};
|
|
7570
7678
|
}
|
|
7571
7679
|
function useIdentityVerification(options = {}) {
|
|
7572
|
-
const { client, enabled } =
|
|
7680
|
+
const { client, enabled } = chunkZLHS3UKP_cjs.useAccountClient();
|
|
7573
7681
|
const qc = reactQuery.useQueryClient();
|
|
7574
7682
|
const { onVerifiedChange, onNameAccepted, formatPrice } = options;
|
|
7575
7683
|
return useIdentityVerificationFlow(client.identity, {
|
|
7576
7684
|
enabled,
|
|
7577
7685
|
formatPrice,
|
|
7578
7686
|
onVerifiedChange: (verified) => {
|
|
7579
|
-
void qc.invalidateQueries({ queryKey:
|
|
7687
|
+
void qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.profile() });
|
|
7580
7688
|
onVerifiedChange?.(verified);
|
|
7581
7689
|
},
|
|
7582
7690
|
onNameAccepted: (name) => {
|
|
7583
|
-
void qc.invalidateQueries({ queryKey:
|
|
7584
|
-
void qc.invalidateQueries({ queryKey:
|
|
7691
|
+
void qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.profile() });
|
|
7692
|
+
void qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.workspaces() });
|
|
7585
7693
|
onNameAccepted?.(name);
|
|
7586
7694
|
}
|
|
7587
7695
|
});
|
|
@@ -7720,7 +7828,7 @@ function useMailOnline() {
|
|
|
7720
7828
|
function useMailPolicy() {
|
|
7721
7829
|
const { client, enabled } = useMailClient();
|
|
7722
7830
|
return reactQuery.useQuery({
|
|
7723
|
-
queryKey:
|
|
7831
|
+
queryKey: chunkH4FGDXYB_cjs.mailQueryKeys.policy(),
|
|
7724
7832
|
queryFn: () => client.getPolicy(),
|
|
7725
7833
|
networkMode: "always",
|
|
7726
7834
|
enabled,
|
|
@@ -7731,7 +7839,7 @@ function useMailPolicy() {
|
|
|
7731
7839
|
function useMailAccounts(options = {}) {
|
|
7732
7840
|
const { client, enabled } = useMailClient();
|
|
7733
7841
|
return reactQuery.useQuery({
|
|
7734
|
-
queryKey:
|
|
7842
|
+
queryKey: chunkH4FGDXYB_cjs.mailQueryKeys.accounts(),
|
|
7735
7843
|
queryFn: () => client.listAccounts(),
|
|
7736
7844
|
networkMode: "always",
|
|
7737
7845
|
enabled: enabled && (options.enabled ?? true),
|
|
@@ -7742,7 +7850,7 @@ function useMailUnlock(account) {
|
|
|
7742
7850
|
const { client, enabled, sessionKey } = useMailClient();
|
|
7743
7851
|
const isOnline = useMailOnline();
|
|
7744
7852
|
return reactQuery.useQuery({
|
|
7745
|
-
queryKey:
|
|
7853
|
+
queryKey: chunkH4FGDXYB_cjs.mailQueryKeys.unlock(account?.id, sessionKey),
|
|
7746
7854
|
queryFn: async () => {
|
|
7747
7855
|
if (!account) throw new Error("Sign in to unlock your mailbox");
|
|
7748
7856
|
await client.unlock(account);
|
|
@@ -7756,7 +7864,7 @@ function useMailUnlock(account) {
|
|
|
7756
7864
|
function useMailFolders(account, options) {
|
|
7757
7865
|
const { client } = useMailClient();
|
|
7758
7866
|
return reactQuery.useQuery({
|
|
7759
|
-
queryKey:
|
|
7867
|
+
queryKey: chunkH4FGDXYB_cjs.mailQueryKeys.folders(account?.id),
|
|
7760
7868
|
queryFn: () => client.listFolders(account),
|
|
7761
7869
|
networkMode: "always",
|
|
7762
7870
|
enabled: !!account && (options.enabled ?? true),
|
|
@@ -7766,7 +7874,7 @@ function useMailFolders(account, options) {
|
|
|
7766
7874
|
function useMailMessages(account, folderId, query, cursor, options = {}) {
|
|
7767
7875
|
const { client } = useMailClient();
|
|
7768
7876
|
return reactQuery.useQuery({
|
|
7769
|
-
queryKey:
|
|
7877
|
+
queryKey: chunkH4FGDXYB_cjs.mailQueryKeys.messages(account?.id, folderId, query, cursor),
|
|
7770
7878
|
queryFn: () => client.listMessages(account, folderId, query, cursor),
|
|
7771
7879
|
networkMode: "always",
|
|
7772
7880
|
enabled: !!account && !!folderId && (options.enabled ?? true),
|
|
@@ -7777,7 +7885,7 @@ function useMailMessages(account, folderId, query, cursor, options = {}) {
|
|
|
7777
7885
|
function useMailMessage(account, messageId, options = {}) {
|
|
7778
7886
|
const { client } = useMailClient();
|
|
7779
7887
|
return reactQuery.useQuery({
|
|
7780
|
-
queryKey:
|
|
7888
|
+
queryKey: chunkH4FGDXYB_cjs.mailQueryKeys.message(account?.id, messageId),
|
|
7781
7889
|
queryFn: () => client.getMessage(account, messageId),
|
|
7782
7890
|
networkMode: "always",
|
|
7783
7891
|
enabled: !!account && !!messageId && (options.enabled ?? true),
|
|
@@ -7791,7 +7899,7 @@ function decodeBase64Text(b64) {
|
|
|
7791
7899
|
function useMailAttachmentText(accountId, messageId, attachment, options = {}) {
|
|
7792
7900
|
const { client } = useMailClient();
|
|
7793
7901
|
return reactQuery.useQuery({
|
|
7794
|
-
queryKey:
|
|
7902
|
+
queryKey: chunkH4FGDXYB_cjs.mailQueryKeys.attachmentText(accountId, messageId, attachment?.id ?? ""),
|
|
7795
7903
|
queryFn: async () => {
|
|
7796
7904
|
const a = attachment;
|
|
7797
7905
|
if (a.content_base64) return decodeBase64Text(a.content_base64);
|
|
@@ -7809,7 +7917,7 @@ function useClaimNativeAlias(onClaimed) {
|
|
|
7809
7917
|
return reactQuery.useMutation({
|
|
7810
7918
|
mutationFn: (alias) => mailJson(client.fetch, "/native/alias", { method: "POST", body: JSON.stringify({ alias }) }),
|
|
7811
7919
|
onSuccess: async (_data, alias) => {
|
|
7812
|
-
await queryClient.invalidateQueries({ queryKey:
|
|
7920
|
+
await queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.mailQueryKeys.all() });
|
|
7813
7921
|
onClaimed?.(alias);
|
|
7814
7922
|
}
|
|
7815
7923
|
});
|
|
@@ -7827,7 +7935,7 @@ function useConnectMailAccount() {
|
|
|
7827
7935
|
password: input.password
|
|
7828
7936
|
})
|
|
7829
7937
|
}),
|
|
7830
|
-
onSuccess: () => queryClient.invalidateQueries({ queryKey:
|
|
7938
|
+
onSuccess: () => queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.mailQueryKeys.accounts() })
|
|
7831
7939
|
});
|
|
7832
7940
|
}
|
|
7833
7941
|
function useDisconnectMailAccount() {
|
|
@@ -7835,19 +7943,19 @@ function useDisconnectMailAccount() {
|
|
|
7835
7943
|
const queryClient = reactQuery.useQueryClient();
|
|
7836
7944
|
return reactQuery.useMutation({
|
|
7837
7945
|
mutationFn: (accountId) => mailJson(client.fetch, accountPath(accountId), { method: "DELETE" }),
|
|
7838
|
-
onSuccess: () => queryClient.invalidateQueries({ queryKey:
|
|
7946
|
+
onSuccess: () => queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.mailQueryKeys.all() })
|
|
7839
7947
|
});
|
|
7840
7948
|
}
|
|
7841
7949
|
function useMailCache() {
|
|
7842
7950
|
const queryClient = reactQuery.useQueryClient();
|
|
7843
7951
|
return React.useMemo(() => {
|
|
7844
|
-
const refreshAll = () => queryClient.invalidateQueries({ queryKey:
|
|
7952
|
+
const refreshAll = () => queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.mailQueryKeys.all() });
|
|
7845
7953
|
return {
|
|
7846
7954
|
refreshAll,
|
|
7847
|
-
refreshFolders: () => queryClient.invalidateQueries({ queryKey:
|
|
7955
|
+
refreshFolders: () => queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.mailQueryKeys.allFolders() }),
|
|
7848
7956
|
/** After a write to one message: drop a read of it still in flight (it may carry the old state), then refresh. */
|
|
7849
7957
|
settleMessage: async (accountId, messageId) => {
|
|
7850
|
-
await queryClient.cancelQueries({ queryKey:
|
|
7958
|
+
await queryClient.cancelQueries({ queryKey: chunkH4FGDXYB_cjs.mailQueryKeys.message(accountId, messageId) });
|
|
7851
7959
|
await refreshAll();
|
|
7852
7960
|
}
|
|
7853
7961
|
};
|
|
@@ -7899,7 +8007,7 @@ function useSaveMailDraft(fallback) {
|
|
|
7899
8007
|
),
|
|
7900
8008
|
onSuccess: (result) => {
|
|
7901
8009
|
if (!("onDevice" in result))
|
|
7902
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
8010
|
+
void queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.mailQueryKeys.allMessages() });
|
|
7903
8011
|
}
|
|
7904
8012
|
});
|
|
7905
8013
|
}
|
|
@@ -7927,7 +8035,7 @@ function useSendMail(fallback) {
|
|
|
7927
8035
|
),
|
|
7928
8036
|
onSuccess: (result) => {
|
|
7929
8037
|
if (!(result && typeof result === "object" && "onDevice" in result))
|
|
7930
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
8038
|
+
void queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.mailQueryKeys.all() });
|
|
7931
8039
|
}
|
|
7932
8040
|
});
|
|
7933
8041
|
}
|
|
@@ -7943,13 +8051,13 @@ function useMailDraftEditor() {
|
|
|
7943
8051
|
/** Save as the draft: suggestions still waiting stay out of it. */
|
|
7944
8052
|
save: async (roomId, compose, state) => {
|
|
7945
8053
|
const saved = await call(roomId, "/save", { compose, state });
|
|
7946
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
8054
|
+
void queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.mailQueryKeys.allMessages() });
|
|
7947
8055
|
return saved;
|
|
7948
8056
|
},
|
|
7949
8057
|
/** Send (refused, `status` 409, while suggestions wait). */
|
|
7950
8058
|
send: async (roomId, compose, state) => {
|
|
7951
8059
|
const sent = await call(roomId, "/send", { compose, state });
|
|
7952
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
8060
|
+
void queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.mailQueryKeys.all() });
|
|
7953
8061
|
return sent;
|
|
7954
8062
|
},
|
|
7955
8063
|
/** The body as text and HTML (`final`: refused while suggestions wait). */
|
|
@@ -7966,7 +8074,7 @@ function useMailDraftEditor() {
|
|
|
7966
8074
|
function useMailProjects(options = {}) {
|
|
7967
8075
|
const { client } = useMailClient();
|
|
7968
8076
|
return reactQuery.useQuery({
|
|
7969
|
-
queryKey:
|
|
8077
|
+
queryKey: chunkH4FGDXYB_cjs.mailQueryKeys.projects(),
|
|
7970
8078
|
queryFn: () => mailJson(client.fetch, "/drafts/editor/projects"),
|
|
7971
8079
|
enabled: options.enabled ?? true,
|
|
7972
8080
|
staleTime: 6e4
|
|
@@ -7974,7 +8082,7 @@ function useMailProjects(options = {}) {
|
|
|
7974
8082
|
}
|
|
7975
8083
|
function useMailDraftCompose(account, draftId, prepare, options = {}) {
|
|
7976
8084
|
return reactQuery.useQuery({
|
|
7977
|
-
queryKey:
|
|
8085
|
+
queryKey: chunkH4FGDXYB_cjs.mailQueryKeys.draftCompose(account?.id, draftId),
|
|
7978
8086
|
queryFn: () => prepare(account, draftId),
|
|
7979
8087
|
networkMode: "always",
|
|
7980
8088
|
enabled: !!account && !!draftId && (options.enabled ?? true),
|
|
@@ -8007,13 +8115,13 @@ function useConnectorMutation(mutationFn) {
|
|
|
8007
8115
|
const qc = reactQuery.useQueryClient();
|
|
8008
8116
|
return reactQuery.useMutation({
|
|
8009
8117
|
mutationFn,
|
|
8010
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
8118
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.connectorQueryKeys.all() })
|
|
8011
8119
|
});
|
|
8012
8120
|
}
|
|
8013
8121
|
function useConnectorCatalog() {
|
|
8014
8122
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8015
8123
|
return reactQuery.useQuery({
|
|
8016
|
-
queryKey:
|
|
8124
|
+
queryKey: chunkH4FGDXYB_cjs.connectorQueryKeys.catalog(),
|
|
8017
8125
|
queryFn: () => arbi.connectors.catalog(),
|
|
8018
8126
|
staleTime: 5 * 6e4,
|
|
8019
8127
|
enabled: arbi.isLoggedIn
|
|
@@ -8022,7 +8130,7 @@ function useConnectorCatalog() {
|
|
|
8022
8130
|
function useMyConnectors() {
|
|
8023
8131
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8024
8132
|
return reactQuery.useQuery({
|
|
8025
|
-
queryKey:
|
|
8133
|
+
queryKey: chunkH4FGDXYB_cjs.connectorQueryKeys.mine(),
|
|
8026
8134
|
queryFn: () => arbi.connectors.mine(),
|
|
8027
8135
|
staleTime: 3e4,
|
|
8028
8136
|
enabled: arbi.isLoggedIn
|
|
@@ -8050,7 +8158,7 @@ function connectorReturnTo(reopen) {
|
|
|
8050
8158
|
function useMailboxFolders(vendorKey, enabled) {
|
|
8051
8159
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8052
8160
|
return reactQuery.useQuery({
|
|
8053
|
-
queryKey:
|
|
8161
|
+
queryKey: chunkH4FGDXYB_cjs.connectorQueryKeys.mailboxFolders(vendorKey),
|
|
8054
8162
|
queryFn: () => arbi.connectors.mailboxFolders(vendorKey),
|
|
8055
8163
|
enabled: enabled && arbi.isLoggedIn,
|
|
8056
8164
|
staleTime: 6e4
|
|
@@ -8080,7 +8188,7 @@ function useTriggerMailboxSync() {
|
|
|
8080
8188
|
function useMailboxSyncProgress(vendorKey, workspaceExtId, enabled) {
|
|
8081
8189
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8082
8190
|
return reactQuery.useQuery({
|
|
8083
|
-
queryKey:
|
|
8191
|
+
queryKey: chunkH4FGDXYB_cjs.connectorQueryKeys.mailboxSyncProgress(vendorKey, workspaceExtId),
|
|
8084
8192
|
queryFn: () => arbi.connectors.mailboxSyncProgress(vendorKey, workspaceExtId),
|
|
8085
8193
|
enabled: enabled && !!workspaceExtId && arbi.isLoggedIn,
|
|
8086
8194
|
refetchInterval: (query) => query.state.data?.running ? 1500 : false,
|
|
@@ -8096,7 +8204,7 @@ function useCancelMailboxSync() {
|
|
|
8096
8204
|
function useDriveFolders(vendorKey, enabled) {
|
|
8097
8205
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8098
8206
|
return reactQuery.useQuery({
|
|
8099
|
-
queryKey:
|
|
8207
|
+
queryKey: chunkH4FGDXYB_cjs.connectorQueryKeys.driveFolders(vendorKey),
|
|
8100
8208
|
queryFn: () => arbi.connectors.driveFolders(vendorKey),
|
|
8101
8209
|
enabled: enabled && arbi.isLoggedIn,
|
|
8102
8210
|
retry: false,
|
|
@@ -8106,7 +8214,7 @@ function useDriveFolders(vendorKey, enabled) {
|
|
|
8106
8214
|
function useDriveFolderChildren(vendorKey, itemId, enabled) {
|
|
8107
8215
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8108
8216
|
return reactQuery.useQuery({
|
|
8109
|
-
queryKey:
|
|
8217
|
+
queryKey: chunkH4FGDXYB_cjs.connectorQueryKeys.driveFolderChildren(vendorKey, itemId),
|
|
8110
8218
|
queryFn: () => arbi.connectors.driveFolderChildren(vendorKey, itemId),
|
|
8111
8219
|
enabled: enabled && arbi.isLoggedIn,
|
|
8112
8220
|
staleTime: 3e4
|
|
@@ -8115,7 +8223,7 @@ function useDriveFolderChildren(vendorKey, itemId, enabled) {
|
|
|
8115
8223
|
function useDriveFolderDocCount(vendorKey, itemId, enabled) {
|
|
8116
8224
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8117
8225
|
return reactQuery.useQuery({
|
|
8118
|
-
queryKey:
|
|
8226
|
+
queryKey: chunkH4FGDXYB_cjs.connectorQueryKeys.driveFolderDocCount(vendorKey, itemId),
|
|
8119
8227
|
queryFn: () => arbi.connectors.driveFolderDocCount(vendorKey, itemId),
|
|
8120
8228
|
enabled: enabled && arbi.isLoggedIn,
|
|
8121
8229
|
staleTime: 5 * 6e4
|
|
@@ -8143,7 +8251,7 @@ function useTriggerDriveSync() {
|
|
|
8143
8251
|
function useDriveSyncEstimate(vendorKey, enabled) {
|
|
8144
8252
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8145
8253
|
return reactQuery.useQuery({
|
|
8146
|
-
queryKey:
|
|
8254
|
+
queryKey: chunkH4FGDXYB_cjs.connectorQueryKeys.driveSyncEstimate(vendorKey),
|
|
8147
8255
|
queryFn: () => arbi.connectors.driveSyncEstimate(vendorKey),
|
|
8148
8256
|
enabled: enabled && arbi.isLoggedIn,
|
|
8149
8257
|
staleTime: 3e4
|
|
@@ -8152,7 +8260,7 @@ function useDriveSyncEstimate(vendorKey, enabled) {
|
|
|
8152
8260
|
function useDriveSyncProgress(vendorKey, enabled) {
|
|
8153
8261
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8154
8262
|
return reactQuery.useQuery({
|
|
8155
|
-
queryKey:
|
|
8263
|
+
queryKey: chunkH4FGDXYB_cjs.connectorQueryKeys.driveSyncProgress(vendorKey),
|
|
8156
8264
|
queryFn: () => arbi.connectors.driveSyncProgress(vendorKey),
|
|
8157
8265
|
enabled: enabled && arbi.isLoggedIn,
|
|
8158
8266
|
refetchInterval: (query) => query.state.data?.running ? 1500 : false,
|
|
@@ -8168,7 +8276,7 @@ function useCancelDriveSync() {
|
|
|
8168
8276
|
function useSlackConnection() {
|
|
8169
8277
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8170
8278
|
return reactQuery.useQuery({
|
|
8171
|
-
queryKey:
|
|
8279
|
+
queryKey: chunkH4FGDXYB_cjs.connectorQueryKeys.slack(),
|
|
8172
8280
|
queryFn: () => arbi.connectors.slack.status(),
|
|
8173
8281
|
enabled: arbi.isLoggedIn,
|
|
8174
8282
|
// Fresh on every visit: the OAuth return lands here before the status changed server-side.
|
|
@@ -8186,7 +8294,7 @@ function useRefreshConnectorsOnRunEnd(running) {
|
|
|
8186
8294
|
const wasRunning = React.useRef(running);
|
|
8187
8295
|
React.useEffect(() => {
|
|
8188
8296
|
if (wasRunning.current && !running) {
|
|
8189
|
-
void qc.invalidateQueries({ queryKey:
|
|
8297
|
+
void qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.connectorQueryKeys.mine() });
|
|
8190
8298
|
}
|
|
8191
8299
|
wasRunning.current = running;
|
|
8192
8300
|
}, [running, qc]);
|
|
@@ -8201,9 +8309,9 @@ function useConnectorAutoSync(workspaceExtId, opened) {
|
|
|
8201
8309
|
const check = () => {
|
|
8202
8310
|
lastCheck.current = Date.now();
|
|
8203
8311
|
void arbi.connectors.bridgeTokens({ autoSyncWorkspaceExtId: workspaceExtId }).then(() => {
|
|
8204
|
-
void qc.invalidateQueries({ queryKey:
|
|
8205
|
-
void qc.invalidateQueries({ queryKey:
|
|
8206
|
-
void qc.invalidateQueries({ queryKey:
|
|
8312
|
+
void qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.connectorQueryKeys.mine() });
|
|
8313
|
+
void qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.connectorQueryKeys.allMailboxSyncProgress() });
|
|
8314
|
+
void qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.connectorQueryKeys.allDriveSyncProgress() });
|
|
8207
8315
|
});
|
|
8208
8316
|
};
|
|
8209
8317
|
check();
|
|
@@ -8236,7 +8344,7 @@ function useCalendarSupport() {
|
|
|
8236
8344
|
authorize: (vendor, returnPath) => arbi.connectors.authorize(vendor, returnPath),
|
|
8237
8345
|
bridge: (vendor) => arbi.connectors.bridgeTokens({ vendor }),
|
|
8238
8346
|
connectedVendors: async () => (await qc.fetchQuery({
|
|
8239
|
-
queryKey:
|
|
8347
|
+
queryKey: chunkH4FGDXYB_cjs.connectorQueryKeys.mine(),
|
|
8240
8348
|
queryFn: () => arbi.connectors.mine(),
|
|
8241
8349
|
staleTime: 3e4
|
|
8242
8350
|
})).map((c) => c.vendor_key)
|
|
@@ -8247,16 +8355,16 @@ function useCalendarSupport() {
|
|
|
8247
8355
|
}
|
|
8248
8356
|
function invalidateCalendarEvents(qc) {
|
|
8249
8357
|
return Promise.all([
|
|
8250
|
-
qc.invalidateQueries({ queryKey:
|
|
8251
|
-
qc.invalidateQueries({ queryKey:
|
|
8252
|
-
qc.invalidateQueries({ queryKey:
|
|
8253
|
-
qc.invalidateQueries({ queryKey:
|
|
8358
|
+
qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.events() }),
|
|
8359
|
+
qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.eventDetails() }),
|
|
8360
|
+
qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.invitations() }),
|
|
8361
|
+
qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.allLookups() })
|
|
8254
8362
|
]);
|
|
8255
8363
|
}
|
|
8256
8364
|
function invalidateCalendars(qc) {
|
|
8257
8365
|
return Promise.all([
|
|
8258
|
-
qc.invalidateQueries({ queryKey:
|
|
8259
|
-
qc.invalidateQueries({ queryKey:
|
|
8366
|
+
qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.calendars() }),
|
|
8367
|
+
qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.events() })
|
|
8260
8368
|
]);
|
|
8261
8369
|
}
|
|
8262
8370
|
function useOfflineRead() {
|
|
@@ -8278,8 +8386,8 @@ function useCalendarSettings(enabled = true) {
|
|
|
8278
8386
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8279
8387
|
const { read, networkMode } = useOfflineRead();
|
|
8280
8388
|
return reactQuery.useQuery({
|
|
8281
|
-
queryKey:
|
|
8282
|
-
queryFn: () => read(
|
|
8389
|
+
queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.settings(),
|
|
8390
|
+
queryFn: () => read(chunkH4FGDXYB_cjs.calendarQueryKeys.settings(), () => arbi.calendar.getSettings()),
|
|
8283
8391
|
networkMode,
|
|
8284
8392
|
enabled: enabled && arbi.isLoggedIn,
|
|
8285
8393
|
staleTime: 5 * 6e4,
|
|
@@ -8290,8 +8398,8 @@ function useCalendars(enabled = true) {
|
|
|
8290
8398
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8291
8399
|
const { read, networkMode } = useOfflineRead();
|
|
8292
8400
|
return reactQuery.useQuery({
|
|
8293
|
-
queryKey:
|
|
8294
|
-
queryFn: () => read(
|
|
8401
|
+
queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.calendars(),
|
|
8402
|
+
queryFn: () => read(chunkH4FGDXYB_cjs.calendarQueryKeys.calendars(), () => arbi.calendar.listCalendars()),
|
|
8295
8403
|
networkMode,
|
|
8296
8404
|
enabled: enabled && arbi.isLoggedIn,
|
|
8297
8405
|
staleTime: 6e4,
|
|
@@ -8302,9 +8410,9 @@ function useCalendarEvents(params) {
|
|
|
8302
8410
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8303
8411
|
const { read, networkMode } = useOfflineRead();
|
|
8304
8412
|
return reactQuery.useQuery({
|
|
8305
|
-
queryKey: params ?
|
|
8413
|
+
queryKey: params ? chunkH4FGDXYB_cjs.calendarQueryKeys.eventList(params) : chunkH4FGDXYB_cjs.calendarQueryKeys.events(),
|
|
8306
8414
|
queryFn: () => read(
|
|
8307
|
-
|
|
8415
|
+
chunkH4FGDXYB_cjs.calendarQueryKeys.eventList(params),
|
|
8308
8416
|
() => arbi.calendar.listEvents(params)
|
|
8309
8417
|
),
|
|
8310
8418
|
networkMode,
|
|
@@ -8318,9 +8426,9 @@ function useCalendarEvent(id, recurrenceId) {
|
|
|
8318
8426
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8319
8427
|
const { read, networkMode } = useOfflineRead();
|
|
8320
8428
|
return reactQuery.useQuery({
|
|
8321
|
-
queryKey:
|
|
8429
|
+
queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.event(id ?? "", recurrenceId),
|
|
8322
8430
|
queryFn: () => read(
|
|
8323
|
-
|
|
8431
|
+
chunkH4FGDXYB_cjs.calendarQueryKeys.event(id, recurrenceId),
|
|
8324
8432
|
() => arbi.calendar.getEvent(id, recurrenceId)
|
|
8325
8433
|
),
|
|
8326
8434
|
networkMode,
|
|
@@ -8333,9 +8441,9 @@ function useFetchCalendarEvent() {
|
|
|
8333
8441
|
const qc = reactQuery.useQueryClient();
|
|
8334
8442
|
const { read, networkMode } = useOfflineRead();
|
|
8335
8443
|
return (id, recurrenceId) => qc.fetchQuery({
|
|
8336
|
-
queryKey:
|
|
8444
|
+
queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.event(id, recurrenceId),
|
|
8337
8445
|
queryFn: () => read(
|
|
8338
|
-
|
|
8446
|
+
chunkH4FGDXYB_cjs.calendarQueryKeys.event(id, recurrenceId),
|
|
8339
8447
|
() => arbi.calendar.getEvent(id, recurrenceId)
|
|
8340
8448
|
),
|
|
8341
8449
|
networkMode,
|
|
@@ -8346,7 +8454,7 @@ function useCalendarOverlays(range, layers) {
|
|
|
8346
8454
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8347
8455
|
const workspaceId = arbi.hasWorkspace ? arbi.getWorkspaceId() : null;
|
|
8348
8456
|
return reactQuery.useQuery({
|
|
8349
|
-
queryKey:
|
|
8457
|
+
queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.overlays(workspaceId, range ?? void 0, layers),
|
|
8350
8458
|
queryFn: () => arbi.calendar.listOverlays(range, layers),
|
|
8351
8459
|
enabled: !!workspaceId && !!range && layers.length > 0,
|
|
8352
8460
|
staleTime: 6e4,
|
|
@@ -8359,12 +8467,12 @@ function useCalendarOutbox() {
|
|
|
8359
8467
|
const { offline } = useCalendarSupport();
|
|
8360
8468
|
React.useEffect(
|
|
8361
8469
|
() => offline?.subscribe(() => {
|
|
8362
|
-
void qc.invalidateQueries({ queryKey:
|
|
8470
|
+
void qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.outbox() });
|
|
8363
8471
|
}),
|
|
8364
8472
|
[offline, qc]
|
|
8365
8473
|
);
|
|
8366
8474
|
return reactQuery.useQuery({
|
|
8367
|
-
queryKey:
|
|
8475
|
+
queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.outbox(),
|
|
8368
8476
|
queryFn: () => offline ? offline.pending() : Promise.resolve([]),
|
|
8369
8477
|
networkMode: "always",
|
|
8370
8478
|
staleTime: Infinity
|
|
@@ -8373,7 +8481,7 @@ function useCalendarOutbox() {
|
|
|
8373
8481
|
function useCalendarShares(calId) {
|
|
8374
8482
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8375
8483
|
return reactQuery.useQuery({
|
|
8376
|
-
queryKey:
|
|
8484
|
+
queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.shares(calId ?? ""),
|
|
8377
8485
|
queryFn: () => arbi.calendar.listShares(calId),
|
|
8378
8486
|
enabled: !!calId && arbi.isLoggedIn,
|
|
8379
8487
|
retry: false
|
|
@@ -8382,7 +8490,7 @@ function useCalendarShares(calId) {
|
|
|
8382
8490
|
function useHolidayCountries(enabled = true) {
|
|
8383
8491
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8384
8492
|
return reactQuery.useQuery({
|
|
8385
|
-
queryKey:
|
|
8493
|
+
queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.holidayCountries(),
|
|
8386
8494
|
queryFn: () => arbi.calendar.listHolidayCountries(),
|
|
8387
8495
|
enabled: enabled && arbi.isLoggedIn,
|
|
8388
8496
|
staleTime: Infinity,
|
|
@@ -8392,7 +8500,7 @@ function useHolidayCountries(enabled = true) {
|
|
|
8392
8500
|
function useRooms(q) {
|
|
8393
8501
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8394
8502
|
return reactQuery.useQuery({
|
|
8395
|
-
queryKey:
|
|
8503
|
+
queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.rooms(q ?? {}),
|
|
8396
8504
|
queryFn: () => arbi.calendar.listRooms(q ?? {}),
|
|
8397
8505
|
enabled: !!q && arbi.isLoggedIn,
|
|
8398
8506
|
staleTime: 3e4,
|
|
@@ -8403,7 +8511,7 @@ function useRooms(q) {
|
|
|
8403
8511
|
function useFreeBusy(attendees, start, end) {
|
|
8404
8512
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8405
8513
|
return reactQuery.useQuery({
|
|
8406
|
-
queryKey:
|
|
8514
|
+
queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.freebusy(attendees, start ?? "", end ?? ""),
|
|
8407
8515
|
queryFn: () => arbi.calendar.freeBusy({ attendees, start, end }),
|
|
8408
8516
|
enabled: attendees.length > 0 && !!start && !!end && arbi.isLoggedIn,
|
|
8409
8517
|
staleTime: 3e4,
|
|
@@ -8414,7 +8522,7 @@ function useFreeBusy(attendees, start, end) {
|
|
|
8414
8522
|
function useCalendarInvitations() {
|
|
8415
8523
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8416
8524
|
return reactQuery.useQuery({
|
|
8417
|
-
queryKey:
|
|
8525
|
+
queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.invitations(),
|
|
8418
8526
|
queryFn: () => arbi.calendar.listInvitations(),
|
|
8419
8527
|
enabled: arbi.isLoggedIn,
|
|
8420
8528
|
staleTime: 3e4,
|
|
@@ -8425,7 +8533,7 @@ function useCalendarInvitations() {
|
|
|
8425
8533
|
function useCalendarEventByUid(uid) {
|
|
8426
8534
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8427
8535
|
return reactQuery.useQuery({
|
|
8428
|
-
queryKey:
|
|
8536
|
+
queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.lookup(uid ?? ""),
|
|
8429
8537
|
queryFn: () => arbi.calendar.lookupByUid(uid),
|
|
8430
8538
|
enabled: !!uid && arbi.isLoggedIn,
|
|
8431
8539
|
retry: false
|
|
@@ -8436,7 +8544,7 @@ function useSaveCalendarSettings() {
|
|
|
8436
8544
|
const qc = reactQuery.useQueryClient();
|
|
8437
8545
|
return reactQuery.useMutation({
|
|
8438
8546
|
mutationFn: (body) => arbi.calendar.putSettings(body),
|
|
8439
|
-
onSuccess: (data) => qc.setQueryData(
|
|
8547
|
+
onSuccess: (data) => qc.setQueryData(chunkH4FGDXYB_cjs.calendarQueryKeys.settings(), data)
|
|
8440
8548
|
});
|
|
8441
8549
|
}
|
|
8442
8550
|
function useCreateCalendar() {
|
|
@@ -8524,7 +8632,7 @@ function useShareCalendar() {
|
|
|
8524
8632
|
const qc = reactQuery.useQueryClient();
|
|
8525
8633
|
return reactQuery.useMutation({
|
|
8526
8634
|
mutationFn: ({ calId, grantee, role }) => arbi.calendar.share(calId, grantee, role),
|
|
8527
|
-
onSuccess: (_d, v) => qc.invalidateQueries({ queryKey:
|
|
8635
|
+
onSuccess: (_d, v) => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.shares(v.calId) })
|
|
8528
8636
|
});
|
|
8529
8637
|
}
|
|
8530
8638
|
function useUnshareCalendar() {
|
|
@@ -8532,7 +8640,7 @@ function useUnshareCalendar() {
|
|
|
8532
8640
|
const qc = reactQuery.useQueryClient();
|
|
8533
8641
|
return reactQuery.useMutation({
|
|
8534
8642
|
mutationFn: ({ calId, userId }) => arbi.calendar.unshare(calId, userId),
|
|
8535
|
-
onSuccess: (_d, v) => qc.invalidateQueries({ queryKey:
|
|
8643
|
+
onSuccess: (_d, v) => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.shares(v.calId) })
|
|
8536
8644
|
});
|
|
8537
8645
|
}
|
|
8538
8646
|
function useSubscribeCalendar() {
|
|
@@ -8564,7 +8672,7 @@ function useCreateRoom() {
|
|
|
8564
8672
|
const qc = reactQuery.useQueryClient();
|
|
8565
8673
|
return reactQuery.useMutation({
|
|
8566
8674
|
mutationFn: (body) => arbi.calendar.createRoom(body),
|
|
8567
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
8675
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.allRooms() })
|
|
8568
8676
|
});
|
|
8569
8677
|
}
|
|
8570
8678
|
function useFindTime() {
|
|
@@ -8590,21 +8698,21 @@ function usePublishCalendar() {
|
|
|
8590
8698
|
mutationFn: ({ accountId, calendarId }) => arbi.calendar.publishToAccount(accountId, calendarId),
|
|
8591
8699
|
onSuccess: () => {
|
|
8592
8700
|
void invalidateCalendars(qc);
|
|
8593
|
-
void qc.invalidateQueries({ queryKey:
|
|
8701
|
+
void qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.accounts() });
|
|
8594
8702
|
}
|
|
8595
8703
|
});
|
|
8596
8704
|
}
|
|
8597
8705
|
function invalidateAccounts(qc) {
|
|
8598
8706
|
return Promise.all([
|
|
8599
|
-
qc.invalidateQueries({ queryKey:
|
|
8600
|
-
qc.invalidateQueries({ queryKey:
|
|
8601
|
-
qc.invalidateQueries({ queryKey:
|
|
8707
|
+
qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.accounts() }),
|
|
8708
|
+
qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.calendars() }),
|
|
8709
|
+
qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.events() })
|
|
8602
8710
|
]);
|
|
8603
8711
|
}
|
|
8604
8712
|
function useCalendarAccounts(enabled = true) {
|
|
8605
8713
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8606
8714
|
return reactQuery.useQuery({
|
|
8607
|
-
queryKey:
|
|
8715
|
+
queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.accounts(),
|
|
8608
8716
|
queryFn: () => arbi.calendar.listAccounts(),
|
|
8609
8717
|
enabled: enabled && arbi.isLoggedIn,
|
|
8610
8718
|
staleTime: 3e4,
|
|
@@ -8614,7 +8722,7 @@ function useCalendarAccounts(enabled = true) {
|
|
|
8614
8722
|
function useCalDavProfiles(enabled = true) {
|
|
8615
8723
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8616
8724
|
return reactQuery.useQuery({
|
|
8617
|
-
queryKey:
|
|
8725
|
+
queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.caldavProfiles(),
|
|
8618
8726
|
queryFn: () => arbi.calendar.listCalDavProfiles(),
|
|
8619
8727
|
enabled: enabled && arbi.isLoggedIn,
|
|
8620
8728
|
staleTime: 10 * 6e4,
|
|
@@ -8757,7 +8865,7 @@ function useSyncAccountsOnOpen(enabled = true) {
|
|
|
8757
8865
|
function useBookingPages(enabled = true) {
|
|
8758
8866
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
8759
8867
|
return reactQuery.useQuery({
|
|
8760
|
-
queryKey:
|
|
8868
|
+
queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.bookingPages(),
|
|
8761
8869
|
queryFn: () => arbi.calendar.listBookingPages(),
|
|
8762
8870
|
enabled: enabled && arbi.isLoggedIn,
|
|
8763
8871
|
staleTime: 3e4,
|
|
@@ -8769,7 +8877,7 @@ function useSaveBookingPage() {
|
|
|
8769
8877
|
const qc = reactQuery.useQueryClient();
|
|
8770
8878
|
return reactQuery.useMutation({
|
|
8771
8879
|
mutationFn: (body) => arbi.calendar.putBookingPage(body),
|
|
8772
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
8880
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.bookingPages() })
|
|
8773
8881
|
});
|
|
8774
8882
|
}
|
|
8775
8883
|
function useDeleteBookingPage() {
|
|
@@ -8777,11 +8885,11 @@ function useDeleteBookingPage() {
|
|
|
8777
8885
|
const qc = reactQuery.useQueryClient();
|
|
8778
8886
|
return reactQuery.useMutation({
|
|
8779
8887
|
mutationFn: (slug) => arbi.calendar.deleteBookingPage(slug),
|
|
8780
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
8888
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.calendarQueryKeys.bookingPages() })
|
|
8781
8889
|
});
|
|
8782
8890
|
}
|
|
8783
8891
|
function useWorkspaceDocs(workspaceId) {
|
|
8784
|
-
const { data: docs = [], isLoading, isError } =
|
|
8892
|
+
const { data: docs = [], isLoading, isError } = chunkKFFH2JJM_cjs.useDocuments(workspaceId);
|
|
8785
8893
|
const docIds = React.useMemo(
|
|
8786
8894
|
() => docs.map((d) => d.external_id).filter((id) => !!id),
|
|
8787
8895
|
[docs]
|
|
@@ -8789,7 +8897,7 @@ function useWorkspaceDocs(workspaceId) {
|
|
|
8789
8897
|
return { wsId: workspaceId, docs, docIds, isLoading, isError, ready: docIds.length > 0 };
|
|
8790
8898
|
}
|
|
8791
8899
|
function useAiTask() {
|
|
8792
|
-
const mutation =
|
|
8900
|
+
const mutation = chunkL3NHETSD_cjs.useAssistantQuery();
|
|
8793
8901
|
const [status, setStatus] = React.useState("idle");
|
|
8794
8902
|
const [text, setText] = React.useState("");
|
|
8795
8903
|
const [stepCount, setStepCount] = React.useState(0);
|
|
@@ -9294,7 +9402,7 @@ var IDLE = {
|
|
|
9294
9402
|
};
|
|
9295
9403
|
function useSemanticSearch(docIds = [], options = {}) {
|
|
9296
9404
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
9297
|
-
const [ownSession] = React.useState(
|
|
9405
|
+
const [ownSession] = React.useState(chunkQYUL4GQC_cjs.createSearchSession);
|
|
9298
9406
|
const session = options.session ?? ownSession;
|
|
9299
9407
|
const { model, workspaceId } = options;
|
|
9300
9408
|
const state = React.useSyncExternalStore(session.subscribe, session.getState, session.getState);
|
|
@@ -9303,7 +9411,7 @@ function useSemanticSearch(docIds = [], options = {}) {
|
|
|
9303
9411
|
if (!workspaceId) return;
|
|
9304
9412
|
const current = session.getState().workspaceId;
|
|
9305
9413
|
if (current !== workspaceId) {
|
|
9306
|
-
if (current)
|
|
9414
|
+
if (current) chunkQYUL4GQC_cjs.clearSearchSession(workspaceId, session);
|
|
9307
9415
|
else session.setState({ workspaceId });
|
|
9308
9416
|
}
|
|
9309
9417
|
}, [session, workspaceId]);
|
|
@@ -9311,7 +9419,7 @@ function useSemanticSearch(docIds = [], options = {}) {
|
|
|
9311
9419
|
async (query, mode = "hybrid") => {
|
|
9312
9420
|
const trimmed = query.trim();
|
|
9313
9421
|
if (!trimmed) {
|
|
9314
|
-
|
|
9422
|
+
chunkQYUL4GQC_cjs.clearSearchSession(void 0, session);
|
|
9315
9423
|
return;
|
|
9316
9424
|
}
|
|
9317
9425
|
const run = session.getState().run + 1;
|
|
@@ -9340,7 +9448,7 @@ function useSemanticSearch(docIds = [], options = {}) {
|
|
|
9340
9448
|
},
|
|
9341
9449
|
[arbi, docIds, model, session, workspaceId]
|
|
9342
9450
|
);
|
|
9343
|
-
const clear = React.useCallback(() =>
|
|
9451
|
+
const clear = React.useCallback(() => chunkQYUL4GQC_cjs.clearSearchSession(void 0, session), [session]);
|
|
9344
9452
|
const shown = foreign ? IDLE : state;
|
|
9345
9453
|
return {
|
|
9346
9454
|
query: shown.query,
|
|
@@ -10227,7 +10335,7 @@ function ActivityFeed({
|
|
|
10227
10335
|
enabled,
|
|
10228
10336
|
"data-testid": testId = "activity-feed"
|
|
10229
10337
|
}) {
|
|
10230
|
-
const { data, isLoading, isError } =
|
|
10338
|
+
const { data, isLoading, isError } = chunkL3NHETSD_cjs.useActivity({ limit, enabled });
|
|
10231
10339
|
if (isLoading) {
|
|
10232
10340
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkS6A6FSG7_cjs.cn("space-y-2", className), "data-testid": testId, "aria-busy": "true", children: Array.from({ length: 3 }).map((_, i) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3 py-1.5", children: [
|
|
10233
10341
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-4 w-4 shrink-0 animate-pulse rounded-full bg-muted" }),
|
|
@@ -10279,7 +10387,7 @@ var workTypes = [
|
|
|
10279
10387
|
function useWorkNotifications(options) {
|
|
10280
10388
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
10281
10389
|
const queries = reactQuery.useQueryClient();
|
|
10282
|
-
const queryKey =
|
|
10390
|
+
const queryKey = chunkH4FGDXYB_cjs.arbiQueryKeys.typedNotifications("work", options.apiUrl, options.userId);
|
|
10283
10391
|
const query = reactQuery.useQuery({
|
|
10284
10392
|
queryKey,
|
|
10285
10393
|
queryFn: async () => (await Promise.all(workTypes.map((type) => arbi.notifications.list({ type })))).flat(),
|
|
@@ -10300,16 +10408,16 @@ function useNotifications(options = {}) {
|
|
|
10300
10408
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
10301
10409
|
const queries = reactQuery.useQueryClient();
|
|
10302
10410
|
const limit = options.limit ?? 100;
|
|
10303
|
-
const ws = React.useContext(
|
|
10411
|
+
const ws = React.useContext(chunkZLHS3UKP_cjs.ArbiWsContext);
|
|
10304
10412
|
React.useEffect(
|
|
10305
10413
|
() => ws?.subscribe((message) => {
|
|
10306
10414
|
if ("sender" in message && "recipient" in message)
|
|
10307
|
-
void queries.invalidateQueries({ queryKey:
|
|
10415
|
+
void queries.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.allNotifications() });
|
|
10308
10416
|
}),
|
|
10309
10417
|
[ws, queries]
|
|
10310
10418
|
);
|
|
10311
10419
|
return reactQuery.useQuery({
|
|
10312
|
-
queryKey:
|
|
10420
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.notifications(limit),
|
|
10313
10421
|
queryFn: () => arbi.notifications.list({ limit }),
|
|
10314
10422
|
enabled: (options.enabled ?? true) && arbi.isLoggedIn
|
|
10315
10423
|
});
|
|
@@ -10319,7 +10427,7 @@ function useDeleteNotifications() {
|
|
|
10319
10427
|
const queries = reactQuery.useQueryClient();
|
|
10320
10428
|
return reactQuery.useMutation({
|
|
10321
10429
|
mutationFn: (ids) => arbi.notifications.delete(ids),
|
|
10322
|
-
onSuccess: () => queries.invalidateQueries({ queryKey:
|
|
10430
|
+
onSuccess: () => queries.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.allNotifications() })
|
|
10323
10431
|
});
|
|
10324
10432
|
}
|
|
10325
10433
|
function useMarkNotificationsRead() {
|
|
@@ -10327,7 +10435,7 @@ function useMarkNotificationsRead() {
|
|
|
10327
10435
|
const queries = reactQuery.useQueryClient();
|
|
10328
10436
|
return reactQuery.useMutation({
|
|
10329
10437
|
mutationFn: (ids) => arbi.notifications.markRead(ids),
|
|
10330
|
-
onSuccess: () => queries.invalidateQueries({ queryKey:
|
|
10438
|
+
onSuccess: () => queries.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.allNotifications() })
|
|
10331
10439
|
});
|
|
10332
10440
|
}
|
|
10333
10441
|
|
|
@@ -10829,7 +10937,7 @@ function ConversationList({
|
|
|
10829
10937
|
children: c.subtitle ?? preview
|
|
10830
10938
|
}
|
|
10831
10939
|
),
|
|
10832
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 text-xs text-muted-foreground", children: lastMessage ?
|
|
10940
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 text-xs text-muted-foreground", children: lastMessage ? chunkQYUL4GQC_cjs.formatRelativeTime(lastMessage.createdAt) : "" })
|
|
10833
10941
|
] })
|
|
10834
10942
|
] })
|
|
10835
10943
|
] });
|
|
@@ -11061,7 +11169,7 @@ function DmComposer({
|
|
|
11061
11169
|
function useChats(options = {}) {
|
|
11062
11170
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
11063
11171
|
return reactQuery.useQuery({
|
|
11064
|
-
queryKey:
|
|
11172
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.chatList(),
|
|
11065
11173
|
queryFn: () => arbi.chats.list(),
|
|
11066
11174
|
enabled: (options.enabled ?? true) && arbi.isLoggedIn
|
|
11067
11175
|
});
|
|
@@ -11069,20 +11177,20 @@ function useChats(options = {}) {
|
|
|
11069
11177
|
function useChatLiveUpdates() {
|
|
11070
11178
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
11071
11179
|
const queryClient = reactQuery.useQueryClient();
|
|
11072
|
-
const ws = React.useContext(
|
|
11180
|
+
const ws = React.useContext(chunkZLHS3UKP_cjs.ArbiWsContext);
|
|
11073
11181
|
const arbiRef = React.useRef(arbi);
|
|
11074
11182
|
arbiRef.current = arbi;
|
|
11075
11183
|
React.useEffect(
|
|
11076
11184
|
() => ws?.subscribe((message) => {
|
|
11077
11185
|
if (message.type.startsWith("chat.") || message.type === "agent_dm_status")
|
|
11078
|
-
void
|
|
11186
|
+
void chunkZLHS3UKP_cjs.applyChatEvent(arbiRef.current, queryClient, message);
|
|
11079
11187
|
}),
|
|
11080
11188
|
[ws, queryClient]
|
|
11081
11189
|
);
|
|
11082
11190
|
}
|
|
11083
11191
|
function useAgentDmStatus(agentExtId) {
|
|
11084
11192
|
const { data } = reactQuery.useQuery({
|
|
11085
|
-
queryKey:
|
|
11193
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.agentDmStatus(agentExtId ?? ""),
|
|
11086
11194
|
// Written by the events only: nothing to fetch.
|
|
11087
11195
|
queryFn: () => null,
|
|
11088
11196
|
enabled: false,
|
|
@@ -11097,7 +11205,7 @@ function useChatUnreadTotal() {
|
|
|
11097
11205
|
function useUnreadByPeer() {
|
|
11098
11206
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
11099
11207
|
const { data = [] } = useChats();
|
|
11100
|
-
const me =
|
|
11208
|
+
const me = chunkZLHS3UKP_cjs.myChatId(arbi);
|
|
11101
11209
|
return React.useMemo(() => {
|
|
11102
11210
|
const out = /* @__PURE__ */ new Map();
|
|
11103
11211
|
for (const c of data) {
|
|
@@ -11141,14 +11249,14 @@ function useChatThread(chat) {
|
|
|
11141
11249
|
const chatRef = React.useRef(chat);
|
|
11142
11250
|
chatRef.current = chat;
|
|
11143
11251
|
const query = reactQuery.useQuery({
|
|
11144
|
-
queryKey:
|
|
11252
|
+
queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.chatThread(chatExtId),
|
|
11145
11253
|
queryFn: () => arbi.chats.page(chatRef.current),
|
|
11146
11254
|
enabled: !!chat && arbi.isLoggedIn,
|
|
11147
11255
|
staleTime: Infinity
|
|
11148
11256
|
});
|
|
11149
11257
|
const [loadingOlder, setLoadingOlder] = React.useState(false);
|
|
11150
11258
|
const loadOlder = React.useCallback(async () => {
|
|
11151
|
-
const key =
|
|
11259
|
+
const key = chunkH4FGDXYB_cjs.arbiQueryKeys.chatThread(chatExtId);
|
|
11152
11260
|
const current = queryClient.getQueryData(key);
|
|
11153
11261
|
const oldest = current?.messages.find((m) => !m.optimistic);
|
|
11154
11262
|
if (!chatRef.current || !current?.hasMore || !oldest) return;
|
|
@@ -11184,15 +11292,15 @@ function useChatPost() {
|
|
|
11184
11292
|
const queryClient = reactQuery.useQueryClient();
|
|
11185
11293
|
return React.useCallback(
|
|
11186
11294
|
async (target, post) => {
|
|
11187
|
-
const me =
|
|
11295
|
+
const me = chunkZLHS3UKP_cjs.myChatId(arbi);
|
|
11188
11296
|
if (!me) throw new Error("No active session");
|
|
11189
11297
|
let chat = target.chat;
|
|
11190
11298
|
if (!chat) {
|
|
11191
11299
|
if (!target.peerExtId) throw new Error("Could not resolve the conversation");
|
|
11192
11300
|
chat = await arbi.chats.openDirect(target.peerExtId);
|
|
11193
|
-
|
|
11301
|
+
chunkZLHS3UKP_cjs.upsertChat(queryClient, chat);
|
|
11194
11302
|
queryClient.setQueryData(
|
|
11195
|
-
|
|
11303
|
+
chunkH4FGDXYB_cjs.arbiQueryKeys.chatThread(chat.external_id),
|
|
11196
11304
|
(old) => old ?? { messages: [], hasMore: false }
|
|
11197
11305
|
);
|
|
11198
11306
|
}
|
|
@@ -11213,7 +11321,7 @@ function useChatPost() {
|
|
|
11213
11321
|
updated_at: now,
|
|
11214
11322
|
optimistic: true
|
|
11215
11323
|
};
|
|
11216
|
-
|
|
11324
|
+
chunkZLHS3UKP_cjs.appendToThread(queryClient, chat.external_id, optimistic);
|
|
11217
11325
|
try {
|
|
11218
11326
|
let attachments = [];
|
|
11219
11327
|
if (files.length) {
|
|
@@ -11233,16 +11341,16 @@ function useChatPost() {
|
|
|
11233
11341
|
...post.workspaceExtId ? { workspaceExtId: post.workspaceExtId } : {},
|
|
11234
11342
|
contextOnly: !!post.contextOnly
|
|
11235
11343
|
});
|
|
11236
|
-
|
|
11237
|
-
|
|
11344
|
+
chunkZLHS3UKP_cjs.appendToThread(queryClient, chat.external_id, message, optimisticId);
|
|
11345
|
+
chunkZLHS3UKP_cjs.upsertChat(queryClient, {
|
|
11238
11346
|
...chat,
|
|
11239
11347
|
last_message: message,
|
|
11240
11348
|
last_message_at: message.created_at
|
|
11241
11349
|
});
|
|
11242
11350
|
return { chat, message };
|
|
11243
11351
|
} catch (err) {
|
|
11244
|
-
|
|
11245
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
11352
|
+
chunkZLHS3UKP_cjs.dropFromThread(queryClient, chat.external_id, optimisticId);
|
|
11353
|
+
void queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.chatList() });
|
|
11246
11354
|
throw err;
|
|
11247
11355
|
}
|
|
11248
11356
|
},
|
|
@@ -11253,7 +11361,7 @@ function useDeleteChatMessage() {
|
|
|
11253
11361
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
11254
11362
|
const queryClient = reactQuery.useQueryClient();
|
|
11255
11363
|
return React.useCallback(
|
|
11256
|
-
(chatExtId, messageExtId) =>
|
|
11364
|
+
(chatExtId, messageExtId) => chunkZLHS3UKP_cjs.deleteChatMessage(arbi, queryClient, chatExtId, messageExtId),
|
|
11257
11365
|
[arbi, queryClient]
|
|
11258
11366
|
);
|
|
11259
11367
|
}
|
|
@@ -11262,7 +11370,7 @@ function useMarkChatRead() {
|
|
|
11262
11370
|
const queryClient = reactQuery.useQueryClient();
|
|
11263
11371
|
return React.useCallback(
|
|
11264
11372
|
(chat, messageExtId) => {
|
|
11265
|
-
|
|
11373
|
+
chunkZLHS3UKP_cjs.upsertChat(queryClient, { ...chat, unread_count: 0 });
|
|
11266
11374
|
return arbi.chats.markRead(chat.external_id, messageExtId).then(
|
|
11267
11375
|
() => void 0,
|
|
11268
11376
|
() => void 0
|
|
@@ -11276,7 +11384,7 @@ function useCreateGroupChat() {
|
|
|
11276
11384
|
const queryClient = reactQuery.useQueryClient();
|
|
11277
11385
|
return reactQuery.useMutation({
|
|
11278
11386
|
mutationFn: (params) => arbi.chats.createGroup(params),
|
|
11279
|
-
onSuccess: (chat) =>
|
|
11387
|
+
onSuccess: (chat) => chunkZLHS3UKP_cjs.upsertChat(queryClient, chat)
|
|
11280
11388
|
});
|
|
11281
11389
|
}
|
|
11282
11390
|
function useRenameChat() {
|
|
@@ -11284,7 +11392,7 @@ function useRenameChat() {
|
|
|
11284
11392
|
const queryClient = reactQuery.useQueryClient();
|
|
11285
11393
|
return reactQuery.useMutation({
|
|
11286
11394
|
mutationFn: (vars) => arbi.chats.rename(vars.chat, vars.title),
|
|
11287
|
-
onSuccess: (chat) =>
|
|
11395
|
+
onSuccess: (chat) => chunkZLHS3UKP_cjs.upsertChat(queryClient, chat)
|
|
11288
11396
|
});
|
|
11289
11397
|
}
|
|
11290
11398
|
function useAddChatMembers() {
|
|
@@ -11292,7 +11400,7 @@ function useAddChatMembers() {
|
|
|
11292
11400
|
const queryClient = reactQuery.useQueryClient();
|
|
11293
11401
|
return reactQuery.useMutation({
|
|
11294
11402
|
mutationFn: (vars) => arbi.chats.addMembers(vars.chat, vars.members, { callKey: vars.callKey }),
|
|
11295
|
-
onSuccess: (chat) =>
|
|
11403
|
+
onSuccess: (chat) => chunkZLHS3UKP_cjs.upsertChat(queryClient, chat)
|
|
11296
11404
|
});
|
|
11297
11405
|
}
|
|
11298
11406
|
function useRemoveChatMember() {
|
|
@@ -11301,8 +11409,8 @@ function useRemoveChatMember() {
|
|
|
11301
11409
|
return reactQuery.useMutation({
|
|
11302
11410
|
mutationFn: (vars) => arbi.chats.removeMember(vars.chat, vars.userExtId),
|
|
11303
11411
|
onSuccess: (_data, vars) => {
|
|
11304
|
-
if (vars.userExtId ===
|
|
11305
|
-
else return queryClient.invalidateQueries({ queryKey:
|
|
11412
|
+
if (vars.userExtId === chunkZLHS3UKP_cjs.myChatId(arbi)) chunkZLHS3UKP_cjs.removeChat(queryClient, vars.chat.external_id);
|
|
11413
|
+
else return queryClient.invalidateQueries({ queryKey: chunkH4FGDXYB_cjs.arbiQueryKeys.chatList() });
|
|
11306
11414
|
}
|
|
11307
11415
|
});
|
|
11308
11416
|
}
|
|
@@ -11745,1259 +11853,1251 @@ function CommandPaletteProvider({
|
|
|
11745
11853
|
|
|
11746
11854
|
Object.defineProperty(exports, "AUDIENCE_CHOICES", {
|
|
11747
11855
|
enumerable: true,
|
|
11748
|
-
get: function () { return
|
|
11856
|
+
get: function () { return chunkZLHS3UKP_cjs.AUDIENCE_CHOICES; }
|
|
11749
11857
|
});
|
|
11750
11858
|
Object.defineProperty(exports, "CALL_CAPTION_TOPIC", {
|
|
11751
11859
|
enumerable: true,
|
|
11752
|
-
get: function () { return
|
|
11860
|
+
get: function () { return chunkZLHS3UKP_cjs.CALL_CAPTION_TOPIC; }
|
|
11753
11861
|
});
|
|
11754
11862
|
Object.defineProperty(exports, "CALL_CHAT_MAX_CHARS", {
|
|
11755
11863
|
enumerable: true,
|
|
11756
|
-
get: function () { return
|
|
11864
|
+
get: function () { return chunkZLHS3UKP_cjs.CALL_CHAT_MAX_CHARS; }
|
|
11757
11865
|
});
|
|
11758
11866
|
Object.defineProperty(exports, "CALL_CHAT_TOPIC", {
|
|
11759
11867
|
enumerable: true,
|
|
11760
|
-
get: function () { return
|
|
11868
|
+
get: function () { return chunkZLHS3UKP_cjs.CALL_CHAT_TOPIC; }
|
|
11761
11869
|
});
|
|
11762
11870
|
Object.defineProperty(exports, "CALL_MODERATION_TOPIC", {
|
|
11763
11871
|
enumerable: true,
|
|
11764
|
-
get: function () { return
|
|
11872
|
+
get: function () { return chunkZLHS3UKP_cjs.CALL_MODERATION_TOPIC; }
|
|
11765
11873
|
});
|
|
11766
11874
|
Object.defineProperty(exports, "CALL_RECORDING_TOPIC", {
|
|
11767
11875
|
enumerable: true,
|
|
11768
|
-
get: function () { return
|
|
11876
|
+
get: function () { return chunkZLHS3UKP_cjs.CALL_RECORDING_TOPIC; }
|
|
11769
11877
|
});
|
|
11770
11878
|
Object.defineProperty(exports, "CALL_TRANSCRIPTION_TOPIC", {
|
|
11771
11879
|
enumerable: true,
|
|
11772
|
-
get: function () { return
|
|
11880
|
+
get: function () { return chunkZLHS3UKP_cjs.CALL_TRANSCRIPTION_TOPIC; }
|
|
11773
11881
|
});
|
|
11774
11882
|
Object.defineProperty(exports, "CALL_WEBINAR_TOPIC", {
|
|
11775
11883
|
enumerable: true,
|
|
11776
|
-
get: function () { return
|
|
11884
|
+
get: function () { return chunkZLHS3UKP_cjs.CALL_WEBINAR_TOPIC; }
|
|
11777
11885
|
});
|
|
11778
11886
|
Object.defineProperty(exports, "CAPTION_MAX_CHARS", {
|
|
11779
11887
|
enumerable: true,
|
|
11780
|
-
get: function () { return
|
|
11888
|
+
get: function () { return chunkZLHS3UKP_cjs.CAPTION_MAX_CHARS; }
|
|
11781
11889
|
});
|
|
11782
11890
|
Object.defineProperty(exports, "COMPOSITE_AUDIO_BITS_PER_SECOND", {
|
|
11783
11891
|
enumerable: true,
|
|
11784
|
-
get: function () { return
|
|
11892
|
+
get: function () { return chunkZLHS3UKP_cjs.COMPOSITE_AUDIO_BITS_PER_SECOND; }
|
|
11785
11893
|
});
|
|
11786
11894
|
Object.defineProperty(exports, "COMPOSITE_VIDEO_BITS_PER_SECOND", {
|
|
11787
11895
|
enumerable: true,
|
|
11788
|
-
get: function () { return
|
|
11896
|
+
get: function () { return chunkZLHS3UKP_cjs.COMPOSITE_VIDEO_BITS_PER_SECOND; }
|
|
11789
11897
|
});
|
|
11790
11898
|
Object.defineProperty(exports, "DEFAULT_JOIN_CHOICES", {
|
|
11791
11899
|
enumerable: true,
|
|
11792
|
-
get: function () { return
|
|
11900
|
+
get: function () { return chunkZLHS3UKP_cjs.DEFAULT_JOIN_CHOICES; }
|
|
11793
11901
|
});
|
|
11794
11902
|
Object.defineProperty(exports, "EMPTY_CALL_SESSION", {
|
|
11795
11903
|
enumerable: true,
|
|
11796
|
-
get: function () { return
|
|
11904
|
+
get: function () { return chunkZLHS3UKP_cjs.EMPTY_CALL_SESSION; }
|
|
11797
11905
|
});
|
|
11798
11906
|
Object.defineProperty(exports, "EXPORT_SAMPLE_RATE", {
|
|
11799
11907
|
enumerable: true,
|
|
11800
|
-
get: function () { return
|
|
11908
|
+
get: function () { return chunkZLHS3UKP_cjs.EXPORT_SAMPLE_RATE; }
|
|
11801
11909
|
});
|
|
11802
11910
|
Object.defineProperty(exports, "HISTORY_LIMIT", {
|
|
11803
11911
|
enumerable: true,
|
|
11804
|
-
get: function () { return
|
|
11912
|
+
get: function () { return chunkZLHS3UKP_cjs.HISTORY_LIMIT; }
|
|
11805
11913
|
});
|
|
11806
11914
|
Object.defineProperty(exports, "LIVE_SEGMENTER", {
|
|
11807
11915
|
enumerable: true,
|
|
11808
|
-
get: function () { return
|
|
11916
|
+
get: function () { return chunkZLHS3UKP_cjs.LIVE_SEGMENTER; }
|
|
11809
11917
|
});
|
|
11810
11918
|
Object.defineProperty(exports, "MAX_AVATAR_FILE_BYTES", {
|
|
11811
11919
|
enumerable: true,
|
|
11812
|
-
get: function () { return
|
|
11920
|
+
get: function () { return chunkZLHS3UKP_cjs.MAX_AVATAR_FILE_BYTES; }
|
|
11813
11921
|
});
|
|
11814
11922
|
Object.defineProperty(exports, "MUTED_DEDUPE_MS", {
|
|
11815
11923
|
enumerable: true,
|
|
11816
|
-
get: function () { return
|
|
11924
|
+
get: function () { return chunkZLHS3UKP_cjs.MUTED_DEDUPE_MS; }
|
|
11817
11925
|
});
|
|
11818
11926
|
Object.defineProperty(exports, "PLAYBACK_LOOKAHEAD_MS", {
|
|
11819
11927
|
enumerable: true,
|
|
11820
|
-
get: function () { return
|
|
11928
|
+
get: function () { return chunkZLHS3UKP_cjs.PLAYBACK_LOOKAHEAD_MS; }
|
|
11821
11929
|
});
|
|
11822
11930
|
Object.defineProperty(exports, "READ_ONLY_MEETING_TEXT", {
|
|
11823
11931
|
enumerable: true,
|
|
11824
|
-
get: function () { return
|
|
11932
|
+
get: function () { return chunkZLHS3UKP_cjs.READ_ONLY_MEETING_TEXT; }
|
|
11825
11933
|
});
|
|
11826
11934
|
Object.defineProperty(exports, "RECORDING_CHUNK_MS", {
|
|
11827
11935
|
enumerable: true,
|
|
11828
|
-
get: function () { return
|
|
11936
|
+
get: function () { return chunkZLHS3UKP_cjs.RECORDING_CHUNK_MS; }
|
|
11829
11937
|
});
|
|
11830
11938
|
Object.defineProperty(exports, "RECORDING_SEGMENTER", {
|
|
11831
11939
|
enumerable: true,
|
|
11832
|
-
get: function () { return
|
|
11940
|
+
get: function () { return chunkZLHS3UKP_cjs.RECORDING_SEGMENTER; }
|
|
11833
11941
|
});
|
|
11834
11942
|
Object.defineProperty(exports, "SEGMENT_FRAME_MS", {
|
|
11835
11943
|
enumerable: true,
|
|
11836
|
-
get: function () { return
|
|
11944
|
+
get: function () { return chunkZLHS3UKP_cjs.SEGMENT_FRAME_MS; }
|
|
11837
11945
|
});
|
|
11838
11946
|
Object.defineProperty(exports, "SEGMENT_ID_PATTERN", {
|
|
11839
11947
|
enumerable: true,
|
|
11840
|
-
get: function () { return
|
|
11948
|
+
get: function () { return chunkZLHS3UKP_cjs.SEGMENT_ID_PATTERN; }
|
|
11841
11949
|
});
|
|
11842
11950
|
Object.defineProperty(exports, "SEGMENT_PRE_ROLL_MS", {
|
|
11843
11951
|
enumerable: true,
|
|
11844
|
-
get: function () { return
|
|
11952
|
+
get: function () { return chunkZLHS3UKP_cjs.SEGMENT_PRE_ROLL_MS; }
|
|
11845
11953
|
});
|
|
11846
11954
|
Object.defineProperty(exports, "SHORT_PIECE_MERGE_GAP_MS", {
|
|
11847
11955
|
enumerable: true,
|
|
11848
|
-
get: function () { return
|
|
11956
|
+
get: function () { return chunkZLHS3UKP_cjs.SHORT_PIECE_MERGE_GAP_MS; }
|
|
11849
11957
|
});
|
|
11850
11958
|
Object.defineProperty(exports, "SPEAKER_AUDIO_BITS_PER_SECOND", {
|
|
11851
11959
|
enumerable: true,
|
|
11852
|
-
get: function () { return
|
|
11960
|
+
get: function () { return chunkZLHS3UKP_cjs.SPEAKER_AUDIO_BITS_PER_SECOND; }
|
|
11853
11961
|
});
|
|
11854
11962
|
Object.defineProperty(exports, "TrackUploader", {
|
|
11855
11963
|
enumerable: true,
|
|
11856
|
-
get: function () { return
|
|
11964
|
+
get: function () { return chunkZLHS3UKP_cjs.TrackUploader; }
|
|
11857
11965
|
});
|
|
11858
11966
|
Object.defineProperty(exports, "UPLOAD_ATTEMPTS", {
|
|
11859
11967
|
enumerable: true,
|
|
11860
|
-
get: function () { return
|
|
11968
|
+
get: function () { return chunkZLHS3UKP_cjs.UPLOAD_ATTEMPTS; }
|
|
11861
11969
|
});
|
|
11862
11970
|
Object.defineProperty(exports, "UPLOAD_BACKOFF_MS", {
|
|
11863
11971
|
enumerable: true,
|
|
11864
|
-
get: function () { return
|
|
11972
|
+
get: function () { return chunkZLHS3UKP_cjs.UPLOAD_BACKOFF_MS; }
|
|
11865
11973
|
});
|
|
11866
11974
|
Object.defineProperty(exports, "acceptRing", {
|
|
11867
11975
|
enumerable: true,
|
|
11868
|
-
get: function () { return
|
|
11976
|
+
get: function () { return chunkZLHS3UKP_cjs.acceptRing; }
|
|
11869
11977
|
});
|
|
11870
11978
|
Object.defineProperty(exports, "addConversationToList", {
|
|
11871
11979
|
enumerable: true,
|
|
11872
|
-
get: function () { return
|
|
11980
|
+
get: function () { return chunkZLHS3UKP_cjs.addConversationToList; }
|
|
11873
11981
|
});
|
|
11874
11982
|
Object.defineProperty(exports, "appendToThread", {
|
|
11875
11983
|
enumerable: true,
|
|
11876
|
-
get: function () { return
|
|
11984
|
+
get: function () { return chunkZLHS3UKP_cjs.appendToThread; }
|
|
11877
11985
|
});
|
|
11878
11986
|
Object.defineProperty(exports, "applyAgentDmStatus", {
|
|
11879
11987
|
enumerable: true,
|
|
11880
|
-
get: function () { return
|
|
11988
|
+
get: function () { return chunkZLHS3UKP_cjs.applyAgentDmStatus; }
|
|
11881
11989
|
});
|
|
11882
11990
|
Object.defineProperty(exports, "applyCallEvent", {
|
|
11883
11991
|
enumerable: true,
|
|
11884
|
-
get: function () { return
|
|
11992
|
+
get: function () { return chunkZLHS3UKP_cjs.applyCallEvent; }
|
|
11885
11993
|
});
|
|
11886
11994
|
Object.defineProperty(exports, "applyChatEvent", {
|
|
11887
11995
|
enumerable: true,
|
|
11888
|
-
get: function () { return
|
|
11996
|
+
get: function () { return chunkZLHS3UKP_cjs.applyChatEvent; }
|
|
11889
11997
|
});
|
|
11890
11998
|
Object.defineProperty(exports, "applyChatMessage", {
|
|
11891
11999
|
enumerable: true,
|
|
11892
|
-
get: function () { return
|
|
12000
|
+
get: function () { return chunkZLHS3UKP_cjs.applyChatMessage; }
|
|
11893
12001
|
});
|
|
11894
12002
|
Object.defineProperty(exports, "applyChatRead", {
|
|
11895
12003
|
enumerable: true,
|
|
11896
|
-
get: function () { return
|
|
12004
|
+
get: function () { return chunkZLHS3UKP_cjs.applyChatRead; }
|
|
11897
12005
|
});
|
|
11898
12006
|
Object.defineProperty(exports, "applyChatUpdated", {
|
|
11899
12007
|
enumerable: true,
|
|
11900
|
-
get: function () { return
|
|
12008
|
+
get: function () { return chunkZLHS3UKP_cjs.applyChatUpdated; }
|
|
11901
12009
|
});
|
|
11902
12010
|
Object.defineProperty(exports, "arbiAccountClient", {
|
|
11903
12011
|
enumerable: true,
|
|
11904
|
-
get: function () { return
|
|
12012
|
+
get: function () { return chunkZLHS3UKP_cjs.arbiAccountClient; }
|
|
11905
12013
|
});
|
|
11906
12014
|
Object.defineProperty(exports, "buildMeetingChatBody", {
|
|
11907
12015
|
enumerable: true,
|
|
11908
|
-
get: function () { return
|
|
12016
|
+
get: function () { return chunkZLHS3UKP_cjs.buildMeetingChatBody; }
|
|
11909
12017
|
});
|
|
11910
12018
|
Object.defineProperty(exports, "cachedChat", {
|
|
11911
12019
|
enumerable: true,
|
|
11912
|
-
get: function () { return
|
|
12020
|
+
get: function () { return chunkZLHS3UKP_cjs.cachedChat; }
|
|
11913
12021
|
});
|
|
11914
12022
|
Object.defineProperty(exports, "cachedChats", {
|
|
11915
12023
|
enumerable: true,
|
|
11916
|
-
get: function () { return
|
|
12024
|
+
get: function () { return chunkZLHS3UKP_cjs.cachedChats; }
|
|
11917
12025
|
});
|
|
11918
12026
|
Object.defineProperty(exports, "callLink", {
|
|
11919
12027
|
enumerable: true,
|
|
11920
|
-
get: function () { return
|
|
12028
|
+
get: function () { return chunkZLHS3UKP_cjs.callLink; }
|
|
11921
12029
|
});
|
|
11922
12030
|
Object.defineProperty(exports, "callMemberKeys", {
|
|
11923
12031
|
enumerable: true,
|
|
11924
|
-
get: function () { return
|
|
12032
|
+
get: function () { return chunkZLHS3UKP_cjs.callMemberKeys; }
|
|
11925
12033
|
});
|
|
11926
12034
|
Object.defineProperty(exports, "callSession", {
|
|
11927
12035
|
enumerable: true,
|
|
11928
|
-
get: function () { return
|
|
12036
|
+
get: function () { return chunkZLHS3UKP_cjs.callSession; }
|
|
11929
12037
|
});
|
|
11930
12038
|
Object.defineProperty(exports, "chatByExtId", {
|
|
11931
12039
|
enumerable: true,
|
|
11932
|
-
get: function () { return
|
|
12040
|
+
get: function () { return chunkZLHS3UKP_cjs.chatByExtId; }
|
|
11933
12041
|
});
|
|
11934
12042
|
Object.defineProperty(exports, "chatHasLiveCall", {
|
|
11935
12043
|
enumerable: true,
|
|
11936
|
-
get: function () { return
|
|
12044
|
+
get: function () { return chunkZLHS3UKP_cjs.chatHasLiveCall; }
|
|
11937
12045
|
});
|
|
11938
12046
|
Object.defineProperty(exports, "chatLiveCallId", {
|
|
11939
12047
|
enumerable: true,
|
|
11940
|
-
get: function () { return
|
|
12048
|
+
get: function () { return chunkZLHS3UKP_cjs.chatLiveCallId; }
|
|
11941
12049
|
});
|
|
11942
12050
|
Object.defineProperty(exports, "chatTranscriptRef", {
|
|
11943
12051
|
enumerable: true,
|
|
11944
|
-
get: function () { return
|
|
12052
|
+
get: function () { return chunkZLHS3UKP_cjs.chatTranscriptRef; }
|
|
11945
12053
|
});
|
|
11946
12054
|
Object.defineProperty(exports, "clearMeetingChatCache", {
|
|
11947
12055
|
enumerable: true,
|
|
11948
|
-
get: function () { return
|
|
12056
|
+
get: function () { return chunkZLHS3UKP_cjs.clearMeetingChatCache; }
|
|
11949
12057
|
});
|
|
11950
12058
|
Object.defineProperty(exports, "clearTrackUploaders", {
|
|
11951
12059
|
enumerable: true,
|
|
11952
|
-
get: function () { return
|
|
12060
|
+
get: function () { return chunkZLHS3UKP_cjs.clearTrackUploaders; }
|
|
11953
12061
|
});
|
|
11954
12062
|
Object.defineProperty(exports, "clockTime", {
|
|
11955
12063
|
enumerable: true,
|
|
11956
|
-
get: function () { return
|
|
12064
|
+
get: function () { return chunkZLHS3UKP_cjs.clockTime; }
|
|
11957
12065
|
});
|
|
11958
12066
|
Object.defineProperty(exports, "compositeFiles", {
|
|
11959
12067
|
enumerable: true,
|
|
11960
|
-
get: function () { return
|
|
12068
|
+
get: function () { return chunkZLHS3UKP_cjs.compositeFiles; }
|
|
11961
12069
|
});
|
|
11962
12070
|
Object.defineProperty(exports, "compositeTrack", {
|
|
11963
12071
|
enumerable: true,
|
|
11964
|
-
get: function () { return
|
|
12072
|
+
get: function () { return chunkZLHS3UKP_cjs.compositeTrack; }
|
|
11965
12073
|
});
|
|
11966
12074
|
Object.defineProperty(exports, "conversationKeyForCall", {
|
|
11967
12075
|
enumerable: true,
|
|
11968
|
-
get: function () { return
|
|
12076
|
+
get: function () { return chunkZLHS3UKP_cjs.conversationKeyForCall; }
|
|
11969
12077
|
});
|
|
11970
12078
|
Object.defineProperty(exports, "createMutedNotifier", {
|
|
11971
12079
|
enumerable: true,
|
|
11972
|
-
get: function () { return
|
|
12080
|
+
get: function () { return chunkZLHS3UKP_cjs.createMutedNotifier; }
|
|
11973
12081
|
});
|
|
11974
12082
|
Object.defineProperty(exports, "createTrackCutter", {
|
|
11975
12083
|
enumerable: true,
|
|
11976
|
-
get: function () { return
|
|
12084
|
+
get: function () { return chunkZLHS3UKP_cjs.createTrackCutter; }
|
|
11977
12085
|
});
|
|
11978
12086
|
Object.defineProperty(exports, "cutAtPauses", {
|
|
11979
12087
|
enumerable: true,
|
|
11980
|
-
get: function () { return
|
|
12088
|
+
get: function () { return chunkZLHS3UKP_cjs.cutAtPauses; }
|
|
11981
12089
|
});
|
|
11982
12090
|
Object.defineProperty(exports, "declineRing", {
|
|
11983
12091
|
enumerable: true,
|
|
11984
|
-
get: function () { return
|
|
12092
|
+
get: function () { return chunkZLHS3UKP_cjs.declineRing; }
|
|
11985
12093
|
});
|
|
11986
12094
|
Object.defineProperty(exports, "decodeCallChatPacket", {
|
|
11987
12095
|
enumerable: true,
|
|
11988
|
-
get: function () { return
|
|
12096
|
+
get: function () { return chunkZLHS3UKP_cjs.decodeCallChatPacket; }
|
|
11989
12097
|
});
|
|
11990
12098
|
Object.defineProperty(exports, "decodeCaptionPacket", {
|
|
11991
12099
|
enumerable: true,
|
|
11992
|
-
get: function () { return
|
|
12100
|
+
get: function () { return chunkZLHS3UKP_cjs.decodeCaptionPacket; }
|
|
11993
12101
|
});
|
|
11994
12102
|
Object.defineProperty(exports, "decodeMono16k", {
|
|
11995
12103
|
enumerable: true,
|
|
11996
|
-
get: function () { return
|
|
12104
|
+
get: function () { return chunkZLHS3UKP_cjs.decodeMono16k; }
|
|
11997
12105
|
});
|
|
11998
12106
|
Object.defineProperty(exports, "decryptPart", {
|
|
11999
12107
|
enumerable: true,
|
|
12000
|
-
get: function () { return
|
|
12108
|
+
get: function () { return chunkZLHS3UKP_cjs.decryptPart; }
|
|
12001
12109
|
});
|
|
12002
12110
|
Object.defineProperty(exports, "encodeCallChatPacket", {
|
|
12003
12111
|
enumerable: true,
|
|
12004
|
-
get: function () { return
|
|
12112
|
+
get: function () { return chunkZLHS3UKP_cjs.encodeCallChatPacket; }
|
|
12005
12113
|
});
|
|
12006
12114
|
Object.defineProperty(exports, "encodeCaptionPacket", {
|
|
12007
12115
|
enumerable: true,
|
|
12008
|
-
get: function () { return
|
|
12116
|
+
get: function () { return chunkZLHS3UKP_cjs.encodeCaptionPacket; }
|
|
12009
12117
|
});
|
|
12010
12118
|
Object.defineProperty(exports, "encodeWav", {
|
|
12011
12119
|
enumerable: true,
|
|
12012
|
-
get: function () { return
|
|
12120
|
+
get: function () { return chunkZLHS3UKP_cjs.encodeWav; }
|
|
12013
12121
|
});
|
|
12014
12122
|
Object.defineProperty(exports, "encryptPart", {
|
|
12015
12123
|
enumerable: true,
|
|
12016
|
-
get: function () { return
|
|
12124
|
+
get: function () { return chunkZLHS3UKP_cjs.encryptPart; }
|
|
12017
12125
|
});
|
|
12018
12126
|
Object.defineProperty(exports, "ensureMeetingChat", {
|
|
12019
12127
|
enumerable: true,
|
|
12020
|
-
get: function () { return
|
|
12128
|
+
get: function () { return chunkZLHS3UKP_cjs.ensureMeetingChat; }
|
|
12021
12129
|
});
|
|
12022
12130
|
Object.defineProperty(exports, "entitlementRefusal", {
|
|
12023
12131
|
enumerable: true,
|
|
12024
|
-
get: function () { return
|
|
12132
|
+
get: function () { return chunkZLHS3UKP_cjs.entitlementRefusal; }
|
|
12025
12133
|
});
|
|
12026
12134
|
Object.defineProperty(exports, "extensionFor", {
|
|
12027
12135
|
enumerable: true,
|
|
12028
|
-
get: function () { return
|
|
12136
|
+
get: function () { return chunkZLHS3UKP_cjs.extensionFor; }
|
|
12029
12137
|
});
|
|
12030
12138
|
Object.defineProperty(exports, "fetchPart", {
|
|
12031
12139
|
enumerable: true,
|
|
12032
|
-
get: function () { return
|
|
12140
|
+
get: function () { return chunkZLHS3UKP_cjs.fetchPart; }
|
|
12033
12141
|
});
|
|
12034
12142
|
Object.defineProperty(exports, "fileSafe", {
|
|
12035
12143
|
enumerable: true,
|
|
12036
|
-
get: function () { return
|
|
12144
|
+
get: function () { return chunkZLHS3UKP_cjs.fileSafe; }
|
|
12037
12145
|
});
|
|
12038
12146
|
Object.defineProperty(exports, "findConversation", {
|
|
12039
12147
|
enumerable: true,
|
|
12040
|
-
get: function () { return
|
|
12148
|
+
get: function () { return chunkZLHS3UKP_cjs.findConversation; }
|
|
12041
12149
|
});
|
|
12042
12150
|
Object.defineProperty(exports, "floatToWav", {
|
|
12043
12151
|
enumerable: true,
|
|
12044
|
-
get: function () { return
|
|
12152
|
+
get: function () { return chunkZLHS3UKP_cjs.floatToWav; }
|
|
12045
12153
|
});
|
|
12046
12154
|
Object.defineProperty(exports, "formatTranscriptMarkdown", {
|
|
12047
12155
|
enumerable: true,
|
|
12048
|
-
get: function () { return
|
|
12156
|
+
get: function () { return chunkZLHS3UKP_cjs.formatTranscriptMarkdown; }
|
|
12049
12157
|
});
|
|
12050
12158
|
Object.defineProperty(exports, "getOpenChat", {
|
|
12051
12159
|
enumerable: true,
|
|
12052
|
-
get: function () { return
|
|
12160
|
+
get: function () { return chunkZLHS3UKP_cjs.getOpenChat; }
|
|
12053
12161
|
});
|
|
12054
12162
|
Object.defineProperty(exports, "hasRecordingTranscript", {
|
|
12055
12163
|
enumerable: true,
|
|
12056
|
-
get: function () { return
|
|
12164
|
+
get: function () { return chunkZLHS3UKP_cjs.hasRecordingTranscript; }
|
|
12057
12165
|
});
|
|
12058
12166
|
Object.defineProperty(exports, "invalidateCall", {
|
|
12059
12167
|
enumerable: true,
|
|
12060
|
-
get: function () { return
|
|
12168
|
+
get: function () { return chunkZLHS3UKP_cjs.invalidateCall; }
|
|
12061
12169
|
});
|
|
12062
12170
|
Object.defineProperty(exports, "invalidateConversationDetails", {
|
|
12063
12171
|
enumerable: true,
|
|
12064
|
-
get: function () { return
|
|
12172
|
+
get: function () { return chunkZLHS3UKP_cjs.invalidateConversationDetails; }
|
|
12065
12173
|
});
|
|
12066
12174
|
Object.defineProperty(exports, "invalidateConversationLists", {
|
|
12067
12175
|
enumerable: true,
|
|
12068
|
-
get: function () { return
|
|
12176
|
+
get: function () { return chunkZLHS3UKP_cjs.invalidateConversationLists; }
|
|
12069
12177
|
});
|
|
12070
12178
|
Object.defineProperty(exports, "isConversationListKey", {
|
|
12071
12179
|
enumerable: true,
|
|
12072
|
-
get: function () { return
|
|
12180
|
+
get: function () { return chunkZLHS3UKP_cjs.isConversationListKey; }
|
|
12073
12181
|
});
|
|
12074
12182
|
Object.defineProperty(exports, "isConversationShared", {
|
|
12075
12183
|
enumerable: true,
|
|
12076
|
-
get: function () { return
|
|
12184
|
+
get: function () { return chunkZLHS3UKP_cjs.isConversationShared; }
|
|
12077
12185
|
});
|
|
12078
12186
|
Object.defineProperty(exports, "isKnownSoloConversation", {
|
|
12079
12187
|
enumerable: true,
|
|
12080
|
-
get: function () { return
|
|
12188
|
+
get: function () { return chunkZLHS3UKP_cjs.isKnownSoloConversation; }
|
|
12081
12189
|
});
|
|
12082
12190
|
Object.defineProperty(exports, "isRecordingOver", {
|
|
12083
12191
|
enumerable: true,
|
|
12084
|
-
get: function () { return
|
|
12192
|
+
get: function () { return chunkZLHS3UKP_cjs.isRecordingOver; }
|
|
12085
12193
|
});
|
|
12086
12194
|
Object.defineProperty(exports, "isRecordingSegmentId", {
|
|
12087
12195
|
enumerable: true,
|
|
12088
|
-
get: function () { return
|
|
12196
|
+
get: function () { return chunkZLHS3UKP_cjs.isRecordingSegmentId; }
|
|
12089
12197
|
});
|
|
12090
12198
|
Object.defineProperty(exports, "isRetryable", {
|
|
12091
12199
|
enumerable: true,
|
|
12092
|
-
get: function () { return
|
|
12200
|
+
get: function () { return chunkZLHS3UKP_cjs.isRetryable; }
|
|
12093
12201
|
});
|
|
12094
12202
|
Object.defineProperty(exports, "isWorkspaceGuestOf", {
|
|
12095
12203
|
enumerable: true,
|
|
12096
|
-
get: function () { return
|
|
12204
|
+
get: function () { return chunkZLHS3UKP_cjs.isWorkspaceGuestOf; }
|
|
12097
12205
|
});
|
|
12098
12206
|
Object.defineProperty(exports, "joinFromPreJoin", {
|
|
12099
12207
|
enumerable: true,
|
|
12100
|
-
get: function () { return
|
|
12208
|
+
get: function () { return chunkZLHS3UKP_cjs.joinFromPreJoin; }
|
|
12101
12209
|
});
|
|
12102
12210
|
Object.defineProperty(exports, "knownMeetingChat", {
|
|
12103
12211
|
enumerable: true,
|
|
12104
|
-
get: function () { return
|
|
12212
|
+
get: function () { return chunkZLHS3UKP_cjs.knownMeetingChat; }
|
|
12105
12213
|
});
|
|
12106
12214
|
Object.defineProperty(exports, "loadMeetingHistory", {
|
|
12107
12215
|
enumerable: true,
|
|
12108
|
-
get: function () { return
|
|
12216
|
+
get: function () { return chunkZLHS3UKP_cjs.loadMeetingHistory; }
|
|
12109
12217
|
});
|
|
12110
12218
|
Object.defineProperty(exports, "markRejoining", {
|
|
12111
12219
|
enumerable: true,
|
|
12112
|
-
get: function () { return
|
|
12220
|
+
get: function () { return chunkZLHS3UKP_cjs.markRejoining; }
|
|
12113
12221
|
});
|
|
12114
12222
|
Object.defineProperty(exports, "meetingChatRefFrom", {
|
|
12115
12223
|
enumerable: true,
|
|
12116
|
-
get: function () { return
|
|
12224
|
+
get: function () { return chunkZLHS3UKP_cjs.meetingChatRefFrom; }
|
|
12117
12225
|
});
|
|
12118
12226
|
Object.defineProperty(exports, "meetingRefForCall", {
|
|
12119
12227
|
enumerable: true,
|
|
12120
|
-
get: function () { return
|
|
12228
|
+
get: function () { return chunkZLHS3UKP_cjs.meetingRefForCall; }
|
|
12121
12229
|
});
|
|
12122
12230
|
Object.defineProperty(exports, "mergeChatLines", {
|
|
12123
12231
|
enumerable: true,
|
|
12124
|
-
get: function () { return
|
|
12232
|
+
get: function () { return chunkZLHS3UKP_cjs.mergeChatLines; }
|
|
12125
12233
|
});
|
|
12126
12234
|
Object.defineProperty(exports, "mutedNoticeFromEvent", {
|
|
12127
12235
|
enumerable: true,
|
|
12128
|
-
get: function () { return
|
|
12236
|
+
get: function () { return chunkZLHS3UKP_cjs.mutedNoticeFromEvent; }
|
|
12129
12237
|
});
|
|
12130
12238
|
Object.defineProperty(exports, "mutedNoticeFromPacket", {
|
|
12131
12239
|
enumerable: true,
|
|
12132
|
-
get: function () { return
|
|
12240
|
+
get: function () { return chunkZLHS3UKP_cjs.mutedNoticeFromPacket; }
|
|
12133
12241
|
});
|
|
12134
12242
|
Object.defineProperty(exports, "mutedNoticeText", {
|
|
12135
12243
|
enumerable: true,
|
|
12136
|
-
get: function () { return
|
|
12244
|
+
get: function () { return chunkZLHS3UKP_cjs.mutedNoticeText; }
|
|
12137
12245
|
});
|
|
12138
12246
|
Object.defineProperty(exports, "myChatId", {
|
|
12139
12247
|
enumerable: true,
|
|
12140
|
-
get: function () { return
|
|
12248
|
+
get: function () { return chunkZLHS3UKP_cjs.myChatId; }
|
|
12141
12249
|
});
|
|
12142
12250
|
Object.defineProperty(exports, "newPacketId", {
|
|
12143
12251
|
enumerable: true,
|
|
12144
|
-
get: function () { return
|
|
12252
|
+
get: function () { return chunkZLHS3UKP_cjs.newPacketId; }
|
|
12145
12253
|
});
|
|
12146
12254
|
Object.defineProperty(exports, "newSegmentId", {
|
|
12147
12255
|
enumerable: true,
|
|
12148
|
-
get: function () { return
|
|
12256
|
+
get: function () { return chunkZLHS3UKP_cjs.newSegmentId; }
|
|
12149
12257
|
});
|
|
12150
12258
|
Object.defineProperty(exports, "newTrackKey", {
|
|
12151
12259
|
enumerable: true,
|
|
12152
|
-
get: function () { return
|
|
12260
|
+
get: function () { return chunkZLHS3UKP_cjs.newTrackKey; }
|
|
12153
12261
|
});
|
|
12154
12262
|
Object.defineProperty(exports, "nextSeqAfter", {
|
|
12155
12263
|
enumerable: true,
|
|
12156
|
-
get: function () { return
|
|
12264
|
+
get: function () { return chunkZLHS3UKP_cjs.nextSeqAfter; }
|
|
12157
12265
|
});
|
|
12158
12266
|
Object.defineProperty(exports, "onCallEvent", {
|
|
12159
12267
|
enumerable: true,
|
|
12160
|
-
get: function () { return
|
|
12268
|
+
get: function () { return chunkZLHS3UKP_cjs.onCallEvent; }
|
|
12161
12269
|
});
|
|
12162
12270
|
Object.defineProperty(exports, "openCall", {
|
|
12163
12271
|
enumerable: true,
|
|
12164
|
-
get: function () { return
|
|
12272
|
+
get: function () { return chunkZLHS3UKP_cjs.openCall; }
|
|
12165
12273
|
});
|
|
12166
12274
|
Object.defineProperty(exports, "openQuestion", {
|
|
12167
12275
|
enumerable: true,
|
|
12168
|
-
get: function () { return
|
|
12276
|
+
get: function () { return chunkZLHS3UKP_cjs.openQuestion; }
|
|
12169
12277
|
});
|
|
12170
12278
|
Object.defineProperty(exports, "openRecording", {
|
|
12171
12279
|
enumerable: true,
|
|
12172
|
-
get: function () { return
|
|
12280
|
+
get: function () { return chunkZLHS3UKP_cjs.openRecording; }
|
|
12173
12281
|
});
|
|
12174
12282
|
Object.defineProperty(exports, "parseWebinarPacket", {
|
|
12175
12283
|
enumerable: true,
|
|
12176
|
-
get: function () { return
|
|
12284
|
+
get: function () { return chunkZLHS3UKP_cjs.parseWebinarPacket; }
|
|
12177
12285
|
});
|
|
12178
12286
|
Object.defineProperty(exports, "partKey", {
|
|
12179
12287
|
enumerable: true,
|
|
12180
|
-
get: function () { return
|
|
12288
|
+
get: function () { return chunkZLHS3UKP_cjs.partKey; }
|
|
12181
12289
|
});
|
|
12182
12290
|
Object.defineProperty(exports, "partOffsetMs", {
|
|
12183
12291
|
enumerable: true,
|
|
12184
|
-
get: function () { return
|
|
12292
|
+
get: function () { return chunkZLHS3UKP_cjs.partOffsetMs; }
|
|
12185
12293
|
});
|
|
12186
12294
|
Object.defineProperty(exports, "partsDue", {
|
|
12187
12295
|
enumerable: true,
|
|
12188
|
-
get: function () { return
|
|
12296
|
+
get: function () { return chunkZLHS3UKP_cjs.partsDue; }
|
|
12189
12297
|
});
|
|
12190
12298
|
Object.defineProperty(exports, "patchConversation", {
|
|
12191
12299
|
enumerable: true,
|
|
12192
|
-
get: function () { return
|
|
12300
|
+
get: function () { return chunkZLHS3UKP_cjs.patchConversation; }
|
|
12193
12301
|
});
|
|
12194
12302
|
Object.defineProperty(exports, "patchConversationList", {
|
|
12195
12303
|
enumerable: true,
|
|
12196
|
-
get: function () { return
|
|
12304
|
+
get: function () { return chunkZLHS3UKP_cjs.patchConversationList; }
|
|
12197
12305
|
});
|
|
12198
12306
|
Object.defineProperty(exports, "persistMeetingMessage", {
|
|
12199
12307
|
enumerable: true,
|
|
12200
|
-
get: function () { return
|
|
12308
|
+
get: function () { return chunkZLHS3UKP_cjs.persistMeetingMessage; }
|
|
12201
12309
|
});
|
|
12202
12310
|
Object.defineProperty(exports, "persistTranscriptSegment", {
|
|
12203
12311
|
enumerable: true,
|
|
12204
|
-
get: function () { return
|
|
12312
|
+
get: function () { return chunkZLHS3UKP_cjs.persistTranscriptSegment; }
|
|
12205
12313
|
});
|
|
12206
12314
|
Object.defineProperty(exports, "playheadAt", {
|
|
12207
12315
|
enumerable: true,
|
|
12208
|
-
get: function () { return
|
|
12316
|
+
get: function () { return chunkZLHS3UKP_cjs.playheadAt; }
|
|
12209
12317
|
});
|
|
12210
12318
|
Object.defineProperty(exports, "postRecordingDocsToThread", {
|
|
12211
12319
|
enumerable: true,
|
|
12212
|
-
get: function () { return
|
|
12320
|
+
get: function () { return chunkZLHS3UKP_cjs.postRecordingDocsToThread; }
|
|
12213
12321
|
});
|
|
12214
12322
|
Object.defineProperty(exports, "postTranscriptToThread", {
|
|
12215
12323
|
enumerable: true,
|
|
12216
|
-
get: function () { return
|
|
12324
|
+
get: function () { return chunkZLHS3UKP_cjs.postTranscriptToThread; }
|
|
12217
12325
|
});
|
|
12218
12326
|
Object.defineProperty(exports, "recordingFiles", {
|
|
12219
12327
|
enumerable: true,
|
|
12220
|
-
get: function () { return
|
|
12328
|
+
get: function () { return chunkZLHS3UKP_cjs.recordingFiles; }
|
|
12221
12329
|
});
|
|
12222
12330
|
Object.defineProperty(exports, "recordingWindowsOf", {
|
|
12223
12331
|
enumerable: true,
|
|
12224
|
-
get: function () { return
|
|
12332
|
+
get: function () { return chunkZLHS3UKP_cjs.recordingWindowsOf; }
|
|
12225
12333
|
});
|
|
12226
12334
|
Object.defineProperty(exports, "rejoinAsAudience", {
|
|
12227
12335
|
enumerable: true,
|
|
12228
|
-
get: function () { return
|
|
12336
|
+
get: function () { return chunkZLHS3UKP_cjs.rejoinAsAudience; }
|
|
12229
12337
|
});
|
|
12230
12338
|
Object.defineProperty(exports, "removeChat", {
|
|
12231
12339
|
enumerable: true,
|
|
12232
|
-
get: function () { return
|
|
12340
|
+
get: function () { return chunkZLHS3UKP_cjs.removeChat; }
|
|
12233
12341
|
});
|
|
12234
12342
|
Object.defineProperty(exports, "removeConversationFromLists", {
|
|
12235
12343
|
enumerable: true,
|
|
12236
|
-
get: function () { return
|
|
12344
|
+
get: function () { return chunkZLHS3UKP_cjs.removeConversationFromLists; }
|
|
12237
12345
|
});
|
|
12238
12346
|
Object.defineProperty(exports, "resetCallSession", {
|
|
12239
12347
|
enumerable: true,
|
|
12240
|
-
get: function () { return
|
|
12348
|
+
get: function () { return chunkZLHS3UKP_cjs.resetCallSession; }
|
|
12241
12349
|
});
|
|
12242
12350
|
Object.defineProperty(exports, "resolveMeetingChat", {
|
|
12243
12351
|
enumerable: true,
|
|
12244
|
-
get: function () { return
|
|
12352
|
+
get: function () { return chunkZLHS3UKP_cjs.resolveMeetingChat; }
|
|
12245
12353
|
});
|
|
12246
12354
|
Object.defineProperty(exports, "saveRecordingFilesToThread", {
|
|
12247
12355
|
enumerable: true,
|
|
12248
|
-
get: function () { return
|
|
12356
|
+
get: function () { return chunkZLHS3UKP_cjs.saveRecordingFilesToThread; }
|
|
12249
12357
|
});
|
|
12250
12358
|
Object.defineProperty(exports, "schedulePart", {
|
|
12251
12359
|
enumerable: true,
|
|
12252
|
-
get: function () { return
|
|
12360
|
+
get: function () { return chunkZLHS3UKP_cjs.schedulePart; }
|
|
12253
12361
|
});
|
|
12254
12362
|
Object.defineProperty(exports, "sealQuestionText", {
|
|
12255
12363
|
enumerable: true,
|
|
12256
|
-
get: function () { return
|
|
12364
|
+
get: function () { return chunkZLHS3UKP_cjs.sealQuestionText; }
|
|
12257
12365
|
});
|
|
12258
12366
|
Object.defineProperty(exports, "setOpenChat", {
|
|
12259
12367
|
enumerable: true,
|
|
12260
|
-
get: function () { return
|
|
12368
|
+
get: function () { return chunkZLHS3UKP_cjs.setOpenChat; }
|
|
12261
12369
|
});
|
|
12262
12370
|
Object.defineProperty(exports, "sortTranscriptMessages", {
|
|
12263
12371
|
enumerable: true,
|
|
12264
|
-
get: function () { return
|
|
12372
|
+
get: function () { return chunkZLHS3UKP_cjs.sortTranscriptMessages; }
|
|
12265
12373
|
});
|
|
12266
12374
|
Object.defineProperty(exports, "sortedParts", {
|
|
12267
12375
|
enumerable: true,
|
|
12268
|
-
get: function () { return
|
|
12376
|
+
get: function () { return chunkZLHS3UKP_cjs.sortedParts; }
|
|
12269
12377
|
});
|
|
12270
12378
|
Object.defineProperty(exports, "speakerTracks", {
|
|
12271
12379
|
enumerable: true,
|
|
12272
|
-
get: function () { return
|
|
12380
|
+
get: function () { return chunkZLHS3UKP_cjs.speakerTracks; }
|
|
12273
12381
|
});
|
|
12274
12382
|
Object.defineProperty(exports, "speakerWav", {
|
|
12275
12383
|
enumerable: true,
|
|
12276
|
-
get: function () { return
|
|
12384
|
+
get: function () { return chunkZLHS3UKP_cjs.speakerWav; }
|
|
12277
12385
|
});
|
|
12278
12386
|
Object.defineProperty(exports, "splitIntoFiles", {
|
|
12279
12387
|
enumerable: true,
|
|
12280
|
-
get: function () { return
|
|
12388
|
+
get: function () { return chunkZLHS3UKP_cjs.splitIntoFiles; }
|
|
12281
12389
|
});
|
|
12282
12390
|
Object.defineProperty(exports, "standalone", {
|
|
12283
12391
|
enumerable: true,
|
|
12284
|
-
get: function () { return
|
|
12392
|
+
get: function () { return chunkZLHS3UKP_cjs.standalone; }
|
|
12285
12393
|
});
|
|
12286
12394
|
Object.defineProperty(exports, "startChatCall", {
|
|
12287
12395
|
enumerable: true,
|
|
12288
|
-
get: function () { return
|
|
12396
|
+
get: function () { return chunkZLHS3UKP_cjs.startChatCall; }
|
|
12289
12397
|
});
|
|
12290
12398
|
Object.defineProperty(exports, "startContactsCall", {
|
|
12291
12399
|
enumerable: true,
|
|
12292
|
-
get: function () { return
|
|
12400
|
+
get: function () { return chunkZLHS3UKP_cjs.startContactsCall; }
|
|
12293
12401
|
});
|
|
12294
12402
|
Object.defineProperty(exports, "startDmCall", {
|
|
12295
12403
|
enumerable: true,
|
|
12296
|
-
get: function () { return
|
|
12404
|
+
get: function () { return chunkZLHS3UKP_cjs.startDmCall; }
|
|
12297
12405
|
});
|
|
12298
12406
|
Object.defineProperty(exports, "startThreadCall", {
|
|
12299
12407
|
enumerable: true,
|
|
12300
|
-
get: function () { return
|
|
12408
|
+
get: function () { return chunkZLHS3UKP_cjs.startThreadCall; }
|
|
12301
12409
|
});
|
|
12302
12410
|
Object.defineProperty(exports, "startsMediaFile", {
|
|
12303
12411
|
enumerable: true,
|
|
12304
|
-
get: function () { return
|
|
12412
|
+
get: function () { return chunkZLHS3UKP_cjs.startsMediaFile; }
|
|
12305
12413
|
});
|
|
12306
12414
|
Object.defineProperty(exports, "storeTranscriptSegment", {
|
|
12307
12415
|
enumerable: true,
|
|
12308
|
-
get: function () { return
|
|
12416
|
+
get: function () { return chunkZLHS3UKP_cjs.storeTranscriptSegment; }
|
|
12309
12417
|
});
|
|
12310
12418
|
Object.defineProperty(exports, "stripSpeakerPrefix", {
|
|
12311
12419
|
enumerable: true,
|
|
12312
|
-
get: function () { return
|
|
12420
|
+
get: function () { return chunkZLHS3UKP_cjs.stripSpeakerPrefix; }
|
|
12313
12421
|
});
|
|
12314
12422
|
Object.defineProperty(exports, "supersedeLiveTranscript", {
|
|
12315
12423
|
enumerable: true,
|
|
12316
|
-
get: function () { return
|
|
12424
|
+
get: function () { return chunkZLHS3UKP_cjs.supersedeLiveTranscript; }
|
|
12317
12425
|
});
|
|
12318
12426
|
Object.defineProperty(exports, "supersededTranscriptLines", {
|
|
12319
12427
|
enumerable: true,
|
|
12320
|
-
get: function () { return
|
|
12428
|
+
get: function () { return chunkZLHS3UKP_cjs.supersededTranscriptLines; }
|
|
12321
12429
|
});
|
|
12322
12430
|
Object.defineProperty(exports, "threadHasLiveCall", {
|
|
12323
12431
|
enumerable: true,
|
|
12324
|
-
get: function () { return
|
|
12432
|
+
get: function () { return chunkZLHS3UKP_cjs.threadHasLiveCall; }
|
|
12325
12433
|
});
|
|
12326
12434
|
Object.defineProperty(exports, "threadLiveCallId", {
|
|
12327
12435
|
enumerable: true,
|
|
12328
|
-
get: function () { return
|
|
12436
|
+
get: function () { return chunkZLHS3UKP_cjs.threadLiveCallId; }
|
|
12329
12437
|
});
|
|
12330
12438
|
Object.defineProperty(exports, "threadTranscriptLines", {
|
|
12331
12439
|
enumerable: true,
|
|
12332
|
-
get: function () { return
|
|
12440
|
+
get: function () { return chunkZLHS3UKP_cjs.threadTranscriptLines; }
|
|
12333
12441
|
});
|
|
12334
12442
|
Object.defineProperty(exports, "threadTranscriptRef", {
|
|
12335
12443
|
enumerable: true,
|
|
12336
|
-
get: function () { return
|
|
12444
|
+
get: function () { return chunkZLHS3UKP_cjs.threadTranscriptRef; }
|
|
12337
12445
|
});
|
|
12338
12446
|
Object.defineProperty(exports, "threadTranscriptText", {
|
|
12339
12447
|
enumerable: true,
|
|
12340
|
-
get: function () { return
|
|
12448
|
+
get: function () { return chunkZLHS3UKP_cjs.threadTranscriptText; }
|
|
12341
12449
|
});
|
|
12342
12450
|
Object.defineProperty(exports, "timelineDurationMs", {
|
|
12343
12451
|
enumerable: true,
|
|
12344
|
-
get: function () { return
|
|
12452
|
+
get: function () { return chunkZLHS3UKP_cjs.timelineDurationMs; }
|
|
12345
12453
|
});
|
|
12346
12454
|
Object.defineProperty(exports, "timelineOf", {
|
|
12347
12455
|
enumerable: true,
|
|
12348
|
-
get: function () { return
|
|
12456
|
+
get: function () { return chunkZLHS3UKP_cjs.timelineOf; }
|
|
12349
12457
|
});
|
|
12350
12458
|
Object.defineProperty(exports, "toProfileView", {
|
|
12351
12459
|
enumerable: true,
|
|
12352
|
-
get: function () { return
|
|
12460
|
+
get: function () { return chunkZLHS3UKP_cjs.toProfileView; }
|
|
12353
12461
|
});
|
|
12354
12462
|
Object.defineProperty(exports, "trackUploaderFor", {
|
|
12355
12463
|
enumerable: true,
|
|
12356
|
-
get: function () { return
|
|
12464
|
+
get: function () { return chunkZLHS3UKP_cjs.trackUploaderFor; }
|
|
12357
12465
|
});
|
|
12358
12466
|
Object.defineProperty(exports, "transcribeRecording", {
|
|
12359
12467
|
enumerable: true,
|
|
12360
|
-
get: function () { return
|
|
12468
|
+
get: function () { return chunkZLHS3UKP_cjs.transcribeRecording; }
|
|
12361
12469
|
});
|
|
12362
12470
|
Object.defineProperty(exports, "transcriptPersistRole", {
|
|
12363
12471
|
enumerable: true,
|
|
12364
|
-
get: function () { return
|
|
12472
|
+
get: function () { return chunkZLHS3UKP_cjs.transcriptPersistRole; }
|
|
12365
12473
|
});
|
|
12366
12474
|
Object.defineProperty(exports, "transcriptSegmentOf", {
|
|
12367
12475
|
enumerable: true,
|
|
12368
|
-
get: function () { return
|
|
12476
|
+
get: function () { return chunkZLHS3UKP_cjs.transcriptSegmentOf; }
|
|
12369
12477
|
});
|
|
12370
12478
|
Object.defineProperty(exports, "unwrapTrackKey", {
|
|
12371
12479
|
enumerable: true,
|
|
12372
|
-
get: function () { return
|
|
12480
|
+
get: function () { return chunkZLHS3UKP_cjs.unwrapTrackKey; }
|
|
12373
12481
|
});
|
|
12374
12482
|
Object.defineProperty(exports, "upsertChat", {
|
|
12375
12483
|
enumerable: true,
|
|
12376
|
-
get: function () { return
|
|
12484
|
+
get: function () { return chunkZLHS3UKP_cjs.upsertChat; }
|
|
12377
12485
|
});
|
|
12378
12486
|
Object.defineProperty(exports, "useAccountClient", {
|
|
12379
12487
|
enumerable: true,
|
|
12380
|
-
get: function () { return
|
|
12488
|
+
get: function () { return chunkZLHS3UKP_cjs.useAccountClient; }
|
|
12381
12489
|
});
|
|
12382
12490
|
Object.defineProperty(exports, "useArbiWsContext", {
|
|
12383
12491
|
enumerable: true,
|
|
12384
|
-
get: function () { return
|
|
12492
|
+
get: function () { return chunkZLHS3UKP_cjs.useArbiWsContext; }
|
|
12385
12493
|
});
|
|
12386
12494
|
Object.defineProperty(exports, "useAvatarCrop", {
|
|
12387
12495
|
enumerable: true,
|
|
12388
|
-
get: function () { return
|
|
12496
|
+
get: function () { return chunkZLHS3UKP_cjs.useAvatarCrop; }
|
|
12389
12497
|
});
|
|
12390
12498
|
Object.defineProperty(exports, "useCall", {
|
|
12391
12499
|
enumerable: true,
|
|
12392
|
-
get: function () { return
|
|
12500
|
+
get: function () { return chunkZLHS3UKP_cjs.useCall; }
|
|
12393
12501
|
});
|
|
12394
12502
|
Object.defineProperty(exports, "useCallInviteLinks", {
|
|
12395
12503
|
enumerable: true,
|
|
12396
|
-
get: function () { return
|
|
12504
|
+
get: function () { return chunkZLHS3UKP_cjs.useCallInviteLinks; }
|
|
12397
12505
|
});
|
|
12398
12506
|
Object.defineProperty(exports, "useCallLiveUpdates", {
|
|
12399
12507
|
enumerable: true,
|
|
12400
|
-
get: function () { return
|
|
12508
|
+
get: function () { return chunkZLHS3UKP_cjs.useCallLiveUpdates; }
|
|
12401
12509
|
});
|
|
12402
12510
|
Object.defineProperty(exports, "useCallRecording", {
|
|
12403
12511
|
enumerable: true,
|
|
12404
|
-
get: function () { return
|
|
12512
|
+
get: function () { return chunkZLHS3UKP_cjs.useCallRecording; }
|
|
12405
12513
|
});
|
|
12406
12514
|
Object.defineProperty(exports, "useCallRecordings", {
|
|
12407
12515
|
enumerable: true,
|
|
12408
|
-
get: function () { return
|
|
12516
|
+
get: function () { return chunkZLHS3UKP_cjs.useCallRecordings; }
|
|
12409
12517
|
});
|
|
12410
12518
|
Object.defineProperty(exports, "useCallSession", {
|
|
12411
12519
|
enumerable: true,
|
|
12412
|
-
get: function () { return
|
|
12520
|
+
get: function () { return chunkZLHS3UKP_cjs.useCallSession; }
|
|
12413
12521
|
});
|
|
12414
12522
|
Object.defineProperty(exports, "useCallTranscriptionAvailable", {
|
|
12415
12523
|
enumerable: true,
|
|
12416
|
-
get: function () { return
|
|
12524
|
+
get: function () { return chunkZLHS3UKP_cjs.useCallTranscriptionAvailable; }
|
|
12417
12525
|
});
|
|
12418
12526
|
Object.defineProperty(exports, "useCallsConfig", {
|
|
12419
12527
|
enumerable: true,
|
|
12420
|
-
get: function () { return
|
|
12528
|
+
get: function () { return chunkZLHS3UKP_cjs.useCallsConfig; }
|
|
12421
12529
|
});
|
|
12422
12530
|
Object.defineProperty(exports, "useCallsEnabled", {
|
|
12423
12531
|
enumerable: true,
|
|
12424
|
-
get: function () { return
|
|
12532
|
+
get: function () { return chunkZLHS3UKP_cjs.useCallsEnabled; }
|
|
12425
12533
|
});
|
|
12426
12534
|
Object.defineProperty(exports, "useCanHostCalls", {
|
|
12427
12535
|
enumerable: true,
|
|
12428
|
-
get: function () { return
|
|
12536
|
+
get: function () { return chunkZLHS3UKP_cjs.useCanHostCalls; }
|
|
12429
12537
|
});
|
|
12430
12538
|
Object.defineProperty(exports, "useEntitlements", {
|
|
12431
12539
|
enumerable: true,
|
|
12432
|
-
get: function () { return
|
|
12540
|
+
get: function () { return chunkZLHS3UKP_cjs.useEntitlements; }
|
|
12433
12541
|
});
|
|
12434
12542
|
Object.defineProperty(exports, "useIsEntitled", {
|
|
12435
12543
|
enumerable: true,
|
|
12436
|
-
get: function () { return
|
|
12544
|
+
get: function () { return chunkZLHS3UKP_cjs.useIsEntitled; }
|
|
12437
12545
|
});
|
|
12438
12546
|
Object.defineProperty(exports, "useMeetingReadOnly", {
|
|
12439
12547
|
enumerable: true,
|
|
12440
|
-
get: function () { return
|
|
12548
|
+
get: function () { return chunkZLHS3UKP_cjs.useMeetingReadOnly; }
|
|
12441
12549
|
});
|
|
12442
12550
|
Object.defineProperty(exports, "useNameEditor", {
|
|
12443
12551
|
enumerable: true,
|
|
12444
|
-
get: function () { return
|
|
12552
|
+
get: function () { return chunkZLHS3UKP_cjs.useNameEditor; }
|
|
12445
12553
|
});
|
|
12446
12554
|
Object.defineProperty(exports, "useOpenCallMeetingChat", {
|
|
12447
12555
|
enumerable: true,
|
|
12448
|
-
get: function () { return
|
|
12556
|
+
get: function () { return chunkZLHS3UKP_cjs.useOpenCallMeetingChat; }
|
|
12449
12557
|
});
|
|
12450
12558
|
Object.defineProperty(exports, "useProfile", {
|
|
12451
12559
|
enumerable: true,
|
|
12452
|
-
get: function () { return
|
|
12560
|
+
get: function () { return chunkZLHS3UKP_cjs.useProfile; }
|
|
12453
12561
|
});
|
|
12454
12562
|
Object.defineProperty(exports, "useRecordingActions", {
|
|
12455
12563
|
enumerable: true,
|
|
12456
|
-
get: function () { return
|
|
12564
|
+
get: function () { return chunkZLHS3UKP_cjs.useRecordingActions; }
|
|
12457
12565
|
});
|
|
12458
12566
|
Object.defineProperty(exports, "useRecordingWindows", {
|
|
12459
12567
|
enumerable: true,
|
|
12460
|
-
get: function () { return
|
|
12568
|
+
get: function () { return chunkZLHS3UKP_cjs.useRecordingWindows; }
|
|
12461
12569
|
});
|
|
12462
12570
|
Object.defineProperty(exports, "useRevokeCallInviteLink", {
|
|
12463
12571
|
enumerable: true,
|
|
12464
|
-
get: function () { return
|
|
12572
|
+
get: function () { return chunkZLHS3UKP_cjs.useRevokeCallInviteLink; }
|
|
12465
12573
|
});
|
|
12466
12574
|
Object.defineProperty(exports, "useSaveToThread", {
|
|
12467
12575
|
enumerable: true,
|
|
12468
|
-
get: function () { return
|
|
12576
|
+
get: function () { return chunkZLHS3UKP_cjs.useSaveToThread; }
|
|
12469
12577
|
});
|
|
12470
12578
|
Object.defineProperty(exports, "useServerCallsEnabled", {
|
|
12471
12579
|
enumerable: true,
|
|
12472
|
-
get: function () { return
|
|
12580
|
+
get: function () { return chunkZLHS3UKP_cjs.useServerCallsEnabled; }
|
|
12473
12581
|
});
|
|
12474
12582
|
Object.defineProperty(exports, "useUpdateProfile", {
|
|
12475
12583
|
enumerable: true,
|
|
12476
|
-
get: function () { return
|
|
12584
|
+
get: function () { return chunkZLHS3UKP_cjs.useUpdateProfile; }
|
|
12477
12585
|
});
|
|
12478
12586
|
Object.defineProperty(exports, "wrapTrackKey", {
|
|
12479
12587
|
enumerable: true,
|
|
12480
|
-
get: function () { return
|
|
12588
|
+
get: function () { return chunkZLHS3UKP_cjs.wrapTrackKey; }
|
|
12481
12589
|
});
|
|
12482
12590
|
Object.defineProperty(exports, "writeSamples", {
|
|
12483
12591
|
enumerable: true,
|
|
12484
|
-
get: function () { return
|
|
12592
|
+
get: function () { return chunkZLHS3UKP_cjs.writeSamples; }
|
|
12485
12593
|
});
|
|
12486
12594
|
Object.defineProperty(exports, "DOCUMENTS_FIRST_PAGE_MEASURE", {
|
|
12487
12595
|
enumerable: true,
|
|
12488
|
-
get: function () { return
|
|
12596
|
+
get: function () { return chunkKFFH2JJM_cjs.DOCUMENTS_FIRST_PAGE_MEASURE; }
|
|
12489
12597
|
});
|
|
12490
12598
|
Object.defineProperty(exports, "DOCUMENTS_FIRST_PAGE_SIZE", {
|
|
12491
12599
|
enumerable: true,
|
|
12492
|
-
get: function () { return
|
|
12600
|
+
get: function () { return chunkKFFH2JJM_cjs.DOCUMENTS_FIRST_PAGE_SIZE; }
|
|
12493
12601
|
});
|
|
12494
12602
|
Object.defineProperty(exports, "DOCUMENTS_PAGE_SIZE", {
|
|
12495
12603
|
enumerable: true,
|
|
12496
|
-
get: function () { return
|
|
12604
|
+
get: function () { return chunkKFFH2JJM_cjs.DOCUMENTS_PAGE_SIZE; }
|
|
12497
12605
|
});
|
|
12498
12606
|
Object.defineProperty(exports, "FINISHED_DOCUMENT_STATUSES", {
|
|
12499
12607
|
enumerable: true,
|
|
12500
|
-
get: function () { return
|
|
12608
|
+
get: function () { return chunkKFFH2JJM_cjs.FINISHED_DOCUMENT_STATUSES; }
|
|
12501
12609
|
});
|
|
12502
12610
|
Object.defineProperty(exports, "IN_FLIGHT_DOCUMENT_STATUSES", {
|
|
12503
12611
|
enumerable: true,
|
|
12504
|
-
get: function () { return
|
|
12612
|
+
get: function () { return chunkKFFH2JJM_cjs.IN_FLIGHT_DOCUMENT_STATUSES; }
|
|
12505
12613
|
});
|
|
12506
12614
|
Object.defineProperty(exports, "SIMILARITY_THRESHOLD", {
|
|
12507
12615
|
enumerable: true,
|
|
12508
|
-
get: function () { return
|
|
12616
|
+
get: function () { return chunkKFFH2JJM_cjs.SIMILARITY_THRESHOLD; }
|
|
12509
12617
|
});
|
|
12510
12618
|
Object.defineProperty(exports, "adjustTagCounts", {
|
|
12511
12619
|
enumerable: true,
|
|
12512
|
-
get: function () { return
|
|
12620
|
+
get: function () { return chunkKFFH2JJM_cjs.adjustTagCounts; }
|
|
12513
12621
|
});
|
|
12514
12622
|
Object.defineProperty(exports, "dropTagFromCachedDocuments", {
|
|
12515
12623
|
enumerable: true,
|
|
12516
|
-
get: function () { return
|
|
12624
|
+
get: function () { return chunkKFFH2JJM_cjs.dropTagFromCachedDocuments; }
|
|
12517
12625
|
});
|
|
12518
12626
|
Object.defineProperty(exports, "finishEntityExtraction", {
|
|
12519
12627
|
enumerable: true,
|
|
12520
|
-
get: function () { return
|
|
12628
|
+
get: function () { return chunkKFFH2JJM_cjs.finishEntityExtraction; }
|
|
12521
12629
|
});
|
|
12522
12630
|
Object.defineProperty(exports, "forgetDocuments", {
|
|
12523
12631
|
enumerable: true,
|
|
12524
|
-
get: function () { return
|
|
12632
|
+
get: function () { return chunkKFFH2JJM_cjs.forgetDocuments; }
|
|
12525
12633
|
});
|
|
12526
12634
|
Object.defineProperty(exports, "getCachedDocuments", {
|
|
12527
12635
|
enumerable: true,
|
|
12528
|
-
get: function () { return
|
|
12636
|
+
get: function () { return chunkKFFH2JJM_cjs.getCachedDocuments; }
|
|
12529
12637
|
});
|
|
12530
12638
|
Object.defineProperty(exports, "invalidateTagData", {
|
|
12531
12639
|
enumerable: true,
|
|
12532
|
-
get: function () { return
|
|
12640
|
+
get: function () { return chunkKFFH2JJM_cjs.invalidateTagData; }
|
|
12533
12641
|
});
|
|
12534
12642
|
Object.defineProperty(exports, "invalidateTagTables", {
|
|
12535
12643
|
enumerable: true,
|
|
12536
|
-
get: function () { return
|
|
12644
|
+
get: function () { return chunkKFFH2JJM_cjs.invalidateTagTables; }
|
|
12537
12645
|
});
|
|
12538
12646
|
Object.defineProperty(exports, "isDocumentsLoading", {
|
|
12539
12647
|
enumerable: true,
|
|
12540
|
-
get: function () { return
|
|
12648
|
+
get: function () { return chunkKFFH2JJM_cjs.isDocumentsLoading; }
|
|
12541
12649
|
});
|
|
12542
12650
|
Object.defineProperty(exports, "isRowNewer", {
|
|
12543
12651
|
enumerable: true,
|
|
12544
|
-
get: function () { return
|
|
12652
|
+
get: function () { return chunkKFFH2JJM_cjs.isRowNewer; }
|
|
12545
12653
|
});
|
|
12546
12654
|
Object.defineProperty(exports, "isStaleTaskUpdate", {
|
|
12547
12655
|
enumerable: true,
|
|
12548
|
-
get: function () { return
|
|
12656
|
+
get: function () { return chunkKFFH2JJM_cjs.isStaleTaskUpdate; }
|
|
12549
12657
|
});
|
|
12550
12658
|
Object.defineProperty(exports, "patchCachedDocument", {
|
|
12551
12659
|
enumerable: true,
|
|
12552
|
-
get: function () { return
|
|
12660
|
+
get: function () { return chunkKFFH2JJM_cjs.patchCachedDocument; }
|
|
12553
12661
|
});
|
|
12554
12662
|
Object.defineProperty(exports, "patchDocuments", {
|
|
12555
12663
|
enumerable: true,
|
|
12556
|
-
get: function () { return
|
|
12664
|
+
get: function () { return chunkKFFH2JJM_cjs.patchDocuments; }
|
|
12557
12665
|
});
|
|
12558
12666
|
Object.defineProperty(exports, "patchWorkspaceTags", {
|
|
12559
12667
|
enumerable: true,
|
|
12560
|
-
get: function () { return
|
|
12668
|
+
get: function () { return chunkKFFH2JJM_cjs.patchWorkspaceTags; }
|
|
12561
12669
|
});
|
|
12562
12670
|
Object.defineProperty(exports, "refreshDocuments", {
|
|
12563
12671
|
enumerable: true,
|
|
12564
|
-
get: function () { return
|
|
12672
|
+
get: function () { return chunkKFFH2JJM_cjs.refreshDocuments; }
|
|
12565
12673
|
});
|
|
12566
12674
|
Object.defineProperty(exports, "resolveDocumentStatus", {
|
|
12567
12675
|
enumerable: true,
|
|
12568
|
-
get: function () { return
|
|
12676
|
+
get: function () { return chunkKFFH2JJM_cjs.resolveDocumentStatus; }
|
|
12569
12677
|
});
|
|
12570
12678
|
Object.defineProperty(exports, "setCachedDocument", {
|
|
12571
12679
|
enumerable: true,
|
|
12572
|
-
get: function () { return
|
|
12680
|
+
get: function () { return chunkKFFH2JJM_cjs.setCachedDocument; }
|
|
12573
12681
|
});
|
|
12574
12682
|
Object.defineProperty(exports, "settledByRows", {
|
|
12575
12683
|
enumerable: true,
|
|
12576
|
-
get: function () { return
|
|
12684
|
+
get: function () { return chunkKFFH2JJM_cjs.settledByRows; }
|
|
12577
12685
|
});
|
|
12578
12686
|
Object.defineProperty(exports, "startEntityExtraction", {
|
|
12579
12687
|
enumerable: true,
|
|
12580
|
-
get: function () { return
|
|
12688
|
+
get: function () { return chunkKFFH2JJM_cjs.startEntityExtraction; }
|
|
12581
12689
|
});
|
|
12582
12690
|
Object.defineProperty(exports, "stopDocumentsLoading", {
|
|
12583
12691
|
enumerable: true,
|
|
12584
|
-
get: function () { return
|
|
12692
|
+
get: function () { return chunkKFFH2JJM_cjs.stopDocumentsLoading; }
|
|
12585
12693
|
});
|
|
12586
12694
|
Object.defineProperty(exports, "subscribeDocumentRows", {
|
|
12587
12695
|
enumerable: true,
|
|
12588
|
-
get: function () { return
|
|
12696
|
+
get: function () { return chunkKFFH2JJM_cjs.subscribeDocumentRows; }
|
|
12589
12697
|
});
|
|
12590
12698
|
Object.defineProperty(exports, "upsertDocuments", {
|
|
12591
12699
|
enumerable: true,
|
|
12592
|
-
get: function () { return
|
|
12700
|
+
get: function () { return chunkKFFH2JJM_cjs.upsertDocuments; }
|
|
12593
12701
|
});
|
|
12594
12702
|
Object.defineProperty(exports, "useCreateTag", {
|
|
12595
12703
|
enumerable: true,
|
|
12596
|
-
get: function () { return
|
|
12704
|
+
get: function () { return chunkKFFH2JJM_cjs.useCreateTag; }
|
|
12597
12705
|
});
|
|
12598
12706
|
Object.defineProperty(exports, "useDeleteTag", {
|
|
12599
12707
|
enumerable: true,
|
|
12600
|
-
get: function () { return
|
|
12708
|
+
get: function () { return chunkKFFH2JJM_cjs.useDeleteTag; }
|
|
12601
12709
|
});
|
|
12602
12710
|
Object.defineProperty(exports, "useDocument", {
|
|
12603
12711
|
enumerable: true,
|
|
12604
|
-
get: function () { return
|
|
12712
|
+
get: function () { return chunkKFFH2JJM_cjs.useDocument; }
|
|
12605
12713
|
});
|
|
12606
12714
|
Object.defineProperty(exports, "useDocuments", {
|
|
12607
12715
|
enumerable: true,
|
|
12608
|
-
get: function () { return
|
|
12716
|
+
get: function () { return chunkKFFH2JJM_cjs.useDocuments; }
|
|
12609
12717
|
});
|
|
12610
12718
|
Object.defineProperty(exports, "useDocumentsById", {
|
|
12611
12719
|
enumerable: true,
|
|
12612
|
-
get: function () { return
|
|
12720
|
+
get: function () { return chunkKFFH2JJM_cjs.useDocumentsById; }
|
|
12613
12721
|
});
|
|
12614
12722
|
Object.defineProperty(exports, "useDocumentsLoading", {
|
|
12615
12723
|
enumerable: true,
|
|
12616
|
-
get: function () { return
|
|
12724
|
+
get: function () { return chunkKFFH2JJM_cjs.useDocumentsLoading; }
|
|
12617
12725
|
});
|
|
12618
12726
|
Object.defineProperty(exports, "useEntityExtractionDocIds", {
|
|
12619
12727
|
enumerable: true,
|
|
12620
|
-
get: function () { return
|
|
12728
|
+
get: function () { return chunkKFFH2JJM_cjs.useEntityExtractionDocIds; }
|
|
12621
12729
|
});
|
|
12622
12730
|
Object.defineProperty(exports, "useExtractEntities", {
|
|
12623
12731
|
enumerable: true,
|
|
12624
|
-
get: function () { return
|
|
12732
|
+
get: function () { return chunkKFFH2JJM_cjs.useExtractEntities; }
|
|
12625
12733
|
});
|
|
12626
12734
|
Object.defineProperty(exports, "useInvalidateTagData", {
|
|
12627
12735
|
enumerable: true,
|
|
12628
|
-
get: function () { return
|
|
12736
|
+
get: function () { return chunkKFFH2JJM_cjs.useInvalidateTagData; }
|
|
12629
12737
|
});
|
|
12630
12738
|
Object.defineProperty(exports, "useIsCreatingTag", {
|
|
12631
12739
|
enumerable: true,
|
|
12632
|
-
get: function () { return
|
|
12740
|
+
get: function () { return chunkKFFH2JJM_cjs.useIsCreatingTag; }
|
|
12633
12741
|
});
|
|
12634
12742
|
Object.defineProperty(exports, "useSetTagValues", {
|
|
12635
12743
|
enumerable: true,
|
|
12636
|
-
get: function () { return
|
|
12744
|
+
get: function () { return chunkKFFH2JJM_cjs.useSetTagValues; }
|
|
12637
12745
|
});
|
|
12638
12746
|
Object.defineProperty(exports, "useSimilarDocuments", {
|
|
12639
12747
|
enumerable: true,
|
|
12640
|
-
get: function () { return
|
|
12748
|
+
get: function () { return chunkKFFH2JJM_cjs.useSimilarDocuments; }
|
|
12641
12749
|
});
|
|
12642
12750
|
Object.defineProperty(exports, "useTagKindSchema", {
|
|
12643
12751
|
enumerable: true,
|
|
12644
|
-
get: function () { return
|
|
12752
|
+
get: function () { return chunkKFFH2JJM_cjs.useTagKindSchema; }
|
|
12645
12753
|
});
|
|
12646
12754
|
Object.defineProperty(exports, "useUpdateTag", {
|
|
12647
12755
|
enumerable: true,
|
|
12648
|
-
get: function () { return
|
|
12756
|
+
get: function () { return chunkKFFH2JJM_cjs.useUpdateTag; }
|
|
12649
12757
|
});
|
|
12650
12758
|
Object.defineProperty(exports, "useUpdateTagKindSchema", {
|
|
12651
12759
|
enumerable: true,
|
|
12652
|
-
get: function () { return
|
|
12760
|
+
get: function () { return chunkKFFH2JJM_cjs.useUpdateTagKindSchema; }
|
|
12653
12761
|
});
|
|
12654
12762
|
Object.defineProperty(exports, "DEFAULT_DOCUMENT_VIEWER_STATE", {
|
|
12655
12763
|
enumerable: true,
|
|
12656
|
-
get: function () { return
|
|
12764
|
+
get: function () { return chunkL3NHETSD_cjs.DEFAULT_DOCUMENT_VIEWER_STATE; }
|
|
12657
12765
|
});
|
|
12658
12766
|
Object.defineProperty(exports, "EMPTY_SESSION_STATE", {
|
|
12659
12767
|
enumerable: true,
|
|
12660
|
-
get: function () { return
|
|
12768
|
+
get: function () { return chunkL3NHETSD_cjs.EMPTY_SESSION_STATE; }
|
|
12661
12769
|
});
|
|
12662
12770
|
Object.defineProperty(exports, "MAX_THREAD_TABS", {
|
|
12663
12771
|
enumerable: true,
|
|
12664
|
-
get: function () { return
|
|
12772
|
+
get: function () { return chunkL3NHETSD_cjs.MAX_THREAD_TABS; }
|
|
12665
12773
|
});
|
|
12666
12774
|
Object.defineProperty(exports, "MIN_QUEUED_MESSAGE_VISIBILITY_MS", {
|
|
12667
12775
|
enumerable: true,
|
|
12668
|
-
get: function () { return
|
|
12776
|
+
get: function () { return chunkL3NHETSD_cjs.MIN_QUEUED_MESSAGE_VISIBILITY_MS; }
|
|
12669
12777
|
});
|
|
12670
12778
|
Object.defineProperty(exports, "PROJECT_CREATION_DENIED_REASON", {
|
|
12671
12779
|
enumerable: true,
|
|
12672
|
-
get: function () { return
|
|
12780
|
+
get: function () { return chunkL3NHETSD_cjs.PROJECT_CREATION_DENIED_REASON; }
|
|
12673
12781
|
});
|
|
12674
12782
|
Object.defineProperty(exports, "agentControl", {
|
|
12675
12783
|
enumerable: true,
|
|
12676
|
-
get: function () { return
|
|
12784
|
+
get: function () { return chunkL3NHETSD_cjs.agentControl; }
|
|
12677
12785
|
});
|
|
12678
12786
|
Object.defineProperty(exports, "clearSealedDrafts", {
|
|
12679
12787
|
enumerable: true,
|
|
12680
|
-
get: function () { return
|
|
12788
|
+
get: function () { return chunkL3NHETSD_cjs.clearSealedDrafts; }
|
|
12681
12789
|
});
|
|
12682
12790
|
Object.defineProperty(exports, "conversationKey", {
|
|
12683
12791
|
enumerable: true,
|
|
12684
|
-
get: function () { return
|
|
12792
|
+
get: function () { return chunkL3NHETSD_cjs.conversationKey; }
|
|
12685
12793
|
});
|
|
12686
12794
|
Object.defineProperty(exports, "createArbiSessionStore", {
|
|
12687
12795
|
enumerable: true,
|
|
12688
|
-
get: function () { return
|
|
12796
|
+
get: function () { return chunkL3NHETSD_cjs.createArbiSessionStore; }
|
|
12689
12797
|
});
|
|
12690
12798
|
Object.defineProperty(exports, "createSealedDraftStorage", {
|
|
12691
12799
|
enumerable: true,
|
|
12692
|
-
get: function () { return
|
|
12800
|
+
get: function () { return chunkL3NHETSD_cjs.createSealedDraftStorage; }
|
|
12693
12801
|
});
|
|
12694
12802
|
Object.defineProperty(exports, "isUsageMetered", {
|
|
12695
12803
|
enumerable: true,
|
|
12696
|
-
get: function () { return
|
|
12804
|
+
get: function () { return chunkL3NHETSD_cjs.isUsageMetered; }
|
|
12697
12805
|
});
|
|
12698
12806
|
Object.defineProperty(exports, "nextViewingDocument", {
|
|
12699
12807
|
enumerable: true,
|
|
12700
|
-
get: function () { return
|
|
12808
|
+
get: function () { return chunkL3NHETSD_cjs.nextViewingDocument; }
|
|
12701
12809
|
});
|
|
12702
12810
|
Object.defineProperty(exports, "queuedMessages", {
|
|
12703
12811
|
enumerable: true,
|
|
12704
|
-
get: function () { return
|
|
12812
|
+
get: function () { return chunkL3NHETSD_cjs.queuedMessages; }
|
|
12705
12813
|
});
|
|
12706
12814
|
Object.defineProperty(exports, "selectDraft", {
|
|
12707
12815
|
enumerable: true,
|
|
12708
|
-
get: function () { return
|
|
12816
|
+
get: function () { return chunkL3NHETSD_cjs.selectDraft; }
|
|
12709
12817
|
});
|
|
12710
12818
|
Object.defineProperty(exports, "selectIsGenerating", {
|
|
12711
12819
|
enumerable: true,
|
|
12712
|
-
get: function () { return
|
|
12820
|
+
get: function () { return chunkL3NHETSD_cjs.selectIsGenerating; }
|
|
12713
12821
|
});
|
|
12714
12822
|
Object.defineProperty(exports, "selectViewingDocumentId", {
|
|
12715
12823
|
enumerable: true,
|
|
12716
|
-
get: function () { return
|
|
12824
|
+
get: function () { return chunkL3NHETSD_cjs.selectViewingDocumentId; }
|
|
12717
12825
|
});
|
|
12718
12826
|
Object.defineProperty(exports, "threadTabId", {
|
|
12719
12827
|
enumerable: true,
|
|
12720
|
-
get: function () { return
|
|
12828
|
+
get: function () { return chunkL3NHETSD_cjs.threadTabId; }
|
|
12721
12829
|
});
|
|
12722
12830
|
Object.defineProperty(exports, "useActivity", {
|
|
12723
12831
|
enumerable: true,
|
|
12724
|
-
get: function () { return
|
|
12832
|
+
get: function () { return chunkL3NHETSD_cjs.useActivity; }
|
|
12725
12833
|
});
|
|
12726
12834
|
Object.defineProperty(exports, "useAgents", {
|
|
12727
12835
|
enumerable: true,
|
|
12728
|
-
get: function () { return
|
|
12836
|
+
get: function () { return chunkL3NHETSD_cjs.useAgents; }
|
|
12729
12837
|
});
|
|
12730
12838
|
Object.defineProperty(exports, "useArbiSession", {
|
|
12731
12839
|
enumerable: true,
|
|
12732
|
-
get: function () { return
|
|
12840
|
+
get: function () { return chunkL3NHETSD_cjs.useArbiSession; }
|
|
12733
12841
|
});
|
|
12734
12842
|
Object.defineProperty(exports, "useArbiSessionState", {
|
|
12735
12843
|
enumerable: true,
|
|
12736
|
-
get: function () { return
|
|
12844
|
+
get: function () { return chunkL3NHETSD_cjs.useArbiSessionState; }
|
|
12737
12845
|
});
|
|
12738
12846
|
Object.defineProperty(exports, "useArbiSessionStore", {
|
|
12739
12847
|
enumerable: true,
|
|
12740
|
-
get: function () { return
|
|
12848
|
+
get: function () { return chunkL3NHETSD_cjs.useArbiSessionStore; }
|
|
12741
12849
|
});
|
|
12742
12850
|
Object.defineProperty(exports, "useAssistantQuery", {
|
|
12743
12851
|
enumerable: true,
|
|
12744
|
-
get: function () { return
|
|
12852
|
+
get: function () { return chunkL3NHETSD_cjs.useAssistantQuery; }
|
|
12745
12853
|
});
|
|
12746
12854
|
Object.defineProperty(exports, "useAvailableModels", {
|
|
12747
12855
|
enumerable: true,
|
|
12748
|
-
get: function () { return
|
|
12856
|
+
get: function () { return chunkL3NHETSD_cjs.useAvailableModels; }
|
|
12749
12857
|
});
|
|
12750
12858
|
Object.defineProperty(exports, "useBuiltinCommands", {
|
|
12751
12859
|
enumerable: true,
|
|
12752
|
-
get: function () { return
|
|
12860
|
+
get: function () { return chunkL3NHETSD_cjs.useBuiltinCommands; }
|
|
12753
12861
|
});
|
|
12754
12862
|
Object.defineProperty(exports, "useCanCreateProjects", {
|
|
12755
12863
|
enumerable: true,
|
|
12756
|
-
get: function () { return
|
|
12864
|
+
get: function () { return chunkL3NHETSD_cjs.useCanCreateProjects; }
|
|
12757
12865
|
});
|
|
12758
12866
|
Object.defineProperty(exports, "useConfig", {
|
|
12759
12867
|
enumerable: true,
|
|
12760
|
-
get: function () { return
|
|
12868
|
+
get: function () { return chunkL3NHETSD_cjs.useConfig; }
|
|
12761
12869
|
});
|
|
12762
12870
|
Object.defineProperty(exports, "useConfigs", {
|
|
12763
12871
|
enumerable: true,
|
|
12764
|
-
get: function () { return
|
|
12872
|
+
get: function () { return chunkL3NHETSD_cjs.useConfigs; }
|
|
12765
12873
|
});
|
|
12766
12874
|
Object.defineProperty(exports, "useConversationThreads", {
|
|
12767
12875
|
enumerable: true,
|
|
12768
|
-
get: function () { return
|
|
12876
|
+
get: function () { return chunkL3NHETSD_cjs.useConversationThreads; }
|
|
12769
12877
|
});
|
|
12770
12878
|
Object.defineProperty(exports, "useConversations", {
|
|
12771
12879
|
enumerable: true,
|
|
12772
|
-
get: function () { return
|
|
12880
|
+
get: function () { return chunkL3NHETSD_cjs.useConversations; }
|
|
12773
12881
|
});
|
|
12774
12882
|
Object.defineProperty(exports, "useCurrentUser", {
|
|
12775
12883
|
enumerable: true,
|
|
12776
|
-
get: function () { return
|
|
12884
|
+
get: function () { return chunkL3NHETSD_cjs.useCurrentUser; }
|
|
12777
12885
|
});
|
|
12778
12886
|
Object.defineProperty(exports, "useDeleteAgents", {
|
|
12779
12887
|
enumerable: true,
|
|
12780
|
-
get: function () { return
|
|
12888
|
+
get: function () { return chunkL3NHETSD_cjs.useDeleteAgents; }
|
|
12781
12889
|
});
|
|
12782
12890
|
Object.defineProperty(exports, "useDocumentVersionList", {
|
|
12783
12891
|
enumerable: true,
|
|
12784
|
-
get: function () { return
|
|
12892
|
+
get: function () { return chunkL3NHETSD_cjs.useDocumentVersionList; }
|
|
12785
12893
|
});
|
|
12786
12894
|
Object.defineProperty(exports, "useFirmPool", {
|
|
12787
12895
|
enumerable: true,
|
|
12788
|
-
get: function () { return
|
|
12896
|
+
get: function () { return chunkL3NHETSD_cjs.useFirmPool; }
|
|
12789
12897
|
});
|
|
12790
12898
|
Object.defineProperty(exports, "useHealth", {
|
|
12791
12899
|
enumerable: true,
|
|
12792
|
-
get: function () { return
|
|
12900
|
+
get: function () { return chunkL3NHETSD_cjs.useHealth; }
|
|
12793
12901
|
});
|
|
12794
12902
|
Object.defineProperty(exports, "useMessageDetails", {
|
|
12795
12903
|
enumerable: true,
|
|
12796
|
-
get: function () { return
|
|
12904
|
+
get: function () { return chunkL3NHETSD_cjs.useMessageDetails; }
|
|
12797
12905
|
});
|
|
12798
12906
|
Object.defineProperty(exports, "useParsedDocument", {
|
|
12799
12907
|
enumerable: true,
|
|
12800
|
-
get: function () { return
|
|
12908
|
+
get: function () { return chunkL3NHETSD_cjs.useParsedDocument; }
|
|
12801
12909
|
});
|
|
12802
12910
|
Object.defineProperty(exports, "useProjectInvoices", {
|
|
12803
12911
|
enumerable: true,
|
|
12804
|
-
get: function () { return
|
|
12912
|
+
get: function () { return chunkL3NHETSD_cjs.useProjectInvoices; }
|
|
12805
12913
|
});
|
|
12806
12914
|
Object.defineProperty(exports, "useProjectUsage", {
|
|
12807
12915
|
enumerable: true,
|
|
12808
|
-
get: function () { return
|
|
12916
|
+
get: function () { return chunkL3NHETSD_cjs.useProjectUsage; }
|
|
12809
12917
|
});
|
|
12810
12918
|
Object.defineProperty(exports, "useProjects", {
|
|
12811
12919
|
enumerable: true,
|
|
12812
|
-
get: function () { return
|
|
12920
|
+
get: function () { return chunkL3NHETSD_cjs.useProjects; }
|
|
12813
12921
|
});
|
|
12814
12922
|
Object.defineProperty(exports, "useProjectsUsage", {
|
|
12815
12923
|
enumerable: true,
|
|
12816
|
-
get: function () { return
|
|
12924
|
+
get: function () { return chunkL3NHETSD_cjs.useProjectsUsage; }
|
|
12817
12925
|
});
|
|
12818
12926
|
Object.defineProperty(exports, "useSignedInSession", {
|
|
12819
12927
|
enumerable: true,
|
|
12820
|
-
get: function () { return
|
|
12928
|
+
get: function () { return chunkL3NHETSD_cjs.useSignedInSession; }
|
|
12821
12929
|
});
|
|
12822
12930
|
Object.defineProperty(exports, "useTags", {
|
|
12823
12931
|
enumerable: true,
|
|
12824
|
-
get: function () { return
|
|
12932
|
+
get: function () { return chunkL3NHETSD_cjs.useTags; }
|
|
12825
12933
|
});
|
|
12826
12934
|
Object.defineProperty(exports, "useThumbnails", {
|
|
12827
12935
|
enumerable: true,
|
|
12828
|
-
get: function () { return
|
|
12936
|
+
get: function () { return chunkL3NHETSD_cjs.useThumbnails; }
|
|
12829
12937
|
});
|
|
12830
12938
|
Object.defineProperty(exports, "useTopUpFirmPool", {
|
|
12831
12939
|
enumerable: true,
|
|
12832
|
-
get: function () { return
|
|
12940
|
+
get: function () { return chunkL3NHETSD_cjs.useTopUpFirmPool; }
|
|
12833
12941
|
});
|
|
12834
12942
|
Object.defineProperty(exports, "useUserUsageToday", {
|
|
12835
12943
|
enumerable: true,
|
|
12836
|
-
get: function () { return
|
|
12944
|
+
get: function () { return chunkL3NHETSD_cjs.useUserUsageToday; }
|
|
12837
12945
|
});
|
|
12838
12946
|
Object.defineProperty(exports, "useWorkspaceActivity", {
|
|
12839
12947
|
enumerable: true,
|
|
12840
|
-
get: function () { return
|
|
12948
|
+
get: function () { return chunkL3NHETSD_cjs.useWorkspaceActivity; }
|
|
12841
12949
|
});
|
|
12842
12950
|
Object.defineProperty(exports, "useWorkspaces", {
|
|
12843
12951
|
enumerable: true,
|
|
12844
|
-
get: function () { return
|
|
12952
|
+
get: function () { return chunkL3NHETSD_cjs.useWorkspaces; }
|
|
12845
12953
|
});
|
|
12846
12954
|
Object.defineProperty(exports, "arbiMutationKeys", {
|
|
12847
12955
|
enumerable: true,
|
|
12848
|
-
get: function () { return
|
|
12956
|
+
get: function () { return chunkH4FGDXYB_cjs.arbiMutationKeys; }
|
|
12849
12957
|
});
|
|
12850
12958
|
Object.defineProperty(exports, "arbiQueryKeys", {
|
|
12851
12959
|
enumerable: true,
|
|
12852
|
-
get: function () { return
|
|
12960
|
+
get: function () { return chunkH4FGDXYB_cjs.arbiQueryKeys; }
|
|
12853
12961
|
});
|
|
12854
12962
|
Object.defineProperty(exports, "calendarQueryKeys", {
|
|
12855
12963
|
enumerable: true,
|
|
12856
|
-
get: function () { return
|
|
12964
|
+
get: function () { return chunkH4FGDXYB_cjs.calendarQueryKeys; }
|
|
12857
12965
|
});
|
|
12858
12966
|
Object.defineProperty(exports, "callQueryKeys", {
|
|
12859
12967
|
enumerable: true,
|
|
12860
|
-
get: function () { return
|
|
12968
|
+
get: function () { return chunkH4FGDXYB_cjs.callQueryKeys; }
|
|
12861
12969
|
});
|
|
12862
12970
|
Object.defineProperty(exports, "connectorQueryKeys", {
|
|
12863
12971
|
enumerable: true,
|
|
12864
|
-
get: function () { return
|
|
12972
|
+
get: function () { return chunkH4FGDXYB_cjs.connectorQueryKeys; }
|
|
12865
12973
|
});
|
|
12866
12974
|
Object.defineProperty(exports, "isUnderQueryKey", {
|
|
12867
12975
|
enumerable: true,
|
|
12868
|
-
get: function () { return
|
|
12976
|
+
get: function () { return chunkH4FGDXYB_cjs.isUnderQueryKey; }
|
|
12869
12977
|
});
|
|
12870
12978
|
Object.defineProperty(exports, "mailQueryKeys", {
|
|
12871
12979
|
enumerable: true,
|
|
12872
|
-
get: function () { return
|
|
12980
|
+
get: function () { return chunkH4FGDXYB_cjs.mailQueryKeys; }
|
|
12981
|
+
});
|
|
12982
|
+
Object.defineProperty(exports, "LEGACY_THREAD_DOCUMENTS_KEY", {
|
|
12983
|
+
enumerable: true,
|
|
12984
|
+
get: function () { return chunkQYUL4GQC_cjs.LEGACY_THREAD_DOCUMENTS_KEY; }
|
|
12873
12985
|
});
|
|
12874
12986
|
Object.defineProperty(exports, "MENTION_HREF_PREFIX", {
|
|
12875
12987
|
enumerable: true,
|
|
12876
|
-
get: function () { return
|
|
12988
|
+
get: function () { return chunkQYUL4GQC_cjs.MENTION_HREF_PREFIX; }
|
|
12877
12989
|
});
|
|
12878
12990
|
Object.defineProperty(exports, "NotificationBell", {
|
|
12879
12991
|
enumerable: true,
|
|
12880
|
-
get: function () { return
|
|
12992
|
+
get: function () { return chunkQYUL4GQC_cjs.NotificationBell; }
|
|
12881
12993
|
});
|
|
12882
12994
|
Object.defineProperty(exports, "Toaster", {
|
|
12883
12995
|
enumerable: true,
|
|
12884
|
-
get: function () { return
|
|
12885
|
-
});
|
|
12886
|
-
Object.defineProperty(exports, "adoptNewChatDocument", {
|
|
12887
|
-
enumerable: true,
|
|
12888
|
-
get: function () { return chunkTYZFRV7P_cjs.adoptNewChatDocument; }
|
|
12996
|
+
get: function () { return chunkQYUL4GQC_cjs.Toaster; }
|
|
12889
12997
|
});
|
|
12890
|
-
Object.defineProperty(exports, "
|
|
12998
|
+
Object.defineProperty(exports, "UNBOUND", {
|
|
12891
12999
|
enumerable: true,
|
|
12892
|
-
get: function () { return
|
|
13000
|
+
get: function () { return chunkQYUL4GQC_cjs.UNBOUND; }
|
|
12893
13001
|
});
|
|
12894
|
-
Object.defineProperty(exports, "
|
|
13002
|
+
Object.defineProperty(exports, "bindingOfRow", {
|
|
12895
13003
|
enumerable: true,
|
|
12896
|
-
get: function () { return
|
|
13004
|
+
get: function () { return chunkQYUL4GQC_cjs.bindingOfRow; }
|
|
12897
13005
|
});
|
|
12898
13006
|
Object.defineProperty(exports, "clearSearchSession", {
|
|
12899
13007
|
enumerable: true,
|
|
12900
|
-
get: function () { return
|
|
13008
|
+
get: function () { return chunkQYUL4GQC_cjs.clearSearchSession; }
|
|
12901
13009
|
});
|
|
12902
13010
|
Object.defineProperty(exports, "createSearchSession", {
|
|
12903
13011
|
enumerable: true,
|
|
12904
|
-
get: function () { return
|
|
13012
|
+
get: function () { return chunkQYUL4GQC_cjs.createSearchSession; }
|
|
12905
13013
|
});
|
|
12906
13014
|
Object.defineProperty(exports, "extractMentions", {
|
|
12907
13015
|
enumerable: true,
|
|
12908
|
-
get: function () { return
|
|
13016
|
+
get: function () { return chunkQYUL4GQC_cjs.extractMentions; }
|
|
12909
13017
|
});
|
|
12910
13018
|
Object.defineProperty(exports, "filterMentionCandidates", {
|
|
12911
13019
|
enumerable: true,
|
|
12912
|
-
get: function () { return
|
|
13020
|
+
get: function () { return chunkQYUL4GQC_cjs.filterMentionCandidates; }
|
|
12913
13021
|
});
|
|
12914
13022
|
Object.defineProperty(exports, "findMentionQuery", {
|
|
12915
13023
|
enumerable: true,
|
|
12916
|
-
get: function () { return
|
|
13024
|
+
get: function () { return chunkQYUL4GQC_cjs.findMentionQuery; }
|
|
13025
|
+
});
|
|
13026
|
+
Object.defineProperty(exports, "forgetLegacyThreadDocuments", {
|
|
13027
|
+
enumerable: true,
|
|
13028
|
+
get: function () { return chunkQYUL4GQC_cjs.forgetLegacyThreadDocuments; }
|
|
12917
13029
|
});
|
|
12918
13030
|
Object.defineProperty(exports, "formatRelativeTime", {
|
|
12919
13031
|
enumerable: true,
|
|
12920
|
-
get: function () { return
|
|
13032
|
+
get: function () { return chunkQYUL4GQC_cjs.formatRelativeTime; }
|
|
12921
13033
|
});
|
|
12922
13034
|
Object.defineProperty(exports, "hasMessageBody", {
|
|
12923
13035
|
enumerable: true,
|
|
12924
|
-
get: function () { return
|
|
13036
|
+
get: function () { return chunkQYUL4GQC_cjs.hasMessageBody; }
|
|
12925
13037
|
});
|
|
12926
13038
|
Object.defineProperty(exports, "insertMention", {
|
|
12927
13039
|
enumerable: true,
|
|
12928
|
-
get: function () { return
|
|
13040
|
+
get: function () { return chunkQYUL4GQC_cjs.insertMention; }
|
|
12929
13041
|
});
|
|
12930
13042
|
Object.defineProperty(exports, "latestThreadOfDocument", {
|
|
12931
13043
|
enumerable: true,
|
|
12932
|
-
get: function () { return
|
|
13044
|
+
get: function () { return chunkQYUL4GQC_cjs.latestThreadOfDocument; }
|
|
12933
13045
|
});
|
|
12934
13046
|
Object.defineProperty(exports, "linkMentions", {
|
|
12935
13047
|
enumerable: true,
|
|
12936
|
-
get: function () { return
|
|
13048
|
+
get: function () { return chunkQYUL4GQC_cjs.linkMentions; }
|
|
12937
13049
|
});
|
|
12938
13050
|
Object.defineProperty(exports, "mentionFromHref", {
|
|
12939
13051
|
enumerable: true,
|
|
12940
|
-
get: function () { return
|
|
13052
|
+
get: function () { return chunkQYUL4GQC_cjs.mentionFromHref; }
|
|
12941
13053
|
});
|
|
12942
13054
|
Object.defineProperty(exports, "openDocumentId", {
|
|
12943
13055
|
enumerable: true,
|
|
12944
|
-
get: function () { return
|
|
13056
|
+
get: function () { return chunkQYUL4GQC_cjs.openDocumentId; }
|
|
12945
13057
|
});
|
|
12946
13058
|
Object.defineProperty(exports, "persistSearchSession", {
|
|
12947
13059
|
enumerable: true,
|
|
12948
|
-
get: function () { return
|
|
13060
|
+
get: function () { return chunkQYUL4GQC_cjs.persistSearchSession; }
|
|
12949
13061
|
});
|
|
12950
|
-
Object.defineProperty(exports, "
|
|
13062
|
+
Object.defineProperty(exports, "readLegacyThreadDocuments", {
|
|
12951
13063
|
enumerable: true,
|
|
12952
|
-
get: function () { return
|
|
13064
|
+
get: function () { return chunkQYUL4GQC_cjs.readLegacyThreadDocuments; }
|
|
12953
13065
|
});
|
|
12954
13066
|
Object.defineProperty(exports, "requestSearch", {
|
|
12955
13067
|
enumerable: true,
|
|
12956
|
-
get: function () { return
|
|
12957
|
-
});
|
|
12958
|
-
Object.defineProperty(exports, "resetThreadDocumentsForTests", {
|
|
12959
|
-
enumerable: true,
|
|
12960
|
-
get: function () { return chunkTYZFRV7P_cjs.resetThreadDocumentsForTests; }
|
|
13068
|
+
get: function () { return chunkQYUL4GQC_cjs.requestSearch; }
|
|
12961
13069
|
});
|
|
12962
13070
|
Object.defineProperty(exports, "savedDocumentIdFor", {
|
|
12963
13071
|
enumerable: true,
|
|
12964
|
-
get: function () { return
|
|
13072
|
+
get: function () { return chunkQYUL4GQC_cjs.savedDocumentIdFor; }
|
|
12965
13073
|
});
|
|
12966
13074
|
Object.defineProperty(exports, "sharedSearchSession", {
|
|
12967
13075
|
enumerable: true,
|
|
12968
|
-
get: function () { return
|
|
12969
|
-
});
|
|
12970
|
-
Object.defineProperty(exports, "subscribeThreadDocuments", {
|
|
12971
|
-
enumerable: true,
|
|
12972
|
-
get: function () { return chunkTYZFRV7P_cjs.subscribeThreadDocuments; }
|
|
13076
|
+
get: function () { return chunkQYUL4GQC_cjs.sharedSearchSession; }
|
|
12973
13077
|
});
|
|
12974
13078
|
Object.defineProperty(exports, "takeDocumentForTurn", {
|
|
12975
13079
|
enumerable: true,
|
|
12976
|
-
get: function () { return
|
|
13080
|
+
get: function () { return chunkQYUL4GQC_cjs.takeDocumentForTurn; }
|
|
12977
13081
|
});
|
|
12978
13082
|
Object.defineProperty(exports, "takePendingSearch", {
|
|
12979
13083
|
enumerable: true,
|
|
12980
|
-
get: function () { return
|
|
12981
|
-
});
|
|
12982
|
-
Object.defineProperty(exports, "threadDocumentId", {
|
|
12983
|
-
enumerable: true,
|
|
12984
|
-
get: function () { return chunkTYZFRV7P_cjs.threadDocumentId; }
|
|
13084
|
+
get: function () { return chunkQYUL4GQC_cjs.takePendingSearch; }
|
|
12985
13085
|
});
|
|
12986
13086
|
Object.defineProperty(exports, "toMessageMentions", {
|
|
12987
13087
|
enumerable: true,
|
|
12988
|
-
get: function () { return
|
|
13088
|
+
get: function () { return chunkQYUL4GQC_cjs.toMessageMentions; }
|
|
12989
13089
|
});
|
|
12990
13090
|
Object.defineProperty(exports, "useOpenDocumentId", {
|
|
12991
13091
|
enumerable: true,
|
|
12992
|
-
get: function () { return
|
|
13092
|
+
get: function () { return chunkQYUL4GQC_cjs.useOpenDocumentId; }
|
|
12993
13093
|
});
|
|
12994
13094
|
Object.defineProperty(exports, "useRegisterOpenDocument", {
|
|
12995
13095
|
enumerable: true,
|
|
12996
|
-
get: function () { return
|
|
13096
|
+
get: function () { return chunkQYUL4GQC_cjs.useRegisterOpenDocument; }
|
|
12997
13097
|
});
|
|
12998
13098
|
Object.defineProperty(exports, "useTurnDocumentId", {
|
|
12999
13099
|
enumerable: true,
|
|
13000
|
-
get: function () { return
|
|
13100
|
+
get: function () { return chunkQYUL4GQC_cjs.useTurnDocumentId; }
|
|
13001
13101
|
});
|
|
13002
13102
|
Object.defineProperty(exports, "DEFAULT_NOTIFY_TONE", {
|
|
13003
13103
|
enumerable: true,
|
|
@@ -13891,18 +13991,6 @@ Object.defineProperty(exports, "ScrollBar", {
|
|
|
13891
13991
|
enumerable: true,
|
|
13892
13992
|
get: function () { return chunkHUZB36QU_cjs.ScrollBar; }
|
|
13893
13993
|
});
|
|
13894
|
-
Object.defineProperty(exports, "closeOpenEmphasis", {
|
|
13895
|
-
enumerable: true,
|
|
13896
|
-
get: function () { return chunkZ3LLUO32_cjs.closeOpenEmphasis; }
|
|
13897
|
-
});
|
|
13898
|
-
Object.defineProperty(exports, "normalizeCitationMarkup", {
|
|
13899
|
-
enumerable: true,
|
|
13900
|
-
get: function () { return chunkZ3LLUO32_cjs.normalizeCitationMarkup; }
|
|
13901
|
-
});
|
|
13902
|
-
Object.defineProperty(exports, "trimOpenCitation", {
|
|
13903
|
-
enumerable: true,
|
|
13904
|
-
get: function () { return chunkZ3LLUO32_cjs.trimOpenCitation; }
|
|
13905
|
-
});
|
|
13906
13994
|
Object.defineProperty(exports, "DropdownMenu", {
|
|
13907
13995
|
enumerable: true,
|
|
13908
13996
|
get: function () { return chunkHJDR5HEO_cjs.DropdownMenu; }
|
|
@@ -13971,6 +14059,18 @@ Object.defineProperty(exports, "usePortalContainer", {
|
|
|
13971
14059
|
enumerable: true,
|
|
13972
14060
|
get: function () { return chunkHJDR5HEO_cjs.usePortalContainer; }
|
|
13973
14061
|
});
|
|
14062
|
+
Object.defineProperty(exports, "closeOpenEmphasis", {
|
|
14063
|
+
enumerable: true,
|
|
14064
|
+
get: function () { return chunkZ3LLUO32_cjs.closeOpenEmphasis; }
|
|
14065
|
+
});
|
|
14066
|
+
Object.defineProperty(exports, "normalizeCitationMarkup", {
|
|
14067
|
+
enumerable: true,
|
|
14068
|
+
get: function () { return chunkZ3LLUO32_cjs.normalizeCitationMarkup; }
|
|
14069
|
+
});
|
|
14070
|
+
Object.defineProperty(exports, "trimOpenCitation", {
|
|
14071
|
+
enumerable: true,
|
|
14072
|
+
get: function () { return chunkZ3LLUO32_cjs.trimOpenCitation; }
|
|
14073
|
+
});
|
|
13974
14074
|
Object.defineProperty(exports, "cn", {
|
|
13975
14075
|
enumerable: true,
|
|
13976
14076
|
get: function () { return chunkS6A6FSG7_cjs.cn; }
|
|
@@ -14148,6 +14248,7 @@ exports.__resetStreamingTokenBufferForTests = __resetStreamingTokenBufferForTest
|
|
|
14148
14248
|
exports.accountPath = accountPath;
|
|
14149
14249
|
exports.addAssistantMessageToCache = addAssistantMessageToCache;
|
|
14150
14250
|
exports.addUserMessageToCache = addUserMessageToCache;
|
|
14251
|
+
exports.adoptNewChatDocument = adoptNewChatDocument;
|
|
14151
14252
|
exports.aliasTakenMessage = aliasTakenMessage;
|
|
14152
14253
|
exports.allConversationThreads = allConversationThreads;
|
|
14153
14254
|
exports.annotateThread = annotateThread;
|
|
@@ -14160,10 +14261,13 @@ exports.applyOutputItemToMessage = applyOutputItemToMessage;
|
|
|
14160
14261
|
exports.arbiMailClient = arbiMailClient;
|
|
14161
14262
|
exports.archiveName = archiveName;
|
|
14162
14263
|
exports.archivedWorkspaceMessage = archivedWorkspaceMessage;
|
|
14264
|
+
exports.bindThreadDocument = bindThreadDocument;
|
|
14265
|
+
exports.boundDocumentOf = boundDocumentOf;
|
|
14163
14266
|
exports.buildDocumentMetadataRows = buildDocumentMetadataRows;
|
|
14164
14267
|
exports.buildMentionCandidates = buildMentionCandidates;
|
|
14165
14268
|
exports.buildPendingFirstTurn = buildPendingFirstTurn;
|
|
14166
14269
|
exports.buildWorkspaceArchive = buildWorkspaceArchive;
|
|
14270
|
+
exports.cacheThreadBinding = cacheThreadBinding;
|
|
14167
14271
|
exports.cachedAssistantMode = cachedAssistantMode;
|
|
14168
14272
|
exports.cachedMentionCandidates = cachedMentionCandidates;
|
|
14169
14273
|
exports.cachedQuotaUsedUp = cachedQuotaUsedUp;
|
|
@@ -14240,6 +14344,7 @@ exports.mailDraftIdFromContent = mailDraftIdFromContent;
|
|
|
14240
14344
|
exports.mailJson = mailJson;
|
|
14241
14345
|
exports.markMessageAsFailed = markMessageAsFailed;
|
|
14242
14346
|
exports.markNarrationSettled = markNarrationSettled;
|
|
14347
|
+
exports.migrateLegacyThreadDocuments = migrateLegacyThreadDocuments;
|
|
14243
14348
|
exports.mountDiditVerification = mountDiditVerification;
|
|
14244
14349
|
exports.nextAliasSuggestion = nextAliasSuggestion;
|
|
14245
14350
|
exports.notificationUserName = notificationUserName;
|
|
@@ -14270,6 +14375,7 @@ exports.signatureRequestMeta = signatureRequestMeta;
|
|
|
14270
14375
|
exports.subscribeDocumentReads = subscribeDocumentReads;
|
|
14271
14376
|
exports.supportsHouseTemplates = supportsHouseTemplates;
|
|
14272
14377
|
exports.textToArtifact = textToArtifact;
|
|
14378
|
+
exports.threadBinding = threadBinding;
|
|
14273
14379
|
exports.threadEndingAtContains = threadEndingAtContains;
|
|
14274
14380
|
exports.titleFromQuestion = titleFromQuestion;
|
|
14275
14381
|
exports.toChatCitations = toChatCitations;
|