@intlayer/backend 7.3.12 → 7.3.14

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 (40) hide show
  1. package/dist/assets/utils/AI/askDocQuestion/embeddings/docs/en/intlayer_with_nuxt.json +9236 -1
  2. package/dist/esm/utils/auth/getAuth.mjs +1 -1
  3. package/dist/esm/utils/auth/getAuth.mjs.map +1 -1
  4. package/dist/types/controllers/dictionary.controller.d.ts.map +1 -1
  5. package/dist/types/emails/InviteUserEmail.d.ts +4 -4
  6. package/dist/types/emails/InviteUserEmail.d.ts.map +1 -1
  7. package/dist/types/emails/MagicLinkEmail.d.ts +4 -4
  8. package/dist/types/emails/MagicLinkEmail.d.ts.map +1 -1
  9. package/dist/types/emails/PasswordChangeConfirmation.d.ts +4 -4
  10. package/dist/types/emails/PasswordChangeConfirmation.d.ts.map +1 -1
  11. package/dist/types/emails/ResetUserPassword.d.ts +4 -4
  12. package/dist/types/emails/SubscriptionPaymentSuccess.d.ts +4 -4
  13. package/dist/types/emails/ValidateUserEmail.d.ts +4 -4
  14. package/dist/types/emails/ValidateUserEmail.d.ts.map +1 -1
  15. package/dist/types/emails/Welcome.d.ts +4 -4
  16. package/dist/types/models/dictionary.model.d.ts +4 -4
  17. package/dist/types/models/dictionary.model.d.ts.map +1 -1
  18. package/dist/types/models/discussion.model.d.ts +2 -2
  19. package/dist/types/models/oAuth2.model.d.ts +3 -3
  20. package/dist/types/models/oAuth2.model.d.ts.map +1 -1
  21. package/dist/types/schemas/dictionary.schema.d.ts +6 -6
  22. package/dist/types/schemas/dictionary.schema.d.ts.map +1 -1
  23. package/dist/types/schemas/discussion.schema.d.ts +6 -6
  24. package/dist/types/schemas/oAuth2.schema.d.ts +5 -5
  25. package/dist/types/schemas/oAuth2.schema.d.ts.map +1 -1
  26. package/dist/types/schemas/organization.schema.d.ts +6 -6
  27. package/dist/types/schemas/plans.schema.d.ts +6 -6
  28. package/dist/types/schemas/plans.schema.d.ts.map +1 -1
  29. package/dist/types/schemas/project.schema.d.ts +6 -6
  30. package/dist/types/schemas/session.schema.d.ts +6 -6
  31. package/dist/types/schemas/tag.schema.d.ts +6 -6
  32. package/dist/types/schemas/user.schema.d.ts +6 -6
  33. package/dist/types/services/email.service.d.ts +11 -11
  34. package/dist/types/utils/auth/getAuth.d.ts.map +1 -1
  35. package/dist/types/utils/filtersAndPagination/getDictionaryFiltersAndPagination.d.ts +2 -2
  36. package/dist/types/utils/filtersAndPagination/getDiscussionFiltersAndPagination.d.ts +2 -2
  37. package/dist/types/utils/filtersAndPagination/getOrganizationFiltersAndPagination.d.ts +2 -2
  38. package/dist/types/utils/filtersAndPagination/getProjectFiltersAndPagination.d.ts +2 -2
  39. package/dist/types/utils/filtersAndPagination/getTagFiltersAndPagination.d.ts +2 -2
  40. package/package.json +13 -11
@@ -1,16 +1,16 @@
1
1
  import { Tag, TagSchema } from "../types/tag.types.js";
2
- import * as mongoose71 from "mongoose";
2
+ import * as mongoose90 from "mongoose";
3
3
  import { Schema } from "mongoose";
4
4
 
5
5
  //#region src/schemas/tag.schema.d.ts
