@memnexus-ai/typescript-sdk 1.4.0 → 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 +59 -59
- package/dist/index.js +11 -3
- package/dist/index.mjs +11 -3
- 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
|
*/
|
|
@@ -4142,9 +4199,9 @@ declare class MemoriesService extends BaseService {
|
|
|
4142
4199
|
* Retrieve a specific memory by its ID
|
|
4143
4200
|
* @param {string} id - The memory ID
|
|
4144
4201
|
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
4145
|
-
* @returns {Promise<HttpResponse<
|
|
4202
|
+
* @returns {Promise<HttpResponse<Memory>>} - Memory retrieved successfully
|
|
4146
4203
|
*/
|
|
4147
|
-
getMemoryById(id: string, requestConfig?: RequestConfig): Promise<HttpResponse<
|
|
4204
|
+
getMemoryById(id: string, requestConfig?: RequestConfig): Promise<HttpResponse<Memory>>;
|
|
4148
4205
|
/**
|
|
4149
4206
|
* Update an existing memory for the authenticated user
|
|
4150
4207
|
* @param {string} id - Memory ID
|
|
@@ -6385,63 +6442,6 @@ declare const listCommunitiesOkResponsePagination: z.ZodLazy<z.ZodObject<{
|
|
|
6385
6442
|
*/
|
|
6386
6443
|
type ListCommunitiesOkResponsePagination = z.infer<typeof listCommunitiesOkResponsePagination>;
|
|
6387
6444
|
|
|
6388
|
-
/**
|
|
6389
|
-
* The shape of the model inside the application code - what the users use
|
|
6390
|
-
*/
|
|
6391
|
-
declare const memory: z.ZodLazy<z.ZodObject<{
|
|
6392
|
-
id: z.ZodString;
|
|
6393
|
-
content: z.ZodString;
|
|
6394
|
-
memoryType: z.ZodString;
|
|
6395
|
-
context: z.ZodOptional<z.ZodString>;
|
|
6396
|
-
topics: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6397
|
-
timestamp: z.ZodOptional<z.ZodString>;
|
|
6398
|
-
eventTime: z.ZodOptional<z.ZodString>;
|
|
6399
|
-
validFrom: z.ZodOptional<z.ZodString>;
|
|
6400
|
-
validTo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6401
|
-
createdAt: z.ZodString;
|
|
6402
|
-
updatedAt: z.ZodString;
|
|
6403
|
-
}, "strip", z.ZodTypeAny, {
|
|
6404
|
-
id: string;
|
|
6405
|
-
createdAt: string;
|
|
6406
|
-
content: string;
|
|
6407
|
-
updatedAt: string;
|
|
6408
|
-
memoryType: string;
|
|
6409
|
-
context?: string | undefined;
|
|
6410
|
-
topics?: string[] | undefined;
|
|
6411
|
-
timestamp?: string | undefined;
|
|
6412
|
-
eventTime?: string | undefined;
|
|
6413
|
-
validFrom?: string | undefined;
|
|
6414
|
-
validTo?: string | null | undefined;
|
|
6415
|
-
}, {
|
|
6416
|
-
id: string;
|
|
6417
|
-
createdAt: string;
|
|
6418
|
-
content: string;
|
|
6419
|
-
updatedAt: string;
|
|
6420
|
-
memoryType: string;
|
|
6421
|
-
context?: string | undefined;
|
|
6422
|
-
topics?: string[] | undefined;
|
|
6423
|
-
timestamp?: string | undefined;
|
|
6424
|
-
eventTime?: string | undefined;
|
|
6425
|
-
validFrom?: string | undefined;
|
|
6426
|
-
validTo?: string | null | undefined;
|
|
6427
|
-
}>>;
|
|
6428
|
-
/**
|
|
6429
|
-
*
|
|
6430
|
-
* @typedef {Memory} memory
|
|
6431
|
-
* @property {string} - Unique memory identifier
|
|
6432
|
-
* @property {string} - Memory content
|
|
6433
|
-
* @property {MemoryMemoryType1} - Type of memory
|
|
6434
|
-
* @property {string} - Context or domain of the memory
|
|
6435
|
-
* @property {string[]} - Associated topics
|
|
6436
|
-
* @property {string} - System ingestion timestamp (when the system learned about this)
|
|
6437
|
-
* @property {string} - Event time (when the event actually occurred in reality)
|
|
6438
|
-
* @property {string} - Validity start time (when this fact becomes valid)
|
|
6439
|
-
* @property {string} - Validity end time (when this fact expires, null means never expires)
|
|
6440
|
-
* @property {string} - Creation timestamp
|
|
6441
|
-
* @property {string} - Last update timestamp
|
|
6442
|
-
*/
|
|
6443
|
-
type Memory = z.infer<typeof memory>;
|
|
6444
|
-
|
|
6445
6445
|
/**
|
|
6446
6446
|
* The shape of the model inside the application code - what the users use
|
|
6447
6447
|
*/
|
package/dist/index.js
CHANGED
|
@@ -4467,13 +4467,21 @@ var MemoriesService = class extends BaseService {
|
|
|
4467
4467
|
* Retrieve a specific memory by its ID
|
|
4468
4468
|
* @param {string} id - The memory ID
|
|
4469
4469
|
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
4470
|
-
* @returns {Promise<HttpResponse<
|
|
4470
|
+
* @returns {Promise<HttpResponse<Memory>>} - Memory retrieved successfully
|
|
4471
4471
|
*/
|
|
4472
4472
|
async getMemoryById(id, requestConfig) {
|
|
4473
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({
|
|
4474
|
-
schema:
|
|
4475
|
-
contentType: "
|
|
4474
|
+
schema: memoryResponse,
|
|
4475
|
+
contentType: "json" /* Json */,
|
|
4476
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
|
|
4477
4485
|
}).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addPathParam({
|
|
4478
4486
|
key: "id",
|
|
4479
4487
|
value: id
|
package/dist/index.mjs
CHANGED
|
@@ -4403,13 +4403,21 @@ var MemoriesService = class extends BaseService {
|
|
|
4403
4403
|
* Retrieve a specific memory by its ID
|
|
4404
4404
|
* @param {string} id - The memory ID
|
|
4405
4405
|
* @param {RequestConfig} [requestConfig] - The request configuration for retry and validation.
|
|
4406
|
-
* @returns {Promise<HttpResponse<
|
|
4406
|
+
* @returns {Promise<HttpResponse<Memory>>} - Memory retrieved successfully
|
|
4407
4407
|
*/
|
|
4408
4408
|
async getMemoryById(id, requestConfig) {
|
|
4409
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({
|
|
4410
|
-
schema:
|
|
4411
|
-
contentType: "
|
|
4410
|
+
schema: memoryResponse,
|
|
4411
|
+
contentType: "json" /* Json */,
|
|
4412
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
|
|
4413
4421
|
}).setRetryAttempts(this.config, requestConfig).setRetryDelayMs(this.config, requestConfig).setResponseValidation(this.config, requestConfig).addPathParam({
|
|
4414
4422
|
key: "id",
|
|
4415
4423
|
value: id
|
package/package.json
CHANGED