@memnexus-ai/typescript-sdk 1.71.4 → 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.d.cts CHANGED
@@ -7301,6 +7301,8 @@ declare const userUsage: z.ZodObject<{
7301
7301
  memoriesRemaining: z.ZodNumber;
7302
7302
  percentUsed: z.ZodNumber;
7303
7303
  plan: z.ZodEnum<["free", "pro", "enterprise"]>;
7304
+ /** 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. */
7305
+ quotaBasis: z.ZodEnum<["monthly"]>;
7304
7306
  periodStart: z.ZodString;
7305
7307
  periodEnd: z.ZodString;
7306
7308
  }, "strip", z.ZodTypeAny, {
@@ -7309,6 +7311,7 @@ declare const userUsage: z.ZodObject<{
7309
7311
  memoriesUsed: number;
7310
7312
  memoriesRemaining: number;
7311
7313
  percentUsed: number;
7314
+ quotaBasis: "monthly";
7312
7315
  periodStart: string;
7313
7316
  periodEnd: string;
7314
7317
  }, {
@@ -7317,6 +7320,7 @@ declare const userUsage: z.ZodObject<{
7317
7320
  memoriesUsed: number;
7318
7321
  memoriesRemaining: number;
7319
7322
  percentUsed: number;
7323
+ quotaBasis: "monthly";
7320
7324
  periodStart: string;
7321
7325
  periodEnd: string;
7322
7326
  }>;
@@ -11257,6 +11261,31 @@ declare class MemoriesService extends BaseService {
11257
11261
  error: string;
11258
11262
  }[];
11259
11263
  }>>;
11264
+ /**
11265
+ * Create a memory from commit context
11266
+ * Accepts raw commit data and stores a summarized memory. Responds 201
11267
+ with placeholder content immediately; LLM distillation replaces it in
11268
+ the background.
11269
+
11270
+ This endpoint CREATES A MEMORY and is therefore subject to the same
11271
+ free-tier cap as `POST /api/memories`.
11272
+
11273
+ Authentication is the standard trust-gateway set — API key, JWT
11274
+ bearer, or service token. The spec models all bearer credentials under
11275
+ the single `ApiKeyAuth` scheme, so this operation inherits the global
11276
+ requirement rather than declaring a narrower one.
11277
+
11278
+ * @param body - Request body
11279
+ */
11280
+ createCommitContextMemory(body: {
11281
+ git: Record<string, unknown>;
11282
+ session?: Record<string, unknown>;
11283
+ diff?: string;
11284
+ transcript?: string;
11285
+ codeContext?: Record<string, unknown>;
11286
+ }): Promise<HttpResponse<{
11287
+ data?: Record<string, unknown>;
11288
+ }>>;
11260
11289
  }
11261
11290
 
11262
11291
  /**
package/dist/index.d.ts CHANGED
@@ -7301,6 +7301,8 @@ declare const userUsage: z.ZodObject<{
7301
7301
  memoriesRemaining: z.ZodNumber;
7302
7302
  percentUsed: z.ZodNumber;
7303
7303
  plan: z.ZodEnum<["free", "pro", "enterprise"]>;
7304
+ /** 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. */
7305
+ quotaBasis: z.ZodEnum<["monthly"]>;
7304
7306
  periodStart: z.ZodString;
7305
7307
  periodEnd: z.ZodString;
7306
7308
  }, "strip", z.ZodTypeAny, {
@@ -7309,6 +7311,7 @@ declare const userUsage: z.ZodObject<{
7309
7311
  memoriesUsed: number;
7310
7312
  memoriesRemaining: number;
7311
7313
  percentUsed: number;
7314
+ quotaBasis: "monthly";
7312
7315
  periodStart: string;
7313
7316
  periodEnd: string;
7314
7317
  }, {
@@ -7317,6 +7320,7 @@ declare const userUsage: z.ZodObject<{
7317
7320
  memoriesUsed: number;
7318
7321
  memoriesRemaining: number;
7319
7322
  percentUsed: number;
7323
+ quotaBasis: "monthly";
7320
7324
  periodStart: string;
7321
7325
  periodEnd: string;
7322
7326
  }>;
@@ -11257,6 +11261,31 @@ declare class MemoriesService extends BaseService {
11257
11261
  error: string;
11258
11262
  }[];
11259
11263
  }>>;
11264
+ /**
11265
+ * Create a memory from commit context
11266
+ * Accepts raw commit data and stores a summarized memory. Responds 201
11267
+ with placeholder content immediately; LLM distillation replaces it in
11268
+ the background.
11269
+
11270
+ This endpoint CREATES A MEMORY and is therefore subject to the same
11271
+ free-tier cap as `POST /api/memories`.
11272
+
11273
+ Authentication is the standard trust-gateway set — API key, JWT
11274
+ bearer, or service token. The spec models all bearer credentials under
11275
+ the single `ApiKeyAuth` scheme, so this operation inherits the global
11276
+ requirement rather than declaring a narrower one.
11277
+
11278
+ * @param body - Request body
11279
+ */
11280
+ createCommitContextMemory(body: {
11281
+ git: Record<string, unknown>;
11282
+ session?: Record<string, unknown>;
11283
+ diff?: string;
11284
+ transcript?: string;
11285
+ codeContext?: Record<string, unknown>;
11286
+ }): Promise<HttpResponse<{
11287
+ data?: Record<string, unknown>;
11288
+ }>>;
11260
11289
  }
11261
11290
 
11262
11291
  /**
package/dist/index.js CHANGED
@@ -3990,6 +3990,41 @@ var MemoriesService = class extends BaseService {
3990
3990
  }
3991
3991
  return this.client.call(request);
3992
3992
  }
3993
+ /**
3994
+ * Create a memory from commit context
3995
+ * Accepts raw commit data and stores a summarized memory. Responds 201
3996
+ with placeholder content immediately; LLM distillation replaces it in
3997
+ the background.
3998
+
3999
+ This endpoint CREATES A MEMORY and is therefore subject to the same
4000
+ free-tier cap as `POST /api/memories`.
4001
+
4002
+ Authentication is the standard trust-gateway set — API key, JWT
4003
+ bearer, or service token. The spec models all bearer credentials under
4004
+ the single `ApiKeyAuth` scheme, so this operation inherits the global
4005
+ requirement rather than declaring a narrower one.
4006
+
4007
+ * @param body - Request body
4008
+ */
4009
+ async createCommitContextMemory(body) {
4010
+ const request = new Request({
4011
+ baseUrl: this.config.baseUrl || "http://localhost:3000",
4012
+ method: "POST",
4013
+ path: "/api/commit-context",
4014
+ config: this.config,
4015
+ retry: {
4016
+ attempts: 3,
4017
+ delayMs: 150,
4018
+ maxDelayMs: 5e3,
4019
+ jitterMs: 50,
4020
+ backoffFactor: 2
4021
+ }
4022
+ });
4023
+ if (body !== void 0) {
4024
+ request.addBody(body);
4025
+ }
4026
+ return this.client.call(request);
4027
+ }
3993
4028
  };
3994
4029
 
3995
4030
  // src/services/invites-service.ts
@@ -7327,6 +7362,8 @@ var userUsage = z.object({
7327
7362
  memoriesRemaining: z.number(),
7328
7363
  percentUsed: z.number(),
7329
7364
  plan: z.enum(["free", "pro", "enterprise"]),
7365
+ /** 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. */
7366
+ quotaBasis: z.enum(["monthly"]),
7330
7367
  periodStart: z.string().datetime(),
7331
7368
  periodEnd: z.string().datetime()
7332
7369
  });