6
- declare const tagSchema: Schema<TagSchema, mongoose71.Model<TagSchema, any, any, any, mongoose71.Document<unknown, any, TagSchema, any, {}> & Omit<Tag, "id"> & {
7
- _id: mongoose71.Types.ObjectId;
6
+ declare const tagSchema: Schema<TagSchema, mongoose90.Model<TagSchema, any, any, any, mongoose90.Document<unknown, any, TagSchema, any, {}> & Omit<Tag, "id"> & {
7
+ _id: mongoose90.Types.ObjectId;
8
8
  } & Required<{
9
- _id: mongoose71.Types.ObjectId;
9
+ _id: mongoose90.Types.ObjectId;
10
10
  }> & {
11
11
  __v: number;
12
- }, any>, {}, {}, {}, {}, mongoose71.DefaultSchemaOptions, TagSchema, mongoose71.Document<unknown, {}, mongoose71.FlatRecord<TagSchema>, {}, mongoose71.ResolveSchemaOptions<mongoose71.DefaultSchemaOptions>> & mongoose71.FlatRecord<TagSchema> & Required<{
13
- _id: mongoose71.Types.ObjectId;
12
+ }, any>, {}, {}, {}, {}, mongoose90.DefaultSchemaOptions, TagSchema, mongoose90.Document<unknown, {}, mongoose90.FlatRecord<TagSchema>, {}, mongoose90.ResolveSchemaOptions<mongoose90.DefaultSchemaOptions>> & mongoose90.FlatRecord<TagSchema> & Required<{
13
+ _id: mongoose90.Types.ObjectId;
14
14
  }> & {
15
15
  __v: number;
16
16
  }>;
@@ -1,16 +1,16 @@
1
1
  import { User, UserSchema } from "../types/user.types.js";
2
- import * as mongoose60 from "mongoose";
2
+ import * as mongoose76 from "mongoose";
3
3
  import { Schema } from "mongoose";
4
4
 
5
5
  //#region src/schemas/user.schema.d.ts
6
- declare const userSchema: Schema<UserSchema, mongoose60.Model<UserSchema, any, any, any, mongoose60.Document<unknown, any, UserSchema, any, {}> & Omit<User, "id"> & {
7
- _id: mongoose60.Types.ObjectId;
6
+ declare const userSchema: Schema<UserSchema, mongoose76.Model<UserSchema, any, any, any, mongoose76.Document<unknown, any, UserSchema, any, {}> & Omit<User, "id"> & {
7
+ _id: mongoose76.Types.ObjectId;
8
8
  } & Required<{
9
- _id: mongoose60.Types.ObjectId;
9
+ _id: mongoose76.Types.ObjectId;
10
10
  }> & {
11
11
  __v: number;
12
- }, any>, {}, {}, {}, {}, mongoose60.DefaultSchemaOptions, UserSchema, mongoose60.Document<unknown, {}, mongoose60.FlatRecord<UserSchema>, {}, mongoose60.ResolveSchemaOptions<mongoose60.DefaultSchemaOptions>> & mongoose60.FlatRecord<UserSchema> & Required<{
13
- _id: mongoose60.Types.ObjectId;
12
+ }, any>, {}, {}, {}, {}, mongoose76.DefaultSchemaOptions, UserSchema, mongoose76.Document<unknown, {}, mongoose76.FlatRecord<UserSchema>, {}, mongoose76.ResolveSchemaOptions<mongoose76.DefaultSchemaOptions>> & mongoose76.FlatRecord<UserSchema> & Required<{
13
+ _id: mongoose76.Types.ObjectId;
14
14
  }> & {
15
15
  __v: number;
16
16
  }>;
@@ -9,7 +9,7 @@ import { SubscriptionPaymentSuccessProps } from "../emails/SubscriptionPaymentSu
9
9
  import { ValidateUserEmailProps } from "../emails/ValidateUserEmail.js";
10
10
  import { WelcomeEmailProps } from "../emails/Welcome.js";
11
11
  import { Locale } from "@intlayer/types";
12
- import * as react_jsx_runtime26 from "react/jsx-runtime";
12
+ import * as react_jsx_runtime29 from "react/jsx-runtime";
13
13
  import { ComponentProps } from "react";
14
14
 
15
15
  //#region src/services/email.service.d.ts
@@ -24,7 +24,7 @@ declare const getEmailComponents: (locale?: Locale) => {
24
24
  inviteLink,
25
25
  inviteFromIp,
26
26
  inviteFromLocation
27
- }: InviteUserEmailProps): react_jsx_runtime26.JSX.Element;
27
+ }: InviteUserEmailProps): react_jsx_runtime29.JSX.Element;
28
28
  PreviewProps: InviteUserEmailProps;
29
29
  };
30
30
  subject: string;
@@ -34,7 +34,7 @@ declare const getEmailComponents: (locale?: Locale) => {
34
34
  ({
35
35
  username,
36
36
  validationLink
37
- }: ValidateUserEmailProps): react_jsx_runtime26.JSX.Element;
37
+ }: ValidateUserEmailProps): react_jsx_runtime29.JSX.Element;
38
38
  PreviewProps: ValidateUserEmailProps;
