@excali-boards/boards-api-client 1.1.73 → 1.1.75

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 (61) hide show
  1. package/dist/classes/admin.d.ts +1 -1
  2. package/dist/classes/auth.d.ts +20 -18
  3. package/dist/classes/boards.d.ts +2 -3
  4. package/dist/classes/personal.d.ts +1 -2
  5. package/dist/classes/sessions.d.ts +2 -0
  6. package/dist/external/vars.d.ts +6 -1
  7. package/dist/external/vars.js +2 -1
  8. package/package.json +18 -7
  9. package/prisma/generated/edge.js +17 -33
  10. package/prisma/generated/index-browser.js +11 -28
  11. package/prisma/generated/index.d.ts +8352 -13418
  12. package/prisma/generated/index.js +17 -33
  13. package/prisma/generated/package.json +1 -1
  14. package/prisma/generated/schema.prisma +23 -55
  15. package/prisma/generated/wasm.js +17 -33
  16. package/prisma/schema/boards.prisma +4 -3
  17. package/prisma/schema/schema.prisma +6 -0
  18. package/prisma/schema/user.prisma +5 -1
  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
  61. package/prisma/schema/personal.prisma +0 -42
@@ -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,31 +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
- qrLoginRedirectDelay: boolean;
32
- registrationMethod: import("prisma/generated/index.js").$Enums.RegistrationMethod;
33
- userId: string;
34
36
  }>>;
35
37
  }
36
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[]>>;
@@ -61,7 +61,6 @@ export type CreatePersonalBoardOutput = {
61
61
  export type CreatePersonalCategoryOutput = {
62
62
  categoryId: string;
63
63
  name: string;
64
- backingCategoryId: string;
65
64
  };
66
65
  export type PersonalBoardsOutput = {
67
66
  id: string;
@@ -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
  };
@@ -33,6 +33,8 @@ export declare const DBUserSelectArgs: {
33
33
  select: {
34
34
  platform: true;
35
35
  platformEmail: true;
36
+ providerIssuer: true;
37
+ providerSubject: true;
36
38
  };
37
39
  };
38
40
  };
@@ -70,6 +72,8 @@ export declare const DBUserPartial: {
70
72
  select: {
71
73
  platform: true;
72
74
  platformEmail: true;
75
+ providerIssuer: true;
76
+ providerSubject: true;
73
77
  };
74
78
  };
75
79
  };
@@ -79,7 +83,8 @@ export declare enum Platforms {
79
83
  Google = "Google",
80
84
  GitHub = "GitHub",
81
85
  Discord = "Discord",
82
- Microsoft = "Microsoft"
86
+ Microsoft = "Microsoft",
87
+ OIDC = "OIDC"
83
88
  }
84
89
  export declare enum BoardRole {
85
90
  BoardViewer = "BoardViewer",
@@ -13,7 +13,7 @@ export const DBUserSelectArgs = {
13
13
  groupPermissions: { select: { groupId: true, role: true } },
14
14
  categoryPermissions: { select: { categoryId: true, role: true } },
15
15
  boardPermissions: { select: { boardId: true, role: true } },
16
- loginMethods: { select: { platform: true, platformEmail: true } },
16
+ loginMethods: { select: { platform: true, platformEmail: true, providerIssuer: true, providerSubject: true } },
17
17
  },
18
18
  };
19
19
  // `satisfies` retains the precise selection type without loading Prisma's
@@ -25,6 +25,7 @@ export var Platforms;
25
25
  Platforms["GitHub"] = "GitHub";
26
26
  Platforms["Discord"] = "Discord";
27
27
  Platforms["Microsoft"] = "Microsoft";
28
+ Platforms["OIDC"] = "OIDC";
28
29
  })(Platforms || (Platforms = {}));
29
30
  export var BoardRole;
30
31
  (function (BoardRole) {
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
- "version": "1.1.73",
2
+ "version": "1.1.75",
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"