@memnexus-ai/typescript-sdk 1.68.6 → 1.68.8
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 +36 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +44 -0
- package/dist/index.d.ts +44 -0
- package/dist/index.js +36 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -11915,6 +11915,50 @@ declare class AdminService extends BaseService {
|
|
|
11915
11915
|
toUpdate?: Record<string, unknown>[];
|
|
11916
11916
|
toUpdateCount?: number;
|
|
11917
11917
|
}>>;
|
|
11918
|
+
/**
|
|
11919
|
+
* Re-encrypt existing plaintext-at-rest Memory and Entity rows (dry-run by default)
|
|
11920
|
+
* @param apply - When true, mutate rows. Default false = dry-run (count only, no writes). May also be supplied as `apply: true` in the request body; either the query param or the body field enables apply mode.
|
|
11921
|
+
* @param body - Request body
|
|
11922
|
+
*/
|
|
11923
|
+
adminMigrateEncryptionBackfill(options?: {
|
|
11924
|
+
apply?: boolean;
|
|
11925
|
+
body?: {
|
|
11926
|
+
apply?: boolean;
|
|
11927
|
+
target?: 'memory' | 'entity' | 'both';
|
|
11928
|
+
maxRows?: number;
|
|
11929
|
+
};
|
|
11930
|
+
}): Promise<HttpResponse<{
|
|
11931
|
+
dryRun: boolean;
|
|
11932
|
+
target: 'memory' | 'entity' | 'both';
|
|
11933
|
+
encryptionConfigured: boolean;
|
|
11934
|
+
preflight?: {
|
|
11935
|
+
memory?: {
|
|
11936
|
+
mixedShape?: number;
|
|
11937
|
+
markerV2Plaintext?: number;
|
|
11938
|
+
};
|
|
11939
|
+
};
|
|
11940
|
+
memory: {
|
|
11941
|
+
scanned?: number;
|
|
11942
|
+
succeeded?: number;
|
|
11943
|
+
failed?: number;
|
|
11944
|
+
skipped?: number;
|
|
11945
|
+
remaining?: number;
|
|
11946
|
+
};
|
|
11947
|
+
entity: {
|
|
11948
|
+
scanned?: number;
|
|
11949
|
+
succeeded?: number;
|
|
11950
|
+
failed?: number;
|
|
11951
|
+
skipped?: number;
|
|
11952
|
+
remaining?: number;
|
|
11953
|
+
};
|
|
11954
|
+
errors: {
|
|
11955
|
+
id?: string;
|
|
11956
|
+
reason?: 'dek_unavailable' | 'encrypt_failed' | 'not_wired' | 'unknown';
|
|
11957
|
+
}[];
|
|
11958
|
+
startedAt: string;
|
|
11959
|
+
completedAt: string;
|
|
11960
|
+
durationMs: number;
|
|
11961
|
+
}>>;
|
|
11918
11962
|
}
|
|
11919
11963
|
|
|
11920
11964
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -11915,6 +11915,50 @@ declare class AdminService extends BaseService {
|
|
|
11915
11915
|
toUpdate?: Record<string, unknown>[];
|
|
11916
11916
|
toUpdateCount?: number;
|
|
11917
11917
|
}>>;
|
|
11918
|
+
/**
|
|
11919
|
+
* Re-encrypt existing plaintext-at-rest Memory and Entity rows (dry-run by default)
|
|
11920
|
+
* @param apply - When true, mutate rows. Default false = dry-run (count only, no writes). May also be supplied as `apply: true` in the request body; either the query param or the body field enables apply mode.
|
|
11921
|
+
* @param body - Request body
|
|
11922
|
+
*/
|
|
11923
|
+
adminMigrateEncryptionBackfill(options?: {
|
|
11924
|
+
apply?: boolean;
|
|
11925
|
+
body?: {
|
|
11926
|
+
apply?: boolean;
|
|
11927
|
+
target?: 'memory' | 'entity' | 'both';
|
|
11928
|
+
maxRows?: number;
|
|
11929
|
+
};
|
|
11930
|
+
}): Promise<HttpResponse<{
|
|
11931
|
+
dryRun: boolean;
|
|
11932
|
+
target: 'memory' | 'entity' | 'both';
|
|
11933
|
+
encryptionConfigured: boolean;
|
|
11934
|
+
preflight?: {
|
|
11935
|
+
memory?: {
|
|
11936
|
+
mixedShape?: number;
|
|
11937
|
+
markerV2Plaintext?: number;
|
|
11938
|
+
};
|
|
11939
|
+
};
|
|
11940
|
+
memory: {
|
|
11941
|
+
scanned?: number;
|
|
11942
|
+
succeeded?: number;
|
|
11943
|
+
failed?: number;
|
|
11944
|
+
skipped?: number;
|
|
11945
|
+
remaining?: number;
|
|
11946
|
+
};
|
|
11947
|
+
entity: {
|
|
11948
|
+
scanned?: number;
|
|
11949
|
+
succeeded?: number;
|
|
11950
|
+
failed?: number;
|
|
11951
|
+
skipped?: number;
|
|
11952
|
+
remaining?: number;
|
|
11953
|
+
};
|
|
11954
|
+
errors: {
|
|
11955
|
+
id?: string;
|
|
11956
|
+
reason?: 'dek_unavailable' | 'encrypt_failed' | 'not_wired' | 'unknown';
|
|
11957
|
+
}[];
|
|
11958
|
+
startedAt: string;
|
|
11959
|
+
completedAt: string;
|
|
11960
|
+
durationMs: number;
|
|
11961
|
+
}>>;
|
|
11918
11962
|
}
|
|
11919
11963
|
|
|
11920
11964
|
/**
|
package/dist/index.js
CHANGED
|
@@ -5735,6 +5735,42 @@ var AdminService = class extends BaseService {
|
|
|
5735
5735
|
}
|
|
5736
5736
|
return this.client.call(request);
|
|
5737
5737
|
}
|
|
5738
|
+
/**
|
|
5739
|
+
* Re-encrypt existing plaintext-at-rest Memory and Entity rows (dry-run by default)
|
|
5740
|
+
* @param apply - When true, mutate rows. Default false = dry-run (count only, no writes). May also be supplied as `apply: true` in the request body; either the query param or the body field enables apply mode.
|
|
5741
|
+
* @param body - Request body
|
|
5742
|
+
*/
|
|
5743
|
+
async adminMigrateEncryptionBackfill(options) {
|
|
5744
|
+
const request = new Request({
|
|
5745
|
+
baseUrl: this.config.baseUrl || "http://localhost:3000",
|
|
5746
|
+
method: "POST",
|
|
5747
|
+
path: "/api/admin/migrate/encryption-backfill",
|
|
5748
|
+
config: this.config,
|
|
5749
|
+
retry: {
|
|
5750
|
+
attempts: 3,
|
|
5751
|
+
delayMs: 150,
|
|
5752
|
+
maxDelayMs: 5e3,
|
|
5753
|
+
jitterMs: 50,
|
|
5754
|
+
backoffFactor: 2
|
|
5755
|
+
}
|
|
5756
|
+
});
|
|
5757
|
+
if (options?.apply !== void 0) {
|
|
5758
|
+
request.addQueryParam("apply", {
|
|
5759
|
+
key: "apply",
|
|
5760
|
+
value: options.apply,
|
|
5761
|
+
explode: false,
|
|
5762
|
+
encode: true,
|
|
5763
|
+
style: "form",
|
|
5764
|
+
isLimit: false,
|
|
5765
|
+
isOffset: false,
|
|
5766
|
+
isCursor: false
|
|
5767
|
+
});
|
|
5768
|
+
}
|
|
5769
|
+
if (options?.body !== void 0) {
|
|
5770
|
+
request.addBody(options?.body);
|
|
5771
|
+
}
|
|
5772
|
+
return this.client.call(request);
|
|
5773
|
+
}
|
|
5738
5774
|
};
|
|
5739
5775
|
|
|
5740
5776
|
// src/services/admin-alerts-service.ts
|