@23blocks/block-jarvis 3.3.0 → 5.0.0
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.esm.js +1223 -1104
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/lib/jarvis.block.d.ts +13 -38
- package/dist/src/lib/jarvis.block.d.ts.map +1 -1
- package/dist/src/lib/mappers/agent-tool-assignment.mapper.d.ts +4 -0
- package/dist/src/lib/mappers/agent-tool-assignment.mapper.d.ts.map +1 -0
- package/dist/src/lib/mappers/agent-tool.mapper.d.ts +4 -0
- package/dist/src/lib/mappers/agent-tool.mapper.d.ts.map +1 -0
- package/dist/src/lib/mappers/agent.mapper.d.ts.map +1 -1
- package/dist/src/lib/mappers/ai-model.mapper.d.ts.map +1 -1
- package/dist/src/lib/mappers/cluster.mapper.d.ts.map +1 -1
- package/dist/src/lib/mappers/comment.mapper.d.ts.map +1 -1
- package/dist/src/lib/mappers/condition.mapper.d.ts +4 -0
- package/dist/src/lib/mappers/condition.mapper.d.ts.map +1 -0
- package/dist/src/lib/mappers/conversation.mapper.d.ts.map +1 -1
- package/dist/src/lib/mappers/entity.mapper.d.ts.map +1 -1
- package/dist/src/lib/mappers/execution.mapper.d.ts.map +1 -1
- package/dist/src/lib/mappers/index.d.ts +5 -0
- package/dist/src/lib/mappers/index.d.ts.map +1 -1
- package/dist/src/lib/mappers/mail-template.mapper.d.ts.map +1 -1
- package/dist/src/lib/mappers/prompt.mapper.d.ts.map +1 -1
- package/dist/src/lib/mappers/step-transition.mapper.d.ts +4 -0
- package/dist/src/lib/mappers/step-transition.mapper.d.ts.map +1 -0
- package/dist/src/lib/mappers/tool.mapper.d.ts +4 -0
- package/dist/src/lib/mappers/tool.mapper.d.ts.map +1 -0
- package/dist/src/lib/mappers/user.mapper.d.ts.map +1 -1
- package/dist/src/lib/mappers/utils.d.ts +2 -2
- package/dist/src/lib/mappers/utils.d.ts.map +1 -1
- package/dist/src/lib/mappers/workflow-instance.mapper.d.ts.map +1 -1
- package/dist/src/lib/mappers/workflow-participant.mapper.d.ts.map +1 -1
- package/dist/src/lib/mappers/workflow-step.mapper.d.ts.map +1 -1
- package/dist/src/lib/mappers/workflow.mapper.d.ts.map +1 -1
- package/dist/src/lib/services/agent-runtime.service.d.ts +5 -55
- package/dist/src/lib/services/agent-runtime.service.d.ts.map +1 -1
- package/dist/src/lib/services/agent-tool-assignments.service.d.ts +13 -0
- package/dist/src/lib/services/agent-tool-assignments.service.d.ts.map +1 -0
- package/dist/src/lib/services/agent-tools.service.d.ts +13 -0
- package/dist/src/lib/services/agent-tools.service.d.ts.map +1 -0
- package/dist/src/lib/services/agents.service.d.ts +5 -31
- package/dist/src/lib/services/agents.service.d.ts.map +1 -1
- package/dist/src/lib/services/ai-models.service.d.ts +1 -20
- package/dist/src/lib/services/ai-models.service.d.ts.map +1 -1
- package/dist/src/lib/services/clusters.service.d.ts +5 -53
- package/dist/src/lib/services/clusters.service.d.ts.map +1 -1
- package/dist/src/lib/services/conditions.service.d.ts +13 -0
- package/dist/src/lib/services/conditions.service.d.ts.map +1 -0
- package/dist/src/lib/services/conversations.service.d.ts +3 -27
- package/dist/src/lib/services/conversations.service.d.ts.map +1 -1
- package/dist/src/lib/services/entities.service.d.ts +9 -50
- package/dist/src/lib/services/entities.service.d.ts.map +1 -1
- package/dist/src/lib/services/execution-comments.service.d.ts +1 -30
- package/dist/src/lib/services/execution-comments.service.d.ts.map +1 -1
- package/dist/src/lib/services/executions.service.d.ts +1 -1
- package/dist/src/lib/services/executions.service.d.ts.map +1 -1
- package/dist/src/lib/services/index.d.ts +5 -0
- package/dist/src/lib/services/index.d.ts.map +1 -1
- package/dist/src/lib/services/mail-templates.service.d.ts +3 -35
- package/dist/src/lib/services/mail-templates.service.d.ts.map +1 -1
- package/dist/src/lib/services/marvin-chat.service.d.ts +1 -1
- package/dist/src/lib/services/marvin-chat.service.d.ts.map +1 -1
- package/dist/src/lib/services/prompt-comments.service.d.ts +1 -30
- package/dist/src/lib/services/prompt-comments.service.d.ts.map +1 -1
- package/dist/src/lib/services/prompts.service.d.ts +2 -34
- package/dist/src/lib/services/prompts.service.d.ts.map +1 -1
- package/dist/src/lib/services/step-transitions.service.d.ts +13 -0
- package/dist/src/lib/services/step-transitions.service.d.ts.map +1 -0
- package/dist/src/lib/services/tools.service.d.ts +13 -0
- package/dist/src/lib/services/tools.service.d.ts.map +1 -0
- package/dist/src/lib/services/users.service.d.ts +4 -61
- package/dist/src/lib/services/users.service.d.ts.map +1 -1
- package/dist/src/lib/services/workflow-instances.service.d.ts +5 -31
- package/dist/src/lib/services/workflow-instances.service.d.ts.map +1 -1
- package/dist/src/lib/services/workflow-participants.service.d.ts +1 -20
- package/dist/src/lib/services/workflow-participants.service.d.ts.map +1 -1
- package/dist/src/lib/services/workflow-steps.service.d.ts +1 -22
- package/dist/src/lib/services/workflow-steps.service.d.ts.map +1 -1
- package/dist/src/lib/services/workflows.service.d.ts +6 -36
- package/dist/src/lib/services/workflows.service.d.ts.map +1 -1
- package/dist/src/lib/types/agent-runtime.d.ts +35 -47
- package/dist/src/lib/types/agent-runtime.d.ts.map +1 -1
- package/dist/src/lib/types/agent-tool-assignment.d.ts +30 -0
- package/dist/src/lib/types/agent-tool-assignment.d.ts.map +1 -0
- package/dist/src/lib/types/agent-tool.d.ts +42 -0
- package/dist/src/lib/types/agent-tool.d.ts.map +1 -0
- package/dist/src/lib/types/agent.d.ts +83 -51
- package/dist/src/lib/types/agent.d.ts.map +1 -1
- package/dist/src/lib/types/ai-model.d.ts +17 -23
- package/dist/src/lib/types/ai-model.d.ts.map +1 -1
- package/dist/src/lib/types/cluster.d.ts +35 -47
- package/dist/src/lib/types/cluster.d.ts.map +1 -1
- package/dist/src/lib/types/comment.d.ts +42 -39
- package/dist/src/lib/types/comment.d.ts.map +1 -1
- package/dist/src/lib/types/condition.d.ts +39 -0
- package/dist/src/lib/types/condition.d.ts.map +1 -0
- package/dist/src/lib/types/conversation.d.ts +9 -10
- package/dist/src/lib/types/conversation.d.ts.map +1 -1
- package/dist/src/lib/types/entity.d.ts +60 -56
- package/dist/src/lib/types/entity.d.ts.map +1 -1
- package/dist/src/lib/types/execution.d.ts +7 -6
- package/dist/src/lib/types/execution.d.ts.map +1 -1
- package/dist/src/lib/types/index.d.ts +5 -0
- package/dist/src/lib/types/index.d.ts.map +1 -1
- package/dist/src/lib/types/mail-template.d.ts +36 -45
- package/dist/src/lib/types/mail-template.d.ts.map +1 -1
- package/dist/src/lib/types/prompt.d.ts +24 -125
- package/dist/src/lib/types/prompt.d.ts.map +1 -1
- package/dist/src/lib/types/step-transition.d.ts +36 -0
- package/dist/src/lib/types/step-transition.d.ts.map +1 -0
- package/dist/src/lib/types/tool.d.ts +41 -0
- package/dist/src/lib/types/tool.d.ts.map +1 -0
- package/dist/src/lib/types/user.d.ts +26 -57
- package/dist/src/lib/types/user.d.ts.map +1 -1
- package/dist/src/lib/types/workflow-instance.d.ts +24 -14
- package/dist/src/lib/types/workflow-instance.d.ts.map +1 -1
- package/dist/src/lib/types/workflow-participant.d.ts +9 -16
- package/dist/src/lib/types/workflow-participant.d.ts.map +1 -1
- package/dist/src/lib/types/workflow-step.d.ts +36 -22
- package/dist/src/lib/types/workflow-step.d.ts.map +1 -1
- package/dist/src/lib/types/workflow.d.ts +25 -42
- package/dist/src/lib/types/workflow.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/src/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { createJarvisBlock, jarvisBlockMetadata } from './lib/jarvis.block.js';
|
|
2
2
|
export type { JarvisBlock, JarvisBlockConfig } from './lib/jarvis.block.js';
|
|
3
|
-
export type { Agent, CreateAgentRequest, UpdateAgentRequest, ListAgentsParams,
|
|
3
|
+
export type { Agent, CreateAgentRequest, UpdateAgentRequest, ListAgentsParams, Prompt, CreatePromptRequest, UpdatePromptRequest, ListPromptsParams, ExecutePromptRequest, ExecutePromptResponse, RenderPromptRequest, RenderPromptResponse, RenderPromptMeta, PlaceholderValue, Workflow, CreateWorkflowRequest, UpdateWorkflowRequest, ListWorkflowsParams, Execution, ListExecutionsParams, Conversation, ConversationMessage, CreateConversationRequest, SendMessageRequest, ListConversationsParams, AIModel, CreateAIModelRequest, UpdateAIModelRequest, ListAIModelsParams, Entity, RegisterEntityRequest, UpdateEntityRequest, ListEntitiesParams, Cluster, CreateClusterRequest, UpdateClusterRequest, ListClustersParams, JarvisUser, RegisterJarvisUserRequest, UpdateJarvisUserRequest, ListJarvisUsersParams, WorkflowParticipant, AddWorkflowParticipantRequest, UpdateWorkflowParticipantRequest, ListWorkflowParticipantsParams, WorkflowStep, AddWorkflowStepRequest, UpdateWorkflowStepRequest, AddStepPromptRequest, AddStepAgentRequest, WorkflowInstance, WorkflowStepLog, WorkflowInstanceDetails, WorkflowStepStatus, StartWorkflowRequest, StepWorkflowRequest, LogWorkflowStepRequest, AgentThread, AgentMessage, AgentMessageContent, AgentContext, CreateAgentThreadRequest, CreateAgentContextRequest, SendAgentMessageRequest, AgentRunExecution, ListAgentRunExecutionsParams, MailTemplate, CreateMailTemplateRequest, UpdateMailTemplateRequest, ListMailTemplatesParams, CreateMandrillTemplateRequest, UpdateMandrillTemplateRequest, MarvinContext, MarvinMessage, MarvinChatRequest, MarvinChatResponse, CreateMarvinContextRequest, SendMarvinMessageRequest, SendMarvinMessageResponse, PromptComment, CreatePromptCommentRequest, UpdatePromptCommentRequest, ListPromptCommentsParams, ReplyToCommentRequest, ExecutionComment, CreateExecutionCommentRequest, UpdateExecutionCommentRequest, ListExecutionCommentsParams, } from './lib/types/index.js';
|
|
4
4
|
export type { AgentsService, PromptsService, WorkflowsService, ExecutionsService, ConversationsService, AIModelsService, EntitiesService, ClustersService, JarvisUsersService, WorkflowParticipantsService, WorkflowStepsService, WorkflowInstancesService, AgentRuntimeService, MailTemplatesService, MarvinChatService, PromptCommentsService, ExecutionCommentsService, } from './lib/services/index.js';
|
|
5
5
|
export { createAgentsService, createPromptsService, createWorkflowsService, createExecutionsService, createConversationsService, createAIModelsService, createEntitiesService, createClustersService, createJarvisUsersService, createWorkflowParticipantsService, createWorkflowStepsService, createWorkflowInstancesService, createAgentRuntimeService, createMailTemplatesService, createMarvinChatService, createPromptCommentsService, createExecutionCommentsService, } from './lib/services/index.js';
|
|
6
6
|
export { agentMapper, promptMapper, workflowMapper, executionMapper, conversationMapper, aiModelMapper, entityMapper, clusterMapper, jarvisUserMapper, workflowParticipantMapper, workflowStepMapper, workflowInstanceMapper, mailTemplateMapper, promptCommentMapper, executionCommentMapper, } from './lib/mappers/index.js';
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC/E,YAAY,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG5E,YAAY,EAEV,KAAK,EACL,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC/E,YAAY,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG5E,YAAY,EAEV,KAAK,EACL,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAEhB,MAAM,EACN,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,gBAAgB,EAChB,gBAAgB,EAEhB,QAAQ,EACR,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EAEnB,SAAS,EACT,oBAAoB,EAEpB,YAAY,EACZ,mBAAmB,EACnB,yBAAyB,EACzB,kBAAkB,EAClB,uBAAuB,EAEvB,OAAO,EACP,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAElB,MAAM,EACN,qBAAqB,EACrB,mBAAmB,EACnB,kBAAkB,EAElB,OAAO,EACP,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAElB,UAAU,EACV,yBAAyB,EACzB,uBAAuB,EACvB,qBAAqB,EAErB,mBAAmB,EACnB,6BAA6B,EAC7B,gCAAgC,EAChC,8BAA8B,EAE9B,YAAY,EACZ,sBAAsB,EACtB,yBAAyB,EACzB,oBAAoB,EACpB,mBAAmB,EAEnB,gBAAgB,EAChB,eAAe,EACf,uBAAuB,EACvB,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,EACnB,sBAAsB,EAEtB,WAAW,EACX,YAAY,EACZ,mBAAmB,EACnB,YAAY,EACZ,wBAAwB,EACxB,yBAAyB,EACzB,uBAAuB,EACvB,iBAAiB,EACjB,4BAA4B,EAE5B,YAAY,EACZ,yBAAyB,EACzB,yBAAyB,EACzB,uBAAuB,EACvB,6BAA6B,EAC7B,6BAA6B,EAE7B,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,0BAA0B,EAC1B,wBAAwB,EACxB,yBAAyB,EAEzB,aAAa,EACb,0BAA0B,EAC1B,0BAA0B,EAC1B,wBAAwB,EACxB,qBAAqB,EACrB,gBAAgB,EAChB,6BAA6B,EAC7B,6BAA6B,EAC7B,2BAA2B,GAC5B,MAAM,sBAAsB,CAAC;AAG9B,YAAY,EACV,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACpB,eAAe,EACf,eAAe,EACf,eAAe,EACf,kBAAkB,EAClB,2BAA2B,EAC3B,oBAAoB,EACpB,wBAAwB,EACxB,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,qBAAqB,EACrB,wBAAwB,GACzB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,uBAAuB,EACvB,0BAA0B,EAC1B,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,EACxB,iCAAiC,EACjC,0BAA0B,EAC1B,8BAA8B,EAC9B,yBAAyB,EACzB,0BAA0B,EAC1B,uBAAuB,EACvB,2BAA2B,EAC3B,8BAA8B,GAC/B,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EACL,WAAW,EACX,YAAY,EACZ,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,aAAa,EACb,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,yBAAyB,EACzB,kBAAkB,EAClB,sBAAsB,EACtB,kBAAkB,EAClB,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,wBAAwB,CAAC"}
|
|
@@ -1,64 +1,39 @@
|
|
|
1
1
|
import type { Transport, BlockConfig, BlockMetadata, HealthCheckResponse } from '@23blocks/contracts';
|
|
2
|
-
import { type AgentsService, type PromptsService, type WorkflowsService, type ExecutionsService, type ConversationsService, type AIModelsService, type EntitiesService, type ClustersService, type JarvisUsersService, type WorkflowParticipantsService, type WorkflowStepsService, type WorkflowInstancesService, type AgentRuntimeService, type MailTemplatesService, type MarvinChatService, type PromptCommentsService, type ExecutionCommentsService } from './services/index.js';
|
|
3
|
-
/**
|
|
4
|
-
* Configuration for the Jarvis block.
|
|
5
|
-
*/
|
|
2
|
+
import { type AgentsService, type PromptsService, type WorkflowsService, type ExecutionsService, type ConversationsService, type AIModelsService, type EntitiesService, type ClustersService, type JarvisUsersService, type WorkflowParticipantsService, type WorkflowStepsService, type WorkflowInstancesService, type AgentRuntimeService, type MailTemplatesService, type MarvinChatService, type PromptCommentsService, type ExecutionCommentsService, type ToolsService, type AgentToolsService, type AgentToolAssignmentsService, type ConditionsService, type StepTransitionsService } from './services/index.js';
|
|
6
3
|
export interface JarvisBlockConfig extends BlockConfig {
|
|
7
|
-
/**
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Base URL for SSE streaming endpoints.
|
|
6
|
+
* When provided, streaming requests are routed through this domain
|
|
7
|
+
* instead of the regular API domain to bypass CloudFront timeouts.
|
|
8
|
+
* Example: 'https://jarvis.sse.us.23blocks.com'
|
|
9
|
+
*/
|
|
10
|
+
sseUrl?: string;
|
|
11
11
|
}
|
|
12
|
-
/**
|
|
13
|
-
* AI agents, prompts, and workflow management block interface.
|
|
14
|
-
*/
|
|
15
12
|
export interface JarvisBlock {
|
|
16
|
-
/** AI agent management */
|
|
17
13
|
agents: AgentsService;
|
|
18
|
-
/** Prompt template management */
|
|
19
14
|
prompts: PromptsService;
|
|
20
|
-
/** Workflow definition management */
|
|
21
15
|
workflows: WorkflowsService;
|
|
22
|
-
/** Workflow execution tracking */
|
|
23
16
|
executions: ExecutionsService;
|
|
24
|
-
/** AI conversation management */
|
|
25
17
|
conversations: ConversationsService;
|
|
26
|
-
/** AI model configuration */
|
|
27
18
|
aiModels: AIModelsService;
|
|
28
|
-
/** Entity management for AI context */
|
|
29
19
|
entities: EntitiesService;
|
|
30
|
-
/** Entity cluster management */
|
|
31
20
|
clusters: ClustersService;
|
|
32
|
-
/** Jarvis user management */
|
|
33
21
|
users: JarvisUsersService;
|
|
34
|
-
/** Workflow participant management */
|
|
35
22
|
workflowParticipants: WorkflowParticipantsService;
|
|
36
|
-
/** Workflow step definition management */
|
|
37
23
|
workflowSteps: WorkflowStepsService;
|
|
38
|
-
/** Workflow instance management */
|
|
39
24
|
workflowInstances: WorkflowInstancesService;
|
|
40
|
-
/** Agent runtime execution */
|
|
41
25
|
agentRuntime: AgentRuntimeService;
|
|
42
|
-
/** Mail template management */
|
|
43
26
|
mailTemplates: MailTemplatesService;
|
|
44
|
-
/** Marvin chat interface */
|
|
45
27
|
marvinChat: MarvinChatService;
|
|
46
|
-
/** Prompt comment management */
|
|
47
28
|
promptComments: PromptCommentsService;
|
|
48
|
-
/** Execution comment management */
|
|
49
29
|
executionComments: ExecutionCommentsService;
|
|
50
|
-
|
|
30
|
+
tools: ToolsService;
|
|
31
|
+
agentTools: AgentToolsService;
|
|
32
|
+
agentToolAssignments: AgentToolAssignmentsService;
|
|
33
|
+
conditions: ConditionsService;
|
|
34
|
+
stepTransitions: StepTransitionsService;
|
|
51
35
|
health(): Promise<HealthCheckResponse>;
|
|
52
36
|
}
|
|
53
|
-
/**
|
|
54
|
-
* Create the Jarvis block.
|
|
55
|
-
*
|
|
56
|
-
* @example
|
|
57
|
-
* ```typescript
|
|
58
|
-
* const block = createJarvisBlock(transport, { appId: 'xxx' });
|
|
59
|
-
* const agents = await block.agents.list({ page: 1 });
|
|
60
|
-
* ```
|
|
61
|
-
*/
|
|
62
37
|
export declare function createJarvisBlock(transport: Transport, config: JarvisBlockConfig): JarvisBlock;
|
|
63
38
|
export declare const jarvisBlockMetadata: BlockMetadata;
|
|
64
39
|
//# sourceMappingURL=jarvis.block.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jarvis.block.d.ts","sourceRoot":"","sources":["../../../src/lib/jarvis.block.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AACtG,OAAO,
|
|
1
|
+
{"version":3,"file":"jarvis.block.d.ts","sourceRoot":"","sources":["../../../src/lib/jarvis.block.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AACtG,OAAO,EAuBL,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,2BAA2B,EAChC,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC5B,MAAM,qBAAqB,CAAC;AAE7B,MAAM,WAAW,iBAAkB,SAAQ,WAAW;IACpD;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,aAAa,CAAC;IACtB,OAAO,EAAE,cAAc,CAAC;IACxB,SAAS,EAAE,gBAAgB,CAAC;IAC5B,UAAU,EAAE,iBAAiB,CAAC;IAC9B,aAAa,EAAE,oBAAoB,CAAC;IACpC,QAAQ,EAAE,eAAe,CAAC;IAC1B,QAAQ,EAAE,eAAe,CAAC;IAC1B,QAAQ,EAAE,eAAe,CAAC;IAC1B,KAAK,EAAE,kBAAkB,CAAC;IAC1B,oBAAoB,EAAE,2BAA2B,CAAC;IAClD,aAAa,EAAE,oBAAoB,CAAC;IACpC,iBAAiB,EAAE,wBAAwB,CAAC;IAC5C,YAAY,EAAE,mBAAmB,CAAC;IAClC,aAAa,EAAE,oBAAoB,CAAC;IACpC,UAAU,EAAE,iBAAiB,CAAC;IAC9B,cAAc,EAAE,qBAAqB,CAAC;IACtC,iBAAiB,EAAE,wBAAwB,CAAC;IAC5C,KAAK,EAAE,YAAY,CAAC;IACpB,UAAU,EAAE,iBAAiB,CAAC;IAC9B,oBAAoB,EAAE,2BAA2B,CAAC;IAClD,UAAU,EAAE,iBAAiB,CAAC;IAC9B,eAAe,EAAE,sBAAsB,CAAC;IACxC,MAAM,IAAI,OAAO,CAAC,mBAAmB,CAAC,CAAC;CACxC;AAED,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,iBAAiB,GACxB,WAAW,CA0Bb;AAED,eAAO,MAAM,mBAAmB,EAAE,aAWjC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ResourceMapper } from '@23blocks/jsonapi-codec';
|
|
2
|
+
import type { AgentToolAssignment } from '../types/agent-tool-assignment.js';
|
|
3
|
+
export declare const agentToolAssignmentMapper: ResourceMapper<AgentToolAssignment>;
|
|
4
|
+
//# sourceMappingURL=agent-tool-assignment.mapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-tool-assignment.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/agent-tool-assignment.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAG7E,eAAO,MAAM,yBAAyB,EAAE,cAAc,CAAC,mBAAmB,CAazE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-tool.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/agent-tool.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAGxD,eAAO,MAAM,eAAe,EAAE,cAAc,CAAC,SAAS,CAoBrD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/agent.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG/C,eAAO,MAAM,WAAW,EAAE,cAAc,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"agent.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/agent.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG/C,eAAO,MAAM,WAAW,EAAE,cAAc,CAAC,KAAK,CA8C7C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-model.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/ai-model.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAGpD,eAAO,MAAM,aAAa,EAAE,cAAc,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"ai-model.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/ai-model.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAGpD,eAAO,MAAM,aAAa,EAAE,cAAc,CAAC,OAAO,CAoBjD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cluster.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/cluster.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"cluster.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/cluster.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAGnD,eAAO,MAAM,aAAa,EAAE,cAAc,CAAC,OAAO,CA2BjD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comment.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/comment.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG3E,eAAO,MAAM,mBAAmB,EAAE,cAAc,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"comment.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/comment.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG3E,eAAO,MAAM,mBAAmB,EAAE,cAAc,CAAC,aAAa,CAyB7D,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,cAAc,CAAC,gBAAgB,CA0BnE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"condition.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/condition.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAGvD,eAAO,MAAM,eAAe,EAAE,cAAc,CAAC,SAAS,CAmBrD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/conversation.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAuB,MAAM,0BAA0B,CAAC;AAGlF,eAAO,MAAM,kBAAkB,EAAE,cAAc,CAAC,YAAY,
|
|
1
|
+
{"version":3,"file":"conversation.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/conversation.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAuB,MAAM,0BAA0B,CAAC;AAGlF,eAAO,MAAM,kBAAkB,EAAE,cAAc,CAAC,YAAY,CAa3D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/entity.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAGjD,eAAO,MAAM,YAAY,EAAE,cAAc,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"entity.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/entity.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAGjD,eAAO,MAAM,YAAY,EAAE,cAAc,CAAC,MAAM,CAoB/C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/execution.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAGvD,eAAO,MAAM,eAAe,EAAE,cAAc,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"execution.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/execution.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAGvD,eAAO,MAAM,eAAe,EAAE,cAAc,CAAC,SAAS,CAkBrD,CAAC"}
|
|
@@ -12,5 +12,10 @@ export * from './workflow-step.mapper.js';
|
|
|
12
12
|
export * from './workflow-instance.mapper.js';
|
|
13
13
|
export * from './mail-template.mapper.js';
|
|
14
14
|
export * from './comment.mapper.js';
|
|
15
|
+
export * from './tool.mapper.js';
|
|
16
|
+
export * from './agent-tool.mapper.js';
|
|
17
|
+
export * from './agent-tool-assignment.mapper.js';
|
|
18
|
+
export * from './condition.mapper.js';
|
|
19
|
+
export * from './step-transition.mapper.js';
|
|
15
20
|
export * from './utils.js';
|
|
16
21
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kCAAkC,CAAC;AACjD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kCAAkC,CAAC;AACjD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mCAAmC,CAAC;AAClD,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mail-template.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/mail-template.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAG9D,eAAO,MAAM,kBAAkB,EAAE,cAAc,CAAC,YAAY,
|
|
1
|
+
{"version":3,"file":"mail-template.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/mail-template.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAG9D,eAAO,MAAM,kBAAkB,EAAE,cAAc,CAAC,YAAY,CAyB3D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/prompt.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"prompt.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/prompt.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAGjD,eAAO,MAAM,YAAY,EAAE,cAAc,CAAC,MAAM,CA8D/C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"step-transition.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/step-transition.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAGlE,eAAO,MAAM,oBAAoB,EAAE,cAAc,CAAC,cAAc,CAkB/D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/tool.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAG7C,eAAO,MAAM,UAAU,EAAE,cAAc,CAAC,IAAI,CAmB3C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/user.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAGnD,eAAO,MAAM,gBAAgB,EAAE,cAAc,CAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"user.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/user.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAGnD,eAAO,MAAM,gBAAgB,EAAE,cAAc,CAAC,UAAU,CAsBvD,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Parse a string value, returning undefined for empty/undefined
|
|
3
3
|
*/
|
|
4
|
-
export declare function parseString(value: unknown): string
|
|
4
|
+
export declare function parseString(value: unknown): string;
|
|
5
5
|
/**
|
|
6
6
|
* Parse a date value
|
|
7
7
|
*/
|
|
8
|
-
export declare function parseDate(value: unknown): Date
|
|
8
|
+
export declare function parseDate(value: unknown): Date;
|
|
9
9
|
/**
|
|
10
10
|
* Parse a boolean value
|
|
11
11
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAMlD;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAe9C;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAQpD;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,EAAE,GAAG,SAAS,CAQrE;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAMlD;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAMtE;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,CAMtG;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,CAMnG;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,WAAW,GAAG,QAAQ,CAMhF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-instance.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/workflow-instance.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAmB,MAAM,+BAA+B,CAAC;AAGvF,eAAO,MAAM,sBAAsB,EAAE,cAAc,CAAC,gBAAgB,
|
|
1
|
+
{"version":3,"file":"workflow-instance.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/workflow-instance.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAmB,MAAM,+BAA+B,CAAC;AAGvF,eAAO,MAAM,sBAAsB,EAAE,cAAc,CAAC,gBAAgB,CAiBnE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-participant.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/workflow-participant.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAG5E,eAAO,MAAM,yBAAyB,EAAE,cAAc,CAAC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"workflow-participant.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/workflow-participant.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAG5E,eAAO,MAAM,yBAAyB,EAAE,cAAc,CAAC,mBAAmB,CAezE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-step.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/workflow-step.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAG9D,eAAO,MAAM,kBAAkB,EAAE,cAAc,CAAC,YAAY,
|
|
1
|
+
{"version":3,"file":"workflow-step.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/workflow-step.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAG9D,eAAO,MAAM,kBAAkB,EAAE,cAAc,CAAC,YAAY,CA4B3D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/workflow.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"workflow.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/workflow.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAGrD,eAAO,MAAM,cAAc,EAAE,cAAc,CAAC,QAAQ,CAmBnD,CAAC"}
|
|
@@ -1,70 +1,20 @@
|
|
|
1
1
|
import type { Transport, PageResult } from '@23blocks/contracts';
|
|
2
|
-
import type { AgentThread,
|
|
2
|
+
import type { AgentThread, AgentMessage, AgentContext, CreateAgentThreadRequest, CreateAgentContextRequest, SendAgentMessageRequest, AgentRunExecution, ListAgentRunExecutionsParams } from '../types/agent-runtime.js';
|
|
3
3
|
export interface AgentRuntimeService {
|
|
4
|
-
/**
|
|
5
|
-
* Get an existing agent context by unique ID.
|
|
6
|
-
* @returns The AgentContext with thread and optional conversation data.
|
|
7
|
-
*/
|
|
8
4
|
getContext(agentUniqueId: string, contextUniqueId: string): Promise<AgentContext>;
|
|
9
|
-
/**
|
|
10
|
-
* Create a new agent context for conversations.
|
|
11
|
-
* @returns The newly created AgentContext with thread info.
|
|
12
|
-
*/
|
|
13
5
|
createContext(agentUniqueId: string, data?: CreateAgentContextRequest): Promise<AgentContext>;
|
|
14
|
-
/**
|
|
15
|
-
* Get the conversation history for an agent context.
|
|
16
|
-
* @returns Object containing an array of AgentMessage records.
|
|
17
|
-
*/
|
|
18
6
|
getConversation(agentUniqueId: string, contextUniqueId: string): Promise<{
|
|
19
7
|
messages: AgentMessage[];
|
|
20
8
|
}>;
|
|
21
|
-
/**
|
|
22
|
-
* Get an existing agent thread by ID.
|
|
23
|
-
* @returns The AgentThread record.
|
|
24
|
-
*/
|
|
25
9
|
getThread(agentUniqueId: string, threadId: string): Promise<AgentThread>;
|
|
26
|
-
/**
|
|
27
|
-
* Create a new agent thread.
|
|
28
|
-
* @returns The newly created AgentThread record.
|
|
29
|
-
*/
|
|
30
10
|
createThread(agentUniqueId: string, data?: CreateAgentThreadRequest): Promise<AgentThread>;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
* @returns SendAgentThreadMessageResponse with the sent message.
|
|
34
|
-
*/
|
|
35
|
-
sendMessage(agentUniqueId: string, threadId: string, data: SendAgentThreadMessageRequest): Promise<SendAgentThreadMessageResponse>;
|
|
36
|
-
/**
|
|
37
|
-
* Send a message to an agent thread and receive a streaming response.
|
|
38
|
-
* @returns ReadableStream of string chunks for real-time output.
|
|
39
|
-
*/
|
|
40
|
-
sendMessageStream(agentUniqueId: string, threadId: string, data: SendAgentThreadMessageRequest): Promise<ReadableStream<string>>;
|
|
41
|
-
/**
|
|
42
|
-
* Run an agent thread to generate a response.
|
|
43
|
-
* @returns RunAgentThreadResponse with run details and status.
|
|
44
|
-
*/
|
|
45
|
-
runThread(agentUniqueId: string, threadId: string, data?: RunAgentThreadRequest): Promise<RunAgentThreadResponse>;
|
|
46
|
-
/**
|
|
47
|
-
* Get the status and details of an agent run.
|
|
48
|
-
* @returns The AgentRun record with status and usage info.
|
|
49
|
-
*/
|
|
50
|
-
getRun(agentUniqueId: string, threadId: string, runId: string): Promise<AgentRun>;
|
|
51
|
-
/**
|
|
52
|
-
* Get all messages in an agent thread.
|
|
53
|
-
* @returns Array of AgentMessage records.
|
|
54
|
-
*/
|
|
11
|
+
sendMessage(agentUniqueId: string, threadId: string, data: SendAgentMessageRequest): Promise<unknown>;
|
|
12
|
+
sendMessageStream(agentUniqueId: string, threadId: string, data: SendAgentMessageRequest): Promise<ReadableStream<string>>;
|
|
55
13
|
getMessages(agentUniqueId: string, threadId: string): Promise<AgentMessage[]>;
|
|
56
|
-
/**
|
|
57
|
-
* List agent run executions with optional filtering and sorting.
|
|
58
|
-
* @returns Paginated list of AgentRunExecution records with metadata.
|
|
59
|
-
*/
|
|
60
14
|
listExecutions(agentUniqueId: string, params?: ListAgentRunExecutionsParams): Promise<PageResult<AgentRunExecution>>;
|
|
61
|
-
/**
|
|
62
|
-
* Get a single agent run execution by unique ID.
|
|
63
|
-
* @returns The AgentRunExecution record with input, output, and cost details.
|
|
64
|
-
*/
|
|
65
15
|
getExecution(agentUniqueId: string, executionUniqueId: string): Promise<AgentRunExecution>;
|
|
66
16
|
}
|
|
67
17
|
export declare function createAgentRuntimeService(transport: Transport, _config: {
|
|
68
|
-
|
|
69
|
-
}): AgentRuntimeService;
|
|
18
|
+
apiKey: string;
|
|
19
|
+
}, sseUrl?: string): AgentRuntimeService;
|
|
70
20
|
//# sourceMappingURL=agent-runtime.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-runtime.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/agent-runtime.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,KAAK,EACV,WAAW,EACX,
|
|
1
|
+
{"version":3,"file":"agent-runtime.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/agent-runtime.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,KAAK,EACV,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,wBAAwB,EACxB,yBAAyB,EACzB,uBAAuB,EACvB,iBAAiB,EACjB,4BAA4B,EAC7B,MAAM,2BAA2B,CAAC;AAgEnC,MAAM,WAAW,mBAAmB;IAClC,UAAU,CAAC,aAAa,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAClF,aAAa,CAAC,aAAa,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,yBAAyB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAC9F,eAAe,CAAC,aAAa,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,QAAQ,EAAE,YAAY,EAAE,CAAA;KAAE,CAAC,CAAC;IACvG,SAAS,CAAC,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IACzE,YAAY,CAAC,aAAa,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,wBAAwB,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAC3F,WAAW,CAAC,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACtG,iBAAiB,CAAC,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,GAAG,OAAO,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IAC3H,WAAW,CAAC,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC;IAC9E,cAAc,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,4BAA4B,GAAG,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC,CAAC;IACrH,YAAY,CAAC,aAAa,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;CAC5F;AAED,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,mBAAmB,CAuIjI"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Transport, PageResult } from '@23blocks/contracts';
|
|
2
|
+
import type { AgentToolAssignment, CreateAgentToolAssignmentRequest, UpdateAgentToolAssignmentRequest, ListAgentToolAssignmentsParams } from '../types/agent-tool-assignment.js';
|
|
3
|
+
export interface AgentToolAssignmentsService {
|
|
4
|
+
list(agentUniqueId: string, params?: ListAgentToolAssignmentsParams): Promise<PageResult<AgentToolAssignment>>;
|
|
5
|
+
get(agentUniqueId: string, uniqueId: string): Promise<AgentToolAssignment>;
|
|
6
|
+
create(agentUniqueId: string, data: CreateAgentToolAssignmentRequest): Promise<AgentToolAssignment>;
|
|
7
|
+
update(agentUniqueId: string, uniqueId: string, data: UpdateAgentToolAssignmentRequest): Promise<AgentToolAssignment>;
|
|
8
|
+
delete(agentUniqueId: string, uniqueId: string): Promise<void>;
|
|
9
|
+
}
|
|
10
|
+
export declare function createAgentToolAssignmentsService(transport: Transport, _config: {
|
|
11
|
+
apiKey: string;
|
|
12
|
+
}): AgentToolAssignmentsService;
|
|
13
|
+
//# sourceMappingURL=agent-tool-assignments.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-tool-assignments.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/agent-tool-assignments.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,mBAAmB,EACnB,gCAAgC,EAChC,gCAAgC,EAChC,8BAA8B,EAC/B,MAAM,mCAAmC,CAAC;AAG3C,MAAM,WAAW,2BAA2B;IAC1C,IAAI,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,8BAA8B,GAAG,OAAO,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC,CAAC;IAC/G,GAAG,CAAC,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAC3E,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE,IAAI,EAAE,gCAAgC,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACpG,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,gCAAgC,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACtH,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAChE;AAED,wBAAgB,iCAAiC,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,2BAA2B,CA2ChI"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Transport, PageResult } from '@23blocks/contracts';
|
|
2
|
+
import type { AgentTool, CreateAgentToolRequest, UpdateAgentToolRequest, ListAgentToolsParams } from '../types/agent-tool.js';
|
|
3
|
+
export interface AgentToolsService {
|
|
4
|
+
list(agentUniqueId: string, params?: ListAgentToolsParams): Promise<PageResult<AgentTool>>;
|
|
5
|
+
get(agentUniqueId: string, uniqueId: string): Promise<AgentTool>;
|
|
6
|
+
create(agentUniqueId: string, data: CreateAgentToolRequest): Promise<AgentTool>;
|
|
7
|
+
update(agentUniqueId: string, uniqueId: string, data: UpdateAgentToolRequest): Promise<AgentTool>;
|
|
8
|
+
delete(agentUniqueId: string, uniqueId: string): Promise<void>;
|
|
9
|
+
}
|
|
10
|
+
export declare function createAgentToolsService(transport: Transport, _config: {
|
|
11
|
+
apiKey: string;
|
|
12
|
+
}): AgentToolsService;
|
|
13
|
+
//# sourceMappingURL=agent-tools.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-tools.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/agent-tools.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,SAAS,EACT,sBAAsB,EACtB,sBAAsB,EACtB,oBAAoB,EACrB,MAAM,wBAAwB,CAAC;AAmBhC,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC;IAC3F,GAAG,CAAC,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IACjE,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE,IAAI,EAAE,sBAAsB,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IAChF,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,sBAAsB,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IAClG,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAChE;AAED,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,iBAAiB,CAqC5G"}
|
|
@@ -1,42 +1,16 @@
|
|
|
1
1
|
import type { Transport, PageResult } from '@23blocks/contracts';
|
|
2
|
-
import type { Agent, CreateAgentRequest, UpdateAgentRequest, ListAgentsParams,
|
|
2
|
+
import type { Agent, CreateAgentRequest, UpdateAgentRequest, ListAgentsParams, AddAgentPromptRequest, AddAgentEntityRequest } from '../types/agent.js';
|
|
3
3
|
export interface AgentsService {
|
|
4
|
-
/**
|
|
5
|
-
* List agents with optional filtering and sorting.
|
|
6
|
-
* @returns Paginated list of Agent records with metadata.
|
|
7
|
-
*/
|
|
8
4
|
list(params?: ListAgentsParams): Promise<PageResult<Agent>>;
|
|
9
|
-
/**
|
|
10
|
-
* Get a single agent by unique ID.
|
|
11
|
-
* @returns The matching Agent record.
|
|
12
|
-
*/
|
|
13
5
|
get(uniqueId: string): Promise<Agent>;
|
|
14
|
-
/**
|
|
15
|
-
* Create a new agent.
|
|
16
|
-
* @returns The newly created Agent record.
|
|
17
|
-
*/
|
|
18
6
|
create(data: CreateAgentRequest): Promise<Agent>;
|
|
19
|
-
/**
|
|
20
|
-
* Update an existing agent.
|
|
21
|
-
* @returns The updated Agent record.
|
|
22
|
-
*/
|
|
23
7
|
update(uniqueId: string, data: UpdateAgentRequest): Promise<Agent>;
|
|
24
|
-
/**
|
|
25
|
-
* Delete an agent.
|
|
26
|
-
*/
|
|
27
8
|
delete(uniqueId: string): Promise<void>;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*/
|
|
32
|
-
chat(uniqueId: string, data: ChatRequest): Promise<ChatResponse>;
|
|
33
|
-
/**
|
|
34
|
-
* Send a completion request to an agent.
|
|
35
|
-
* @returns CompleteResponse with output, token usage, cost, and duration.
|
|
36
|
-
*/
|
|
37
|
-
complete(uniqueId: string, data: CompleteRequest): Promise<CompleteResponse>;
|
|
9
|
+
addPrompt(uniqueId: string, data: AddAgentPromptRequest): Promise<Agent>;
|
|
10
|
+
addEntity(uniqueId: string, data: AddAgentEntityRequest): Promise<Agent>;
|
|
11
|
+
removeEntity(uniqueId: string, data: AddAgentEntityRequest): Promise<Agent>;
|
|
38
12
|
}
|
|
39
13
|
export declare function createAgentsService(transport: Transport, _config: {
|
|
40
|
-
|
|
14
|
+
apiKey: string;
|
|
41
15
|
}): AgentsService;
|
|
42
16
|
//# sourceMappingURL=agents.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/agents.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,KAAK,EACL,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,
|
|
1
|
+
{"version":3,"file":"agents.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/agents.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,KAAK,EACL,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,mBAAmB,CAAC;AA4C3B,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,MAAM,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;IAC5D,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;IACtC,MAAM,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;IACjD,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;IACnE,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACxC,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,qBAAqB,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;IACzE,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,qBAAqB,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;IACzE,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,qBAAqB,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;CAC7E;AAED,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,aAAa,CAgEpG"}
|
|
@@ -1,32 +1,13 @@
|
|
|
1
1
|
import type { Transport, PageResult } from '@23blocks/contracts';
|
|
2
2
|
import type { AIModel, CreateAIModelRequest, UpdateAIModelRequest, ListAIModelsParams } from '../types/ai-model.js';
|
|
3
3
|
export interface AIModelsService {
|
|
4
|
-
/**
|
|
5
|
-
* List AI models with optional filtering and sorting.
|
|
6
|
-
* @returns Paginated list of AIModel records with metadata.
|
|
7
|
-
*/
|
|
8
4
|
list(params?: ListAIModelsParams): Promise<PageResult<AIModel>>;
|
|
9
|
-
/**
|
|
10
|
-
* Get a single AI model by unique ID.
|
|
11
|
-
* @returns The matching AIModel record.
|
|
12
|
-
*/
|
|
13
5
|
get(uniqueId: string): Promise<AIModel>;
|
|
14
|
-
/**
|
|
15
|
-
* Create a new AI model configuration.
|
|
16
|
-
* @returns The newly created AIModel record.
|
|
17
|
-
*/
|
|
18
6
|
create(data: CreateAIModelRequest): Promise<AIModel>;
|
|
19
|
-
/**
|
|
20
|
-
* Update an existing AI model configuration.
|
|
21
|
-
* @returns The updated AIModel record.
|
|
22
|
-
*/
|
|
23
7
|
update(uniqueId: string, data: UpdateAIModelRequest): Promise<AIModel>;
|
|
24
|
-
/**
|
|
25
|
-
* Delete an AI model.
|
|
26
|
-
*/
|
|
27
8
|
delete(uniqueId: string): Promise<void>;
|
|
28
9
|
}
|
|
29
10
|
export declare function createAIModelsService(transport: Transport, _config: {
|
|
30
|
-
|
|
11
|
+
apiKey: string;
|
|
31
12
|
}): AIModelsService;
|
|
32
13
|
//# sourceMappingURL=ai-models.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-models.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/ai-models.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,OAAO,EACP,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EACnB,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"ai-models.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/ai-models.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,OAAO,EACP,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EACnB,MAAM,sBAAsB,CAAC;AAmB9B,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC;IAChE,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACxC,MAAM,CAAC,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACrD,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACvE,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACzC;AAED,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,eAAe,CAqCxG"}
|
|
@@ -1,64 +1,16 @@
|
|
|
1
1
|
import type { Transport, PageResult } from '@23blocks/contracts';
|
|
2
|
-
import type { Cluster, CreateClusterRequest, UpdateClusterRequest, ListClustersParams,
|
|
2
|
+
import type { Cluster, CreateClusterRequest, UpdateClusterRequest, ListClustersParams, CreateContextRequest, SendMessageRequest } from '../types/cluster.js';
|
|
3
3
|
export interface ClustersService {
|
|
4
|
-
/**
|
|
5
|
-
* List clusters for a user with optional filtering and sorting.
|
|
6
|
-
* @returns Paginated list of Cluster records with metadata.
|
|
7
|
-
*/
|
|
8
4
|
list(userUniqueId: string, params?: ListClustersParams): Promise<PageResult<Cluster>>;
|
|
9
|
-
/**
|
|
10
|
-
* Get a single cluster by unique ID.
|
|
11
|
-
* @returns The matching Cluster record.
|
|
12
|
-
*/
|
|
13
5
|
get(userUniqueId: string, uniqueId: string): Promise<Cluster>;
|
|
14
|
-
/**
|
|
15
|
-
* Create a new cluster for a user.
|
|
16
|
-
* @returns The newly created Cluster record.
|
|
17
|
-
*/
|
|
18
6
|
create(userUniqueId: string, data: CreateClusterRequest): Promise<Cluster>;
|
|
19
|
-
/**
|
|
20
|
-
* Update an existing cluster.
|
|
21
|
-
* @returns The updated Cluster record.
|
|
22
|
-
*/
|
|
23
7
|
update(userUniqueId: string, uniqueId: string, data: UpdateClusterRequest): Promise<Cluster>;
|
|
24
|
-
/**
|
|
25
|
-
* Delete a cluster.
|
|
26
|
-
*/
|
|
27
8
|
delete(userUniqueId: string, uniqueId: string): Promise<void>;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
addMember(userUniqueId: string, uniqueId: string, entityUniqueId: string): Promise<void>;
|
|
32
|
-
/**
|
|
33
|
-
* Remove an entity from a cluster.
|
|
34
|
-
*/
|
|
35
|
-
removeMember(userUniqueId: string, uniqueId: string, entityUniqueId: string): Promise<void>;
|
|
36
|
-
/**
|
|
37
|
-
* Associate a prompt with a cluster.
|
|
38
|
-
*/
|
|
39
|
-
addPrompt(userUniqueId: string, uniqueId: string, promptUniqueId: string): Promise<void>;
|
|
40
|
-
/**
|
|
41
|
-
* Get an existing cluster context by unique ID.
|
|
42
|
-
* @returns The ClusterContext with messages and metadata.
|
|
43
|
-
*/
|
|
44
|
-
getContext(userUniqueId: string, uniqueId: string, contextUniqueId: string): Promise<ClusterContext>;
|
|
45
|
-
/**
|
|
46
|
-
* Create a new context for cluster conversations.
|
|
47
|
-
* @returns The newly created ClusterContext.
|
|
48
|
-
*/
|
|
49
|
-
createContext(userUniqueId: string, uniqueId: string, data?: CreateClusterContextRequest): Promise<ClusterContext>;
|
|
50
|
-
/**
|
|
51
|
-
* Get the conversation history for a cluster context.
|
|
52
|
-
* @returns The ClusterContext with full message history.
|
|
53
|
-
*/
|
|
54
|
-
getConversation(userUniqueId: string, uniqueId: string, contextUniqueId: string): Promise<ClusterContext>;
|
|
55
|
-
/**
|
|
56
|
-
* Send a message within a cluster context.
|
|
57
|
-
* @returns SendClusterMessageResponse with the sent message, optional AI response, and cost.
|
|
58
|
-
*/
|
|
59
|
-
sendMessage(userUniqueId: string, uniqueId: string, contextUniqueId: string, data: SendClusterMessageRequest): Promise<SendClusterMessageResponse>;
|
|
9
|
+
addPrompt(userUniqueId: string, uniqueId: string, promptUniqueId: string): Promise<Cluster>;
|
|
10
|
+
createContext(userUniqueId: string, uniqueId: string, data?: CreateContextRequest): Promise<unknown>;
|
|
11
|
+
sendMessage(userUniqueId: string, uniqueId: string, contextUniqueId: string, data: SendMessageRequest): Promise<unknown>;
|
|
60
12
|
}
|
|
61
13
|
export declare function createClustersService(transport: Transport, _config: {
|
|
62
|
-
|
|
14
|
+
apiKey: string;
|
|
63
15
|
}): ClustersService;
|
|
64
16
|
//# sourceMappingURL=clusters.service.d.ts.map
|