@memnexus-ai/sdk 1.71.5 → 1.72.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/dist/index.cjs +26 -0
- package/dist/index.d.cts +28 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.js +26 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1839,6 +1839,32 @@ var Memories = class {
|
|
|
1839
1839
|
body
|
|
1840
1840
|
});
|
|
1841
1841
|
}
|
|
1842
|
+
/**
|
|
1843
|
+
* Create a memory from commit context
|
|
1844
|
+
*
|
|
1845
|
+
* Accepts raw commit data and stores a summarized memory. Responds 201
|
|
1846
|
+
* with placeholder content immediately; LLM distillation replaces it in
|
|
1847
|
+
* the background.
|
|
1848
|
+
*
|
|
1849
|
+
* This endpoint CREATES A MEMORY and is therefore subject to the same
|
|
1850
|
+
* free-tier cap as `POST /api/memories`.
|
|
1851
|
+
*
|
|
1852
|
+
* Authentication is the standard trust-gateway set — API key, JWT
|
|
1853
|
+
* bearer, or service token. The spec models all bearer credentials under
|
|
1854
|
+
* the single `ApiKeyAuth` scheme, so this operation inherits the global
|
|
1855
|
+
* requirement rather than declaring a narrower one.
|
|
1856
|
+
*
|
|
1857
|
+
* @param body — Request body
|
|
1858
|
+
*/
|
|
1859
|
+
async createCommitContextMemory(body) {
|
|
1860
|
+
const pathParams = {};
|
|
1861
|
+
return this._http.request({
|
|
1862
|
+
method: "POST",
|
|
1863
|
+
path: "/api/commit-context",
|
|
1864
|
+
pathParams,
|
|
1865
|
+
body
|
|
1866
|
+
});
|
|
1867
|
+
}
|
|
1842
1868
|
};
|
|
1843
1869
|
|
|
1844
1870
|
// src/services/invites.ts
|
package/dist/index.d.cts
CHANGED
|
@@ -1208,6 +1208,8 @@ interface UserUsage {
|
|
|
1208
1208
|
memoriesRemaining: number;
|
|
1209
1209
|
percentUsed: number;
|
|
1210
1210
|
plan: 'free' | 'pro' | 'enterprise';
|
|
1211
|
+
/** What memoriesUsed counts. 'monthly' = memories created in the current calendar month; periodStart/periodEnd are that month and the count resets on the 1st. Currently the only value emitted, on every plan. Additional values may be added without a major version — treat an unrecognised value as an unknown basis rather than switching exhaustively. */
|
|
1212
|
+
quotaBasis: 'monthly';
|
|
1211
1213
|
periodStart: string;
|
|
1212
1214
|
periodEnd: string;
|
|
1213
1215
|
}
|
|
@@ -3344,6 +3346,32 @@ declare class Memories {
|
|
|
3344
3346
|
error: string;
|
|
3345
3347
|
}[];
|
|
3346
3348
|
}>>;
|
|
3349
|
+
/**
|
|
3350
|
+
* Create a memory from commit context
|
|
3351
|
+
*
|
|
3352
|
+
* Accepts raw commit data and stores a summarized memory. Responds 201
|
|
3353
|
+
* with placeholder content immediately; LLM distillation replaces it in
|
|
3354
|
+
* the background.
|
|
3355
|
+
*
|
|
3356
|
+
* This endpoint CREATES A MEMORY and is therefore subject to the same
|
|
3357
|
+
* free-tier cap as `POST /api/memories`.
|
|
3358
|
+
*
|
|
3359
|
+
* Authentication is the standard trust-gateway set — API key, JWT
|
|
3360
|
+
* bearer, or service token. The spec models all bearer credentials under
|
|
3361
|
+
* the single `ApiKeyAuth` scheme, so this operation inherits the global
|
|
3362
|
+
* requirement rather than declaring a narrower one.
|
|
3363
|
+
*
|
|
3364
|
+
* @param body — Request body
|
|
3365
|
+
*/
|
|
3366
|
+
createCommitContextMemory(body: {
|
|
3367
|
+
git: Record<string, unknown>;
|
|
3368
|
+
session?: Record<string, unknown>;
|
|
3369
|
+
diff?: string;
|
|
3370
|
+
transcript?: string;
|
|
3371
|
+
codeContext?: Record<string, unknown>;
|
|
3372
|
+
}): Promise<HttpResponse<{
|
|
3373
|
+
data?: Record<string, unknown>;
|
|
3374
|
+
}>>;
|
|
3347
3375
|
}
|
|
3348
3376
|
|
|
3349
3377
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1208,6 +1208,8 @@ interface UserUsage {
|
|
|
1208
1208
|
memoriesRemaining: number;
|
|
1209
1209
|
percentUsed: number;
|
|
1210
1210
|
plan: 'free' | 'pro' | 'enterprise';
|
|
1211
|
+
/** What memoriesUsed counts. 'monthly' = memories created in the current calendar month; periodStart/periodEnd are that month and the count resets on the 1st. Currently the only value emitted, on every plan. Additional values may be added without a major version — treat an unrecognised value as an unknown basis rather than switching exhaustively. */
|
|
1212
|
+
quotaBasis: 'monthly';
|
|
1211
1213
|
periodStart: string;
|
|
1212
1214
|
periodEnd: string;
|
|
1213
1215
|
}
|
|
@@ -3344,6 +3346,32 @@ declare class Memories {
|
|
|
3344
3346
|
error: string;
|
|
3345
3347
|
}[];
|
|
3346
3348
|
}>>;
|
|
3349
|
+
/**
|
|
3350
|
+
* Create a memory from commit context
|
|
3351
|
+
*
|
|
3352
|
+
* Accepts raw commit data and stores a summarized memory. Responds 201
|
|
3353
|
+
* with placeholder content immediately; LLM distillation replaces it in
|
|
3354
|
+
* the background.
|
|
3355
|
+
*
|
|
3356
|
+
* This endpoint CREATES A MEMORY and is therefore subject to the same
|
|
3357
|
+
* free-tier cap as `POST /api/memories`.
|
|
3358
|
+
*
|
|
3359
|
+
* Authentication is the standard trust-gateway set — API key, JWT
|
|
3360
|
+
* bearer, or service token. The spec models all bearer credentials under
|
|
3361
|
+
* the single `ApiKeyAuth` scheme, so this operation inherits the global
|
|
3362
|
+
* requirement rather than declaring a narrower one.
|
|
3363
|
+
*
|
|
3364
|
+
* @param body — Request body
|
|
3365
|
+
*/
|
|
3366
|
+
createCommitContextMemory(body: {
|
|
3367
|
+
git: Record<string, unknown>;
|
|
3368
|
+
session?: Record<string, unknown>;
|
|
3369
|
+
diff?: string;
|
|
3370
|
+
transcript?: string;
|
|
3371
|
+
codeContext?: Record<string, unknown>;
|
|
3372
|
+
}): Promise<HttpResponse<{
|
|
3373
|
+
data?: Record<string, unknown>;
|
|
3374
|
+
}>>;
|
|
3347
3375
|
}
|
|
3348
3376
|
|
|
3349
3377
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1812,6 +1812,32 @@ var Memories = class {
|
|
|
1812
1812
|
body
|
|
1813
1813
|
});
|
|
1814
1814
|
}
|
|
1815
|
+
/**
|
|
1816
|
+
* Create a memory from commit context
|
|
1817
|
+
*
|
|
1818
|
+
* Accepts raw commit data and stores a summarized memory. Responds 201
|
|
1819
|
+
* with placeholder content immediately; LLM distillation replaces it in
|
|
1820
|
+
* the background.
|
|
1821
|
+
*
|
|
1822
|
+
* This endpoint CREATES A MEMORY and is therefore subject to the same
|
|
1823
|
+
* free-tier cap as `POST /api/memories`.
|
|
1824
|
+
*
|
|
1825
|
+
* Authentication is the standard trust-gateway set — API key, JWT
|
|
1826
|
+
* bearer, or service token. The spec models all bearer credentials under
|
|
1827
|
+
* the single `ApiKeyAuth` scheme, so this operation inherits the global
|
|
1828
|
+
* requirement rather than declaring a narrower one.
|
|
1829
|
+
*
|
|
1830
|
+
* @param body — Request body
|
|
1831
|
+
*/
|
|
1832
|
+
async createCommitContextMemory(body) {
|
|
1833
|
+
const pathParams = {};
|
|
1834
|
+
return this._http.request({
|
|
1835
|
+
method: "POST",
|
|
1836
|
+
path: "/api/commit-context",
|
|
1837
|
+
pathParams,
|
|
1838
|
+
body
|
|
1839
|
+
});
|
|
1840
|
+
}
|
|
1815
1841
|
};
|
|
1816
1842
|
|
|
1817
1843
|
// src/services/invites.ts
|