@23blocks/block-jarvis 3.2.0 → 4.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.
Files changed (114) hide show
  1. package/dist/index.esm.js +1197 -1093
  2. package/dist/src/lib/jarvis.block.d.ts +8 -36
  3. package/dist/src/lib/jarvis.block.d.ts.map +1 -1
  4. package/dist/src/lib/mappers/agent-tool-assignment.mapper.d.ts +4 -0
  5. package/dist/src/lib/mappers/agent-tool-assignment.mapper.d.ts.map +1 -0
  6. package/dist/src/lib/mappers/agent-tool.mapper.d.ts +4 -0
  7. package/dist/src/lib/mappers/agent-tool.mapper.d.ts.map +1 -0
  8. package/dist/src/lib/mappers/agent.mapper.d.ts.map +1 -1
  9. package/dist/src/lib/mappers/ai-model.mapper.d.ts.map +1 -1
  10. package/dist/src/lib/mappers/cluster.mapper.d.ts.map +1 -1
  11. package/dist/src/lib/mappers/comment.mapper.d.ts.map +1 -1
  12. package/dist/src/lib/mappers/condition.mapper.d.ts +4 -0
  13. package/dist/src/lib/mappers/condition.mapper.d.ts.map +1 -0
  14. package/dist/src/lib/mappers/conversation.mapper.d.ts.map +1 -1
  15. package/dist/src/lib/mappers/entity.mapper.d.ts.map +1 -1
  16. package/dist/src/lib/mappers/execution.mapper.d.ts.map +1 -1
  17. package/dist/src/lib/mappers/index.d.ts +5 -0
  18. package/dist/src/lib/mappers/index.d.ts.map +1 -1
  19. package/dist/src/lib/mappers/mail-template.mapper.d.ts.map +1 -1
  20. package/dist/src/lib/mappers/prompt.mapper.d.ts.map +1 -1
  21. package/dist/src/lib/mappers/step-transition.mapper.d.ts +4 -0
  22. package/dist/src/lib/mappers/step-transition.mapper.d.ts.map +1 -0
  23. package/dist/src/lib/mappers/tool.mapper.d.ts +4 -0
  24. package/dist/src/lib/mappers/tool.mapper.d.ts.map +1 -0
  25. package/dist/src/lib/mappers/user.mapper.d.ts.map +1 -1
  26. package/dist/src/lib/mappers/workflow-instance.mapper.d.ts.map +1 -1
  27. package/dist/src/lib/mappers/workflow-participant.mapper.d.ts.map +1 -1
  28. package/dist/src/lib/mappers/workflow-step.mapper.d.ts.map +1 -1
  29. package/dist/src/lib/mappers/workflow.mapper.d.ts.map +1 -1
  30. package/dist/src/lib/services/agent-runtime.service.d.ts +3 -53
  31. package/dist/src/lib/services/agent-runtime.service.d.ts.map +1 -1
  32. package/dist/src/lib/services/agent-tool-assignments.service.d.ts +13 -0
  33. package/dist/src/lib/services/agent-tool-assignments.service.d.ts.map +1 -0
  34. package/dist/src/lib/services/agent-tools.service.d.ts +13 -0
  35. package/dist/src/lib/services/agent-tools.service.d.ts.map +1 -0
  36. package/dist/src/lib/services/agents.service.d.ts +4 -30
  37. package/dist/src/lib/services/agents.service.d.ts.map +1 -1
  38. package/dist/src/lib/services/ai-models.service.d.ts +0 -19
  39. package/dist/src/lib/services/ai-models.service.d.ts.map +1 -1
  40. package/dist/src/lib/services/clusters.service.d.ts +4 -52
  41. package/dist/src/lib/services/clusters.service.d.ts.map +1 -1
  42. package/dist/src/lib/services/conditions.service.d.ts +13 -0
  43. package/dist/src/lib/services/conditions.service.d.ts.map +1 -0
  44. package/dist/src/lib/services/conversations.service.d.ts +2 -26
  45. package/dist/src/lib/services/conversations.service.d.ts.map +1 -1
  46. package/dist/src/lib/services/entities.service.d.ts +7 -48
  47. package/dist/src/lib/services/entities.service.d.ts.map +1 -1
  48. package/dist/src/lib/services/execution-comments.service.d.ts +0 -29
  49. package/dist/src/lib/services/execution-comments.service.d.ts.map +1 -1
  50. package/dist/src/lib/services/index.d.ts +5 -0
  51. package/dist/src/lib/services/index.d.ts.map +1 -1
  52. package/dist/src/lib/services/mail-templates.service.d.ts +2 -34
  53. package/dist/src/lib/services/mail-templates.service.d.ts.map +1 -1
  54. package/dist/src/lib/services/prompt-comments.service.d.ts +0 -29
  55. package/dist/src/lib/services/prompt-comments.service.d.ts.map +1 -1
  56. package/dist/src/lib/services/prompts.service.d.ts +1 -33
  57. package/dist/src/lib/services/prompts.service.d.ts.map +1 -1
  58. package/dist/src/lib/services/step-transitions.service.d.ts +13 -0
  59. package/dist/src/lib/services/step-transitions.service.d.ts.map +1 -0
  60. package/dist/src/lib/services/tools.service.d.ts +13 -0
  61. package/dist/src/lib/services/tools.service.d.ts.map +1 -0
  62. package/dist/src/lib/services/users.service.d.ts +3 -60
  63. package/dist/src/lib/services/users.service.d.ts.map +1 -1
  64. package/dist/src/lib/services/workflow-instances.service.d.ts +4 -30
  65. package/dist/src/lib/services/workflow-instances.service.d.ts.map +1 -1
  66. package/dist/src/lib/services/workflow-participants.service.d.ts +0 -19
  67. package/dist/src/lib/services/workflow-participants.service.d.ts.map +1 -1
  68. package/dist/src/lib/services/workflow-steps.service.d.ts +0 -21
  69. package/dist/src/lib/services/workflow-steps.service.d.ts.map +1 -1
  70. package/dist/src/lib/services/workflows.service.d.ts +5 -35
  71. package/dist/src/lib/services/workflows.service.d.ts.map +1 -1
  72. package/dist/src/lib/types/agent-runtime.d.ts +35 -47
  73. package/dist/src/lib/types/agent-runtime.d.ts.map +1 -1
  74. package/dist/src/lib/types/agent-tool-assignment.d.ts +30 -0
  75. package/dist/src/lib/types/agent-tool-assignment.d.ts.map +1 -0
  76. package/dist/src/lib/types/agent-tool.d.ts +42 -0
  77. package/dist/src/lib/types/agent-tool.d.ts.map +1 -0
  78. package/dist/src/lib/types/agent.d.ts +83 -51
  79. package/dist/src/lib/types/agent.d.ts.map +1 -1
  80. package/dist/src/lib/types/ai-model.d.ts +17 -23
  81. package/dist/src/lib/types/ai-model.d.ts.map +1 -1
  82. package/dist/src/lib/types/cluster.d.ts +35 -47
  83. package/dist/src/lib/types/cluster.d.ts.map +1 -1
  84. package/dist/src/lib/types/comment.d.ts +42 -39
  85. package/dist/src/lib/types/comment.d.ts.map +1 -1
  86. package/dist/src/lib/types/condition.d.ts +39 -0
  87. package/dist/src/lib/types/condition.d.ts.map +1 -0
  88. package/dist/src/lib/types/conversation.d.ts +9 -10
  89. package/dist/src/lib/types/conversation.d.ts.map +1 -1
  90. package/dist/src/lib/types/entity.d.ts +60 -56
  91. package/dist/src/lib/types/entity.d.ts.map +1 -1
  92. package/dist/src/lib/types/execution.d.ts +7 -6
  93. package/dist/src/lib/types/execution.d.ts.map +1 -1
  94. package/dist/src/lib/types/index.d.ts +5 -0
  95. package/dist/src/lib/types/index.d.ts.map +1 -1
  96. package/dist/src/lib/types/mail-template.d.ts +36 -45
  97. package/dist/src/lib/types/mail-template.d.ts.map +1 -1
  98. package/dist/src/lib/types/prompt.d.ts +24 -125
  99. package/dist/src/lib/types/prompt.d.ts.map +1 -1
  100. package/dist/src/lib/types/step-transition.d.ts +36 -0
  101. package/dist/src/lib/types/step-transition.d.ts.map +1 -0
  102. package/dist/src/lib/types/tool.d.ts +41 -0
  103. package/dist/src/lib/types/tool.d.ts.map +1 -0
  104. package/dist/src/lib/types/user.d.ts +26 -57
  105. package/dist/src/lib/types/user.d.ts.map +1 -1
  106. package/dist/src/lib/types/workflow-instance.d.ts +24 -14
  107. package/dist/src/lib/types/workflow-instance.d.ts.map +1 -1
  108. package/dist/src/lib/types/workflow-participant.d.ts +9 -16
  109. package/dist/src/lib/types/workflow-participant.d.ts.map +1 -1
  110. package/dist/src/lib/types/workflow-step.d.ts +36 -22
  111. package/dist/src/lib/types/workflow-step.d.ts.map +1 -1
  112. package/dist/src/lib/types/workflow.d.ts +25 -42
  113. package/dist/src/lib/types/workflow.d.ts.map +1 -1
  114. package/package.json +1 -1
