@reminix/cli 0.1.22 → 0.1.24

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.
@@ -125,7 +125,7 @@ export interface paths {
125
125
  *
126
126
  * **Supported Agents:** Custom agents only. Managed agents should use the /chat endpoint.
127
127
  *
128
- * **Input:** Pass structured input data matching the agent's parameter schema.
128
+ * **Input:** Pass structured input data matching the agent's input schema.
129
129
  *
130
130
  * **Timeout:** Agent invocations have a 60-second timeout. If the agent takes longer to respond,
131
131
  * you will receive a 504 Gateway Timeout error. For long-running tasks, consider using streaming
@@ -225,7 +225,7 @@ export interface paths {
225
225
  put?: never;
226
226
  /**
227
227
  * Call a tool
228
- * @description Call a tool with the provided input parameters.
228
+ * @description Call a tool with the provided input.
229
229
  *
230
230
  * **Timeout:** Tool calls have a 60-second timeout. If the tool takes longer to respond,
231
231
  * you will receive a 504 Gateway Timeout error.
@@ -452,7 +452,7 @@ export interface paths {
452
452
  * Use filters to narrow down results by type, source, name, or status.
453
453
  *
454
454
  * **Filters:**
455
- * - `type`: Filter by execution type (agent_execute, tool_execute)
455
+ * - `type`: Filter by execution type (agent_invoke, agent_chat, tool_call)
456
456
  * - `source`: Filter by request source (api, cli, dashboard, widget, sdk)
457
457
  * - `name`: Filter by agent or tool name
458
458
  * - `status`: Filter by result status (success, error, timeout)
@@ -537,6 +537,218 @@ export interface paths {
537
537
  patch?: never;
538
538
  trace?: never;
539
539
  };
540
+ "/memories": {
541
+ parameters: {
542
+ query?: never;
543
+ header?: never;
544
+ path?: never;
545
+ cookie?: never;
546
+ };
547
+ /**
548
+ * List memories
549
+ * @description List all memory keys for a specific identity.
550
+ *
551
+ * Identity is specified via query parameters with the `identity.` prefix.
552
+ * For example: `?identity.user_id=user_123&identity.tenant_id=acme`
553
+ *
554
+ * Returns memory keys and metadata (not full values for efficiency).
555
+ */
556
+ get: operations["listMemories"];
557
+ put?: never;
558
+ /**
559
+ * Store a memory
560
+ * @description Store a key-value memory for a specific identity.
561
+ *
562
+ * If a memory with the same key already exists, it will be updated.
563
+ */
564
+ post: operations["storeMemory"];
565
+ /**
566
+ * Delete all memories
567
+ * @description Delete all memories for a specific identity.
568
+ */
569
+ delete: operations["deleteAllMemories"];
570
+ options?: never;
571
+ head?: never;
572
+ patch?: never;
573
+ trace?: never;
574
+ };
575
+ "/memories/{key}": {
576
+ parameters: {
577
+ query?: never;
578
+ header?: never;
579
+ path?: never;
580
+ cookie?: never;
581
+ };
582
+ /**
583
+ * Get a memory
584
+ * @description Get a memory value by key for a specific identity.
585
+ *
586
+ * Identity is specified via query parameters with the `identity.` prefix.
587
+ */
588
+ get: operations["getMemory"];
589
+ put?: never;
590
+ post?: never;
591
+ /**
592
+ * Delete a memory
593
+ * @description Delete a memory by key for a specific identity.
594
+ */
595
+ delete: operations["deleteMemory"];
596
+ options?: never;
597
+ head?: never;
598
+ patch?: never;
599
+ trace?: never;
600
+ };
601
+ "/knowledge/collections": {
602
+ parameters: {
603
+ query?: never;
604
+ header?: never;
605
+ path?: never;
606
+ cookie?: never;
607
+ };
608
+ /**
609
+ * List knowledge collections
610
+ * @description List all knowledge collections for the project.
611
+ */
612
+ get: operations["listCollections"];
613
+ put?: never;
614
+ /**
615
+ * Create a knowledge collection
616
+ * @description Create a new knowledge collection for storing documents.
617
+ */
618
+ post: operations["createCollection"];
619
+ delete?: never;
620
+ options?: never;
621
+ head?: never;
622
+ patch?: never;
623
+ trace?: never;
624
+ };
625
+ "/knowledge/collections/{id}": {
626
+ parameters: {
627
+ query?: never;
628
+ header?: never;
629
+ path?: never;
630
+ cookie?: never;
631
+ };
632
+ /**
633
+ * Get a knowledge collection
634
+ * @description Get details of a knowledge collection including document stats.
635
+ */
636
+ get: operations["getCollection"];
637
+ put?: never;
638
+ post?: never;
639
+ /**
640
+ * Delete a knowledge collection
641
+ * @description Delete a knowledge collection and all its documents.
642
+ */
643
+ delete: operations["deleteCollection"];
644
+ options?: never;
645
+ head?: never;
646
+ /**
647
+ * Update a knowledge collection
648
+ * @description Update a knowledge collection name or description.
649
+ */
650
+ patch: operations["updateCollection"];
651
+ trace?: never;
652
+ };
653
+ "/knowledge/collections/{id}/documents": {
654
+ parameters: {
655
+ query?: never;
656
+ header?: never;
657
+ path?: never;
658
+ cookie?: never;
659
+ };
660
+ /**
661
+ * List documents in a collection
662
+ * @description List all documents in a knowledge collection.
663
+ */
664
+ get: operations["listDocuments"];
665
+ put?: never;
666
+ /**
667
+ * Upload a document
668
+ * @description Create a document record and get a presigned URL for upload.
669
+ *
670
+ * After receiving the response, upload the file to the presigned URL using a PUT request.
671
+ * The document will be processed automatically after upload.
672
+ */
673
+ post: operations["createDocument"];
674
+ delete?: never;
675
+ options?: never;
676
+ head?: never;
677
+ patch?: never;
678
+ trace?: never;
679
+ };
680
+ "/knowledge/collections/{collectionId}/documents/{documentId}": {
681
+ parameters: {
682
+ query?: never;
683
+ header?: never;
684
+ path?: never;
685
+ cookie?: never;
686
+ };
687
+ /**
688
+ * Get a document
689
+ * @description Get details of a document.
690
+ */
691
+ get: operations["getDocument"];
692
+ put?: never;
693
+ post?: never;
694
+ /**
695
+ * Delete a document
696
+ * @description Delete a document and its associated data.
697
+ */
698
+ delete: operations["deleteDocument"];
699
+ options?: never;
700
+ head?: never;
701
+ patch?: never;
702
+ trace?: never;
703
+ };
704
+ "/knowledge/collections/{collectionId}/documents/{documentId}/process": {
705
+ parameters: {
706
+ query?: never;
707
+ header?: never;
708
+ path?: never;
709
+ cookie?: never;
710
+ };
711
+ get?: never;
712
+ put?: never;
713
+ /**
714
+ * Process a document
715
+ * @description Trigger processing for a document after upload.
716
+ *
717
+ * This extracts text from the document, splits it into chunks,
718
+ * generates embeddings, and stores them for search.
719
+ *
720
+ * The document status will transition: pending → processing → ready (or failed).
721
+ */
722
+ post: operations["processDocument"];
723
+ delete?: never;
724
+ options?: never;
725
+ head?: never;
726
+ patch?: never;
727
+ trace?: never;
728
+ };
729
+ "/knowledge/search": {
730
+ parameters: {
731
+ query?: never;
732
+ header?: never;
733
+ path?: never;
734
+ cookie?: never;
735
+ };
736
+ get?: never;
737
+ put?: never;
738
+ /**
739
+ * Search knowledge base
740
+ * @description Search across one or more knowledge collections using semantic similarity.
741
+ *
742
+ * The search uses vector embeddings to find the most relevant content.
743
+ * Results are ordered by relevance score (0-1, higher is more similar).
744
+ */
745
+ post: operations["searchKnowledge"];
746
+ delete?: never;
747
+ options?: never;
748
+ head?: never;
749
+ patch?: never;
750
+ trace?: never;
751
+ };
540
752
  }
