@excali-boards/boards-api-client 1.1.72 → 1.1.74

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.
Files changed (60) hide show
  1. package/dist/classes/admin.d.ts +1 -1
  2. package/dist/classes/auth.d.ts +20 -17
  3. package/dist/classes/boards.d.ts +2 -3
  4. package/dist/classes/personal.d.ts +1 -1
  5. package/dist/classes/sessions.d.ts +3 -0
  6. package/dist/classes/users.d.ts +1 -0
  7. package/dist/external/vars.d.ts +8 -1
  8. package/dist/external/vars.js +3 -1
  9. package/package.json +18 -7
  10. package/prisma/generated/edge.js +11 -6
  11. package/prisma/generated/index-browser.js +5 -1
  12. package/prisma/generated/index.d.ts +153 -4
  13. package/prisma/generated/index.js +11 -6
  14. package/prisma/generated/package.json +1 -1
  15. package/prisma/generated/schema.prisma +7 -0
  16. package/prisma/generated/wasm.js +11 -6
  17. package/prisma/schema/schema.prisma +1 -0
  18. package/prisma/schema/user.prisma +6 -0
  19. package/dist/src/classes/admin.d.ts +0 -23
  20. package/dist/src/classes/admin.js +0 -20
  21. package/dist/src/classes/analytics.d.ts +0 -62
  22. package/dist/src/classes/analytics.js +0 -38
  23. package/dist/src/classes/auth.d.ts +0 -48
  24. package/dist/src/classes/auth.js +0 -12
  25. package/dist/src/classes/boards.d.ts +0 -99
  26. package/dist/src/classes/boards.js +0 -62
  27. package/dist/src/classes/calendar.d.ts +0 -84
  28. package/dist/src/classes/calendar.js +0 -45
  29. package/dist/src/classes/categories.d.ts +0 -75
  30. package/dist/src/classes/categories.js +0 -50
  31. package/dist/src/classes/files.d.ts +0 -45
  32. package/dist/src/classes/files.js +0 -31
  33. package/dist/src/classes/flashcards.d.ts +0 -120
  34. package/dist/src/classes/flashcards.js +0 -68
  35. package/dist/src/classes/groups.d.ts +0 -80
  36. package/dist/src/classes/groups.js +0 -62
  37. package/dist/src/classes/invites.d.ts +0 -116
  38. package/dist/src/classes/invites.js +0 -50
  39. package/dist/src/classes/metrics.d.ts +0 -31
  40. package/dist/src/classes/metrics.js +0 -20
  41. package/dist/src/classes/permissions.d.ts +0 -48
  42. package/dist/src/classes/permissions.js +0 -32
  43. package/dist/src/classes/sessions.d.ts +0 -61
  44. package/dist/src/classes/sessions.js +0 -38
  45. package/dist/src/classes/users.d.ts +0 -37
  46. package/dist/src/classes/users.js +0 -26
  47. package/dist/src/classes/utils.d.ts +0 -19
  48. package/dist/src/classes/utils.js +0 -16
  49. package/dist/src/core/manager.d.ts +0 -44
  50. package/dist/src/core/manager.js +0 -92
  51. package/dist/src/core/utils.d.ts +0 -9
  52. package/dist/src/core/utils.js +0 -52
  53. package/dist/src/external/types.d.ts +0 -87
  54. package/dist/src/external/types.js +0 -4
  55. package/dist/src/external/vars.d.ts +0 -99
  56. package/dist/src/external/vars.js +0 -65
  57. package/dist/src/index.d.ts +0 -20
  58. package/dist/src/index.js +0 -20
  59. package/dist/src/types.d.ts +0 -61
  60. package/dist/src/types.js +0 -1
@@ -13,7 +13,7 @@ export declare class APIAdmin {
13
13
  }>>;
