@ai-matrx/vault 0.1.55 → 0.1.57

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
@@ -90,6 +90,7 @@ interface VaultItem {
90
90
  fields: VaultField[];
91
91
  custom: VaultCustomField[];
92
92
  authenticator: VaultAuthenticator | null;
93
+ authenticatorState: "known" | "pending" | "unavailable";
93
94
  capabilities: VaultItemCapabilities;
94
95
  attachments: VaultAttachment[];
95
96
  uriMatchMode: UriMatchMode;
@@ -323,7 +324,13 @@ type ItemRef = Pick<VaultItem, "id" | "owner">;
323
324
  */
324
325
  interface AuthenticatorPort {
325
326
  /** Every account the signed-in person holds a one-time password for. */
326
- list(): Promise<AuthenticatorEntry[]>;
327
+ list(): Promise<{
328
+ entries: AuthenticatorEntry[];
329
+ unavailableScopes: {
330
+ type: "user" | "organization" | "shared";
331
+ organizationId?: string | null;
332
+ }[];
333
+ }>;
327
334
  /** null when the item has none. */
328
335
  get(item: ItemRef): Promise<AuthenticatorEntry | null>;
329
336
  /** The current code and how long it lives. */
package/dist/index.d.ts CHANGED
@@ -90,6 +90,7 @@ interface VaultItem {
90
90
  fields: VaultField[];
91
91
  custom: VaultCustomField[];
92
92
  authenticator: VaultAuthenticator | null;
93
+ authenticatorState: "known" | "pending" | "unavailable";
93
94
  capabilities: VaultItemCapabilities;
94
95
  attachments: VaultAttachment[];
95
96
  uriMatchMode: UriMatchMode;
@@ -323,7 +324,13 @@ type ItemRef = Pick<VaultItem, "id" | "owner">;
323
324
  */
324
325
  interface AuthenticatorPort {
325
326
  /** Every account the signed-in person holds a one-time password for. */
326
- list(): Promise<AuthenticatorEntry[]>;
327
+ list(): Promise<{
328
+ entries: AuthenticatorEntry[];
329
+ unavailableScopes: {
330
+ type: "user" | "organization" | "shared";
331
+ organizationId?: string | null;
332
+ }[];
333
+ }>;
327
334
  /** null when the item has none. */
328
335
  get(item: ItemRef): Promise<AuthenticatorEntry | null>;
329
336
  /** The current code and how long it lives. */