39
39
  };
40
40
  subject: string;
@@ -44,7 +44,7 @@ declare const getEmailComponents: (locale?: Locale) => {
44
44
  ({
45
45
  username,
46
46
  resetLink
47
- }: ResetPasswordEmailProps): react_jsx_runtime26.JSX.Element;
47
+ }: ResetPasswordEmailProps): react_jsx_runtime29.JSX.Element;
48
48
  PreviewProps: ResetPasswordEmailProps;
49
49
  };
50
50
  subject: string;
@@ -54,7 +54,7 @@ declare const getEmailComponents: (locale?: Locale) => {
54
54
  ({
55
55
  username,
56
56
  loginLink
57
- }: WelcomeEmailProps): react_jsx_runtime26.JSX.Element;
57
+ }: WelcomeEmailProps): react_jsx_runtime29.JSX.Element;
58
58
  PreviewProps: WelcomeEmailProps;
59
59
  };
60
60
  subject: string;
@@ -64,7 +64,7 @@ declare const getEmailComponents: (locale?: Locale) => {
64
64
  ({
65
65
  username,
66
66
  magicLink
67
- }: MagicLinkEmailProps): react_jsx_runtime26.JSX.Element;
67
+ }: MagicLinkEmailProps): react_jsx_runtime29.JSX.Element;
68
68
  PreviewProps: MagicLinkEmailProps;
69
69
  };
70
70
  subject: string;
@@ -73,7 +73,7 @@ declare const getEmailComponents: (locale?: Locale) => {
73
73
  template: {
74
74
  ({
75
75
  username
76
- }: PasswordChangeConfirmationEmailProps): react_jsx_runtime26.JSX.Element;
76
+ }: PasswordChangeConfirmationEmailProps): react_jsx_runtime29.JSX.Element;
77
77
  PreviewProps: PasswordChangeConfirmationEmailProps;
78
78
  };
79
79
  subject: string;
@@ -86,7 +86,7 @@ declare const getEmailComponents: (locale?: Locale) => {
86
86
  organizationName,
87
87
  subscriptionStartDate,
88
88
  manageSubscriptionLink
89
- }: SubscriptionPaymentSuccessProps): react_jsx_runtime26.JSX.Element;
89
+ }: SubscriptionPaymentSuccessProps): react_jsx_runtime29.JSX.Element;
90
90
  PreviewProps: SubscriptionPaymentSuccessProps;
91
91
  };
92
92
  subject: string;
@@ -99,7 +99,7 @@ declare const getEmailComponents: (locale?: Locale) => {
99
99
  organizationName,
100
100
  cancellationDate,
101
101
  reactivateLink
102
- }: SubscriptionPaymentCancellationProps): react_jsx_runtime26.JSX.Element;
102
+ }: SubscriptionPaymentCancellationProps): react_jsx_runtime29.JSX.Element;
103
103
  PreviewProps: SubscriptionPaymentCancellationProps;
104
104
  };
105
105
  subject: string;
@@ -112,7 +112,7 @@ declare const getEmailComponents: (locale?: Locale) => {
112
112
  organizationName,
113
113
  errorDate,
114
114
  retryPaymentLink
115
- }: SubscriptionPaymentErrorProps): react_jsx_runtime26.JSX.Element;
115
+ }: SubscriptionPaymentErrorProps): react_jsx_runtime29.JSX.Element;
116
116
  PreviewProps: SubscriptionPaymentErrorProps;
117
117
  };
118
118
  subject: string;
@@ -126,7 +126,7 @@ declare const getEmailComponents: (locale?: Locale) => {
126
126
  tokenDetailsUrl,
127
127
  securityLogUrl,
128
128
  supportUrl
129
- }: OAuthTokenCreatedEmailProps): react_jsx_runtime26.JSX.Element;
129
+ }: OAuthTokenCreatedEmailProps): react_jsx_runtime29.JSX.Element;
130
130
  PreviewProps: OAuthTokenCreatedEmailProps;
131
131
  };
132
132
  subject: string;