14
14
  getS3BoardContent({ auth, boardId, ...rest }: AdminFunctionsInput['getS3BoardContent']): Promise<import("../types.js").WebResponse<{
15
15
  boardId: string;
16
- type: 'Excalidraw' | 'Tldraw';
16
+ type: "Excalidraw" | "Tldraw";
17
17
  content: unknown;
18
18
  }>>;
19
19
  getUsers({ auth, page, limit, ...rest }: AdminFunctionsInput['getUsers']): Promise<import("../types.js").WebResponse<Paginated<GetUsersOutput>>>;
@@ -6,30 +6,33 @@ export declare class APIAuth {
6
6
  private web;
7
7
  constructor(web: BoardsManager);
8
8
  authenticate({ auth, body, ...rest }: AuthFunctionsInput['authenticate']): Promise<import("../types.js").WebResponse<{
9
+ userId: string;
10
+ email: string;
9
11
  avatarUrl: string | null;
10
- boardPermissions: {
11
- boardId: string;
12
- role: import("prisma/generated/index.js").$Enums.BoardRole;
13
- }[];
14
- categoryPermissions: {
15
- categoryId: string;
16
- role: import("prisma/generated/index.js").$Enums.CategoryRole;
17
- }[];
18
12
  displayName: string;
19
- email: string;
20
- groupPermissions: {
21
- groupId: string;
22
- role: import("prisma/generated/index.js").$Enums.GroupRole;
23
- }[];
13
+ mainGroupId: string | null;
14
+ qrLoginRedirectDelay: boolean;
15
+ mainLoginType: import("prisma/generated/index.js").$Enums.Platforms;
24
16
  invitedBy: string | null;
17
+ registrationMethod: import("prisma/generated/index.js").$Enums.RegistrationMethod;
25
18
  loginMethods: {
26
19
  platform: import("prisma/generated/index.js").$Enums.Platforms;
27
20
  platformEmail: string;
21
+ providerIssuer: string | null;
22
+ providerSubject: string | null;
23
+ }[];
24
+ groupPermissions: {
25
+ groupId: string;
26
+ role: import("prisma/generated/index.js").$Enums.GroupRole;
27
+ }[];
28
+ categoryPermissions: {
29
+ role: import("prisma/generated/index.js").$Enums.CategoryRole;
30
+ categoryId: string;
31
+ }[];
32
+ boardPermissions: {
33
+ role: import("prisma/generated/index.js").$Enums.BoardRole;
34
+ boardId: string;
28
35
  }[];
29
- mainGroupId: string | null;
30
- mainLoginType: import("prisma/generated/index.js").$Enums.Platforms;
31
- registrationMethod: import("prisma/generated/index.js").$Enums.RegistrationMethod;
32
- userId: string;
33
36
  }>>;
34
37
  }