541
753
  export type webhooks = Record<string, never>;
542
754
  export interface components {
@@ -580,6 +792,18 @@ export interface components {
580
792
  /** @description Error message describing what went wrong */
581
793
  error: string;
582
794
  };
795
+ /** @description Memory feature configuration */
796
+ AgentMemoryConfig: {
797
+ /** @description Whether memory is enabled for this agent */
798
+ enabled: boolean;
799
+ };
800
+ /** @description Knowledge base feature configuration */
801
+ AgentKnowledgeBaseConfig: {
802
+ /** @description Whether knowledge base is enabled for this agent */
803
+ enabled: boolean;
804
+ /** @description Collection IDs to search */
805
+ collectionIds: string[];
806
+ };
583
807
  /**
584
808
  * @description Agent configuration (for managed agents)
585
809
  * @example {
@@ -589,7 +813,16 @@ export interface components {
589
813
  * "tools": [
590
814
  * "search-web"
591
815
  * ],
592
- * "maxIterations": 10
816
+ * "maxIterations": 10,
817
+ * "memory": {
818
+ * "enabled": true
819
+ * },
820
+ * "knowledgeBase": {
821
+ * "enabled": true,
822
+ * "collectionIds": [
823
+ * "coll_abc123"
824
+ * ]
825
+ * }
593
826
  * }
594
827
  */
595
828
  AgentConfig: {
@@ -608,14 +841,29 @@ export interface components {
608
841
  maxIterations?: number;
609
842
  /** @description Whether to require approval for tool calls */
610
843
  requireApproval?: boolean;
844
+ memory?: components["schemas"]["AgentMemoryConfig"];
845
+ knowledgeBase?: components["schemas"]["AgentKnowledgeBaseConfig"];
611
846
  } | null;
612
- /** @description JSON Schema for agent input parameters */
847
+ /** @description JSON Schema for agent input */
613
848
  JsonSchema: ({
614
- type: string;
849
+ /** @description JSON Schema type (e.g., "object", "string", "array") */
850
+ type?: string;
851
+ /** @description Human-readable title */
852
+ title?: string;
853
+ /** @description Description of the schema */
854
+ description?: string;
855
+ /** @description Default value for the property */
856
+ default?: unknown;
857
+ /** @description Enumeration of allowed values */
858
+ enum?: unknown[];
859
+ /** @description Property definitions for object types */
615
860
  properties?: {
616
861
  [key: string]: unknown;
617
862
  };
863
+ /** @description List of required property names */
618
864
  required?: string[];
865
+ /** @description Schema for array items */
866
+ items?: unknown;
619
867
  } & {
620
868
  [key: string]: unknown;
621
869
  }) | null;
@@ -636,12 +884,8 @@ export interface components {
636
884
  config: components["schemas"]["AgentConfig"];
637
885
  /** @description Agent description */
638
886
  description: string | null;
639
- parameters: components["schemas"]["JsonSchema"];
887
+ input: components["schemas"]["JsonSchema"];
640
888
  output: components["schemas"]["JsonSchema"] & unknown;
641
- /** @description Top-level keys expected in request body */
642
- requestKeys: string[] | null;
643
- /** @description Top-level keys returned in response body */
644
- responseKeys: string[] | null;
645
889
  /** @description Whether agent supports streaming */
646
890
  canStream: boolean | null;
647
891
  /** @description Whether agent supports chat interface */
@@ -707,11 +951,16 @@ export interface components {
707
951
  maxIterations?: number;
708
952
  /** @description Whether to require approval for tool calls */
709
953
  requireApproval?: boolean;
954
+ memory?: components["schemas"]["AgentMemoryConfig"];
955
+ knowledgeBase?: components["schemas"]["AgentKnowledgeBaseConfig"];
710
956
  };
711
957
  };
712
- /** @description Response with dynamic keys based on agent configuration. Regular agents return { output: ... }, chat agents return { messages: [...] }. */
713
- ExecuteResponse: {
714
- [key: string]: unknown;
958
+ /** @description Response with output from the agent and optional execution ID. */
959
+ AgentInvokeResponse: {
960
+ /** @description Output from the agent */
961
+ output?: unknown;
962
+ /** @description Execution ID for tracking */
963
+ execution_id?: string;
715
964
  };
716
965
  StreamChunk: {
717
966
  /** @description Text chunk from the stream */
@@ -729,13 +978,15 @@ export interface components {
729
978
  } & {
730
979
  [key: string]: unknown;
731
980
  };
732
- /** @description Request body with dynamic keys based on agent configuration. Always includes optional `stream` and `context` fields. */
733
- ExecuteRequest: {
981
+ /** @description Request body with input object and optional stream/context fields. */
982
+ AgentInvokeRequest: {
983
+ /** @description Input data for the agent */
984
+ input?: {
985
+ [key: string]: unknown;
986
+ };
734
987
  /** @description Enable streaming response (SSE) */
735
988
  stream?: boolean;
736
989
  context?: components["schemas"]["Context"];
737
- } & {
738
- [key: string]: unknown;
739
990
  };
740
991
  /**
741
992
  * @description Message role
@@ -809,7 +1060,7 @@ export interface components {
809
1060
  status: "active" | "inactive";
810
1061
  /** @description Tool description */
811
1062
  description: string | null;
812
- parameters: components["schemas"]["JsonSchema"] & unknown;
1063
+ input: components["schemas"]["JsonSchema"] & unknown;
813
1064
  output: components["schemas"]["JsonSchema"] & unknown;
814
1065
  /** @description When the tool was discovered */
815
1066
  discoveredAt: string | null;
@@ -820,12 +1071,12 @@ export interface components {
820
1071
  /** @description Last update timestamp */
821
1072
  updatedAt: string;
822
1073
  };
823
- ExecuteToolResponse: {
1074
+ ToolCallResponse: {
824
1075
  /** @description Output from the tool execution. */
825
1076
  output?: unknown;
826
1077
  };
827
- ExecuteToolRequest: {
828
- /** @description Input parameters for the tool. Structure depends on tool definition. */
1078
+ ToolCallRequest: {
1079
+ /** @description Input data for the tool. Structure depends on tool definition. */
829
1080
  input: {
830
1081
  [key: string]: unknown;
831
1082
  };
@@ -972,7 +1223,7 @@ export interface components {
972
1223
  status: "success" | "error" | "timeout";
973
1224
  /** @description Execution duration in milliseconds */
974
1225
  durationMs: number | null;
975
- /** @description Input parameters */
1226
+ /** @description Request input */
976
1227
  input?: unknown;
977
1228
  /** @description Output from execution (null for errors) */
978
1229
  output?: unknown;
@@ -1023,6 +1274,78 @@ export interface components {
1023
1274
  /** @description Conversation messages */
1024
1275
  messages: components["schemas"]["ConversationMessage"][];
1025
1276
  };
1277
+ MemoryListItem: {
1278
+ /** @description Memory key */
1279
+ key: string;
1280
+ /** @description When the memory was last updated */
1281
+ updatedAt: string;
1282
+ /** @description When the memory expires (if set) */
1283
+ expiresAt: string | null;
1284
+ };
1285
+ /** @description Identity fields for memory scoping (e.g., user_id, tenant_id) */
1286
+ MemoryIdentity: {
1287
+ [key: string]: unknown;
1288
+ };
1289
+ Memory: {
1290
+ /** @description Unique memory ID */
1291
+ id: string;
1292
+ /** @description Project ID */
1293
+ projectId: string;
1294
+ identity: components["schemas"]["MemoryIdentity"];
1295
+ /** @description Memory key */
1296
+ key: string;
1297
+ /** @description Memory value */
1298
+ value?: unknown;
1299
+ /** @description When the memory was created */
1300
+ createdAt: string;
1301
+ /** @description When the memory was last updated */
1302
+ updatedAt: string;
1303
+ /** @description When the memory expires */
1304
+ expiresAt: string | null;
1305
+ };
1306
+ KnowledgeCollection: {
1307
+ /** @description Unique collection ID */
1308
+ id: string;
1309
+ /** @description Project ID */
1310
+ projectId: string;
1311
+ /** @description Collection name */
1312
+ name: string;
1313
+ /** @description Collection description */
1314
+ description: string | null;
1315
+ /** @description Embedding model used */
1316
+ embeddingModel: string;
1317
+ /** @description Total number of documents */
1318
+ documentCount?: number;
1319
+ /** @description Number of processed documents */
1320
+ readyDocumentCount?: number;
1321
+ /** @description When the collection was created */
1322
+ createdAt: string;
1323
+ /** @description When the collection was last updated */
1324
+ updatedAt: string;
1325
+ };
1326
+ KnowledgeDocument: {
1327
+ /** @description Unique document ID */
1328
+ id: string;
1329
+ /** @description Collection ID */
1330
+ collectionId: string;
1331
+ /** @description Document name */
1332
+ name: string;
1333
+ /** @description S3 URL of the document */
1334
+ sourceUrl: string;
1335
+ /** @description MIME type */
1336
+ mimeType: string;
1337
+ /**
1338
+ * @description Processing status
1339
+ * @enum {string}
1340
+ */
1341
+ status: "pending" | "processing" | "ready" | "failed";
1342
+ /** @description Document metadata */
1343
+ metadata?: unknown;
1344
+ /** @description When the document was created */
1345
+ createdAt: string;
1346
+ /** @description When the document was last updated */
1347
+ updatedAt: string;
1348
+ };
1026
1349
  };
1027
1350
  responses: never;
1028
1351
  parameters: never;
@@ -1358,7 +1681,7 @@ export interface operations {
1358
1681
  };
1359
1682
  requestBody?: {
1360
1683
  content: {
1361
- "application/json": components["schemas"]["ExecuteRequest"];
1684
+ "application/json": components["schemas"]["AgentInvokeRequest"];
1362
1685
  };
1363
1686
  };
1364
1687
  responses: {
@@ -1368,7 +1691,7 @@ export interface operations {
1368
1691
  [name: string]: unknown;
1369
1692
  };
1370
1693
  content: {
1371
- "application/json": components["schemas"]["ExecuteResponse"];
1694
+ "application/json": components["schemas"]["AgentInvokeResponse"];
1372
1695
  "text/event-stream": components["schemas"]["StreamChunk"];
1373
1696
  };
1374
1697
  };
@@ -1596,7 +1919,7 @@ export interface operations {
1596
1919
  };
1597
1920
  requestBody?: {
1598
1921
  content: {
1599
- "application/json": components["schemas"]["ExecuteToolRequest"];
1922
+ "application/json": components["schemas"]["ToolCallRequest"];
1600
1923
  };
1601
1924
  };
1602
1925
  responses: {
@@ -1606,7 +1929,7 @@ export interface operations {
1606
1929
  [name: string]: unknown;
1607
1930
  };
1608
1931
  content: {
1609
- "application/json": components["schemas"]["ExecuteToolResponse"];
1932
+ "application/json": components["schemas"]["ToolCallResponse"];
1610
1933
  };
1611
1934
  };
1612
1935
  /** @description Bad Request - Invalid input */
@@ -2094,7 +2417,7 @@ export interface operations {
2094
2417
  /** @description Cursor for pagination */
2095
2418
  cursor?: string;
2096
2419
  /** @description Filter by execution type */
2097
- type?: "agent_execute" | "agent_chat" | "tool_execute";
2420
+ type?: "agent_invoke" | "agent_chat" | "tool_call";
2098
2421
  /** @description Filter by request source */
2099
2422
  source?: "api" | "cli" | "dashboard" | "widget" | "sdk";
2100
2423
  /** @description Filter by agent or tool name */
@@ -2293,5 +2616,695 @@ export interface operations {
2293
2616
  };
2294
2617
  };
2295
2618
  };
2619
+ listMemories: {
2620
+ parameters: {
2621
+ query?: never;
2622
+ header?: never;
2623
+ path?: never;
2624
+ cookie?: never;
2625
+ };
2626
+ requestBody?: never;
2627
+ responses: {
2628
+ /** @description List of memory keys */
2629
+ 200: {
2630
+ headers: {
2631
+ [name: string]: unknown;
2632
+ };
2633
+ content: {
2634
+ "application/json": {
2635
+ data: components["schemas"]["MemoryListItem"][];
2636
+ };
2637
+ };
2638
+ };
2639
+ /** @description Bad request - identity required */
2640
+ 400: {
2641
+ headers: {
2642
+ [name: string]: unknown;
2643
+ };
2644
+ content: {
2645
+ "application/json": components["schemas"]["ErrorResponse"];
2646
+ };
2647
+ };
2648
+ /** @description Unauthorized */
2649
+ 401: {
2650
+ headers: {
2651
+ [name: string]: unknown;
2652
+ };
2653
+ content: {
2654
+ "application/json": components["schemas"]["ErrorResponse"];
2655
+ };
2656
+ };
2657
+ };
2658
+ };
2659
+ storeMemory: {
2660
+ parameters: {
2661
+ query?: never;
2662
+ header?: never;
2663
+ path?: never;
2664
+ cookie?: never;
2665
+ };
2666
+ requestBody?: {
2667
+ content: {
2668
+ "application/json": {
2669
+ identity: components["schemas"]["MemoryIdentity"] & unknown;
2670
+ /** @description Memory key */
2671
+ key: string;
2672
+ /** @description Value to store */
2673
+ value?: unknown;
2674
+ /**
2675
+ * Format: date-time
2676
+ * @description Optional expiration time (ISO 8601)
2677
+ */
2678
+ expiresAt?: string;
2679
+ };
2680
+ };
2681
+ };
2682
+ responses: {
2683
+ /** @description Memory stored successfully */
2684
+ 200: {
2685
+ headers: {
2686
+ [name: string]: unknown;
2687
+ };
2688
+ content: {
2689
+ "application/json": components["schemas"]["Memory"];
2690
+ };
2691
+ };
2692
+ /** @description Bad request */
2693
+ 400: {
2694
+ headers: {
2695
+ [name: string]: unknown;
2696
+ };
2697
+ content: {
2698
+ "application/json": components["schemas"]["ErrorResponse"];
2699
+ };
2700
+ };
2701
+ /** @description Unauthorized */
2702
+ 401: {
2703
+ headers: {
2704
+ [name: string]: unknown;
2705
+ };
2706
+ content: {
2707
+ "application/json": components["schemas"]["ErrorResponse"];
2708
+ };
2709
+ };
2710
+ };
2711
+ };
2712
+ deleteAllMemories: {
2713
+ parameters: {
2714
+ query?: never;
2715
+ header?: never;
2716
+ path?: never;
2717
+ cookie?: never;
2718
+ };
2719
+ requestBody?: never;
2720
+ responses: {
2721
+ /** @description Memories deleted */
2722
+ 200: {
2723
+ headers: {
2724
+ [name: string]: unknown;
2725
+ };
2726
+ content: {
2727
+ "application/json": {
2728
+ /** @description Number of memories deleted */
2729
+ deleted: number;
2730
+ };
2731
+ };
2732
+ };
2733
+ /** @description Bad request - identity required */
2734
+ 400: {
2735
+ headers: {
2736
+ [name: string]: unknown;
2737
+ };
2738
+ content: {
2739
+ "application/json": components["schemas"]["ErrorResponse"];
2740
+ };
2741
+ };
2742
+ /** @description Unauthorized */
2743
+ 401: {
2744
+ headers: {
2745
+ [name: string]: unknown;
2746
+ };
2747
+ content: {
2748
+ "application/json": components["schemas"]["ErrorResponse"];
2749
+ };
2750
+ };
2751
+ };
2752
+ };
2753
+ getMemory: {
2754
+ parameters: {
2755
+ query?: never;
2756
+ header?: never;
2757
+ path: {
2758
+ /** @description Memory key */
2759
+ key: string;
2760
+ };
2761
+ cookie?: never;
2762
+ };
2763
+ requestBody?: never;
2764
+ responses: {
2765
+ /** @description Memory value */
2766
+ 200: {
2767
+ headers: {
2768
+ [name: string]: unknown;
2769
+ };
2770
+ content: {
2771
+ "application/json": components["schemas"]["Memory"];
2772
+ };
2773
+ };
2774
+ /** @description Bad request - identity required */
2775
+ 400: {
2776
+ headers: {
2777
+ [name: string]: unknown;
2778
+ };
2779
+ content: {
2780
+ "application/json": components["schemas"]["ErrorResponse"];
2781
+ };
2782
+ };
2783
+ /** @description Unauthorized */
2784
+ 401: {
2785
+ headers: {
2786
+ [name: string]: unknown;
2787
+ };
2788
+ content: {
2789
+ "application/json": components["schemas"]["ErrorResponse"];
2790
+ };
2791
+ };
2792
+ /** @description Memory not found */
2793
+ 404: {
2794
+ headers: {
2795
+ [name: string]: unknown;
2796
+ };
2797
+ content: {
2798
+ "application/json": components["schemas"]["ErrorResponse"];
2799
+ };
2800
+ };
2801
+ };
2802
+ };
2803
+ deleteMemory: {
2804
+ parameters: {
2805
+ query?: never;
2806
+ header?: never;
2807
+ path: {
2808
+ /** @description Memory key */
2809
+ key: string;
2810
+ };
2811
+ cookie?: never;
2812
+ };
2813
+ requestBody?: never;
2814
+ responses: {
2815
+ /** @description Memory deleted successfully */
2816
+ 204: {
2817
+ headers: {
2818
+ [name: string]: unknown;
2819
+ };
2820
+ content?: never;
2821
+ };
2822
+ /** @description Bad request - identity required */
2823
+ 400: {
2824
+ headers: {
2825
+ [name: string]: unknown;
2826
+ };
2827
+ content: {
2828
+ "application/json": components["schemas"]["ErrorResponse"];
2829
+ };
2830
+ };
2831
+ /** @description Unauthorized */
2832
+ 401: {
2833
+ headers: {
2834
+ [name: string]: unknown;
2835
+ };
2836
+ content: {
2837
+ "application/json": components["schemas"]["ErrorResponse"];
2838
+ };
2839
+ };
2840
+ /** @description Memory not found */
2841
+ 404: {
2842
+ headers: {
2843
+ [name: string]: unknown;
2844
+ };
2845
+ content: {
2846
+ "application/json": components["schemas"]["ErrorResponse"];
2847
+ };
2848
+ };
2849
+ };
2850
+ };
2851
+ listCollections: {
2852
+ parameters: {
2853
+ query?: {
2854
+ limit?: number;
2855
+ cursor?: string;
2856
+ };
2857
+ header?: never;
2858
+ path?: never;
2859
+ cookie?: never;
2860
+ };
2861
+ requestBody?: never;
2862
+ responses: {
2863
+ /** @description List of collections */
2864
+ 200: {
2865
+ headers: {
2866
+ [name: string]: unknown;
2867
+ };
2868
+ content: {
2869
+ "application/json": {
2870
+ data: components["schemas"]["KnowledgeCollection"][];
2871
+ nextCursor: string | null;
2872
+ hasMore: boolean;
2873
+ };
2874
+ };
2875
+ };
2876
+ /** @description Unauthorized */
2877
+ 401: {
2878
+ headers: {
2879
+ [name: string]: unknown;
2880
+ };
2881
+ content: {
2882
+ "application/json": components["schemas"]["ErrorResponse"];
2883
+ };
2884
+ };
2885
+ };
2886
+ };
2887
+ createCollection: {
2888
+ parameters: {
2889
+ query?: never;
2890
+ header?: never;
2891
+ path?: never;
2892
+ cookie?: never;
2893
+ };
2894
+ requestBody?: {
2895
+ content: {
2896
+ "application/json": {
2897
+ /** @description Collection name */
2898
+ name: string;
2899
+ /** @description Collection description */
2900
+ description?: string;
2901
+ };
2902
+ };
2903
+ };
2904
+ responses: {
2905
+ /** @description Collection created */
2906
+ 201: {
2907
+ headers: {
2908
+ [name: string]: unknown;
2909
+ };
2910
+ content: {
2911
+ "application/json": components["schemas"]["KnowledgeCollection"];
2912
+ };
2913
+ };
2914
+ /** @description Bad request */
2915
+ 400: {
2916
+ headers: {
2917
+ [name: string]: unknown;
2918
+ };
2919
+ content: {
2920
+ "application/json": components["schemas"]["ErrorResponse"];
2921
+ };
2922
+ };
2923
+ /** @description Unauthorized */
2924
+ 401: {
2925
+ headers: {
2926
+ [name: string]: unknown;
2927
+ };
2928
+ content: {
2929
+ "application/json": components["schemas"]["ErrorResponse"];
2930
+ };
2931
+ };
2932
+ };
2933
+ };
2934
+ getCollection: {
2935
+ parameters: {
2936
+ query?: never;
2937
+ header?: never;
2938
+ path: {
2939
+ id: string;
2940
+ };
2941
+ cookie?: never;
2942
+ };
2943
+ requestBody?: never;
2944
+ responses: {
2945
+ /** @description Collection details */
2946
+ 200: {
2947
+ headers: {
2948
+ [name: string]: unknown;
2949
+ };
2950
+ content: {
2951
+ "application/json": components["schemas"]["KnowledgeCollection"];
2952
+ };
2953
+ };
2954
+ /** @description Unauthorized */
2955
+ 401: {
2956
+ headers: {
2957
+ [name: string]: unknown;
2958
+ };
2959
+ content: {
2960
+ "application/json": components["schemas"]["ErrorResponse"];
2961
+ };
2962
+ };
2963
+ /** @description Collection not found */
2964
+ 404: {
2965
+ headers: {
2966
+ [name: string]: unknown;
2967
+ };
2968
+ content: {
2969
+ "application/json": components["schemas"]["ErrorResponse"];
2970
+ };
2971
+ };
2972
+ };
2973
+ };
2974
+ deleteCollection: {
2975
+ parameters: {
2976
+ query?: never;
2977
+ header?: never;
2978
+ path: {
2979
+ id: string;
2980
+ };
2981
+ cookie?: never;
2982
+ };
2983
+ requestBody?: never;
2984
+ responses: {
2985
+ /** @description Collection deleted */
2986
+ 204: {
2987
+ headers: {
2988
+ [name: string]: unknown;
2989
+ };
2990
+ content?: never;
2991
+ };
2992
+ /** @description Collection not found */
2993
+ 404: {
2994
+ headers: {
2995
+ [name: string]: unknown;
2996
+ };
2997
+ content: {
2998
+ "application/json": components["schemas"]["ErrorResponse"];
2999
+ };
3000
+ };
3001
+ };
3002
+ };
3003
+ updateCollection: {
3004
+ parameters: {
3005
+ query?: never;
3006
+ header?: never;
3007
+ path: {
3008
+ id: string;
3009
+ };
3010
+ cookie?: never;
3011
+ };
3012
+ requestBody?: {
3013
+ content: {
3014
+ "application/json": {
3015
+ name?: string;
3016
+ description?: string;
3017
+ };
3018
+ };
3019
+ };
3020
+ responses: {
3021
+ /** @description Collection updated */
3022
+ 200: {
3023
+ headers: {
3024
+ [name: string]: unknown;
3025
+ };
3026
+ content: {
3027
+ "application/json": components["schemas"]["KnowledgeCollection"];
3028
+ };
3029
+ };
3030
+ /** @description Bad request */
3031
+ 400: {
3032
+ headers: {
3033
+ [name: string]: unknown;
3034
+ };
3035
+ content: {
3036
+ "application/json": components["schemas"]["ErrorResponse"];
3037
+ };
3038
+ };
3039
+ /** @description Collection not found */
3040
+ 404: {
3041
+ headers: {
3042
+ [name: string]: unknown;
3043
+ };
3044
+ content: {
3045
+ "application/json": components["schemas"]["ErrorResponse"];
3046
+ };
3047
+ };
3048
+ };
3049
+ };
3050
+ listDocuments: {
3051
+ parameters: {
3052
+ query?: {
3053
+ limit?: number;
3054
+ cursor?: string;
3055
+ status?: "pending" | "processing" | "ready" | "failed";
3056
+ };
3057
+ header?: never;
3058
+ path: {
3059
+ id: string;
3060
+ };
3061
+ cookie?: never;
3062
+ };
3063
+ requestBody?: never;
3064
+ responses: {
3065
+ /** @description List of documents */
3066
+ 200: {
3067
+ headers: {
3068
+ [name: string]: unknown;
3069
+ };
3070
+ content: {
3071
+ "application/json": {
3072
+ data: components["schemas"]["KnowledgeDocument"][];
3073
+ nextCursor: string | null;
3074
+ hasMore: boolean;
3075
+ };
3076
+ };
3077
+ };
3078
+ /** @description Collection not found */
3079
+ 404: {
3080
+ headers: {
3081
+ [name: string]: unknown;
3082
+ };
3083
+ content: {
3084
+ "application/json": components["schemas"]["ErrorResponse"];
3085
+ };
3086
+ };
3087
+ };
3088
+ };
3089
+ createDocument: {
3090
+ parameters: {
3091
+ query?: never;
3092
+ header?: never;
3093
+ path: {
3094
+ id: string;
3095
+ };
3096
+ cookie?: never;
3097
+ };
3098
+ requestBody?: {
3099
+ content: {
3100
+ "application/json": {
3101
+ /** @description Document name (filename) */
3102
+ name: string;
3103
+ /** @description MIME type of the document */
3104
+ mimeType: string;
3105
+ /** @description File size in bytes */
3106
+ size?: number;
3107
+ };
3108
+ };
3109
+ };
3110
+ responses: {
3111
+ /** @description Document created with upload URL */
3112
+ 201: {
3113
+ headers: {
3114
+ [name: string]: unknown;
3115
+ };
3116
+ content: {
3117
+ "application/json": {
3118
+ document: components["schemas"]["KnowledgeDocument"];
3119
+ /** @description Presigned URL for uploading the file */
3120
+ uploadUrl: string;
3121
+ };
3122
+ };
3123
+ };
3124
+ /** @description Collection not found */
3125
+ 404: {
3126
+ headers: {
3127
+ [name: string]: unknown;
3128
+ };
3129
+ content: {
3130
+ "application/json": components["schemas"]["ErrorResponse"];
3131
+ };
3132
+ };
3133
+ };
3134
+ };
3135
+ getDocument: {
3136
+ parameters: {
3137
+ query?: never;
3138
+ header?: never;
3139
+ path: {
3140
+ collectionId: string;
3141
+ documentId: string;
3142
+ };
3143
+ cookie?: never;
3144
+ };
3145
+ requestBody?: never;
3146
+ responses: {
3147
+ /** @description Document details */
3148
+ 200: {
3149
+ headers: {
3150
+ [name: string]: unknown;
3151
+ };
3152
+ content: {
3153
+ "application/json": components["schemas"]["KnowledgeDocument"];
3154
+ };
3155
+ };
3156
+ /** @description Document not found */
3157
+ 404: {
3158
+ headers: {
3159
+ [name: string]: unknown;
3160
+ };
3161
+ content: {
3162
+ "application/json": components["schemas"]["ErrorResponse"];
3163
+ };
3164
+ };
3165
+ };
3166
+ };
3167
+ deleteDocument: {
3168
+ parameters: {
3169
+ query?: never;
3170
+ header?: never;
3171
+ path: {
3172
+ collectionId: string;
3173
+ documentId: string;
3174
+ };
3175
+ cookie?: never;
3176
+ };
3177
+ requestBody?: never;
3178
+ responses: {
3179
+ /** @description Document deleted */
3180
+ 204: {
3181
+ headers: {
3182
+ [name: string]: unknown;
3183
+ };
3184
+ content?: never;
3185
+ };
3186
+ /** @description Document not found */
3187
+ 404: {
3188
+ headers: {
3189
+ [name: string]: unknown;
3190
+ };
3191
+ content: {
3192
+ "application/json": components["schemas"]["ErrorResponse"];
3193
+ };
3194
+ };
3195
+ };
3196
+ };
3197
+ processDocument: {
3198
+ parameters: {
3199
+ query?: never;
3200
+ header?: never;
3201
+ path: {
3202
+ collectionId: string;
3203
+ documentId: string;
3204
+ };
3205
+ cookie?: never;
3206
+ };
3207
+ requestBody?: {
3208
+ content: {
3209
+ "application/json": {
3210
+ /** @description Use Unstructured.io for extraction if available */
3211
+ preferUnstructured?: boolean;
3212
+ };
3213
+ };
3214
+ };
3215
+ responses: {
3216
+ /** @description Processing started */
3217
+ 202: {
3218
+ headers: {
3219
+ [name: string]: unknown;
3220
+ };
3221
+ content: {
3222
+ "application/json": {
3223
+ message: string;
3224
+ document: components["schemas"]["KnowledgeDocument"];
3225
+ };
3226
+ };
3227
+ };
3228
+ /** @description Bad request - Document already processed or processing */
3229
+ 400: {
3230
+ headers: {
3231
+ [name: string]: unknown;
3232
+ };
3233
+ content: {
3234
+ "application/json": components["schemas"]["ErrorResponse"];
3235
+ };
3236
+ };
3237
+ /** @description Document not found */
3238
+ 404: {
3239
+ headers: {
3240
+ [name: string]: unknown;
3241
+ };
3242
+ content: {
3243
+ "application/json": components["schemas"]["ErrorResponse"];
3244
+ };
3245
+ };
3246
+ };
3247
+ };
3248
+ searchKnowledge: {
3249
+ parameters: {
3250
+ query?: never;
3251
+ header?: never;
3252
+ path?: never;
3253
+ cookie?: never;
3254
+ };
3255
+ requestBody?: {
3256
+ content: {
3257
+ "application/json": {
3258
+ /** @description Natural language search query */
3259
+ query: string;
3260
+ /** @description Collection IDs to search */
3261
+ collectionIds: string[];
3262
+ /**
3263
+ * @description Maximum number of results
3264
+ * @default 5
3265
+ */
3266
+ limit?: number;
3267
+ /**
3268
+ * @description Minimum similarity score (0-1)
3269
+ * @default 0.7
3270
+ */
3271
+ threshold?: number;
3272
+ };
3273
+ };
3274
+ };
3275
+ responses: {
3276
+ /** @description Search results */
3277
+ 200: {
3278
+ headers: {
3279
+ [name: string]: unknown;
3280
+ };
3281
+ content: {
3282
+ "application/json": {
3283
+ /** @description Number of results found */
3284
+ count: number;
3285
+ chunks: {
3286
+ /** @description Chunk text content */
3287
+ content: string;
3288
+ /** @description Similarity score (0-1) */
3289
+ score: number;
3290
+ /** @description Source document ID */
3291
+ documentId: string;
3292
+ /** @description Position in document */
3293
+ chunkIndex: number;
3294
+ }[];
3295
+ };
3296
+ };
3297
+ };
3298
+ /** @description Bad request */
3299
+ 400: {
3300
+ headers: {
3301
+ [name: string]: unknown;
3302
+ };
3303
+ content: {
3304
+ "application/json": components["schemas"]["ErrorResponse"];
3305
+ };
3306
+ };
3307
+ };
3308
+ };
2296
3309
  }
2297
3310
  //# sourceMappingURL=api-types.d.ts.map