@memnexus-ai/typescript-sdk 1.2.5 → 1.4.1
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 +2 -2
- package/dist/index.d.ts +78 -60
- package/dist/index.js +41 -8
- package/dist/index.mjs +40 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -142,10 +142,10 @@ 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
|
-
| [UpdateMemoryRequest](documentation/models/UpdateMemoryRequest.md) | |
|
|
146
|
-
| [UpdateMemoryOkResponse](documentation/models/UpdateMemoryOkResponse.md) | |
|
|
147
145
|
| [Memory](documentation/models/Memory.md) | |
|
|
148
146
|
| [Error](documentation/models/Error.md) | |
|
|
147
|
+
| [UpdateMemoryRequest](documentation/models/UpdateMemoryRequest.md) | |
|
|
148
|
+
| [UpdateMemoryOkResponse](documentation/models/UpdateMemoryOkResponse.md) | |
|
|
149
149
|
| [ListMemoriesOkResponse](documentation/models/ListMemoriesOkResponse.md) | |
|
|
150
150
|
| [Pagination](documentation/models/Pagination.md) | |
|
|
151
151
|
| [CreateMemoryRequest](documentation/models/CreateMemoryRequest.md) | |
|
package/dist/index.d.ts
CHANGED
|
@@ -2741,6 +2741,63 @@ declare enum ServiceCheckStatus {
|
|
|
2741
2741
|
DOWN = "down"
|
|
2742
2742
|
}
|
|
2743
2743
|
|
|
2744
|
+
/**
|
|
2745
|
+
* The shape of the model inside the application code - what the users use
|
|
2746
|
+
*/
|
|
2747
|
+
declare const memory: z.ZodLazy<z.ZodObject<{
|
|
2748
|
+
id: z.ZodString;
|
|
2749
|
+
content: z.ZodString;
|
|
2750
|
+
memoryType: z.ZodString;
|
|
2751
|
+
context: z.ZodOptional<z.ZodString>;
|
|
2752
|
+
topics: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2753
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
2754
|
+
eventTime: z.ZodOptional<z.ZodString>;
|
|
2755
|
+
validFrom: z.ZodOptional<z.ZodString>;
|
|
2756
|
+
validTo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2757
|
+
createdAt: z.ZodString;
|
|
2758
|
+
updatedAt: z.ZodString;
|
|
2759
|
+
}, "strip", z.ZodTypeAny, {
|
|
2760
|
+
id: string;
|
|
2761
|
+
createdAt: string;
|
|
2762
|
+
content: string;
|
|
2763
|
+
updatedAt: string;
|
|
2764
|
+
memoryType: string;
|
|
2765
|
+
context?: string | undefined;
|
|
2766
|
+
topics?: string[] | undefined;
|
|
2767
|
+
timestamp?: string | undefined;
|
|
2768
|
+
eventTime?: string | undefined;
|
|
2769
|
+
validFrom?: string | undefined;
|
|
2770
|
+
validTo?: string | null | undefined;
|
|
2771
|
+
}, {
|
|
2772
|
+
id: string;
|
|
2773
|
+
createdAt: string;
|
|
2774
|
+
content: string;
|
|
2775
|
+
updatedAt: string;
|
|
2776
|
+
memoryType: string;
|
|
2777
|
+
context?: string | undefined;
|
|
2778
|
+
topics?: string[] | undefined;
|
|
2779
|
+
timestamp?: string | undefined;
|
|
2780
|
+
eventTime?: string | undefined;
|
|
2781
|
+
validFrom?: string | undefined;
|
|
2782
|
+
validTo?: string | null | undefined;
|
|
2783
|
+
}>>;
|
|
2784
|
+
/**
|
|
2785
|
+
*
|
|
2786
|
+
* @typedef {Memory} memory
|
|
2787
|
+
* @property {string} - Unique memory identifier
|
|
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
|
|
2798
|
+
*/
|
|
2799
|
+
type Memory = z.infer<typeof memory>;
|
|
2800
|
+
|
|
2744
2801
|
/**
|
|
2745
2802
|
* The shape of the model inside the application code - what the users use
|
|
2746
2803
|
*/
|
|
@@ -3139,6 +3196,9 @@ declare const searchRequest: z.ZodLazy<z.ZodObject<{
|
|
|
3139
3196
|
ingestionTimeTo: z.ZodOptional<z.ZodString>;
|
|
3140
3197
|
includeExpired: z.ZodOptional<z.ZodBoolean>;
|
|
3141
3198
|
temporalMode: z.ZodOptional<z.ZodString>;
|
|
3199
|
+
topics: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3200
|
+
memoryType: z.ZodOptional<z.ZodString>;
|
|
3201
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
3142
3202
|
}, "strip", z.ZodTypeAny, {
|
|
3143
3203
|
query: string;
|
|
3144
3204
|
mode?: string | undefined;
|
|
@@ -3157,6 +3217,9 @@ declare const searchRequest: z.ZodLazy<z.ZodObject<{
|
|
|
3157
3217
|
ingestionTimeTo?: string | undefined;
|
|
3158
3218
|
includeExpired?: boolean | undefined;
|
|
3159
3219
|
temporalMode?: string | undefined;
|
|
3220
|
+
topics?: string[] | undefined;
|
|
3221
|
+
memoryType?: string | undefined;
|
|
3222
|
+
conversationId?: string | undefined;
|
|
3160
3223
|
}, {
|
|
3161
3224
|
query: string;
|
|
3162
3225
|
mode?: string | undefined;
|
|
@@ -3175,6 +3238,9 @@ declare const searchRequest: z.ZodLazy<z.ZodObject<{
|
|
|
3175
3238
|
ingestionTimeTo?: string | undefined;
|
|
3176
3239
|
includeExpired?: boolean | undefined;
|
|
3177
3240
|
temporalMode?: string | undefined;
|
|
3241
|
+
topics?: string[] | undefined;
|
|
3242
|
+
memoryType?: string | undefined;
|
|
3243
|
+
conversationId?: string | undefined;
|
|
3178
3244
|
}>>;
|
|
3179
3245
|
/**
|
|
3180
3246
|
*
|
|
@@ -3196,6 +3262,9 @@ declare const searchRequest: z.ZodLazy<z.ZodObject<{
|
|
|
3196
3262
|
* @property {string} - Ingestion time range end (ISO 8601 format)
|
|
3197
3263
|
* @property {boolean} - Include expired facts (defaults to false)
|
|
3198
3264
|
* @property {TemporalMode} - Temporal query mode: 'current' (only valid now), 'historical' (as of a point in time), 'evolution' (chronological)
|
|
3265
|
+
* @property {string[]} - Filter by topics - returns memories that have ANY of the specified topics
|
|
3266
|
+
* @property {SearchRequestMemoryType} - Filter by memory type
|
|
3267
|
+
* @property {string} - Filter by conversation ID
|
|
3199
3268
|
*/
|
|
3200
3269
|
type SearchRequest = z.infer<typeof searchRequest>;
|
|
3201
3270
|
|
|
@@ -4130,9 +4199,9 @@ declare class MemoriesService extends BaseService {
|
|
|
4130
4199
|
* Retrieve a specific memory by its ID
|
|
4131
4200
|
* @param {string} id - The memory ID
|
|
4132
4201
|
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
4133
|
-
* @returns {Promise<HttpResponse<
|
|
4202
|
+
* @returns {Promise<HttpResponse<Memory>>} - Memory retrieved successfully
|
|
4134
4203
|
*/
|
|
4135
|
-
getMemoryById(id: string, requestConfig?: RequestConfig): Promise<HttpResponse<
|
|
4204
|
+
getMemoryById(id: string, requestConfig?: RequestConfig): Promise<HttpResponse<Memory>>;
|
|
4136
4205
|
/**
|
|
4137
4206
|
* Update an existing memory for the authenticated user
|
|
4138
4207
|
* @param {string} id - Memory ID
|
|
@@ -4318,6 +4387,12 @@ declare enum TemporalMode {
|
|
|
4318
4387
|
EVOLUTION = "evolution"
|
|
4319
4388
|
}
|
|
4320
4389
|
|
|
4390
|
+
declare enum SearchRequestMemoryType {
|
|
4391
|
+
EPISODIC = "episodic",
|
|
4392
|
+
SEMANTIC = "semantic",
|
|
4393
|
+
PROCEDURAL = "procedural"
|
|
4394
|
+
}
|
|
4395
|
+
|
|
4321
4396
|
/**
|
|
4322
4397
|
* The shape of the model inside the application code - what the users use
|
|
4323
4398
|
*/
|
|
@@ -6367,63 +6442,6 @@ declare const listCommunitiesOkResponsePagination: z.ZodLazy<z.ZodObject<{
|
|
|
6367
6442
|
*/
|
|
6368
6443
|
type ListCommunitiesOkResponsePagination = z.infer<typeof listCommunitiesOkResponsePagination>;
|
|
6369
6444
|
|
|
6370
|
-
/**
|
|
6371
|
-
* The shape of the model inside the application code - what the users use
|
|
6372
|
-
*/
|
|
6373
|
-
declare const memory: z.ZodLazy<z.ZodObject<{
|
|
6374
|
-
id: z.ZodString;
|
|
6375
|
-
content: z.ZodString;
|
|
6376
|
-
memoryType: z.ZodString;
|
|
6377
|
-
context: z.ZodOptional<z.ZodString>;
|
|
6378
|
-
topics: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6379
|
-
timestamp: z.ZodOptional<z.ZodString>;
|
|
6380
|
-
eventTime: z.ZodOptional<z.ZodString>;
|
|
6381
|
-
validFrom: z.ZodOptional<z.ZodString>;
|
|
6382
|
-
validTo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6383
|
-
createdAt: z.ZodString;
|
|
6384
|
-
updatedAt: z.ZodString;
|
|
6385
|
-
}, "strip", z.ZodTypeAny, {
|
|
6386
|
-
id: string;
|
|
6387
|
-
createdAt: string;
|
|
6388
|
-
content: string;
|
|
6389
|
-
updatedAt: string;
|
|
6390
|
-
memoryType: string;
|
|
6391
|
-
context?: string | undefined;
|
|
6392
|
-
topics?: string[] | undefined;
|
|
6393
|
-
timestamp?: string | undefined;
|
|
6394
|
-
eventTime?: string | undefined;
|
|
6395
|
-
validFrom?: string | undefined;
|
|
6396
|
-
validTo?: string | null | undefined;
|
|
6397
|
-
}, {
|
|
6398
|
-
id: string;
|
|
6399
|
-
createdAt: string;
|
|
6400
|
-
content: string;
|
|
6401
|
-
updatedAt: string;
|
|
6402
|
-
memoryType: string;
|
|
6403
|
-
context?: string | undefined;
|
|
6404
|
-
topics?: string[] | undefined;
|
|
6405
|
-
timestamp?: string | undefined;
|
|
6406
|
-
eventTime?: string | undefined;
|
|
6407
|
-
validFrom?: string | undefined;
|
|
6408
|
-
validTo?: string | null | undefined;
|
|
6409
|
-
}>>;
|
|
6410
|
-
/**
|
|
6411
|
-
*
|
|
6412
|
-
* @typedef {Memory} memory
|
|
6413
|
-
* @property {string} - Unique memory identifier
|
|
6414
|
-
* @property {string} - Memory content
|
|
6415
|
-
* @property {MemoryMemoryType1} - Type of memory
|
|
6416
|
-
* @property {string} - Context or domain of the memory
|
|
6417
|
-
* @property {string[]} - Associated topics
|
|
6418
|
-
* @property {string} - System ingestion timestamp (when the system learned about this)
|
|
6419
|
-
* @property {string} - Event time (when the event actually occurred in reality)
|
|
6420
|
-
* @property {string} - Validity start time (when this fact becomes valid)
|
|
6421
|
-
* @property {string} - Validity end time (when this fact expires, null means never expires)
|
|
6422
|
-
* @property {string} - Creation timestamp
|
|
6423
|
-
* @property {string} - Last update timestamp
|
|
6424
|
-
*/
|
|
6425
|
-
type Memory = z.infer<typeof memory>;
|
|
6426
|
-
|
|
6427
6445
|
/**
|
|
6428
6446
|
* The shape of the model inside the application code - what the users use
|
|
6429
6447
|
*/
|
|
@@ -6474,4 +6492,4 @@ declare class Memnexus {
|
|
|
6474
6492
|
set token(token: string);
|
|
6475
6493
|
}
|
|
6476
6494
|
|
|
6477
|
-
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, SearchResponse, SearchResponsePagination, SearchResult, SearchResultMemory, SearchTopicsOkResponse, SearchTopicsRequest, ServiceCheck, ServiceCheckStatus, SystemService, TemporalMetadata, TemporalMode, Topic, TopicsService, UpdateArtifactOkResponse, UpdateArtifactRequest, UpdateBehavioralStateRequest, UpdateFactOkResponse, UpdateFactRequest, UpdateMemoryOkResponse, UpdateMemoryRequest, UpdateMemoryRequestMemoryType, UpdatePatternRequest, ValidationOptions };
|
|
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 };
|
package/dist/index.js
CHANGED
|
@@ -53,6 +53,7 @@ __export(src_exports, {
|
|
|
53
53
|
PatternsService: () => PatternsService,
|
|
54
54
|
Role: () => Role,
|
|
55
55
|
SearchMethod: () => SearchMethod,
|
|
56
|
+
SearchRequestMemoryType: () => SearchRequestMemoryType,
|
|
56
57
|
ServiceCheckStatus: () => ServiceCheckStatus,
|
|
57
58
|
SystemService: () => SystemService,
|
|
58
59
|
TemporalMode: () => TemporalMode,
|
|
@@ -3635,7 +3636,10 @@ var searchRequest = import_zod60.z.lazy(() => {
|
|
|
3635
3636
|
ingestionTimeFrom: import_zod60.z.string().optional(),
|
|
3636
3637
|
ingestionTimeTo: import_zod60.z.string().optional(),
|
|
3637
3638
|
includeExpired: import_zod60.z.boolean().optional(),
|
|
3638
|
-
temporalMode: import_zod60.z.string().optional()
|
|
3639
|
+
temporalMode: import_zod60.z.string().optional(),
|
|
3640
|
+
topics: import_zod60.z.array(import_zod60.z.string()).optional(),
|
|
3641
|
+
memoryType: import_zod60.z.string().optional(),
|
|
3642
|
+
conversationId: import_zod60.z.string().optional()
|
|
3639
3643
|
});
|
|
3640
3644
|
});
|
|
3641
3645
|
var searchRequestResponse = import_zod60.z.lazy(() => {
|
|
@@ -3656,7 +3660,10 @@ var searchRequestResponse = import_zod60.z.lazy(() => {
|
|
|
3656
3660
|
ingestionTimeFrom: import_zod60.z.string().optional(),
|
|
3657
3661
|
ingestionTimeTo: import_zod60.z.string().optional(),
|
|
3658
3662
|
includeExpired: import_zod60.z.boolean().optional(),
|
|
3659
|
-
temporalMode: import_zod60.z.string().optional()
|
|
3663
|
+
temporalMode: import_zod60.z.string().optional(),
|
|
3664
|
+
topics: import_zod60.z.array(import_zod60.z.string()).optional(),
|
|
3665
|
+
memoryType: import_zod60.z.string().optional(),
|
|
3666
|
+
conversationId: import_zod60.z.string().optional()
|
|
3660
3667
|
}).transform((data) => ({
|
|
3661
3668
|
query: data["query"],
|
|
3662
3669
|
mode: data["mode"],
|
|
@@ -3674,7 +3681,10 @@ var searchRequestResponse = import_zod60.z.lazy(() => {
|
|
|
3674
3681
|
ingestionTimeFrom: data["ingestionTimeFrom"],
|
|
3675
3682
|
ingestionTimeTo: data["ingestionTimeTo"],
|
|
3676
3683
|
includeExpired: data["includeExpired"],
|
|
3677
|
-
temporalMode: data["temporalMode"]
|
|
3684
|
+
temporalMode: data["temporalMode"],
|
|
3685
|
+
topics: data["topics"],
|
|
3686
|
+
memoryType: data["memoryType"],
|
|
3687
|
+
conversationId: data["conversationId"]
|
|
3678
3688
|
}));
|
|
3679
3689
|
});
|
|
3680
3690
|
var searchRequestRequest = import_zod60.z.lazy(() => {
|
|
@@ -3695,7 +3705,10 @@ var searchRequestRequest = import_zod60.z.lazy(() => {
|
|
|
3695
3705
|
ingestionTimeFrom: import_zod60.z.string().optional(),
|
|
3696
3706
|
ingestionTimeTo: import_zod60.z.string().optional(),
|
|
3697
3707
|
includeExpired: import_zod60.z.boolean().optional(),
|
|
3698
|
-
temporalMode: import_zod60.z.string().optional()
|
|
3708
|
+
temporalMode: import_zod60.z.string().optional(),
|
|
3709
|
+
topics: import_zod60.z.array(import_zod60.z.string()).optional(),
|
|
3710
|
+
memoryType: import_zod60.z.string().optional(),
|
|
3711
|
+
conversationId: import_zod60.z.string().optional()
|
|
3699
3712
|
}).transform((data) => ({
|
|
3700
3713
|
query: data["query"],
|
|
3701
3714
|
mode: data["mode"],
|
|
@@ -3713,7 +3726,10 @@ var searchRequestRequest = import_zod60.z.lazy(() => {
|
|
|
3713
3726
|
ingestionTimeFrom: data["ingestionTimeFrom"],
|
|
3714
3727
|
ingestionTimeTo: data["ingestionTimeTo"],
|
|
3715
3728
|
includeExpired: data["includeExpired"],
|
|
3716
|
-
temporalMode: data["temporalMode"]
|
|
3729
|
+
temporalMode: data["temporalMode"],
|
|
3730
|
+
topics: data["topics"],
|
|
3731
|
+
memoryType: data["memoryType"],
|
|
3732
|
+
conversationId: data["conversationId"]
|
|
3717
3733
|
}));
|
|
3718
3734
|
});
|
|
3719
3735
|
|
|
@@ -4451,13 +4467,21 @@ var MemoriesService = class extends BaseService {
|
|
|
4451
4467
|
* Retrieve a specific memory by its ID
|
|
4452
4468
|
* @param {string} id - The memory ID
|
|
4453
4469
|
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
4454
|
-
* @returns {Promise<HttpResponse<
|
|
4470
|
+
* @returns {Promise<HttpResponse<Memory>>} - Memory retrieved successfully
|
|
4455
4471
|
*/
|
|
4456
4472
|
async getMemoryById(id, requestConfig) {
|
|
4457
4473
|
const request = new RequestBuilder().setBaseUrl((requestConfig == null ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || "http://localhost:3000" /* DEFAULT */).setConfig(this.config).setMethod("GET").setPath("/api/memories/{id}").setRequestSchema(import_zod78.z.any()).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
|
|
4458
|
-
schema:
|
|
4459
|
-
contentType: "
|
|
4474
|
+
schema: memoryResponse,
|
|
4475
|
+
contentType: "json" /* Json */,
|
|
4460
4476
|
status: 200
|
|
4477
|
+
}).addError({
|
|
4478
|
+
error: Error2,
|
|
4479
|
+
contentType: "json" /* Json */,
|
|
4480
|
+
status: 401
|
|
4481
|
+
}).addError({
|
|
4482
|
+
error: Error2,
|
|
4483
|
+
contentType: "json" /* Json */,
|
|
4484
|
+
status: 404
|
|
4461
4485
|
}).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addPathParam({
|
|
4462
4486
|
key: "id",
|
|
4463
4487
|
value: id
|
|
@@ -4792,6 +4816,14 @@ var TemporalMode = /* @__PURE__ */ ((TemporalMode2) => {
|
|
|
4792
4816
|
return TemporalMode2;
|
|
4793
4817
|
})(TemporalMode || {});
|
|
4794
4818
|
|
|
4819
|
+
// src/services/memories/models/search-request-memory-type.ts
|
|
4820
|
+
var SearchRequestMemoryType = /* @__PURE__ */ ((SearchRequestMemoryType2) => {
|
|
4821
|
+
SearchRequestMemoryType2["EPISODIC"] = "episodic";
|
|
4822
|
+
SearchRequestMemoryType2["SEMANTIC"] = "semantic";
|
|
4823
|
+
SearchRequestMemoryType2["PROCEDURAL"] = "procedural";
|
|
4824
|
+
return SearchRequestMemoryType2;
|
|
4825
|
+
})(SearchRequestMemoryType || {});
|
|
4826
|
+
|
|
4795
4827
|
// src/services/memories/models/memory-memory-type-2.ts
|
|
4796
4828
|
var MemoryMemoryType2 = /* @__PURE__ */ ((MemoryMemoryType22) => {
|
|
4797
4829
|
MemoryMemoryType22["EPISODIC"] = "episodic";
|
|
@@ -6427,6 +6459,7 @@ var Memnexus = class {
|
|
|
6427
6459
|
PatternsService,
|
|
6428
6460
|
Role,
|
|
6429
6461
|
SearchMethod,
|
|
6462
|
+
SearchRequestMemoryType,
|
|
6430
6463
|
ServiceCheckStatus,
|
|
6431
6464
|
SystemService,
|
|
6432
6465
|
TemporalMode,
|
package/dist/index.mjs
CHANGED
|
@@ -3572,7 +3572,10 @@ var searchRequest = z58.lazy(() => {
|
|
|
3572
3572
|
ingestionTimeFrom: z58.string().optional(),
|
|
3573
3573
|
ingestionTimeTo: z58.string().optional(),
|
|
3574
3574
|
includeExpired: z58.boolean().optional(),
|
|
3575
|
-
temporalMode: z58.string().optional()
|
|
3575
|
+
temporalMode: z58.string().optional(),
|
|
3576
|
+
topics: z58.array(z58.string()).optional(),
|
|
3577
|
+
memoryType: z58.string().optional(),
|
|
3578
|
+
conversationId: z58.string().optional()
|
|
3576
3579
|
});
|
|
3577
3580
|
});
|
|
3578
3581
|
var searchRequestResponse = z58.lazy(() => {
|
|
@@ -3593,7 +3596,10 @@ var searchRequestResponse = z58.lazy(() => {
|
|
|
3593
3596
|
ingestionTimeFrom: z58.string().optional(),
|
|
3594
3597
|
ingestionTimeTo: z58.string().optional(),
|
|
3595
3598
|
includeExpired: z58.boolean().optional(),
|
|
3596
|
-
temporalMode: z58.string().optional()
|
|
3599
|
+
temporalMode: z58.string().optional(),
|
|
3600
|
+
topics: z58.array(z58.string()).optional(),
|
|
3601
|
+
memoryType: z58.string().optional(),
|
|
3602
|
+
conversationId: z58.string().optional()
|
|
3597
3603
|
}).transform((data) => ({
|
|
3598
3604
|
query: data["query"],
|
|
3599
3605
|
mode: data["mode"],
|
|
@@ -3611,7 +3617,10 @@ var searchRequestResponse = z58.lazy(() => {
|
|
|
3611
3617
|
ingestionTimeFrom: data["ingestionTimeFrom"],
|
|
3612
3618
|
ingestionTimeTo: data["ingestionTimeTo"],
|
|
3613
3619
|
includeExpired: data["includeExpired"],
|
|
3614
|
-
temporalMode: data["temporalMode"]
|
|
3620
|
+
temporalMode: data["temporalMode"],
|
|
3621
|
+
topics: data["topics"],
|
|
3622
|
+
memoryType: data["memoryType"],
|
|
3623
|
+
conversationId: data["conversationId"]
|
|
3615
3624
|
}));
|
|
3616
3625
|
});
|
|
3617
3626
|
var searchRequestRequest = z58.lazy(() => {
|
|
@@ -3632,7 +3641,10 @@ var searchRequestRequest = z58.lazy(() => {
|
|
|
3632
3641
|
ingestionTimeFrom: z58.string().optional(),
|
|
3633
3642
|
ingestionTimeTo: z58.string().optional(),
|
|
3634
3643
|
includeExpired: z58.boolean().optional(),
|
|
3635
|
-
temporalMode: z58.string().optional()
|
|
3644
|
+
temporalMode: z58.string().optional(),
|
|
3645
|
+
topics: z58.array(z58.string()).optional(),
|
|
3646
|
+
memoryType: z58.string().optional(),
|
|
3647
|
+
conversationId: z58.string().optional()
|
|
3636
3648
|
}).transform((data) => ({
|
|
3637
3649
|
query: data["query"],
|
|
3638
3650
|
mode: data["mode"],
|
|
@@ -3650,7 +3662,10 @@ var searchRequestRequest = z58.lazy(() => {
|
|
|
3650
3662
|
ingestionTimeFrom: data["ingestionTimeFrom"],
|
|
3651
3663
|
ingestionTimeTo: data["ingestionTimeTo"],
|
|
3652
3664
|
includeExpired: data["includeExpired"],
|
|
3653
|
-
temporalMode: data["temporalMode"]
|
|
3665
|
+
temporalMode: data["temporalMode"],
|
|
3666
|
+
topics: data["topics"],
|
|
3667
|
+
memoryType: data["memoryType"],
|
|
3668
|
+
conversationId: data["conversationId"]
|
|
3654
3669
|
}));
|
|
3655
3670
|
});
|
|
3656
3671
|
|
|
@@ -4388,13 +4403,21 @@ var MemoriesService = class extends BaseService {
|
|
|
4388
4403
|
* Retrieve a specific memory by its ID
|
|
4389
4404
|
* @param {string} id - The memory ID
|
|
4390
4405
|
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
4391
|
-
* @returns {Promise<HttpResponse<
|
|
4406
|
+
* @returns {Promise<HttpResponse<Memory>>} - Memory retrieved successfully
|
|
4392
4407
|
*/
|
|
4393
4408
|
async getMemoryById(id, requestConfig) {
|
|
4394
4409
|
const request = new RequestBuilder().setBaseUrl((requestConfig == null ? void 0 : requestConfig.baseUrl) || this.config.baseUrl || this.config.environment || "http://localhost:3000" /* DEFAULT */).setConfig(this.config).setMethod("GET").setPath("/api/memories/{id}").setRequestSchema(z76.any()).addAccessTokenAuth(this.config.token).setRequestContentType("json" /* Json */).addResponse({
|
|
4395
|
-
schema:
|
|
4396
|
-
contentType: "
|
|
4410
|
+
schema: memoryResponse,
|
|
4411
|
+
contentType: "json" /* Json */,
|
|
4397
4412
|
status: 200
|
|
4413
|
+
}).addError({
|
|
4414
|
+
error: Error2,
|
|
4415
|
+
contentType: "json" /* Json */,
|
|
4416
|
+
status: 401
|
|
4417
|
+
}).addError({
|
|
4418
|
+
error: Error2,
|
|
4419
|
+
contentType: "json" /* Json */,
|
|
4420
|
+
status: 404
|
|
4398
4421
|
}).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addPathParam({
|
|
4399
4422
|
key: "id",
|
|
4400
4423
|
value: id
|
|
@@ -4729,6 +4752,14 @@ var TemporalMode = /* @__PURE__ */ ((TemporalMode2) => {
|
|
|
4729
4752
|
return TemporalMode2;
|
|
4730
4753
|
})(TemporalMode || {});
|
|
4731
4754
|
|
|
4755
|
+
// src/services/memories/models/search-request-memory-type.ts
|
|
4756
|
+
var SearchRequestMemoryType = /* @__PURE__ */ ((SearchRequestMemoryType2) => {
|
|
4757
|
+
SearchRequestMemoryType2["EPISODIC"] = "episodic";
|
|
4758
|
+
SearchRequestMemoryType2["SEMANTIC"] = "semantic";
|
|
4759
|
+
SearchRequestMemoryType2["PROCEDURAL"] = "procedural";
|
|
4760
|
+
return SearchRequestMemoryType2;
|
|
4761
|
+
})(SearchRequestMemoryType || {});
|
|
4762
|
+
|
|
4732
4763
|
// src/services/memories/models/memory-memory-type-2.ts
|
|
4733
4764
|
var MemoryMemoryType2 = /* @__PURE__ */ ((MemoryMemoryType22) => {
|
|
4734
4765
|
MemoryMemoryType22["EPISODIC"] = "episodic";
|
|
@@ -6363,6 +6394,7 @@ export {
|
|
|
6363
6394
|
PatternsService,
|
|
6364
6395
|
Role,
|
|
6365
6396
|
SearchMethod,
|
|
6397
|
+
SearchRequestMemoryType,
|
|
6366
6398
|
ServiceCheckStatus,
|
|
6367
6399
|
SystemService,
|
|
6368
6400
|
TemporalMode,
|
package/package.json
CHANGED