@greatapps/greatagents-ui 0.3.11 → 0.3.13

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/index.d.ts CHANGED
@@ -519,58 +519,12 @@ interface AgentEditFormProps {
519
519
  }
520
520
  declare function AgentEditForm({ config, agent, idAccount, open, onOpenChange }: AgentEditFormProps): react_jsx_runtime.JSX.Element;
521
521
 
522
- /**
523
- * Types for the Integration Wizard flow.
524
- *
525
- * The wizard uses the base IntegrationDefinition from the integrations registry
526
- * and extends it with wizard-specific metadata via WizardIntegrationMeta.
527
- */
528
-
529
- interface IntegrationCapability {
530
- label: string;
531
- description?: string;
532
- }
533
- interface WizardIntegrationMeta {
534
- /** Icon as React node for the wizard header */
535
- icon?: React.ReactNode;
536
- /** Provider label for OAuth button (e.g. "Google") */
537
- providerLabel?: string;
538
- /** What this integration can do */
539
- capabilities: IntegrationCapability[];
540
- /** Required permissions / prerequisites */
541
- requirements: string[];
542
- /** Whether this integration has a config step */
543
- hasConfigStep: boolean;
544
- }
545
- type WizardStep = "info" | "credentials" | "config" | "confirm";
546
- type OAuthStatus = "idle" | "waiting" | "success" | "error";
547
- interface OAuthResult {
548
- success: boolean;
549
- email?: string;
550
- error?: string;
551
- credentialId?: number;
552
- }
553
-
554
- interface ConfigOption {
555
- id: string;
556
- label: string;
557
- description?: string;
558
- }
559
-
560
522
  interface AgentTabsProps {
561
523
  agent: Agent;
562
524
  config: GagentsHookConfig;
563
525
  renderChatLink?: (inboxId: number) => React.ReactNode;
564
- /** Required for the Capacidades tab — gagents API URL for OAuth flows and advanced features. Falls back to config.baseUrl. */
565
- gagentsApiUrl?: string;
566
- /** Resolve wizard metadata for a given integration card. */
567
- resolveWizardMeta?: (card: IntegrationCardData) => WizardIntegrationMeta;
568
- /** Callback to load config options after OAuth completes. */
569
- loadConfigOptions?: (credentialId: number) => Promise<ConfigOption[]>;
570
- /** Called after wizard completes successfully. */
571
- onWizardComplete?: () => void;
572
526
  }
573
- declare function AgentTabs({ agent, config, renderChatLink, gagentsApiUrl, resolveWizardMeta, loadConfigOptions, onWizardComplete, }: AgentTabsProps): react_jsx_runtime.JSX.Element;
527
+ declare function AgentTabs({ agent, config, renderChatLink, }: AgentTabsProps): react_jsx_runtime.JSX.Element;
574
528
 
