@ai-matrx/vault 0.1.13 → 0.1.15
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/CHANGELOG.md +28 -0
- package/dist/index.cjs +425 -370
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +346 -291
- package/dist/index.js.map +1 -1
- package/dist/io/csv-import.worker.js.map +1 -1
- package/dist/io/onepux.worker.js +3 -3
- package/dist/io/onepux.worker.js.map +1 -1
- package/dist/io/proton-pass.worker.js +2 -2
- package/dist/io/proton-pass.worker.js.map +1 -1
- package/package.json +5 -4
package/dist/index.d.cts
CHANGED
|
@@ -123,7 +123,6 @@ declare const DEFAULT_LOCATION: VaultLocation;
|
|
|
123
123
|
declare function locationFromParams(params: URLSearchParams, itemId?: string | null): VaultLocation;
|
|
124
124
|
/** Writes everything that is not a default (and not the item id, which the host places). */
|
|
125
125
|
declare function locationToParams(loc: VaultLocation): URLSearchParams;
|
|
126
|
-
/** The one search every list shares: name, type, tags, URLs, then plaintext custom fields. */
|
|
127
126
|
declare function matchesQuery(item: VaultItem, query: string): boolean;
|
|
128
127
|
/**
|
|
129
128
|
* The authenticator's own storage on an item (the seed, digits, period, issuer…): shown only as the
|
|
@@ -1173,6 +1172,8 @@ interface VaultHostCapabilities {
|
|
|
1173
1172
|
/** Desktop: the native passkey importer (file chooser, parsing and keys stay native). */
|
|
1174
1173
|
nativeImport?: NativeImportBridge;
|
|
1175
1174
|
openUrl?: (url: string) => void;
|
|
1175
|
+
/** Opens one item in a new browser tab (the web app: `/vault/<id>`). Without it there is no "Open in new tab". */
|
|
1176
|
+
openItemInNewTab?: (itemId: string) => void;
|
|
1176
1177
|
/** The host's own sign-in, offered when the session has ended (the web app: its login page, back here after). */
|
|
1177
1178
|
signIn?: () => void;
|
|
1178
1179
|
/** A lock the host holds (`lock.ts`): while locked the vault shows Unlock and refuses every port call. */
|
|
@@ -1278,7 +1279,7 @@ interface SharingPortOptions {
|
|
|
1278
1279
|
/**
|
|
1279
1280
|
* THE vault client for every host: a VaultPort over the generated `@ai-matrx/api`. The web app, the
|
|
1280
1281
|
* extension and the desktop app hand it their own `Api` (their own sign-in and organization) and get
|
|
1281
|
-
* identical
|
|
1282
|
+
* identical behavior; none of them keeps a hand-written vault client.
|
|
1282
1283
|
*/
|
|
1283
1284
|
|
|
1284
1285
|
interface ApiVaultPortOptions {
|
|
@@ -1304,7 +1305,7 @@ declare function IdentityGate({ identity, children }: {
|
|
|
1304
1305
|
identity: VaultIdentity | undefined;
|
|
1305
1306
|
children: ReactNode;
|
|
1306
1307
|
}): react.JSX.Element;
|
|
1307
|
-
/** True for the rejection a
|
|
1308
|
+
/** True for the rejection a canceled confirmation produces (callers stay quiet about it). */
|
|
1308
1309
|
declare const wasCancelled: (e: unknown) => boolean;
|
|
1309
1310
|
|
|
1310
1311
|
/** Reads the organization's ceilings. Raw knob values are fine: they are validated here. */
|
package/dist/index.d.ts
CHANGED
|
@@ -123,7 +123,6 @@ declare const DEFAULT_LOCATION: VaultLocation;
|
|
|
123
123
|
declare function locationFromParams(params: URLSearchParams, itemId?: string | null): VaultLocation;
|
|
124
124
|
/** Writes everything that is not a default (and not the item id, which the host places). */
|
|
125
125
|
declare function locationToParams(loc: VaultLocation): URLSearchParams;
|
|
126
|
-
/** The one search every list shares: name, type, tags, URLs, then plaintext custom fields. */
|
|
127
126
|
declare function matchesQuery(item: VaultItem, query: string): boolean;
|
|
128
127
|
/**
|
|
129
128
|
* The authenticator's own storage on an item (the seed, digits, period, issuer…): shown only as the
|
|
@@ -1173,6 +1172,8 @@ interface VaultHostCapabilities {
|
|
|
1173
1172
|
/** Desktop: the native passkey importer (file chooser, parsing and keys stay native). */
|
|
1174
1173
|
nativeImport?: NativeImportBridge;
|
|
1175
1174
|
openUrl?: (url: string) => void;
|
|
1175
|
+
/** Opens one item in a new browser tab (the web app: `/vault/<id>`). Without it there is no "Open in new tab". */
|
|
1176
|
+
openItemInNewTab?: (itemId: string) => void;
|
|
1176
1177
|
/** The host's own sign-in, offered when the session has ended (the web app: its login page, back here after). */
|
|
1177
1178
|
signIn?: () => void;
|
|
1178
1179
|
/** A lock the host holds (`lock.ts`): while locked the vault shows Unlock and refuses every port call. */
|
|
@@ -1278,7 +1279,7 @@ interface SharingPortOptions {
|
|
|
1278
1279
|
/**
|
|
1279
1280
|
* THE vault client for every host: a VaultPort over the generated `@ai-matrx/api`. The web app, the
|
|
1280
1281
|
* extension and the desktop app hand it their own `Api` (their own sign-in and organization) and get
|
|
1281
|
-
* identical
|
|
1282
|
+
* identical behavior; none of them keeps a hand-written vault client.
|
|
1282
1283
|
*/
|
|
1283
1284
|
|
|
1284
1285
|
interface ApiVaultPortOptions {
|
|
@@ -1304,7 +1305,7 @@ declare function IdentityGate({ identity, children }: {
|
|
|
1304
1305
|
identity: VaultIdentity | undefined;
|
|
1305
1306
|
children: ReactNode;
|
|
1306
1307
|
}): react.JSX.Element;
|
|
1307
|
-
/** True for the rejection a
|
|
1308
|
+
/** True for the rejection a canceled confirmation produces (callers stay quiet about it). */
|
|
1308
1309
|
declare const wasCancelled: (e: unknown) => boolean;
|
|
1309
1310
|
|
|
1310
1311
|
/** Reads the organization's ceilings. Raw knob values are fine: they are validated here. */
|