@23blocks/block-jarvis 3.1.7 → 3.2.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 (38) hide show
  1. package/dist/index.esm.js +9 -1
  2. package/dist/src/lib/jarvis.block.d.ts +34 -0
  3. package/dist/src/lib/jarvis.block.d.ts.map +1 -1
  4. package/dist/src/lib/services/agent-runtime.service.d.ts +48 -0
  5. package/dist/src/lib/services/agent-runtime.service.d.ts.map +1 -1
  6. package/dist/src/lib/services/agents.service.d.ts +27 -0
  7. package/dist/src/lib/services/agents.service.d.ts.map +1 -1
  8. package/dist/src/lib/services/ai-models.service.d.ts +19 -0
  9. package/dist/src/lib/services/ai-models.service.d.ts.map +1 -1
  10. package/dist/src/lib/services/clusters.service.d.ts +44 -0
  11. package/dist/src/lib/services/clusters.service.d.ts.map +1 -1
  12. package/dist/src/lib/services/conversations.service.d.ts +24 -0
  13. package/dist/src/lib/services/conversations.service.d.ts.map +1 -1
  14. package/dist/src/lib/services/entities.service.d.ts +42 -0
  15. package/dist/src/lib/services/entities.service.d.ts.map +1 -1
  16. package/dist/src/lib/services/execution-comments.service.d.ts +29 -0
  17. package/dist/src/lib/services/execution-comments.service.d.ts.map +1 -1
  18. package/dist/src/lib/services/executions.service.d.ts +20 -0
  19. package/dist/src/lib/services/executions.service.d.ts.map +1 -1
  20. package/dist/src/lib/services/mail-templates.service.d.ts +32 -0
  21. package/dist/src/lib/services/mail-templates.service.d.ts.map +1 -1
  22. package/dist/src/lib/services/marvin-chat.service.d.ts +24 -0
  23. package/dist/src/lib/services/marvin-chat.service.d.ts.map +1 -1
  24. package/dist/src/lib/services/prompt-comments.service.d.ts +29 -0
  25. package/dist/src/lib/services/prompt-comments.service.d.ts.map +1 -1
  26. package/dist/src/lib/services/prompts.service.d.ts +31 -0
  27. package/dist/src/lib/services/prompts.service.d.ts.map +1 -1
  28. package/dist/src/lib/services/users.service.d.ts +51 -0
  29. package/dist/src/lib/services/users.service.d.ts.map +1 -1
  30. package/dist/src/lib/services/workflow-instances.service.d.ts +28 -0
  31. package/dist/src/lib/services/workflow-instances.service.d.ts.map +1 -1
  32. package/dist/src/lib/services/workflow-participants.service.d.ts +19 -0
  33. package/dist/src/lib/services/workflow-participants.service.d.ts.map +1 -1
  34. package/dist/src/lib/services/workflow-steps.service.d.ts +21 -0
  35. package/dist/src/lib/services/workflow-steps.service.d.ts.map +1 -1
  36. package/dist/src/lib/services/workflows.service.d.ts +31 -0
  37. package/dist/src/lib/services/workflows.service.d.ts.map +1 -1
  38. package/package.json +1 -1
package/dist/index.esm.js CHANGED
@@ -2186,7 +2186,15 @@ function createExecutionCommentsService(transport, _config) {
2186
2186
  };
2187
2187
  }
2188
2188
 
