@greatapps/greatagents-ui 0.3.20 → 0.3.22

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
@@ -49,18 +49,32 @@ interface Agent {
49
49
  openai_assistant_id: string | null;
50
50
  delay_typing: number | null;
51
51
  waiting_time: number | null;
52
+ identity: string | null;
53
+ mission: string | null;
54
+ tone_style_format: string | null;
55
+ rules: string | null;
56
+ conversation_flow: string | null;
57
+ context: string | null;
52
58
  active: boolean;
53
59
  deleted: number;
54
60
  datetime_add: string;
55
61
  datetime_alt: string | null;
56
62
  }
63
+ interface ConversationFlowStep {
64
+ order: number;
65
+ instruction: string;
66
+ example: string | null;
67
+ }
57
68
  interface Objective {
58
69
  id: number;
59
70
  id_account: number;
60
71
  id_agent: number;
61
72
  title: string;
62
73
  slug: string | null;
63
- prompt: string | null;
74
+ instruction: string | null;
75
+ description: string | null;
76
+ conversation_flow: string | null;
77
+ rules: string | null;
64
78
  order: number;
65
79
  active: boolean;
66
80
  deleted: number;
@@ -194,8 +208,7 @@ declare function createGagentsClient(config: GagentsClientConfig): {
194
208
  listAgents: (idAccount: number, params?: Record<string, string>) => Promise<ApiResponse<Agent[]>>;
195
209
  getAgent: (idAccount: number, id: number) => Promise<ApiResponse<Agent>>;
196
210
  createAgent: (idAccount: number, body: Pick<Agent, "title"> & Partial<Pick<Agent, "photo" | "delay_typing" | "waiting_time">>) => Promise<ApiResponse<Agent>>;
197
- updateAgent: (idAccount: number, id: number, body: Partial<Pick<Agent, "title" | "photo" | "delay_typing" | "waiting_time" | "active">> & {
198
- prompt?: string;
211
+ updateAgent: (idAccount: number, id: number, body: Partial<Pick<Agent, "title" | "photo" | "delay_typing" | "waiting_time" | "active" | "identity" | "mission" | "tone_style_format" | "rules" | "conversation_flow" | "context">> & {
199
212
  change_notes?: string;
200
213
  }) => Promise<ApiResponse<Agent>>;
201
214
  deleteAgent: (idAccount: number, id: number) => Promise<ApiResponse<void>>;
@@ -210,8 +223,8 @@ declare function createGagentsClient(config: GagentsClientConfig): {
210
223
  removeAgentTool: (idAccount: number, idAgent: number, id: number) => Promise<ApiResponse<void>>;
211
224
  listObjectives: (idAccount: number, idAgent: number, params?: Record<string, string>) => Promise<ApiResponse<Objective[]>>;
212
225
  getObjective: (idAccount: number, idAgent: number, id: number) => Promise<ApiResponse<Objective>>;
213
- createObjective: (idAccount: number, idAgent: number, body: Pick<Objective, "title"> & Partial<Pick<Objective, "slug" | "prompt" | "order" | "active">>) => Promise<ApiResponse<Objective>>;
214
- updateObjective: (idAccount: number, idAgent: number, id: number, body: Partial<Pick<Objective, "title" | "slug" | "prompt" | "order" | "active">>) => Promise<ApiResponse<Objective>>;
226
+ createObjective: (idAccount: number, idAgent: number, body: Pick<Objective, "title"> & Partial<Pick<Objective, "slug" | "instruction" | "description" | "conversation_flow" | "rules" | "order" | "active">>) => Promise<ApiResponse<Objective>>;
227
+ updateObjective: (idAccount: number, idAgent: number, id: number, body: Partial<Pick<Objective, "title" | "slug" | "instruction" | "description" | "conversation_flow" | "rules" | "order" | "active">>) => Promise<ApiResponse<Objective>>;
215
228
  deleteObjective: (idAccount: number, idAgent: number, id: number) => Promise<ApiResponse<void>>;
216
229
  listConversations: (idAccount: number, params?: Record<string, string>) => Promise<ApiResponse<Conversation[]>>;
217
230
  listAgentConversations: (idAccount: number, idAgent: number, params?: Record<string, string>) => Promise<ApiResponse<Conversation[]>>;
@@ -256,8 +269,7 @@ declare function useGagentsClient(config: GagentsHookConfig): {
256
269
  listAgents: (idAccount: number, params?: Record<string, string>) => Promise<ApiResponse<Agent[]>>;
257
270
  getAgent: (idAccount: number, id: number) => Promise<ApiResponse<Agent>>;
258
271
  createAgent: (idAccount: number, body: Pick<Agent, "title"> & Partial<Pick<Agent, "photo" | "delay_typing" | "waiting_time">>) => Promise<ApiResponse<Agent>>;
259
- updateAgent: (idAccount: number, id: number, body: Partial<Pick<Agent, "title" | "photo" | "delay_typing" | "waiting_time" | "active">> & {
260
- prompt?: string;
272
+ updateAgent: (idAccount: number, id: number, body: Partial<Pick<Agent, "title" | "photo" | "delay_typing" | "waiting_time" | "active" | "identity" | "mission" | "tone_style_format" | "rules" | "conversation_flow" | "context">> & {
261
273
  change_notes?: string;
262
274
  }) => Promise<ApiResponse<Agent>>;
263
275
  deleteAgent: (idAccount: number, id: number) => Promise<ApiResponse<void>>;
@@ -272,8 +284,8 @@ declare function useGagentsClient(config: GagentsHookConfig): {
272
284
  removeAgentTool: (idAccount: number, idAgent: number, id: number) => Promise<ApiResponse<void>>;
273
285
  listObjectives: (idAccount: number, idAgent: number, params?: Record<string, string>) => Promise<ApiResponse<Objective[]>>;
274
286
  getObjective: (idAccount: number, idAgent: number, id: number) => Promise<ApiResponse<Objective>>;
275
- createObjective: (idAccount: number, idAgent: number, body: Pick<Objective, "title"> & Partial<Pick<Objective, "slug" | "prompt" | "order" | "active">>) => Promise<ApiResponse<Objective>>;
276
- updateObjective: (idAccount: number, idAgent: number, id: number, body: Partial<Pick<Objective, "title" | "slug" | "prompt" | "order" | "active">>) => Promise<ApiResponse<Objective>>;
287
+ createObjective: (idAccount: number, idAgent: number, body: Pick<Objective, "title"> & Partial<Pick<Objective, "slug" | "instruction" | "description" | "conversation_flow" | "rules" | "order" | "active">>) => Promise<ApiResponse<Objective>>;
288
+ updateObjective: (idAccount: number, idAgent: number, id: number, body: Partial<Pick<Objective, "title" | "slug" | "instruction" | "description" | "conversation_flow" | "rules" | "order" | "active">>) => Promise<ApiResponse<Objective>>;
277
289
  deleteObjective: (idAccount: number, idAgent: number, id: number) => Promise<ApiResponse<void>>;
278
290
  listConversations: (idAccount: number, params?: Record<string, string>) => Promise<ApiResponse<Conversation[]>>;
279
291
  listAgentConversations: (idAccount: number, idAgent: number, params?: Record<string, string>) => Promise<ApiResponse<Conversation[]>>;
@@ -311,7 +323,6 @@ declare function useAgents(config: GagentsHookConfig, params?: Record<string, st
311
323
  declare function useAgent(config: GagentsHookConfig, id: number | null): _tanstack_react_query.UseQueryResult<any, Error>;
312
324
  declare function useCreateAgent(config: GagentsHookConfig): _tanstack_react_query.UseMutationResult<ApiResponse<Agent>, Error, {
313
325
  title: string;
314
- prompt?: string;
315
326
  photo?: string;
316
327
  delay_typing?: number;
317
328
  waiting_time?: number;
@@ -320,7 +331,13 @@ declare function useUpdateAgent(config: GagentsHookConfig): _tanstack_react_quer
320
331
  id: number;
321
332
  body: {
322
333
  title?: string;
323
- prompt?: string;
334
+ identity?: string | null;
335
+ mission?: string | null;
336
+ tone_style_format?: string | null;
337
+ rules?: string | null;
338
+ conversation_flow?: string | null;
339
+ context?: string | null;
340
+ change_notes?: string;
324
341
  photo?: string;
325
342
  delay_typing?: number;
326
343
  waiting_time?: number;
@@ -361,7 +378,10 @@ declare function useCreateObjective(config: GagentsHookConfig): _tanstack_react_
361
378
  body: {
362
379
  title: string;
363
380
  slug?: string;
364
- prompt?: string | null;
381
+ instruction?: string | null;
382
+ description?: string | null;
383
+ conversation_flow?: string | null;
384
+ rules?: string | null;
365
385
  order?: number;
366
386
  active?: boolean;
367
387
  };
@@ -372,7 +392,10 @@ declare function useUpdateObjective(config: GagentsHookConfig): _tanstack_react_
372
392
  body: Partial<{
373
393
  title: string;
374
394
  slug: string;
375
- prompt: string | null;
395
+ instruction: string | null;
396
+ description: string | null;
397
+ conversation_flow: string | null;
398
+ rules: string | null;
376
399
  order: number;
377
400
  active: boolean;
378
401
  }>;
@@ -528,11 +551,24 @@ interface AgentTabsProps {
528
551
  }
529
552
  declare function AgentTabs({ agent, config, renderChatLink, }: AgentTabsProps): react_jsx_runtime.JSX.Element;
530
553
 
531
- interface AgentPromptEditorProps {
554
+ interface AgentDefinitionEditorProps {
555
+ agent: Agent;
532
556
  config: GagentsHookConfig;
557
+ }
558
+ declare function AgentDefinitionEditor({ agent, config }: AgentDefinitionEditorProps): react_jsx_runtime.JSX.Element;
559
+
560
+ interface AgentRevisionTabProps {
533
561
  agent: Agent;
562
+ config: GagentsHookConfig;
563
+ }
564
+ declare function AgentRevisionTab({ agent, config }: AgentRevisionTabProps): react_jsx_runtime.JSX.Element;
565
+
566
+ interface ConversationFlowEditorProps {
567
+ steps: ConversationFlowStep[];
568
+ onChange: (steps: ConversationFlowStep[]) => void;
569
+ disabled?: boolean;
534
570
  }
535
- declare function AgentPromptEditor({ config, agent }: AgentPromptEditorProps): react_jsx_runtime.JSX.Element;
571
+ declare function ConversationFlowEditor({ steps, onChange, }: ConversationFlowEditorProps): react_jsx_runtime.JSX.Element;
536
572
 
537
573
  interface AgentObjectivesListProps {
538
574
  agent: Agent;
@@ -786,4 +822,4 @@ interface IntegrationsManagementPageProps {
786
822
  }
787
823
  declare function IntegrationsManagementPage({ config, gagentsApiUrl, resolveWizardMeta, loadConfigOptions, onWizardComplete, title, subtitle, }: IntegrationsManagementPageProps): react_jsx_runtime.JSX.Element;
788
824
 
789
- 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 };
825
+ export { AdvancedTab, type AdvancedTabProps, type Agent, AgentCapabilitiesPage, type AgentCapabilitiesPageProps, type AgentCapabilitiesPayload, type AgentCapability, AgentConversationsPanel, AgentConversationsTable, AgentDefinitionEditor, AgentDetailPage, type AgentDetailPageProps, AgentEditForm, AgentFormDialog, AgentObjectivesList, AgentRevisionTab, 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, ConversationFlowEditor, type ConversationFlowStep, 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 };