@memnexus-ai/typescript-sdk 1.4.1 → 1.6.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 +1 -0
- package/dist/index.d.ts +128 -51
- package/dist/index.js +1046 -1024
- package/dist/index.mjs +1046 -1024
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -142,6 +142,7 @@ The SDK includes several models that represent the data structures used in API r
|
|
|
142
142
|
| [Error](documentation/models/Error.md) | |
|
|
143
143
|
| [HealthCheck](documentation/models/HealthCheck.md) | |
|
|
144
144
|
| [ServiceCheck](documentation/models/ServiceCheck.md) | |
|
|
145
|
+
| [GetMemoryResponse](documentation/models/GetMemoryResponse.md) | Response from getting a memory by ID |
|
|
145
146
|
| [Memory](documentation/models/Memory.md) | |
|
|
146
147
|
| [Error](documentation/models/Error.md) | |
|
|
147
148
|
| [UpdateMemoryRequest](documentation/models/UpdateMemoryRequest.md) | |
|
package/dist/index.d.ts
CHANGED
|
@@ -2744,59 +2744,79 @@ declare enum ServiceCheckStatus {
|
|
|
2744
2744
|
/**
|
|
2745
2745
|
* The shape of the model inside the application code - what the users use
|
|
2746
2746
|
*/
|
|
2747
|
-
declare const
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2747
|
+
declare const getMemoryResponse: z.ZodLazy<z.ZodObject<{
|
|
2748
|
+
data: z.ZodLazy<z.ZodObject<{
|
|
2749
|
+
id: z.ZodString;
|
|
2750
|
+
content: z.ZodString;
|
|
2751
|
+
memoryType: z.ZodString;
|
|
2752
|
+
context: z.ZodOptional<z.ZodString>;
|
|
2753
|
+
topics: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2754
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
2755
|
+
eventTime: z.ZodOptional<z.ZodString>;
|
|
2756
|
+
validFrom: z.ZodOptional<z.ZodString>;
|
|
2757
|
+
validTo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2758
|
+
createdAt: z.ZodString;
|
|
2759
|
+
updatedAt: z.ZodString;
|
|
2760
|
+
}, "strip", z.ZodTypeAny, {
|
|
2761
|
+
id: string;
|
|
2762
|
+
createdAt: string;
|
|
2763
|
+
content: string;
|
|
2764
|
+
updatedAt: string;
|
|
2765
|
+
memoryType: string;
|
|
2766
|
+
context?: string | undefined;
|
|
2767
|
+
topics?: string[] | undefined;
|
|
2768
|
+
timestamp?: string | undefined;
|
|
2769
|
+
eventTime?: string | undefined;
|
|
2770
|
+
validFrom?: string | undefined;
|
|
2771
|
+
validTo?: string | null | undefined;
|
|
2772
|
+
}, {
|
|
2773
|
+
id: string;
|
|
2774
|
+
createdAt: string;
|
|
2775
|
+
content: string;
|
|
2776
|
+
updatedAt: string;
|
|
2777
|
+
memoryType: string;
|
|
2778
|
+
context?: string | undefined;
|
|
2779
|
+
topics?: string[] | undefined;
|
|
2780
|
+
timestamp?: string | undefined;
|
|
2781
|
+
eventTime?: string | undefined;
|
|
2782
|
+
validFrom?: string | undefined;
|
|
2783
|
+
validTo?: string | null | undefined;
|
|
2784
|
+
}>>;
|
|
2759
2785
|
}, "strip", z.ZodTypeAny, {
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2786
|
+
data: {
|
|
2787
|
+
id: string;
|
|
2788
|
+
createdAt: string;
|
|
2789
|
+
content: string;
|
|
2790
|
+
updatedAt: string;
|
|
2791
|
+
memoryType: string;
|
|
2792
|
+
context?: string | undefined;
|
|
2793
|
+
topics?: string[] | undefined;
|
|
2794
|
+
timestamp?: string | undefined;
|
|
2795
|
+
eventTime?: string | undefined;
|
|
2796
|
+
validFrom?: string | undefined;
|
|
2797
|
+
validTo?: string | null | undefined;
|
|
2798
|
+
};
|
|
2771
2799
|
}, {
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2800
|
+
data: {
|
|
2801
|
+
id: string;
|
|
2802
|
+
createdAt: string;
|
|
2803
|
+
content: string;
|
|
2804
|
+
updatedAt: string;
|
|
2805
|
+
memoryType: string;
|
|
2806
|
+
context?: string | undefined;
|
|
2807
|
+
topics?: string[] | undefined;
|
|
2808
|
+
timestamp?: string | undefined;
|
|
2809
|
+
eventTime?: string | undefined;
|
|
2810
|
+
validFrom?: string | undefined;
|
|
2811
|
+
validTo?: string | null | undefined;
|
|
2812
|
+
};
|
|
2783
2813
|
}>>;
|
|
2784
2814
|
/**
|
|
2785
|
-
*
|
|
2786
|
-
* @typedef {
|
|
2787
|
-
* @property {
|
|
2788
|
-
* @property {string} - Memory content
|
|
2789
|
-
* @property {MemoryMemoryType1} - Type of memory
|
|
2790
|
-
* @property {string} - Context or domain of the memory
|
|
2791
|
-
* @property {string[]} - Associated topics
|
|
2792
|
-
* @property {string} - System ingestion timestamp (when the system learned about this)
|
|
2793
|
-
* @property {string} - Event time (when the event actually occurred in reality)
|
|
2794
|
-
* @property {string} - Validity start time (when this fact becomes valid)
|
|
2795
|
-
* @property {string} - Validity end time (when this fact expires, null means never expires)
|
|
2796
|
-
* @property {string} - Creation timestamp
|
|
2797
|
-
* @property {string} - Last update timestamp
|
|
2815
|
+
* Response from getting a memory by ID
|
|
2816
|
+
* @typedef {GetMemoryResponse} getMemoryResponse - Response from getting a memory by ID - Response from getting a memory by ID
|
|
2817
|
+
* @property {Memory}
|
|
2798
2818
|
*/
|
|
2799
|
-
type
|
|
2819
|
+
type GetMemoryResponse = z.infer<typeof getMemoryResponse>;
|
|
2800
2820
|
|
|
2801
2821
|
/**
|
|
2802
2822
|
* The shape of the model inside the application code - what the users use
|
|
@@ -4199,9 +4219,9 @@ declare class MemoriesService extends BaseService {
|
|
|
4199
4219
|
* Retrieve a specific memory by its ID
|
|
4200
4220
|
* @param {string} id - The memory ID
|
|
4201
4221
|
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
4202
|
-
* @returns {Promise<HttpResponse<
|
|
4222
|
+
* @returns {Promise<HttpResponse<GetMemoryResponse>>} - Memory retrieved successfully
|
|
4203
4223
|
*/
|
|
4204
|
-
getMemoryById(id: string, requestConfig?: RequestConfig): Promise<HttpResponse<
|
|
4224
|
+
getMemoryById(id: string, requestConfig?: RequestConfig): Promise<HttpResponse<GetMemoryResponse>>;
|
|
4205
4225
|
/**
|
|
4206
4226
|
* Update an existing memory for the authenticated user
|
|
4207
4227
|
* @param {string} id - Memory ID
|
|
@@ -6442,6 +6462,63 @@ declare const listCommunitiesOkResponsePagination: z.ZodLazy<z.ZodObject<{
|
|
|
6442
6462
|
*/
|
|
6443
6463
|
type ListCommunitiesOkResponsePagination = z.infer<typeof listCommunitiesOkResponsePagination>;
|
|
6444
6464
|
|
|
6465
|
+
/**
|
|
6466
|
+
* The shape of the model inside the application code - what the users use
|
|
6467
|
+
*/
|
|
6468
|
+
declare const memory: z.ZodLazy<z.ZodObject<{
|
|
6469
|
+
id: z.ZodString;
|
|
6470
|
+
content: z.ZodString;
|
|
6471
|
+
memoryType: z.ZodString;
|
|
6472
|
+
context: z.ZodOptional<z.ZodString>;
|
|
6473
|
+
topics: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6474
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
6475
|
+
eventTime: z.ZodOptional<z.ZodString>;
|
|
6476
|
+
validFrom: z.ZodOptional<z.ZodString>;
|
|
6477
|
+
validTo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6478
|
+
createdAt: z.ZodString;
|
|
6479
|
+
updatedAt: z.ZodString;
|
|
6480
|
+
}, "strip", z.ZodTypeAny, {
|
|
6481
|
+
id: string;
|
|
6482
|
+
createdAt: string;
|
|
6483
|
+
content: string;
|
|
6484
|
+
updatedAt: string;
|
|
6485
|
+
memoryType: string;
|
|
6486
|
+
context?: string | undefined;
|
|
6487
|
+
topics?: string[] | undefined;
|
|
6488
|
+
timestamp?: string | undefined;
|
|
6489
|
+
eventTime?: string | undefined;
|
|
6490
|
+
validFrom?: string | undefined;
|
|
6491
|
+
validTo?: string | null | undefined;
|
|
6492
|
+
}, {
|
|
6493
|
+
id: string;
|
|
6494
|
+
createdAt: string;
|
|
6495
|
+
content: string;
|
|
6496
|
+
updatedAt: string;
|
|
6497
|
+
memoryType: string;
|
|
6498
|
+
context?: string | undefined;
|
|
6499
|
+
topics?: string[] | undefined;
|
|
6500
|
+
timestamp?: string | undefined;
|
|
6501
|
+
eventTime?: string | undefined;
|
|
6502
|
+
validFrom?: string | undefined;
|
|
6503
|
+
validTo?: string | null | undefined;
|
|
6504
|
+
}>>;
|
|
6505
|
+
/**
|
|
6506
|
+
*
|
|
6507
|
+
* @typedef {Memory} memory
|
|
6508
|
+
* @property {string} - Unique memory identifier
|
|
6509
|
+
* @property {string} - Memory content
|
|
6510
|
+
* @property {MemoryMemoryType1} - Type of memory
|
|
6511
|
+
* @property {string} - Context or domain of the memory
|
|
6512
|
+
* @property {string[]} - Associated topics
|
|
6513
|
+
* @property {string} - System ingestion timestamp (when the system learned about this)
|
|
6514
|
+
* @property {string} - Event time (when the event actually occurred in reality)
|
|
6515
|
+
* @property {string} - Validity start time (when this fact becomes valid)
|
|
6516
|
+
* @property {string} - Validity end time (when this fact expires, null means never expires)
|
|
6517
|
+
* @property {string} - Creation timestamp
|
|
6518
|
+
* @property {string} - Last update timestamp
|
|
6519
|
+
*/
|
|
6520
|
+
type Memory = z.infer<typeof memory>;
|
|
6521
|
+
|
|
6445
6522
|
/**
|
|
6446
6523
|
* The shape of the model inside the application code - what the users use
|
|
6447
6524
|
*/
|
|
@@ -6492,4 +6569,4 @@ declare class Memnexus {
|
|
|
6492
6569
|
set token(token: string);
|
|
6493
6570
|
}
|
|
6494
6571
|
|
|
6495
|
-
export { AnalyzeMemoryQualityOkResponse, AnalyzeMemoryQualityOkResponseData, AnalyzePatternsRequest, ApiKey, ApiKeysService, Artifact, ArtifactsService, BehaviorService, CalculateTopicSimilarityRequest, ClusterTopicsRequest, CommunitiesService, Community, CompilePatternsRequest, Conversation, ConversationsService, CreateApiKeyCreatedResponse, CreateApiKeyCreatedResponseData, CreateApiKeyRequest, CreateArtifactCreatedResponse, CreateArtifactRequest, CreateConversationCreatedResponse, CreateConversationRequest, CreateFactCreatedResponse, CreateFactRequest, CreateMemoryRequest, CreateMemoryRequestMemoryType, CreateMemoryResponse, CreateMemoryResponseMeta, DataMemory, DetectCommunitiesRequest, DetectPatternsRequest, DiscoverRelatedTopicsRequest, Entity, Environment, Error$1 as Error, EvaluateFeatureFlagRequest, EventTimeRange, ExecuteGraphRagQueryOkResponse, Explanation, Fact, FactSearchRequest, FactsService, FindConversationsByTopicOkResponse, FindConversationsByTopicOkResponseMetadata, FindConversationsByTopicRequest, FindSimilarTopicsRequest, GetArtifactByIdOkResponse, GetCommunityByIdOkResponse, GetConversationMemoriesOkResponse, GetConversationSummaryOkResponse, GetConversationTimelineOkResponse, GetFactByIdOkResponse, GetRelatedMemoriesOkResponse, GetRelatedMemoriesOkResponseData, GetSimilarMemoriesOkResponse, 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, MergeTopicsRequest, Mode, NoCache, Pagination, Pattern, PatternsService, PruneMemoriesOkResponse, PruneMemoriesOkResponseData, PruneMemoriesRequest, QualityDistribution, QueryCommunitiesRequest, 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, UpdateBehavioralStateRequest, UpdateFactOkResponse, UpdateFactRequest, UpdateMemoryOkResponse, UpdateMemoryRequest, UpdateMemoryRequestMemoryType, UpdatePatternRequest, ValidationOptions };
|
|
6572
|
+
export { AnalyzeMemoryQualityOkResponse, AnalyzeMemoryQualityOkResponseData, AnalyzePatternsRequest, ApiKey, ApiKeysService, Artifact, ArtifactsService, BehaviorService, CalculateTopicSimilarityRequest, ClusterTopicsRequest, CommunitiesService, Community, CompilePatternsRequest, Conversation, ConversationsService, CreateApiKeyCreatedResponse, CreateApiKeyCreatedResponseData, CreateApiKeyRequest, CreateArtifactCreatedResponse, CreateArtifactRequest, CreateConversationCreatedResponse, CreateConversationRequest, CreateFactCreatedResponse, CreateFactRequest, CreateMemoryRequest, CreateMemoryRequestMemoryType, CreateMemoryResponse, CreateMemoryResponseMeta, DataMemory, DetectCommunitiesRequest, DetectPatternsRequest, DiscoverRelatedTopicsRequest, Entity, Environment, Error$1 as Error, EvaluateFeatureFlagRequest, EventTimeRange, ExecuteGraphRagQueryOkResponse, Explanation, Fact, FactSearchRequest, FactsService, FindConversationsByTopicOkResponse, FindConversationsByTopicOkResponseMetadata, FindConversationsByTopicRequest, FindSimilarTopicsRequest, GetArtifactByIdOkResponse, GetCommunityByIdOkResponse, GetConversationMemoriesOkResponse, GetConversationSummaryOkResponse, GetConversationTimelineOkResponse, GetFactByIdOkResponse, GetMemoryResponse, GetRelatedMemoriesOkResponse, GetRelatedMemoriesOkResponseData, GetSimilarMemoriesOkResponse, 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, MergeTopicsRequest, Mode, NoCache, Pagination, Pattern, PatternsService, PruneMemoriesOkResponse, PruneMemoriesOkResponseData, PruneMemoriesRequest, QualityDistribution, QueryCommunitiesRequest, 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, UpdateBehavioralStateRequest, UpdateFactOkResponse, UpdateFactRequest, UpdateMemoryOkResponse, UpdateMemoryRequest, UpdateMemoryRequestMemoryType, UpdatePatternRequest, ValidationOptions };
|