2189
- function createJarvisBlock(transport, config) {
2189
+ /**
2190
+ * Create the Jarvis block.
2191
+ *
2192
+ * @example
2193
+ * ```typescript
2194
+ * const block = createJarvisBlock(transport, { appId: 'xxx' });
2195
+ * const agents = await block.agents.list({ page: 1 });
2196
+ * ```
2197
+ */ function createJarvisBlock(transport, config) {
2190
2198
  return {
2191
2199
  agents: createAgentsService(transport),
2192
2200
  prompts: createPromptsService(transport),
@@ -1,28 +1,62 @@
1
1
  import type { Transport, BlockConfig, BlockMetadata } from '@23blocks/contracts';
2
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
+ */
3
6
  export interface JarvisBlockConfig extends BlockConfig {
7
+ /** Application ID */
4
8
  appId: string;
9
+ /** Tenant ID (optional, for multi-tenant setups) */
5
10
  tenantId?: string;
6
11
  }
12
+ /**
13
+ * AI agents, prompts, and workflow management block interface.
14
+ */
7
15
  export interface JarvisBlock {
16
+ /** AI agent management */
8
17
  agents: AgentsService;
18
+ /** Prompt template management */
9
19
  prompts: PromptsService;
20
+ /** Workflow definition management */
10
21
  workflows: WorkflowsService;
22
+ /** Workflow execution tracking */
11
23
  executions: ExecutionsService;
24
+ /** AI conversation management */
12
25
  conversations: ConversationsService;
26
+ /** AI model configuration */
13
27
  aiModels: AIModelsService;
28
+ /** Entity management for AI context */
14
29
  entities: EntitiesService;
30
+ /** Entity cluster management */
15
31
  clusters: ClustersService;
32
+ /** Jarvis user management */
16
33
  users: JarvisUsersService;
34
+ /** Workflow participant management */
17
35
  workflowParticipants: WorkflowParticipantsService;
36
+ /** Workflow step definition management */
18
37
  workflowSteps: WorkflowStepsService;
38
+ /** Workflow instance management */
19
39
  workflowInstances: WorkflowInstancesService;
40
+ /** Agent runtime execution */
20
41
  agentRuntime: AgentRuntimeService;
42
+ /** Mail template management */
21
43
  mailTemplates: MailTemplatesService;
44
+ /** Marvin chat interface */
22
45
  marvinChat: MarvinChatService;
46
+ /** Prompt comment management */
23
47
  promptComments: PromptCommentsService;
48
+ /** Execution comment management */
24
49
  executionComments: ExecutionCommentsService;
25
50
  }
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
+ */
26
60
  export declare function createJarvisBlock(transport: Transport, config: JarvisBlockConfig): JarvisBlock;
27
61
  export declare const jarvisBlockMetadata: BlockMetadata;
28
62
  //# 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,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8B;IAC9B,YAAY,EAAE,mBAAmB,CAAC;IAClC,+BAA+B;IAC/B,aAAa,EAAE,oBAAoB,CAAC;IACpC,4BAA4B;IAC5B,UAAU,EAAE,iBAAiB,CAAC;IAC9B,gCAAgC;IAChC,cAAc,EAAE,qBAAqB,CAAC;IACtC,mCAAmC;IACnC,iBAAiB,EAAE,wBAAwB,CAAC;CAC7C;AAED;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,iBAAiB,GACxB,WAAW,CAoBb;AAED,eAAO,MAAM,mBAAmB,EAAE,aAWjC,CAAC"}
@@ -1,19 +1,67 @@
1
1
  import type { Transport, PageResult } from '@23blocks/contracts';
2
2
  import type { AgentThread, AgentRun, AgentMessage, AgentContext, CreateAgentThreadRequest, CreateAgentContextRequest, SendAgentThreadMessageRequest, SendAgentThreadMessageResponse, RunAgentThreadRequest, RunAgentThreadResponse, 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
+ */
4
8
  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
+ */
5
13
  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
+ */
6
18
  getConversation(agentUniqueId: string, contextUniqueId: string): Promise<{
7
19
  messages: AgentMessage[];
8
20
  }>;
21
+ /**
22
+ * Get an existing agent thread by ID.
23
+ * @returns The AgentThread record.
24
+ */
9
25
  getThread(agentUniqueId: string, threadId: string): Promise<AgentThread>;
26
+ /**
27
+ * Create a new agent thread.
28
+ * @returns The newly created AgentThread record.
29
+ */
10
30
  createThread(agentUniqueId: string, data?: CreateAgentThreadRequest): Promise<AgentThread>;
31
+ /**
32
+ * Send a message to an agent thread.
33
+ * @returns SendAgentThreadMessageResponse with the sent message.
34
+ */
11
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
+ */
12
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
+ */
13
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
+ */
14
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
+ */
15
55
  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
+ */
16
60
  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
+ */
17
65
  getExecution(agentUniqueId: string, executionUniqueId: string): Promise<AgentRunExecution>;
18
66
  }
19
67
  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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BAAgB,yBAAyB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,mBAAmB,CA4Q/G"}
@@ -1,12 +1,39 @@
1
1
  import type { Transport, PageResult } from '@23blocks/contracts';
2
2
  import type { Agent, CreateAgentRequest, UpdateAgentRequest, ListAgentsParams, ChatRequest, ChatResponse, CompleteRequest, CompleteResponse } 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
+ */
4
8
  list(params?: ListAgentsParams): Promise<PageResult<Agent>>;
9
+ /**
10
+ * Get a single agent by unique ID.
11
+ * @returns The matching Agent record.
12
+ */
5
13
  get(uniqueId: string): Promise<Agent>;
14
+ /**
15
+ * Create a new agent.
16
+ * @returns The newly created Agent record.
17
+ */
6
18
  create(data: CreateAgentRequest): Promise<Agent>;
19
+ /**
20
+ * Update an existing agent.
21
+ * @returns The updated Agent record.
22
+ */
7
23
  update(uniqueId: string, data: UpdateAgentRequest): Promise<Agent>;
24
+ /**
25
+ * Delete an agent.
26
+ */
8
27
  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
+ */
9
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
+ */
10
37
  complete(uniqueId: string, data: CompleteRequest): Promise<CompleteResponse>;
11
38
  }
12
39
  export declare function createAgentsService(transport: Transport, _config: {
@@ -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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AM,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;IAE5D;;;OAGG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;IAEtC;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;IAEjD;;;OAGG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;IAEnE;;OAEG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAExC;;;OAGG;IACH,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAEjE;;;OAGG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;CAC9E;AAED,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,aAAa,CA0FnG"}
@@ -1,10 +1,29 @@
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
+ */
4
8
  list(params?: ListAIModelsParams): Promise<PageResult<AIModel>>;
9
+ /**
10
+ * Get a single AI model by unique ID.
11
+ * @returns The matching AIModel record.
12
+ */
5
13
  get(uniqueId: string): Promise<AIModel>;
14
+ /**
15
+ * Create a new AI model configuration.
16
+ * @returns The newly created AIModel record.
17
+ */
6
18
  create(data: CreateAIModelRequest): Promise<AIModel>;
19
+ /**
20
+ * Update an existing AI model configuration.
21
+ * @returns The updated AIModel record.
22
+ */
7
23
  update(uniqueId: string, data: UpdateAIModelRequest): Promise<AIModel>;
24
+ /**
25
+ * Delete an AI model.
26
+ */
8
27
  delete(uniqueId: string): Promise<void>;
9
28
  }
10
29
  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,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,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;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,17 +1,61 @@
1
1
  import type { Transport, PageResult } from '@23blocks/contracts';
2
2
  import type { Cluster, CreateClusterRequest, UpdateClusterRequest, ListClustersParams, ClusterContext, CreateClusterContextRequest, SendClusterMessageRequest, SendClusterMessageResponse } 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
+ */
4
8
  list(userUniqueId: string, params?: ListClustersParams): Promise<PageResult<Cluster>>;
9
+ /**
10
+ * Get a single cluster by unique ID.
11
+ * @returns The matching Cluster record.
12
+ */
5
13
  get(userUniqueId: string, uniqueId: string): Promise<Cluster>;
14
+ /**
15
+ * Create a new cluster for a user.
16
+ * @returns The newly created Cluster record.
17
+ */
6
18
  create(userUniqueId: string, data: CreateClusterRequest): Promise<Cluster>;
19
+ /**
20
+ * Update an existing cluster.
21
+ * @returns The updated Cluster record.
22
+ */
7
23
  update(userUniqueId: string, uniqueId: string, data: UpdateClusterRequest): Promise<Cluster>;
24
+ /**
25
+ * Delete a cluster.
26
+ */
8
27
  delete(userUniqueId: string, uniqueId: string): Promise<void>;
28
+ /**
29
+ * Add an entity as a member of a cluster.
30
+ */
9
31
  addMember(userUniqueId: string, uniqueId: string, entityUniqueId: string): Promise<void>;
32
+ /**
33
+ * Remove an entity from a cluster.
34
+ */
10
35
  removeMember(userUniqueId: string, uniqueId: string, entityUniqueId: string): Promise<void>;
36
+ /**
37
+ * Associate a prompt with a cluster.
38
+ */
11
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
+ */
12
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
+ */
13
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
+ */
14
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
+ */
15
59
  sendMessage(userUniqueId: string, uniqueId: string, contextUniqueId: string, data: SendClusterMessageRequest): Promise<SendClusterMessageResponse>;
16
60
  }
17
61
  export declare function createClustersService(transport: Transport, _config: {
@@ -1 +1 @@
1
- {"version":3,"file":"clusters.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/clusters.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EA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AC;CACpJ;AAED,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,eAAe,CAyIvG"}
@@ -1,11 +1,35 @@
1
1
  import type { Transport, PageResult } from '@23blocks/contracts';
2
2
  import type { Conversation, CreateConversationRequest, SendMessageRequest, SendMessageResponse, 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
+ */
4
8
  list(params?: ListConversationsParams): Promise<PageResult<Conversation>>;
9
+ /**
10
+ * Get a single conversation by unique ID.
11
+ * @returns The matching Conversation record.
12
+ */
5
13
  get(uniqueId: string): Promise<Conversation>;
14
+ /**
15
+ * Create a new conversation.
16
+ * @returns The newly created Conversation record.
17
+ */
6
18
  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
+ */
7
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
+ */
8
28
  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
+ */
9
33
  clear(uniqueId: string): Promise<Conversation>;
10
34
  }
11
35
  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,EAC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;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAE/D;;;OAGG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAEtF;;;OAGG;IACH,UAAU,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,uBAAuB,GAAG,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC;IAEtG;;;OAGG;IACH,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;CAChD;AAED,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,oBAAoB,CA6EjH"}
@@ -1,16 +1,58 @@
1
1
  import type { Transport, PageResult } from '@23blocks/contracts';
2
2
  import type { Entity, RegisterEntityRequest, UpdateEntityRequest, ListEntitiesParams, EntityContext, CreateEntityContextRequest, SendEntityMessageRequest, SendEntityMessageResponse, QueryEntityFileRequest, QueryEntityFileResponse } from '../types/entity.js';
3
3
  export interface EntitiesService {
4
+ /**
5
+ * List entities with optional filtering and sorting.
6
+ * @returns Paginated list of Entity records with metadata.
7
+ */
4
8
  list(params?: ListEntitiesParams): Promise<PageResult<Entity>>;
9
+ /**
10
+ * Get a single entity by unique ID.
11
+ * @returns The matching Entity record.
12
+ */
5
13
  get(uniqueId: string): Promise<Entity>;
14
+ /**
15
+ * Register an entity in the Jarvis system.
16
+ * @returns The newly registered Entity record.
17
+ */
6
18
  register(uniqueId: string, data?: RegisterEntityRequest): Promise<Entity>;
19
+ /**
20
+ * Update an existing entity.
21
+ * @returns The updated Entity record.
22
+ */
7
23
  update(uniqueId: string, data: UpdateEntityRequest): Promise<Entity>;
24
+ /**
25
+ * Delete an entity.
26
+ */
8
27
  delete(uniqueId: string): Promise<void>;
28
+ /**
29
+ * Associate a prompt with an entity.
30
+ */
9
31
  addPrompt(uniqueId: string, promptUniqueId: string): Promise<void>;
32
+ /**
33
+ * Get an existing entity context by unique ID.
34
+ * @returns The EntityContext with messages and metadata.
35
+ */
10
36
  getContext(uniqueId: string, contextUniqueId: string): Promise<EntityContext>;
37
+ /**
38
+ * Create a new context for entity conversations.
39
+ * @returns The newly created EntityContext.
40
+ */
11
41
  createContext(uniqueId: string, data?: CreateEntityContextRequest): Promise<EntityContext>;
42
+ /**
43
+ * Get the conversation history for an entity context.
44
+ * @returns The EntityContext with full message history.
45
+ */
12
46
  getConversation(uniqueId: string, contextUniqueId: string): Promise<EntityContext>;
47
+ /**
48
+ * Send a message within an entity context.
49
+ * @returns SendEntityMessageResponse with the sent message, optional AI response, and cost.
50
+ */
13
51
  sendMessage(uniqueId: string, contextUniqueId: string, data: SendEntityMessageRequest): Promise<SendEntityMessageResponse>;
52
+ /**
53
+ * Query an entity's file using natural language (RAG).
54
+ * @returns QueryEntityFileResponse with answer, sources, token usage, and cost.
55
+ */
14
56
  queryFile(uniqueId: string, fileUniqueId: string, data: QueryEntityFileRequest): Promise<QueryEntityFileResponse>;
15
57
  }
16
58
  export declare function createEntitiesService(transport: Transport, _config: {
@@ -1 +1 @@
1
- {"version":3,"file":"entities.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/entities.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,MAAM,EACN,qBAAqB,EACrB,mBAAmB,EACnB,kBAAkB,EAClB,aAAa,EACb,0BAA0B,EAC1B,wBAAwB,EACxB,yBAAyB,EACzB,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,oBAAoB,CAAC;AAG5B,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,UAAU,CAAC,M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G,OAAO,CAAC,aAAa,CAAC,CAAC;IAEnF;;;OAGG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,IAAI,EAAE,wBAAwB,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;IAE3H;;;OAGG;IACH,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,sBAAsB,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;CACnH;AAED,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,eAAe,CAkJvG"}
@@ -1,17 +1,46 @@
1
1
  import type { Transport, PageResult } from '@23blocks/contracts';
2
2
  import type { ExecutionComment, CreateExecutionCommentRequest, UpdateExecutionCommentRequest, ListExecutionCommentsParams, ReplyToCommentRequest } from '../types/comment.js';
3
3
  export interface ExecutionCommentsService {
4
+ /**
5
+ * List comments on an execution with optional filtering and sorting.
6
+ * @returns Paginated list of ExecutionComment records with metadata.
7
+ */
4
8
  list(promptUniqueId: string, executionUniqueId: string, params?: ListExecutionCommentsParams): Promise<PageResult<ExecutionComment>>;
9
+ /**
10
+ * Get a single execution comment by unique ID.
11
+ * @returns The matching ExecutionComment record.
12
+ */
5
13
  get(promptUniqueId: string, executionUniqueId: string, uniqueId: string): Promise<ExecutionComment>;
14
+ /**
15
+ * Create a new comment on an execution.
16
+ * @returns The newly created ExecutionComment record.
17
+ */
6
18
  create(promptUniqueId: string, executionUniqueId: string, data: CreateExecutionCommentRequest): Promise<ExecutionComment>;
19
+ /**
20
+ * Update an existing execution comment.
21
+ * @returns The updated ExecutionComment record.
22
+ */
7
23
  update(promptUniqueId: string, executionUniqueId: string, uniqueId: string, data: UpdateExecutionCommentRequest): Promise<ExecutionComment>;
24
+ /**
25
+ * Delete an execution comment.
26
+ */
8
27
  delete(promptUniqueId: string, executionUniqueId: string, uniqueId: string): Promise<void>;
28
+ /** Like an execution comment. */
9
29
  like(promptUniqueId: string, executionUniqueId: string, uniqueId: string): Promise<void>;
30
+ /** Remove a like from an execution comment. */
10
31
  dislike(promptUniqueId: string, executionUniqueId: string, uniqueId: string): Promise<void>;
32
+ /**
33
+ * Reply to an execution comment.
34
+ * @returns The newly created reply ExecutionComment record.
35
+ */
11
36
  reply(promptUniqueId: string, executionUniqueId: string, uniqueId: string, data: ReplyToCommentRequest): Promise<ExecutionComment>;
37
+ /** Follow an execution comment to receive notifications. */
12
38
  follow(promptUniqueId: string, executionUniqueId: string, uniqueId: string): Promise<void>;
39
+ /** Unfollow an execution comment. */
13
40
  unfollow(promptUniqueId: string, executionUniqueId: string, uniqueId: string): Promise<void>;
41
+ /** Save an execution comment to bookmarks. */
14
42
  save(promptUniqueId: string, executionUniqueId: string, uniqueId: string): Promise<void>;
43
+ /** Remove an execution comment from bookmarks. */
15
44
  unsave(promptUniqueId: string, executionUniqueId: string, uniqueId: string): Promise<void>;
16
45
  }
17
46
  export declare function createExecutionCommentsService(transport: Transport, _config: {
@@ -1 +1 @@
1
- {"version":3,"file":"execution-comments.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/execution-comments.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,gBAAgB,EAChB,6BAA6B,EAC7B,6BAA6B,EAC7B,2BAA2B,EAC3B,qBAAqB,EACtB,MAAM,qBAAqB,CAAC;AAG7B,MAAM,WAAW,wBAAwB;IACvC,IAAI,CAAC,cAAc,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,2BAA2B,GAAG,OAAO,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC,CAAC;IACrI,GAAG,CAAC,cAAc,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,EAAE,QAAQ,EAAE,M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F,MAAM,CAAC,cAAc,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5F;AAED,wBAAgB,8BAA8B,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,wBAAwB,CAkFzH"}
1
+ {"version":3,"file":"execution-comments.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/execution-comments.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,gBAAgB,EAChB,6BAA6B,EAC7B,6BAA6B,EAC7B,2BAA2B,EAC3B,qBAAqB,EACtB,MAAM,qBAAqB,CAAC;AAG7B,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,IAAI,CAAC,cAAc,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,2BAA2B,GAAG,OAAO,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC,CAAC;IAErI;;;OAGG;IACH,GAAG,CAAC,cAAc,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAEpG;;;OAGG;IACH,MAAM,CAAC,cAAc,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,EAAE,IAAI,EAAE,6BAA6B,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAE1H;;;OAGG;IACH,MAAM,CAAC,cAAc,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,6BAA6B,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAE5I;;OAEG;IACH,MAAM,CAAC,cAAc,EAAE,MAAM,EAAE,iBAA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30 @@
1
1
  import type { Transport, PageResult } from '@23blocks/contracts';
2
2
  import type { Execution, ListExecutionsParams } from '../types/execution.js';
3
3
  export interface ExecutionsService {
4
+ /**
5
+ * List executions with optional filtering and sorting.
6
+ * @returns Paginated list of Execution records with metadata.
7
+ */
4
8
  list(params?: ListExecutionsParams): Promise<PageResult<Execution>>;
9
+ /**
10
+ * Get a single execution by unique ID.
11
+ * @returns The matching Execution record.
12
+ */
5
13
  get(uniqueId: string): Promise<Execution>;
14
+ /**
15
+ * List executions for a specific agent.
16
+ * @returns Paginated list of Execution records with metadata.
17
+ */
6
18
  listByAgent(agentUniqueId: string, params?: ListExecutionsParams): Promise<PageResult<Execution>>;
19
+ /**
20
+ * List executions for a specific prompt.
21
+ * @returns Paginated list of Execution records with metadata.
22
+ */
7
23
  listByPrompt(promptUniqueId: string, params?: ListExecutionsParams): Promise<PageResult<Execution>>;
24
+ /**
25
+ * Cancel a running execution.
26
+ * @returns The updated Execution record with cancelled status.
27
+ */
8
28
  cancel(uniqueId: string): Promise<Execution>;
9
29
  }
10
30
  export declare function createExecutionsService(transport: Transport, _config: {
@@ -1 +1 @@
1
- {"version":3,"file":"executions.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/executions.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EAAE,SAAS,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAG7E,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,WAAW,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC,SAAS,C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,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,iBAAiB,CA+C3G"}
@@ -1,13 +1,45 @@
1
1
  import type { Transport, PageResult } from '@23blocks/contracts';
2
2
  import type { MailTemplate, CreateMailTemplateRequest, UpdateMailTemplateRequest, ListMailTemplatesParams, CreateMandrillTemplateRequest, UpdateMandrillTemplateRequest, MandrillStats } from '../types/mail-template.js';
3
3
  export interface MailTemplatesService {
4
+ /**
5
+ * List mail templates with optional filtering and sorting.
6
+ * @returns Paginated list of MailTemplate records with metadata.
7
+ */
4
8
  list(params?: ListMailTemplatesParams): Promise<PageResult<MailTemplate>>;
9
+ /**
10
+ * Get a single mail template by unique ID.
11
+ * @returns The matching MailTemplate record.
12
+ */
5
13
  get(uniqueId: string): Promise<MailTemplate>;
14
+ /**
15
+ * Create a new mail template.
16
+ * @returns The newly created MailTemplate record.
17
+ */
6
18
  create(data: CreateMailTemplateRequest): Promise<MailTemplate>;
19
+ /**
20
+ * Update an existing mail template.
21
+ * @returns The updated MailTemplate record.
22
+ */
7
23
  update(uniqueId: string, data: UpdateMailTemplateRequest): Promise<MailTemplate>;
24
+ /**
25
+ * Create a Mandrill template linked to this mail template.
26
+ * @returns The updated MailTemplate record with Mandrill integration.
27
+ */
8
28
  createMandrillTemplate(uniqueId: string, data?: CreateMandrillTemplateRequest): Promise<MailTemplate>;
29
+ /**
30
+ * Update the linked Mandrill template.
31
+ * @returns The updated MailTemplate record.
32
+ */
9
33
  updateMandrillTemplate(uniqueId: string, data?: UpdateMandrillTemplateRequest): Promise<MailTemplate>;
34
+ /**
35
+ * Publish the Mandrill template to make it active.
36
+ * @returns The updated MailTemplate record with published status.
37
+ */
10
38
  publishMandrill(uniqueId: string): Promise<MailTemplate>;
39
+ /**
40
+ * Get delivery statistics for the linked Mandrill template.
41
+ * @returns MandrillStats with send, open, click, bounce, and spam counts.
42
+ */
11
43
  getMandrillStats(uniqueId: string): Promise<MandrillStats>;
12
44
  }
13
45
  export declare function createMailTemplatesService(transport: Transport, _config: {
@@ -1 +1 @@
1
- {"version":3,"file":"mail-templates.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/mail-templates.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,YAAY,EACZ,yBAAyB,EACzB,yBAAyB,EACzB,uBAAuB,EACvB,6BAA6B,EAC7B,6BAA6B,EAC7B,aAAa,EACd,MAAM,2BAA2B,CAAC;AAGnC,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,MAAM,CAAC,EAAE,uBAAuB,GAAG,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC;IAC1E,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAC7C,MAAM,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAC/D,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IACjF,sBAAsB,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,6BAA6B,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IACtG,sBAAsB,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,6BAA6B,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IACtG,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IACzD,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;CAC5D;AAED,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,oBAAoB,CA2FjH"}
1
+ {"version":3,"file":"mail-templates.service.d.ts","sour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oBAAoB,CA2FjH"}
@@ -1,11 +1,35 @@
1
1
  import type { Transport } from '@23blocks/contracts';
2
2
  import type { MarvinContext, MarvinChatRequest, MarvinChatResponse, CreateMarvinContextRequest, SendMarvinMessageRequest, SendMarvinMessageResponse } from '../types/marvin-chat.js';
3
3
  export interface MarvinChatService {
4
+ /**
5
+ * Send a chat message via Marvin v1 API.
6
+ * @returns MarvinChatResponse with the AI response, token usage, and cost.
7
+ */
4
8
  chat(data: MarvinChatRequest): Promise<MarvinChatResponse>;
9
+ /**
10
+ * Send a chat message via Jarvis v2 API.
11
+ * @returns MarvinChatResponse with the AI response, token usage, and cost.
12
+ */
5
13
  chatV2(data: MarvinChatRequest): Promise<MarvinChatResponse>;
14
+ /**
15
+ * Send a chat message via Jarvis v3 API.
16
+ * @returns MarvinChatResponse with the AI response, token usage, and cost.
17
+ */
6
18
  chatV3(data: MarvinChatRequest): Promise<MarvinChatResponse>;
19
+ /**
20
+ * Get an existing Marvin context by unique ID.
21
+ * @returns The MarvinContext with messages, model config, and metadata.
22
+ */
7
23
  getContext(uniqueId: string): Promise<MarvinContext>;
24
+ /**
25
+ * Create a new Marvin context for conversations.
26
+ * @returns The newly created MarvinContext.
27
+ */
8
28
  createContext(data?: CreateMarvinContextRequest): Promise<MarvinContext>;
29
+ /**
30
+ * Send a message within a Marvin context.
31
+ * @returns SendMarvinMessageResponse with the user message, AI response, and cost.
32
+ */
9
33
  sendMessage(contextUniqueId: string, data: SendMarvinMessageRequest): Promise<SendMarvinMessageResponse>;
10
34
  }
11
35
  export declare function createMarvinChatService(transport: Transport, _config: {
@@ -1 +1 @@
1
- {"version":3,"file":"marvin-chat.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/marvin-chat.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,KAAK,EACV,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,0BAA0B,EAC1B,wBAAwB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GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAE7D;;;OAGG;IACH,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAErD;;;OAGG;IACH,aAAa,CAAC,IAAI,CAAC,EAAE,0BAA0B,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAEzE;;;OAGG;IACH,WAAW,CAAC,eAAe,EAAE,MAAM,EAAE,IAAI,EAAE,wBAAwB,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;CAC1G;AAED,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,iBAAiB,CA4H3G"}
@@ -1,17 +1,46 @@
1
1
  import type { Transport, PageResult } from '@23blocks/contracts';
2
2
  import type { PromptComment, CreatePromptCommentRequest, UpdatePromptCommentRequest, ListPromptCommentsParams, ReplyToCommentRequest } from '../types/comment.js';
3
3
  export interface PromptCommentsService {
4
+ /**
5
+ * List comments on a prompt with optional filtering and sorting.
6
+ * @returns Paginated list of PromptComment records with metadata.
7
+ */
4
8
  list(promptUniqueId: string, params?: ListPromptCommentsParams): Promise<PageResult<PromptComment>>;
9
+ /**
10
+ * Get a single prompt comment by unique ID.
11
+ * @returns The matching PromptComment record.
12
+ */
5
13
  get(promptUniqueId: string, uniqueId: string): Promise<PromptComment>;
14
+ /**
15
+ * Create a new comment on a prompt.
16
+ * @returns The newly created PromptComment record.
17
+ */
6
18
  create(promptUniqueId: string, data: CreatePromptCommentRequest): Promise<PromptComment>;
19
+ /**
20
+ * Update an existing prompt comment.
21
+ * @returns The updated PromptComment record.
22
+ */
7
23
  update(promptUniqueId: string, uniqueId: string, data: UpdatePromptCommentRequest): Promise<PromptComment>;
24
+ /**
25
+ * Delete a prompt comment.
26
+ */
8
27
  delete(promptUniqueId: string, uniqueId: string): Promise<void>;
28
+ /** Like a prompt comment. */
9
29
  like(promptUniqueId: string, uniqueId: string): Promise<void>;
30
+ /** Remove a like from a prompt comment. */
10
31
  dislike(promptUniqueId: string, uniqueId: string): Promise<void>;
32
+ /**
33
+ * Reply to a prompt comment.
34
+ * @returns The newly created reply PromptComment record.
35
+ */
11
36
  reply(promptUniqueId: string, uniqueId: string, data: ReplyToCommentRequest): Promise<PromptComment>;
37
+ /** Follow a prompt comment to receive notifications. */
12
38
  follow(promptUniqueId: string, uniqueId: string): Promise<void>;
39
+ /** Unfollow a prompt comment. */
13
40
  unfollow(promptUniqueId: string, uniqueId: string): Promise<void>;
41
+ /** Save a prompt comment to bookmarks. */
14
42
  save(promptUniqueId: string, uniqueId: string): Promise<void>;
43
+ /** Remove a prompt comment from bookmarks. */
15
44
  unsave(promptUniqueId: string, uniqueId: string): Promise<void>;
16
45
  }
17
46
  export declare function createPromptCommentsService(transport: Transport, _config: {
@@ -1 +1 @@
1
- {"version":3,"file":"prompt-comments.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/prompt-comments.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,aAAa,EACb,0BAA0B,EAC1B,0BAA0B,EAC1B,wBAAwB,EACxB,qBAAqB,EACtB,MAAM,qBAAqB,CAAC;AAG7B,MAAM,WAAW,qBAAqB;IACpC,IAAI,CAAC,cAAc,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,wBAAwB,GAAG,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,CAAC;IACpG,GAAG,CAAC,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IACtE,MAAM,CAAC,cAAc,EAAE,MAAM,EAAE,IAAI,EAAE,0BAA0B,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IACzF,MAAM,CAAC,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM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EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAElE,0CAA0C;IAC1C,IAAI,CAAC,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE9D,8CAA8C;IAC9C,MAAM,CAAC,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACjE;AAED,wBAAgB,2BAA2B,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,qBAAqB,CAkFnH"}
@@ -1,13 +1,44 @@
1
1
  import type { Transport, PageResult } from '@23blocks/contracts';
2
2
  import type { Prompt, CreatePromptRequest, UpdatePromptRequest, ListPromptsParams, ExecutePromptRequest, ExecutePromptResponse, TestPromptRequest, TestPromptResponse, RenderPromptRequest, RenderPromptResponse } from '../types/prompt.js';
3
3
  export interface PromptsService {
4
+ /**
5
+ * List prompts with optional filtering and sorting.
6
+ * @returns Paginated list of Prompt records with metadata.
7
+ */
4
8
  list(params?: ListPromptsParams): Promise<PageResult<Prompt>>;
9
+ /**
10
+ * Get a single prompt by unique ID.
11
+ * @returns The matching Prompt record.
12
+ */
5
13
  get(uniqueId: string): Promise<Prompt>;
14
+ /**
15
+ * Create a new prompt.
16
+ * @returns The newly created Prompt record.
17
+ */
6
18
  create(data: CreatePromptRequest): Promise<Prompt>;
19
+ /**
20
+ * Update an existing prompt.
21
+ * @returns The updated Prompt record.
22
+ */
7
23
  update(uniqueId: string, data: UpdatePromptRequest): Promise<Prompt>;
24
+ /**
25
+ * Delete a prompt.
26
+ */
8
27
  delete(uniqueId: string): Promise<void>;
28
+ /**
29
+ * Execute a prompt with variables against an agent.
30
+ * @returns ExecutePromptResponse with output, token usage, cost, and duration.
31
+ */
9
32
  execute(uniqueId: string, data: ExecutePromptRequest): Promise<ExecutePromptResponse>;
33
+ /**
34
+ * Test a prompt template for validity without executing it.
35
+ * @returns TestPromptResponse with rendered prompt, validation status, and errors.
36
+ */
10
37
  test(data: TestPromptRequest): Promise<TestPromptResponse>;
38
+ /**
39
+ * Render a prompt template with placeholder values.
40
+ * @returns RenderPromptResponse with rendered content and placeholder metadata.
41
+ */
11
42
  render(uniqueId: string, data: RenderPromptRequest): Promise<RenderPromptResponse>;
12
43
  }
13
44
  export declare function createPromptsService(transport: Transport, _config: {
@@ -1 +1 @@
1
- {"version":3,"file":"prompts.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/prompts.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,MAAM,EACN,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,oBAAoB,EACpB,qBAAqB,EACrB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,oBAAoB,CAAC;AAG5B,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,MAAM,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC;IAC9D,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACvC,MAAM,CAAC,IAAI,EAAE,mBAAmB,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACnD,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACrE,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACxC,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;IACtF,IAAI,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC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OAGG;IACH,IAAI,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAE3D;;;OAGG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;CACpF;AAED,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,cAAc,CA0HrG"}
@@ -1,18 +1,69 @@
1
1
  import type { Transport, PageResult } from '@23blocks/contracts';
2
2
  import type { JarvisUser, RegisterJarvisUserRequest, UpdateJarvisUserRequest, ListJarvisUsersParams, UserContext, CreateUserContextRequest, SendUserMessageRequest, SendUserMessageResponse, CreateUserContentContextRequest } from '../types/user.js';
3
3
  export interface JarvisUsersService {
4
+ /**
5
+ * List Jarvis users with optional filtering and sorting.
6
+ * @returns Paginated list of JarvisUser records with metadata.
7
+ */
4
8
  list(params?: ListJarvisUsersParams): Promise<PageResult<JarvisUser>>;
9
+ /**
10
+ * Get a single Jarvis user by unique ID.
11
+ * @returns The matching JarvisUser record.
12
+ */
5
13
  get(uniqueId: string): Promise<JarvisUser>;
14
+ /**
15
+ * Register a user in the Jarvis system.
16
+ * @returns The newly registered JarvisUser record.
17
+ */
6
18
  register(uniqueId: string, data?: RegisterJarvisUserRequest): Promise<JarvisUser>;
19
+ /**
20
+ * Update a Jarvis user.
21
+ * @returns The updated JarvisUser record.
22
+ */
7
23
  update(uniqueId: string, data: UpdateJarvisUserRequest): Promise<JarvisUser>;
24
+ /**
25
+ * Associate a prompt with a user.
26
+ */
8
27
  addPrompt(uniqueId: string, promptUniqueId: string): Promise<void>;
28
+ /**
29
+ * Get an existing user context by unique ID.
30
+ * @returns The UserContext with messages and metadata.
31
+ */
9
32
  getContext(uniqueId: string, contextUniqueId: string): Promise<UserContext>;
33
+ /**
34
+ * Create a new context for user conversations.
35
+ * @returns The newly created UserContext.
36
+ */
10
37
  createContext(uniqueId: string, data?: CreateUserContextRequest): Promise<UserContext>;
38
+ /**
39
+ * Get the conversation history for a user context.
40
+ * @returns The UserContext with full message history.
41
+ */
11
42
  getConversation(uniqueId: string, contextUniqueId: string): Promise<UserContext>;
43
+ /**
44
+ * Send a message within a user context.
45
+ * @returns SendUserMessageResponse with the sent message, optional AI response, and cost.
46
+ */
12
47
  sendMessage(uniqueId: string, contextUniqueId: string, data: SendUserMessageRequest): Promise<SendUserMessageResponse>;
48
+ /**
49
+ * Get an existing content-scoped context for a user.
50
+ * @returns The UserContext with messages and metadata.
51
+ */
13
52
  getContentContext(uniqueId: string, contentIdentityUniqueId: string, contextUniqueId: string): Promise<UserContext>;
53
+ /**
54
+ * Create a new content-scoped context for a user.
55
+ * @returns The newly created UserContext.
56
+ */
14
57
  createContentContext(uniqueId: string, contentIdentityUniqueId: string, data?: CreateUserContentContextRequest): Promise<UserContext>;
58
+ /**
59
+ * Get the content-scoped conversation history for a user.
60
+ * @returns The UserContext with full message history.
61
+ */
15
62
  getContentConversation(uniqueId: string, contentIdentityUniqueId: string, contextUniqueId: string): Promise<UserContext>;
63
+ /**
64
+ * Send a message within a content-scoped user context.
65
+ * @returns SendUserMessageResponse with the sent message, optional AI response, and cost.
66
+ */
16
67
  sendContentMessage(uniqueId: string, contentIdentityUniqueId: string, contextUniqueId: string, data: SendUserMessageRequest): Promise<SendUserMessageResponse>;
17
68
  }
18
69
  export declare function createJarvisUsersService(transport: Transport, _config: {
@@ -1 +1 @@
1
- {"version":3,"file":"users.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/users.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,UAAU,EACV,yBAAyB,EACzB,uBAAuB,EACvB,qBAAqB,EACrB,WAAW,EACX,wBAAwB,EACxB,sBAAsB,EACtB,uBAAuB,EACvB,+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,EAAE,MAAM,CAAA;CAAE,GAAG,kBAAkB,CAyM7G"}
@@ -1,12 +1,40 @@
1
1
  import type { Transport } from '@23blocks/contracts';
2
2
  import type { WorkflowInstance, WorkflowInstanceDetails, StartWorkflowRequest, StartWorkflowResponse, StepWorkflowRequest, LogWorkflowStepRequest } from '../types/workflow-instance.js';
3
3
  export interface WorkflowInstancesService {
4
+ /**
5
+ * Start a new workflow instance.
6
+ * @returns StartWorkflowResponse containing the created WorkflowInstance.
7
+ */
4
8
  start(workflowUniqueId: string, data?: StartWorkflowRequest): Promise<StartWorkflowResponse>;
9
+ /**
10
+ * Get a single workflow instance by unique ID.
11
+ * @returns The matching WorkflowInstance record.
12
+ */
5
13
  get(workflowUniqueId: string, instanceUniqueId: string): Promise<WorkflowInstance>;
14
+ /**
15
+ * Get detailed information about a workflow instance including step statuses.
16
+ * @returns WorkflowInstanceDetails with instance, workflow info, and step progress.
17
+ */
6
18
  getDetails(workflowUniqueId: string, instanceUniqueId: string): Promise<WorkflowInstanceDetails>;
19
+ /**
20
+ * Advance a workflow instance to the next step.
21
+ * @returns The updated WorkflowInstance record.
22
+ */
7
23
  step(workflowUniqueId: string, instanceUniqueId: string, data?: StepWorkflowRequest): Promise<WorkflowInstance>;
24
+ /**
25
+ * Log output or errors for a specific workflow step.
26
+ * @returns The updated WorkflowInstance record.
27
+ */
8
28
  logStep(workflowUniqueId: string, instanceUniqueId: string, data: LogWorkflowStepRequest): Promise<WorkflowInstance>;
29
+ /**
30
+ * Suspend a running workflow instance.
31
+ * @returns The updated WorkflowInstance record with suspended status.
32
+ */
9
33
  suspend(workflowUniqueId: string, instanceUniqueId: string): Promise<WorkflowInstance>;
34
+ /**
35
+ * Resume a suspended workflow instance.
36
+ * @returns The updated WorkflowInstance record with resumed status.
37
+ */
10
38
  resume(workflowUniqueId: string, instanceUniqueId: string): Promise<WorkflowInstance>;
11
39
  }
12
40
  export declare function createWorkflowInstancesService(transport: Transport, _config: {
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-instances.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/workflow-instances.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO,KAAK,EACV,gBAAgB,EAChB,uBAAuB,EACvB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,+BAA+B,CAAC;AAGvC,MAAM,WAAW,wBAAwB;IACvC,KAAK,CAAC,gBAAgB,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAC7F,GAAG,CAAC,gBAAgB,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IACnF,UAAU,CAAC,gBAAgB,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;IACjG,IAAI,CAAC,gBAAgB,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAChH,OAAO,CAAC,gBAAgB,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,IAAI,EAAE,sBAAsB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IACrH,OAAO,CAAC,gBAAgB,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IACvF,MAAM,CAAC,gBAAgB,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;CACvF;AAED,wBAAgB,8BAA8B,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,wBAAwB,CAiEzH"}
1
+ {"version":3,"file":"workflow-instances.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/workflow-instances.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO,KAAK,EACV,gBAAgB,EAChB,uBAAuB,EACvB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,+BAA+B,CAAC;AAGvC,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,KAAK,CAAC,gBAAgB,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAE7F;;;OAGG;IACH,GAAG,CAAC,gBAAgB,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAEnF;;;OAGG;IACH,UAAU,CAAC,gBAAgB,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;IAEjG;;;OAGG;IACH,IAAI,CAAC,gBAAgB,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAEhH;;;OAGG;IACH,OAAO,CAAC,gBAAgB,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,IAAI,EAAE,sBAAsB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAErH;;;OAGG;IACH,OAAO,CAAC,gBAAgB,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAEvF;;;OAGG;IACH,MAAM,CAAC,gBAAgB,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;CACvF;AAED,wBAAgB,8BAA8B,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,wBAAwB,CAiEzH"}
@@ -1,10 +1,29 @@
1
1
  import type { Transport, PageResult } from '@23blocks/contracts';
2
2
  import type { WorkflowParticipant, AddWorkflowParticipantRequest, UpdateWorkflowParticipantRequest, ListWorkflowParticipantsParams } from '../types/workflow-participant.js';
3
3
  export interface WorkflowParticipantsService {
4
+ /**
5
+ * List participants in a workflow with optional filtering and sorting.
6
+ * @returns Paginated list of WorkflowParticipant records with metadata.
7
+ */
4
8
  list(workflowUniqueId: string, params?: ListWorkflowParticipantsParams): Promise<PageResult<WorkflowParticipant>>;
9
+ /**
10
+ * Get a single workflow participant by unique ID.
11
+ * @returns The matching WorkflowParticipant record.
12
+ */
5
13
  get(workflowUniqueId: string, uniqueId: string): Promise<WorkflowParticipant>;
14
+ /**
15
+ * Add a participant to a workflow.
16
+ * @returns The newly created WorkflowParticipant record.
17
+ */
6
18
  add(workflowUniqueId: string, data: AddWorkflowParticipantRequest): Promise<WorkflowParticipant>;
19
+ /**
20
+ * Update a workflow participant's role or permissions.
21
+ * @returns The updated WorkflowParticipant record.
22
+ */
7
23
  update(workflowUniqueId: string, uniqueId: string, data: UpdateWorkflowParticipantRequest): Promise<WorkflowParticipant>;
24
+ /**
25
+ * Remove a participant from a workflow.
26
+ */
8
27
  remove(workflowUniqueId: string, uniqueId: string): Promise<void>;
9
28
  }
10
29
  export declare function createWorkflowParticipantsService(transport: Transport, _config: {
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-participants.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/workflow-participants.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,mBAAmB,EACnB,6BAA6B,EAC7B,gCAAgC,EAChC,8BAA8B,EAC/B,MAAM,kCAAkC,CAAC;AAG1C,MAAM,WAAW,2BAA2B;IAC1C,IAAI,CAAC,gBAAgB,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,8BAA8B,GAAG,OAAO,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC,CAAC;IAClH,GAAG,CAAC,gBAAgB,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAC9E,GAAG,CAAC,gBAAgB,EAAE,MAAM,EAAE,IAAI,EAAE,6BAA6B,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACjG,MAAM,CAAC,gBAAgB,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,gCAAgC,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACzH,MAAM,CAAC,gBAAgB,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACnE;AAED,wBAAgB,iCAAiC,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,2BAA2B,CAkD/H"}
1
+ {"version":3,"file":"workflow-participants.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/workflow-participants.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,mBAAmB,EACnB,6BAA6B,EAC7B,gCAAgC,EAChC,8BAA8B,EAC/B,MAAM,kCAAkC,CAAC;AAG1C,MAAM,WAAW,2BAA2B;IAC1C;;;OAGG;IACH,IAAI,CAAC,gBAAgB,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,8BAA8B,GAAG,OAAO,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC,CAAC;IAElH;;;OAGG;IACH,GAAG,CAAC,gBAAgB,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAE9E;;;OAGG;IACH,GAAG,CAAC,gBAAgB,EAAE,MAAM,EAAE,IAAI,EAAE,6BAA6B,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAEjG;;;OAGG;IACH,MAAM,CAAC,gBAAgB,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,gCAAgC,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAEzH;;OAEG;IACH,MAAM,CAAC,gBAAgB,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACnE;AAED,wBAAgB,iCAAiC,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,2BAA2B,CAkD/H"}
@@ -1,11 +1,32 @@
1
1
  import type { Transport } from '@23blocks/contracts';
2
2
  import type { WorkflowStep, AddWorkflowStepRequest, UpdateWorkflowStepRequest, AddStepPromptRequest, AddStepAgentRequest } from '../types/workflow-step.js';
3
3
  export interface WorkflowStepsService {
4
+ /**
5
+ * Get a single workflow step by unique ID.
6
+ * @returns The matching WorkflowStep record.
7
+ */
4
8
  get(workflowUniqueId: string, stepUniqueId: string): Promise<WorkflowStep>;
9
+ /**
10
+ * Add a new step to a workflow.
11
+ * @returns The newly created WorkflowStep record.
12
+ */
5
13
  add(workflowUniqueId: string, data: AddWorkflowStepRequest): Promise<WorkflowStep>;
14
+ /**
15
+ * Update an existing workflow step.
16
+ * @returns The updated WorkflowStep record.
17
+ */
6
18
  update(workflowUniqueId: string, stepUniqueId: string, data: UpdateWorkflowStepRequest): Promise<WorkflowStep>;
19
+ /**
20
+ * Remove a step from a workflow.
21
+ */
7
22
  remove(workflowUniqueId: string, stepUniqueId: string): Promise<void>;
23
+ /**
24
+ * Associate a prompt with a workflow step.
25
+ */
8
26
  addPrompt(stepUniqueId: string, data: AddStepPromptRequest): Promise<void>;
27
+ /**
28
+ * Associate an agent with a workflow step.
29
+ */
9
30
  addAgent(stepUniqueId: string, data: AddStepAgentRequest): Promise<void>;
10
31
  }
11
32
  export declare function createWorkflowStepsService(transport: Transport, _config: {
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-steps.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/workflow-steps.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO,KAAK,EACV,YAAY,EACZ,sBAAsB,EACtB,yBAAyB,EACzB,oBAAoB,EACpB,mBAAmB,EACpB,MAAM,2BAA2B,CAAC;AAGnC,MAAM,WAAW,oBAAoB;IACnC,GAAG,CAAC,gBAAgB,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAC3E,GAAG,CAAC,gBAAgB,EAAE,MAAM,EAAE,IAAI,EAAE,sBAAsB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IACnF,MAAM,CAAC,gBAAgB,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAC/G,MAAM,CAAC,gBAAgB,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACtE,SAAS,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3E,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1E;AAED,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,oBAAoB,CAuDjH"}
1
+ {"version":3,"file":"workflow-steps.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/workflow-steps.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO,KAAK,EACV,YAAY,EACZ,sBAAsB,EACtB,yBAAyB,EACzB,oBAAoB,EACpB,mBAAmB,EACpB,MAAM,2BAA2B,CAAC;AAGnC,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,GAAG,CAAC,gBAAgB,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAE3E;;;OAGG;IACH,GAAG,CAAC,gBAAgB,EAAE,MAAM,EAAE,IAAI,EAAE,sBAAsB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAEnF;;;OAGG;IACH,MAAM,CAAC,gBAAgB,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAE/G;;OAEG;IACH,MAAM,CAAC,gBAAgB,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEtE;;OAEG;IACH,SAAS,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE3E;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1E;AAED,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,oBAAoB,CAuDjH"}
@@ -1,13 +1,44 @@
1
1
  import type { Transport, PageResult } from '@23blocks/contracts';
2
2
  import type { Workflow, CreateWorkflowRequest, UpdateWorkflowRequest, ListWorkflowsParams, RunWorkflowRequest, RunWorkflowResponse } from '../types/workflow.js';
3
3
  export interface WorkflowsService {
4
+ /**
5
+ * List workflows with optional filtering and sorting.
6
+ * @returns Paginated list of Workflow records with metadata.
7
+ */
4
8
  list(params?: ListWorkflowsParams): Promise<PageResult<Workflow>>;
9
+ /**
10
+ * Get a single workflow by unique ID.
11
+ * @returns The matching Workflow record.
12
+ */
5
13
  get(uniqueId: string): Promise<Workflow>;
14
+ /**
15
+ * Create a new workflow.
16
+ * @returns The newly created Workflow record.
17
+ */
6
18
  create(data: CreateWorkflowRequest): Promise<Workflow>;
19
+ /**
20
+ * Update an existing workflow.
21
+ * @returns The updated Workflow record.
22
+ */
7
23
  update(uniqueId: string, data: UpdateWorkflowRequest): Promise<Workflow>;
24
+ /**
25
+ * Delete a workflow.
26
+ */
8
27
  delete(uniqueId: string): Promise<void>;
28
+ /**
29
+ * Run a workflow with input data.
30
+ * @returns RunWorkflowResponse with execution ID, status, and output.
31
+ */
9
32
  run(uniqueId: string, data: RunWorkflowRequest): Promise<RunWorkflowResponse>;
33
+ /**
34
+ * Pause a running workflow.
35
+ * @returns The updated Workflow record with paused status.
36
+ */
10
37
  pause(uniqueId: string): Promise<Workflow>;
38
+ /**
39
+ * Resume a paused workflow.
40
+ * @returns The updated Workflow record with resumed status.
41
+ */
11
42
  resume(uniqueId: string): Promise<Workflow>;
12
43
  }
13
44
  export declare function createWorkflowsService(transport: Transport, _config: {
@@ -1 +1 @@
1
- {"version":3,"file":"workflows.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/workflows.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,QAAQ,EACR,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,sBAAsB,CAAC;AAG9B,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,MAAM,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,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O,CAAC,QAAQ,CAAC,CAAC;IAEzC;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAEvD;;;OAGG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAEzE;;OAEG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAExC;;;OAGG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAE9E;;;OAGG;IACH,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAE3C;;;OAGG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;CAC7C;AAED,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,gBAAgB,CA2EzG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@23blocks/block-jarvis",
3
- "version": "3.1.7",
3
+ "version": "3.2.0",
4
4
  "description": "Jarvis AI block for 23blocks SDK - agents, prompts, workflows, executions, conversations",
5
5
  "license": "MIT",
6
6
  "author": "23blocks <hello@23blocks.com>",