codai-sdk 0.62.0 → 0.63.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.ts +70 -1
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2114,7 +2114,11 @@ type paths$1 = {
|
|
|
2114
2114
|
* @description Stores one semantic memory (a fact or preference). Embeds the content once (metered as `memory:create`).
|
|
2115
2115
|
*/
|
|
2116
2116
|
readonly post: operations$1['createMemory'];
|
|
2117
|
-
|
|
2117
|
+
/**
|
|
2118
|
+
* Delete all your memories
|
|
2119
|
+
* @description Erases EVERY memory of the key's account (all tiers, quarantined records included). Needs the explicit confirmation `confirm=all` (query) or `{"confirm":"all"}` (body), otherwise `400` with code `confirm_required`. Always allowed, also on plans without persistent memory; does not call a model.
|
|
2120
|
+
*/
|
|
2121
|
+
readonly delete: operations$1['deleteAllMemories'];
|
|
2118
2122
|
readonly options?: never;
|
|
2119
2123
|
readonly head?: never;
|
|
2120
2124
|
readonly patch?: never;
|
|
@@ -21465,6 +21469,65 @@ interface operations$1 {
|
|
|
21465
21469
|
};
|
|
21466
21470
|
};
|
|
21467
21471
|
};
|
|
21472
|
+
readonly deleteAllMemories: {
|
|
21473
|
+
readonly parameters: {
|
|
21474
|
+
readonly query?: {
|
|
21475
|
+
/** @description Must be `all`. */
|
|
21476
|
+
readonly confirm?: 'all';
|
|
21477
|
+
};
|
|
21478
|
+
readonly header?: {
|
|
21479
|
+
/** @description Client correlation id; echoed back as `x-codai-trace-id` and persisted on the usage row. */
|
|
21480
|
+
readonly 'x-request-id'?: components$1['parameters']['RequestId'];
|
|
21481
|
+
};
|
|
21482
|
+
readonly path?: never;
|
|
21483
|
+
readonly cookie?: never;
|
|
21484
|
+
};
|
|
21485
|
+
readonly requestBody?: never;
|
|
21486
|
+
readonly responses: {
|
|
21487
|
+
/** @description Erased; counts per tier and the total. */
|
|
21488
|
+
readonly 200: {
|
|
21489
|
+
headers: {
|
|
21490
|
+
readonly [name: string]: unknown;
|
|
21491
|
+
};
|
|
21492
|
+
content: {
|
|
21493
|
+
readonly 'application/json': {
|
|
21494
|
+
readonly deleted: {
|
|
21495
|
+
readonly [key: string]: number;
|
|
21496
|
+
};
|
|
21497
|
+
readonly total: number;
|
|
21498
|
+
};
|
|
21499
|
+
};
|
|
21500
|
+
};
|
|
21501
|
+
/** @description Missing confirmation (code `confirm_required`). */
|
|
21502
|
+
readonly 400: {
|
|
21503
|
+
headers: {
|
|
21504
|
+
readonly [name: string]: unknown;
|
|
21505
|
+
};
|
|
21506
|
+
content: {
|
|
21507
|
+
readonly 'application/json': components$1['schemas']['Error'];
|
|
21508
|
+
};
|
|
21509
|
+
};
|
|
21510
|
+
readonly 401: components$1['responses']['Unauthorized'];
|
|
21511
|
+
/** @description The memory store failed for this request (code `memory_error`). */
|
|
21512
|
+
readonly 500: {
|
|
21513
|
+
headers: {
|
|
21514
|
+
readonly [name: string]: unknown;
|
|
21515
|
+
};
|
|
21516
|
+
content: {
|
|
21517
|
+
readonly 'application/json': components$1['schemas']['Error'];
|
|
21518
|
+
};
|
|
21519
|
+
};
|
|
21520
|
+
/** @description Memory is not configured on this gateway (code `memory_unavailable`). */
|
|
21521
|
+
readonly 503: {
|
|
21522
|
+
headers: {
|
|
21523
|
+
readonly [name: string]: unknown;
|
|
21524
|
+
};
|
|
21525
|
+
content: {
|
|
21526
|
+
readonly 'application/json': components$1['schemas']['Error'];
|
|
21527
|
+
};
|
|
21528
|
+
};
|
|
21529
|
+
};
|
|
21530
|
+
};
|
|
21468
21531
|
readonly deleteMemory: {
|
|
21469
21532
|
readonly parameters: {
|
|
21470
21533
|
readonly query?: never;
|
|
@@ -36852,6 +36915,7 @@ export type MemorySearchQuery = Mutable<QueryOf<'searchMemories'>>;
|
|
|
36852
36915
|
export type MemoryCreateInput = Mutable<Body<'createMemory'>>;
|
|
36853
36916
|
export type MemoryCreated = Reply<'createMemory', 201>;
|
|
36854
36917
|
export type MemoryDeleted = Reply<'deleteMemory'>;
|
|
36918
|
+
export type MemoryDeletedAll = Reply<'deleteAllMemories'>;
|
|
36855
36919
|
type CallOpts$7 = {
|
|
36856
36920
|
ext?: CodaiRequestExtensions;
|
|
36857
36921
|
signal?: AbortSignal;
|
|
@@ -36867,6 +36931,11 @@ export declare class Memory {
|
|
|
36867
36931
|
create(input: MemoryCreateInput, opts?: CallOpts$7): Promise<MemoryCreated>;
|
|
36868
36932
|
/** `DELETE /v1/memory/{id}` — 404 when the id is unknown or not yours. */
|
|
36869
36933
|
delete(id: string, opts?: CallOpts$7): Promise<MemoryDeleted>;
|
|
36934
|
+
/**
|
|
36935
|
+
* `DELETE /v1/memory?confirm=all` — erase EVERY memory of your account (all tiers). Irreversible; returns the
|
|
36936
|
+
* counts per tier and the total. Allowed on every plan.
|
|
36937
|
+
*/
|
|
36938
|
+
deleteAll(opts?: CallOpts$7): Promise<MemoryDeletedAll>;
|
|
36870
36939
|
}
|
|
36871
36940
|
//#endregion
|
|
36872
36941
|
//#region src/resources/sandboxes.d.ts
|
package/dist/index.js
CHANGED
|
@@ -5272,6 +5272,18 @@ var Memory = class {
|
|
|
5272
5272
|
signal: opts.signal
|
|
5273
5273
|
});
|
|
5274
5274
|
}
|
|
5275
|
+
/**
|
|
5276
|
+
* `DELETE /v1/memory?confirm=all` — erase EVERY memory of your account (all tiers). Irreversible; returns the
|
|
5277
|
+
* counts per tier and the total. Allowed on every plan.
|
|
5278
|
+
*/
|
|
5279
|
+
deleteAll(opts = {}) {
|
|
5280
|
+
return this.http.json("/v1/memory", {
|
|
5281
|
+
method: "DELETE",
|
|
5282
|
+
query: { confirm: "all" },
|
|
5283
|
+
ext: opts.ext,
|
|
5284
|
+
signal: opts.signal
|
|
5285
|
+
});
|
|
5286
|
+
}
|
|
5275
5287
|
};
|
|
5276
5288
|
|
|
5277
5289
|
//#endregion
|
|
@@ -6431,6 +6443,7 @@ const OPERATION_METHODS = {
|
|
|
6431
6443
|
searchMemories: "memory.search",
|
|
6432
6444
|
createMemory: "memory.create",
|
|
6433
6445
|
deleteMemory: "memory.delete",
|
|
6446
|
+
deleteAllMemories: "memory.deleteAll",
|
|
6434
6447
|
createSandbox: "sandboxes.create",
|
|
6435
6448
|
listSandboxes: "sandboxes.list",
|
|
6436
6449
|
getSandbox: "sandboxes.retrieve",
|