@memnexus-ai/typescript-sdk 1.7.0 → 1.7.3

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
@@ -3919,14 +3919,17 @@ declare const searchResponse: z.ZodLazy<z.ZodObject<{
3919
3919
  type?: string | undefined;
3920
3920
  }>>, "many">>;
3921
3921
  topics: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodObject<{
3922
+ id: z.ZodString;
3922
3923
  name: z.ZodString;
3923
- count: z.ZodNumber;
3924
+ createdAt: z.ZodOptional<z.ZodString>;
3924
3925
  }, "strip", z.ZodTypeAny, {
3926
+ id: string;
3925
3927
  name: string;
3926
- count: number;
3928
+ createdAt?: string | undefined;
3927
3929
  }, {
3930
+ id: string;
3928
3931
  name: string;
3929
- count: number;
3932
+ createdAt?: string | undefined;
3930
3933
  }>>, "many">>;
3931
3934
  searchMethod: z.ZodOptional<z.ZodString>;
3932
3935
  hybridScore: z.ZodOptional<z.ZodNumber>;
@@ -3970,8 +3973,9 @@ declare const searchResponse: z.ZodLazy<z.ZodObject<{
3970
3973
  type?: string | undefined;
3971
3974
  }[] | undefined;
3972
3975
  topics?: {
3976
+ id: string;
3973
3977
  name: string;
3974
- count: number;
3978
+ createdAt?: string | undefined;
3975
3979
  }[] | undefined;
3976
3980
  searchMethod?: string | undefined;
3977
3981
  hybridScore?: number | undefined;
@@ -4005,8 +4009,9 @@ declare const searchResponse: z.ZodLazy<z.ZodObject<{
4005
4009
  type?: string | undefined;
4006
4010
  }[] | undefined;
4007
4011
  topics?: {
4012
+ id: string;
4008
4013
  name: string;
4009
- count: number;
4014
+ createdAt?: string | undefined;
4010
4015
  }[] | undefined;
4011
4016
  searchMethod?: string | undefined;
4012
4017
  hybridScore?: number | undefined;
@@ -4116,8 +4121,9 @@ declare const searchResponse: z.ZodLazy<z.ZodObject<{
4116
4121
  type?: string | undefined;
4117
4122
  }[] | undefined;
4118
4123
  topics?: {
4124
+ id: string;
4119
4125
  name: string;
4120
- count: number;
4126
+ createdAt?: string | undefined;
4121
4127
  }[] | undefined;
4122
4128
  searchMethod?: string | undefined;
4123
4129
  hybridScore?: number | undefined;
@@ -4174,8 +4180,9 @@ declare const searchResponse: z.ZodLazy<z.ZodObject<{
4174
4180
  type?: string | undefined;
4175
4181
  }[] | undefined;
4176
4182
  topics?: {
4183
+ id: string;
4177
4184
  name: string;
4178
- count: number;
4185
+ createdAt?: string | undefined;
4179
4186
  }[] | undefined;
4180
4187
  searchMethod?: string | undefined;
4181
4188
  hybridScore?: number | undefined;
@@ -5036,14 +5043,17 @@ declare const searchResult: z.ZodLazy<z.ZodObject<{
5036
5043
  type?: string | undefined;
5037
5044
  }>>, "many">>;
5038
5045
  topics: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodObject<{
5046
+ id: z.ZodString;
5039
5047
  name: z.ZodString;
5040
- count: z.ZodNumber;
5048
+ createdAt: z.ZodOptional<z.ZodString>;
5041
5049
  }, "strip", z.ZodTypeAny, {
5050
+ id: string;
5042
5051
  name: string;
5043
- count: number;
5052
+ createdAt?: string | undefined;
5044
5053
  }, {
5054
+ id: string;
5045
5055
  name: string;
5046
- count: number;
5056
+ createdAt?: string | undefined;
5047
5057
  }>>, "many">>;
5048
5058
  searchMethod: z.ZodOptional<z.ZodString>;
5049
5059
  hybridScore: z.ZodOptional<z.ZodNumber>;
@@ -5087,8 +5097,9 @@ declare const searchResult: z.ZodLazy<z.ZodObject<{
5087
5097
  type?: string | undefined;
5088
5098
  }[] | undefined;
5089
5099
  topics?: {
5100
+ id: string;
5090
5101
  name: string;
5091
- count: number;
5102
+ createdAt?: string | undefined;
5092
5103
  }[] | undefined;
5093
5104
  searchMethod?: string | undefined;