@@ -1,62 +1,34 @@
1
- import type { Transport, BlockConfig, BlockMetadata } 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
- */
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, type ToolsService, type AgentToolsService, type AgentToolAssignmentsService, type ConditionsService, type StepTransitionsService } from './services/index.js';
6
3
  export interface JarvisBlockConfig extends BlockConfig {
7
- /** Application ID */
8
4
  appId: string;
9
- /** Tenant ID (optional, for multi-tenant setups) */
10
5
  tenantId?: string;
11
6
  }
12
- /**
13
- * AI agents, prompts, and workflow management block interface.
14
- */
15
7
  export interface JarvisBlock {
16
- /** AI agent management */
17
8
  agents: AgentsService;
18
- /** Prompt template management */
19
9
  prompts: PromptsService;
20
- /** Workflow definition management */
21
10
  workflows: WorkflowsService;
22
- /** Workflow execution tracking */
23
11
  executions: ExecutionsService;
24
- /** AI conversation management */
25
12
  conversations: ConversationsService;
26
- /** AI model configuration */
27
13
  aiModels: AIModelsService;
28
- /** Entity management for AI context */
29
14
  entities: EntitiesService;
30
- /** Entity cluster management */
31
15
  clusters: ClustersService;
32
- /** Jarvis user management */
33
16
  users: JarvisUsersService;
34
- /** Workflow participant management */
35
17
  workflowParticipants: WorkflowParticipantsService;
36
- /** Workflow step definition management */
37
18
  workflowSteps: WorkflowStepsService;
38
- /** Workflow instance management */
39
19
  workflowInstances: WorkflowInstancesService;
40
- /** Agent runtime execution */
41
20
  agentRuntime: AgentRuntimeService;
42
- /** Mail template management */
43
21
  mailTemplates: MailTemplatesService;
44
- /** Marvin chat interface */
45
22
  marvinChat: MarvinChatService;
46
- /** Prompt comment management */
47
23
  promptComments: PromptCommentsService;
48
- /** Execution comment management */
49
24
  executionComments: ExecutionCommentsService;
25
+ tools: ToolsService;
26
+ agentTools: AgentToolsService;
27
+ agentToolAssignments: AgentToolAssignmentsService;
28
+ conditions: ConditionsService;
29
+ stepTransitions: StepTransitionsService;
30
+ health(): Promise<HealthCheckResponse>;
50
31
  }
