mem0ai 2.1.2 → 2.1.4
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/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { PostHog } from 'posthog-js';
|
|
2
2
|
|
|
3
3
|
interface MemoryOptions {
|
|
4
|
+
api_version?: API_VERSION | string;
|
|
5
|
+
version?: API_VERSION | string;
|
|
4
6
|
user_id?: string;
|
|
5
7
|
agent_id?: string;
|
|
6
8
|
app_id?: string;
|
|
@@ -19,6 +21,7 @@ interface MemoryOptions {
|
|
|
19
21
|
enable_graph?: boolean;
|
|
20
22
|
start_date?: string;
|
|
21
23
|
end_date?: string;
|
|
24
|
+
custom_categories?: custom_categories[];
|
|
22
25
|
}
|
|
23
26
|
interface ProjectOptions {
|
|
24
27
|
fields?: string[];
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { PostHog } from 'posthog-js';
|
|
2
2
|
|
|
3
3
|
interface MemoryOptions {
|
|
4
|
+
api_version?: API_VERSION | string;
|
|
5
|
+
version?: API_VERSION | string;
|
|
4
6
|
user_id?: string;
|
|
5
7
|
agent_id?: string;
|
|
6
8
|
app_id?: string;
|
|
@@ -19,6 +21,7 @@ interface MemoryOptions {
|
|
|
19
21
|
enable_graph?: boolean;
|
|
20
22
|
start_date?: string;
|
|
21
23
|
end_date?: string;
|
|
24
|
+
custom_categories?: custom_categories[];
|
|
22
25
|
}
|
|
23
26
|
interface ProjectOptions {
|
|
24
27
|
fields?: string[];
|
package/dist/index.js
CHANGED
|
@@ -4344,7 +4344,7 @@ var import_axios = __toESM(require("axios"));
|
|
|
4344
4344
|
|
|
4345
4345
|
// src/client/telemetry.browser.ts
|
|
4346
4346
|
var version = "1.0.20";
|
|
4347
|
-
var MEM0_TELEMETRY =
|
|
4347
|
+
var MEM0_TELEMETRY = "false";
|
|
4348
4348
|
var POSTHOG_API_KEY = "phc_hgJkUVJFYtmaJqrvf6CYN67TIQ8yhXAkWzUn9AMU4yX";
|
|
4349
4349
|
var POSTHOG_HOST = "https://us.i.posthog.com";
|
|
4350
4350
|
async function generateHash(input) {
|
|
@@ -4536,6 +4536,9 @@ var MemoryClient = class {
|
|
|
4536
4536
|
if (options.org_name) delete options.org_name;
|
|
4537
4537
|
if (options.project_name) delete options.project_name;
|
|
4538
4538
|
}
|
|
4539
|
+
if (options.api_version) {
|
|
4540
|
+
options.version = options.api_version.toString();
|
|
4541
|
+
}
|
|
4539
4542
|
const payload = this._preparePayload(messages, options);
|
|
4540
4543
|
const response = await this._fetchWithErrorHandling(
|
|
4541
4544
|
`${this.host}/v1/memories/`,
|