@greatapps/greatagents-ui 0.3.12 → 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,54 +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
- gagentsApiUrl?: string;
565
- resolveWizardMeta?: (card: IntegrationCardData) => WizardIntegrationMeta;
566
- loadConfigOptions?: (credentialId: number) => Promise<ConfigOption[]>;
567
- onWizardComplete?: () => void;
568
526
  }
569
- 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;
570
528
 
571
529
  interface AgentPromptEditorProps {
572
530
  config: GagentsHookConfig;
@@ -689,12 +647,9 @@ declare function IntegrationCard({ card, onConnect }: IntegrationCardProps): rea
689
647
 
690
648
  interface IntegrationsTabProps {
691
649
  config: GagentsHookConfig;
692
- agentId: number | null;
693
- /** Called when user clicks a card action (connect / configure / reconnect).
694
- * The consuming app wires this to the wizard (Story 18.9). */
695
- onConnect: (card: IntegrationCardData) => void;
650
+ agentId: number;
696
651
  }
697
- declare function IntegrationsTab({ config, agentId, onConnect, }: IntegrationsTabProps): react_jsx_runtime.JSX.Element;
652
+ declare function IntegrationsTab({ config, agentId, }: IntegrationsTabProps): react_jsx_runtime.JSX.Element;
698
653
 
699
654
  interface CapabilitiesTabProps {
700
655
  config: GagentsHookConfig;
@@ -709,6 +664,44 @@ interface AdvancedTabProps {
709
664
  }
710
665
  declare function AdvancedTab({ config, agentId, gagentsApiUrl }: AdvancedTabProps): react_jsx_runtime.JSX.Element;
711
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
+
712
705
  interface IntegrationWizardProps {
713
706
  open: boolean;
714
707
  onOpenChange: (open: boolean) => void;
@@ -758,21 +751,8 @@ interface AgentCapabilitiesPageProps {
758
751
  config: GagentsHookConfig;
759
752
  agentId: number;
760
753
  gagentsApiUrl: string;
761
- /**
762
- * Resolve wizard metadata for a given integration card.
763
- * The consuming app provides this so the wizard gets correct
764
- * capabilities, requirements, and config step flag.
765
- */
766
- resolveWizardMeta?: (card: IntegrationCardData) => WizardIntegrationMeta;
767
- /**
768
- * Callback to load config options after OAuth completes
769
- * (e.g. load Google Calendar list). Forwarded to IntegrationWizard.
770
- */
771
- loadConfigOptions?: (credentialId: number) => Promise<ConfigOption[]>;
772
- /** Called after wizard completes successfully. */
773
- onWizardComplete?: () => void;
774
754
  }
775
- 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;
776
756
 
777
757
  interface ToolsPageProps {
778
758
  config: GagentsHookConfig;
@@ -792,11 +772,15 @@ declare function CredentialsPage({ config, gagentsApiUrl, title, subtitle, }: Cr
792
772
  interface IntegrationsManagementPageProps {
793
773
  config: GagentsHookConfig;
794
774
  gagentsApiUrl: string;
795
- /** Called when user clicks connect/reconnect on an integration card. */
796
- 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;
797
781
  title?: string;
798
782
  subtitle?: string;
799
783
  }
800
- 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;
801
785
 
802
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 };