51
- /**
52
- * Create the Jarvis block.
53
- *
54
- * @example
55
- * ```typescript
56
- * const block = createJarvisBlock(transport, { appId: 'xxx' });
57
- * const agents = await block.agents.list({ page: 1 });
58
- * ```
59
- */
60
32
  export declare function createJarvisBlock(transport: Transport, config: JarvisBlockConfig): JarvisBlock;
61
33
  export declare const jarvisBlockMetadata: BlockMetadata;
62
34
  //# 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,MAAM,qBAAqB,CAAC;AACjF,OAAO,EAkBL,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,EAC9B,MAAM,qBAAqB,CAAC;AAE7B;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,WAAW;IACpD,qBAAqB;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,oDAAoD;IACpD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,0BAA0B;IAC1B,MAAM,EAAE,aAAa,CAAC;IACtB,iCAAiC;IACjC,OAAO,EAAE,cAAc,CAAC;IACxB,qCAAqC;IACrC,SAAS,EAAE,gB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AAS,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,4 @@
1
+ import type { ResourceMapper } from '@23blocks/jsonapi-codec';
2
+ import type { AgentTool } from '../types/agent-tool.js';
3
+ export declare const agentToolMapper: ResourceMapper<AgentTool>;
4
+ //# sourceMappingURL=agent-tool.mapper.d.ts.map
@@ -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,CAoB7C,CAAC"}
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,CAmBjD,CAAC"}
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,EAAiB,MAAM,qBAAqB,CAAC;AAGlE,eAAO,MAAM,aAAa,EAAE,cAAc,CAAC,OAAO,CAoBjD,CAAC"}
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,CAoB7D,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,cAAc,CAAC,gBAAgB,CAqBnE,CAAC"}
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,4 @@
1
+ import type { ResourceMapper } from '@23blocks/jsonapi-codec';
2
+ import type { Condition } from '../types/condition.js';
3
+ export declare const conditionMapper: ResourceMapper<Condition>;
4
+ //# sourceMappingURL=condition.mapper.d.ts.map
@@ -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,CAe3D,CAAC"}
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,CAgB/C,CAAC"}
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,CAoBrD,CAAC"}
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,CAmB3D,CAAC"}
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,EAAgB,MAAM,oBAAoB,CAAC;AAe/D,eAAO,MAAM,YAAY,EAAE,cAAc,CAAC,MAAM,CAoF/C,CAAC"}
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,4 @@
1
+ import type { ResourceMapper } from '@23blocks/jsonapi-codec';
2
+ import type { StepTransition } from '../types/step-transition.js';
3
+ export declare const stepTransitionMapper: ResourceMapper<StepTransition>;
4
+ //# sourceMappingURL=step-transition.mapper.d.ts.map
@@ -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,4 @@
1
+ import type { ResourceMapper } from '@23blocks/jsonapi-codec';
2
+ import type { Tool } from '../types/tool.js';
3
+ export declare const toolMapper: ResourceMapper<Tool>;
4
+ //# sourceMappingURL=tool.mapper.d.ts.map
@@ -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,CAcvD,CAAC"}
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 +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,CA2BnE,CAAC"}
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,CAgBzE,CAAC"}
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,CAmB3D,CAAC"}
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,EAAiC,MAAM,sBAAsB,CAAC;AAGpF,eAAO,MAAM,cAAc,EAAE,cAAc,CAAC,QAAQ,CAiBnD,CAAC"}
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,67 +1,17 @@
1
1
  import type { Transport, PageResult } from '@23blocks/contracts';
