@flowcore/sdk 1.24.4 → 1.26.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 (85) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/README.md +238 -0
  3. package/esm/commands/ai-agent-coordinator/artifact-get.command.d.ts +22 -0
  4. package/esm/commands/ai-agent-coordinator/artifact-get.command.d.ts.map +1 -0
  5. package/esm/commands/ai-agent-coordinator/artifact-get.command.js +52 -0
  6. package/esm/commands/ai-agent-coordinator/context-add-item.command.d.ts +28 -0
  7. package/esm/commands/ai-agent-coordinator/context-add-item.command.d.ts.map +1 -0
  8. package/esm/commands/ai-agent-coordinator/context-add-item.command.js +34 -0
  9. package/esm/commands/ai-agent-coordinator/context-remove-item.command.d.ts +28 -0
  10. package/esm/commands/ai-agent-coordinator/context-remove-item.command.d.ts.map +1 -0
  11. package/esm/commands/ai-agent-coordinator/context-remove-item.command.js +32 -0
  12. package/esm/commands/ai-agent-coordinator/conversation-delete.command.d.ts +25 -0
  13. package/esm/commands/ai-agent-coordinator/conversation-delete.command.d.ts.map +1 -0
  14. package/esm/commands/ai-agent-coordinator/conversation-delete.command.js +30 -0
  15. package/esm/commands/ai-agent-coordinator/conversation-get.command.d.ts +27 -0
  16. package/esm/commands/ai-agent-coordinator/conversation-get.command.d.ts.map +1 -0
  17. package/esm/commands/ai-agent-coordinator/conversation-get.command.js +36 -0
  18. package/esm/commands/ai-agent-coordinator/conversation-list.command.d.ts +23 -0
  19. package/esm/commands/ai-agent-coordinator/conversation-list.command.d.ts.map +1 -0
  20. package/esm/commands/ai-agent-coordinator/conversation-list.command.js +29 -0
  21. package/esm/commands/ai-agent-coordinator/conversation-stream.command.d.ts +30 -0
  22. package/esm/commands/ai-agent-coordinator/conversation-stream.command.d.ts.map +1 -0
  23. package/esm/commands/ai-agent-coordinator/conversation-stream.command.js +36 -0
  24. package/esm/commands/ai-agent-coordinator/mod.d.ts +8 -0
  25. package/esm/commands/ai-agent-coordinator/mod.d.ts.map +1 -0
  26. package/esm/commands/ai-agent-coordinator/mod.js +7 -0
  27. package/esm/common/command.d.ts.map +1 -1
  28. package/esm/common/command.js +3 -2
  29. package/esm/common/websocket-client.d.ts +109 -0
  30. package/esm/common/websocket-client.d.ts.map +1 -0
  31. package/esm/common/websocket-client.js +391 -0
  32. package/esm/common/websocket-command.d.ts +54 -0
  33. package/esm/common/websocket-command.d.ts.map +1 -0
  34. package/esm/common/websocket-command.js +1 -0
  35. package/esm/contracts/ai-agent-coordinator-stream.d.ts +85 -0
  36. package/esm/contracts/ai-agent-coordinator-stream.d.ts.map +1 -0
  37. package/esm/contracts/ai-agent-coordinator-stream.js +1 -0
  38. package/esm/contracts/ai-agent-coordinator.d.ts +41 -0
  39. package/esm/contracts/ai-agent-coordinator.d.ts.map +1 -0
  40. package/esm/contracts/ai-agent-coordinator.js +1 -0
  41. package/esm/mod.d.ts +8 -2
  42. package/esm/mod.d.ts.map +1 -1
  43. package/esm/mod.js +8 -2
  44. package/package.json +1 -1
  45. package/script/commands/ai-agent-coordinator/artifact-get.command.d.ts +22 -0
  46. package/script/commands/ai-agent-coordinator/artifact-get.command.d.ts.map +1 -0
  47. package/script/commands/ai-agent-coordinator/artifact-get.command.js +56 -0
  48. package/script/commands/ai-agent-coordinator/context-add-item.command.d.ts +28 -0
  49. package/script/commands/ai-agent-coordinator/context-add-item.command.d.ts.map +1 -0
  50. package/script/commands/ai-agent-coordinator/context-add-item.command.js +38 -0
  51. package/script/commands/ai-agent-coordinator/context-remove-item.command.d.ts +28 -0
  52. package/script/commands/ai-agent-coordinator/context-remove-item.command.d.ts.map +1 -0
  53. package/script/commands/ai-agent-coordinator/context-remove-item.command.js +36 -0
  54. package/script/commands/ai-agent-coordinator/conversation-delete.command.d.ts +25 -0
  55. package/script/commands/ai-agent-coordinator/conversation-delete.command.d.ts.map +1 -0
  56. package/script/commands/ai-agent-coordinator/conversation-delete.command.js +34 -0
  57. package/script/commands/ai-agent-coordinator/conversation-get.command.d.ts +27 -0
  58. package/script/commands/ai-agent-coordinator/conversation-get.command.d.ts.map +1 -0
  59. package/script/commands/ai-agent-coordinator/conversation-get.command.js +40 -0
  60. package/script/commands/ai-agent-coordinator/conversation-list.command.d.ts +23 -0
  61. package/script/commands/ai-agent-coordinator/conversation-list.command.d.ts.map +1 -0
  62. package/script/commands/ai-agent-coordinator/conversation-list.command.js +33 -0
  63. package/script/commands/ai-agent-coordinator/conversation-stream.command.d.ts +30 -0
  64. package/script/commands/ai-agent-coordinator/conversation-stream.command.d.ts.map +1 -0
  65. package/script/commands/ai-agent-coordinator/conversation-stream.command.js +40 -0
  66. package/script/commands/ai-agent-coordinator/mod.d.ts +8 -0
  67. package/script/commands/ai-agent-coordinator/mod.d.ts.map +1 -0
  68. package/script/commands/ai-agent-coordinator/mod.js +23 -0
  69. package/script/common/command.d.ts.map +1 -1
  70. package/script/common/command.js +27 -3
  71. package/script/common/websocket-client.d.ts +109 -0
  72. package/script/common/websocket-client.d.ts.map +1 -0
  73. package/script/common/websocket-client.js +418 -0
  74. package/script/common/websocket-command.d.ts +54 -0
  75. package/script/common/websocket-command.d.ts.map +1 -0
  76. package/script/common/websocket-command.js +2 -0
  77. package/script/contracts/ai-agent-coordinator-stream.d.ts +85 -0
  78. package/script/contracts/ai-agent-coordinator-stream.d.ts.map +1 -0
  79. package/script/contracts/ai-agent-coordinator-stream.js +2 -0
  80. package/script/contracts/ai-agent-coordinator.d.ts +41 -0
  81. package/script/contracts/ai-agent-coordinator.d.ts.map +1 -0
  82. package/script/contracts/ai-agent-coordinator.js +2 -0
  83. package/script/mod.d.ts +8 -2
  84. package/script/mod.d.ts.map +1 -1
  85. package/script/mod.js +11 -2