@@ -1 +1 @@
1
- {"version":3,"file":"getAuth.d.ts","names":[],"sources":["../../../../src/utils/auth/getAuth.ts"],"sourcesContent":[],"mappings":";;;;;KAgCY,IAAA,GAAO,kBAAkB;cAExB,yBAA0B,mBAAiB,OAAO;AAFnD,cAwBC,OAxBwB,EAAA,CAAA,QAAlB,EAwBe,WAxBL,EAAA,GAwBmB,IAxBnB"}
1
+ {"version":3,"file":"getAuth.d.ts","names":[],"sources":["../../../../src/utils/auth/getAuth.ts"],"sourcesContent":[],"mappings":";;;;;KAiCY,IAAA,GAAO,kBAAkB;cAExB,yBAA0B,mBAAiB,OAAO;AAFnD,cAwBC,OAxBwB,EAAA,CAAA,QAAlB,EAwBe,WAxBL,EAAA,GAwBmB,IAxBnB"}
@@ -1,7 +1,7 @@
1
1
  import { Dictionary } from "../../types/dictionary.types.js";
2
2
  import { ResponseWithSession } from "../../middlewares/sessionAuth.middleware.js";
3
3
  import { FiltersAndPagination } from "./getFiltersAndPaginationFromBody.js";
4
- import * as mongoose96 from "mongoose";
4
+ import * as mongoose107 from "mongoose";
5
5
  import { RootFilterQuery } from "mongoose";
6
6
  import { Request } from "express";
7
7
 
@@ -41,7 +41,7 @@ declare const getDictionaryFiltersAndPagination: (req: Request<FiltersAndPaginat
41
41
  skip: number;
42
42
  pageSize: number;
43
43
  getNumberOfPages: (totalItems: number) => number;
44
- filters: mongoose96.FilterQuery<Dictionary>;
44
+ filters: mongoose107.FilterQuery<Dictionary>;
45
45
  sortOptions: Record<string, 1 | -1>;
46
46
  };
47
47
  //#endregion
@@ -1,7 +1,7 @@
1
1
  import { ResponseWithSession } from "../../middlewares/sessionAuth.middleware.js";
2
2
  import { Discussion } from "../../types/discussion.types.js";
3
3
  import { FiltersAndPagination } from "./getFiltersAndPaginationFromBody.js";
4
- import * as mongoose93 from "mongoose";
4
+ import * as mongoose102 from "mongoose";
5
5
  import { RootFilterQuery } from "mongoose";
6
6
  import { Request } from "express";
7
7
 
@@ -30,7 +30,7 @@ declare const getDiscussionFiltersAndPagination: (req: Request<FiltersAndPaginat
30
30
  skip: number;
31
31
  pageSize: number;
32
32
  getNumberOfPages: (totalItems: number) => number;
33
- filters: mongoose93.Types.ObjectId | mongoose93.Query<any, any, {}, unknown, "find", Record<string, never>> | mongoose93.FilterQuery<Discussion>;
33
+ filters: mongoose102.Types.ObjectId | mongoose102.Query<any, any, {}, unknown, "find", Record<string, never>> | mongoose102.FilterQuery<Discussion>;
34
34
  sortOptions: Record<string, 1 | -1>;
35
35
  };
36
36
  //#endregion
@@ -1,7 +1,7 @@
1
1
  import { Organization } from "../../types/organization.types.js";
2
2
  import { ResponseWithSession } from "../../middlewares/sessionAuth.middleware.js";
3
3
  import { FiltersAndPagination } from "./getFiltersAndPaginationFromBody.js";
4
- import * as mongoose109 from "mongoose";
4
+ import * as mongoose106 from "mongoose";
5
5
  import { RootFilterQuery } from "mongoose";
6
6
  import { Request } from "express";
7
7
 
@@ -37,7 +37,7 @@ declare const getOrganizationFiltersAndPagination: (req: Request<FiltersAndPagin
37
37
  skip: number;
38
38
  pageSize: number;
39
39
  getNumberOfPages: (totalItems: number) => number;
40
- filters: mongoose109.FilterQuery<Organization>;
40
+ filters: mongoose106.FilterQuery<Organization>;
41
41
  sortOptions: Record<string, 1 | -1>;
42
42
  };
43
43
  //#endregion
@@ -1,7 +1,7 @@
1
1
  import { Project } from "../../types/project.types.js";
2
2
  import { ResponseWithSession } from "../../middlewares/sessionAuth.middleware.js";
3
3
  import { FiltersAndPagination } from "./getFiltersAndPaginationFromBody.js";
4
- import * as mongoose97 from "mongoose";
4
+ import * as mongoose101 from "mongoose";
5
5
  import { RootFilterQuery } from "mongoose";
6
6
  import { Request } from "express";
7
7
 
