@memnexus-ai/typescript-sdk 1.7.2 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -158,7 +158,7 @@ The SDK includes several models that represent the data structures used in API r
158
158
  | [SearchResponse](documentation/models/SearchResponse.md) | |
159
159
  | [SearchResult](documentation/models/SearchResult.md) | |
160
160
  | [Entity](documentation/models/Entity.md) | |
161
- | [Topic](documentation/models/Topic.md) | |
161
+ | [TopicReference](documentation/models/TopicReference.md) | |
162
162
  | [TemporalMetadata](documentation/models/TemporalMetadata.md) | Temporal query metadata (null for semantic/hybrid search) |
163
163
  | [SearchRequest](documentation/models/SearchRequest.md) | |
164
164
  | [GetSimilarMemoriesOkResponse](documentation/models/GetSimilarMemoriesOkResponse.md) | |
package/dist/index.d.ts CHANGED
@@ -1923,6 +1923,13 @@ declare class ConversationsService extends BaseService {
1923
1923
  * @returns {Promise<HttpResponse<GetConversationSummaryOkResponse>>} - Conversation retrieved successfully
1924
1924
  */
1925
1925
  getConversationSummary(conversationId: string, requestConfig?: RequestConfig): Promise<HttpResponse<GetConversationSummaryOkResponse>>;
1926
+ /**
1927
+ * Delete a conversation and soft-delete all associated memories
1928
+ * @param {string} conversationId - The conversation ID
1929
+ * @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
1930
+ * @returns {Promise<HttpResponse<any>>} - Conversation deleted successfully
1931
+ */
1932
+ deleteConversation(conversationId: string, requestConfig?: RequestConfig): Promise<HttpResponse<void>>;
1926
1933
  /**
1927
1934
  * Get all memories in a conversation in chronological order
1928
1935
  * @param {string} conversationId - The conversation ID
@@ -3919,14 +3926,17 @@ declare const searchResponse: z.ZodLazy<z.ZodObject<{
3919
3926
  type?: string | undefined;
3920
3927
  }>>, "many">>;
3921
3928
  topics: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodObject<{
3929
+ id: z.ZodString;
3922
3930
  name: z.ZodString;
3923
- count: z.ZodNumber;
3931
+ createdAt: z.ZodOptional<z.ZodString>;
3924
3932
  }, "strip", z.ZodTypeAny, {
3933
+ id: string;
3925
3934
  name: string;
3926
- count: number;
3935
+ createdAt?: string | undefined;
3927
3936
  }, {
3937
+ id: string;
3928
3938
  name: string;
3929
- count: number;
3939
+ createdAt?: string | undefined;
3930
3940
  }>>, "many">>;
3931
3941
  searchMethod: z.ZodOptional<z.ZodString>;
3932
3942
  hybridScore: z.ZodOptional<z.ZodNumber>;
@@ -3970,8 +3980,9 @@ declare const searchResponse: z.ZodLazy<z.ZodObject<{
3970
3980
  type?: string | undefined;
3971
3981
  }[] | undefined;
3972
3982
  topics?: {
3983
+ id: string;
3973
3984
  name: string;
3974
- count: number;
3985
+ createdAt?: string | undefined;
3975
3986
  }[] | undefined;
3976
3987
  searchMethod?: string | undefined;
3977
3988
  hybridScore?: number | undefined;
@@ -4005,8 +4016,9 @@ declare const searchResponse: z.ZodLazy<z.ZodObject<{
4005
4016
  type?: string | undefined;
4006
4017
  }[] | undefined;
4007
4018
  topics?: {
4019
+ id: string;
4008
4020
  name: string;
4009
- count: number;
4021
+ createdAt?: string | undefined;
4010
4022
  }[] | undefined;
4011
4023
  searchMethod?: string | undefined;
4012
4024
  hybridScore?: number | undefined;
@@ -4116,8 +4128,9 @@ declare const searchResponse: z.ZodLazy<z.ZodObject<{
4116
4128
  type?: string | undefined;
4117
4129
  }[] | undefined;
4118
4130
  topics?: {
4131
+ id: string;
4119
4132
  name: string;
4120
- count: number;
4133
+ createdAt?: string | undefined;
4121
4134
  }[] | undefined;
4122
4135
  searchMethod?: string | undefined;
4123
4136
  hybridScore?: number | undefined;
@@ -4174,8 +4187,9 @@ declare const searchResponse: z.ZodLazy<z.ZodObject<{
4174
4187
  type?: string | undefined;
4175
4188
  }[] | undefined;
4176
4189
  topics?: {
4190
+ id: string;
4177
4191
  name: string;
4178
- count: number;
4192
+ createdAt?: string | undefined;
4179
4193
  }[] | undefined;
4180
4194
  searchMethod?: string | undefined;
4181
4195
  hybridScore?: number | undefined;
@@ -5036,14 +5050,17 @@ declare const searchResult: z.ZodLazy<z.ZodObject<{
5036
5050
  type?: string | undefined;
5037
5051
  }>>, "many">>;
5038
5052
  topics: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodObject<{
5053
+ id: z.ZodString;
5039
5054
  name: z.ZodString;
5040
- count: z.ZodNumber;
5055
+ createdAt: z.ZodOptional<z.ZodString>;
5041
5056
  }, "strip", z.ZodTypeAny, {
5057
+ id: string;
5042
5058
  name: string;
5043
- count: number;
5059
+ createdAt?: string | undefined;
5044
5060
  }, {
5061
+ id: string;
5045
5062
  name: string;
5046
- count: number;
5063
+ createdAt?: string | undefined;
5047
5064
  }>>, "many">>;
5048
5065
  searchMethod: z.ZodOptional<z.ZodString>;
5049
5066
  hybridScore: z.ZodOptional<z.ZodNumber>;
@@ -5087,8 +5104,9 @@ declare const searchResult: z.ZodLazy<z.ZodObject<{
5087
5104
  type?: string | undefined;
5088
5105
  }[] | undefined;
5089
5106
  topics?: {
5107
+ id: string;
5090
5108
  name: string;
5091
- count: number;
5109
+ createdAt?: string | undefined;
5092
5110
  }[] | undefined;
5093
5111
  searchMethod?: string | undefined;
5094
5112
  hybridScore?: number | undefined;
@@ -5122,8 +5140,9 @@ declare const searchResult: z.ZodLazy<z.ZodObject<{
5122
5140
  type?: string | undefined;
5123
5141
  }[] | undefined;
5124
5142
  topics?: {
5143
+ id: string;
5125
5144
  name: string;
5126
- count: number;
5145
+ createdAt?: string | undefined;
5127
5146
  }[] | undefined;
5128
5147
  searchMethod?: string | undefined;
5129
5148
  hybridScore?: number | undefined;
@@ -5144,7 +5163,7 @@ declare const searchResult: z.ZodLazy<z.ZodObject<{
5144
5163
  * @property {SearchResultMemory} - The memory object
5145
5164
  * @property {number} - Relevance score for this result
5146
5165
  * @property {Entity[]} - Entities mentioned in this memory
5147
- * @property {Topic[]} - Topics associated with this memory
5166
+ * @property {TopicReference[]} - Topics associated with this memory
5148
5167
  * @property {string} - Search method used to find this result
5149
5168
  * @property {number} - Combined RRF score for hybrid search
5150
5169
  * @property {number} - Vector similarity score (0-1)
@@ -5243,6 +5262,33 @@ declare const entity: z.ZodLazy<z.ZodObject<{
5243
5262
  */
5244
5263
  type Entity = z.infer<typeof entity>;
5245
5264
 
5265
+ /**
5266
+ * Zod schema for the TopicReference model.
5267
+ * Defines the structure and validation rules for this data type.
5268
+ * This is the shape used in application code - what developers interact with.
5269
+ */
5270
+ declare const topicReference: z.ZodLazy<z.ZodObject<{
5271
+ id: z.ZodString;
5272
+ name: z.ZodString;
5273
+ createdAt: z.ZodOptional<z.ZodString>;
5274
+ }, "strip", z.ZodTypeAny, {
5275
+ id: string;
5276
+ name: string;
5277
+ createdAt?: string | undefined;
5278
+ }, {
5279
+ id: string;
5280
+ name: string;
5281
+ createdAt?: string | undefined;
5282
+ }>>;
5283
+ /**
5284
+ *
5285
+ * @typedef {TopicReference} topicReference
5286
+ * @property {string} - Topic unique identifier
5287
+ * @property {string} - Topic name
5288
+ * @property {string} - When the topic was created
5289
+ */
5290
+ type TopicReference = z.infer<typeof topicReference>;
5291
+
5246
5292
  /**
5247
5293
  * Zod schema for the Explanation model.
5248
5294
  * Defines the structure and validation rules for this data type.
@@ -7796,6 +7842,29 @@ declare class TopicsService extends BaseService {
7796
7842
  searchTopics(body: SearchTopicsRequest, requestConfig?: RequestConfig): Promise<HttpResponse<SearchTopicsOkResponse>>;
7797
7843
  }
7798
7844
 
7845
+ /**
7846
+ * Zod schema for the Topic model.
7847
+ * Defines the structure and validation rules for this data type.
7848
+ * This is the shape used in application code - what developers interact with.
7849
+ */
7850
+ declare const topic: z.ZodLazy<z.ZodObject<{
7851
+ name: z.ZodString;
7852
+ count: z.ZodNumber;
7853
+ }, "strip", z.ZodTypeAny, {
7854
+ name: string;
7855
+ count: number;
7856
+ }, {
7857
+ name: string;
7858
+ count: number;
7859
+ }>>;
7860
+ /**
7861
+ *
7862
+ * @typedef {Topic} topic
7863
+ * @property {string} - Topic name
7864
+ * @property {number} - Number of memories associated with this topic
7865
+ */
7866
+ type Topic = z.infer<typeof topic>;
7867
+
7799
7868
  /**
7800
7869
  * Zod schema for the ListTopicsOkResponsePagination model.
7801
7870
  * Defines the structure and validation rules for this data type.
@@ -8290,29 +8359,6 @@ declare const memory: z.ZodLazy<z.ZodObject<{
8290
8359
  */
8291
8360
  type Memory = z.infer<typeof memory>;
8292
8361
 
8293
- /**
8294
- * Zod schema for the Topic model.
8295
- * Defines the structure and validation rules for this data type.
8296
- * This is the shape used in application code - what developers interact with.
8297
- */
8298
- declare const topic: z.ZodLazy<z.ZodObject<{
8299
- name: z.ZodString;
8300
- count: z.ZodNumber;
8301
- }, "strip", z.ZodTypeAny, {
8302
- name: string;
8303
- count: number;
8304
- }, {
8305
- name: string;
8306
- count: number;
8307
- }>>;
8308
- /**
8309
- *
8310
- * @typedef {Topic} topic
8311
- * @property {string} - Topic name
8312
- * @property {number} - Number of memories associated with this topic
8313
- */
8314
- type Topic = z.infer<typeof topic>;
8315
-
8316
8362
  /**
8317
8363
  * Zod schema for the Community model.
8318
8364
  * Defines the structure and validation rules for this data type.
@@ -8381,4 +8427,4 @@ declare class Memnexus {
8381
8427
  set token(token: string);
8382
8428
  }
8383
8429
 
8384
- export { Analysis, AnalyzeMemoryQualityOkResponse, AnalyzeMemoryQualityOkResponseData, AnalyzePatternsOkResponse, AnalyzePatternsOkResponseData, AnalyzePatternsRequest, ApiKey, ApiKeysService, Artifact, ArtifactsService, BehaviorService, CalculateTopicSimilarityOkResponse, CalculateTopicSimilarityOkResponseData, CalculateTopicSimilarityRequest, ClusterTopicsOkResponse, ClusterTopicsOkResponseData, ClusterTopicsRequest, CommunitiesService, Community, CompilePatternsOkResponse, CompilePatternsRequest, Confidence, Conversation, ConversationsService, CreateApiKeyCreatedResponse, CreateApiKeyCreatedResponseData, CreateApiKeyRequest, CreateArtifactCreatedResponse, CreateArtifactRequest, CreateConversationCreatedResponse, CreateConversationRequest, CreateFactCreatedResponse, CreateFactRequest, CreateMemoryRequest, CreateMemoryRequestMemoryType, CreateMemoryResponse, CreateMemoryResponseMeta, DataMemory, DataStatus, DebugUserOkResponse, DebugUserOkResponseData, DetectCommunitiesOkResponse, DetectCommunitiesOkResponseData, DetectCommunitiesRequest, DetectPatternsOkResponse, DetectPatternsOkResponseData, DetectPatternsRequest, DiscoverRelatedTopicsOkResponse, DiscoverRelatedTopicsRequest, Entity, Environment, Error$1 as Error, EvaluateFeatureFlagOkResponse, EvaluateFeatureFlagOkResponseData, EvaluateFeatureFlagRequest, EventTimeRange, ExecuteGraphRagQueryOkResponse, ExplainGraphRagQueryOkResponse, Explanation, Fact, FactSearchRequest, FactsService, FindConversationsByTopicOkResponse, FindConversationsByTopicOkResponseMetadata, FindConversationsByTopicRequest, FindSimilarTopicsOkResponse, FindSimilarTopicsOkResponseData, FindSimilarTopicsRequest, GetArtifactByIdOkResponse, GetBehavioralStateOkResponse, GetCommunityByIdOkResponse, GetContextStatusOkResponse, GetConversationMemoriesOkResponse, GetConversationSummaryOkResponse, GetConversationTimelineOkResponse, GetFactByIdOkResponse, GetFeatureFlagsOkResponse, GetMemoryResponse, GetRelatedMemoriesOkResponse, GetRelatedMemoriesOkResponseData, GetSimilarMemoriesOkResponse, GetSystemHealthOkResponse, GetSystemHealthOkResponseData, GetTopicByIdOkResponse, GraphRagQueryRequest, GraphRagQueryResponse, GraphRagQueryResponseMetadata, GraphRagService, GroupBy, HealthCheck, HealthCheckStatus, HealthService, HttpError, HttpMetadata, HttpMethod, HttpResponse, IngestionTimeRange, ListApiKeysOkResponse, ListArtifactsOkResponse, ListCommunitiesOkResponse, ListCommunitiesOkResponsePagination, ListConversationsOkResponse, ListConversationsOkResponsePagination, ListFactsOkResponse, ListMemoriesOkResponse, ListPatternsOkResponse, ListPatternsOkResponsePagination, ListTopicsOkResponse, ListTopicsOkResponsePagination, Memnexus, MemoriesService, Memory, MemoryMemoryType1, MemoryMemoryType2, MemoryMemoryType3, MemoryMemoryType4, MergeCommunitiesOkResponse, MergeCommunitiesRequest, MergeTopicsOkResponse, MergeTopicsRequest, Mode, NoCache, Pagination, Pattern, PatternsService, PruneMemoriesOkResponse, PruneMemoriesOkResponseData, PruneMemoriesRequest, QualityDistribution, QueryCommunitiesOkResponse, QueryCommunitiesRequest, RecordPatternFeedbackOkResponse, RecordPatternFeedbackRequest, RelatedMemoryResult, RelatedMemoryResultMemory, RequestConfig, Results, RetryOptions, Role, SdkConfig, SearchConversationsOkResponse, SearchConversationsRequest, SearchFactsOkResponse, SearchFactsOkResponseMetadata, SearchMethod, SearchRequest, SearchRequestMemoryType, SearchResponse, SearchResponsePagination, SearchResult, SearchResultMemory, SearchTopicsOkResponse, SearchTopicsRequest, ServiceCheck, ServiceCheckStatus, SystemService, TemporalMetadata, TemporalMode, Topic, TopicsService, UpdateArtifactOkResponse, UpdateArtifactRequest, UpdateBehavioralStateOkResponse, UpdateBehavioralStateRequest, UpdateFactOkResponse, UpdateFactRequest, UpdateMemoryOkResponse, UpdateMemoryRequest, UpdateMemoryRequestMemoryType, UpdatePatternOkResponse, UpdatePatternRequest, ValidationOptions };
8430
+ export { Analysis, AnalyzeMemoryQualityOkResponse, AnalyzeMemoryQualityOkResponseData, AnalyzePatternsOkResponse, AnalyzePatternsOkResponseData, AnalyzePatternsRequest, ApiKey, ApiKeysService, Artifact, ArtifactsService, BehaviorService, CalculateTopicSimilarityOkResponse, CalculateTopicSimilarityOkResponseData, CalculateTopicSimilarityRequest, ClusterTopicsOkResponse, ClusterTopicsOkResponseData, ClusterTopicsRequest, CommunitiesService, Community, CompilePatternsOkResponse, CompilePatternsRequest, Confidence, Conversation, ConversationsService, CreateApiKeyCreatedResponse, CreateApiKeyCreatedResponseData, CreateApiKeyRequest, CreateArtifactCreatedResponse, CreateArtifactRequest, CreateConversationCreatedResponse, CreateConversationRequest, CreateFactCreatedResponse, CreateFactRequest, CreateMemoryRequest, CreateMemoryRequestMemoryType, CreateMemoryResponse, CreateMemoryResponseMeta, DataMemory, DataStatus, DebugUserOkResponse, DebugUserOkResponseData, DetectCommunitiesOkResponse, DetectCommunitiesOkResponseData, DetectCommunitiesRequest, DetectPatternsOkResponse, DetectPatternsOkResponseData, DetectPatternsRequest, DiscoverRelatedTopicsOkResponse, DiscoverRelatedTopicsRequest, Entity, Environment, Error$1 as Error, EvaluateFeatureFlagOkResponse, EvaluateFeatureFlagOkResponseData, EvaluateFeatureFlagRequest, EventTimeRange, ExecuteGraphRagQueryOkResponse, ExplainGraphRagQueryOkResponse, Explanation, Fact, FactSearchRequest, FactsService, FindConversationsByTopicOkResponse, FindConversationsByTopicOkResponseMetadata, FindConversationsByTopicRequest, FindSimilarTopicsOkResponse, FindSimilarTopicsOkResponseData, FindSimilarTopicsRequest, GetArtifactByIdOkResponse, GetBehavioralStateOkResponse, GetCommunityByIdOkResponse, GetContextStatusOkResponse, GetConversationMemoriesOkResponse, GetConversationSummaryOkResponse, GetConversationTimelineOkResponse, GetFactByIdOkResponse, GetFeatureFlagsOkResponse, GetMemoryResponse, GetRelatedMemoriesOkResponse, GetRelatedMemoriesOkResponseData, GetSimilarMemoriesOkResponse, GetSystemHealthOkResponse, GetSystemHealthOkResponseData, GetTopicByIdOkResponse, GraphRagQueryRequest, GraphRagQueryResponse, GraphRagQueryResponseMetadata, GraphRagService, GroupBy, HealthCheck, HealthCheckStatus, HealthService, HttpError, HttpMetadata, HttpMethod, HttpResponse, IngestionTimeRange, ListApiKeysOkResponse, ListArtifactsOkResponse, ListCommunitiesOkResponse, ListCommunitiesOkResponsePagination, ListConversationsOkResponse, ListConversationsOkResponsePagination, ListFactsOkResponse, ListMemoriesOkResponse, ListPatternsOkResponse, ListPatternsOkResponsePagination, ListTopicsOkResponse, ListTopicsOkResponsePagination, Memnexus, MemoriesService, Memory, MemoryMemoryType1, MemoryMemoryType2, MemoryMemoryType3, MemoryMemoryType4, MergeCommunitiesOkResponse, MergeCommunitiesRequest, MergeTopicsOkResponse, MergeTopicsRequest, Mode, NoCache, Pagination, Pattern, PatternsService, PruneMemoriesOkResponse, PruneMemoriesOkResponseData, PruneMemoriesRequest, QualityDistribution, QueryCommunitiesOkResponse, QueryCommunitiesRequest, RecordPatternFeedbackOkResponse, RecordPatternFeedbackRequest, RelatedMemoryResult, RelatedMemoryResultMemory, RequestConfig, Results, RetryOptions, Role, SdkConfig, SearchConversationsOkResponse, SearchConversationsRequest, SearchFactsOkResponse, SearchFactsOkResponseMetadata, SearchMethod, SearchRequest, SearchRequestMemoryType, SearchResponse, SearchResponsePagination, SearchResult, SearchResultMemory, SearchTopicsOkResponse, SearchTopicsRequest, ServiceCheck, ServiceCheckStatus, SystemService, TemporalMetadata, TemporalMode, Topic, TopicReference, TopicsService, UpdateArtifactOkResponse, UpdateArtifactRequest, UpdateBehavioralStateOkResponse, UpdateBehavioralStateRequest, UpdateFactOkResponse, UpdateFactRequest, UpdateMemoryOkResponse, UpdateMemoryRequest, UpdateMemoryRequestMemoryType, UpdatePatternOkResponse, UpdatePatternRequest, ValidationOptions };