@burdenoff/fe-libs 2026.1024.2 → 2026.1024.3
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/chrome/FooterBar.d.ts +1 -1
- package/dist/chrome/NativePageTransition.d.ts +1 -1
- package/dist/chrome/ProductPickerSheet.js +42 -42
- package/dist/chrome/ProductSwitcher.d.ts +8 -0
- package/dist/chrome/ProductSwitcher.js +83 -72
- package/dist/chrome/index.d.ts +9 -9
- package/dist/chrome/swipe/swipeMath.d.ts +1 -1
- package/dist/shared/assistant/api.d.ts +3 -3
- package/dist/shared/assistant/appControls/grammar.d.ts +21 -21
- package/dist/shared/assistant/appControls/languageReply.d.ts +1 -1
- package/dist/shared/assistant/appControls/names.d.ts +3 -3
- package/dist/shared/assistant/appControls/pageAdapters.d.ts +5 -5
- package/dist/shared/assistant/appControls/plan.d.ts +38 -38
- package/dist/shared/assistant/appControls/types.d.ts +15 -15
- package/dist/shared/assistant/appControls/useAssistantControl.d.ts +1 -1
- package/dist/shared/assistant/attachmentSources.d.ts +2 -2
- package/dist/shared/assistant/attachments.d.ts +5 -5
- package/dist/shared/assistant/autoRouting.d.ts +6 -6
- package/dist/shared/assistant/conversation.d.ts +20 -20
- package/dist/shared/assistant/displayContent.d.ts +4 -4
- package/dist/shared/assistant/documentText.d.ts +3 -3
- package/dist/shared/assistant/exportConversation.d.ts +1 -1
- package/dist/shared/assistant/history/historyControls.d.ts +4 -4
- package/dist/shared/assistant/history/historyErrors.d.ts +3 -3
- package/dist/shared/assistant/history/historyList.d.ts +5 -5
- package/dist/shared/assistant/history/historyMerge.d.ts +4 -4
- package/dist/shared/assistant/history/historyOperations.d.ts +1 -1
- package/dist/shared/assistant/history/historySearch.d.ts +5 -5
- package/dist/shared/assistant/history/historyStatus.d.ts +1 -1
- package/dist/shared/assistant/history/historyTypes.d.ts +12 -12
- package/dist/shared/assistant/history/profileBoundStorage.d.ts +2 -2
- package/dist/shared/assistant/i18n.d.ts +1 -1
- package/dist/shared/assistant/i18nManifest.d.ts +534 -534
- package/dist/shared/assistant/liveDeltas.d.ts +1 -1
- package/dist/shared/assistant/liveOverlay.d.ts +1 -1
- package/dist/shared/assistant/localUiCommandCopy.d.ts +1 -1
- package/dist/shared/assistant/localUiCommands.d.ts +22 -22
- package/dist/shared/assistant/localeCommands/engine.d.ts +5 -5
- package/dist/shared/assistant/localeCommands/evaluate.d.ts +8 -8
- package/dist/shared/assistant/localeCommands/fold.d.ts +2 -2
- package/dist/shared/assistant/localeCommands/frames.d.ts +3 -3
- package/dist/shared/assistant/localeCommands/gate.d.ts +3 -3
- package/dist/shared/assistant/localeCommands/languageNames.d.ts +1 -1
- package/dist/shared/assistant/localeCommands/normalise.d.ts +1 -1
- package/dist/shared/assistant/localeCommands/types.d.ts +4 -4
- package/dist/shared/assistant/modeCapabilities.d.ts +1 -1
- package/dist/shared/assistant/modeCopy.d.ts +2 -2
- package/dist/shared/assistant/permissionError.d.ts +2 -2
- package/dist/shared/assistant/preview/surfaceState.d.ts +1 -1
- package/dist/shared/assistant/preview/types.d.ts +5 -5
- package/dist/shared/assistant/preview/writeActionResults.d.ts +1 -1
- package/dist/shared/assistant/prewarm.d.ts +5 -5
- package/dist/shared/assistant/quota.d.ts +2 -2
- package/dist/shared/assistant/sandboxReadiness.d.ts +2 -2
- package/dist/shared/assistant/speech/speechFeed.d.ts +3 -3
- package/dist/shared/assistant/turnOutcome.d.ts +2 -2
- package/dist/shared/assistant/turnProgress.d.ts +1 -1
- package/dist/shared/assistant/turnState.d.ts +1 -1
- package/dist/shared/assistant/turnStream.d.ts +3 -3
- package/dist/shared/assistant/turnTimeline.d.ts +13 -13
- package/dist/shared/assistant/turnTimingReport.d.ts +1 -1
- package/dist/shared/assistant/turnTimingReporter.d.ts +3 -3
- package/dist/shared/assistant/ui/AssistantAvatarTabs.d.ts +1 -1
- package/dist/shared/assistant/ui/AssistantHistoryNotices.d.ts +1 -1
- package/dist/shared/assistant/ui/AssistantToolActivity.d.ts +1 -1
- package/dist/shared/assistant/ui/AssistantUiOfferLink.d.ts +2 -2
- package/dist/shared/assistant/ui/AssistantWriteConfirmDialog.d.ts +3 -3
- package/dist/shared/assistant/ui/composer/AssistantAttachmentButton.d.ts +1 -1
- package/dist/shared/assistant/ui/composer/AssistantConnectSourceItem.d.ts +1 -1
- package/dist/shared/assistant/ui/leaveConfirmFocus.d.ts +1 -1
- package/dist/shared/assistant/ui/leaveConfirmNavigate.d.ts +3 -3
- package/dist/shared/assistant/ui/panelOverlays.d.ts +5 -5
- package/dist/shared/assistant/ui/useVoiceSession.d.ts +5 -5
- package/dist/shared/assistant/ui/useWriteProposalConfirm.d.ts +4 -4
- package/dist/shared/assistant/ui/useWriteProposals.d.ts +2 -2
- package/dist/shared/assistant/ui/voice/AssistantVoiceSession.d.ts +1 -1
- package/dist/shared/assistant/ui/voice/VoiceCaption.d.ts +1 -1
- package/dist/shared/assistant/ui/voice/VoiceWaveform.d.ts +1 -1
- package/dist/shared/assistant/ui/voice/voiceSessionEscape.d.ts +2 -2
- package/dist/shared/assistant/ui/voice/voiceStartGate.d.ts +6 -6
- package/dist/shared/assistant/ui/writeProposalPresentation.d.ts +1 -1
- package/dist/shared/assistant/uiActions/actOnResolve.d.ts +5 -5
- package/dist/shared/assistant/uiActions/assistantHref.d.ts +2 -2
- package/dist/shared/assistant/uiActions/backStack.d.ts +1 -1
- package/dist/shared/assistant/uiActions/deixis.d.ts +3 -3
- package/dist/shared/assistant/uiActions/entityRoutes.d.ts +1 -1
- package/dist/shared/assistant/uiActions/navigationOutcome.d.ts +8 -8
- package/dist/shared/assistant/uiActions/offerYesOnSurface.d.ts +1 -1
- package/dist/shared/assistant/uiActions/resolveTarget.d.ts +2 -2
- package/dist/shared/assistant/uiActions/uiOffers.d.ts +5 -5
- package/dist/shared/assistant/usageReporting.d.ts +2 -2
- package/dist/shared/assistant/useWorkspaceWriteAccess.d.ts +1 -1
- package/dist/shared/assistant/voice/affirmations.d.ts +1 -1
- package/dist/shared/assistant/voice/handsFree.d.ts +3 -3
- package/dist/shared/assistant/voice/handsfree/bargeIn.d.ts +5 -5
- package/dist/shared/assistant/voice/handsfree/echoGate.d.ts +6 -6
- package/dist/shared/assistant/voice/handsfree/handsFreeController.d.ts +7 -7
- package/dist/shared/assistant/voice/handsfree/handsFreeSetting.d.ts +2 -2
- package/dist/shared/assistant/voice/handsfree/micCapture.d.ts +1 -1
- package/dist/shared/assistant/voice/handsfree/playbackReference.d.ts +1 -1
- package/dist/shared/assistant/voice/handsfree/sttTransport.d.ts +3 -3
- package/dist/shared/assistant/voice/handsfree/useHandsFreeInterrupt.d.ts +4 -4
- package/dist/shared/assistant/voice/handsfree/vad.d.ts +1 -1
- package/dist/shared/assistant/voice/speechPlayback.d.ts +7 -7
- package/dist/shared/assistant/voice/useVoiceInput.d.ts +1 -1
- package/dist/shared/assistant/voice/voiceReopen.d.ts +8 -8
- package/dist/shared/assistant/writeConfirmSeam.d.ts +1 -1
- package/dist/shared/assistant/writeModeConsent.d.ts +7 -7
- package/dist/shared/assistant/writeProposalDiscovery.d.ts +3 -3
- package/dist/shared/assistant/writeProposalErrorCopy.d.ts +1 -1
- package/dist/shared/assistant/writeProposals.d.ts +23 -23
- package/dist/shared/assistant/writeReplyBinder.d.ts +11 -11
- package/dist/shared/assistant/writeReplySend.d.ts +7 -7
- package/dist/shared/components/LandingOrDashboardRedirect.d.ts +18 -3
- package/dist/shared/components/LandingOrDashboardRedirect.js +58 -28
- package/dist/shared/components/index.d.ts +2 -1
- package/dist/shared/hooks/shell/globalSearchError.d.ts +2 -2
- package/dist/shared/navigation/productSwitchHandoff.d.ts +45 -0
- package/dist/shared/navigation/productSwitchHandoff.js +27 -0
- package/dist/shared/navigation/unsavedChanges.d.ts +1 -1
- package/dist/shared/utils/index.d.ts +3 -3
- package/dist/shared-components.js +7 -6
- package/dist/shared.js +71 -70
- package/package.json +3 -2
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
* carries on and nothing pauses. Only a call that has no such document (a
|
|
33
33
|
* control change, a filtered list) is refused this way, and it waits.
|
|
34
34
|
*/
|
|
35
|
-
export type AssistantHistoryErrorClass =
|
|
35
|
+
export type AssistantHistoryErrorClass = 'schema-unavailable' | 'rejected' | 'quota' | 'auth' | 'not-found' | 'scope-inactive' | 'controls-unavailable' | 'transient';
|
|
36
36
|
export interface AssistantHistoryErrorVerdict {
|
|
37
37
|
class: AssistantHistoryErrorClass;
|
|
38
38
|
/** The first `extensions.code` found, for logs. */
|
|
@@ -67,7 +67,7 @@ export declare const ASSISTANT_HISTORY_BACKOFF_MAX_MS: number;
|
|
|
67
67
|
* changes, or (a control change) until the server has the controls again;
|
|
68
68
|
* `retry` — this item after `delayMs`.
|
|
69
69
|
*/
|
|
70
|
-
export type AssistantHistoryRetryAction =
|
|
70
|
+
export type AssistantHistoryRetryAction = 'drop' | 'pause' | 'park' | 'hold' | 'retry';
|
|
71
71
|
export interface AssistantHistoryRetryPlan {
|
|
72
72
|
action: AssistantHistoryRetryAction;
|
|
73
73
|
delayMs: number;
|
|
@@ -86,6 +86,6 @@ export declare function assistantHistoryBackoffMs(attempts: number, random?: ()
|
|
|
86
86
|
* be stored, and the list then shows what the server holds.
|
|
87
87
|
*/
|
|
88
88
|
export declare function planAssistantHistoryRetry(verdict: AssistantHistoryErrorVerdict, item: {
|
|
89
|
-
type:
|
|
89
|
+
type: 'save' | 'delete' | 'update';
|
|
90
90
|
attempts: number;
|
|
91
91
|
}, random?: () => number): AssistantHistoryRetryPlan;
|
|
@@ -5,7 +5,7 @@ import { AssistantHistoryChannel, AssistantHistoryConvKey, AssistantHistoryConve
|
|
|
5
5
|
/** The scope a stamped conversation belongs to. */
|
|
6
6
|
export declare function historyScopeKeyOfStamp(sync: ConversationSyncStamp): AssistantHistoryScopeKey;
|
|
7
7
|
/** A server conversation's key here: its client id, or `legacy:<id>` for a pre-v2 row. */
|
|
8
|
-
export declare function historyConvKeyOf(conversation: Pick<AssistantHistoryServerConversation,
|
|
8
|
+
export declare function historyConvKeyOf(conversation: Pick<AssistantHistoryServerConversation, 'id' | 'clientConversationId'>): AssistantHistoryConvKey;
|
|
9
9
|
/**
|
|
10
10
|
* The header the list keeps for a live server conversation. The history
|
|
11
11
|
* controls are copied only when the server's answer carried them: a header
|
|
@@ -23,7 +23,7 @@ export declare function conversationHasHistory(conversation: Conversation): bool
|
|
|
23
23
|
* never used as context — the composer is disabled while it is open, and a
|
|
24
24
|
* send that arrives anyway starts a new conversation.
|
|
25
25
|
*/
|
|
26
|
-
export declare function isReadOnlyHistoryConversation(conversation: Pick<Conversation,
|
|
26
|
+
export declare function isReadOnlyHistoryConversation(conversation: Pick<Conversation, 'sync'> | undefined): boolean;
|
|
27
27
|
/**
|
|
28
28
|
* Stamped for another owner than a conversation created now would get
|
|
29
29
|
* (`stamp`): another account, workspace or product. Such a conversation is
|
|
@@ -33,7 +33,7 @@ export declare function isReadOnlyHistoryConversation(conversation: Pick<Convers
|
|
|
33
33
|
* (history off, or the owner unknown) there is nothing to compare with, and
|
|
34
34
|
* nothing is "other".
|
|
35
35
|
*/
|
|
36
|
-
export declare function isOtherScopeHistoryConversation(conversation: Pick<Conversation,
|
|
36
|
+
export declare function isOtherScopeHistoryConversation(conversation: Pick<Conversation, 'sync'> | undefined, stamp: AssistantHistoryScope | null): boolean;
|
|
37
37
|
/**
|
|
38
38
|
* May `conversation` be reused as a fresh draft by a mode switch? Only an
|
|
39
39
|
* empty one with nothing to lose (`conversationHasHistory`) — and only one
|
|
@@ -75,7 +75,7 @@ export interface AssistantHistoryListRow {
|
|
|
75
75
|
/** Saved before v2: opens read-only. */
|
|
76
76
|
legacy: boolean;
|
|
77
77
|
/** Why its latest turns are not being saved. */
|
|
78
|
-
blocked?: ConversationSyncStamp[
|
|
78
|
+
blocked?: ConversationSyncStamp['blocked'];
|
|
79
79
|
loading: boolean;
|
|
80
80
|
/** When it was pinned (a queued pin: when the person pinned it). Null: not pinned. */
|
|
81
81
|
pinnedAt: string | null;
|
|
@@ -138,7 +138,7 @@ export declare function selectAssistantHistoryList(input: AssistantHistoryListIn
|
|
|
138
138
|
* here with nothing saved or queued to save (an empty draft) keeps only
|
|
139
139
|
* Rename (this device's) and Delete.
|
|
140
140
|
*/
|
|
141
|
-
export declare function historyRowAcceptsControls(row: Pick<AssistantHistoryListRow,
|
|
141
|
+
export declare function historyRowAcceptsControls(row: Pick<AssistantHistoryListRow, 'key' | 'legacy' | 'header' | 'conversation'>, outbox: readonly AssistantHistoryOutboxItem[], scopeKey: AssistantHistoryScopeKey | null): boolean;
|
|
142
142
|
/** Server-backed conversations kept on this device at most (the least recently opened go first). */
|
|
143
143
|
export declare const ASSISTANT_HISTORY_MAX_CACHED_CONVERSATIONS = 25;
|
|
144
144
|
export interface HistoryEvictionInput {
|
|
@@ -24,17 +24,17 @@ export declare function highestContiguousHistorySeq(messages: readonly Message[]
|
|
|
24
24
|
export type HistoryLoadPlan =
|
|
25
25
|
/** The newest window (nothing held yet, or too far behind to catch up). */
|
|
26
26
|
{
|
|
27
|
-
kind:
|
|
27
|
+
kind: 'latest';
|
|
28
28
|
paging: AssistantHistoryEntryPaging;
|
|
29
29
|
}
|
|
30
30
|
/** Everything after the last contiguous message held. */
|
|
31
31
|
| {
|
|
32
|
-
kind:
|
|
32
|
+
kind: 'catch-up';
|
|
33
33
|
paging: AssistantHistoryEntryPaging;
|
|
34
34
|
}
|
|
35
35
|
/** The window before the oldest held ("Show earlier messages"). */
|
|
36
36
|
| {
|
|
37
|
-
kind:
|
|
37
|
+
kind: 'earlier';
|
|
38
38
|
paging: AssistantHistoryEntryPaging;
|
|
39
39
|
};
|
|
40
40
|
/**
|
|
@@ -58,7 +58,7 @@ export declare function planHistoryEarlierLoad(sync: ConversationSyncStamp): His
|
|
|
58
58
|
* - `hasOlder`/`olderCursor` follow a BACKWARD page only; a catch-up page says
|
|
59
59
|
* nothing about what lies before the window.
|
|
60
60
|
*/
|
|
61
|
-
export declare function applyHistoryPage(sync: ConversationSyncStamp, local: readonly Message[], loaded: readonly Message[], page: Pick<AssistantHistoryEntryPage,
|
|
61
|
+
export declare function applyHistoryPage(sync: ConversationSyncStamp, local: readonly Message[], loaded: readonly Message[], page: Pick<AssistantHistoryEntryPage, 'conversation' | 'pageInfo'>, plan: HistoryLoadPlan): {
|
|
62
62
|
messages: Message[];
|
|
63
63
|
syncPatch: Partial<ConversationSyncStamp>;
|
|
64
64
|
};
|
|
@@ -46,7 +46,7 @@ export declare const ASSISTANT_HISTORY_UPDATE_MUTATION = "\n mutation UpdateAss
|
|
|
46
46
|
export declare const ASSISTANT_HISTORY_OPERATIONS: ReadonlyArray<{
|
|
47
47
|
operationName: string;
|
|
48
48
|
document: string;
|
|
49
|
-
set:
|
|
49
|
+
set: 'full' | 'base' | 'search';
|
|
50
50
|
}>;
|
|
51
51
|
export declare function buildHistoryPageVariables(scope: AssistantHistoryScope, page: {
|
|
52
52
|
first: number;
|
|
@@ -51,13 +51,13 @@ export interface AssistantHistorySearchInput {
|
|
|
51
51
|
export type AssistantHistorySearchServerState =
|
|
52
52
|
/** Nothing asked of it: no query, a query under 2 characters, or no server to ask. */
|
|
53
53
|
{
|
|
54
|
-
status:
|
|
54
|
+
status: 'idle';
|
|
55
55
|
}
|
|
56
56
|
/** The first page is on its way. */
|
|
57
57
|
| {
|
|
58
|
-
status:
|
|
58
|
+
status: 'searching';
|
|
59
59
|
} | {
|
|
60
|
-
status:
|
|
60
|
+
status: 'results';
|
|
61
61
|
hits: readonly AssistantHistorySearchHit[];
|
|
62
62
|
/** "Show more results". */
|
|
63
63
|
hasMore: boolean;
|
|
@@ -68,8 +68,8 @@ export type AssistantHistorySearchServerState =
|
|
|
68
68
|
}
|
|
69
69
|
/** No server matches: this device's matches only, and a notice says why. */
|
|
70
70
|
| {
|
|
71
|
-
status:
|
|
72
|
-
reason:
|
|
71
|
+
status: 'fallback';
|
|
72
|
+
reason: 'busy' | 'failed';
|
|
73
73
|
};
|
|
74
74
|
export interface AssistantHistorySearchSnapshot {
|
|
75
75
|
/** The query every result answers: the box's text, normalised, once typing paused. "" = no search. */
|
|
@@ -89,7 +89,7 @@ export interface AssistantHistoryGeneration {
|
|
|
89
89
|
export declare const createAssistantHistoryStatusStore: () => import('zustand').UseBoundStore<import('zustand').StoreApi<AssistantHistoryStatusState>>;
|
|
90
90
|
export type AssistantHistoryStatusStore = ReturnType<typeof createAssistantHistoryStatusStore>;
|
|
91
91
|
export declare const useAssistantHistoryStatus: AssistantHistoryStatusStore;
|
|
92
|
-
type GenerationState = Pick<AssistantHistoryStatusState,
|
|
92
|
+
type GenerationState = Pick<AssistantHistoryStatusState, 'scopeKey' | 'epoch'>;
|
|
93
93
|
/** The generation a request starting now belongs to, or null when no scope is active. */
|
|
94
94
|
export declare function assistantHistoryGenerationOf(state: GenerationState, boundKey: string | null): AssistantHistoryGeneration | null;
|
|
95
95
|
/**
|
|
@@ -38,15 +38,15 @@ export type AssistantHistoryConvRef = {
|
|
|
38
38
|
} | {
|
|
39
39
|
conversationId: string;
|
|
40
40
|
};
|
|
41
|
-
export type AssistantHistoryEntryKind =
|
|
42
|
-
export type AssistantHistoryRole =
|
|
43
|
-
export type AssistantHistorySaveOutcome =
|
|
44
|
-
export type AssistantHistoryDeleteOutcome =
|
|
41
|
+
export type AssistantHistoryEntryKind = 'TURN' | 'LOCAL_COMMAND' | 'NOTE';
|
|
42
|
+
export type AssistantHistoryRole = 'USER' | 'ASSISTANT' | 'NOTE';
|
|
43
|
+
export type AssistantHistorySaveOutcome = 'APPLIED' | 'ALREADY_APPLIED' | 'CONVERSATION_DELETED';
|
|
44
|
+
export type AssistantHistoryDeleteOutcome = 'DELETED' | 'ALREADY_DELETED' | 'TOMBSTONED_UNSEEN' | 'NOT_PRESENT';
|
|
45
45
|
/** The kinds of person turns a conversation holds (notes do not count). */
|
|
46
|
-
export type AssistantHistoryChannel =
|
|
47
|
-
export type AssistantHistoryUpdateOutcome =
|
|
48
|
-
export type AssistantHistoryArchivedFilter =
|
|
49
|
-
export type AssistantHistoryChannelFilter =
|
|
46
|
+
export type AssistantHistoryChannel = 'CHAT' | 'VOICE' | 'MIXED';
|
|
47
|
+
export type AssistantHistoryUpdateOutcome = 'APPLIED' | 'ALREADY_APPLIED' | 'CONVERSATION_DELETED' | 'PIN_LIMIT_REACHED';
|
|
48
|
+
export type AssistantHistoryArchivedFilter = 'EXCLUDE' | 'ONLY' | 'INCLUDE';
|
|
49
|
+
export type AssistantHistoryChannelFilter = 'ANY' | 'CHAT' | 'VOICE';
|
|
50
50
|
/**
|
|
51
51
|
* `AssistantHistoryConversationFilter`. Every field optional, as on the
|
|
52
52
|
* server: `channel` defaults to ANY, `archived` to EXCLUDE, and an absent
|
|
@@ -279,18 +279,18 @@ export interface AssistantHistoryTombstone {
|
|
|
279
279
|
*/
|
|
280
280
|
export interface AssistantHistorySaveItem {
|
|
281
281
|
id: string;
|
|
282
|
-
type:
|
|
282
|
+
type: 'save';
|
|
283
283
|
scopeKey: AssistantHistoryScopeKey;
|
|
284
284
|
convKey: AssistantHistoryConvKey;
|
|
285
285
|
kind: AssistantHistoryEntryKind;
|
|
286
286
|
entries: AssistantHistoryEntryInput[];
|
|
287
287
|
attempts: number;
|
|
288
288
|
nextAttemptAt?: number;
|
|
289
|
-
parked?:
|
|
289
|
+
parked?: 'quota';
|
|
290
290
|
}
|
|
291
291
|
export interface AssistantHistoryDeleteItem {
|
|
292
292
|
id: string;
|
|
293
|
-
type:
|
|
293
|
+
type: 'delete';
|
|
294
294
|
scopeKey: AssistantHistoryScopeKey;
|
|
295
295
|
convKey: AssistantHistoryConvKey;
|
|
296
296
|
serverId?: string;
|
|
@@ -308,7 +308,7 @@ export interface AssistantHistoryDeleteItem {
|
|
|
308
308
|
*/
|
|
309
309
|
export interface AssistantHistoryUpdateItem {
|
|
310
310
|
id: string;
|
|
311
|
-
type:
|
|
311
|
+
type: 'update';
|
|
312
312
|
scopeKey: AssistantHistoryScopeKey;
|
|
313
313
|
convKey: AssistantHistoryConvKey;
|
|
314
314
|
serverId?: string;
|
|
@@ -28,8 +28,8 @@ export interface ProfileBoundStorageOptions {
|
|
|
28
28
|
/** Resolve the profile-scoped key for a base name (default: the app's active profile). */
|
|
29
29
|
resolveKey?: (name: string) => string;
|
|
30
30
|
/** The storage to use (default: `window.localStorage`, when there is one). */
|
|
31
|
-
storage?: () => Pick<Storage,
|
|
31
|
+
storage?: () => Pick<Storage, 'getItem' | 'setItem' | 'removeItem'> | null;
|
|
32
32
|
/** Told once per refusal streak, and about every failed write. */
|
|
33
|
-
onRefused?: (reason:
|
|
33
|
+
onRefused?: (reason: 'unbound' | 'profile-changed' | 'write-failed', error?: unknown) => void;
|
|
34
34
|
}
|
|
35
35
|
export declare function createProfileBoundStorage(options?: ProfileBoundStorageOptions): ProfileBoundStorage;
|
|
@@ -50,7 +50,7 @@ export interface AssistantI18nProviderProps {
|
|
|
50
50
|
* transport already needs for `AI_ASSISTANT_PRODUCT`, so there is one answer to
|
|
51
51
|
* "which product is this?" rather than two that can disagree.
|
|
52
52
|
*/
|
|
53
|
-
export declare function AssistantI18nProvider({ namespace, children
|
|
53
|
+
export declare function AssistantI18nProvider({ namespace, children }: AssistantI18nProviderProps): import('react/jsx-runtime').JSX.Element;
|
|
54
54
|
/** The namespace in force, or null when no provider is mounted. */
|
|
55
55
|
export declare function useAssistantI18nNamespace(): string | null;
|
|
56
56
|
export type AssistantTr = (key: string, fallback: string, params?: Record<string, string | number>) => string;
|