35
38
  export type AuthFunctionsInput = WithHeaders<{
@@ -1,6 +1,5 @@
1
- import { AccessLevel, AllRooms, NameInput, SingleOutput } from '../external/types.js';
1
+ import { AccessLevel, AllRooms, BoardType, NameInput, SingleOutput } from '../external/types.js';
2
2
  import { BoardsManager } from '../core/manager.js';
3
- import { BoardType } from '../external/types.js';
4
3
  import { WithHeaders } from '../types.js';
5
4
  import type { PersonalFunctionsInput } from './personal.js';
6
5
  export declare class APIBoards {
@@ -8,7 +7,7 @@ export declare class APIBoards {
8
7
  constructor(web: BoardsManager);
9
8
  getBoards({ auth, categoryId, groupId, ...rest }: BoardsFunctionsInput['getBoards']): Promise<import("../types.js").WebResponse<GetBoardOutput[]>>;
10
9
  /** @deprecated Use manager.personal for personal-board endpoints. */
11
- getPersonalBoards(input: PersonalFunctionsInput['getPersonalBoards']): Promise<import("../types.js").WebResponse<import("./personal.js").PersonalBoardsAdminOutput | import("./personal.js").PersonalBoardsOutput | null>>;
10
+ getPersonalBoards(input: PersonalFunctionsInput['getPersonalBoards']): Promise<import("../types.js").WebResponse<import("./personal.js").PersonalBoardsOutput | import("./personal.js").PersonalBoardsAdminOutput | null>>;
12
11
  /** @deprecated Use manager.personal for personal-board endpoints. */
13
12
  createPersonalBoard(input: PersonalFunctionsInput['createPersonalBoard']): Promise<import("../types.js").WebResponse<import("./personal.js").CreatePersonalBoardOutput>>;
14
13
  /** @deprecated Use manager.personal for personal-board endpoints. */
@@ -5,7 +5,7 @@ import { WithHeaders } from '../types.js';
5
5
  export declare class APIPersonal {
6
6
  private web;
7
7
  constructor(web: BoardsManager);
8
- getPersonalBoards({ auth, ...rest }: PersonalFunctionsInput['getPersonalBoards']): Promise<import("../types.js").WebResponse<PersonalBoardsAdminOutput | PersonalBoardsOutput | null>>;
8
+ getPersonalBoards({ auth, ...rest }: PersonalFunctionsInput['getPersonalBoards']): Promise<import("../types.js").WebResponse<PersonalBoardsOutput | PersonalBoardsAdminOutput | null>>;
9
9
  getAllPersonalBoards({ auth, ...rest }: PersonalFunctionsInput['getAllPersonalBoards']): Promise<import("../types.js").WebResponse<PersonalWorkspaceOutput[]>>;
10
10
  getPersonalWorkspace({ auth, userId, ...rest }: PersonalFunctionsInput['getPersonalWorkspace']): Promise<import("../types.js").WebResponse<PersonalWorkspaceOutput>>;
11
11
  getPersonalCategoryBoards({ auth, userId, categoryId, ...rest }: PersonalFunctionsInput['getPersonalCategoryBoards']): Promise<import("../types.js").WebResponse<PersonalBoardOutput[]>>;
@@ -57,6 +57,8 @@ export type CreateSessionInput = {
57
57
  platform: Platforms;
58
58
  displayName: string;
59
59
  avatarUrl?: string | null;
60
+ providerIssuer?: string;
61
+ providerSubject?: string;
60
62
  currentUserId?: string;
61
63
  refreshProfile?: boolean;
62
64
  };
@@ -118,6 +120,7 @@ export type QrLoginRedeemOutput = {
118
120
  status: 'approved';
119
121
  token: string;
120
122
  expiresAt: Date;
123
+ redirectDelay: boolean;
121
124
  };
122
125
  export type UnlinkLoginMethodInput = {
123
126
  platform: Platforms;
@@ -35,4 +35,5 @@ export type UserInput = {
35
35
  mainGroupId?: string | null;
36
36
  displayName?: string;
37
37
  platform?: Platforms;
38
+ qrLoginRedirectDelay?: boolean;
38
39
  };
@@ -7,6 +7,7 @@ export declare const DBUserSelectArgs: {
7
7
  invitedBy: true;
8
8
  avatarUrl: true;
9
9
  mainGroupId: true;
10
+ qrLoginRedirectDelay: true;
10
11
  displayName: true;
11
12
  mainLoginType: true;
12
13
  registrationMethod: true;
@@ -32,6 +33,8 @@ export declare const DBUserSelectArgs: {
32
33
  select: {
33
34
  platform: true;
34
35
  platformEmail: true;
36
+ providerIssuer: true;
37
+ providerSubject: true;
35
38
  };
36
39
  };
37
40
  };
@@ -43,6 +46,7 @@ export declare const DBUserPartial: {
43
46
  invitedBy: true;
44
47
  avatarUrl: true;
45
48
  mainGroupId: true;
49
+ qrLoginRedirectDelay: true;
46
50
  displayName: true;
47
51
  mainLoginType: true;
48
52
  registrationMethod: true;
@@ -68,6 +72,8 @@ export declare const DBUserPartial: {
68
72
  select: {
69
73
  platform: true;
70
74
  platformEmail: true;
75
+ providerIssuer: true;
76
+ providerSubject: true;
71
77
  };
72
78
  };
73
79
  };
@@ -77,7 +83,8 @@ export declare enum Platforms {
77
83
  Google = "Google",
78
84
  GitHub = "GitHub",
79
85
  Discord = "Discord",
80
- Microsoft = "Microsoft"
86
+ Microsoft = "Microsoft",
87
+ OIDC = "OIDC"
81
88
  }
82
89
  export declare enum BoardRole {
83
90
  BoardViewer = "BoardViewer",
@@ -6,13 +6,14 @@ export const DBUserSelectArgs = {
6
6
  invitedBy: true,
7
7
  avatarUrl: true,
8
8
  mainGroupId: true,
9
+ qrLoginRedirectDelay: true,
9
10
  displayName: true,
10
11
  mainLoginType: true,
11
12
  registrationMethod: true,
12
13
  groupPermissions: { select: { groupId: true, role: true } },
13
14
  categoryPermissions: { select: { categoryId: true, role: true } },
14
15
  boardPermissions: { select: { boardId: true, role: true } },
15
- loginMethods: { select: { platform: true, platformEmail: true } },
16
+ loginMethods: { select: { platform: true, platformEmail: true, providerIssuer: true, providerSubject: true } },
16
17
  },
17
18
  };
18
19
  // `satisfies` retains the precise selection type without loading Prisma's
@@ -24,6 +25,7 @@ export var Platforms;
24
25
  Platforms["GitHub"] = "GitHub";
25
26
  Platforms["Discord"] = "Discord";
26
27
  Platforms["Microsoft"] = "Microsoft";
28
+ Platforms["OIDC"] = "OIDC";
27
29
  })(Platforms || (Platforms = {}));
28
30
  export var BoardRole;
29
31
  (function (BoardRole) {
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
- "version": "1.1.72",
2
+ "version": "1.1.74",
3
3
  "name": "@excali-boards/boards-api-client",
4
4
  "description": "A simple API client for the Boards API.",
5
- "repository": "https://github.com/Excali-Boards/boards-api-client",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/Excali-Boards/boards-api-client.git"
8
+ },
6
9
  "author": "Digital39999",
7
10
  "scripts": {
8
11
  "ts": "pnpm install typescript --save-dev -g",
@@ -10,7 +13,7 @@
10
13
  "build": "tsc",
11
14
  "postinstall": "prisma generate",
12
15
  "watch": "tsc --watch",
13
- "lint": "eslint . --ext .ts",
16
+ "lint": "eslint .",
14
17
  "updates": "pnpm npm-check-updates -i --format group"
15
18
  },
16
19
  "main": "dist/index.js",
@@ -24,12 +27,20 @@
24
27
  "README.md",
25
28
  "LICENSE"
26
29
  ],
30
+ "pnpm": {
31
+ "onlyBuiltDependencies": [
32
+ "@prisma/client",
33
+ "@prisma/engines",
34
+ "prisma"
35
+ ]
36
+ },
27
37
  "devDependencies": {
28
38
  "@types/node": "20.14.13",
29
- "@typescript-eslint/eslint-plugin": "6.18.0",
30
- "@typescript-eslint/parser": "6.18.0",
31
- "eslint": "8.56.0",
32
- "typescript": "7.0.2"
39
+ "@eslint/js": "10.0.1",
40
+ "eslint": "10.0.1",
41
+ "globals": "17.13.0",
42
+ "typescript": "5.9.3",
43
+ "typescript-eslint": "8.72.0"
33
44
  },
34
45
  "engines": {
35
46
  "node": ">=20.2.0"