@arbidocs/react 0.4.104 → 0.4.105
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/README.md +3 -3
- package/dist/artifacts/index.cjs +6 -6
- package/dist/artifacts/index.js +1 -1
- package/dist/{chunk-KR7VTJS6.js → chunk-IXRNX5QB.js} +12 -24
- package/dist/chunk-IXRNX5QB.js.map +1 -0
- package/dist/{chunk-IJQ4S4LG.cjs → chunk-X2KOIXHA.cjs} +11 -26
- package/dist/chunk-X2KOIXHA.cjs.map +1 -0
- package/dist/index.cjs +127 -123
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +62 -70
- package/dist/index.d.ts +62 -70
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-IJQ4S4LG.cjs.map +0 -1
- package/dist/chunk-KR7VTJS6.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as React$1 from 'react';
|
|
|
2
2
|
import React__default, { ReactNode, ComponentType } from 'react';
|
|
3
3
|
import * as _arbidocs_sdk_browser from '@arbidocs/sdk/browser';
|
|
4
4
|
import { ArbiOptions, QueryOptions, Arbi, SSEStreamResult, SSEStreamStartData, UserMessageEvent, MessageMetadataPayload, ResponseOutputItemDoneEvent, ArtifactEvent, TagListQuery, StepActionRequest, UpdateConversationRequest, UpdateWorkflowRequest, TagKind, TagKindSchema, TagFieldDefinition, ProjectEventKind, ProjectUpdateRequest, LoginProfile, settings } from '@arbidocs/sdk/browser';
|
|
5
|
-
export { ActivityKind, ActivityResponse, AgentStepEvent, Arbi, ArbiError, ArbiOptions, ArtifactEvent, AuthMode, ConversationResponse, CreateFactRequest, CreateWorkRequest, CreateWorkflowRequest, FactResponse, FactSearchRequest, FactSearchResponse, LoginProfile, MessageMetadataPayload, OutputTokensDetails, PendingAuthResponse, PlanWorkRequest, ProjectInvoicesResponse, ProjectUsageResponse, QueryOptions, ResponseCompletedEvent, ResponseContentPartAddedEvent, ResponseCreatedEvent, ResponseFailedEvent, ResponseOutputItemAddedEvent, ResponseOutputItemDoneEvent, ResponseOutputTextDeltaEvent, ResponseOutputTextDoneEvent, ResponseUsage, SSEStreamCallbacks, SSEStreamResult, SSEStreamStartData, SkillSummary, TaskPlan, UpdateConversationRequest, UpdateWorkflowRequest, UserDailyUsageResponse, UserInputRequestEvent, UserMessageEvent, WorkStatus, WorkflowAuthMode, WorkflowResponse, WorkflowRunResponse } from '@arbidocs/sdk/browser';
|
|
5
|
+
export { ActivityKind, ActivityResponse, AgentStepEvent, Arbi, ArbiError, ArbiOptions, ArtifactEvent, AuthMode, ConversationResponse, CreateFactRequest, CreateWorkRequest, CreateWorkflowRequest, DEFAULT_AI_USD_PER_GBP, FactResponse, FactSearchRequest, FactSearchResponse, LoginProfile, MessageMetadataPayload, OutputTokensDetails, PendingAuthResponse, PlanWorkRequest, ProjectInvoicesResponse, ProjectUsageResponse, QueryOptions, ResponseCompletedEvent, ResponseContentPartAddedEvent, ResponseCreatedEvent, ResponseFailedEvent, ResponseOutputItemAddedEvent, ResponseOutputItemDoneEvent, ResponseOutputTextDeltaEvent, ResponseOutputTextDoneEvent, ResponseUsage, SSEStreamCallbacks, SSEStreamResult, SSEStreamStartData, SkillSummary, TaskPlan, UpdateConversationRequest, UpdateWorkflowRequest, UserDailyUsageResponse, UserInputRequestEvent, UserMessageEvent, WorkStatus, WorkflowAuthMode, WorkflowResponse, WorkflowRunResponse, formatGbp, formatGbpPerMillionTokens, usdToGbp } from '@arbidocs/sdk/browser';
|
|
6
6
|
import * as _arbidocs_client from '@arbidocs/client';
|
|
7
7
|
import { WebSocketServerMessage, WsTaskUpdateMessage, WsPresenceUpdateMessage, components } from '@arbidocs/client';
|
|
8
8
|
export { WebSocketServerMessage, WsBatchCompleteMessage, WsConversationMessagePostedMessage, WsNotificationResponse, WsPresenceUpdateMessage, WsResponseCompleteMessage, WsTaskUpdateMessage, isMessageType } from '@arbidocs/client';
|
|
@@ -646,6 +646,7 @@ declare function useWorkspaces(options?: {
|
|
|
646
646
|
project_name?: string | null | undefined;
|
|
647
647
|
project_subscription?: string | null | undefined;
|
|
648
648
|
project_owner_ext_id?: string | null | undefined;
|
|
649
|
+
house_template_ext_id?: string | null | undefined;
|
|
649
650
|
}[]>, Error>;
|
|
650
651
|
/** List documents in a workspace. */
|
|
651
652
|
declare function useDocuments(workspaceId: string | undefined, options?: {
|
|
@@ -1342,7 +1343,7 @@ declare function useProjects(options?: {
|
|
|
1342
1343
|
used: number;
|
|
1343
1344
|
limit: number;
|
|
1344
1345
|
};
|
|
1345
|
-
|
|
1346
|
+
ai_usage: {
|
|
1346
1347
|
used: number;
|
|
1347
1348
|
limit: number;
|
|
1348
1349
|
};
|
|
@@ -1383,31 +1384,35 @@ declare function useProjects(options?: {
|
|
|
1383
1384
|
packs: number;
|
|
1384
1385
|
packs_next?: number | null | undefined;
|
|
1385
1386
|
plan_name: string;
|
|
1386
|
-
|
|
1387
|
+
plan_ai_gbp: number;
|
|
1387
1388
|
plan_storage_gb: number;
|
|
1388
|
-
|
|
1389
|
+
block_ai_gbp: number;
|
|
1389
1390
|
block_storage_gb: number;
|
|
1390
|
-
|
|
1391
|
+
ai_blocks: number;
|
|
1391
1392
|
storage_blocks: number;
|
|
1392
|
-
|
|
1393
|
+
ai_blocks_next?: number | null | undefined;
|
|
1393
1394
|
storage_blocks_next?: number | null | undefined;
|
|
1394
1395
|
storage_blocks_min: number;
|
|
1395
|
-
|
|
1396
|
-
|
|
1396
|
+
auto_topup_threshold_gbp: number;
|
|
1397
|
+
min_auto_topup_threshold_gbp: number;
|
|
1397
1398
|
spend_cap_pence?: number | null | undefined;
|
|
1398
1399
|
addon_spend_pence: number;
|
|
1399
1400
|
addon_spend_window_end?: number | null | undefined;
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1401
|
+
ai_block_monthly_pence: number;
|
|
1402
|
+
ai_block_monthly_ex_vat_pence: number;
|
|
1403
|
+
storage_block_monthly_pence: number;
|
|
1404
|
+
storage_block_monthly_ex_vat_pence: number;
|
|
1405
|
+
ai_block_period_pence: number;
|
|
1406
|
+
ai_block_period_ex_vat_pence: number;
|
|
1407
|
+
storage_block_period_pence: number;
|
|
1408
|
+
storage_block_period_ex_vat_pence: number;
|
|
1409
|
+
ai_block_price_pence: number;
|
|
1410
|
+
ai_block_price_ex_vat_pence: number;
|
|
1406
1411
|
storage_block_price_pence: number;
|
|
1407
1412
|
storage_block_price_ex_vat_pence: number;
|
|
1408
1413
|
cap_reached: boolean;
|
|
1409
1414
|
period_end?: number | null | undefined;
|
|
1410
|
-
|
|
1415
|
+
ai_usage_reset_at?: number | null | undefined;
|
|
1411
1416
|
pending_interval?: ("month" | "year") | null | undefined;
|
|
1412
1417
|
billing_error?: string | null | undefined;
|
|
1413
1418
|
confirm_url?: string | null | undefined;
|
|
@@ -1420,13 +1425,13 @@ declare function useProjects(options?: {
|
|
|
1420
1425
|
pro_plus_monthly_pence: number;
|
|
1421
1426
|
pro_plus_monthly_ex_vat_pence: number;
|
|
1422
1427
|
pro_plus_period_pence: number;
|
|
1423
|
-
|
|
1428
|
+
pro_plus_ai_gbp: number;
|
|
1424
1429
|
pro_plus_storage_gb: number;
|
|
1425
1430
|
saving_monthly_pence: number;
|
|
1426
1431
|
} | null | undefined;
|
|
1427
1432
|
payment?: {
|
|
1428
1433
|
status: "pending" | "paid";
|
|
1429
|
-
kind?: ("
|
|
1434
|
+
kind?: ("ai_usage" | "storage") | null | undefined;
|
|
1430
1435
|
amount_pence?: number | null | undefined;
|
|
1431
1436
|
amount_ex_vat_pence?: number | null | undefined;
|
|
1432
1437
|
tax_pence?: number | null | undefined;
|
|
@@ -1447,7 +1452,7 @@ declare function useProjects(options?: {
|
|
|
1447
1452
|
* AI usage breakdown for a project's billing period. `monthsBack` selects the period (0 =
|
|
1448
1453
|
* current, 1 = previous month, …).
|
|
1449
1454
|
*
|
|
1450
|
-
* The response's `total_spend` / `spend` fields are
|
|
1455
|
+
* The response's `total_spend` / `spend` fields are £ of AI usage (format with `formatGbp`).
|
|
1451
1456
|
* `metered` is `false` when the deployment does not record usage (a `dev`-plan project with all
|
|
1452
1457
|
* zeros): show "usage is not metered here" instead of zeros. It is `undefined` until the usage
|
|
1453
1458
|
* has loaded.
|
|
@@ -1941,16 +1946,16 @@ declare function useProjectUsage(projectExtId: string | undefined, monthsBack?:
|
|
|
1941
1946
|
/** One day of aggregated usage across projects (for a spend/token trend). */
|
|
1942
1947
|
interface AggregatedDailyUsage {
|
|
1943
1948
|
date: string;
|
|
1944
|
-
/**
|
|
1945
|
-
|
|
1949
|
+
/** £ of AI usage that day. */
|
|
1950
|
+
gbp: number;
|
|
1946
1951
|
totalTokens: number;
|
|
1947
1952
|
apiRequests: number;
|
|
1948
1953
|
}
|
|
1949
1954
|
/** One model group's aggregated usage across projects (for a breakdown). */
|
|
1950
1955
|
interface AggregatedModelGroupUsage {
|
|
1951
1956
|
model: string;
|
|
1952
|
-
/**
|
|
1953
|
-
|
|
1957
|
+
/** £ of AI usage by this model group. */
|
|
1958
|
+
gbp: number;
|
|
1954
1959
|
totalTokens: number;
|
|
1955
1960
|
promptTokens: number;
|
|
1956
1961
|
completionTokens: number;
|
|
@@ -1958,15 +1963,15 @@ interface AggregatedModelGroupUsage {
|
|
|
1958
1963
|
}
|
|
1959
1964
|
/** Aggregated AI usage + spend across several projects. */
|
|
1960
1965
|
interface ProjectsUsageAggregate {
|
|
1961
|
-
/** Summed usage across the projects, in
|
|
1962
|
-
|
|
1966
|
+
/** Summed usage across the projects, in £ (ex VAT). */
|
|
1967
|
+
totalGbp: number;
|
|
1963
1968
|
/** Summed token count across the projects. */
|
|
1964
1969
|
totalTokens: number;
|
|
1965
1970
|
/** Summed API request count across the projects. */
|
|
1966
1971
|
totalRequests: number;
|
|
1967
1972
|
/** Per-day totals merged across every project, oldest first. */
|
|
1968
1973
|
daily: AggregatedDailyUsage[];
|
|
1969
|
-
/** Per-model-group totals merged across every project, most
|
|
1974
|
+
/** Per-model-group totals merged across every project, most £ first. */
|
|
1970
1975
|
modelGroups: AggregatedModelGroupUsage[];
|
|
1971
1976
|
/**
|
|
1972
1977
|
* False when none of the loaded projects records usage (billing is off on this deployment), so
|
|
@@ -1996,7 +2001,6 @@ declare function useProjectInvoices(projectExtId: string | undefined, options?:
|
|
|
1996
2001
|
project_ext_id: string;
|
|
1997
2002
|
invoices: _arbidocs_client.components["schemas"]["ProjectInvoice"][];
|
|
1998
2003
|
}>, Error>;
|
|
1999
|
-
/** Today's deployment-wide credit use for the current user (`credits_used`, in credits). */
|
|
2000
2004
|
/**
|
|
2001
2005
|
* The signed-in user from `GET /v1/user/me`. Refetched on window focus, so a role granted or
|
|
2002
2006
|
* removed elsewhere shows up without a reload; invalidate `arbiQueryKeys.currentUser()` after a
|
|
@@ -2015,6 +2019,7 @@ declare function useCurrentUser(options?: {
|
|
|
2015
2019
|
is_sso: boolean;
|
|
2016
2020
|
is_identity_verified: boolean;
|
|
2017
2021
|
can_create_projects: boolean;
|
|
2022
|
+
is_deployment_admin: boolean;
|
|
2018
2023
|
}>, Error>;
|
|
2019
2024
|
/** Why "New project" / "New workspace" is unavailable to someone who may not create them. */
|
|
2020
2025
|
declare const PROJECT_CREATION_DENIED_REASON = "Only members of your firm can create projects and workspaces.";
|
|
@@ -2026,7 +2031,7 @@ declare function useCanCreateProjects(): boolean | undefined;
|
|
|
2026
2031
|
declare function useUserUsageToday(options?: {
|
|
2027
2032
|
enabled?: boolean;
|
|
2028
2033
|
}): _tanstack_react_query.UseQueryResult<NoInfer<{
|
|
2029
|
-
|
|
2034
|
+
used_gbp: number;
|
|
2030
2035
|
}>, Error>;
|
|
2031
2036
|
|
|
2032
2037
|
/** An agent or deployment config: section name (`Agents`, `QueryLLM`, ...) to its parameters. */
|
|
@@ -2706,7 +2711,7 @@ declare function useFilteredProjects(filters: {
|
|
|
2706
2711
|
used: number;
|
|
2707
2712
|
limit: number;
|
|
2708
2713
|
};
|
|
2709
|
-
|
|
2714
|
+
ai_usage: {
|
|
2710
2715
|
used: number;
|
|
2711
2716
|
limit: number;
|
|
2712
2717
|
};
|
|
@@ -2747,31 +2752,35 @@ declare function useFilteredProjects(filters: {
|
|
|
2747
2752
|
packs: number;
|
|
2748
2753
|
packs_next?: number | null | undefined;
|
|
2749
2754
|
plan_name: string;
|
|
2750
|
-
|
|
2755
|
+
plan_ai_gbp: number;
|
|
2751
2756
|
plan_storage_gb: number;
|
|
2752
|
-
|
|
2757
|
+
block_ai_gbp: number;
|
|
2753
2758
|
block_storage_gb: number;
|
|
2754
|
-
|
|
2759
|
+
ai_blocks: number;
|
|
2755
2760
|
storage_blocks: number;
|
|
2756
|
-
|
|
2761
|
+
ai_blocks_next?: number | null | undefined;
|
|
2757
2762
|
storage_blocks_next?: number | null | undefined;
|
|
2758
2763
|
storage_blocks_min: number;
|
|
2759
|
-
|
|
2760
|
-
|
|
2764
|
+
auto_topup_threshold_gbp: number;
|
|
2765
|
+
min_auto_topup_threshold_gbp: number;
|
|
2761
2766
|
spend_cap_pence?: number | null | undefined;
|
|
2762
2767
|
addon_spend_pence: number;
|
|
2763
2768
|
addon_spend_window_end?: number | null | undefined;
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2769
|
+
ai_block_monthly_pence: number;
|
|
2770
|
+
ai_block_monthly_ex_vat_pence: number;
|
|
2771
|
+
storage_block_monthly_pence: number;
|
|
2772
|
+
storage_block_monthly_ex_vat_pence: number;
|
|
2773
|
+
ai_block_period_pence: number;
|
|
2774
|
+
ai_block_period_ex_vat_pence: number;
|
|
2775
|
+
storage_block_period_pence: number;
|
|
2776
|
+
storage_block_period_ex_vat_pence: number;
|
|
2777
|
+
ai_block_price_pence: number;
|
|
2778
|
+
ai_block_price_ex_vat_pence: number;
|
|
2770
2779
|
storage_block_price_pence: number;
|
|
2771
2780
|
storage_block_price_ex_vat_pence: number;
|
|
2772
2781
|
cap_reached: boolean;
|
|
2773
2782
|
period_end?: number | null | undefined;
|
|
2774
|
-
|
|
2783
|
+
ai_usage_reset_at?: number | null | undefined;
|
|
2775
2784
|
pending_interval?: ("month" | "year") | null | undefined;
|
|
2776
2785
|
billing_error?: string | null | undefined;
|
|
2777
2786
|
confirm_url?: string | null | undefined;
|
|
@@ -2784,13 +2793,13 @@ declare function useFilteredProjects(filters: {
|
|
|
2784
2793
|
pro_plus_monthly_pence: number;
|
|
2785
2794
|
pro_plus_monthly_ex_vat_pence: number;
|
|
2786
2795
|
pro_plus_period_pence: number;
|
|
2787
|
-
|
|
2796
|
+
pro_plus_ai_gbp: number;
|
|
2788
2797
|
pro_plus_storage_gb: number;
|
|
2789
2798
|
saving_monthly_pence: number;
|
|
2790
2799
|
} | null | undefined;
|
|
2791
2800
|
payment?: {
|
|
2792
2801
|
status: "pending" | "paid";
|
|
2793
|
-
kind?: ("
|
|
2802
|
+
kind?: ("ai_usage" | "storage") | null | undefined;
|
|
2794
2803
|
amount_pence?: number | null | undefined;
|
|
2795
2804
|
amount_ex_vat_pence?: number | null | undefined;
|
|
2796
2805
|
tax_pence?: number | null | undefined;
|
|
@@ -2862,7 +2871,7 @@ declare function useProjectEvents(projectExtId: string | undefined, options?: {
|
|
|
2862
2871
|
}[]>, Error>;
|
|
2863
2872
|
/**
|
|
2864
2873
|
* What a conversation's AI work cost this billing period, by step, run, model, agent and feature.
|
|
2865
|
-
* Spend is in
|
|
2874
|
+
* Spend is in £ (see `formatGbp`). Pass `live` while a run is going.
|
|
2866
2875
|
*/
|
|
2867
2876
|
declare function useConversationUsage(conversationId: string | undefined, options?: {
|
|
2868
2877
|
enabled?: boolean;
|
|
@@ -2891,7 +2900,7 @@ declare function useConversationUsage(conversationId: string | undefined, option
|
|
|
2891
2900
|
[key: string]: _arbidocs_client.components["schemas"]["TagBreakdown"];
|
|
2892
2901
|
};
|
|
2893
2902
|
}>, Error>;
|
|
2894
|
-
/** A project's spend by conversation (and what no conversation accounts for), in
|
|
2903
|
+
/** A project's spend by conversation (and what no conversation accounts for), in £. */
|
|
2895
2904
|
declare function useProjectConversationUsage(projectExtId: string | undefined, monthsBack?: number, options?: {
|
|
2896
2905
|
enabled?: boolean;
|
|
2897
2906
|
}): _tanstack_react_query.UseQueryResult<NoInfer<{
|
|
@@ -3759,6 +3768,7 @@ declare function useUserSettings(options?: {
|
|
|
3759
3768
|
pinned_skills: string[];
|
|
3760
3769
|
tableviews: {
|
|
3761
3770
|
workspace: string;
|
|
3771
|
+
table?: string | null | undefined;
|
|
3762
3772
|
name: string;
|
|
3763
3773
|
columns: string[];
|
|
3764
3774
|
column_widths?: {
|
|
@@ -4272,31 +4282,13 @@ declare function useMailDraftCompose(account: MailAccount | undefined, draftId:
|
|
|
4272
4282
|
}): _tanstack_react_query.UseQueryResult<NoInfer<MailCompose>, Error>;
|
|
4273
4283
|
|
|
4274
4284
|
/**
|
|
4275
|
-
*
|
|
4285
|
+
* AI usage is reported in pounds (ex VAT).
|
|
4276
4286
|
*
|
|
4277
|
-
* The usage endpoints (`/v1/user/projects/{id}/usage`, `/me/usage/today`) convert the metered
|
|
4278
|
-
* spend into
|
|
4279
|
-
*
|
|
4280
|
-
*
|
|
4281
|
-
* hold CREDITS, never dollars. Label them as credits; use {@link creditsToUsd} only when a
|
|
4282
|
-
* dollar figure is genuinely wanted, with the deployment's own rate.
|
|
4287
|
+
* The usage endpoints (`/v1/user/projects/{id}/usage`, `/me/usage/today`) convert the metered
|
|
4288
|
+
* LiteLLM USD spend into £ at the API boundary (fractional, rounded to 2 decimals). The fields are
|
|
4289
|
+
* still named `spend` / `total_spend` in the schema, but they hold £, never dollars. Format them
|
|
4290
|
+
* with `formatGbp` (re-exported from `@arbidocs/sdk`).
|
|
4283
4291
|
*/
|
|
4284
|
-
/** Dollars per credit on a default deployment (`CREDITS_TO_AI_USD`). */
|
|
4285
|
-
declare const DEFAULT_USD_PER_CREDIT = 0.01;
|
|
4286
|
-
interface FormatCreditsOptions {
|
|
4287
|
-
/** Append the unit ("12 credits"). Default true; pass false inside a column headed "Credits". */
|
|
4288
|
-
unit?: boolean;
|
|
4289
|
-
/** BCP 47 locale for the digit grouping. Default `en-US`. */
|
|
4290
|
-
locale?: string;
|
|
4291
|
-
}
|
|
4292
|
-
/**
|
|
4293
|
-
* "0.47 credits" / "1 credit" / "1.5 credits" / "1,235 credits". The backend reports fractional
|
|
4294
|
-
* credits (2 decimals). Amounts under 100 keep up to 2 decimals with trailing zeros trimmed;
|
|
4295
|
-
* amounts of 100 and over round to whole credits. Only exactly 1 is singular.
|
|
4296
|
-
*/
|
|
4297
|
-
declare function formatCredits(credits: number, options?: FormatCreditsOptions): string;
|
|
4298
|
-
/** The dollar value of an amount of credits. `usdPerCredit` defaults to {@link DEFAULT_USD_PER_CREDIT}. */
|
|
4299
|
-
declare function creditsToUsd(credits: number, usdPerCredit?: number): number;
|
|
4300
4292
|
/** The slice of a usage response that tells whether anything was recorded. */
|
|
4301
4293
|
interface UsageTotals {
|
|
4302
4294
|
total_spend: number;
|
|
@@ -4307,7 +4299,7 @@ interface UsageTotals {
|
|
|
4307
4299
|
* Was this usage actually metered? A `dev`-plan project with an all-zero response (no spend, no
|
|
4308
4300
|
* tokens, no requests) is treated as "not metered", so the UI shows a note instead of silent
|
|
4309
4301
|
* zeros. Any recorded tokens or requests mean usage was metered, even when the spend rounds to 0
|
|
4310
|
-
* (the backend
|
|
4302
|
+
* (the backend records usage when billing is off, and a tiny spend can be £0.00).
|
|
4311
4303
|
*/
|
|
4312
4304
|
declare function isUsageMetered(usage: UsageTotals, subscription: string | null | undefined): boolean;
|
|
4313
4305
|
|
|
@@ -6691,4 +6683,4 @@ interface ArbiUiState {
|
|
|
6691
6683
|
}
|
|
6692
6684
|
declare const useArbiUiStore: zustand.UseBoundStore<zustand.StoreApi<ArbiUiState>>;
|
|
6693
6685
|
|
|
6694
|
-
export { type ActivityContent, type ActivityDescription, ActivityFeed, type ActivityFeedProps, type AgentAccessMode, type AgentConfigSections, type AggregatedDailyUsage, type AggregatedModelGroupUsage, AiActionCard, AiAnswer, type AiRunOptions, type AiTaskStatus, AppleIcon, ArbiBotHeadIcon, ArbiBotIcon, type ArbiChat, type ArbiChatCitation, type ArbiChatDocument, type ArbiChatMessage, type ArbiChatMessageStatus, type ArbiChatPassage, type ArbiChatRole, type ArbiChatThread, ArbiIcon, ArbiProvider, type ArbiProviderProps, type ArbiUiState, ArbiWebSocketProvider, type ArbiWebSocketProviderProps, type ArbiWsState, type ArbiWsStatus, ArtifactCanvas, type AspectOption, AudIcon, type AudioRecorderState, type AvatarCrop, type AvatarFileProblem, ChatBubble, type ChatBubbleProps, type Chunk, type ChunkActivation, CitationRenderer, type CitationRendererProps, type CitationState, ClaudeIcon, CommandPalette, type CommandPaletteClassNames, type CommandPaletteProps, CommandPaletteProvider, type CommandPaletteProviderProps, type CommandPaletteValue, ConversationList, type ConversationListProps, type CropArea, type CropOutput, type CropResult, DEFAULT_ASPECT_OPTIONS, DEFAULT_PASSWORD_CHANGE_FORM_MESSAGES, DEFAULT_START_BY_EMAIL_LABELS,
|
|
6686
|
+
export { type ActivityContent, type ActivityDescription, ActivityFeed, type ActivityFeedProps, type AgentAccessMode, type AgentConfigSections, type AggregatedDailyUsage, type AggregatedModelGroupUsage, AiActionCard, AiAnswer, type AiRunOptions, type AiTaskStatus, AppleIcon, ArbiBotHeadIcon, ArbiBotIcon, type ArbiChat, type ArbiChatCitation, type ArbiChatDocument, type ArbiChatMessage, type ArbiChatMessageStatus, type ArbiChatPassage, type ArbiChatRole, type ArbiChatThread, ArbiIcon, ArbiProvider, type ArbiProviderProps, type ArbiUiState, ArbiWebSocketProvider, type ArbiWebSocketProviderProps, type ArbiWsState, type ArbiWsStatus, ArtifactCanvas, type AspectOption, AudIcon, type AudioRecorderState, type AvatarCrop, type AvatarFileProblem, ChatBubble, type ChatBubbleProps, type Chunk, type ChunkActivation, CitationRenderer, type CitationRendererProps, type CitationState, ClaudeIcon, CommandPalette, type CommandPaletteClassNames, type CommandPaletteProps, CommandPaletteProvider, type CommandPaletteProviderProps, type CommandPaletteValue, ConversationList, type ConversationListProps, type CropArea, type CropOutput, type CropResult, DEFAULT_ASPECT_OPTIONS, DEFAULT_PASSWORD_CHANGE_FORM_MESSAGES, DEFAULT_START_BY_EMAIL_LABELS, DateSeparator, type DateSeparatorProps, type DeleteAccountBlocker, type DeleteAccountFlow, DirectMessages, type DirectMessagesProps, DmAvatar, type DmAvatarProps, type DmClassNames, DmComposer, type DmComposerProps, type DmConversation, type DmMessage, type DmNotification, type DmUser, DocIcon, DocQaPanel, DocSearch, DocumentCardMenu, type DocumentCardMenuProps, DocumentGallery, type DocumentGalleryProps, DocumentReview, type DocumentReviewProps, DocumentTable, type DocumentTableProps, DraftTitleControls, type DraftTitleControlsProps, type EmailChange, type EmailPreferences, EmlIcon, EntityIconComponent, FILE_TYPE_COLORS, FileIcon, FireworksIcon, GeminiIcon, GitHubIcon, GoogleIcon, type GrantAgentAccessVars, HtmlIcon, IdentityPurchase, IdentityStatus, IdentityStep, type IdentityVerificationApi, IdentityVerificationFlow, ImageCropModal, type ImageCropModalProps, ImageCropper, type ImageCropperProps, ImgIcon, InlineMicButton, type InlineMicButtonProps, LinkedInIcon, MAX_AVATAR_FILE_BYTES, type MailAccount, type MailAddress, type MailAttachment, type MailClient, type MailClientContextValue, MailClientProvider, type MailClientProviderProps, type MailCompose, type MailDeliveryRecipient, type MailDeliveryStatus, type MailDeviceFallback, type MailFetch, type MailFolder, type MailMessage, type MailMessageUpdate, MailOfflineUnavailableError, type MailPage, type MailPolicy, type MessageArtifact, MessageArtifactCard, MessageBubble, type MessageBubbleProps, MessageThread, type MessageThreadProps, MicRecordingOverlay, type MicRecordingOverlayProps, MicWaveformIndicator, type MicWaveformIndicatorProps, type MountDiditOptions, type NameEditor, type NotificationPreferencesModel, type NotificationTypeMeta, OpenAIIcon, PROJECT_CREATION_DENIED_REASON, type PaletteNavItem, type ParsedChunk, type ParsedChunkMetadata, type ParsedDocument, type ParsedDocumentMetadata, type PasswordChangeForm, type PasswordChangeFormMessages, type PasswordChangeVars, PdfIcon, PhotoCapture, type PhotoCaptureProps, type ProfileView, type ProjectsUsageAggregate, ProviderIcon, RUN_WINDOW_MS, type RelevancePatch, type RenderMarkdown, type SaveAgentConfigVars, type SearchChunk, SemanticSearch, type SemanticSearchProps, type ShellRecentWorkspaceItem, type ShellWorkspaceItem, type ShellWorkspaceKind, type ShellWorkspaceMember, type ShellWorkspaceSeed, type ShellWorkspaceSource, StartByEmail, type StartByEmailLabels, type StartByEmailProps, type ThreadAccessors, type ThreadItem, type ToolResponses, TxtIcon, TypingIndicator, type UpdateProfileVars, type UsageTotals, type UseArbiChatOptions, type UseArbiShellWorkspacesOptions, type UseAudioRecorderResult, type UseAvatarCropOptions, type UseCameraStreamResult, type UseDeleteAccountFlowOptions, type UseDirectMessagesResult, type UseEmailChangeOptions, type UseIdentityVerificationFlowOptions, type UseNameEditorOptions, type UsePasswordChangeFormOptions, type UseShellWorkspacesOptions, type UseShellWorkspacesResult, type UseVideoRecorderResult, VidIcon, VideoCapture, type VideoCaptureProps, type VideoRecorderState, VoiceNoteRecorder, type VoiceNoteRecorderProps, type WorkspaceNotificationLevel, XlsIcon, accountPath, aliasTakenMessage, annotateThread, arbiMailClient, arbiQueryKeys, captureFrameAsBlob, classifyMediaError, createMailClient, cropImage, dayKey, defaultMailAlias, describeActivity, fileAttachment, formatElapsed, formatIdentityPrice, formatRelativeTime, getNotificationTypeMeta, getWorkspaceActionText, getWorkspaceKind, getWorkspaceSentPhrase, hasVideoTrack, identityStepFor, invalidateTagData, isAliasTakenError, isUsageMetered, isWorkspaceNotificationType, mailDraftIdFromContent, mailJson, mailQueryKeys, mountDiditVerification, nextAliasSuggestion, parseActivityContent, parseDeleteAccountBlockers, pickRecentWorkspaces, redlineStats, resolveActiveWorkspace, textToArtifact, titleFromQuestion, toChatCitations, toNotificationPreferences, toProfileView, toRedlineMarkdown, toShellWorkspace, useActOnStep, useActivity, useAddContacts, useAgentChats, useAgentConfig, useAgentModels, useAgentSession, useAgentWorkspaces, useAgents, useAiTask, useArbi, useArbiChat, useArbiConnected, useArbiDocumentSync, useArbiShellWorkspaces, useArbiUiStore, useArbiWebSocket, useArbiWsContext, useArbiWsMessage, useArbiWsStatus, useArbiWsStore, useArbiWsTask, useArbiWsTasks, useAssistantQuery, useAudioRecorder, useAvatarCrop, useCameraStream, useCanCreateProjects, useClaimNativeAlias, useCloseAgentSession, useCommandPalette, useConfigs, useConfirmEmailChange, useConnectMailAccount, useContacts, useConversationActivity, useConversationPendingAuth, useConversationThreads, useConversationUsage, useConversations, useCreateAgent, useCreateWork, useCreateWorkflow, useCurrentSessionId, useCurrentUser, useDeleteAccount, useDeleteAccountFlow, useDeleteAgents, useDeleteWorkflow, useDeploymentDomain, useDirectMessages, useDisconnectMailAccount, useDocuments, useEmailChange, useFacts, useFilteredProjects, useFollowThread, useGrantAgentAccess, useHealth, useIdentityVerification, useIdentityVerificationFlow, useInvalidateTagData, useLogoutAllSessions, useMailAccounts, useMailCache, useMailClient, useMailDraftCompose, useMailFolders, useMailMessage, useMailMessages, useMailOnline, useMailPolicy, useMailUnlock, useNameEditor, useNotificationPreferences, useParsedDocument, usePasswordChange, usePasswordChangeForm, usePendingContacts, usePlanWork, useProfile, useProjectConversationUsage, useProjectEvents, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, useRemoveContacts, useRequestEmailChange, useRevokeAgentAccess, useRunConversation, useRunWorkflow, useSaveAgentConfig, useSaveMailDraft, useSemanticSearch, useSendBackStep, useSendMail, useSessions, useSetTagValues, useShellWorkspaces, useSkills, useStartAgentSession, useStartWorkQuery, useTagKindSchema, useTags, useTerminateSession, useThumbnails, useUpdateConversation, useUpdateMailMessage, useUpdateProfile, useUpdateProjectFields, useUpdateTagKindSchema, useUpdateWorkflow, useUploadSkillFiles, useUserSettings, useUserUsageToday, useVideoRecorder, useWorkNotifications, useWorkflows, useWorkspaceActivity, useWorkspaceDocs, useWorkspaceNotificationLevel, useWorkspaceUsers, useWorkspaces, userDisplayName, userInitials, workflowStepOf };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { arbiQueryKeys, useDocuments, useConversations, useAssistantQuery, useConversationThreads, useWorkspaces, useParsedDocument, useTags, useActivity, useThumbnails } from './chunk-
|
|
2
|
-
export {
|
|
1
|
+
import { arbiQueryKeys, useDocuments, useConversations, useAssistantQuery, useConversationThreads, useWorkspaces, useParsedDocument, useTags, useActivity, useThumbnails } from './chunk-IXRNX5QB.js';
|
|
2
|
+
export { PROJECT_CREATION_DENIED_REASON, arbiQueryKeys, isUsageMetered, useActivity, useAgents, useAssistantQuery, useCanCreateProjects, useConfigs, useConversationThreads, useConversations, useCurrentUser, useDeleteAgents, useDocuments, useFacts, useHealth, useParsedDocument, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, useSessions, useTags, useThumbnails, useUserUsageToday, useWorkspaceActivity, useWorkspaceUsers, useWorkspaces } from './chunk-IXRNX5QB.js';
|
|
3
3
|
export { cleanDraftMarkdown, cleanDraftWithReport, promoteBoldTitle, repairParsedStructure, repairParsedTitle, stripAgentPreamble, unescapeMarkdown, unwrapCitationLinks } from './chunk-G6FHNURH.js';
|
|
4
4
|
import { formatRelativeTime } from './chunk-ECOSGMTW.js';
|
|
5
5
|
export { DEFAULT_NOTIFY_TONE, NotificationBell, Toaster, formatRelativeTime, notify, seedNotifications, selectUnread, toast, useNotify } from './chunk-ECOSGMTW.js';
|
|
@@ -23,7 +23,7 @@ export { ArbiProvider, useArbi, useDeploymentDomain } from './chunk-BUFDJCDS.js'
|
|
|
23
23
|
import React, { memo, useState, createContext, useMemo, useCallback, useEffect, useRef, useLayoutEffect, useContext, useId, useSyncExternalStore, Fragment as Fragment$1 } from 'react';
|
|
24
24
|
import { useQueryClient, useMutation, useQuery, onlineManager } from '@tanstack/react-query';
|
|
25
25
|
import { resolveCitations, summarizeCitations, settings, formatFileSize, connectWithReconnect, dm, identityErrorCode } from '@arbidocs/sdk/browser';
|
|
26
|
-
export { Arbi, ArbiError } from '@arbidocs/sdk/browser';
|
|
26
|
+
export { Arbi, ArbiError, DEFAULT_AI_USD_PER_GBP, formatGbp, formatGbpPerMillionTokens, usdToGbp } from '@arbidocs/sdk/browser';
|
|
27
27
|
import { Link, Trash2, CheckCheck, Check, Loader2, AlertTriangle, ShieldCheck, Copy, Sparkles, FileText, GitCompareArrows, Download, Search, CornerDownLeft, X, ArrowLeft, Send, Tags, Crown, Info, Activity, Gauge, Gift, PartyPopper, UserCheck, Reply, PenLine, AtSign, MessageCircleMore, FileX2, FileCheck2, Pencil, FolderPlus, SquareArrowOutUpRight, MessagesSquare, Paperclip, ArrowRight, MoreHorizontal, SquarePen, Mic, Pause, Play, Square, RotateCcw, Camera, Circle, Image as Image$1, AppWindow } from 'lucide-react';
|
|
28
28
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
29
29
|
import { isMessageType, passwordChangeErrorMessage } from '@arbidocs/client';
|