@targoninc/lyda-shared 0.0.15 → 0.0.17

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.
@@ -0,0 +1,12 @@
1
+ export interface PublicKey {
2
+ id: string;
3
+ key_id: string;
4
+ public_key: string;
5
+ algorithm: string;
6
+ passkey_user_id: string;
7
+ backed_up: boolean;
8
+ name: string;
9
+ transports: string;
10
+ created_at: Date;
11
+ updated_at: Date;
12
+ }
@@ -6,6 +6,8 @@ import { Subscription } from "../finance/Subscription.js";
6
6
  import { UserEmail } from "./UserEmail.js";
7
7
  import { Permission } from "./Permission.js";
8
8
  import { Entity } from "@targoninc/ts-search";
9
+ import { UserTotp } from "./UserTotp.ts";
10
+ import { PublicKey } from "./PublicKey.ts";
9
11
  export interface User extends Entity {
10
12
  permissions?: Permission[];
11
13
  subscription?: Subscription;
@@ -14,6 +16,8 @@ export interface User extends Entity {
14
16
  userBadges?: UserBadge[];
15
17
  follows?: Follow[];
16
18
  following?: Follow[];
19
+ totp?: UserTotp[];
20
+ public_keys?: PublicKey[];
17
21
  id: number;
18
22
  username: string;
19
23
  mfa_enabled: boolean;
@@ -0,0 +1,9 @@
1
+ export interface UserTotp {
2
+ id: number;
3
+ user_id: number;
4
+ secret: string;
5
+ verified: boolean;
6
+ name: string;
7
+ created_at: Date;
8
+ updated_at: Date;
9
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@targoninc/lyda-shared",
3
3
  "type": "module",
4
- "version": "0.0.15",
4
+ "version": "0.0.17",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "files": [
@@ -0,0 +1,12 @@
1
+ export interface PublicKey {
2
+ id: string;
3
+ key_id: string;
4
+ public_key: string;
5
+ algorithm: string;
6
+ passkey_user_id: string;
7
+ backed_up: boolean;
8
+ name: string;
9
+ transports: string;
10
+ created_at: Date;
11
+ updated_at: Date;
12
+ }
@@ -6,6 +6,8 @@ import {Subscription} from "../finance/Subscription.js";
6
6
  import {UserEmail} from "./UserEmail.js";
7
7
  import {Permission} from "./Permission.js";
8
8
  import {Entity} from "@targoninc/ts-search";
9
+ import {UserTotp} from "./UserTotp.ts";
10
+ import {PublicKey} from "./PublicKey.ts";
9
11
 
10
12
  export interface User extends Entity {
11
13
  permissions?: Permission[];
@@ -15,6 +17,8 @@ export interface User extends Entity {
15
17
  userBadges?: UserBadge[];
16
18
  follows?: Follow[];
17
19
  following?: Follow[];
20
+ totp?: UserTotp[];
21
+ public_keys?: PublicKey[];
18
22
  id: number;
19
23
  username: string;
20
24
  mfa_enabled: boolean;
@@ -0,0 +1,9 @@
1
+ export interface UserTotp {
2
+ id: number;
3
+ user_id: number;
4
+ secret: string;
5
+ verified: boolean;
6
+ name: string;
7
+ created_at: Date;
8
+ updated_at: Date;
9
+ }