@intlayer/api 5.6.0 → 5.7.1
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/cjs/IntlayerEventListener.cjs +2 -9
- package/dist/cjs/IntlayerEventListener.cjs.map +1 -1
- package/dist/cjs/distantDictionary/fetchDistantDictionaries.cjs +3 -4
- package/dist/cjs/distantDictionary/fetchDistantDictionaries.cjs.map +1 -1
- package/dist/cjs/distantDictionary/fetchDistantDictionary.cjs +5 -6
- package/dist/cjs/distantDictionary/fetchDistantDictionary.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/ai.cjs +21 -4
- package/dist/cjs/getIntlayerAPI/ai.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/auth.cjs +54 -132
- package/dist/cjs/getIntlayerAPI/auth.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/index.cjs +3 -1
- package/dist/cjs/getIntlayerAPI/index.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/oAuth.cjs +68 -0
- package/dist/cjs/getIntlayerAPI/oAuth.cjs.map +1 -0
- package/dist/cjs/getIntlayerAPI/user.cjs +3 -1
- package/dist/cjs/getIntlayerAPI/user.cjs.map +1 -1
- package/dist/cjs/index.cjs +2 -0
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/types.cjs.map +1 -1
- package/dist/esm/IntlayerEventListener.mjs +2 -9
- package/dist/esm/IntlayerEventListener.mjs.map +1 -1
- package/dist/esm/distantDictionary/fetchDistantDictionaries.mjs +3 -4
- package/dist/esm/distantDictionary/fetchDistantDictionaries.mjs.map +1 -1
- package/dist/esm/distantDictionary/fetchDistantDictionary.mjs +5 -6
- package/dist/esm/distantDictionary/fetchDistantDictionary.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/ai.mjs +21 -4
- package/dist/esm/getIntlayerAPI/ai.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/auth.mjs +54 -132
- package/dist/esm/getIntlayerAPI/auth.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/index.mjs +3 -1
- package/dist/esm/getIntlayerAPI/index.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/oAuth.mjs +34 -0
- package/dist/esm/getIntlayerAPI/oAuth.mjs.map +1 -0
- package/dist/esm/getIntlayerAPI/user.mjs +3 -1
- package/dist/esm/getIntlayerAPI/user.mjs.map +1 -1
- package/dist/esm/index.mjs +1 -0
- package/dist/esm/index.mjs.map +1 -1
- package/dist/types/IntlayerEventListener.d.ts.map +1 -1
- package/dist/types/distantDictionary/fetchDistantDictionaries.d.ts.map +1 -1
- package/dist/types/distantDictionary/fetchDistantDictionary.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/ai.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/auth.d.ts +30 -19
- package/dist/types/getIntlayerAPI/auth.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/index.d.ts +28 -95
- package/dist/types/getIntlayerAPI/index.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/oAuth.d.ts +8 -0
- package/dist/types/getIntlayerAPI/oAuth.d.ts.map +1 -0
- package/dist/types/getIntlayerAPI/user.d.ts +2 -1
- package/dist/types/getIntlayerAPI/user.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/types.d.ts +8 -1
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +8 -7
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/getIntlayerAPI/oAuth.ts"],"sourcesContent":["import configuration from '@intlayer/config/built';\nimport type { IntlayerConfig } from '@intlayer/config/client';\nimport { FetcherOptions, fetcher } from '../fetcher';\nimport { GetOAuth2TokenBody, GetOAuth2TokenResult } from '../types';\n\nexport interface oAuthAPI {\n getOAuth2AccessToken: (\n otherOptions?: FetcherOptions\n ) => Promise<GetOAuth2TokenResult>;\n}\n\nexport const getOAuthAPI = (intlayerConfig?: IntlayerConfig): oAuthAPI => {\n const backendURL =\n intlayerConfig?.editor?.backendURL ?? configuration.editor?.backendURL;\n const { clientId, clientSecret } = intlayerConfig?.editor ?? {};\n\n if (!backendURL) {\n throw new Error(\n 'Backend URL is not defined in the Intlayer configuration.'\n );\n }\n\n /**\n * Gets an oAuth2 accessToken\n * @return The token information\n */\n const getOAuth2AccessToken = async (otherOptions: FetcherOptions = {}) =>\n await fetcher<GetOAuth2TokenResult>(\n `${backendURL}/oauth2/token`,\n {},\n otherOptions,\n {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n },\n body: {\n grant_type: 'client_credentials',\n client_id: clientId!,\n client_secret: clientSecret!,\n } satisfies GetOAuth2TokenBody,\n }\n );\n\n return {\n getOAuth2AccessToken,\n };\n};\n"],"mappings":"AAAA,OAAO,mBAAmB;AAE1B,SAAyB,eAAe;AASjC,MAAM,cAAc,CAAC,mBAA8C;AACxE,QAAM,aACJ,gBAAgB,QAAQ,cAAc,cAAc,QAAQ;AAC9D,QAAM,EAAE,UAAU,aAAa,IAAI,gBAAgB,UAAU,CAAC;AAE9D,MAAI,CAAC,YAAY;AACf,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAMA,QAAM,uBAAuB,OAAO,eAA+B,CAAC,MAClE,MAAM;AAAA,IACJ,GAAG,UAAU;AAAA,IACb,CAAC;AAAA,IACD;AAAA,IACA;AAAA,MACE,QAAQ;AAAA,MACR,SAAS;AAAA,QACP,gBAAgB;AAAA,MAClB;AAAA,MACA,MAAM;AAAA,QACJ,YAAY;AAAA,QACZ,WAAW;AAAA,QACX,eAAe;AAAA,MACjB;AAAA,IACF;AAAA,EACF;AAEF,SAAO;AAAA,IACL;AAAA,EACF;AACF;","names":[]}
|
|
@@ -57,6 +57,7 @@ const getUserAPI = (authAPIOptions = {}, intlayerConfig) => {
|
|
|
57
57
|
method: "DELETE"
|
|
58
58
|
}
|
|
59
59
|
);
|
|
60
|
+
const getVerifyEmailStatusURL = (userId) => `${USER_API_ROUTE}/verify-email-status/${String(userId)}`;
|
|
60
61
|
return {
|
|
61
62
|
createUser,
|
|
62
63
|
getUsers,
|
|
@@ -64,7 +65,8 @@ const getUserAPI = (authAPIOptions = {}, intlayerConfig) => {
|
|
|
64
65
|
getUserByAccount,
|
|
65
66
|
getUserByEmail,
|
|
66
67
|
updateUser,
|
|
67
|
-
deleteUser
|
|
68
|
+
deleteUser,
|
|
69
|
+
getVerifyEmailStatusURL
|
|
68
70
|
};
|
|
69
71
|
};
|
|
70
72
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/getIntlayerAPI/user.ts"],"sourcesContent":["import configuration from '@intlayer/config/built';\nimport { type IntlayerConfig } from '@intlayer/config/client';\nimport type {\n CreateUserBody,\n CreateUserResult,\n GetUserByAccountParams,\n GetUserByAccountResult,\n GetUserByEmailParams,\n GetUserByEmailResult,\n GetUserByIdParams,\n GetUserByIdResult,\n GetUsersParams,\n GetUsersResult,\n UpdateUserBody,\n UpdateUserResult,\n} from '../types';\n\nimport { fetcher, type FetcherOptions } from '../fetcher';\n\nexport const getUserAPI = (\n authAPIOptions: FetcherOptions = {},\n intlayerConfig?: IntlayerConfig\n) => {\n const backendURL =\n intlayerConfig?.editor?.backendURL ?? configuration.editor?.backendURL;\n\n if (!backendURL) {\n throw new Error(\n 'Backend URL is not defined in the Intlayer configuration.'\n );\n }\n\n const USER_API_ROUTE = `${backendURL}/api/user`;\n\n /**\n * Retrieves a list of users based on filters and pagination.\n * @param filters - Filters and pagination options.\n * @returns List of users.\n */\n const getUsers = async (\n filters?: GetUsersParams,\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<GetUsersResult>(\n USER_API_ROUTE,\n authAPIOptions,\n otherOptions,\n {\n params: filters,\n }\n );\n\n /**\n * Retrieves a user by ID.\n * @param userId - User ID.\n * @returns User object.\n */\n const getUserById = async (\n userId: GetUserByIdParams['userId'],\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<GetUserByIdResult>(\n `${USER_API_ROUTE}/${userId}`,\n authAPIOptions,\n otherOptions\n );\n\n /**\n * Retrieves a user by email.\n * @param email - User email.\n * @returns User object.\n */\n const getUserByEmail = async (\n email: GetUserByEmailParams['email'],\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<GetUserByEmailResult>(\n `${USER_API_ROUTE}/email/${email}`,\n authAPIOptions,\n otherOptions\n );\n\n /**\n * Retrieves a user by account.\n * @param providerAccountId - The provider account ID.\n * @param provider - The provider of the account.\n */\n const getUserByAccount = async (\n providerAccountId: GetUserByAccountParams['providerAccountId'],\n provider: GetUserByAccountParams['provider'],\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<GetUserByAccountResult>(\n `${USER_API_ROUTE}/account/${provider}/${providerAccountId}`,\n authAPIOptions,\n otherOptions\n );\n\n /**\n * Creates a new user.\n * @param user - User credentials.\n * @returns User object.\n */\n const createUser = async (\n user: CreateUserBody,\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<CreateUserResult>(\n `${USER_API_ROUTE}/`,\n authAPIOptions,\n otherOptions,\n {\n method: 'POST',\n body: user,\n }\n );\n\n /**\n * Updates the user with the provided data.\n * @param user - Updated user data.\n * @returns User object.\n */\n const updateUser = async (\n user: UpdateUserBody,\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<UpdateUserResult>(\n `${USER_API_ROUTE}`,\n authAPIOptions,\n otherOptions,\n {\n method: 'PUT',\n body: user,\n }\n );\n\n /**\n * Deletes a user with the provided ID.\n * @param userId - User ID.\n * @returns User object.\n */\n const deleteUser = async (\n userId: string,\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<UpdateUserResult>(\n `${USER_API_ROUTE}/${userId}`,\n authAPIOptions,\n otherOptions,\n {\n method: 'DELETE',\n }\n );\n\n return {\n createUser,\n getUsers,\n getUserById,\n getUserByAccount,\n getUserByEmail,\n updateUser,\n deleteUser,\n };\n};\n"],"mappings":"AAAA,OAAO,mBAAmB;
|
|
1
|
+
{"version":3,"sources":["../../../src/getIntlayerAPI/user.ts"],"sourcesContent":["import configuration from '@intlayer/config/built';\nimport { type IntlayerConfig } from '@intlayer/config/client';\nimport type {\n CreateUserBody,\n CreateUserResult,\n GetUserByAccountParams,\n GetUserByAccountResult,\n GetUserByEmailParams,\n GetUserByEmailResult,\n GetUserByIdParams,\n GetUserByIdResult,\n GetUsersParams,\n GetUsersResult,\n UpdateUserBody,\n UpdateUserResult,\n UserAPI,\n} from '../types';\n\nimport { fetcher, type FetcherOptions } from '../fetcher';\n\nexport const getUserAPI = (\n authAPIOptions: FetcherOptions = {},\n intlayerConfig?: IntlayerConfig\n) => {\n const backendURL =\n intlayerConfig?.editor?.backendURL ?? configuration.editor?.backendURL;\n\n if (!backendURL) {\n throw new Error(\n 'Backend URL is not defined in the Intlayer configuration.'\n );\n }\n\n const USER_API_ROUTE = `${backendURL}/api/user`;\n\n /**\n * Retrieves a list of users based on filters and pagination.\n * @param filters - Filters and pagination options.\n * @returns List of users.\n */\n const getUsers = async (\n filters?: GetUsersParams,\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<GetUsersResult>(\n USER_API_ROUTE,\n authAPIOptions,\n otherOptions,\n {\n params: filters,\n }\n );\n\n /**\n * Retrieves a user by ID.\n * @param userId - User ID.\n * @returns User object.\n */\n const getUserById = async (\n userId: GetUserByIdParams['userId'],\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<GetUserByIdResult>(\n `${USER_API_ROUTE}/${userId}`,\n authAPIOptions,\n otherOptions\n );\n\n /**\n * Retrieves a user by email.\n * @param email - User email.\n * @returns User object.\n */\n const getUserByEmail = async (\n email: GetUserByEmailParams['email'],\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<GetUserByEmailResult>(\n `${USER_API_ROUTE}/email/${email}`,\n authAPIOptions,\n otherOptions\n );\n\n /**\n * Retrieves a user by account.\n * @param providerAccountId - The provider account ID.\n * @param provider - The provider of the account.\n */\n const getUserByAccount = async (\n providerAccountId: GetUserByAccountParams['providerAccountId'],\n provider: GetUserByAccountParams['provider'],\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<GetUserByAccountResult>(\n `${USER_API_ROUTE}/account/${provider}/${providerAccountId}`,\n authAPIOptions,\n otherOptions\n );\n\n /**\n * Creates a new user.\n * @param user - User credentials.\n * @returns User object.\n */\n const createUser = async (\n user: CreateUserBody,\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<CreateUserResult>(\n `${USER_API_ROUTE}/`,\n authAPIOptions,\n otherOptions,\n {\n method: 'POST',\n body: user,\n }\n );\n\n /**\n * Updates the user with the provided data.\n * @param user - Updated user data.\n * @returns User object.\n */\n const updateUser = async (\n user: UpdateUserBody,\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<UpdateUserResult>(\n `${USER_API_ROUTE}`,\n authAPIOptions,\n otherOptions,\n {\n method: 'PUT',\n body: user,\n }\n );\n\n /**\n * Deletes a user with the provided ID.\n * @param userId - User ID.\n * @returns User object.\n */\n const deleteUser = async (\n userId: string,\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<UpdateUserResult>(\n `${USER_API_ROUTE}/${userId}`,\n authAPIOptions,\n otherOptions,\n {\n method: 'DELETE',\n }\n );\n\n /**\n * Gets the verify email status URL to use in the SSE.\n * @param userId - User ID.\n * @returns The verify email status URL.\n */\n const getVerifyEmailStatusURL = (userId: string | UserAPI['id']) =>\n `${USER_API_ROUTE}/verify-email-status/${String(userId)}`;\n\n return {\n createUser,\n getUsers,\n getUserById,\n getUserByAccount,\n getUserByEmail,\n updateUser,\n deleteUser,\n getVerifyEmailStatusURL,\n };\n};\n"],"mappings":"AAAA,OAAO,mBAAmB;AAkB1B,SAAS,eAAoC;AAEtC,MAAM,aAAa,CACxB,iBAAiC,CAAC,GAClC,mBACG;AACH,QAAM,aACJ,gBAAgB,QAAQ,cAAc,cAAc,QAAQ;AAE9D,MAAI,CAAC,YAAY;AACf,UAAM,IAAI;AAAA,MACR;AAA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A,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;","names":[]}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -5,6 +5,7 @@ export * from "./getIntlayerAPI/ai.mjs";
|
|
|
5
5
|
export * from "./getIntlayerAPI/auth.mjs";
|
|
6
6
|
export * from "./getIntlayerAPI/dictionary.mjs";
|
|
7
7
|
export * from "./getIntlayerAPI/editor.mjs";
|
|
8
|
+
export * from "./getIntlayerAPI/oAuth.mjs";
|
|
8
9
|
export * from "./getIntlayerAPI/organization.mjs";
|
|
9
10
|
export * from "./getIntlayerAPI/project.mjs";
|
|
10
11
|
export * from "./getIntlayerAPI/stripe.mjs";
|
package/dist/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from './distantDictionary/index';\nexport * from './fetcher';\nexport * from './getIntlayerAPI';\nexport * from './getIntlayerAPI/ai';\nexport * from './getIntlayerAPI/auth';\nexport * from './getIntlayerAPI/dictionary';\nexport * from './getIntlayerAPI/editor';\nexport * from './getIntlayerAPI/organization';\nexport * from './getIntlayerAPI/project';\nexport * from './getIntlayerAPI/stripe';\nexport * from './getIntlayerAPI/tag';\nexport * from './getIntlayerAPI/user';\nexport * from './IntlayerEventListener';\nexport * from './types';\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from './distantDictionary/index';\nexport * from './fetcher';\nexport * from './getIntlayerAPI';\nexport * from './getIntlayerAPI/ai';\nexport * from './getIntlayerAPI/auth';\nexport * from './getIntlayerAPI/dictionary';\nexport * from './getIntlayerAPI/editor';\nexport * from './getIntlayerAPI/oAuth';\nexport * from './getIntlayerAPI/organization';\nexport * from './getIntlayerAPI/project';\nexport * from './getIntlayerAPI/stripe';\nexport * from './getIntlayerAPI/tag';\nexport * from './getIntlayerAPI/user';\nexport * from './IntlayerEventListener';\nexport * from './types';\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntlayerEventListener.d.ts","sourceRoot":"","sources":["../../src/IntlayerEventListener.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAoB,MAAM,mBAAmB,CAAC;AAEzE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAG9D,MAAM,MAAM,oBAAoB,GAAG,YAAY,CAAC;AAEhD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBAAa,qBAAqB;IAkBpB,OAAO,CAAC,cAAc;IAjBlC,OAAO,CAAC,WAAW,CAA4B;IAE/C;;OAEG;IACI,iBAAiB,CAAC,EAAE,CAAC,UAAU,EAAE,aAAa,KAAK,GAAG,CAAC;IAE9D;;OAEG;IACI,kBAAkB,CAAC,EAAE,CAAC,UAAU,EAAE,aAAa,KAAK,GAAG,CAAC;IAE/D;;OAEG;IACI,mBAAmB,CAAC,EAAE,CAAC,UAAU,EAAE,aAAa,KAAK,GAAG,CAAC;gBAE5C,cAAc,GAAE,cAA8B;IAElE;;;OAGG;IACU,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"IntlayerEventListener.d.ts","sourceRoot":"","sources":["../../src/IntlayerEventListener.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAoB,MAAM,mBAAmB,CAAC;AAEzE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAG9D,MAAM,MAAM,oBAAoB,GAAG,YAAY,CAAC;AAEhD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBAAa,qBAAqB;IAkBpB,OAAO,CAAC,cAAc;IAjBlC,OAAO,CAAC,WAAW,CAA4B;IAE/C;;OAEG;IACI,iBAAiB,CAAC,EAAE,CAAC,UAAU,EAAE,aAAa,KAAK,GAAG,CAAC;IAE9D;;OAEG;IACI,kBAAkB,CAAC,EAAE,CAAC,UAAU,EAAE,aAAa,KAAK,GAAG,CAAC;IAE/D;;OAEG;IACI,mBAAmB,CAAC,EAAE,CAAC,UAAU,EAAE,aAAa,KAAK,GAAG,CAAC;gBAE5C,cAAc,GAAE,cAA8B;IAElE;;;OAGG;IACU,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAoBxC;;OAEG;IACI,OAAO,IAAI,IAAI;IAOtB;;;OAGG;YACW,aAAa;IAkC3B;;OAEG;IACH,OAAO,CAAC,WAAW;CAIpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchDistantDictionaries.d.ts","sourceRoot":"","sources":["../../../src/distantDictionary/fetchDistantDictionaries.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAI9D;;GAEG;AACH,eAAO,MAAM,wBAAwB,GACnC,iBAAgB,cAA8B,KAC7C,OAAO,CAAC,aAAa,EAAE,GAAG,IAAI,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"fetchDistantDictionaries.d.ts","sourceRoot":"","sources":["../../../src/distantDictionary/fetchDistantDictionaries.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAI9D;;GAEG;AACH,eAAO,MAAM,wBAAwB,GACnC,iBAAgB,cAA8B,KAC7C,OAAO,CAAC,aAAa,EAAE,GAAG,IAAI,GAAG,SAAS,CA8B5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchDistantDictionary.d.ts","sourceRoot":"","sources":["../../../src/distantDictionary/fetchDistantDictionary.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAI9D;;GAEG;AACH,eAAO,MAAM,sBAAsB,GACjC,eAAe,MAAM,EACrB,iBAAgB,cAA8B,KAC7C,OAAO,CAAC,aAAa,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"fetchDistantDictionary.d.ts","sourceRoot":"","sources":["../../../src/distantDictionary/fetchDistantDictionary.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAI9D;;GAEG;AACH,eAAO,MAAM,sBAAsB,GACjC,eAAe,MAAM,EACrB,iBAAgB,cAA8B,KAC7C,OAAO,CAAC,aAAa,GAAG,SAAS,CAuCnC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai.d.ts","sourceRoot":"","sources":["../../../src/getIntlayerAPI/ai.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,2BAA2B,EAC3B,gCAAgC,EAChC,kCAAkC,EAClC,mCAAmC,EACnC,qCAAqC,EACrC,6BAA6B,EAC7B,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,4BAA4B,EAC5B,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,UAAU,CAAC;AAGlB,OAAO,KAAK,EAAE,cAAc,EAAE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CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,oBAAoB,KAAK,IAAI,CAAC;CACnD,CAAC;AAEF,YAAY,EAAE,oBAAoB,EAAE,CAAC;AAErC,eAAO,MAAM,QAAQ,GACnB,iBAAgB,cAAmB,EACnC,iBAAiB,cAAc;yBAmBtB,eAAe,iBACR,cAAc;2BAkBrB,iBAAiB,iBACV,cAAc;qCAkBrB,2BAA2B,iBACpB,cAAc;0CAkBrB,gCAAgC,iBACzB,cAAc;6CAkBrB,mCAAmC,iBAC5B,cAAc;sBAkBrB,YAAY,iBACL,cAAc;4BAgCrB,kBAAkB,iBACX,cAAc;0BAuFrB,gBAAgB,iBACT,cAAc;CAsB/B,CAAC"}
|
|
@@ -1,21 +1,32 @@
|
|
|
1
1
|
import type { IntlayerConfig } from '@intlayer/config/client';
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
2
|
+
import { createAuthClient } from 'better-auth/client';
|
|
3
|
+
type AuthClient = ReturnType<typeof createAuthClient>;
|
|
4
|
+
export interface AuthAPI {
|
|
5
|
+
signInEmail: AuthClient['signIn']['email'];
|
|
6
|
+
signUpEmail: AuthClient['signUp']['email'];
|
|
7
|
+
signOut: AuthClient['signOut'];
|
|
8
|
+
signInSocial: AuthClient['signIn']['social'];
|
|
9
|
+
linkSocial: AuthClient['linkSocial'];
|
|
10
|
+
changePasswordSession: AuthClient['changePassword'];
|
|
11
|
+
requestPasswordResetSession: AuthClient['requestPasswordReset'];
|
|
12
|
+
resetPassword: AuthClient['resetPassword'];
|
|
13
|
+
verifyEmailSession: AuthClient['verifyEmail'];
|
|
14
|
+
getSession: AuthClient['getSession'];
|
|
15
|
+
forgetPassword: AuthClient['forgetPassword'];
|
|
16
|
+
sendVerificationEmail: AuthClient['sendVerificationEmail'];
|
|
17
|
+
changeEmail: AuthClient['changeEmail'];
|
|
18
|
+
deleteUser: AuthClient['deleteUser'];
|
|
19
|
+
revokeSession: AuthClient['revokeSession'];
|
|
20
|
+
revokeSessions: AuthClient['revokeSessions'];
|
|
21
|
+
revokeOtherSessions: AuthClient['revokeOtherSessions'];
|
|
22
|
+
listAccounts: AuthClient['listAccounts'];
|
|
23
|
+
unlinkAccount: AuthClient['unlinkAccount'];
|
|
24
|
+
refreshToken: AuthClient['refreshToken'];
|
|
25
|
+
getAccessToken: AuthClient['getAccessToken'];
|
|
26
|
+
accountInfo: AuthClient['accountInfo'];
|
|
27
|
+
updateUser: AuthClient['updateUser'];
|
|
28
|
+
listSessions: AuthClient['listSessions'];
|
|
29
|
+
}
|
|
30
|
+
export declare const getAuthAPI: (intlayerConfig?: IntlayerConfig) => AuthAPI;
|
|
31
|
+
export {};
|
|
21
32
|
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/getIntlayerAPI/auth.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/getIntlayerAPI/auth.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,KAAK,UAAU,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEtD,MAAM,WAAW,OAAO;IACtB,WAAW,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC,OAAO,CAA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I,iBAAiB,cAAc,KAAG,OAoH5D,CAAC"}
|
|
@@ -1,99 +1,32 @@
|
|
|
1
1
|
import type { IntlayerConfig } from '@intlayer/config/client';
|
|
2
2
|
import type { FetcherOptions } from '../fetcher';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
getUsers: (filters?: import("@intlayer/backend").GetUsersParams, otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").GetUsersResult>;
|
|
31
|
-
getUserById: (userId: import("@intlayer/backend").GetUserByIdParams["userId"], otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").GetUserByIdResult>;
|
|
32
|
-
getUserByAccount: (providerAccountId: import("@intlayer/backend").GetUserByAccountParams["providerAccountId"], provider: import("@intlayer/backend").GetUserByAccountParams["provider"], otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").GetUserByAccountResult>;
|
|
33
|
-
getUserByEmail: (email: import("@intlayer/backend").GetUserByEmailParams["email"], otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").GetUserByEmailResult>;
|
|
34
|
-
updateUser: (user: import("@intlayer/backend").UpdateUserBody, otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").UpdateUserResult>;
|
|
35
|
-
deleteUser: (userId: string, otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").UpdateUserResult>;
|
|
36
|
-
};
|
|
37
|
-
auth: {
|
|
38
|
-
login: (user: import("@intlayer/backend").LoginBody, otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").LoginResult>;
|
|
39
|
-
getLoginWithGitHubURL: (params: import("@intlayer/backend").GithubLoginQueryParams) => string;
|
|
40
|
-
getLoginWithGoogleURL: (params: import("@intlayer/backend").GoogleLoginQueryParams) => string;
|
|
41
|
-
register: (user: import("@intlayer/backend").RegisterBody, query?: import("@intlayer/backend").RegisterQuery, otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").RegisterResult>;
|
|
42
|
-
logout: (otherOptions?: FetcherOptions) => Promise<void>;
|
|
43
|
-
defineNewPassword: (data: import("@intlayer/backend").DefinePasswordBody, otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").DefinePasswordResult>;
|
|
44
|
-
askResetPassword: (email: import("@intlayer/backend").AskResetPasswordBody["email"], otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").AskResetPasswordResult>;
|
|
45
|
-
checkIfUserHasPassword: (otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").CheckIfUserHasPasswordResult>;
|
|
46
|
-
verifyEmail: ({ userId, secret }: import("@intlayer/backend").ValidEmailParams, otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").ValidEmailResult>;
|
|
47
|
-
getVerifyEmailStatusURL: (userId: string | import("@intlayer/backend").UserAPI["_id"]) => string;
|
|
48
|
-
changePassword: (data: import("@intlayer/backend").UpdatePasswordBody, otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").UpdatePasswordResult>;
|
|
49
|
-
createSession: (data: import("@intlayer/backend").CreateSessionBody, otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").CreateSessionResult>;
|
|
50
|
-
getSession: (sessionToken?: import("@intlayer/backend").GetSessionInformationQuery["session_token"], otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").GetSessionInformationResult>;
|
|
51
|
-
getCSRFToken: (otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").SetCSRFTokenResult>;
|
|
52
|
-
getOAuth2AccessToken: (otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").GetOAuth2TokenResult>;
|
|
53
|
-
};
|
|
54
|
-
dictionary: {
|
|
55
|
-
getDictionaries: (filters?: import("@intlayer/backend").GetDictionariesParams, otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").GetDictionariesResult>;
|
|
56
|
-
getDictionariesKeys: (otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").GetDictionariesKeysResult>;
|
|
57
|
-
getDictionary: (dictionaryKey: import("@intlayer/backend").GetDictionaryParams["dictionaryKey"], version?: import("@intlayer/backend").GetDictionaryQuery["version"], otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").GetDictionaryResult>;
|
|
58
|
-
pushDictionaries: (dictionaries: import("@intlayer/backend").PushDictionariesBody["dictionaries"], otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").PushDictionariesResult>;
|
|
59
|
-
addDictionary: (body: import("@intlayer/backend").AddDictionaryBody, otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").AddDictionaryResult>;
|
|
60
|
-
updateDictionary: (dictionaryId: import("@intlayer/backend").UpdateDictionaryParam["dictionaryId"], dictionary: import("@intlayer/backend").UpdateDictionaryBody, otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").UpdateDictionaryResult>;
|
|
61
|
-
deleteDictionary: (id: import("@intlayer/backend").DeleteDictionaryParam["dictionaryId"], otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").DeleteDictionaryResult>;
|
|
62
|
-
};
|
|
63
|
-
stripe: {
|
|
64
|
-
getPricing: (body?: import("@intlayer/backend").GetPricingBody, otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").GetPricingResult>;
|
|
65
|
-
getSubscription: (body?: import("@intlayer/backend").GetCheckoutSessionBody, otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").GetCheckoutSessionResult>;
|
|
66
|
-
cancelSubscription: (otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").GetCheckoutSessionResult>;
|
|
67
|
-
};
|
|
68
|
-
ai: {
|
|
69
|
-
customQuery: (body?: import("@intlayer/backend").CustomQueryBody, otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").CustomQueryResult>;
|
|
70
|
-
translateJSON: (body?: import("@intlayer/backend").TranslateJSONBody, otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").TranslateJSONResult>;
|
|
71
|
-
auditContentDeclaration: (body?: import("@intlayer/backend").AuditContentDeclarationBody, otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").AuditContentDeclarationResult>;
|
|
72
|
-
auditContentDeclarationField: (body?: import("@intlayer/backend").AuditContentDeclarationFieldBody, otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").AuditContentDeclarationFieldResult>;
|
|
73
|
-
auditContentDeclarationMetadata: (body?: import("@intlayer/backend").AuditContentDeclarationMetadataBody, otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").AuditContentDeclarationMetadataResult>;
|
|
74
|
-
auditTag: (body?: import("@intlayer/backend").AuditTagBody, otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").AuditTagResult>;
|
|
75
|
-
askDocQuestion: (body?: import("./ai").AskDocQuestionBody, otherOptions?: FetcherOptions) => Promise<void>;
|
|
76
|
-
autocomplete: (body?: import("@intlayer/backend").AutocompleteBody, otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").AutocompleteResponse>;
|
|
77
|
-
};
|
|
78
|
-
tag: {
|
|
79
|
-
getTags: (filters?: import("@intlayer/backend").GetTagsParams, otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").GetTagsResult>;
|
|
80
|
-
addTag: (tag: import("@intlayer/backend").AddTagBody, otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").AddTagResult>;
|
|
81
|
-
updateTag: (tagId: import("@intlayer/backend").UpdateTagParams["tagId"], tag: import("@intlayer/backend").UpdateTagBody, otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").UpdateTagResult>;
|
|
82
|
-
deleteTag: (tagId: import("@intlayer/backend").DeleteTagParams["tagId"], otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").DeleteTagResult>;
|
|
83
|
-
};
|
|
84
|
-
search: {
|
|
85
|
-
searchDoc: (params?: import("@intlayer/backend").SearchDocUtilParams, otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").SearchDocUtilResult>;
|
|
86
|
-
};
|
|
87
|
-
editor: {
|
|
88
|
-
getDictionaries: (otherOptions?: FetcherOptions) => Promise<Record<string, any>>;
|
|
89
|
-
getConfiguration: (otherOptions?: FetcherOptions) => Promise<import("intlayer-editor").GetConfigurationResult>;
|
|
90
|
-
writeDictionary: (dictionary: import("intlayer-editor").WriteContentDeclarationBody, otherOptions?: FetcherOptions) => Promise<import("intlayer-editor").WriteContentDeclarationResult>;
|
|
91
|
-
};
|
|
92
|
-
newsletter: {
|
|
93
|
-
subscribeToNewsletter: (body: import("@intlayer/backend").NewsletterSubscriptionBody, otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").NewsletterSubscriptionResult>;
|
|
94
|
-
unsubscribeFromNewsletter: (body: import("@intlayer/backend").NewsletterUnsubscriptionBody, otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").NewsletterSubscriptionResult>;
|
|
95
|
-
getNewsletterStatus: (otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").NewsletterSubscriptionResult>;
|
|
96
|
-
};
|
|
97
|
-
};
|
|
3
|
+
import { getAiAPI } from './ai';
|
|
4
|
+
import { AuthAPI } from './auth';
|
|
5
|
+
import { getDictionaryAPI } from './dictionary';
|
|
6
|
+
import { getEditorAPI } from './editor';
|
|
7
|
+
import { getNewsletterAPI } from './newsletter';
|
|
8
|
+
import { oAuthAPI } from './oAuth';
|
|
9
|
+
import { getOrganizationAPI } from './organization';
|
|
10
|
+
import { getProjectAPI } from './project';
|
|
11
|
+
import { getSearchAPI } from './search';
|
|
12
|
+
import { getStripeAPI } from './stripe';
|
|
13
|
+
import { getTagAPI } from './tag';
|
|
14
|
+
import { getUserAPI } from './user';
|
|
15
|
+
interface IntlayerAPIReturn {
|
|
16
|
+
organization: ReturnType<typeof getOrganizationAPI>;
|
|
17
|
+
project: ReturnType<typeof getProjectAPI>;
|
|
18
|
+
user: ReturnType<typeof getUserAPI>;
|
|
19
|
+
auth: AuthAPI;
|
|
20
|
+
oAuth: oAuthAPI;
|
|
21
|
+
dictionary: ReturnType<typeof getDictionaryAPI>;
|
|
22
|
+
stripe: ReturnType<typeof getStripeAPI>;
|
|
23
|
+
ai: ReturnType<typeof getAiAPI>;
|
|
24
|
+
tag: ReturnType<typeof getTagAPI>;
|
|
25
|
+
search: ReturnType<typeof getSearchAPI>;
|
|
26
|
+
editor: ReturnType<typeof getEditorAPI>;
|
|
27
|
+
newsletter: ReturnType<typeof getNewsletterAPI>;
|
|
28
|
+
}
|
|
29
|
+
export declare const getIntlayerAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => IntlayerAPIReturn;
|
|
98
30
|
export type IntlayerAPI = ReturnType<typeof getIntlayerAPI>;
|
|
31
|
+
export {};
|
|
99
32
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/getIntlayerAPI/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/getIntlayerAPI/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,OAAO,EAAc,MAAM,QAAQ,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,YA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1,8 @@
|
|
|
1
|
+
import type { IntlayerConfig } from '@intlayer/config/client';
|
|
2
|
+
import { FetcherOptions } from '../fetcher';
|
|
3
|
+
import { GetOAuth2TokenResult } from '../types';
|
|
4
|
+
export interface oAuthAPI {
|
|
5
|
+
getOAuth2AccessToken: (otherOptions?: FetcherOptions) => Promise<GetOAuth2TokenResult>;
|
|
6
|
+
}
|
|
7
|
+
export declare const getOAuthAPI: (intlayerConfig?: IntlayerConfig) => oAuthAPI;
|
|
8
|
+
//# sourceMappingURL=oAuth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oAuth.d.ts","sourceRoot":"","sources":["../../../src/getIntlayerAPI/oAuth.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAW,MAAM,YAAY,CAAC;AACrD,OAAO,EAAsB,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEpE,MAAM,WAAW,QAAQ;IACvB,oBAAoB,EAAE,CACpB,YAAY,CAAC,EAAE,cAAc,KAC1B,OAAO,CAAC,oBAAoB,CAAC,CAAC;CACpC;AAED,eAAO,MAAM,WAAW,GAAI,iBAAiB,cAAc,KAAG,QAoC7D,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type IntlayerConfig } from '@intlayer/config/client';
|
|
2
|
-
import type { CreateUserBody, CreateUserResult, GetUserByAccountParams,
|
|
2
|
+
import type { CreateUserBody, CreateUserResult, GetUserByAccountParams, GetUserByEmailParams, GetUserByEmailResult, GetUserByIdParams, GetUserByIdResult, GetUsersParams, GetUsersResult, UpdateUserBody, UpdateUserResult, UserAPI } from '../types';
|
|
3
3
|
import { type FetcherOptions } from '../fetcher';
|
|
4
4
|
export declare const getUserAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
5
5
|
createUser: (user: CreateUserBody, otherOptions?: FetcherOptions) => Promise<CreateUserResult>;
|
|
@@ -9,5 +9,6 @@ export declare const getUserAPI: (authAPIOptions?: FetcherOptions, intlayerConfi
|
|
|
9
9
|
getUserByEmail: (email: GetUserByEmailParams["email"], otherOptions?: FetcherOptions) => Promise<GetUserByEmailResult>;
|
|
10
10
|
updateUser: (user: UpdateUserBody, otherOptions?: FetcherOptions) => Promise<UpdateUserResult>;
|
|
11
11
|
deleteUser: (userId: string, otherOptions?: FetcherOptions) => Promise<UpdateUserResult>;
|
|
12
|
+
getVerifyEmailStatusURL: (userId: string | UserAPI["id"]) => string;
|
|
12
13
|
};
|
|
13
14
|
//# sourceMappingURL=user.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/getIntlayerAPI/user.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EAChB,sBAAsB,
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/getIntlayerAPI/user.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EAEtB,oBAAoB,EACpB,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,OAAO,EACR,MAAM,UAAU,CAAC;AAElB,OAAO,EAAW,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAE1D,eAAO,MAAM,UAAU,GACrB,iBAAgB,cAAmB,EACnC,iBAAiB,cAAc;uBAmFvB,cAAc,iBACN,cAAc;yBAjElB,cAAc,iBACV,cAAc;0BAiBpB,iBAAiB,CAAC,QAAQ,CAAC,iBACrB,cAAc;0CA6BT,sBAAsB,CAAC,mBAAmB,CAAC,YACpD,sBAAsB,CAAC,UAAU,CAAC,iBAC9B,cAAc;4BAjBrB,oBAAoB,CAAC,OAAO,CAAC,iBACtB,cAAc;uBAiDtB,cAAc,iBACN,cAAc;yBAkBpB,MAAM,iBACA,cAAc;sCAgBW,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAahE,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from './getIntlayerAPI/ai';
|
|
|
5
5
|
export * from './getIntlayerAPI/auth';
|
|
6
6
|
export * from './getIntlayerAPI/dictionary';
|
|
7
7
|
export * from './getIntlayerAPI/editor';
|
|
8
|
+
export * from './getIntlayerAPI/oAuth';
|
|
8
9
|
export * from './getIntlayerAPI/organization';
|
|
9
10
|
export * from './getIntlayerAPI/project';
|
|
10
11
|
export * from './getIntlayerAPI/stripe';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,SAAS,CAAC"}
|
package/dist/types/types.d.ts
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
* This file re-exports all types to allow non-blocking build because
|
|
3
3
|
* the backend and intlayer-editor are not built yet.
|
|
4
4
|
*/
|
|
5
|
-
export type { AIOptions, AIProvider, AddDictionaryBody, AddDictionaryResult, AddNewAccessKeyBody, AddNewAccessKeyResponse, AddOrganizationBody, AddOrganizationMemberBody, AddOrganizationMemberResult, AddOrganizationResult, AddProjectBody, AddProjectResult, AddTagBody, AddTagResult, AskDocQuestionResult, AskResetPasswordBody, AskResetPasswordResult, AuditContentDeclarationBody, AuditContentDeclarationFieldBody, AuditContentDeclarationFieldResult, AuditContentDeclarationMetadataBody, AuditContentDeclarationMetadataResult, AuditContentDeclarationResult, AuditTagBody, AuditTagResult, AutocompleteBody, AutocompleteResponse, ChatCompletionRequestMessage, CheckIfUserHasPasswordResult, CreateSessionBody, CreateSessionResult, CreateUserBody, CreateUserResult, CustomQueryBody, CustomQueryResult, DefinePasswordBody, DefinePasswordResult, DeleteAccessKeyBody, DeleteAccessKeyResponse, DeleteDictionaryParam, DeleteDictionaryResult, DeleteOrganizationResult, DeleteProjectResult, DeleteTagParams, DeleteTagResult, GetCheckoutSessionBody, GetCheckoutSessionResult, GetDictionariesKeysResult, GetDictionariesParams, GetDictionariesResult, GetDictionaryParams, GetDictionaryQuery, GetDictionaryResult, GetOAuth2TokenBody, GetOAuth2TokenResult, GetOrganizationParam, GetOrganizationResult, GetOrganizationsParams, GetOrganizationsResult, GetPricingBody, GetPricingResult, GetProjectsParams, GetProjectsResult, GetSessionInformationQuery, GetSessionInformationResult, GetTagsParams, GetTagsResult, GetUserByAccountParams, GetUserByAccountResult, GetUserByEmailParams, GetUserByEmailResult, GetUserByIdParams, GetUserByIdResult, GetUsersParams, GetUsersResult, GithubLoginQueryParams, GoogleLoginQueryParams, LoginBody, LoginResult, Messages, NewsletterSubscriptionBody, NewsletterSubscriptionResult, NewsletterUnsubscriptionBody, PushDictionariesBody, PushDictionariesResult, PushProjectConfigurationBody, PushProjectConfigurationResult, RefreshAccessKeyBody, RefreshAccessKeyResponse, RegisterBody, RegisterQuery, RegisterResult, SearchDocUtilParams, SearchDocUtilResult, SelectOrganizationParam, SelectOrganizationResult, SelectProjectParam, SelectProjectResult, SetCSRFTokenResult, TranslateJSONBody, TranslateJSONResult, UnselectOrganizationResult, UnselectProjectResult, UpdateDictionaryBody, UpdateDictionaryParam, UpdateDictionaryResult, UpdateOrganizationBody, UpdateOrganizationMembersBody, UpdateOrganizationMembersResult, UpdateOrganizationResult, UpdatePasswordBody, UpdatePasswordResult, UpdateProjectBody, UpdateProjectMembersBody, UpdateProjectMembersResult, UpdateProjectResult, UpdateTagBody, UpdateTagParams, UpdateTagResult, UpdateUserBody, UpdateUserResult, UserAPI, ValidEmailParams, ValidEmailResult, } from '@intlayer/backend';
|
|
5
|
+
export type { AIOptions, AIProvider, AddDictionaryBody, AddDictionaryResult, AddNewAccessKeyBody, AddNewAccessKeyResponse, AddOrganizationBody, AddOrganizationMemberBody, AddOrganizationMemberResult, AddOrganizationResult, AddProjectBody, AddProjectResult, AddTagBody, AddTagResult, AskDocQuestionResult, AskResetPasswordBody, AskResetPasswordResult, AuditContentDeclarationBody, AuditContentDeclarationFieldBody, AuditContentDeclarationFieldResult, AuditContentDeclarationMetadataBody, AuditContentDeclarationMetadataResult, AuditContentDeclarationResult, AuditTagBody, AuditTagResult, AuthClient, AutocompleteBody, AutocompleteResponse, ChatCompletionRequestMessage, CheckIfUserHasPasswordResult, CreateSessionBody, CreateSessionResult, CreateUserBody, CreateUserResult, CustomQueryBody, CustomQueryResult, DefinePasswordBody, DefinePasswordResult, DeleteAccessKeyBody, DeleteAccessKeyResponse, DeleteDictionaryParam, DeleteDictionaryResult, DeleteOrganizationResult, DeleteProjectResult, DeleteTagParams, DeleteTagResult, GetCheckoutSessionBody, GetCheckoutSessionResult, GetDictionariesKeysResult, GetDictionariesParams, GetDictionariesResult, GetDictionaryParams, GetDictionaryQuery, GetDictionaryResult, GetOAuth2TokenBody, GetOAuth2TokenBody, GetOAuth2TokenResult, GetOAuth2TokenResult, GetOrganizationParam, GetOrganizationResult, GetOrganizationsParams, GetOrganizationsResult, GetPricingBody, GetPricingResult, GetProjectsParams, GetProjectsResult, GetSessionInformationQuery, GetSessionInformationResult, GetTagsParams, GetTagsResult, GetUserByAccountParams, GetUserByAccountResult, GetUserByEmailParams, GetUserByEmailResult, GetUserByIdParams, GetUserByIdResult, GetUsersParams, GetUsersResult, GithubLoginQueryParams, GoogleLoginQueryParams, LoginBody, LoginResult, Messages, NewsletterSubscriptionBody, NewsletterSubscriptionResult, NewsletterUnsubscriptionBody, PushDictionariesBody, PushDictionariesResult, PushProjectConfigurationBody, PushProjectConfigurationResult, RefreshAccessKeyBody, RefreshAccessKeyResponse, RegisterBody, RegisterQuery, RegisterResult, SearchDocUtilParams, SearchDocUtilResult, SelectOrganizationParam, SelectOrganizationResult, SelectProjectParam, SelectProjectResult, SetCSRFTokenResult, TranslateJSONBody, TranslateJSONResult, UnselectOrganizationResult, UnselectProjectResult, UpdateDictionaryBody, UpdateDictionaryParam, UpdateDictionaryResult, UpdateOrganizationBody, UpdateOrganizationMembersBody, UpdateOrganizationMembersResult, UpdateOrganizationResult, UpdatePasswordBody, UpdatePasswordResult, UpdateProjectBody, UpdateProjectMembersBody, UpdateProjectMembersResult, UpdateProjectResult, UpdateTagBody, UpdateTagParams, UpdateTagResult, UpdateUserBody, UpdateUserResult, UserAPI, ValidEmailParams, ValidEmailResult, } from '@intlayer/backend';
|
|
6
6
|
export type { GetConfigurationResult, WriteContentDeclarationBody, WriteContentDeclarationResult, } from 'intlayer-editor';
|
|
7
|
+
export type AutocompleteBody = {
|
|
8
|
+
text: string;
|
|
9
|
+
aiOptions?: AIOptions;
|
|
10
|
+
contextBefore?: string;
|
|
11
|
+
currentLine?: string;
|
|
12
|
+
contextAfter?: string;
|
|
13
|
+
};
|
|
7
14
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AACA;;;GAGG;AACH,YAAY,EACV,SAAS,EACT,UAAU,EACV,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACvB,mBAAmB,EACnB,yBAAyB,EACzB,2BAA2B,EAC3B,qBAAqB,EACrB,cAAc,EACd,gBAAgB,EAChB,UAAU,EACV,YAAY,EACZ,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EACtB,2BAA2B,EAC3B,gCAAgC,EAChC,kCAAkC,EAClC,mCAAmC,EACnC,qCAAqC,EACrC,6BAA6B,EAC7B,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,4BAA4B,EAC5B,4BAA4B,EAC5B,iBAAiB,EACjB,mBAAmB,EACnB,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,EACnB,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACtB,wBAAwB,EACxB,mBAAmB,EACnB,eAAe,EACf,eAAe,EACf,sBAAsB,EACtB,wBAAwB,EACxB,yBAAyB,EACzB,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACtB,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,0BAA0B,EAC1B,2BAA2B,EAC3B,aAAa,EACb,aAAa,EACb,sBAAsB,EACtB,sBAAsB,EACtB,oBAAoB,EACpB,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,sBAAsB,EACtB,sBAAsB,EACtB,SAAS,EACT,WAAW,EACX,QAAQ,EACR,0BAA0B,EAC1B,4BAA4B,EAC5B,4BAA4B,EAC5B,oBAAoB,EACpB,sBAAsB,EACtB,4BAA4B,EAC5B,8BAA8B,EAC9B,oBAAoB,EACpB,wBAAwB,EACxB,YAAY,EACZ,aAAa,EACb,cAAc,EACd,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACvB,wBAAwB,EACxB,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,0BAA0B,EAC1B,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACtB,6BAA6B,EAC7B,+BAA+B,EAC/B,wBAAwB,EACxB,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,EACjB,wBAAwB,EACxB,0BAA0B,EAC1B,mBAAmB,EACnB,aAAa,EACb,eAAe,EACf,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,OAAO,EACP,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACV,sBAAsB,EACtB,2BAA2B,EAC3B,6BAA6B,GAC9B,MAAM,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AACA;;;GAGG;AACH,YAAY,EACV,SAAS,EACT,UAAU,EACV,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACvB,mBAAmB,EACnB,yBAAyB,EACzB,2BAA2B,EAC3B,qBAAqB,EACrB,cAAc,EACd,gBAAgB,EAChB,UAAU,EACV,YAAY,EACZ,o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jB,mBAAmB,EACnB,0BAA0B,EAC1B,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACtB,6BAA6B,EAC7B,+BAA+B,EAC/B,wBAAwB,EACxB,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,EACjB,wBAAwB,EACxB,0BAA0B,EAC1B,mBAAmB,EACnB,aAAa,EACb,eAAe,EACf,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,OAAO,EACP,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACV,sBAAsB,EACtB,2BAA2B,EAC3B,6BAA6B,GAC9B,MAAM,iBAAiB,CAAC;AAEzB,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/api",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.7.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "SDK for interacting with the Intlayer API, enabling content auditing, and managing organizations, projects, and users.",
|
|
6
6
|
"keywords": [
|
|
@@ -58,7 +58,8 @@
|
|
|
58
58
|
"./package.json"
|
|
59
59
|
],
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"
|
|
61
|
+
"better-auth": "^1.3.4",
|
|
62
|
+
"@intlayer/config": "5.7.1"
|
|
62
63
|
},
|
|
63
64
|
"devDependencies": {
|
|
64
65
|
"@changesets/changelog-github": "0.5.1",
|
|
@@ -73,15 +74,15 @@
|
|
|
73
74
|
"tsup": "^8.5.0",
|
|
74
75
|
"typescript": "^5.8.3",
|
|
75
76
|
"vitest": "^3.2.2",
|
|
76
|
-
"@utils/
|
|
77
|
+
"@utils/ts-config": "1.0.4",
|
|
77
78
|
"@utils/ts-config-types": "1.0.4",
|
|
78
79
|
"@utils/tsup-config": "1.0.4",
|
|
79
|
-
"@
|
|
80
|
-
"@
|
|
81
|
-
"intlayer-editor": "5.
|
|
80
|
+
"@utils/eslint-config": "1.0.4",
|
|
81
|
+
"@intlayer/backend": "5.7.1",
|
|
82
|
+
"intlayer-editor": "5.7.1"
|
|
82
83
|
},
|
|
83
84
|
"peerDependencies": {
|
|
84
|
-
"@intlayer/config": "5.
|
|
85
|
+
"@intlayer/config": "5.7.1"
|
|
85
86
|
},
|
|
86
87
|
"engines": {
|
|
87
88
|
"node": ">=14.18"
|