@@ -30,7 +30,7 @@ declare const getProjectFiltersAndPagination: (req: Request<FiltersAndPagination
30
30
  skip: number;
31
31
  pageSize: number;
32
32
  getNumberOfPages: (totalItems: number) => number;
33
- filters: mongoose97.FilterQuery<Project>;
33
+ filters: mongoose101.FilterQuery<Project>;
34
34
  sortOptions: Record<string, 1 | -1>;
35
35
  };
36
36
  //#endregion
@@ -1,7 +1,7 @@
1
1
  import { Tag } from "../../types/tag.types.js";
2
2
  import { ResponseWithSession } from "../../middlewares/sessionAuth.middleware.js";
3
3
  import { FiltersAndPagination } from "./getFiltersAndPaginationFromBody.js";
4
- import * as mongoose92 from "mongoose";
4
+ import * as mongoose105 from "mongoose";
5
5
  import { RootFilterQuery } from "mongoose";
6
6
  import { Request } from "express";
7
7
 
@@ -28,7 +28,7 @@ declare const getTagFiltersAndPagination: (req: Request<FiltersAndPagination<Tag
28
28
  skip: number;
29
29
  pageSize: number;
30
30
  getNumberOfPages: (totalItems: number) => number;
31
- filters: mongoose92.FilterQuery<Tag>;
31
+ filters: mongoose105.FilterQuery<Tag>;
32
32
  sortOptions: Record<string, 1 | -1>;
33
33
  };
34
34
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/backend",
3
- "version": "7.3.12",
3
+ "version": "7.3.14",
4
4
  "private": false,
5
5
  "description": "Intlayer Backend is a an application that allow you to manage your Intlayer content and interact with the intlayer editor.",
6
6
  "keywords": [
@@ -74,16 +74,18 @@
74
74
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
75
75
  },
76
76
  "dependencies": {
77
- "@intlayer/ai": "7.3.12",
77
+ "@better-auth/core": "1.4.6",
78
+ "@better-auth/passkey": "1.4.6",
79
+ "@intlayer/ai": "7.3.14",
78
80
  "@react-email/components": "1.0.1",
79
- "better-auth": "1.3.34",
81
+ "better-auth": "1.4.6",
80
82
  "compression": "1.8.1",
81
83
  "cookie-parser": "1.4.7",
82
84
  "cors": "2.8.5",
83
85
  "cross-env": "10.1.0",
84
86
  "dotenv": "16.6.1",
85
87
  "express": "5.1.0",
86
- "express-intlayer": "7.3.12",
88
+ "express-intlayer": "7.3.14",
87
89
  "express-rate-limit": "8.2.1",
88
90
  "helmet": "8.1.0",
89
91
  "mongodb": "6.21.0",
@@ -91,17 +93,17 @@
91
93
  "oauth2-server": "3.1.1",
92
94
  "openai": "6.9.1",
93
95
  "react": "19.2.1",
94
- "react-email": "5.0.5",
96
+ "react-email": "5.0.6",
95
97
  "resend": "6.5.2",
96
98
  "stripe": "19.3.1",
97
99
  "validator": "13.15.23",
98
100
  "winston": "3.18.3"
99
101
  },
100
102
  "devDependencies": {
101
- "@intlayer/config": "7.3.12",
102
- "@intlayer/core": "7.3.12",
103
- "@intlayer/docs": "7.3.12",
104
- "@intlayer/types": "7.3.12",
103
+ "@intlayer/config": "7.3.14",
104
+ "@intlayer/core": "7.3.14",
105
+ "@intlayer/docs": "7.3.14",
106
+ "@intlayer/types": "7.3.14",
105
107
  "@types/body-parser": "1.19.6",
106
108
  "@types/compression": "1.8.1",
107
109
  "@types/cookie-parser": "1.4.10",
@@ -116,12 +118,12 @@
116
118
  "@utils/ts-config": "1.0.4",
117
119
  "@utils/ts-config-types": "1.0.4",
118
120
  "@utils/tsdown-config": "1.0.4",
119
- "intlayer": "7.3.12",
121
+ "intlayer": "7.3.14",
120
122
  "npm-run-all": "^4.1.5",
121
123
  "rimraf": "6.1.2",
122
124
  "tsdown": "0.16.8",
123
125
  "tsx": "^4.20.6",
124
126
  "typescript": "5.9.3",
125
- "vitest": "4.0.14"
127
+ "vitest": "4.0.15"
126
128
  }
127
129
  }