@vertesia/appgen-docs 1.6.0-dev.20260918.115658Z → 1.6.0-dev.20261004.085740Z

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.
@@ -11,6 +11,7 @@
11
11
  // -----------------------------------------------------------------------------
12
12
  export * from './Avatar.js';
13
13
  export * from './Center.js';
14
+ export * from './CloudIcon.js';
14
15
  export * from './ComboBox.js';
15
16
  export * from './Divider.js';
16
17
  export * from './EmptyCollection.js';
@@ -910,9 +911,11 @@ export {};
910
911
  export * from './auth/composable';
911
912
  export { clearCentralAuthRoundTripMarker, isCentralAuthRedirectPending, redirectToCentralAuth, } from './auth/domainRouting';
912
913
  export * from './auth/firebase';
914
+ export { isAppOAuthLoginPending, startAppOAuthLogin } from './auth/oauth';
913
915
  export * from './auth/useAuthState';
914
916
  export * from './auth/useCurrentTenant';
915
917
  export * from './DevSessionProvider';
918
+ export { rememberScopeSelection } from './scopeSelection';
916
919
  export * from './UserSession';
917
920
  export * from './UserSessionProvider';
918
921
  export * from './useUXTracking';
@@ -925,9 +928,12 @@ import type { AuthTokenPayload } from '@vertesia/common';
925
928
  import { LastSelectedAccountId_KEY, LastSelectedProjectId_KEY } from './constants';
926
929
  export { LastSelectedAccountId_KEY, LastSelectedProjectId_KEY };
927
930
  export interface UserSessionLoginOptions {
931
+ /** Studio-only onboarding; custom apps leave this disabled. */
928
932
  loadOnboardingStatus?: boolean;
933
+ authMethod?: 'token' | 'oauth';
929
934
  }
930
935
  declare class UserSession {
936
+ private authMethod;
931
937
  isLoading: boolean;
932
938
  client: VertesiaClient;
933
939
  authError?: Error;
@@ -939,22 +945,17 @@ declare class UserSession {
939
945
  constructor(client?: VertesiaClient, setSession?: (session: UserSession) => void);
940
946
  get store(): import("@vertesia/client").ZenoClient;
941
947
  get user(): AuthTokenPayload | undefined;
942
- get account(): {
943
- id: string;
944
- name: string;
945
- } | undefined;
946
- get project(): {
947
- id: string;
948
- name: string;
949
- account: string;
950
- restricted?: boolean | undefined;
951
- } | undefined;
952
- get accounts(): {
953
- id: string;
954
- name: string;
955
- }[] | undefined;
948
+ get account(): import("@vertesia/common/wire-types").AccountRef | undefined;
949
+ get project(): import("@vertesia/common/wire-types").ProjectRef | undefined;
950
+ get accounts(): import("@vertesia/common/wire-types").AccountRef[] | undefined;
956
951
  get authCallback(): Promise<string>;
957
952
  get rawAuthToken(): Promise<string>;
953
+ /**
954
+ * Adopt a token refreshed for this session. A token for another account or project means the
955
+ * scope moved under the rendered view, which would then mix data from both: reload so the view
956
+ * starts over in one scope, and fail the call so nothing is sent with the other scope's token.
957
+ */
958
+ private adoptToken;
958
959
  /**
959
960
  * Force a fresh Vertesia JWT from STS, bypassing the in-memory cache.
960
961
  * Use this when the current token's claims (e.g. `apps`) are suspected
@@ -962,10 +963,7 @@ declare class UserSession {
962
963
  */
963
964
  refreshAuthToken(): Promise<AuthTokenPayload>;
964
965
  signOut(): void;
965
- getAccount(): {
966
- id: string;
967
- name: string;
968
- } | undefined;
966
+ getAccount(): import("@vertesia/common/wire-types").AccountRef | undefined;
969
967
  login(token: string, options?: UserSessionLoginOptions): Promise<void>;
970
968
  loginGatewaySession(): Promise<AuthTokenPayload>;
971
969
  isLoggedIn(): boolean;
@@ -1036,6 +1034,7 @@ export {};
1036
1034
  import { type AgentMessage, AgentMessageType, type AgentRun, type AgentToolApprovalMode, type ConversationFile, type Plan } from '@vertesia/common';
1037
1035
  import { type AgentResourceResolver } from '@vertesia/ui/widgets';
1038
1036
  import type React from 'react';
1037
+ import { type AgentBudgetRequestOverrides } from './AgentBudgetPauseOverlay';
1039
1038
  import type { AgentConversationViewMode, AgentInitialRequestTemplate, AgentInitialRequestTemplateContext } from './ModernAgentOutput/AllMessagesMixed';
1040
1039
  import type { BatchProgressPanelClassNames } from './ModernAgentOutput/BatchProgressPanel';
1041
1040
  import { type SelectedDocument, type UploadedFile } from './ModernAgentOutput/MessageInput';
@@ -1051,7 +1050,7 @@ export type StartWorkflowFn = (initialMessage?: string, options?: StartWorkflowO
1051
1050
  agent_run_id: string;
1052
1051
  } | undefined>;
1053
1052
  export type SendAgentMessageFn = (message: string, inputMetadata?: Record<string, unknown>) => void;
1054
- export interface ModernAgentConversationProps {
1053
+ export interface ModernAgentConversationProps extends AgentBudgetRequestOverrides {
1055
1054
  /** Stable AgentRun ID — the primary identifier for all runtime operations. */
1056
1055
  agentRunId?: string;
1057
1056
  /**
@@ -1274,6 +1273,7 @@ export * from './SaveVersionConfirmModal';
1274
1273
  export * from './SelectDocument';
1275
1274
  export * from './SelectDocumentModal';
1276
1275
  export * from './useDownloadFile';
1276
+ export * from './VectorSearchWidget';
1277
1277
 
1278
1278
  // -----------------------------------------------------------------------------
1279
1279
  // features/store/collections/index.d.ts