@arbidocs/react 0.5.4 → 0.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/artifacts/index.cjs +10 -10
- package/dist/artifacts/index.js +3 -3
- package/dist/calls/livekit/index.cjs +42 -42
- package/dist/calls/livekit/index.js +3 -3
- package/dist/{chunk-Y3LBWRXS.js → chunk-7OD25FTK.js} +4 -4
- package/dist/{chunk-Y3LBWRXS.js.map → chunk-7OD25FTK.js.map} +1 -1
- package/dist/{chunk-6YLK5AGS.js → chunk-GN33GLHR.js} +3 -3
- package/dist/{chunk-6YLK5AGS.js.map → chunk-GN33GLHR.js.map} +1 -1
- package/dist/{chunk-VLK52VXC.cjs → chunk-H4FGDXYB.cjs} +4 -2
- package/dist/chunk-H4FGDXYB.cjs.map +1 -0
- package/dist/{chunk-SBWEI3BO.cjs → chunk-KFFH2JJM.cjs} +32 -32
- package/dist/{chunk-SBWEI3BO.cjs.map → chunk-KFFH2JJM.cjs.map} +1 -1
- package/dist/{chunk-IFPSLIRL.cjs → chunk-L3NHETSD.cjs} +33 -33
- package/dist/{chunk-IFPSLIRL.cjs.map → chunk-L3NHETSD.cjs.map} +1 -1
- package/dist/{chunk-X2OC2LCD.js → chunk-ME2D5GWC.js} +3 -3
- package/dist/{chunk-X2OC2LCD.js.map → chunk-ME2D5GWC.js.map} +1 -1
- package/dist/{chunk-NVAIVJID.js → chunk-RG2ZE7DF.js} +4 -2
- package/dist/chunk-RG2ZE7DF.js.map +1 -0
- package/dist/{chunk-J62MWU4O.cjs → chunk-ZLHS3UKP.cjs} +41 -41
- package/dist/{chunk-J62MWU4O.cjs.map → chunk-ZLHS3UKP.cjs.map} +1 -1
- package/dist/document-tools/index.cjs +16 -16
- package/dist/document-tools/index.d.cts +2 -2
- package/dist/document-tools/index.d.ts +2 -2
- package/dist/document-tools/index.js +2 -2
- package/dist/index.cjs +687 -687
- package/dist/index.d.cts +56 -1
- package/dist/index.d.ts +56 -1
- package/dist/index.js +8 -8
- 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/package.json +3 -3
- package/dist/chunk-NVAIVJID.js.map +0 -1
- package/dist/chunk-VLK52VXC.cjs.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -16,7 +16,7 @@ import { M as MeetingChatRef, a as ActiveCall, W as SegmenterConfig, G as Incomi
|
|
|
16
16
|
export { A as AUDIENCE_CHOICES, c as AudioRecorderState, d as AudioSegment, C as CALL_CAPTION_TOPIC, e as CALL_CHAT_MAX_CHARS, f as CALL_CHAT_TOPIC, g as CALL_RECORDING_TOPIC, h as CALL_TRANSCRIPTION_TOPIC, i as CALL_WEBINAR_TOPIC, j as CAPTION_MAX_CHARS, k as COMPOSITE_AUDIO_BITS_PER_SECOND, l as COMPOSITE_VIDEO_BITS_PER_SECOND, m as CallChatLine, n as CallChatPacket, o as CallSessionState, p as CaptionLine, q as CaptionPacket, r as ChatAttachmentFile, s as ChatEvent, u as ChatMessageResponse, w as ChatThreadData, y as ConversationKey, D as DEFAULT_JOIN_CHOICES, z as DEFAULT_SEGMENTER_CONFIG, B as DecryptedChatMessage, E as EMPTY_CALL_SESSION, H as HISTORY_LIMIT, F as HistoryMessage, I as INITIAL_SEGMENTER_STATE, L as LIVE_SEGMENTER, K as LiveCall, O as NewActiveCall, P as OpenQuestion, Q as PendingKnock, R as PendingPart, S as READ_ONLY_MEETING_TEXT, T as RECORDING_CHUNK_MS, U as SEGMENT_ID_PATTERN, V as SPEAKER_AUDIO_BITS_PER_SECOND, X as SegmenterEvent, Y as SegmenterState, Z as TrackUploader, _ as TrackUploaderOptions, $ as TranscriptSegment, a0 as UPLOAD_ATTEMPTS, a1 as UPLOAD_BACKOFF_MS, a2 as UploaderDeps, a3 as UseAudioRecorderOptions, a4 as UseAudioRecorderResult, a5 as WebinarPacket, a6 as appendToThread, a7 as applyAgentDmStatus, a8 as applyChatEvent, a9 as applyChatMessage, aa as applyChatRead, ab as applyChatUpdated, ac as buildMeetingChatBody, ad as cachedChat, ae as cachedChats, af as callMemberKeys, ag as callSession, ah as chatByExtId, ai as chatHasLiveCall, aj as chatLiveCallId, ak as clearMeetingChatCache, al as clearTrackUploaders, am as conversationKeyForCall, an as decodeCallChatPacket, ao as decodeCaptionPacket, ap as decryptPart, aq as encodeCallChatPacket, ar as encodeCaptionPacket, as as encryptPart, at as ensureMeetingChat, au as flushSegmenter, av as getOpenChat, aw as isRecordingOver, ax as isRetryable, ay as knownMeetingChat, az as levelFromRms, aA as loadMeetingHistory, aB as markRejoining, aC as meetingChatRefFrom, aD as meetingRefForCall, aE as mergeChatLines, aF as myChatId, aG as newPacketId, aH as newSegmentId, aI as newTrackKey, aJ as nextSeqAfter, aK as openQuestion, aL as parseWebinarPacket, aM as partOffsetMs, aN as persistMeetingMessage, aO as persistTranscriptSegment, aP as rejoinAsAudience, aQ as removeChat, aR as resetCallSession, aS as resolveMeetingChat, aT as sealQuestionText, aU as setOpenChat, aV as stepSegmenter, aW as storeTranscriptSegment, aX as threadHasLiveCall, aY as threadLiveCallId, aZ as threadTranscriptText, a_ as trackUploaderFor, a$ as transcriptPersistRole, b0 as unwrapTrackKey, b1 as upsertChat, b2 as useAudioRecorder, b3 as useCallSession, b4 as wrapTrackKey } from './useAudioRecorder.d-CWFDsb_S.cjs';
|
|
17
17
|
import * as zustand from 'zustand';
|
|
18
18
|
import * as _tanstack_query_core from '@tanstack/query-core';
|
|
19
|
-
export { a as arbiMutationKeys, b as arbiQueryKeys, c as calendarQueryKeys, d as callQueryKeys, e as connectorQueryKeys, i as isUnderQueryKey, m as mailQueryKeys } from './query-keys.d-
|
|
19
|
+
export { a as arbiMutationKeys, b as arbiQueryKeys, c as calendarQueryKeys, d as callQueryKeys, e as connectorQueryKeys, i as isUnderQueryKey, m as mailQueryKeys } from './query-keys.d-ClYiYNBR.cjs';
|
|
20
20
|
import { VerificationResult } from '@didit-protocol/sdk-web';
|
|
21
21
|
import { LucideIcon } from 'lucide-react';
|
|
22
22
|
import { Components } from 'react-markdown';
|
|
@@ -4039,6 +4039,9 @@ declare function useAvailableModels(options?: {
|
|
|
4039
4039
|
supports_reasoning?: boolean | null | undefined;
|
|
4040
4040
|
supports_function_calling?: boolean | null | undefined;
|
|
4041
4041
|
supports_response_schema?: boolean | null | undefined;
|
|
4042
|
+
display_name?: string | null | undefined;
|
|
4043
|
+
connection_scope?: string | null | undefined;
|
|
4044
|
+
externally_billed: boolean;
|
|
4042
4045
|
}[];
|
|
4043
4046
|
premium_default?: string | null | undefined;
|
|
4044
4047
|
}>, Error>;
|
|
@@ -4155,6 +4158,7 @@ declare function useConfig(configId: string | null | undefined, options?: {
|
|
|
4155
4158
|
MODEL_NAME: string;
|
|
4156
4159
|
SYSTEM_INSTRUCTION: string;
|
|
4157
4160
|
MAX_TOKEN_CONTEXT_TO_ANSWER: number;
|
|
4161
|
+
METADATA_CONTEXT_TOKENS: number;
|
|
4158
4162
|
TEMPERATURE: number;
|
|
4159
4163
|
MAX_TOKENS: number;
|
|
4160
4164
|
MAX_CONCURRENT_DOCS: number;
|
|
@@ -4586,6 +4590,9 @@ declare function useProjectUsage(projectExtId: string | undefined, monthsBack?:
|
|
|
4586
4590
|
[key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
|
|
4587
4591
|
};
|
|
4588
4592
|
invoice_pdf?: string | null;
|
|
4593
|
+
external_usage?: {
|
|
4594
|
+
[key: string]: unknown;
|
|
4595
|
+
} | null;
|
|
4589
4596
|
}>;
|
|
4590
4597
|
error: Error;
|
|
4591
4598
|
isError: true;
|
|
@@ -4630,6 +4637,9 @@ declare function useProjectUsage(projectExtId: string | undefined, monthsBack?:
|
|
|
4630
4637
|
[key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
|
|
4631
4638
|
};
|
|
4632
4639
|
invoice_pdf?: string | null;
|
|
4640
|
+
external_usage?: {
|
|
4641
|
+
[key: string]: unknown;
|
|
4642
|
+
} | null;
|
|
4633
4643
|
}>, Error>>;
|
|
4634
4644
|
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
4635
4645
|
promise: Promise<NoInfer<{
|
|
@@ -4653,6 +4663,9 @@ declare function useProjectUsage(projectExtId: string | undefined, monthsBack?:
|
|
|
4653
4663
|
[key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
|
|
4654
4664
|
};
|
|
4655
4665
|
invoice_pdf?: string | null;
|
|
4666
|
+
external_usage?: {
|
|
4667
|
+
[key: string]: unknown;
|
|
4668
|
+
} | null;
|
|
4656
4669
|
}>>;
|
|
4657
4670
|
} | {
|
|
4658
4671
|
metered: boolean | undefined;
|
|
@@ -4677,6 +4690,9 @@ declare function useProjectUsage(projectExtId: string | undefined, monthsBack?:
|
|
|
4677
4690
|
[key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
|
|
4678
4691
|
};
|
|
4679
4692
|
invoice_pdf?: string | null;
|
|
4693
|
+
external_usage?: {
|
|
4694
|
+
[key: string]: unknown;
|
|
4695
|
+
} | null;
|
|
4680
4696
|
}>;
|
|
4681
4697
|
error: null;
|
|
4682
4698
|
isError: false;
|
|
@@ -4721,6 +4737,9 @@ declare function useProjectUsage(projectExtId: string | undefined, monthsBack?:
|
|
|
4721
4737
|
[key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
|
|
4722
4738
|
};
|
|
4723
4739
|
invoice_pdf?: string | null;
|
|
4740
|
+
external_usage?: {
|
|
4741
|
+
[key: string]: unknown;
|
|
4742
|
+
} | null;
|
|
4724
4743
|
}>, Error>>;
|
|
4725
4744
|
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
4726
4745
|
promise: Promise<NoInfer<{
|
|
@@ -4744,6 +4763,9 @@ declare function useProjectUsage(projectExtId: string | undefined, monthsBack?:
|
|
|
4744
4763
|
[key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
|
|
4745
4764
|
};
|
|
4746
4765
|
invoice_pdf?: string | null;
|
|
4766
|
+
external_usage?: {
|
|
4767
|
+
[key: string]: unknown;
|
|
4768
|
+
} | null;
|
|
4747
4769
|
}>>;
|
|
4748
4770
|
} | {
|
|
4749
4771
|
metered: boolean | undefined;
|
|
@@ -4791,6 +4813,9 @@ declare function useProjectUsage(projectExtId: string | undefined, monthsBack?:
|
|
|
4791
4813
|
[key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
|
|
4792
4814
|
};
|
|
4793
4815
|
invoice_pdf?: string | null;
|
|
4816
|
+
external_usage?: {
|
|
4817
|
+
[key: string]: unknown;
|
|
4818
|
+
} | null;
|
|
4794
4819
|
}>, Error>>;
|
|
4795
4820
|
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
4796
4821
|
promise: Promise<NoInfer<{
|
|
@@ -4814,6 +4839,9 @@ declare function useProjectUsage(projectExtId: string | undefined, monthsBack?:
|
|
|
4814
4839
|
[key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
|
|
4815
4840
|
};
|
|
4816
4841
|
invoice_pdf?: string | null;
|
|
4842
|
+
external_usage?: {
|
|
4843
|
+
[key: string]: unknown;
|
|
4844
|
+
} | null;
|
|
4817
4845
|
}>>;
|
|
4818
4846
|
} | {
|
|
4819
4847
|
metered: boolean | undefined;
|
|
@@ -4861,6 +4889,9 @@ declare function useProjectUsage(projectExtId: string | undefined, monthsBack?:
|
|
|
4861
4889
|
[key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
|
|
4862
4890
|
};
|
|
4863
4891
|
invoice_pdf?: string | null;
|
|
4892
|
+
external_usage?: {
|
|
4893
|
+
[key: string]: unknown;
|
|
4894
|
+
} | null;
|
|
4864
4895
|
}>, Error>>;
|
|
4865
4896
|
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
4866
4897
|
promise: Promise<NoInfer<{
|
|
@@ -4884,6 +4915,9 @@ declare function useProjectUsage(projectExtId: string | undefined, monthsBack?:
|
|
|
4884
4915
|
[key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
|
|
4885
4916
|
};
|
|
4886
4917
|
invoice_pdf?: string | null;
|
|
4918
|
+
external_usage?: {
|
|
4919
|
+
[key: string]: unknown;
|
|
4920
|
+
} | null;
|
|
4887
4921
|
}>>;
|
|
4888
4922
|
} | {
|
|
4889
4923
|
metered: boolean | undefined;
|
|
@@ -4931,6 +4965,9 @@ declare function useProjectUsage(projectExtId: string | undefined, monthsBack?:
|
|
|
4931
4965
|
[key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
|
|
4932
4966
|
};
|
|
4933
4967
|
invoice_pdf?: string | null;
|
|
4968
|
+
external_usage?: {
|
|
4969
|
+
[key: string]: unknown;
|
|
4970
|
+
} | null;
|
|
4934
4971
|
}>, Error>>;
|
|
4935
4972
|
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
4936
4973
|
promise: Promise<NoInfer<{
|
|
@@ -4954,6 +4991,9 @@ declare function useProjectUsage(projectExtId: string | undefined, monthsBack?:
|
|
|
4954
4991
|
[key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
|
|
4955
4992
|
};
|
|
4956
4993
|
invoice_pdf?: string | null;
|
|
4994
|
+
external_usage?: {
|
|
4995
|
+
[key: string]: unknown;
|
|
4996
|
+
} | null;
|
|
4957
4997
|
}>>;
|
|
4958
4998
|
} | {
|
|
4959
4999
|
metered: boolean | undefined;
|
|
@@ -4978,6 +5018,9 @@ declare function useProjectUsage(projectExtId: string | undefined, monthsBack?:
|
|
|
4978
5018
|
[key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
|
|
4979
5019
|
};
|
|
4980
5020
|
invoice_pdf?: string | null;
|
|
5021
|
+
external_usage?: {
|
|
5022
|
+
[key: string]: unknown;
|
|
5023
|
+
} | null;
|
|
4981
5024
|
}>;
|
|
4982
5025
|
isError: false;
|
|
4983
5026
|
error: null;
|
|
@@ -5022,6 +5065,9 @@ declare function useProjectUsage(projectExtId: string | undefined, monthsBack?:
|
|
|
5022
5065
|
[key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
|
|
5023
5066
|
};
|
|
5024
5067
|
invoice_pdf?: string | null;
|
|
5068
|
+
external_usage?: {
|
|
5069
|
+
[key: string]: unknown;
|
|
5070
|
+
} | null;
|
|
5025
5071
|
}>, Error>>;
|
|
5026
5072
|
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
5027
5073
|
promise: Promise<NoInfer<{
|
|
@@ -5045,6 +5091,9 @@ declare function useProjectUsage(projectExtId: string | undefined, monthsBack?:
|
|
|
5045
5091
|
[key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
|
|
5046
5092
|
};
|
|
5047
5093
|
invoice_pdf?: string | null;
|
|
5094
|
+
external_usage?: {
|
|
5095
|
+
[key: string]: unknown;
|
|
5096
|
+
} | null;
|
|
5048
5097
|
}>>;
|
|
5049
5098
|
};
|
|
5050
5099
|
/** One day of aggregated usage across projects (for a spend/token trend). */
|
|
@@ -7329,6 +7378,9 @@ declare function useConversationUsage(conversationId: string | undefined, option
|
|
|
7329
7378
|
by_feature: {
|
|
7330
7379
|
[key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
|
|
7331
7380
|
};
|
|
7381
|
+
external_usage?: {
|
|
7382
|
+
[key: string]: unknown;
|
|
7383
|
+
} | null;
|
|
7332
7384
|
}>, Error>;
|
|
7333
7385
|
/** A project's spend by conversation (and what no conversation accounts for), in £. */
|
|
7334
7386
|
declare function useProjectConversationUsage(projectExtId: string | undefined, monthsBack?: number, options?: {
|
|
@@ -7344,6 +7396,9 @@ declare function useProjectConversationUsage(projectExtId: string | undefined, m
|
|
|
7344
7396
|
[key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
|
|
7345
7397
|
};
|
|
7346
7398
|
unattributed: _arbidocs_client.components["schemas"]["TagBreakdown"];
|
|
7399
|
+
external_usage?: {
|
|
7400
|
+
[key: string]: unknown;
|
|
7401
|
+
} | null;
|
|
7347
7402
|
}>, Error>;
|
|
7348
7403
|
|
|
7349
7404
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ import { M as MeetingChatRef, a as ActiveCall, W as SegmenterConfig, G as Incomi
|
|
|
16
16
|
export { A as AUDIENCE_CHOICES, c as AudioRecorderState, d as AudioSegment, C as CALL_CAPTION_TOPIC, e as CALL_CHAT_MAX_CHARS, f as CALL_CHAT_TOPIC, g as CALL_RECORDING_TOPIC, h as CALL_TRANSCRIPTION_TOPIC, i as CALL_WEBINAR_TOPIC, j as CAPTION_MAX_CHARS, k as COMPOSITE_AUDIO_BITS_PER_SECOND, l as COMPOSITE_VIDEO_BITS_PER_SECOND, m as CallChatLine, n as CallChatPacket, o as CallSessionState, p as CaptionLine, q as CaptionPacket, r as ChatAttachmentFile, s as ChatEvent, u as ChatMessageResponse, w as ChatThreadData, y as ConversationKey, D as DEFAULT_JOIN_CHOICES, z as DEFAULT_SEGMENTER_CONFIG, B as DecryptedChatMessage, E as EMPTY_CALL_SESSION, H as HISTORY_LIMIT, F as HistoryMessage, I as INITIAL_SEGMENTER_STATE, L as LIVE_SEGMENTER, K as LiveCall, O as NewActiveCall, P as OpenQuestion, Q as PendingKnock, R as PendingPart, S as READ_ONLY_MEETING_TEXT, T as RECORDING_CHUNK_MS, U as SEGMENT_ID_PATTERN, V as SPEAKER_AUDIO_BITS_PER_SECOND, X as SegmenterEvent, Y as SegmenterState, Z as TrackUploader, _ as TrackUploaderOptions, $ as TranscriptSegment, a0 as UPLOAD_ATTEMPTS, a1 as UPLOAD_BACKOFF_MS, a2 as UploaderDeps, a3 as UseAudioRecorderOptions, a4 as UseAudioRecorderResult, a5 as WebinarPacket, a6 as appendToThread, a7 as applyAgentDmStatus, a8 as applyChatEvent, a9 as applyChatMessage, aa as applyChatRead, ab as applyChatUpdated, ac as buildMeetingChatBody, ad as cachedChat, ae as cachedChats, af as callMemberKeys, ag as callSession, ah as chatByExtId, ai as chatHasLiveCall, aj as chatLiveCallId, ak as clearMeetingChatCache, al as clearTrackUploaders, am as conversationKeyForCall, an as decodeCallChatPacket, ao as decodeCaptionPacket, ap as decryptPart, aq as encodeCallChatPacket, ar as encodeCaptionPacket, as as encryptPart, at as ensureMeetingChat, au as flushSegmenter, av as getOpenChat, aw as isRecordingOver, ax as isRetryable, ay as knownMeetingChat, az as levelFromRms, aA as loadMeetingHistory, aB as markRejoining, aC as meetingChatRefFrom, aD as meetingRefForCall, aE as mergeChatLines, aF as myChatId, aG as newPacketId, aH as newSegmentId, aI as newTrackKey, aJ as nextSeqAfter, aK as openQuestion, aL as parseWebinarPacket, aM as partOffsetMs, aN as persistMeetingMessage, aO as persistTranscriptSegment, aP as rejoinAsAudience, aQ as removeChat, aR as resetCallSession, aS as resolveMeetingChat, aT as sealQuestionText, aU as setOpenChat, aV as stepSegmenter, aW as storeTranscriptSegment, aX as threadHasLiveCall, aY as threadLiveCallId, aZ as threadTranscriptText, a_ as trackUploaderFor, a$ as transcriptPersistRole, b0 as unwrapTrackKey, b1 as upsertChat, b2 as useAudioRecorder, b3 as useCallSession, b4 as wrapTrackKey } from './useAudioRecorder.d-CWFDsb_S.js';
|
|
17
17
|
import * as zustand from 'zustand';
|
|
18
18
|
import * as _tanstack_query_core from '@tanstack/query-core';
|
|
19
|
-
export { a as arbiMutationKeys, b as arbiQueryKeys, c as calendarQueryKeys, d as callQueryKeys, e as connectorQueryKeys, i as isUnderQueryKey, m as mailQueryKeys } from './query-keys.d-
|
|
19
|
+
export { a as arbiMutationKeys, b as arbiQueryKeys, c as calendarQueryKeys, d as callQueryKeys, e as connectorQueryKeys, i as isUnderQueryKey, m as mailQueryKeys } from './query-keys.d-ClYiYNBR.js';
|
|
20
20
|
import { VerificationResult } from '@didit-protocol/sdk-web';
|
|
21
21
|
import { LucideIcon } from 'lucide-react';
|
|
22
22
|
import { Components } from 'react-markdown';
|
|
@@ -4039,6 +4039,9 @@ declare function useAvailableModels(options?: {
|
|
|
4039
4039
|
supports_reasoning?: boolean | null | undefined;
|
|
4040
4040
|
supports_function_calling?: boolean | null | undefined;
|
|
4041
4041
|
supports_response_schema?: boolean | null | undefined;
|
|
4042
|
+
display_name?: string | null | undefined;
|
|
4043
|
+
connection_scope?: string | null | undefined;
|
|
4044
|
+
externally_billed: boolean;
|
|
4042
4045
|
}[];
|
|
4043
4046
|
premium_default?: string | null | undefined;
|
|
4044
4047
|
}>, Error>;
|
|
@@ -4155,6 +4158,7 @@ declare function useConfig(configId: string | null | undefined, options?: {
|
|
|
4155
4158
|
MODEL_NAME: string;
|
|
4156
4159
|
SYSTEM_INSTRUCTION: string;
|
|
4157
4160
|
MAX_TOKEN_CONTEXT_TO_ANSWER: number;
|
|
4161
|
+
METADATA_CONTEXT_TOKENS: number;
|
|
4158
4162
|
TEMPERATURE: number;
|
|
4159
4163
|
MAX_TOKENS: number;
|
|
4160
4164
|
MAX_CONCURRENT_DOCS: number;
|
|
@@ -4586,6 +4590,9 @@ declare function useProjectUsage(projectExtId: string | undefined, monthsBack?:
|
|
|
4586
4590
|
[key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
|
|
4587
4591
|
};
|
|
4588
4592
|
invoice_pdf?: string | null;
|
|
4593
|
+
external_usage?: {
|
|
4594
|
+
[key: string]: unknown;
|
|
4595
|
+
} | null;
|
|
4589
4596
|
}>;
|
|
4590
4597
|
error: Error;
|
|
4591
4598
|
isError: true;
|
|
@@ -4630,6 +4637,9 @@ declare function useProjectUsage(projectExtId: string | undefined, monthsBack?:
|
|
|
4630
4637
|
[key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
|
|
4631
4638
|
};
|
|
4632
4639
|
invoice_pdf?: string | null;
|
|
4640
|
+
external_usage?: {
|
|
4641
|
+
[key: string]: unknown;
|
|
4642
|
+
} | null;
|
|
4633
4643
|
}>, Error>>;
|
|
4634
4644
|
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
4635
4645
|
promise: Promise<NoInfer<{
|
|
@@ -4653,6 +4663,9 @@ declare function useProjectUsage(projectExtId: string | undefined, monthsBack?:
|
|
|
4653
4663
|
[key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
|
|
4654
4664
|
};
|
|
4655
4665
|
invoice_pdf?: string | null;
|
|
4666
|
+
external_usage?: {
|
|
4667
|
+
[key: string]: unknown;
|
|
4668
|
+
} | null;
|
|
4656
4669
|
}>>;
|
|
4657
4670
|
} | {
|
|
4658
4671
|
metered: boolean | undefined;
|
|
@@ -4677,6 +4690,9 @@ declare function useProjectUsage(projectExtId: string | undefined, monthsBack?:
|
|
|
4677
4690
|
[key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
|
|
4678
4691
|
};
|
|
4679
4692
|
invoice_pdf?: string | null;
|
|
4693
|
+
external_usage?: {
|
|
4694
|
+
[key: string]: unknown;
|
|
4695
|
+
} | null;
|
|
4680
4696
|
}>;
|
|
4681
4697
|
error: null;
|
|
4682
4698
|
isError: false;
|
|
@@ -4721,6 +4737,9 @@ declare function useProjectUsage(projectExtId: string | undefined, monthsBack?:
|
|
|
4721
4737
|
[key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
|
|
4722
4738
|
};
|
|
4723
4739
|
invoice_pdf?: string | null;
|
|
4740
|
+
external_usage?: {
|
|
4741
|
+
[key: string]: unknown;
|
|
4742
|
+
} | null;
|
|
4724
4743
|
}>, Error>>;
|
|
4725
4744
|
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
4726
4745
|
promise: Promise<NoInfer<{
|
|
@@ -4744,6 +4763,9 @@ declare function useProjectUsage(projectExtId: string | undefined, monthsBack?:
|
|
|
4744
4763
|
[key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
|
|
4745
4764
|
};
|
|
4746
4765
|
invoice_pdf?: string | null;
|
|
4766
|
+
external_usage?: {
|
|
4767
|
+
[key: string]: unknown;
|
|
4768
|
+
} | null;
|
|
4747
4769
|
}>>;
|
|
4748
4770
|
} | {
|
|
4749
4771
|
metered: boolean | undefined;
|
|
@@ -4791,6 +4813,9 @@ declare function useProjectUsage(projectExtId: string | undefined, monthsBack?:
|
|
|
4791
4813
|
[key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
|
|
4792
4814
|
};
|
|
4793
4815
|
invoice_pdf?: string | null;
|
|
4816
|
+
external_usage?: {
|
|
4817
|
+
[key: string]: unknown;
|
|
4818
|
+
} | null;
|
|
4794
4819
|
}>, Error>>;
|
|
4795
4820
|
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
4796
4821
|
promise: Promise<NoInfer<{
|
|
@@ -4814,6 +4839,9 @@ declare function useProjectUsage(projectExtId: string | undefined, monthsBack?:
|
|
|
4814
4839
|
[key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
|
|
4815
4840
|
};
|
|
4816
4841
|
invoice_pdf?: string | null;
|
|
4842
|
+
external_usage?: {
|
|
4843
|
+
[key: string]: unknown;
|
|
4844
|
+
} | null;
|
|
4817
4845
|
}>>;
|
|
4818
4846
|
} | {
|
|
4819
4847
|
metered: boolean | undefined;
|
|
@@ -4861,6 +4889,9 @@ declare function useProjectUsage(projectExtId: string | undefined, monthsBack?:
|
|
|
4861
4889
|
[key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
|
|
4862
4890
|
};
|
|
4863
4891
|
invoice_pdf?: string | null;
|
|
4892
|
+
external_usage?: {
|
|
4893
|
+
[key: string]: unknown;
|
|
4894
|
+
} | null;
|
|
4864
4895
|
}>, Error>>;
|
|
4865
4896
|
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
4866
4897
|
promise: Promise<NoInfer<{
|
|
@@ -4884,6 +4915,9 @@ declare function useProjectUsage(projectExtId: string | undefined, monthsBack?:
|
|
|
4884
4915
|
[key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
|
|
4885
4916
|
};
|
|
4886
4917
|
invoice_pdf?: string | null;
|
|
4918
|
+
external_usage?: {
|
|
4919
|
+
[key: string]: unknown;
|
|
4920
|
+
} | null;
|
|
4887
4921
|
}>>;
|
|
4888
4922
|
} | {
|
|
4889
4923
|
metered: boolean | undefined;
|
|
@@ -4931,6 +4965,9 @@ declare function useProjectUsage(projectExtId: string | undefined, monthsBack?:
|
|
|
4931
4965
|
[key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
|
|
4932
4966
|
};
|
|
4933
4967
|
invoice_pdf?: string | null;
|
|
4968
|
+
external_usage?: {
|
|
4969
|
+
[key: string]: unknown;
|
|
4970
|
+
} | null;
|
|
4934
4971
|
}>, Error>>;
|
|
4935
4972
|
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
4936
4973
|
promise: Promise<NoInfer<{
|
|
@@ -4954,6 +4991,9 @@ declare function useProjectUsage(projectExtId: string | undefined, monthsBack?:
|
|
|
4954
4991
|
[key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
|
|
4955
4992
|
};
|
|
4956
4993
|
invoice_pdf?: string | null;
|
|
4994
|
+
external_usage?: {
|
|
4995
|
+
[key: string]: unknown;
|
|
4996
|
+
} | null;
|
|
4957
4997
|
}>>;
|
|
4958
4998
|
} | {
|
|
4959
4999
|
metered: boolean | undefined;
|
|
@@ -4978,6 +5018,9 @@ declare function useProjectUsage(projectExtId: string | undefined, monthsBack?:
|
|
|
4978
5018
|
[key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
|
|
4979
5019
|
};
|
|
4980
5020
|
invoice_pdf?: string | null;
|
|
5021
|
+
external_usage?: {
|
|
5022
|
+
[key: string]: unknown;
|
|
5023
|
+
} | null;
|
|
4981
5024
|
}>;
|
|
4982
5025
|
isError: false;
|
|
4983
5026
|
error: null;
|
|
@@ -5022,6 +5065,9 @@ declare function useProjectUsage(projectExtId: string | undefined, monthsBack?:
|
|
|
5022
5065
|
[key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
|
|
5023
5066
|
};
|
|
5024
5067
|
invoice_pdf?: string | null;
|
|
5068
|
+
external_usage?: {
|
|
5069
|
+
[key: string]: unknown;
|
|
5070
|
+
} | null;
|
|
5025
5071
|
}>, Error>>;
|
|
5026
5072
|
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
5027
5073
|
promise: Promise<NoInfer<{
|
|
@@ -5045,6 +5091,9 @@ declare function useProjectUsage(projectExtId: string | undefined, monthsBack?:
|
|
|
5045
5091
|
[key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
|
|
5046
5092
|
};
|
|
5047
5093
|
invoice_pdf?: string | null;
|
|
5094
|
+
external_usage?: {
|
|
5095
|
+
[key: string]: unknown;
|
|
5096
|
+
} | null;
|
|
5048
5097
|
}>>;
|
|
5049
5098
|
};
|
|
5050
5099
|
/** One day of aggregated usage across projects (for a spend/token trend). */
|
|
@@ -7329,6 +7378,9 @@ declare function useConversationUsage(conversationId: string | undefined, option
|
|
|
7329
7378
|
by_feature: {
|
|
7330
7379
|
[key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
|
|
7331
7380
|
};
|
|
7381
|
+
external_usage?: {
|
|
7382
|
+
[key: string]: unknown;
|
|
7383
|
+
} | null;
|
|
7332
7384
|
}>, Error>;
|
|
7333
7385
|
/** A project's spend by conversation (and what no conversation accounts for), in £. */
|
|
7334
7386
|
declare function useProjectConversationUsage(projectExtId: string | undefined, monthsBack?: number, options?: {
|
|
@@ -7344,6 +7396,9 @@ declare function useProjectConversationUsage(projectExtId: string | undefined, m
|
|
|
7344
7396
|
[key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
|
|
7345
7397
|
};
|
|
7346
7398
|
unattributed: _arbidocs_client.components["schemas"]["TagBreakdown"];
|
|
7399
|
+
external_usage?: {
|
|
7400
|
+
[key: string]: unknown;
|
|
7401
|
+
} | null;
|
|
7347
7402
|
}>, Error>;
|
|
7348
7403
|
|
|
7349
7404
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { invalidateConversationLists, patchConversation, invalidateConversationDetails, addConversationToList, findConversation, isConversationShared, isKnownSoloConversation, patchConversationList, removeConversationFromLists, ArbiWsContext, useArbiWsContext, useAccountClient, applyChatEvent, myChatId, upsertChat, appendToThread, dropFromThread, deleteChatMessage, removeChat } from './chunk-
|
|
2
|
-
export { AUDIENCE_CHOICES, CALL_CAPTION_TOPIC, CALL_CHAT_MAX_CHARS, CALL_CHAT_TOPIC, CALL_MODERATION_TOPIC, CALL_RECORDING_TOPIC, CALL_TRANSCRIPTION_TOPIC, CALL_WEBINAR_TOPIC, CAPTION_MAX_CHARS, COMPOSITE_AUDIO_BITS_PER_SECOND, COMPOSITE_VIDEO_BITS_PER_SECOND, DEFAULT_JOIN_CHOICES, EMPTY_CALL_SESSION, EXPORT_SAMPLE_RATE, HISTORY_LIMIT, LIVE_SEGMENTER, MAX_AVATAR_FILE_BYTES, MUTED_DEDUPE_MS, PLAYBACK_LOOKAHEAD_MS, READ_ONLY_MEETING_TEXT, RECORDING_CHUNK_MS, RECORDING_SEGMENTER, SEGMENT_FRAME_MS, SEGMENT_ID_PATTERN, SEGMENT_PRE_ROLL_MS, SHORT_PIECE_MERGE_GAP_MS, SPEAKER_AUDIO_BITS_PER_SECOND, TrackUploader, UPLOAD_ATTEMPTS, UPLOAD_BACKOFF_MS, acceptRing, addConversationToList, appendToThread, applyAgentDmStatus, applyCallEvent, applyChatEvent, applyChatMessage, applyChatRead, applyChatUpdated, arbiAccountClient, buildMeetingChatBody, cachedChat, cachedChats, callLink, callMemberKeys, callSession, chatByExtId, chatHasLiveCall, chatLiveCallId, chatTranscriptRef, clearMeetingChatCache, clearTrackUploaders, clockTime, compositeFiles, compositeTrack, conversationKeyForCall, createMutedNotifier, createTrackCutter, cutAtPauses, declineRing, decodeCallChatPacket, decodeCaptionPacket, decodeMono16k, decryptPart, encodeCallChatPacket, encodeCaptionPacket, encodeWav, encryptPart, ensureMeetingChat, entitlementRefusal, extensionFor, fetchPart, fileSafe, findConversation, floatToWav, formatTranscriptMarkdown, getOpenChat, hasRecordingTranscript, invalidateCall, invalidateConversationDetails, invalidateConversationLists, isConversationListKey, isConversationShared, isKnownSoloConversation, isRecordingOver, isRecordingSegmentId, isRetryable, isWorkspaceGuestOf, joinFromPreJoin, knownMeetingChat, loadMeetingHistory, markRejoining, meetingChatRefFrom, meetingRefForCall, mergeChatLines, mutedNoticeFromEvent, mutedNoticeFromPacket, mutedNoticeText, myChatId, newPacketId, newSegmentId, newTrackKey, nextSeqAfter, onCallEvent, openCall, openQuestion, openRecording, parseWebinarPacket, partKey, partOffsetMs, partsDue, patchConversation, patchConversationList, persistMeetingMessage, persistTranscriptSegment, playheadAt, postRecordingDocsToThread, postTranscriptToThread, recordingFiles, recordingWindowsOf, rejoinAsAudience, removeChat, removeConversationFromLists, resetCallSession, resolveMeetingChat, saveRecordingFilesToThread, schedulePart, sealQuestionText, setOpenChat, sortTranscriptMessages, sortedParts, speakerTracks, speakerWav, splitIntoFiles, standalone, startChatCall, startContactsCall, startDmCall, startThreadCall, startsMediaFile, storeTranscriptSegment, stripSpeakerPrefix, supersedeLiveTranscript, supersededTranscriptLines, threadHasLiveCall, threadLiveCallId, threadTranscriptLines, threadTranscriptRef, threadTranscriptText, timelineDurationMs, timelineOf, toProfileView, trackUploaderFor, transcribeRecording, transcriptPersistRole, transcriptSegmentOf, unwrapTrackKey, upsertChat, useAccountClient, useArbiWsContext, useAvatarCrop, useCall, useCallInviteLinks, useCallLiveUpdates, useCallRecording, useCallRecordings, useCallSession, useCallTranscriptionAvailable, useCallsConfig, useCallsEnabled, useCanHostCalls, useEntitlements, useIsEntitled, useMeetingReadOnly, useNameEditor, useOpenCallMeetingChat, useProfile, useRecordingActions, useRecordingWindows, useRevokeCallInviteLink, useSaveToThread, useServerCallsEnabled, useUpdateProfile, wrapTrackKey, writeSamples } from './chunk-
|
|
3
|
-
import { settledByRows, isStaleTaskUpdate, replayableTagMutations, patchDocuments, setCachedDocument, adjustTagCounts, patchCachedDocument, forgetDocuments, getCachedDocuments, refreshDocuments, FINISHED_DOCUMENT_STATUSES, useSimilarDocuments, SIMILARITY_THRESHOLD, useDocuments, finishEntityExtraction } from './chunk-
|
|
4
|
-
export { DOCUMENTS_FIRST_PAGE_MEASURE, DOCUMENTS_FIRST_PAGE_SIZE, DOCUMENTS_PAGE_SIZE, FINISHED_DOCUMENT_STATUSES, IN_FLIGHT_DOCUMENT_STATUSES, SIMILARITY_THRESHOLD, adjustTagCounts, dropTagFromCachedDocuments, finishEntityExtraction, forgetDocuments, getCachedDocuments, invalidateTagData, invalidateTagTables, isDocumentsLoading, isRowNewer, isStaleTaskUpdate, patchCachedDocument, patchDocuments, patchWorkspaceTags, refreshDocuments, resolveDocumentStatus, setCachedDocument, settledByRows, startEntityExtraction, stopDocumentsLoading, subscribeDocumentRows, upsertDocuments, useCreateTag, useDeleteTag, useDocument, useDocuments, useDocumentsById, useDocumentsLoading, useEntityExtractionDocIds, useExtractEntities, useInvalidateTagData, useIsCreatingTag, useSetTagValues, useSimilarDocuments, useTagKindSchema, useUpdateTag, useUpdateTagKindSchema } from './chunk-
|
|
5
|
-
import { useArbiSessionState, useConversations, useArbiSession, useWorkspaces, useConfig, useArbiSessionStore, useAvailableModels, useParsedDocument, useTags, selectDraft, useConversationThreads, createArbiSessionStore, useAgents, useAssistantQuery, useActivity, queuedMessages, MIN_QUEUED_MESSAGE_VISIBILITY_MS } from './chunk-
|
|
6
|
-
export { DEFAULT_DOCUMENT_VIEWER_STATE, EMPTY_SESSION_STATE, MAX_THREAD_TABS, MIN_QUEUED_MESSAGE_VISIBILITY_MS, PROJECT_CREATION_DENIED_REASON, agentControl, clearSealedDrafts, conversationKey, createArbiSessionStore, createSealedDraftStorage, isUsageMetered, nextViewingDocument, queuedMessages, selectDraft, selectIsGenerating, selectViewingDocumentId, threadTabId, useActivity, useAgents, useArbiSession, useArbiSessionState, useArbiSessionStore, useAssistantQuery, useAvailableModels, useBuiltinCommands, useCanCreateProjects, useConfig, useConfigs, useConversationThreads, useConversations, useCurrentUser, useDeleteAgents, useDocumentVersionList, useFirmPool, useHealth, useMessageDetails, useParsedDocument, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, useSignedInSession, useTags, useThumbnails, useTopUpFirmPool, useUserUsageToday, useWorkspaceActivity, useWorkspaces } from './chunk-
|
|
1
|
+
import { invalidateConversationLists, patchConversation, invalidateConversationDetails, addConversationToList, findConversation, isConversationShared, isKnownSoloConversation, patchConversationList, removeConversationFromLists, ArbiWsContext, useArbiWsContext, useAccountClient, applyChatEvent, myChatId, upsertChat, appendToThread, dropFromThread, deleteChatMessage, removeChat } from './chunk-7OD25FTK.js';
|
|
2
|
+
export { AUDIENCE_CHOICES, CALL_CAPTION_TOPIC, CALL_CHAT_MAX_CHARS, CALL_CHAT_TOPIC, CALL_MODERATION_TOPIC, CALL_RECORDING_TOPIC, CALL_TRANSCRIPTION_TOPIC, CALL_WEBINAR_TOPIC, CAPTION_MAX_CHARS, COMPOSITE_AUDIO_BITS_PER_SECOND, COMPOSITE_VIDEO_BITS_PER_SECOND, DEFAULT_JOIN_CHOICES, EMPTY_CALL_SESSION, EXPORT_SAMPLE_RATE, HISTORY_LIMIT, LIVE_SEGMENTER, MAX_AVATAR_FILE_BYTES, MUTED_DEDUPE_MS, PLAYBACK_LOOKAHEAD_MS, READ_ONLY_MEETING_TEXT, RECORDING_CHUNK_MS, RECORDING_SEGMENTER, SEGMENT_FRAME_MS, SEGMENT_ID_PATTERN, SEGMENT_PRE_ROLL_MS, SHORT_PIECE_MERGE_GAP_MS, SPEAKER_AUDIO_BITS_PER_SECOND, TrackUploader, UPLOAD_ATTEMPTS, UPLOAD_BACKOFF_MS, acceptRing, addConversationToList, appendToThread, applyAgentDmStatus, applyCallEvent, applyChatEvent, applyChatMessage, applyChatRead, applyChatUpdated, arbiAccountClient, buildMeetingChatBody, cachedChat, cachedChats, callLink, callMemberKeys, callSession, chatByExtId, chatHasLiveCall, chatLiveCallId, chatTranscriptRef, clearMeetingChatCache, clearTrackUploaders, clockTime, compositeFiles, compositeTrack, conversationKeyForCall, createMutedNotifier, createTrackCutter, cutAtPauses, declineRing, decodeCallChatPacket, decodeCaptionPacket, decodeMono16k, decryptPart, encodeCallChatPacket, encodeCaptionPacket, encodeWav, encryptPart, ensureMeetingChat, entitlementRefusal, extensionFor, fetchPart, fileSafe, findConversation, floatToWav, formatTranscriptMarkdown, getOpenChat, hasRecordingTranscript, invalidateCall, invalidateConversationDetails, invalidateConversationLists, isConversationListKey, isConversationShared, isKnownSoloConversation, isRecordingOver, isRecordingSegmentId, isRetryable, isWorkspaceGuestOf, joinFromPreJoin, knownMeetingChat, loadMeetingHistory, markRejoining, meetingChatRefFrom, meetingRefForCall, mergeChatLines, mutedNoticeFromEvent, mutedNoticeFromPacket, mutedNoticeText, myChatId, newPacketId, newSegmentId, newTrackKey, nextSeqAfter, onCallEvent, openCall, openQuestion, openRecording, parseWebinarPacket, partKey, partOffsetMs, partsDue, patchConversation, patchConversationList, persistMeetingMessage, persistTranscriptSegment, playheadAt, postRecordingDocsToThread, postTranscriptToThread, recordingFiles, recordingWindowsOf, rejoinAsAudience, removeChat, removeConversationFromLists, resetCallSession, resolveMeetingChat, saveRecordingFilesToThread, schedulePart, sealQuestionText, setOpenChat, sortTranscriptMessages, sortedParts, speakerTracks, speakerWav, splitIntoFiles, standalone, startChatCall, startContactsCall, startDmCall, startThreadCall, startsMediaFile, storeTranscriptSegment, stripSpeakerPrefix, supersedeLiveTranscript, supersededTranscriptLines, threadHasLiveCall, threadLiveCallId, threadTranscriptLines, threadTranscriptRef, threadTranscriptText, timelineDurationMs, timelineOf, toProfileView, trackUploaderFor, transcribeRecording, transcriptPersistRole, transcriptSegmentOf, unwrapTrackKey, upsertChat, useAccountClient, useArbiWsContext, useAvatarCrop, useCall, useCallInviteLinks, useCallLiveUpdates, useCallRecording, useCallRecordings, useCallSession, useCallTranscriptionAvailable, useCallsConfig, useCallsEnabled, useCanHostCalls, useEntitlements, useIsEntitled, useMeetingReadOnly, useNameEditor, useOpenCallMeetingChat, useProfile, useRecordingActions, useRecordingWindows, useRevokeCallInviteLink, useSaveToThread, useServerCallsEnabled, useUpdateProfile, wrapTrackKey, writeSamples } from './chunk-7OD25FTK.js';
|
|
3
|
+
import { settledByRows, isStaleTaskUpdate, replayableTagMutations, patchDocuments, setCachedDocument, adjustTagCounts, patchCachedDocument, forgetDocuments, getCachedDocuments, refreshDocuments, FINISHED_DOCUMENT_STATUSES, useSimilarDocuments, SIMILARITY_THRESHOLD, useDocuments, finishEntityExtraction } from './chunk-GN33GLHR.js';
|
|
4
|
+
export { DOCUMENTS_FIRST_PAGE_MEASURE, DOCUMENTS_FIRST_PAGE_SIZE, DOCUMENTS_PAGE_SIZE, FINISHED_DOCUMENT_STATUSES, IN_FLIGHT_DOCUMENT_STATUSES, SIMILARITY_THRESHOLD, adjustTagCounts, dropTagFromCachedDocuments, finishEntityExtraction, forgetDocuments, getCachedDocuments, invalidateTagData, invalidateTagTables, isDocumentsLoading, isRowNewer, isStaleTaskUpdate, patchCachedDocument, patchDocuments, patchWorkspaceTags, refreshDocuments, resolveDocumentStatus, setCachedDocument, settledByRows, startEntityExtraction, stopDocumentsLoading, subscribeDocumentRows, upsertDocuments, useCreateTag, useDeleteTag, useDocument, useDocuments, useDocumentsById, useDocumentsLoading, useEntityExtractionDocIds, useExtractEntities, useInvalidateTagData, useIsCreatingTag, useSetTagValues, useSimilarDocuments, useTagKindSchema, useUpdateTag, useUpdateTagKindSchema } from './chunk-GN33GLHR.js';
|
|
5
|
+
import { useArbiSessionState, useConversations, useArbiSession, useWorkspaces, useConfig, useArbiSessionStore, useAvailableModels, useParsedDocument, useTags, selectDraft, useConversationThreads, createArbiSessionStore, useAgents, useAssistantQuery, useActivity, queuedMessages, MIN_QUEUED_MESSAGE_VISIBILITY_MS } from './chunk-ME2D5GWC.js';
|
|
6
|
+
export { DEFAULT_DOCUMENT_VIEWER_STATE, EMPTY_SESSION_STATE, MAX_THREAD_TABS, MIN_QUEUED_MESSAGE_VISIBILITY_MS, PROJECT_CREATION_DENIED_REASON, agentControl, clearSealedDrafts, conversationKey, createArbiSessionStore, createSealedDraftStorage, isUsageMetered, nextViewingDocument, queuedMessages, selectDraft, selectIsGenerating, selectViewingDocumentId, threadTabId, useActivity, useAgents, useArbiSession, useArbiSessionState, useArbiSessionStore, useAssistantQuery, useAvailableModels, useBuiltinCommands, useCanCreateProjects, useConfig, useConfigs, useConversationThreads, useConversations, useCurrentUser, useDeleteAgents, useDocumentVersionList, useFirmPool, useHealth, useMessageDetails, useParsedDocument, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, useSignedInSession, useTags, useThumbnails, useTopUpFirmPool, useUserUsageToday, useWorkspaceActivity, useWorkspaces } from './chunk-ME2D5GWC.js';
|
|
7
7
|
import { fetchDocumentFile, downloadBlob, fetchMarkupPdf } from './chunk-YWYCEEBF.js';
|
|
8
|
-
import { arbiMutationKeys, arbiQueryKeys, mailQueryKeys, connectorQueryKeys, calendarQueryKeys } from './chunk-
|
|
9
|
-
export { arbiMutationKeys, arbiQueryKeys, calendarQueryKeys, callQueryKeys, connectorQueryKeys, isUnderQueryKey, mailQueryKeys } from './chunk-
|
|
8
|
+
import { arbiMutationKeys, arbiQueryKeys, mailQueryKeys, connectorQueryKeys, calendarQueryKeys } from './chunk-RG2ZE7DF.js';
|
|
9
|
+
export { arbiMutationKeys, arbiQueryKeys, calendarQueryKeys, callQueryKeys, connectorQueryKeys, isUnderQueryKey, mailQueryKeys } from './chunk-RG2ZE7DF.js';
|
|
10
10
|
import { ArbiHost, extractMentions, toMessageMentions, adoptNewChatDocument, boundDocumentOf, takeDocumentForTurn, hasMessageBody, subscribeThreadDocuments, threadDocumentId, bindThreadDocument, createSearchSession, clearSearchSession, formatRelativeTime } from './chunk-QVGAUQSD.js';
|
|
11
11
|
export { MENTION_HREF_PREFIX, NotificationBell, Toaster, adoptNewChatDocument, bindThreadDocument, boundDocumentOf, clearSearchSession, createSearchSession, extractMentions, filterMentionCandidates, findMentionQuery, formatRelativeTime, hasMessageBody, insertMention, latestThreadOfDocument, linkMentions, mentionFromHref, openDocumentId, persistSearchSession, reloadThreadDocumentsForTests, requestSearch, resetThreadDocumentsForTests, savedDocumentIdFor, sharedSearchSession, subscribeThreadDocuments, takeDocumentForTurn, takePendingSearch, threadDocumentId, toMessageMentions, useOpenDocumentId, useRegisterOpenDocument, useTurnDocumentId } from './chunk-QVGAUQSD.js';
|
|
12
12
|
import { notify } from './chunk-5HDC43MF.js';
|
|
@@ -114,6 +114,8 @@ declare const arbiQueryKeys: {
|
|
|
114
114
|
mcpTools: () => readonly ["arbi", "mcpTools"];
|
|
115
115
|
models: () => readonly ["arbi", "models"];
|
|
116
116
|
availableModels: () => readonly ["arbi", "availableModels"];
|
|
117
|
+
modelConnections: (userId?: string) => readonly ["arbi", "modelConnections", string | undefined];
|
|
118
|
+
directModelUsage: (userId?: string) => readonly ["arbi", "directModelUsage", string | undefined];
|
|
117
119
|
/** The signed-in user's own profile (name, picture, email). */
|
|
118
120
|
profile: () => readonly ["arbi", "profile"];
|
|
119
121
|
identity: () => readonly ["arbi", "identity"];
|
|
@@ -114,6 +114,8 @@ declare const arbiQueryKeys: {
|
|
|
114
114
|
mcpTools: () => readonly ["arbi", "mcpTools"];
|
|
115
115
|
models: () => readonly ["arbi", "models"];
|
|
116
116
|
availableModels: () => readonly ["arbi", "availableModels"];
|
|
117
|
+
modelConnections: (userId?: string) => readonly ["arbi", "modelConnections", string | undefined];
|
|
118
|
+
directModelUsage: (userId?: string) => readonly ["arbi", "directModelUsage", string | undefined];
|
|
117
119
|
/** The signed-in user's own profile (name, picture, email). */
|
|
118
120
|
profile: () => readonly ["arbi", "profile"];
|
|
119
121
|
identity: () => readonly ["arbi", "identity"];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbidocs/react",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.6",
|
|
4
4
|
"description": "React hooks and provider for the ARBI SDK",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -101,8 +101,8 @@
|
|
|
101
101
|
"build-storybook": "storybook build"
|
|
102
102
|
},
|
|
103
103
|
"dependencies": {
|
|
104
|
-
"@arbidocs/client": "0.5.
|
|
105
|
-
"@arbidocs/sdk": "0.5.
|
|
104
|
+
"@arbidocs/client": "0.5.6",
|
|
105
|
+
"@arbidocs/sdk": "0.5.6",
|
|
106
106
|
"@didit-protocol/sdk-web": "0.4.0",
|
|
107
107
|
"@livekit/components-react": "2.9.24",
|
|
108
108
|
"@radix-ui/react-avatar": "^1.2.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/query-keys.ts"],"names":[],"mappings":";AAgBO,IAAM,aAAA,GAAgB;AAAA,EAC3B,UAAA,EAAY,MAAM,CAAC,MAAA,EAAQ,YAAY,CAAA;AAAA;AAAA,EAEvC,iBAAA,EAAmB,MAAM,CAAC,MAAA,EAAQ,gBAAgB,CAAA;AAAA,EAClD,gBAAgB,CAAC,WAAA,KAAwB,CAAC,MAAA,EAAQ,kBAAkB,WAAW,CAAA;AAAA;AAAA,EAE/E,YAAA,EAAc,MAAM,CAAC,MAAA,EAAQ,WAAW,CAAA;AAAA,EACxC,WAAW,CAAC,WAAA,KAAwB,CAAC,MAAA,EAAQ,aAAa,WAAW,CAAA;AAAA;AAAA,EAErE,UAAU,CAAC,KAAA,KAAkB,CAAC,MAAA,EAAQ,YAAY,KAAK,CAAA;AAAA,EACvD,aAAA,EAAe,CAAC,MAAA,KACd,CAAC,QAAQ,eAAA,EAAiB,CAAC,GAAG,MAAM,CAAA,CAAE,IAAA,EAAK,CAAE,IAAA,CAAK,GAAG,CAAC,CAAA;AAAA;AAAA,EAExD,mBAAA,EAAqB,MAAM,CAAC,MAAA,EAAQ,kBAAkB,CAAA;AAAA,EACtD,gBAAA,EAAkB,CAAC,WAAA,EAAqB,SAAA,KACtC,CAAC,MAAA,EAAQ,kBAAA,EAAoB,aAAa,SAAS,CAAA;AAAA;AAAA,EAErD,mBAAA,EAAqB,MAAM,CAA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,YAAY;AAC1E;AAMO,IAAM,mBAAmB,CAC9B,WAAA,EACA,SACA,IAAA,KAEA,OAAA,KAAY,SACP,CAAC,MAAA,EAAQ,eAAA,EAAiB,WAAW,IACrC,CAAC,MAAA,EAAQ,iBAAiB,WAAA,EAAa,OAAA,EAAS,QAAQ,KAAK;AAG7D,SAAS,eAAA,CAAgB,UAA8B,MAAA,EAAqC;AACjG,EAAA,OAAO,MAAA,CAAO,MAAM,CAAC,IAAA,EAAM,MAAM,QAAA,CAAS,CAAC,MAAM,IAAI,CAAA;AACvD","file":"chunk-NVAIVJID.js","sourcesContent":["/**\n * The one query-key factory of the ARBI front end: every React Query key and mutation key the\n * packages and the app use is built here, under `['arbi', …]`. Literal key arrays anywhere else\n * fail the `arbi/query-keys-from-factory` lint rule and `query-keys.guard.test.ts`, so a key can't\n * drift from the queries it names (a stale literal reads or invalidates nothing, silently).\n *\n * Dependency-free on purpose (types only): e2e helpers import it and pass keys into the page.\n */\n\nimport type {\n CalendarWindow,\n ListEventsParams,\n OverlayLayerName,\n RoomQuery,\n} from '@arbidocs/sdk/browser'\n\nexport const arbiQueryKeys = {\n workspaces: () => ['arbi', 'workspaces'] as const,\n /** Every workspace's member list: what a workspace switch drops. */\n allWorkspaceUsers: () => ['arbi', 'workspaceUsers'] as const,\n workspaceUsers: (workspaceId: string) => ['arbi', 'workspaceUsers', workspaceId] as const,\n /** Every workspace's documents list: the prefix a write patches when it does not know the workspace. */\n allDocuments: () => ['arbi', 'documents'] as const,\n documents: (workspaceId: string) => ['arbi', 'documents', workspaceId] as const,\n /** One document (a viewer's); writes keep it current next to the list. */\n document: (docId: string) => ['arbi', 'document', docId] as const,\n documentsById: (docIds: string[]) =>\n ['arbi', 'documentsById', [...docIds].sort().join(',')] as const,\n /** Every workspace's near-duplicate pairs. */\n allSimilarDocuments: () => ['arbi', 'similarDocuments'] as const,\n similarDocuments: (workspaceId: string, threshold: number) =>\n ['arbi', 'similarDocuments', workspaceId, threshold] as const,\n /** Every version list: the prefix a new version invalidates. */\n allDocumentVersions: () => ['arbi', 'documentVersions'] as const,\n documentVersions: (docId: string) => ['arbi', 'documentVersions', docId] as const,\n conversations: (workspaceId: string) => ['arbi', 'conversations', workspaceId] as const,\n /** Every workspace's conversation list (and threads): the prefix a conversation write invalidates. */\n allConversations: () => ['arbi', 'conversations'] as const,\n /** A conversation's threads, under the conversations prefix (ids are unique across workspaces). */\n conversationThreads: (conversationId: string) =>\n ['arbi', 'conversations', conversationId, 'threads'] as const,\n /** One stored message with everything the server keeps on it (its trace and metadata). */\n messageDetails: (messageId: string) => ['arbi', 'messageDetails', messageId] as const,\n /** The backend's built-in slash commands. */\n assistantCommands: () => ['arbi', 'assistantCommands'] as const,\n /** Every workspace's tags (lists, tables and kinds): what a cross-workspace change refreshes. */\n allTags: () => ['arbi', 'tags'] as const,\n tags: (workspaceId: string) => ['arbi', 'tags', workspaceId] as const,\n /** Under the workspace's tags: the kinds' fields (refreshed with the tags). */\n tagKinds: (workspaceId: string) => ['arbi', 'tags', workspaceId, 'kinds'] as const,\n /** Every filtered list (a table of tags): what a tag write refreshes, the whole list aside. */\n tagLists: (workspaceId: string) => ['arbi', 'tags', workspaceId, 'list'] as const,\n /** Under the workspace's tags: a tag, doctag or fact write that invalidates `tags` refreshes it. */\n tagList: (workspaceId: string, query: string) =>\n ['arbi', 'tags', workspaceId, 'list', query] as const,\n /** A kind's fields, under the workspace's tags. */\n tagKind: (workspaceId: string, kind: string) =>\n ['arbi', 'tags', workspaceId, 'kind', kind] as const,\n /** A task's history, under the conversations prefix: every conversation write refreshes it. */\n conversationActivity: (conversationId: string) =>\n ['arbi', 'conversations', conversationId, 'activity'] as const,\n /** Under the conversations prefix: every step action or conversation write refreshes it. */\n conversationUsage: (conversationId: string) =>\n ['arbi', 'conversations', conversationId, 'usage'] as const,\n thumbnails: (docIds: string[]) => ['arbi', 'thumbnails', [...docIds].sort().join(',')] as const,\n /** Every stage of a document's parsed content. */\n parsedDocument: (docId: string) => ['arbi', 'parsedDoc', docId] as const,\n parsedDoc: (docId: string, stage: string) => ['arbi', 'parsedDoc', docId, stage] as const,\n agents: () => ['arbi', 'agents'] as const,\n sessions: () => ['arbi', 'sessions'] as const,\n health: () => ['arbi', 'health'] as const,\n workflows: () => ['arbi', 'workflows'] as const,\n /** Under `workflows()`: a workflow write or run refreshes its runs too. */\n workflowRuns: (workflowId: string) => ['arbi', 'workflows', workflowId, 'runs'] as const,\n /** Every workspace's facts: the prefix a fact write invalidates. */\n allFacts: () => ['arbi', 'facts'] as const,\n facts: (workspaceId: string) => ['arbi', 'facts', workspaceId] as const,\n configs: () => ['arbi', 'configs'] as const,\n activity: () => ['arbi', 'activity'] as const,\n /** Every transfer query (jobs, lists, plans): what a finished job refreshes. */\n allWorkspaceTransfers: () => ['arbi', 'workspaceTransfers'] as const,\n /** The caller's recent transfer jobs out of a workspace. */\n workspaceTransfers: (workspaceId: string) =>\n ['arbi', 'workspaceTransfers', 'list', workspaceId] as const,\n /** One transfer job's progress. */\n workspaceTransfer: (transferId: string) =>\n ['arbi', 'workspaceTransfers', 'job', transferId] as const,\n /** What a scope (serialised) would take in a workspace, for a mode. */\n workspaceTransferPlan: (workspaceId: string, scope: string, mode: string) =>\n ['arbi', 'workspaceTransfers', 'plan', workspaceId, scope, mode] as const,\n /** A workspace's activity feed (all its pages). */\n workspaceActivity: (workspaceId: string) => ['arbi', 'workspaceActivity', workspaceId] as const,\n projects: () => ['arbi', 'projects'] as const,\n /** A filtered project list, under `projects()`. */\n projectsFiltered: (stage?: string, leadUser?: string) =>\n ['arbi', 'projects', 'list', stage ?? '', leadUser ?? ''] as const,\n /** Under `projects()`: a project update refreshes its events too. */\n projectEvents: (projectExtId: string) => ['arbi', 'projects', projectExtId, 'events'] as const,\n projectUsage: (projectExtId: string, monthsBack: number) =>\n ['arbi', 'projectUsage', projectExtId, monthsBack] as const,\n projectConversationUsage: (projectExtId: string, monthsBack: number) =>\n ['arbi', 'projectUsage', projectExtId, 'byConversation', monthsBack] as const,\n projectInvoices: (projectExtId: string) => ['arbi', 'projectInvoices', projectExtId] as const,\n /** The plans and add-ons on sale. */\n products: () => ['arbi', 'products'] as const,\n /** Prices of a purchase or a change (quotes, previews); nothing is bought. */\n billingQuotes: () => ['arbi', 'billingQuote'] as const,\n userUsageToday: () => ['arbi', 'userUsageToday'] as const,\n currentUser: () => ['arbi', 'currentUser'] as const,\n firmPool: () => ['arbi', 'firmPool'] as const,\n contacts: () => ['arbi', 'contacts'] as const,\n /** Every chat query (the list and each open thread). */\n chats: () => ['arbi', 'chats'] as const,\n /** My chats, raw (titles and last messages are ciphertext), most recently active first. */\n chatList: () => ['arbi', 'chats', 'list'] as const,\n /** One thread's loaded messages, decrypted, oldest first (`ChatThreadData`). */\n chatThread: (chatExtId: string) => ['arbi', 'chats', 'thread', chatExtId] as const,\n /** My own agent's progress on my last message to it (`agent_dm_status`), per agent. */\n agentDmStatus: (agentExtId: string) => ['arbi', 'chats', 'agentStatus', agentExtId] as const,\n /** The paid features this person may use (`/v1/user/entitlements`). */\n entitlements: () => ['arbi', 'entitlements'] as const,\n skills: () => ['arbi', 'skills'] as const,\n /** A skill's main file (SKILL.md), as text. */\n skillSource: (docExtId: string) => ['arbi', 'skills', 'source', docExtId] as const,\n /** An agent's pinned config; `undefined` = the library default config. */\n agentConfig: (agentExtId?: string) => ['arbi', 'agentConfig', agentExtId ?? 'default'] as const,\n agentWorkspaces: (agentExtId: string) => ['arbi', 'agentWorkspaces', agentExtId] as const,\n /** An agent's own login, polled while its controls are open. */\n agentSession: (agentExtId: string) => ['arbi', 'agentSession', agentExtId] as const,\n agentChats: (agentExtId: string) => ['arbi', 'agentChats', agentExtId] as const,\n authorizeLimits: () => ['arbi', 'authorizeLimits'] as const,\n mcpTools: () => ['arbi', 'mcpTools'] as const,\n models: () => ['arbi', 'models'] as const,\n availableModels: () => ['arbi', 'availableModels'] as const,\n /** The signed-in user's own profile (name, picture, email). */\n profile: () => ['arbi', 'profile'] as const,\n identity: () => ['arbi', 'identity'] as const,\n /** The signed-in user's settings record (notification preferences, flags). */\n userSettings: () => ['arbi', 'userSettings'] as const,\n /** Every notification list: the prefix a delete, a read receipt or an arrival invalidates. */\n allNotifications: () => ['arbi', 'notifications'] as const,\n /** The newest `limit` notifications, received and sent. */\n notifications: (limit: number) => ['arbi', 'notifications', limit] as const,\n /** The documents a workspace may use as its Word house template. */\n houseTemplateCandidates: (workspaceId: string) =>\n ['arbi', 'houseTemplateCandidates', workspaceId] as const,\n // ── Storage, archive ────────────────────────────────────────────────────────────────────────\n /** Every storage view (projects, items, names, Recently deleted): what a restore or delete refreshes. */\n storage: () => ['arbi', 'storage'] as const,\n /** What each project stores; no params: every such list. */\n storageProjects: (params?: object) =>\n params === undefined\n ? (['arbi', 'storage', 'projects'] as const)\n : (['arbi', 'storage', 'projects', params] as const),\n /** The largest items stored; no params: every such list. */\n storageItems: (params?: object) =>\n params === undefined\n ? (['arbi', 'storage', 'items'] as const)\n : (['arbi', 'storage', 'items', params] as const),\n /** Decrypted document names of storage items. */\n storageItemNames: (params?: object) =>\n params === undefined\n ? (['arbi', 'storage', 'names'] as const)\n : (['arbi', 'storage', 'names', params] as const),\n /** The deployment's storage day by day. */\n storageSnapshots: (params?: object) =>\n params === undefined\n ? (['arbi', 'storage', 'snapshots'] as const)\n : (['arbi', 'storage', 'snapshots', params] as const),\n /** A workspace's Recently deleted documents; no id: every workspace's. */\n workspaceTrash: (workspaceId?: string) =>\n workspaceId === undefined\n ? (['arbi', 'storage', 'workspaceTrash'] as const)\n : (['arbi', 'storage', 'workspaceTrash', workspaceId] as const),\n /** A workspace's archive state; no id: every workspace's. */\n workspaceArchive: (workspaceId?: string) =>\n workspaceId === undefined\n ? (['arbi', 'workspaceArchive'] as const)\n : (['arbi', 'workspaceArchive', workspaceId] as const),\n // ── Databases ───────────────────────────────────────────────────────────────────────────────\n /** Every database query of the open workspace. */\n databases: () => ['arbi', 'databases'] as const,\n databaseList: () => ['arbi', 'databases', 'list'] as const,\n /** One database; no id: every one read. */\n database: (databaseId?: string) =>\n databaseId === undefined\n ? (['arbi', 'databases', 'one'] as const)\n : (['arbi', 'databases', 'one', databaseId] as const),\n /** A database's rows (a search); no id: every database's, no params: every search of one. */\n databaseRows: (databaseId?: string, params?: object) =>\n databaseId === undefined\n ? (['arbi', 'databases', 'rows'] as const)\n : params === undefined\n ? (['arbi', 'databases', 'rows', databaseId] as const)\n : (['arbi', 'databases', 'rows', databaseId, params] as const),\n // ── Configs, health ─────────────────────────────────────────────────────────────────────────\n /** Under `configs()`: the saved configuration versions. */\n configVersions: () => ['arbi', 'configs', 'versions'] as const,\n /** Under `configs()`: the JSON schema of every config model. */\n configSchema: () => ['arbi', 'configs', 'schema'] as const,\n /** Under `configs()`: one configuration. */\n config: (configId: string) => ['arbi', 'configs', 'one', configId] as const,\n /** The remote model providers' health. */\n remoteModels: () => ['arbi', 'remoteModels'] as const,\n // ── Conversations ───────────────────────────────────────────────────────────────────────────\n /** Under the conversations prefix: what a parked run waits for the owner to allow. */\n conversationPendingAuth: (conversationId: string) =>\n ['arbi', 'conversations', conversationId, 'pending-auth'] as const,\n // ── Document tools ──────────────────────────────────────────────────────────────────────────\n /** Signatures on a document (a version); no id: every document's. */\n documentSignatures: (docId?: string, version?: number | null) =>\n docId === undefined\n ? (['arbi', 'documentSignatures'] as const)\n : (['arbi', 'documentSignatures', docId, version ?? null] as const),\n /** The certificate of a signature reference. */\n signatureVerification: (reference: string) =>\n ['arbi', 'signatureVerification', reference] as const,\n /** Every signature request list: what a request write refreshes. */\n signatureRequests: () => ['arbi', 'signatureRequests'] as const,\n signatureRequestsForDocument: (docId: string) =>\n ['arbi', 'signatureRequests', 'document', docId] as const,\n signatureRequestsAwaitingMe: () => ['arbi', 'signatureRequests', 'awaiting-me'] as const,\n signatureRequest: (requestId: string) => ['arbi', 'signatureRequests', 'one', requestId] as const,\n signatureCandidates: () => ['arbi', 'signatureRequests', 'candidates'] as const,\n /** The user's saved (informal) signature. */\n savedSignature: () => ['arbi', 'savedSignature'] as const,\n /** An html/react artifact's source. */\n artifactSource: (docId: string) => ['arbi', 'artifactSource', docId] as const,\n /** An artifact's text, under its parsed content (refreshed with it). */\n artifactText: (docId: string) => ['arbi', 'parsedDoc', docId, 'marker', 'artifact-text'] as const,\n /** An image document's bytes as an object URL. */\n assetImage: (docId: string) => ['arbi', 'assetImage', docId] as const,\n // ── Misc ────────────────────────────────────────────────────────────────────────────────────\n /** An agent config's model tier (the builder's badge). */\n agentConfigModel: (configId: string) => ['arbi', 'agentConfigModel', configId] as const,\n /** Under `billingQuotes()`: the price of a plan change. */\n billingPreview: (projectExtId: string, change: unknown) =>\n ['arbi', 'billingQuote', 'preview', projectExtId, change] as const,\n billingPlanQuote: (projectExtId: string | null, body: unknown) =>\n ['arbi', 'billingQuote', 'plan', projectExtId, body] as const,\n billingAddonQuote: (projectExtId: string, kind: string) =>\n ['arbi', 'billingQuote', 'addon', projectExtId, kind] as const,\n /** Under `contacts()`: a search of the people one can reach. */\n contactSearch: (term: string) => ['arbi', 'contacts', 'search', term] as const,\n /** Under the workspace's facts: a filtered list. */\n factList: (workspaceId: string, filter: unknown) =>\n ['arbi', 'facts', workspaceId, filter] as const,\n /** Under `skills()`: the list, hidden ones included or not. */\n skillList: (includeHidden: boolean) => ['arbi', 'skills', includeHidden] as const,\n /** Under the project's events: one kind, one page size. */\n projectEventList: (projectExtId: string, kind: string, limit: number | 'default') =>\n ['arbi', 'projects', projectExtId, 'events', kind, limit] as const,\n /** The documents pinned for offline reading on this device. */\n offlineDocuments: () => ['arbi', 'offlineDocuments'] as const,\n /** Notifications of one kind for a deployment's user (polled). */\n typedNotifications: (kind: string, apiUrl: string, userId: string | undefined) =>\n ['arbi', 'typedNotifications', kind, apiUrl, userId ?? ''] as const,\n}\n\n/**\n * Keys of the mutations a host may need to follow (its own caches outside these hooks), e.g. with\n * a `MutationCache` subscription: a workflow run creates a task in the host's own task list.\n */\nexport const arbiMutationKeys = {\n /** A member's role changed. */\n setWorkspaceMemberRoles: () => ['arbi', 'workspaces', 'roles'] as const,\n runWorkflow: () => ['arbi', 'workflows', 'run'] as const,\n updateTagKindSchema: () => ['arbi', 'tags', 'kinds', 'update'] as const,\n createTag: () => ['arbi', 'tags', 'create'] as const,\n updateTag: () => ['arbi', 'tags', 'update'] as const,\n deleteTag: () => ['arbi', 'tags', 'delete'] as const,\n extractEntities: () => ['arbi', 'tags', 'entities', 'extract'] as const,\n updateDocuments: () => ['arbi', 'documents', 'update'] as const,\n deleteDocuments: () => ['arbi', 'documents', 'delete'] as const,\n uploadDocuments: () => ['arbi', 'documents', 'upload'] as const,\n uploadUrls: () => ['arbi', 'documents', 'uploadUrls'] as const,\n assignDocTags: () => ['arbi', 'doctags', 'assign'] as const,\n removeDocTags: () => ['arbi', 'doctags', 'remove'] as const,\n updateDocTag: () => ['arbi', 'doctags', 'update'] as const,\n generateDocTags: () => ['arbi', 'doctags', 'generate'] as const,\n /** Members added to or removed from a workspace (leaving included). */\n workspaceMembership: () => ['arbi', 'workspaces', 'members'] as const,\n /** A chat turn being sent (the app's send pipeline). */\n sendMessage: () => ['arbi', 'conversations', 'send'] as const,\n}\n\n/**\n * Query keys of the calendar hooks, all under `['arbi', 'calendar']`. The calendar is the user's,\n * not a workspace's; only the overlays carry the open workspace.\n */\nexport const calendarQueryKeys = {\n all: () => ['arbi', 'calendar'] as const,\n settings: () => ['arbi', 'calendar', 'settings'] as const,\n calendars: () => ['arbi', 'calendar', 'calendars'] as const,\n /** Every event list: the prefix an event write invalidates. */\n events: () => ['arbi', 'calendar', 'events'] as const,\n eventList: (p: ListEventsParams) =>\n [\n 'arbi',\n 'calendar',\n 'events',\n { start: p.start, end: p.end, calendars: p.calendars?.join(',') ?? null },\n ] as const,\n /** Every single event read. */\n eventDetails: () => ['arbi', 'calendar', 'event'] as const,\n event: (id: string, recurrenceId?: string | null) =>\n ['arbi', 'calendar', 'event', id, recurrenceId ?? null] as const,\n shares: (calId: string) => ['arbi', 'calendar', 'shares', calId] as const,\n invitations: () => ['arbi', 'calendar', 'invitations'] as const,\n holidayCountries: () => ['arbi', 'calendar', 'holiday-countries'] as const,\n allRooms: () => ['arbi', 'calendar', 'rooms'] as const,\n rooms: (q: RoomQuery) => ['arbi', 'calendar', 'rooms', q] as const,\n freebusy: (attendees: string[], start: string, end: string) =>\n ['arbi', 'calendar', 'freebusy', attendees.join(','), start, end] as const,\n allLookups: () => ['arbi', 'calendar', 'lookup'] as const,\n lookup: (uid: string) => ['arbi', 'calendar', 'lookup', uid] as const,\n overlays: (workspaceId: string | null, w?: CalendarWindow, layers?: OverlayLayerName[]) =>\n [\n 'arbi',\n 'calendar',\n 'overlays',\n workspaceId,\n w ? { start: w.start, end: w.end, layers: layers?.join(',') } : null,\n ] as const,\n accounts: () => ['arbi', 'calendar', 'accounts'] as const,\n caldavProfiles: () => ['arbi', 'calendar', 'caldav-profiles'] as const,\n bookingPages: () => ['arbi', 'calendar', 'booking-pages'] as const,\n /** The offline outbox (writes made offline, not yet sent). */\n outbox: () => ['arbi', 'calendar', 'outbox'] as const,\n}\n\n/** Query keys of the call hooks, all under `['arbi', 'calls']`. Calls are the user's, not a workspace's. */\nexport const callQueryKeys = {\n all: () => ['arbi', 'calls'] as const,\n config: () => ['arbi', 'calls', 'config'] as const,\n call: (callExtId: string) => ['arbi', 'calls', 'call', callExtId] as const,\n /** Everything about a call's recordings: the prefix a recording event invalidates. */\n recordingsOf: (callExtId: string) => ['arbi', 'calls', 'recordings', callExtId] as const,\n recordings: (callExtId: string) => ['arbi', 'calls', 'recordings', callExtId, 'list'] as const,\n recording: (callExtId: string, recordingExtId: string) =>\n ['arbi', 'calls', 'recordings', callExtId, 'one', recordingExtId] as const,\n inviteLinks: (callExtId: string) => ['arbi', 'calls', 'invite-links', callExtId] as const,\n}\n\nexport const connectorQueryKeys = {\n all: () => ['arbi', 'connectors'] as const,\n catalog: () => ['arbi', 'connectors', 'catalog'] as const,\n mine: () => ['arbi', 'connectors', 'mine'] as const,\n mailboxFolders: (vendor: string) => ['arbi', 'connectors', 'folders', vendor] as const,\n mailboxSyncProgress: (vendor: string, workspaceExtId: string) =>\n ['arbi', 'connectors', 'sync-progress', vendor, workspaceExtId] as const,\n allMailboxSyncProgress: () => ['arbi', 'connectors', 'sync-progress'] as const,\n driveFolders: (vendor: string) => ['arbi', 'connectors', 'drive-folders', vendor] as const,\n driveFolderChildren: (vendor: string, itemId: string) =>\n ['arbi', 'connectors', 'drive-folder-children', vendor, itemId] as const,\n driveFolderDocCount: (vendor: string, itemId: string) =>\n ['arbi', 'connectors', 'drive-folder-doc-count', vendor, itemId] as const,\n driveSyncEstimate: (vendor: string) =>\n ['arbi', 'connectors', 'drive-sync-estimate', vendor] as const,\n driveSyncProgress: (vendor: string) =>\n ['arbi', 'connectors', 'drive-sync-progress', vendor] as const,\n allDriveSyncProgress: () => ['arbi', 'connectors', 'drive-sync-progress'] as const,\n slack: () => ['arbi', 'connectors', 'slack'] as const,\n}\n\nexport const mailQueryKeys = {\n all: () => ['arbi', 'mail'] as const,\n policy: () => ['arbi', 'mail', 'policy'] as const,\n accounts: () => ['arbi', 'mail', 'accounts'] as const,\n unlock: (accountId: string | undefined, sessionKey: string | null) =>\n ['arbi', 'mail', 'unlock', accountId, sessionKey ?? ''] as const,\n allFolders: () => ['arbi', 'mail', 'folders'] as const,\n folders: (accountId: string | undefined) => ['arbi', 'mail', 'folders', accountId] as const,\n allMessages: () => ['arbi', 'mail', 'messages'] as const,\n messages: (\n accountId: string | undefined,\n folderId: string | undefined,\n query: string,\n cursor: string | null\n ) => ['arbi', 'mail', 'messages', accountId, folderId, query, cursor] as const,\n message: (accountId: string | undefined, messageId: string | null | undefined) =>\n ['arbi', 'mail', 'message', accountId, messageId] as const,\n /** The projects an email's AI work can be billed to. */\n projects: () => ['arbi', 'mail', 'projects'] as const,\n /** A saved draft prepared for editing. */\n draftCompose: (accountId: string | undefined, draftId: string | undefined) =>\n ['arbi', 'mail', 'draft-compose', accountId, draftId] as const,\n attachmentText: (accountId: string, messageId: string, attachmentId: string) =>\n ['arbi', 'mail', 'attachment-text', accountId, messageId, attachmentId] as const,\n}\n\n/** `pdf`: the document as a PDF; `original`: the stored file (an image, a recording, a sheet). */\nexport type DocumentBytesKind = 'pdf' | 'original'\n\n/** Every version and kind of a document's bytes: the prefix a new version invalidates. */\nexport const documentBytesKey = (\n documentRef: string,\n version?: number | null,\n kind?: DocumentBytesKind\n) =>\n version === undefined\n ? (['arbi', 'documentBytes', documentRef] as const)\n : (['arbi', 'documentBytes', documentRef, version, kind ?? 'pdf'] as const)\n\n/** Whether `queryKey` lies under `prefix` (a factory key): React Query's own prefix match. */\nexport function isUnderQueryKey(queryKey: readonly unknown[], prefix: readonly unknown[]): boolean {\n return prefix.every((part, i) => queryKey[i] === part)\n}\n"]}
|