5094
5105
  hybridScore?: number | undefined;
@@ -5122,8 +5133,9 @@ declare const searchResult: z.ZodLazy<z.ZodObject<{
5122
5133
  type?: string | undefined;
5123
5134
  }[] | undefined;
5124
5135
  topics?: {
5136
+ id: string;
5125
5137
  name: string;
5126
- count: number;
5138
+ createdAt?: string | undefined;
5127
5139
  }[] | undefined;
5128
5140
  searchMethod?: string | undefined;
5129
5141
  hybridScore?: number | undefined;
@@ -5144,7 +5156,7 @@ declare const searchResult: z.ZodLazy<z.ZodObject<{
5144
5156
  * @property {SearchResultMemory} - The memory object
5145
5157
  * @property {number} - Relevance score for this result
5146
5158
  * @property {Entity[]} - Entities mentioned in this memory
5147
- * @property {Topic[]} - Topics associated with this memory
5159
+ * @property {TopicReference[]} - Topics associated with this memory
5148
5160
  * @property {string} - Search method used to find this result
5149
5161
  * @property {number} - Combined RRF score for hybrid search
5150
5162
  * @property {number} - Vector similarity score (0-1)
@@ -5243,6 +5255,33 @@ declare const entity: z.ZodLazy<z.ZodObject<{
5243
5255
  */
5244
5256
  type Entity = z.infer<typeof entity>;
5245
5257
 
5258
+ /**
5259
+ * Zod schema for the TopicReference model.
5260
+ * Defines the structure and validation rules for this data type.
5261
+ * This is the shape used in application code - what developers interact with.
5262
+ */
5263
+ declare const topicReference: z.ZodLazy<z.ZodObject<{
5264
+ id: z.ZodString;
5265
+ name: z.ZodString;
5266
+ createdAt: z.ZodOptional<z.ZodString>;
5267
+ }, "strip", z.ZodTypeAny, {
5268
+ id: string;
5269
+ name: string;
5270
+ createdAt?: string | undefined;
5271
+ }, {
5272
+ id: string;
5273
+ name: string;
5274
+ createdAt?: string | undefined;
5275
+ }>>;
5276
+ /**
5277
+ *
5278
+ * @typedef {TopicReference} topicReference
5279
+ * @property {string} - Topic unique identifier
5280
+ * @property {string} - Topic name
5281
+ * @property {string} - When the topic was created
5282
+ */
5283
+ type TopicReference = z.infer<typeof topicReference>;
5284
+
5246
5285
  /**
5247
5286
  * Zod schema for the Explanation model.
5248
5287
  * Defines the structure and validation rules for this data type.
@@ -7796,6 +7835,29 @@ declare class TopicsService extends BaseService {
7796
7835
  searchTopics(body: SearchTopicsRequest, requestConfig?: RequestConfig): Promise<HttpResponse<SearchTopicsOkResponse>>;
7797
7836
  }
7798
7837
 
7838
+ /**
7839
+ * Zod schema for the Topic model.
7840
+ * Defines the structure and validation rules for this data type.
7841
+ * This is the shape used in application code - what developers interact with.
7842
+ */
7843
+ declare const topic: z.ZodLazy<z.ZodObject<{
7844
+ name: z.ZodString;
7845
+ count: z.ZodNumber;
7846
+ }, "strip", z.ZodTypeAny, {
7847
+ name: string;
7848
+ count: number;
7849
+ }, {
7850
+ name: string;
7851
+ count: number;
7852
+ }>>;
7853
+ /**
7854
+ *
7855
+ * @typedef {Topic} topic
7856
+ * @property {string} - Topic name
7857
+ * @property {number} - Number of memories associated with this topic
7858
+ */
7859
+ type Topic = z.infer<typeof topic>;
7860
+
7799
7861
  /**
7800
7862
  * Zod schema for the ListTopicsOkResponsePagination model.
7801
7863
  * Defines the structure and validation rules for this data type.
@@ -8290,29 +8352,6 @@ declare const memory: z.ZodLazy<z.ZodObject<{
8290
8352
  */
8291
8353
  type Memory = z.infer<typeof memory>;
8292
8354
 
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
8355
  /**
8317
8356
  * Zod schema for the Community model.
8318
8357
  * Defines the structure and validation rules for this data type.
@@ -8381,4 +8420,4 @@ declare class Memnexus {
8381
8420
  set token(token: string);
8382
8421
  }
8383
8422
 
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 };
8423
+ 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 };