@@ -0,0 +1,54 @@
1
+ import type { Observable } from "rxjs";
2
+ import type { StreamChunk } from "../contracts/ai-agent-coordinator-stream.js";
3
+ /**
4
+ * Interface for a command that configures a WebSocket stream connection.
5
+ * @template Config - The type of the configuration data needed to initiate the stream.
6
+ * @template SendPayload - The type of data that can be sent *to* the stream after connection.
7
+ */
8
+ export interface WebSocketCommand<Config, SendPayload> {
9
+ /**
10
+ * Gets the configuration data needed to establish the connection.
11
+ */
12
+ getConfig(): Config;
13
+ /**
14
+ * Gets the base WebSocket URL (e.g., wss://server.api.flowcore.io).
15
+ * @returns The base WebSocket URL string.
16
+ */
17
+ getWebSocketBaseUrl(): string;
18
+ /**
19
+ * Gets the specific path segment for the WebSocket URL based on the config
20
+ * (e.g., /api/v1/stream/entity/{id}).
21
+ * @param config - The configuration object.
22
+ * @returns The path segment string.
23
+ */
24
+ getWebSocketPathSegment(config: Config): string;
25
+ /**
26
+ * Serializes the payload to be sent over the WebSocket.
27
+ * Default implementation might be JSON.stringify.
28
+ * @param payload - The payload object to send.
29
+ * @returns The serialized string representation.
30
+ */
31
+ serializeSendPayload?(payload: SendPayload): string;
32
+ }
33
+ /**
34
+ * Interface representing an active WebSocket stream connection.
35
+ * @template SendPayload - The type of data that can be sent to the stream.
36
+ */
37
+ export interface ActiveStreamInterface<SendPayload> {
38
+ /**
39
+ * An Observable emitting the raw data chunks received from the WebSocket.
40
+ * Consumers should filter/map this observable based on the specific stream protocol.
41
+ */
42
+ output$: Observable<StreamChunk>;
43
+ /**
44
+ * Sends a payload to the WebSocket stream.
45
+ * @param payload - The data to send, conforming to the SendPayload type.
46
+ * @returns True if the message was queued to be sent, false otherwise (e.g., socket not open).
47
+ */
48
+ send(payload: SendPayload): boolean;
49
+ /**
50
+ * Disconnects the WebSocket stream gracefully.
51
+ */
52
+ disconnect(): void;
53
+ }
54
+ //# sourceMappingURL=websocket-command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"websocket-command.d.ts","sourceRoot":"","sources":["../../src/common/websocket-command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAA;AACtC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6CAA6C,CAAA;AAE9E;;;;GAIG;AACH,MAAM,WAAW,gBAAgB,CAAC,MAAM,EAAE,WAAW;IACnD;;OAEG;IACH,SAAS,IAAI,MAAM,CAAA;IAEnB;;;OAGG;IACH,mBAAmB,IAAI,MAAM,CAAA;IAE7B;;;;;OAKG;IACH,uBAAuB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAA;IAE/C;;;;;OAKG;IACH,oBAAoB,CAAC,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,CAAA;CACpD;AAED;;;GAGG;AACH,MAAM,WAAW,qBAAqB,CAAC,WAAW;IAChD;;;OAGG;IACH,OAAO,EAAE,UAAU,CAAC,WAAW,CAAC,CAAA;IAEhC;;;;OAIG;IACH,IAAI,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAA;IAEnC;;OAEG;IACH,UAAU,IAAI,IAAI,CAAA;CACnB"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,85 @@
1
+ import type { ContextItem } from "./ai-agent-coordinator.js";
2
+ /**
3
+ * Configuration for initiating an AI Agent Coordinator stream.
4
+ */
5
+ export interface AiStreamConfig {
6
+ /** The ID of the conversation to stream. */
7
+ conversationId: string;
8
+ }
9
+ export interface MarkdownDeltaChunk {
10
+ type: "markdown_delta";
11
+ /** The chunk of markdown text. */
12
+ content: string;
13
+ }
14
+ export interface ToolStartChunk {
15
+ type: "tool_start";
16
+ /** The name of the tool being executed. */
17
+ tool_name: string;
18
+ }
19
+ export interface ToolInputChunk {
20
+ type: "tool_input";
21
+ /** The input provided to the tool (can be any JSON structure). */
22
+ content: unknown;
23
+ }
24
+ export interface ToolOutputChunk {
25
+ type: "tool_output";
26
+ /** The output received from the tool (can be any JSON structure). */
27
+ content: unknown;
28
+ }
29
+ export interface ToolErrorChunk {
30
+ type: "tool_error";
31
+ content: {
32
+ /** A summary error message. */
33
+ error_message: string;
34
+ /** Optional additional details about the error. */
35
+ details?: string | unknown;
36
+ };
37
+ }
38
+ export interface ContextAddItemChunk {
39
+ type: "context_add_item";
40
+ /** The full context item that was added. */
41
+ item: ContextItem;
42
+ }
43
+ export interface TitleUpdateChunk {
44
+ type: "title_update";
45
+ /** The new suggested title for the conversation. */
46
+ title: string;
47
+ }
48
+ export interface ArtifactStartChunk {
49
+ type: "artifact_start";
50
+ artifactId: string;
51
+ artifactType: string;
52
+ title: string;
53
+ }
54
+ export interface ArtifactContentDeltaChunk {
55
+ type: "artifact_content_delta";
56
+ artifactId: string;
57
+ /** The chunk of artifact text content. */
58
+ content: string;
59
+ }
60
+ export interface ArtifactDataChunk {
61
+ type: "artifact_data";
62
+ artifactId: string;
63
+ /** The complete JSON data for the artifact. */
64
+ data: unknown;
65
+ }
66
+ export interface ArtifactUrlChunk {
67
+ type: "artifact_url";
68
+ artifactId: string;
69
+ /** The URL pointing to the artifact content. */
70
+ url: string;
71
+ }
72
+ export interface ArtifactEndChunk {
73
+ type: "artifact_end";
74
+ artifactId: string;
75
+ }
76
+ export interface ConversationCreatedChunk {
77
+ type: "conversation_created";
78
+ /** The ID of the newly created conversation. */
79
+ conversationId: string;
80
+ }
81
+ /**
82
+ * A discriminated union of all possible chunk types streamed from the backend.
83
+ */
84
+ export type StreamChunk = MarkdownDeltaChunk | ToolStartChunk | ToolInputChunk | ToolOutputChunk | ToolErrorChunk | ContextAddItemChunk | TitleUpdateChunk | ArtifactStartChunk | ArtifactContentDeltaChunk | ArtifactDataChunk | ArtifactUrlChunk | ArtifactEndChunk | ConversationCreatedChunk;
85
+ //# sourceMappingURL=ai-agent-coordinator-stream.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai-agent-coordinator-stream.d.ts","sourceRoot":"","sources":["../../src/contracts/ai-agent-coordinator-stream.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAI5D;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,4CAA4C;IAC5C,cAAc,EAAE,MAAM,CAAA;CAEvB;AAID,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,gBAAgB,CAAA;IACtB,kCAAkC;IAClC,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,YAAY,CAAA;IAClB,2CAA2C;IAC3C,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,YAAY,CAAA;IAClB,kEAAkE;IAClE,OAAO,EAAE,OAAO,CAAA;CACjB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,aAAa,CAAA;IACnB,qEAAqE;IACrE,OAAO,EAAE,OAAO,CAAA;CACjB;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,YAAY,CAAA;IAClB,OAAO,EAAE;QACP,+BAA+B;QAC/B,aAAa,EAAE,MAAM,CAAA;QACrB,mDAAmD;QACnD,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;KAC3B,CAAA;CACF;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,kBAAkB,CAAA;IACxB,4CAA4C;IAC5C,IAAI,EAAE,WAAW,CAAA;CAClB;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,cAAc,CAAA;IACpB,oDAAoD;IACpD,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,gBAAgB,CAAA;IACtB,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,MAAM,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,wBAAwB,CAAA;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,0CAA0C;IAC1C,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,eAAe,CAAA;IACrB,UAAU,EAAE,MAAM,CAAA;IAClB,+CAA+C;IAC/C,IAAI,EAAE,OAAO,CAAA;CACd;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,cAAc,CAAA;IACpB,UAAU,EAAE,MAAM,CAAA;IAClB,gDAAgD;IAChD,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,cAAc,CAAA;IACpB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,sBAAsB,CAAA;IAC5B,gDAAgD;IAChD,cAAc,EAAE,MAAM,CAAA;CACvB;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GACnB,kBAAkB,GAClB,cAAc,GACd,cAAc,GACd,eAAe,GACf,cAAc,GACd,mBAAmB,GACnB,gBAAgB,GAChB,kBAAkB,GAClB,yBAAyB,GACzB,iBAAiB,GACjB,gBAAgB,GAChB,gBAAgB,GAChB,wBAAwB,CAAA"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,41 @@
1
+ export interface ContextItem {
2
+ type: "tenant" | "dataCore" | "flowType" | "eventType" | string;
3
+ id: string;
4
+ name: string;
5
+ description: string;
6
+ }
7
+ export interface Message {
8
+ id: string;
9
+ role: "user" | "ai";
10
+ content: string;
11
+ timestamp: string;
12
+ }
13
+ export interface ConversationMetadata {
14
+ id: string;
15
+ title: string;
16
+ lastUpdated: string;
17
+ }
18
+ export interface Conversation extends ConversationMetadata {
19
+ context: ContextItem[];
20
+ messages: Message[];
21
+ }
22
+ export interface ConversationListResponse {
23
+ conversations: ConversationMetadata[];
24
+ }
25
+ export interface ConversationDeleteResponse {
26
+ message: string;
27
+ }
28
+ export interface ContextUpdateResponse {
29
+ context: ContextItem[];
30
+ }
31
+ export interface AddContextItem {
32
+ type: string;
33
+ id: string;
34
+ }
35
+ export interface AddContextItemsRequest {
36
+ items: AddContextItem[];
37
+ }
38
+ export interface RemoveContextItemRequest {
39
+ itemId: string;
40
+ }
41
+ //# sourceMappingURL=ai-agent-coordinator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai-agent-coordinator.d.ts","sourceRoot":"","sources":["../../src/contracts/ai-agent-coordinator.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,QAAQ,GAAG,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,MAAM,CAAA;IAC/D,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,YAAa,SAAQ,oBAAoB;IACxD,OAAO,EAAE,WAAW,EAAE,CAAA;IACtB,QAAQ,EAAE,OAAO,EAAE,CAAA;CACpB;AAED,MAAM,WAAW,wBAAwB;IACvC,aAAa,EAAE,oBAAoB,EAAE,CAAA;CACtC;AAED,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,WAAW,EAAE,CAAA;CACvB;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,CAAA;CACX;AAED,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,cAAc,EAAE,CAAA;CACxB;AAED,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,MAAM,CAAA;CACf"}
@@ -0,0 +1 @@
1
+ export {};
package/esm/mod.d.ts CHANGED
@@ -1,9 +1,15 @@
1
+ export * from "./commands/ai-agent-coordinator/mod.js";
1
2
  export * from "./commands/index.js";