575
529
  interface AgentPromptEditorProps {
576
530
  config: GagentsHookConfig;
@@ -693,12 +647,9 @@ declare function IntegrationCard({ card, onConnect }: IntegrationCardProps): rea
693
647
 
694
648
  interface IntegrationsTabProps {
695
649
  config: GagentsHookConfig;
696
- agentId: number | null;
697
- /** Called when user clicks a card action (connect / configure / reconnect).
698
- * The consuming app wires this to the wizard (Story 18.9). */
699
- onConnect: (card: IntegrationCardData) => void;
650
+ agentId: number;
700
651
  }
701
- declare function IntegrationsTab({ config, agentId, onConnect, }: IntegrationsTabProps): react_jsx_runtime.JSX.Element;
652
+ declare function IntegrationsTab({ config, agentId, }: IntegrationsTabProps): react_jsx_runtime.JSX.Element;
702
653
 
703
654
  interface CapabilitiesTabProps {
704
655
  config: GagentsHookConfig;
@@ -713,6 +664,44 @@ interface AdvancedTabProps {
713
664
  }
714
665
  declare function AdvancedTab({ config, agentId, gagentsApiUrl }: AdvancedTabProps): react_jsx_runtime.JSX.Element;
715
666
 
667
+ /**
668
+ * Types for the Integration Wizard flow.
669
+ *
670
+ * The wizard uses the base IntegrationDefinition from the integrations registry
671
+ * and extends it with wizard-specific metadata via WizardIntegrationMeta.
672
+ */
673
+
674
+ interface IntegrationCapability {
675
+ label: string;
676
+ description?: string;
677
+ }
678
+ interface WizardIntegrationMeta {
679
+ /** Icon as React node for the wizard header */
680
+ icon?: React.ReactNode;
681
+ /** Provider label for OAuth button (e.g. "Google") */
682
+ providerLabel?: string;
683
+ /** What this integration can do */
684
+ capabilities: IntegrationCapability[];
685
+ /** Required permissions / prerequisites */
686
+ requirements: string[];
687
+ /** Whether this integration has a config step */
688
+ hasConfigStep: boolean;
689
+ }
690
+ type WizardStep = "info" | "credentials" | "config" | "confirm";
691
+ type OAuthStatus = "idle" | "waiting" | "success" | "error";
692
+ interface OAuthResult {
693
+ success: boolean;
694
+ email?: string;
695
+ error?: string;
696
+ credentialId?: number;
697
+ }
698
+
699
+ interface ConfigOption {
700
+ id: string;
701
+ label: string;
702
+ description?: string;
703
+ }
704
+
716
705
  interface IntegrationWizardProps {
717
706
  open: boolean;
718
707
  onOpenChange: (open: boolean) => void;
@@ -762,21 +751,8 @@ interface AgentCapabilitiesPageProps {
762
751
  config: GagentsHookConfig;
763
752
  agentId: number;
764
753
  gagentsApiUrl: string;
765
- /**
766
- * Resolve wizard metadata for a given integration card.
767
- * The consuming app provides this so the wizard gets correct
768
- * capabilities, requirements, and config step flag.
769
- */
770
- resolveWizardMeta?: (card: IntegrationCardData) => WizardIntegrationMeta;
771
- /**
772
- * Callback to load config options after OAuth completes
773
- * (e.g. load Google Calendar list). Forwarded to IntegrationWizard.
774
- */
775
- loadConfigOptions?: (credentialId: number) => Promise<ConfigOption[]>;
776
- /** Called after wizard completes successfully. */
777
- onWizardComplete?: () => void;
778
754
  }
779
- declare function AgentCapabilitiesPage({ config, agentId, gagentsApiUrl, resolveWizardMeta, loadConfigOptions, onWizardComplete, }: AgentCapabilitiesPageProps): react_jsx_runtime.JSX.Element;
755
+ declare function AgentCapabilitiesPage({ config, agentId, gagentsApiUrl, }: AgentCapabilitiesPageProps): react_jsx_runtime.JSX.Element;
780
756
 
781
757
  interface ToolsPageProps {
782
758
  config: GagentsHookConfig;
@@ -796,11 +772,15 @@ declare function CredentialsPage({ config, gagentsApiUrl, title, subtitle, }: Cr
796
772
  interface IntegrationsManagementPageProps {
797
773
  config: GagentsHookConfig;
798
774
  gagentsApiUrl: string;
799
- /** Called when user clicks connect/reconnect on an integration card. */
800
- onConnect?: (card: IntegrationCardData) => void;
775
+ /** Resolve wizard metadata for a given integration card. */
776
+ resolveWizardMeta?: (card: IntegrationCardData) => WizardIntegrationMeta;
777
+ /** Load config options after OAuth completes (e.g. list of calendars). */
778
+ loadConfigOptions?: (credentialId: number) => Promise<ConfigOption[]>;
779
+ /** Called after wizard completes successfully. */
780
+ onWizardComplete?: () => void;
801
781
  title?: string;
802
782
  subtitle?: string;
803
783
  }
804
- declare function IntegrationsManagementPage({ config, gagentsApiUrl, onConnect, title, subtitle, }: IntegrationsManagementPageProps): react_jsx_runtime.JSX.Element;
784
+ declare function IntegrationsManagementPage({ config, gagentsApiUrl, resolveWizardMeta, loadConfigOptions, onWizardComplete, title, subtitle, }: IntegrationsManagementPageProps): react_jsx_runtime.JSX.Element;
805
785
 
806
786
  export { AdvancedTab, type AdvancedTabProps, type Agent, AgentCapabilitiesPage, type AgentCapabilitiesPageProps, type AgentCapabilitiesPayload, type AgentCapability, AgentConversationsPanel, AgentConversationsTable, AgentDetailPage, type AgentDetailPageProps, AgentEditForm, AgentFormDialog, AgentObjectivesList, AgentPromptEditor, AgentTabs, type AgentTool, AgentToolsList, AgentsPage, type AgentsPageProps, AgentsTable, type ApiResponse, type AvailabilityConflict, type AvailabilityResult, type CalendarStatus, type CapabilitiesResponse, CapabilitiesTab, type CapabilitiesTabProps, type CapabilityCategory, type CapabilityModule, type CapabilityOperation, type ConfigOption, type ContactUser, type Conversation, ConversationView, CredentialsPage, type CredentialsPageProps, type GagentsClient, type GagentsClientConfig, type GagentsContact, type GagentsHookConfig, INTEGRATIONS_REGISTRY, type IntegrationAuthType, type IntegrationCapability, IntegrationCard, type IntegrationCardData, type IntegrationCardProps, type IntegrationCardState, type IntegrationDefinition, type IntegrationStatus, IntegrationWizard, type IntegrationWizardProps, IntegrationsManagementPage, type IntegrationsManagementPageProps, IntegrationsTab, type IntegrationsTabProps, type OAuthResult, type OAuthStatus, type Objective, type PromptVersion, Sortable, SortableContent, SortableItem, SortableItemHandle, SortableOverlay, type Tool, type ToolCredential, ToolCredentialsForm, ToolFormDialog, ToolsPage, type ToolsPageProps, ToolsTable, type WizardIntegrationMeta, type WizardStep, cn, createGagentsClient, useAddAgentTool, useAgent, useAgentCapabilities, useAgentConversations, useAgentTools, useAgents, useCapabilities, useContactUsers, useConversation, useConversations, useCreateAgent, useCreateObjective, useCreateTool, useCreateToolCredential, useDeleteAgent, useDeleteObjective, useDeleteTool, useDeleteToolCredential, useGagentsClient, useGagentsContacts, useIntegrationState, useObjectives, usePromptVersions, useRemoveAgentTool, useTool, useToolCredentials, useTools, useUpdateAgent, useUpdateAgentCapabilities, useUpdateAgentTool, useUpdateObjective, useUpdateTool, useUpdateToolCredential };