2
- import type { AgentThread, AgentRun, AgentMessage, AgentContext, CreateAgentThreadRequest, CreateAgentContextRequest, SendAgentThreadMessageRequest, SendAgentThreadMessageResponse, RunAgentThreadRequest, RunAgentThreadResponse, AgentRunExecution, ListAgentRunExecutionsParams } from '../types/agent-runtime.js';
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
- * Send a message to an agent thread.
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: {
@@ -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,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,wBAAwB,EACxB,yBAAyB,EACzB,6BAA6B,EAC7B,8BAA8B,EAC9B,qBAAqB,EACrB,sBAAsB,EACtB,iBAAiB,EACjB,4BAA4B,EAC7B,MAAM,2BAA2B,CAAC;AAEnC,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,UAAU,CAAC,aAAa,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAElF;;;OAGG;IACH,aAAa,CAAC,aAAa,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,yBAAyB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAE9F;;;OAGG;IACH,eAAe,CAAC,aAAa,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,QAAQ,EAAE,YAAY,EAAE,CAAA;KAAE,CAAC,CAAC;IAEvG;;;OAGG;IACH,SAAS,CAAC,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;I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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,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,mBAAmB,CAmI/G"}
@@ -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
+ appId: 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,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,2BAA2B,CA2C/H"}
@@ -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
+ appId: 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,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,iBAAiB,CAqC3G"}
@@ -1,40 +1,14 @@
1
1
  import type { Transport, PageResult } from '@23blocks/contracts';
2
- import type { Agent, CreateAgentRequest, UpdateAgentRequest, ListAgentsParams, ChatRequest, ChatResponse, CompleteRequest, CompleteResponse } from '../types/agent.js';
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
- * Send a chat message to an agent.
30
- * @returns ChatResponse with the agent's reply, token usage, and cost.
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
  appId: string;
@@ -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,WAAW,EACX,YAAY,EACZ,eAAe,EACf,gBAAgB,EACjB,MAAM,mBAAmB,CAAC;AAG3B,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,IAAI,CAAC,MAAM,CAA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Q,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,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,aAAa,CAgEnG"}
@@ -1,29 +1,10 @@
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: {
@@ -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;AAG9B,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,IAAI,CAAC,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC;IAEhE;;;OAGG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAExC;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAErD;;;OAGG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAEvE;;OAEG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACzC;AAED,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,eAAe,CAyDvG"}
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,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,eAAe,CAqCvG"}
@@ -1,62 +1,14 @@
1
1
  import type { Transport, PageResult } from '@23blocks/contracts';
2
- import type { Cluster, CreateClusterRequest, UpdateClusterRequest, ListClustersParams, ClusterContext, CreateClusterContextRequest, SendClusterMessageRequest, SendClusterMessageResponse } from '../types/cluster.js';
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
- * Add an entity as a member of a cluster.
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
  appId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"clusters.service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C;IACtF,GAAG,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC9D,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC3E,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC7F,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9D,SAAS,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC5F,aAAa,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACrG,WAAW,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAC1H;AAED,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,eAAe,CAwDvG"}
@@ -0,0 +1,13 @@
1
+ import type { Transport, PageResult } from '@23blocks/contracts';
2
+ import type { Condition, CreateConditionRequest, UpdateConditionRequest, ListConditionsParams } from '../types/condition.js';
3
+ export interface ConditionsService {
4
+ list(params?: ListConditionsParams): Promise<PageResult<Condition>>;
5
+ get(uniqueId: string): Promise<Condition>;
6
+ create(data: CreateConditionRequest): Promise<Condition>;
7
+ update(uniqueId: string, data: UpdateConditionRequest): Promise<Condition>;
8
+ delete(uniqueId: string): Promise<void>;
9
+ }
10
+ export declare function createConditionsService(transport: Transport, _config: {
11
+ appId: string;
12
+ }): ConditionsService;
13
+ //# sourceMappingURL=conditions.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conditions.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/conditions.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,uBAAuB,CAAC;AAiB/B,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,MAAM,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC;IACpE,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IAC1C,MAAM,CAAC,IAAI,EAAE,sBAAsB,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,sBAAsB,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IAC3E,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACzC;AAED,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,iBAAiB,CAqC3G"}
@@ -1,35 +1,11 @@
1
1
  import type { Transport, PageResult } from '@23blocks/contracts';
2
- import type { Conversation, CreateConversationRequest, SendMessageRequest, SendMessageResponse, ListConversationsParams } from '../types/conversation.js';
2
+ import type { Conversation, CreateConversationRequest, SendConversationMessageRequest, SendConversationMessageResponse, ListConversationsParams } from '../types/conversation.js';
3
3
  export interface ConversationsService {
4
- /**
5
- * List conversations with optional filtering and sorting.
6
- * @returns Paginated list of Conversation records with metadata.
7
- */
8
4
  list(params?: ListConversationsParams): Promise<PageResult<Conversation>>;
9
- /**
10
- * Get a single conversation by unique ID.
11
- * @returns The matching Conversation record.
12
- */
13
5
  get(uniqueId: string): Promise<Conversation>;
14
- /**
15
- * Create a new conversation.
16
- * @returns The newly created Conversation record.
17
- */
18
6
  create(data: CreateConversationRequest): Promise<Conversation>;
19
- /**
20
- * Send a message in a conversation.
21
- * @returns SendMessageResponse with the sent message, optional AI response, and cost.
22
- */
23
- sendMessage(uniqueId: string, data: SendMessageRequest): Promise<SendMessageResponse>;
24
- /**
25
- * List conversations belonging to a specific user.
26
- * @returns Paginated list of Conversation records with metadata.
27
- */
7
+ sendMessage(uniqueId: string, data: SendConversationMessageRequest): Promise<SendConversationMessageResponse>;
28
8
  listByUser(userUniqueId: string, params?: ListConversationsParams): Promise<PageResult<Conversation>>;
29
- /**
30
- * Clear all messages in a conversation.
31
- * @returns The updated Conversation record with messages cleared.
32
- */
33
9
  clear(uniqueId: string): Promise<Conversation>;
34
10
  }
35
11
  export declare function createConversationsService(transport: Transport, _config: {
@@ -1 +1 @@
1
- {"version":3,"file":"conversations.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/conversations.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,YAAY,EACZ,yBAAyB,EACzB,kBAAkB,EAClB,mBAAmB,EACnB,uBAAuB,EACxB,MAAM,0BAA0B,CAAC;AAGlC,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,IAAI,CAAC,MAAM,CAAC,EAAE,uBAAuB,GAAG,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC;IAE1E;;;OAGG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAE7C;;;OAGG;IACH,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