2
- export * from "./common/command.js";
3
3
  export * from "./common/command-custom.js";
4
4
  export * from "./common/command-graphql.js";
5
+ export * from "./common/command.js";
5
6
  export * from "./common/flowcore-client.js";
6
- export * from "./common/notification-client.js";
7
+ export { NotificationClient, type NotificationClientOptions, type NotificationEvent, } from "./common/notification-client.js";
8
+ export * from "./common/websocket-client.js";
9
+ export { type OidcClient, WebSocketClient, type WebSocketClientOptions } from "./common/websocket-client.js";
10
+ export * from "./common/websocket-command.js";
11
+ export * from "./contracts/ai-agent-coordinator-stream.js";
12
+ export * from "./contracts/ai-agent-coordinator.js";
7
13
  export * from "./contracts/index.js";
8
14
  export * from "./exceptions/index.js";
9
15
  export * from "./utils/parse-response-helper.js";
package/esm/mod.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA;AACrC,cAAc,kCAAkC,CAAA"}
1
+ {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA,cAAc,wCAAwC,CAAA;AACtD,cAAc,qBAAqB,CAAA;AACnC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,qBAAqB,CAAA;AACnC,cAAc,6BAA6B,CAAA;AAC3C,OAAO,EACL,kBAAkB,EAClB,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,GACvB,MAAM,iCAAiC,CAAA;AACxC,cAAc,8BAA8B,CAAA;AAC5C,OAAO,EAAE,KAAK,UAAU,EAAE,eAAe,EAAE,KAAK,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AAC5G,cAAc,+BAA+B,CAAA;AAC7C,cAAc,4CAA4C,CAAA;AAC1D,cAAc,qCAAqC,CAAA;AACnD,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA;AACrC,cAAc,kCAAkC,CAAA"}
package/esm/mod.js CHANGED
@@ -1,9 +1,15 @@
1
+ export * from "./commands/ai-agent-coordinator/mod.js";
1
2
  export * from "./commands/index.js";
2
- export * from "./common/command.js";
3
3
  export * from "./common/command-custom.js";
4
4
  export * from "./common/command-graphql.js";
5
+ export * from "./common/command.js";
5
6
  export * from "./common/flowcore-client.js";
6
- export * from "./common/notification-client.js";
7
+ export { NotificationClient, } from "./common/notification-client.js";
8
+ export * from "./common/websocket-client.js";
9
+ export { WebSocketClient } from "./common/websocket-client.js";
10
+ export * from "./common/websocket-command.js";
11
+ export * from "./contracts/ai-agent-coordinator-stream.js";
12
+ export * from "./contracts/ai-agent-coordinator.js";
7
13
  export * from "./contracts/index.js";
8
14
  export * from "./exceptions/index.js";
9
15
  export * from "./utils/parse-response-helper.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowcore/sdk",
3
- "version": "1.24.4",
3
+ "version": "1.26.0",
4
4
  "description": "Flowcore SDK",
5
5
  "homepage": "https://github.com/flowcore-io/flowcore-sdk#readme",
6
6
  "repository": {
@@ -0,0 +1,22 @@
1
+ import { type TObject } from "@sinclair/typebox";
2
+ import { Command } from "../../common/command.js";
3
+ import type { ClientError } from "../../exceptions/client-error.js";
4
+ export interface ArtifactGetCommandInput {
5
+ artifactId: string;
6
+ }
7
+ /**
8
+ * Represents the structure of the artifact returned by the API.
9
+ * Based on the Swagger spec example.
10
+ */
11
+ declare const ArtifactSchema: TObject;
12
+ export type Artifact = typeof ArtifactSchema.static;
13
+ export declare class ArtifactGetCommand extends Command<ArtifactGetCommandInput, Artifact> {
14
+ protected getMethod(): string;
15
+ protected getBaseUrl(): string;
16
+ protected getPath(): string;
17
+ protected getHeaders(): Record<string, string>;
18
+ protected parseResponse(rawResponse: unknown): Artifact;
19
+ protected handleClientError(error: ClientError): void;
20
+ }
21
+ export {};
22
+ //# sourceMappingURL=artifact-get.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"artifact-get.command.d.ts","sourceRoot":"","sources":["../../../src/commands/ai-agent-coordinator/artifact-get.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAQ,MAAM,mBAAmB,CAAA;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAInE,MAAM,WAAW,uBAAuB;IACtC,UAAU,EAAE,MAAM,CAAA;CACnB;AAED;;;GAGG;AACH,QAAA,MAAM,cAAc,EAAE,OAcpB,CAAA;AAEF,MAAM,MAAM,QAAQ,GAAG,OAAO,cAAc,CAAC,MAAM,CAAA;AAEnD,qBAAa,kBAAmB,SAAQ,OAAO,CAAC,uBAAuB,EAAE,QAAQ,CAAC;cAC7D,SAAS,IAAI,MAAM;cAInB,UAAU,IAAI,MAAM;cAKpB,OAAO,IAAI,MAAM;cAIjB,UAAU,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;cAQpC,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,QAAQ;cAK7C,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;CAM/D"}
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ArtifactGetCommand = void 0;
4
+ const typebox_1 = require("@sinclair/typebox");
5
+ const command_js_1 = require("../../common/command.js");
6
+ const not_found_js_1 = require("../../exceptions/not-found.js");
7
+ const parse_response_helper_js_1 = require("../../utils/parse-response-helper.js");
8
+ /**
9
+ * Represents the structure of the artifact returned by the API.
10
+ * Based on the Swagger spec example.
11
+ */
12
+ const ArtifactSchema = typebox_1.Type.Object({
13
+ artifactId: typebox_1.Type.String({ example: "artifact_code_123" }),
14
+ artifactType: typebox_1.Type.Union([
15
+ typebox_1.Type.Literal("code"),
16
+ typebox_1.Type.Literal("markdown"),
17
+ typebox_1.Type.Literal("table"),
18
+ typebox_1.Type.Literal("visualization"),
19
+ typebox_1.Type.Literal("html"),
20
+ typebox_1.Type.Literal("mermaid"),
21
+ ], { description: "Type of artifact" }),
22
+ title: typebox_1.Type.String({ example: "Example Code Snippet" }),
23
+ content: typebox_1.Type.Optional(typebox_1.Type.String({ description: "String content" })),
24
+ data: typebox_1.Type.Optional(typebox_1.Type.Unknown({ description: "JSON data" })),
25
+ url: typebox_1.Type.Optional(typebox_1.Type.String({ format: "uri", description: "URL content" })),
26
+ });
27
+ class ArtifactGetCommand extends command_js_1.Command {
28
+ getMethod() {
29
+ return "GET";
30
+ }
31
+ getBaseUrl() {
32
+ // Assuming the coordinator uses this base URL, adjust if needed
33
+ return "https://ai-coordinator.api.flowcore.io";
34
+ }
35
+ getPath() {
36
+ return `/api/v1/artifacts/${this.input.artifactId}`;
37
+ }
38
+ getHeaders() {
39
+ // GET requests typically don't need Content-Type
40
+ // Authorization header is handled by the FlowcoreClient
41
+ return {
42
+ "Accept": "application/json",
43
+ };
44
+ }
45
+ parseResponse(rawResponse) {
46
+ const response = (0, parse_response_helper_js_1.parseResponseHelper)(ArtifactSchema, rawResponse);
47
+ return response;
48
+ }
49
+ handleClientError(error) {
50
+ if (error.status === 404) {
51
+ throw new not_found_js_1.NotFoundException("Artifact", { id: this.input.artifactId });
52
+ }
53
+ throw error;
54
+ }
55
+ }
56
+ exports.ArtifactGetCommand = ArtifactGetCommand;
@@ -0,0 +1,28 @@
1
+ import type { Command } from "../../common/command.js";
2
+ import { Command as BaseCommandClass } from "../../common/command.js";
3
+ import type { AddContextItem, ContextUpdateResponse } from "../../contracts/ai-agent-coordinator.js";
4
+ /**
5
+ * Input for adding items to a conversation's context.
6
+ */
7
+ export type ContextAddItemCommandInput = {
8
+ /** The ID of the conversation to modify. */
9
+ conversationId: string;
10
+ /** An array of context items (type and ID) to add. */
11
+ items: AddContextItem[];
12
+ };
13
+ /**
14
+ * Output containing the updated context array after adding items.
15
+ */
16
+ export type ContextAddItemCommandOutput = ContextUpdateResponse;
17
+ /**
18
+ * Command to add one or more items to the context of a specific conversation.
19
+ */
20
+ export declare class ContextAddItemCommand extends BaseCommandClass<ContextAddItemCommandInput, ContextAddItemCommandOutput> implements Command<ContextAddItemCommandInput, ContextAddItemCommandOutput> {
21
+ constructor(input: ContextAddItemCommandInput);
22
+ protected getBaseUrl(): string;
23
+ protected getMethod(): string;
24
+ protected getPath(): string;
25
+ protected getBody(): Record<string, unknown>;
26
+ protected parseResponse(response: unknown): ContextAddItemCommandOutput;
27
+ }
28
+ //# sourceMappingURL=context-add-item.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-add-item.command.d.ts","sourceRoot":"","sources":["../../../src/commands/ai-agent-coordinator/context-add-item.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAA;AAKpG;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC,4CAA4C;IAC5C,cAAc,EAAE,MAAM,CAAA;IACtB,sDAAsD;IACtD,KAAK,EAAE,cAAc,EAAE,CAAA;CACxB,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,qBAAqB,CAAA;AAE/D;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,gBAAgB,CAAC,0BAA0B,EAAE,2BAA2B,CACjH,YAAW,OAAO,CAAC,0BAA0B,EAAE,2BAA2B,CAAC;gBAC/D,KAAK,EAAE,0BAA0B;cAI1B,UAAU,IAAI,MAAM;cAIpB,SAAS,IAAI,MAAM;cAInB,OAAO,IAAI,MAAM;cAIjB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;cAMlC,aAAa,CAAC,QAAQ,EAAE,OAAO,GAAG,2BAA2B;CASjF"}
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContextAddItemCommand = void 0;
4
+ const command_js_1 = require("../../common/command.js");
5
+ const service = "ai-coordinator";
6
+ const baseUrl = `https://${service}.api.flowcore.io`;
7
+ /**
8
+ * Command to add one or more items to the context of a specific conversation.
9
+ */
10
+ class ContextAddItemCommand extends command_js_1.Command {
11
+ constructor(input) {
12
+ super(input);
13
+ }
14
+ getBaseUrl() {
15
+ return baseUrl;
16
+ }
17
+ getMethod() {
18
+ return "POST";
19
+ }
20
+ getPath() {
21
+ return `/api/v1/conversations/${this.input.conversationId}/context/add`;
22
+ }
23
+ getBody() {
24
+ return { items: this.input.items };
25
+ }
26
+ // Headers will be handled by base class based on getBody()
27
+ parseResponse(response) {
28
+ const data = response;
29
+ // Add more robust checking if necessary
30
+ if (data && Array.isArray(data.context)) {
31
+ return data;
32
+ }
33
+ else {
34
+ throw new Error("Invalid response format for ContextAddItemCommand");
35
+ }
36
+ }
37
+ }
38
+ exports.ContextAddItemCommand = ContextAddItemCommand;
@@ -0,0 +1,28 @@
1
+ import type { Command } from "../../common/command.js";
2
+ import { Command as BaseCommandClass } from "../../common/command.js";
3
+ import type { ContextUpdateResponse } from "../../contracts/ai-agent-coordinator.js";
4
+ /**
5
+ * Input for removing an item from a conversation's context.
6
+ */
7
+ export type ContextRemoveItemCommandInput = {
8
+ /** The ID of the conversation to modify. */
9
+ conversationId: string;
10
+ /** The unique ID of the context item instance to remove. */
11
+ itemId: string;
12
+ };
13
+ /**
14
+ * Output containing the updated context array after removing the item.
15
+ */
16
+ export type ContextRemoveItemCommandOutput = ContextUpdateResponse;
17
+ /**
18
+ * Command to remove a specific item from the context of a conversation.
19
+ */
20
+ export declare class ContextRemoveItemCommand extends BaseCommandClass<ContextRemoveItemCommandInput, ContextRemoveItemCommandOutput> implements Command<ContextRemoveItemCommandInput, ContextRemoveItemCommandOutput> {
21
+ constructor(input: ContextRemoveItemCommandInput);
22
+ protected getBaseUrl(): string;
23
+ protected getMethod(): string;
24
+ protected getPath(): string;
25
+ protected getBody(): Record<string, unknown>;
26
+ protected parseResponse(response: unknown): ContextRemoveItemCommandOutput;
27
+ }
28
+ //# sourceMappingURL=context-remove-item.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-remove-item.command.d.ts","sourceRoot":"","sources":["../../../src/commands/ai-agent-coordinator/context-remove-item.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AACrE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAA;AAKpF;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG;IAC1C,4CAA4C;IAC5C,cAAc,EAAE,MAAM,CAAA;IACtB,4DAA4D;IAC5D,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,qBAAqB,CAAA;AAElE;;GAEG;AACH,qBAAa,wBACX,SAAQ,gBAAgB,CAAC,6BAA6B,EAAE,8BAA8B,CACtF,YAAW,OAAO,CAAC,6BAA6B,EAAE,8BAA8B,CAAC;gBACrE,KAAK,EAAE,6BAA6B;cAI7B,UAAU,IAAI,MAAM;cAIpB,SAAS,IAAI,MAAM;cAInB,OAAO,IAAI,MAAM;cAIjB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;cAIlC,aAAa,CAAC,QAAQ,EAAE,OAAO,GAAG,8BAA8B;CAQpF"}
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContextRemoveItemCommand = void 0;
4
+ const command_js_1 = require("../../common/command.js");
5
+ const service = "ai-coordinator";
6
+ const baseUrl = `https://${service}.api.flowcore.io`;
7
+ /**
8
+ * Command to remove a specific item from the context of a conversation.
9
+ */
10
+ class ContextRemoveItemCommand extends command_js_1.Command {
11
+ constructor(input) {
12
+ super(input);
13
+ }
14
+ getBaseUrl() {
15
+ return baseUrl;
16
+ }
17
+ getMethod() {
18
+ return "POST";
19
+ }
20
+ getPath() {
21
+ return `/api/v1/conversations/${this.input.conversationId}/context/remove`;
22
+ }
23
+ getBody() {
24
+ return { itemId: this.input.itemId };
25
+ }
26
+ parseResponse(response) {
27
+ const data = response;
28
+ if (data && Array.isArray(data.context)) {
29
+ return data;
30
+ }
31
+ else {
32
+ throw new Error("Invalid response format for ContextRemoveItemCommand");
33
+ }
34
+ }
35
+ }
36
+ exports.ContextRemoveItemCommand = ContextRemoveItemCommand;
@@ -0,0 +1,25 @@
1
+ import type { Command } from "../../common/command.js";
2
+ import { Command as BaseCommandClass } from "../../common/command.js";
3
+ import type { ConversationDeleteResponse } from "../../contracts/ai-agent-coordinator.js";
4
+ /**
5
+ * Input for deleting a specific conversation.
6
+ */
7
+ export type ConversationDeleteCommandInput = {
8
+ /** The unique ID of the conversation to delete. */
9
+ conversationId: string;
10
+ };
11
+ /**
12
+ * Output confirming the deletion of the conversation.
13
+ */
14
+ export type ConversationDeleteCommandOutput = ConversationDeleteResponse;
15
+ /**
16
+ * Command to delete a specific conversation by its ID.
17
+ */
18
+ export declare class ConversationDeleteCommand extends BaseCommandClass<ConversationDeleteCommandInput, ConversationDeleteCommandOutput> implements Command<ConversationDeleteCommandInput, ConversationDeleteCommandOutput> {
19
+ constructor(input: ConversationDeleteCommandInput);
20
+ protected getBaseUrl(): string;
21
+ protected getMethod(): string;
22
+ protected getPath(): string;
23
+ protected parseResponse(response: unknown): ConversationDeleteCommandOutput;
24
+ }
25
+ //# sourceMappingURL=conversation-delete.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversation-delete.command.d.ts","sourceRoot":"","sources":["../../../src/commands/ai-agent-coordinator/conversation-delete.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AACrE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAA;AAKzF;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG;IAC3C,mDAAmD;IACnD,cAAc,EAAE,MAAM,CAAA;CACvB,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,+BAA+B,GAAG,0BAA0B,CAAA;AAExE;;GAEG;AACH,qBAAa,yBACX,SAAQ,gBAAgB,CAAC,8BAA8B,EAAE,+BAA+B,CACxF,YAAW,OAAO,CAAC,8BAA8B,EAAE,+BAA+B,CAAC;gBACvE,KAAK,EAAE,8BAA8B;cAI9B,UAAU,IAAI,MAAM;cAIpB,SAAS,IAAI,MAAM;cAInB,OAAO,IAAI,MAAM;cAMjB,aAAa,CAAC,QAAQ,EAAE,OAAO,GAAG,+BAA+B;CAUrF"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ConversationDeleteCommand = void 0;
4
+ const command_js_1 = require("../../common/command.js");
5
+ const service = "ai-coordinator";
6
+ const baseUrl = `https://${service}.api.flowcore.io`;
7
+ /**
8
+ * Command to delete a specific conversation by its ID.
9
+ */
10
+ class ConversationDeleteCommand extends command_js_1.Command {
11
+ constructor(input) {
12
+ super(input);
13
+ }
14
+ getBaseUrl() {
15
+ return baseUrl;
16
+ }
17
+ getMethod() {
18
+ return "DELETE";
19
+ }
20
+ getPath() {
21
+ return `/api/v1/conversations/${this.input.conversationId}`;
22
+ }
23
+ // No need to override getBody or getHeaders for DELETE with no body
24
+ parseResponse(response) {
25
+ const data = response;
26
+ if (data && data.message) {
27
+ return data;
28
+ }
29
+ else {
30
+ throw new Error("Invalid response format for ConversationDeleteCommand");
31
+ }
32
+ }
33
+ }
34
+ exports.ConversationDeleteCommand = ConversationDeleteCommand;
@@ -0,0 +1,27 @@
1
+ import type { Command } from "../../common/command.js";
2
+ import { Command as BaseCommandClass } from "../../common/command.js";
3
+ import type { Conversation } from "../../contracts/ai-agent-coordinator.js";
4
+ import type { ClientError } from "../../exceptions/client-error.js";
5
+ /**
6
+ * Input for fetching a specific conversation.
7
+ */
8
+ export type ConversationGetCommandInput = {
9
+ /** The unique ID of the conversation to fetch. */
10
+ conversationId: string;
11
+ };
12
+ /**
13
+ * Output containing the full details of the fetched conversation.
14
+ */
15
+ export type ConversationGetCommandOutput = Conversation;
16
+ /**
17
+ * Command to fetch the details of a specific conversation by its ID.
18
+ */
19
+ export declare class ConversationGetCommand extends BaseCommandClass<ConversationGetCommandInput, ConversationGetCommandOutput> implements Command<ConversationGetCommandInput, ConversationGetCommandOutput> {
20
+ constructor(input: ConversationGetCommandInput);
21
+ protected getBaseUrl(): string;
22
+ protected getMethod(): string;
23
+ protected getPath(): string;
24
+ protected parseResponse(response: unknown): ConversationGetCommandOutput;
25
+ protected handleClientError(error: ClientError): void;
26
+ }
27
+ //# sourceMappingURL=conversation-get.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversation-get.command.d.ts","sourceRoot":"","sources":["../../../src/commands/ai-agent-coordinator/conversation-get.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAA;AAC3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAMnE;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,kDAAkD;IAClD,cAAc,EAAE,MAAM,CAAA;CACvB,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG,YAAY,CAAA;AAEvD;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,gBAAgB,CAAC,2BAA2B,EAAE,4BAA4B,CACpH,YAAW,OAAO,CAAC,2BAA2B,EAAE,4BAA4B,CAAC;gBACjE,KAAK,EAAE,2BAA2B;cAI3B,UAAU,IAAI,MAAM;cAIpB,SAAS,IAAI,MAAM;cAInB,OAAO,IAAI,MAAM;cAIjB,aAAa,CAAC,QAAQ,EAAE,OAAO,GAAG,4BAA4B;cAS9D,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;CAS/D"}
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ConversationGetCommand = void 0;
4
+ const command_js_1 = require("../../common/command.js");
5
+ const index_js_1 = require("../../exceptions/index.js");
6
+ const service = "ai-coordinator";
7
+ const baseUrl = `https://${service}.api.flowcore.io`;
8
+ /**
9
+ * Command to fetch the details of a specific conversation by its ID.
10
+ */
11
+ class ConversationGetCommand extends command_js_1.Command {
12
+ constructor(input) {
13
+ super(input);
14
+ }
15
+ getBaseUrl() {
16
+ return baseUrl;
17
+ }
18
+ getMethod() {
19
+ return "GET";
20
+ }
21
+ getPath() {
22
+ return `/api/v1/conversations/${this.input.conversationId}`;
23
+ }
24
+ parseResponse(response) {
25
+ const data = response;
26
+ if (data && data.id) {
27
+ return data;
28
+ }
29
+ else {
30
+ throw new Error("Invalid response format for ConversationGetCommand");
31
+ }
32
+ }
33
+ handleClientError(error) {
34
+ if (error.status === 404) {
35
+ throw new index_js_1.NotFoundException("Conversation", { conversationId: this.input.conversationId });
36
+ }
37
+ throw error;
38
+ }
39
+ }
40
+ exports.ConversationGetCommand = ConversationGetCommand;
@@ -0,0 +1,23 @@
1
+ import type { Command } from "../../common/command.js";
2
+ import { Command as BaseCommandClass } from "../../common/command.js";
3
+ import type { ConversationMetadata } from "../../contracts/ai-agent-coordinator.js";
4
+ /**
5
+ * Input for listing conversations.
6
+ * Currently empty as no filters are supported.
7
+ */
8
+ export type ConversationListCommandInput = Record<string, never>;
9
+ /**
10
+ * Output containing a list of conversation metadata.
11
+ */
12
+ export type ConversationListCommandOutput = ConversationMetadata[];
13
+ /**
14
+ * Command to list all conversations accessible by the user.
15
+ */
16
+ export declare class ConversationListCommand extends BaseCommandClass<ConversationListCommandInput, ConversationListCommandOutput> implements Command<ConversationListCommandInput, ConversationListCommandOutput> {
17
+ constructor();
18
+ protected getBaseUrl(): string;
19
+ protected getMethod(): string;
20
+ protected getPath(): string;
21
+ protected parseResponse(response: unknown): ConversationListCommandOutput;
22
+ }
23
+ //# sourceMappingURL=conversation-list.command.d.ts.map