@greatapps/greatagents-ui 0.3.12 → 0.3.14
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 +50 -68
- package/dist/index.js +1956 -2315
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/agents/agent-tabs.tsx +41 -104
- package/src/components/capabilities/capabilities-tab.tsx +2 -2
- package/src/components/capabilities/integration-card.tsx +3 -21
- package/src/components/capabilities/integrations-tab.tsx +112 -68
- package/src/components/tools/tool-credentials-form.tsx +1 -374
- package/src/pages/agent-capabilities-page.tsx +2 -83
- package/src/pages/credentials-page.tsx +0 -10
- package/src/pages/integrations-management-page.tsx +129 -31
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,
|
|
527
|
+
declare function AgentTabs({ agent, config, renderChatLink, }: AgentTabsProps): react_jsx_runtime.JSX.Element;
|
|
570
528
|
|
|
571
529
|
interface AgentPromptEditorProps {
|
|
572
530
|
config: GagentsHookConfig;
|
|
@@ -605,10 +563,8 @@ interface ToolCredentialsFormProps {
|
|
|
605
563
|
isLoading: boolean;
|
|
606
564
|
config: GagentsHookConfig;
|
|
607
565
|
gagentsApiUrl: string;
|
|
608
|
-
createOpen?: boolean;
|
|
609
|
-
onCreateOpenChange?: (open: boolean) => void;
|
|
610
566
|
}
|
|
611
|
-
declare function ToolCredentialsForm({ credentials, isLoading, config, gagentsApiUrl,
|
|
567
|
+
declare function ToolCredentialsForm({ credentials, isLoading, config, gagentsApiUrl, }: ToolCredentialsFormProps): react_jsx_runtime.JSX.Element;
|
|
612
568
|
|
|
613
569
|
interface GetItemValue<T> {
|
|
614
570
|
/**
|
|
@@ -689,12 +645,9 @@ declare function IntegrationCard({ card, onConnect }: IntegrationCardProps): rea
|
|
|
689
645
|
|
|
690
646
|
interface IntegrationsTabProps {
|
|
691
647
|
config: GagentsHookConfig;
|
|
692
|
-
agentId: number
|
|
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;
|
|
648
|
+
agentId: number;
|
|
696
649
|
}
|
|
697
|
-
declare function IntegrationsTab({ config, agentId,
|
|
650
|
+
declare function IntegrationsTab({ config, agentId, }: IntegrationsTabProps): react_jsx_runtime.JSX.Element;
|
|
698
651
|
|
|
699
652
|
interface CapabilitiesTabProps {
|
|
700
653
|
config: GagentsHookConfig;
|
|
@@ -709,6 +662,44 @@ interface AdvancedTabProps {
|
|
|
709
662
|
}
|
|
710
663
|
declare function AdvancedTab({ config, agentId, gagentsApiUrl }: AdvancedTabProps): react_jsx_runtime.JSX.Element;
|
|
711
664
|
|
|
665
|
+
/**
|
|
666
|
+
* Types for the Integration Wizard flow.
|
|
667
|
+
*
|
|
668
|
+
* The wizard uses the base IntegrationDefinition from the integrations registry
|
|
669
|
+
* and extends it with wizard-specific metadata via WizardIntegrationMeta.
|
|
670
|
+
*/
|
|
671
|
+
|
|
672
|
+
interface IntegrationCapability {
|
|
673
|
+
label: string;
|
|
674
|
+
description?: string;
|
|
675
|
+
}
|
|
676
|
+
interface WizardIntegrationMeta {
|
|
677
|
+
/** Icon as React node for the wizard header */
|
|
678
|
+
icon?: React.ReactNode;
|
|
679
|
+
/** Provider label for OAuth button (e.g. "Google") */
|
|
680
|
+
providerLabel?: string;
|
|
681
|
+
/** What this integration can do */
|
|
682
|
+
capabilities: IntegrationCapability[];
|
|
683
|
+
/** Required permissions / prerequisites */
|
|
684
|
+
requirements: string[];
|
|
685
|
+
/** Whether this integration has a config step */
|
|
686
|
+
hasConfigStep: boolean;
|
|
687
|
+
}
|
|
688
|
+
type WizardStep = "info" | "credentials" | "config" | "confirm";
|
|
689
|
+
type OAuthStatus = "idle" | "waiting" | "success" | "error";
|
|
690
|
+
interface OAuthResult {
|
|
691
|
+
success: boolean;
|
|
692
|
+
email?: string;
|
|
693
|
+
error?: string;
|
|
694
|
+
credentialId?: number;
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
interface ConfigOption {
|
|
698
|
+
id: string;
|
|
699
|
+
label: string;
|
|
700
|
+
description?: string;
|
|
701
|
+
}
|
|
702
|
+
|
|
712
703
|
interface IntegrationWizardProps {
|
|
713
704
|
open: boolean;
|
|
714
705
|
onOpenChange: (open: boolean) => void;
|
|
@@ -758,21 +749,8 @@ interface AgentCapabilitiesPageProps {
|
|
|
758
749
|
config: GagentsHookConfig;
|
|
759
750
|
agentId: number;
|
|
760
751
|
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
752
|
}
|
|
775
|
-
declare function AgentCapabilitiesPage({ config, agentId, gagentsApiUrl,
|
|
753
|
+
declare function AgentCapabilitiesPage({ config, agentId, gagentsApiUrl, }: AgentCapabilitiesPageProps): react_jsx_runtime.JSX.Element;
|
|
776
754
|
|
|
777
755
|
interface ToolsPageProps {
|
|
778
756
|
config: GagentsHookConfig;
|
|
@@ -792,11 +770,15 @@ declare function CredentialsPage({ config, gagentsApiUrl, title, subtitle, }: Cr
|
|
|
792
770
|
interface IntegrationsManagementPageProps {
|
|
793
771
|
config: GagentsHookConfig;
|
|
794
772
|
gagentsApiUrl: string;
|
|
795
|
-
/**
|
|
796
|
-
|
|
773
|
+
/** Resolve wizard metadata for a given integration card. */
|
|
774
|
+
resolveWizardMeta?: (card: IntegrationCardData) => WizardIntegrationMeta;
|
|
775
|
+
/** Load config options after OAuth completes (e.g. list of calendars). */
|
|
776
|
+
loadConfigOptions?: (credentialId: number) => Promise<ConfigOption[]>;
|
|
777
|
+
/** Called after wizard completes successfully. */
|
|
778
|
+
onWizardComplete?: () => void;
|
|
797
779
|
title?: string;
|
|
798
780
|
subtitle?: string;
|
|
799
781
|
}
|
|
800
|
-
declare function IntegrationsManagementPage({ config, gagentsApiUrl,
|
|
782
|
+
declare function IntegrationsManagementPage({ config, gagentsApiUrl, resolveWizardMeta, loadConfigOptions, onWizardComplete, title, subtitle, }: IntegrationsManagementPageProps): react_jsx_runtime.JSX.Element;
|
|
801
783
|
|
|
802
784
|
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 };
|