@intlayer/api 5.7.2 → 5.7.4
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/getIntlayerAPI/index.cjs +0 -2
- package/dist/cjs/getIntlayerAPI/index.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/oAuth.cjs.map +1 -1
- package/dist/cjs/index.cjs +0 -2
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/getIntlayerAPI/index.mjs +0 -2
- package/dist/esm/getIntlayerAPI/index.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/oAuth.mjs.map +1 -1
- package/dist/esm/index.mjs +0 -1
- package/dist/esm/index.mjs.map +1 -1
- package/dist/types/getIntlayerAPI/index.d.ts +2 -4
- package/dist/types/getIntlayerAPI/index.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/oAuth.d.ts +2 -3
- package/dist/types/getIntlayerAPI/oAuth.d.ts.map +1 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +8 -13
- package/dist/cjs/getIntlayerAPI/auth.cjs +0 -103
- package/dist/cjs/getIntlayerAPI/auth.cjs.map +0 -1
- package/dist/esm/getIntlayerAPI/auth.mjs +0 -69
- package/dist/esm/getIntlayerAPI/auth.mjs.map +0 -1
- package/dist/types/getIntlayerAPI/auth.d.ts +0 -32
- package/dist/types/getIntlayerAPI/auth.d.ts.map +0 -1
|
@@ -22,7 +22,6 @@ __export(getIntlayerAPI_exports, {
|
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(getIntlayerAPI_exports);
|
|
24
24
|
var import_ai = require('./ai.cjs');
|
|
25
|
-
var import_auth = require('./auth.cjs');
|
|
26
25
|
var import_dictionary = require('./dictionary.cjs');
|
|
27
26
|
var import_editor = require('./editor.cjs');
|
|
28
27
|
var import_newsletter = require('./newsletter.cjs');
|
|
@@ -37,7 +36,6 @@ const getIntlayerAPI = (authAPIOptions = {}, intlayerConfig) => ({
|
|
|
37
36
|
organization: (0, import_organization.getOrganizationAPI)(authAPIOptions, intlayerConfig),
|
|
38
37
|
project: (0, import_project.getProjectAPI)(authAPIOptions, intlayerConfig),
|
|
39
38
|
user: (0, import_user.getUserAPI)(authAPIOptions, intlayerConfig),
|
|
40
|
-
auth: (0, import_auth.getAuthAPI)(intlayerConfig),
|
|
41
39
|
oAuth: (0, import_oAuth.getOAuthAPI)(intlayerConfig),
|
|
42
40
|
dictionary: (0, import_dictionary.getDictionaryAPI)(authAPIOptions, intlayerConfig),
|
|
43
41
|
stripe: (0, import_stripe.getStripeAPI)(authAPIOptions, intlayerConfig),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/getIntlayerAPI/index.ts"],"sourcesContent":["import type { IntlayerConfig } from '@intlayer/config/client';\nimport type { FetcherOptions } from '../fetcher';\nimport { getAiAPI } from './ai';\nimport {
|
|
1
|
+
{"version":3,"sources":["../../../src/getIntlayerAPI/index.ts"],"sourcesContent":["import type { IntlayerConfig } from '@intlayer/config/client';\nimport type { FetcherOptions } from '../fetcher';\nimport { getAiAPI } from './ai';\nimport { getDictionaryAPI } from './dictionary';\nimport { getEditorAPI } from './editor';\nimport { getNewsletterAPI } from './newsletter';\nimport { getOAuthAPI } from './oAuth';\nimport { getOrganizationAPI } from './organization';\nimport { getProjectAPI } from './project';\nimport { getSearchAPI } from './search';\nimport { getStripeAPI } from './stripe';\nimport { getTagAPI } from './tag';\nimport { getUserAPI } from './user';\n\ninterface IntlayerAPIReturn {\n organization: ReturnType<typeof getOrganizationAPI>;\n project: ReturnType<typeof getProjectAPI>;\n user: ReturnType<typeof getUserAPI>;\n oAuth: ReturnType<typeof getOAuthAPI>;\n dictionary: ReturnType<typeof getDictionaryAPI>;\n stripe: ReturnType<typeof getStripeAPI>;\n ai: ReturnType<typeof getAiAPI>;\n tag: ReturnType<typeof getTagAPI>;\n search: ReturnType<typeof getSearchAPI>;\n editor: ReturnType<typeof getEditorAPI>;\n newsletter: ReturnType<typeof getNewsletterAPI>;\n}\n\nexport const getIntlayerAPI = (\n authAPIOptions: FetcherOptions = {},\n intlayerConfig?: IntlayerConfig\n): IntlayerAPIReturn => ({\n organization: getOrganizationAPI(authAPIOptions, intlayerConfig),\n project: getProjectAPI(authAPIOptions, intlayerConfig),\n user: getUserAPI(authAPIOptions, intlayerConfig),\n oAuth: getOAuthAPI(intlayerConfig),\n dictionary: getDictionaryAPI(authAPIOptions, intlayerConfig),\n stripe: getStripeAPI(authAPIOptions, intlayerConfig),\n ai: getAiAPI(authAPIOptions, intlayerConfig),\n tag: getTagAPI(authAPIOptions, intlayerConfig),\n search: getSearchAPI(authAPIOptions, intlayerConfig),\n editor: getEditorAPI(authAPIOptions, intlayerConfig),\n newsletter: getNewsletterAPI(authAPIOptions, intlayerConfig),\n});\n\nexport type IntlayerAPI = ReturnType<typeof getIntlayerAPI>;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,gBAAyB;AACzB,wBAAiC;AACjC,oBAA6B;AAC7B,wBAAiC;AACjC,mBAA4B;AAC5B,0BAAmC;AACnC,qBAA8B;AAC9B,oBAA6B;AAC7B,oBAA6B;AAC7B,iBAA0B;AAC1B,kBAA2B;AAgBpB,MAAM,iBAAiB,CAC5B,iBAAiC,CAAC,GAClC,oBACuB;AAAA,EACvB,kBAAc,wCAAmB,gBAAgB,cAAc;AAAA,EAC/D,aAAS,8BAAc,gBAAgB,cAAc;AAAA,EACrD,UAAM,wBAAW,gBAAgB,cAAc;AAAA,EAC/C,WAAO,0BAAY,cAAc;AAAA,EACjC,gBAAY,oCAAiB,gBAAgB,cAAc;AAAA,EAC3D,YAAQ,4BAAa,gBAAgB,cAAc;AAAA,EACnD,QAAI,oBAAS,gBAAgB,cAAc;AAAA,EAC3C,SAAK,sBAAU,gBAAgB,cAAc;AAAA,EAC7C,YAAQ,4BAAa,gBAAgB,cAAc;AAAA,EACnD,YAAQ,4BAAa,gBAAgB,cAAc;AAAA,EACnD,gBAAY,oCAAiB,gBAAgB,cAAc;AAC7D;","names":[]}
|
|
@@ -1 +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
|
|
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 const getOAuthAPI = (intlayerConfig?: IntlayerConfig) => {\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;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA0B;AAE1B,qBAAwC;AAGjC,MAAM,cAAc,CAAC,mBAAoC;AAC9D,QAAM,aACJ,gBAAgB,QAAQ,cAAc,aAAAA,QAAc,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,UAAM;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":["configuration"]}
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -19,7 +19,6 @@ __reExport(index_exports, require('./distantDictionary/index.cjs'), module.expor
|
|
|
19
19
|
__reExport(index_exports, require('./fetcher.cjs'), module.exports);
|
|
20
20
|
__reExport(index_exports, require('./getIntlayerAPI/index.cjs'), module.exports);
|
|
21
21
|
__reExport(index_exports, require('./getIntlayerAPI/ai.cjs'), module.exports);
|
|
22
|
-
__reExport(index_exports, require('./getIntlayerAPI/auth.cjs'), module.exports);
|
|
23
22
|
__reExport(index_exports, require('./getIntlayerAPI/dictionary.cjs'), module.exports);
|
|
24
23
|
__reExport(index_exports, require('./getIntlayerAPI/editor.cjs'), module.exports);
|
|
25
24
|
__reExport(index_exports, require('./getIntlayerAPI/oAuth.cjs'), module.exports);
|
|
@@ -36,7 +35,6 @@ __reExport(index_exports, require('./types.cjs'), module.exports);
|
|
|
36
35
|
...require('./fetcher.cjs'),
|
|
37
36
|
...require('./getIntlayerAPI/index.cjs'),
|
|
38
37
|
...require('./getIntlayerAPI/ai.cjs'),
|
|
39
|
-
...require('./getIntlayerAPI/auth.cjs'),
|
|
40
38
|
...require('./getIntlayerAPI/dictionary.cjs'),
|
|
41
39
|
...require('./getIntlayerAPI/editor.cjs'),
|
|
42
40
|
...require('./getIntlayerAPI/oAuth.cjs'),
|
package/dist/cjs/index.cjs.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/
|
|
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/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;AAAA;AAAA,0BAAc,sCAAd;AACA,0BAAc,sBADd;AAEA,0BAAc,6BAFd;AAGA,0BAAc,gCAHd;AAIA,0BAAc,wCAJd;AAKA,0BAAc,oCALd;AAMA,0BAAc,mCANd;AAOA,0BAAc,0CAPd;AAQA,0BAAc,qCARd;AASA,0BAAc,oCATd;AAUA,0BAAc,iCAVd;AAWA,0BAAc,kCAXd;AAYA,0BAAc,oCAZd;AAaA,0BAAc,oBAbd;","names":[]}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { getAiAPI } from "./ai.mjs";
|
|
2
|
-
import { getAuthAPI } from "./auth.mjs";
|
|
3
2
|
import { getDictionaryAPI } from "./dictionary.mjs";
|
|
4
3
|
import { getEditorAPI } from "./editor.mjs";
|
|
5
4
|
import { getNewsletterAPI } from "./newsletter.mjs";
|
|
@@ -14,7 +13,6 @@ const getIntlayerAPI = (authAPIOptions = {}, intlayerConfig) => ({
|
|
|
14
13
|
organization: getOrganizationAPI(authAPIOptions, intlayerConfig),
|
|
15
14
|
project: getProjectAPI(authAPIOptions, intlayerConfig),
|
|
16
15
|
user: getUserAPI(authAPIOptions, intlayerConfig),
|
|
17
|
-
auth: getAuthAPI(intlayerConfig),
|
|
18
16
|
oAuth: getOAuthAPI(intlayerConfig),
|
|
19
17
|
dictionary: getDictionaryAPI(authAPIOptions, intlayerConfig),
|
|
20
18
|
stripe: getStripeAPI(authAPIOptions, intlayerConfig),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/getIntlayerAPI/index.ts"],"sourcesContent":["import type { IntlayerConfig } from '@intlayer/config/client';\nimport type { FetcherOptions } from '../fetcher';\nimport { getAiAPI } from './ai';\nimport {
|
|
1
|
+
{"version":3,"sources":["../../../src/getIntlayerAPI/index.ts"],"sourcesContent":["import type { IntlayerConfig } from '@intlayer/config/client';\nimport type { FetcherOptions } from '../fetcher';\nimport { getAiAPI } from './ai';\nimport { getDictionaryAPI } from './dictionary';\nimport { getEditorAPI } from './editor';\nimport { getNewsletterAPI } from './newsletter';\nimport { getOAuthAPI } from './oAuth';\nimport { getOrganizationAPI } from './organization';\nimport { getProjectAPI } from './project';\nimport { getSearchAPI } from './search';\nimport { getStripeAPI } from './stripe';\nimport { getTagAPI } from './tag';\nimport { getUserAPI } from './user';\n\ninterface IntlayerAPIReturn {\n organization: ReturnType<typeof getOrganizationAPI>;\n project: ReturnType<typeof getProjectAPI>;\n user: ReturnType<typeof getUserAPI>;\n oAuth: ReturnType<typeof getOAuthAPI>;\n dictionary: ReturnType<typeof getDictionaryAPI>;\n stripe: ReturnType<typeof getStripeAPI>;\n ai: ReturnType<typeof getAiAPI>;\n tag: ReturnType<typeof getTagAPI>;\n search: ReturnType<typeof getSearchAPI>;\n editor: ReturnType<typeof getEditorAPI>;\n newsletter: ReturnType<typeof getNewsletterAPI>;\n}\n\nexport const getIntlayerAPI = (\n authAPIOptions: FetcherOptions = {},\n intlayerConfig?: IntlayerConfig\n): IntlayerAPIReturn => ({\n organization: getOrganizationAPI(authAPIOptions, intlayerConfig),\n project: getProjectAPI(authAPIOptions, intlayerConfig),\n user: getUserAPI(authAPIOptions, intlayerConfig),\n oAuth: getOAuthAPI(intlayerConfig),\n dictionary: getDictionaryAPI(authAPIOptions, intlayerConfig),\n stripe: getStripeAPI(authAPIOptions, intlayerConfig),\n ai: getAiAPI(authAPIOptions, intlayerConfig),\n tag: getTagAPI(authAPIOptions, intlayerConfig),\n search: getSearchAPI(authAPIOptions, intlayerConfig),\n editor: getEditorAPI(authAPIOptions, intlayerConfig),\n newsletter: getNewsletterAPI(authAPIOptions, intlayerConfig),\n});\n\nexport type IntlayerAPI = ReturnType<typeof getIntlayerAPI>;\n"],"mappings":"AAEA,SAAS,gBAAgB;AACzB,SAAS,wBAAwB;AACjC,SAAS,oBAAoB;AAC7B,SAAS,wBAAwB;AACjC,SAAS,mBAAmB;AAC5B,SAAS,0BAA0B;AACnC,SAAS,qBAAqB;AAC9B,SAAS,oBAAoB;AAC7B,SAAS,oBAAoB;AAC7B,SAAS,iBAAiB;AAC1B,SAAS,kBAAkB;AAgBpB,MAAM,iBAAiB,CAC5B,iBAAiC,CAAC,GAClC,oBACuB;AAAA,EACvB,cAAc,mBAAmB,gBAAgB,cAAc;AAAA,EAC/D,SAAS,cAAc,gBAAgB,cAAc;AAAA,EACrD,MAAM,WAAW,gBAAgB,cAAc;AAAA,EAC/C,OAAO,YAAY,cAAc;AAAA,EACjC,YAAY,iBAAiB,gBAAgB,cAAc;AAAA,EAC3D,QAAQ,aAAa,gBAAgB,cAAc;AAAA,EACnD,IAAI,SAAS,gBAAgB,cAAc;AAAA,EAC3C,KAAK,UAAU,gBAAgB,cAAc;AAAA,EAC7C,QAAQ,aAAa,gBAAgB,cAAc;AAAA,EACnD,QAAQ,aAAa,gBAAgB,cAAc;AAAA,EACnD,YAAY,iBAAiB,gBAAgB,cAAc;AAC7D;","names":[]}
|
|
@@ -1 +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
|
|
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 const getOAuthAPI = (intlayerConfig?: IntlayerConfig) => {\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;AAGjC,MAAM,cAAc,CAAC,mBAAoC;AAC9D,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":[]}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -2,7 +2,6 @@ export * from "./distantDictionary/index.mjs";
|
|
|
2
2
|
export * from "./fetcher.mjs";
|
|
3
3
|
export * from "./getIntlayerAPI/index.mjs";
|
|
4
4
|
export * from "./getIntlayerAPI/ai.mjs";
|
|
5
|
-
export * from "./getIntlayerAPI/auth.mjs";
|
|
6
5
|
export * from "./getIntlayerAPI/dictionary.mjs";
|
|
7
6
|
export * from "./getIntlayerAPI/editor.mjs";
|
|
8
7
|
export * from "./getIntlayerAPI/oAuth.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/
|
|
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/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;","names":[]}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import type { IntlayerConfig } from '@intlayer/config/client';
|
|
2
2
|
import type { FetcherOptions } from '../fetcher';
|
|
3
3
|
import { getAiAPI } from './ai';
|
|
4
|
-
import { AuthAPI } from './auth';
|
|
5
4
|
import { getDictionaryAPI } from './dictionary';
|
|
6
5
|
import { getEditorAPI } from './editor';
|
|
7
6
|
import { getNewsletterAPI } from './newsletter';
|
|
8
|
-
import {
|
|
7
|
+
import { getOAuthAPI } from './oAuth';
|
|
9
8
|
import { getOrganizationAPI } from './organization';
|
|
10
9
|
import { getProjectAPI } from './project';
|
|
11
10
|
import { getSearchAPI } from './search';
|
|
@@ -16,8 +15,7 @@ interface IntlayerAPIReturn {
|
|
|
16
15
|
organization: ReturnType<typeof getOrganizationAPI>;
|
|
17
16
|
project: ReturnType<typeof getProjectAPI>;
|
|
18
17
|
user: ReturnType<typeof getUserAPI>;
|
|
19
|
-
|
|
20
|
-
oAuth: oAuthAPI;
|
|
18
|
+
oAuth: ReturnType<typeof getOAuthAPI>;
|
|
21
19
|
dictionary: ReturnType<typeof getDictionaryAPI>;
|
|
22
20
|
stripe: ReturnType<typeof getStripeAPI>;
|
|
23
21
|
ai: ReturnType<typeof getAiAPI>;
|
|
@@ -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;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/getIntlayerAPI/index.ts"],"names":[],"mappings":"AAAA,OAAO,KA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U,CAAC,OAAO,gBAAgB,CAAC,CAAC;CACjD;AAED,eAAO,MAAM,cAAc,GACzB,iBAAgB,cAAmB,EACnC,iBAAiB,cAAc,KAC9B,iBAYD,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { IntlayerConfig } from '@intlayer/config/client';
|
|
2
2
|
import { FetcherOptions } from '../fetcher';
|
|
3
3
|
import { GetOAuth2TokenResult } from '../types';
|
|
4
|
-
export
|
|
4
|
+
export declare const getOAuthAPI: (intlayerConfig?: IntlayerConfig) => {
|
|
5
5
|
getOAuth2AccessToken: (otherOptions?: FetcherOptions) => Promise<GetOAuth2TokenResult>;
|
|
6
|
-
}
|
|
7
|
-
export declare const getOAuthAPI: (intlayerConfig?: IntlayerConfig) => oAuthAPI;
|
|
6
|
+
};
|
|
8
7
|
//# sourceMappingURL=oAuth.d.ts.map
|
|
@@ -1 +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,
|
|
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,eAAO,MAAM,WAAW,GAAI,iBAAiB,cAAc;0CAeP,cAAc;CAqBjE,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ export * from './distantDictionary/index';
|
|
|
2
2
|
export * from './fetcher';
|
|
3
3
|
export * from './getIntlayerAPI';
|
|
4
4
|
export * from './getIntlayerAPI/ai';
|
|
5
|
-
export * from './getIntlayerAPI/auth';
|
|
6
5
|
export * from './getIntlayerAPI/dictionary';
|
|
7
6
|
export * from './getIntlayerAPI/editor';
|
|
8
7
|
export * from './getIntlayerAPI/oAuth';
|
|
@@ -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,
|
|
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,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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/api",
|
|
3
|
-
"version": "5.7.
|
|
3
|
+
"version": "5.7.4",
|
|
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": [
|
|
@@ -57,13 +57,8 @@
|
|
|
57
57
|
"./dist",
|
|
58
58
|
"./package.json"
|
|
59
59
|
],
|
|
60
|
-
"overrides": {
|
|
61
|
-
"nanostores": "npm:nanostores-cjs@0.7.1"
|
|
62
|
-
},
|
|
63
60
|
"dependencies": {
|
|
64
|
-
"
|
|
65
|
-
"nanostores": "npm:nanostores-cjs@0.7.1",
|
|
66
|
-
"@intlayer/config": "5.7.2"
|
|
61
|
+
"@intlayer/config": "5.7.4"
|
|
67
62
|
},
|
|
68
63
|
"devDependencies": {
|
|
69
64
|
"@changesets/changelog-github": "0.5.1",
|
|
@@ -78,15 +73,15 @@
|
|
|
78
73
|
"tsup": "^8.5.0",
|
|
79
74
|
"typescript": "^5.8.3",
|
|
80
75
|
"vitest": "^3.2.2",
|
|
81
|
-
"@intlayer/backend": "5.7.
|
|
76
|
+
"@intlayer/backend": "5.7.4",
|
|
82
77
|
"@utils/eslint-config": "1.0.4",
|
|
78
|
+
"@utils/ts-config": "1.0.4",
|
|
83
79
|
"@utils/tsup-config": "1.0.4",
|
|
84
80
|
"@utils/ts-config-types": "1.0.4",
|
|
85
|
-
"
|
|
86
|
-
"intlayer-editor": "5.7.2"
|
|
81
|
+
"intlayer-editor": "5.7.4"
|
|
87
82
|
},
|
|
88
83
|
"peerDependencies": {
|
|
89
|
-
"@intlayer/config": "5.7.
|
|
84
|
+
"@intlayer/config": "5.7.4"
|
|
90
85
|
},
|
|
91
86
|
"engines": {
|
|
92
87
|
"node": ">=14.18"
|
|
@@ -95,7 +90,8 @@
|
|
|
95
90
|
"url": "https://github.com/aymericzip/intlayer/issues"
|
|
96
91
|
},
|
|
97
92
|
"scripts": {
|
|
98
|
-
"build": "pnpm
|
|
93
|
+
"build": "pnpm clean & pnpm build:ci",
|
|
94
|
+
"build:ci": "pnpm build:package & pnpm build:types",
|
|
99
95
|
"build:package": "tsup",
|
|
100
96
|
"build:types": "tsc --project ./tsconfig.types.json && tsc-alias --project ./tsconfig.types.json",
|
|
101
97
|
"clean": "rimraf ./dist",
|
|
@@ -104,7 +100,6 @@
|
|
|
104
100
|
"lint:fix": "eslint . --cache --fix",
|
|
105
101
|
"prettier": "prettier . --check",
|
|
106
102
|
"prettier:fix": "prettier . --write",
|
|
107
|
-
"reset": "pnpm clean & pnpm build",
|
|
108
103
|
"test": "vitest run",
|
|
109
104
|
"test:watch": "vitest",
|
|
110
105
|
"typecheck": "tsup --project ./tsconfig.json --noEmit"
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var auth_exports = {};
|
|
30
|
-
__export(auth_exports, {
|
|
31
|
-
getAuthAPI: () => getAuthAPI
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(auth_exports);
|
|
34
|
-
var import_built = __toESM(require("@intlayer/config/built"));
|
|
35
|
-
const getAuthAPI = async (intlayerConfig) => {
|
|
36
|
-
const backendURL = intlayerConfig?.editor?.backendURL ?? import_built.default.editor?.backendURL;
|
|
37
|
-
if (!backendURL) {
|
|
38
|
-
throw new Error(
|
|
39
|
-
"Backend URL is not defined in the Intlayer configuration."
|
|
40
|
-
);
|
|
41
|
-
}
|
|
42
|
-
const { createAuthClient } = await import("better-auth/client");
|
|
43
|
-
const authClient = createAuthClient({
|
|
44
|
-
baseURL: backendURL,
|
|
45
|
-
withCredentials: true
|
|
46
|
-
// makes fetch forward cookies
|
|
47
|
-
});
|
|
48
|
-
const signInEmail = async (...args) => await authClient.signIn.email(...args);
|
|
49
|
-
const signInSocial = async (...args) => await authClient.signIn.social(...args);
|
|
50
|
-
const signUpEmail = async (...args) => await authClient.signUp.email(...args);
|
|
51
|
-
const signOut = async (...args) => await authClient.signOut(...args);
|
|
52
|
-
const changePasswordSession = async (...args) => await authClient.changePassword(...args);
|
|
53
|
-
const requestPasswordResetSession = async (...args) => await authClient.requestPasswordReset(...args);
|
|
54
|
-
const resetPassword = authClient.resetPassword;
|
|
55
|
-
const verifyEmailSession = async (...args) => await authClient.verifyEmail(...args);
|
|
56
|
-
const getSession = async (...args) => await authClient.getSession(...args);
|
|
57
|
-
const forgetPassword = async (...args) => await authClient.forgetPassword(...args);
|
|
58
|
-
const sendVerificationEmail = async (...args) => await authClient.sendVerificationEmail(...args);
|
|
59
|
-
const changeEmail = async (...args) => await authClient.changeEmail(...args);
|
|
60
|
-
const deleteUser = authClient.deleteUser;
|
|
61
|
-
const revokeSession = async (...args) => await authClient.revokeSession(...args);
|
|
62
|
-
const revokeSessions = async (...args) => await authClient.revokeSessions(...args);
|
|
63
|
-
const revokeOtherSessions = async (...args) => await authClient.revokeOtherSessions(...args);
|
|
64
|
-
const linkSocial = async (...args) => await authClient.linkSocial(...args);
|
|
65
|
-
const listAccounts = async (...args) => await authClient.listAccounts(...args);
|
|
66
|
-
const unlinkAccount = async (...args) => await authClient.unlinkAccount(...args);
|
|
67
|
-
const refreshToken = async (...args) => await authClient.refreshToken(...args);
|
|
68
|
-
const getAccessToken = async (...args) => await authClient.getAccessToken(...args);
|
|
69
|
-
const accountInfo = async (...args) => await authClient.accountInfo(...args);
|
|
70
|
-
const updateUser = async (...args) => await authClient.updateUser(...args);
|
|
71
|
-
const listSessions = async (...args) => await authClient.listSessions(...args);
|
|
72
|
-
return {
|
|
73
|
-
signInEmail,
|
|
74
|
-
signUpEmail,
|
|
75
|
-
signOut,
|
|
76
|
-
signInSocial,
|
|
77
|
-
linkSocial,
|
|
78
|
-
changePasswordSession,
|
|
79
|
-
requestPasswordResetSession,
|
|
80
|
-
resetPassword,
|
|
81
|
-
verifyEmailSession,
|
|
82
|
-
getSession,
|
|
83
|
-
forgetPassword,
|
|
84
|
-
sendVerificationEmail,
|
|
85
|
-
changeEmail,
|
|
86
|
-
deleteUser,
|
|
87
|
-
revokeSession,
|
|
88
|
-
revokeSessions,
|
|
89
|
-
revokeOtherSessions,
|
|
90
|
-
listAccounts,
|
|
91
|
-
unlinkAccount,
|
|
92
|
-
refreshToken,
|
|
93
|
-
getAccessToken,
|
|
94
|
-
accountInfo,
|
|
95
|
-
updateUser,
|
|
96
|
-
listSessions
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
100
|
-
0 && (module.exports = {
|
|
101
|
-
getAuthAPI
|
|
102
|
-
});
|
|
103
|
-
//# sourceMappingURL=auth.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/getIntlayerAPI/auth.ts"],"sourcesContent":["import configuration from '@intlayer/config/built';\nimport type { IntlayerConfig } from '@intlayer/config/client';\nimport type { createAuthClient } from 'better-auth/client';\n\ntype AuthClient = ReturnType<typeof createAuthClient>;\n\nexport interface AuthAPI {\n signInEmail: AuthClient['signIn']['email'];\n signUpEmail: AuthClient['signUp']['email'];\n signOut: AuthClient['signOut'];\n signInSocial: AuthClient['signIn']['social'];\n linkSocial: AuthClient['linkSocial'];\n changePasswordSession: AuthClient['changePassword'];\n requestPasswordResetSession: AuthClient['requestPasswordReset'];\n resetPassword: AuthClient['resetPassword'];\n verifyEmailSession: AuthClient['verifyEmail'];\n getSession: AuthClient['getSession'];\n forgetPassword: AuthClient['forgetPassword'];\n sendVerificationEmail: AuthClient['sendVerificationEmail'];\n changeEmail: AuthClient['changeEmail'];\n deleteUser: AuthClient['deleteUser'];\n revokeSession: AuthClient['revokeSession'];\n revokeSessions: AuthClient['revokeSessions'];\n revokeOtherSessions: AuthClient['revokeOtherSessions'];\n listAccounts: AuthClient['listAccounts'];\n unlinkAccount: AuthClient['unlinkAccount'];\n refreshToken: AuthClient['refreshToken'];\n getAccessToken: AuthClient['getAccessToken'];\n accountInfo: AuthClient['accountInfo'];\n updateUser: AuthClient['updateUser'];\n listSessions: AuthClient['listSessions'];\n}\n\nexport const getAuthAPI = async (\n intlayerConfig?: IntlayerConfig\n): Promise<AuthAPI> => {\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 { createAuthClient } = await import('better-auth/client');\n /*\n * Extract each method to avoid type inference issues at build time.\n */\n const authClient: AuthClient = createAuthClient({\n baseURL: backendURL,\n withCredentials: true, // makes fetch forward cookies\n });\n\n const signInEmail: AuthClient['signIn']['email'] = async (...args) =>\n await authClient.signIn.email(...args);\n\n const signInSocial: AuthClient['signIn']['social'] = async (...args) =>\n await authClient.signIn.social(...args);\n\n const signUpEmail: AuthClient['signUp']['email'] = async (...args) =>\n await authClient.signUp.email(...args);\n\n const signOut: AuthClient['signOut'] = async (...args) =>\n await authClient.signOut(...args);\n\n const changePasswordSession: AuthClient['changePassword'] = async (...args) =>\n await authClient.changePassword(...args);\n\n const requestPasswordResetSession: AuthClient['requestPasswordReset'] =\n async (...args) => await authClient.requestPasswordReset(...args);\n\n const resetPassword = authClient.resetPassword;\n\n const verifyEmailSession: AuthClient['verifyEmail'] = async (...args) =>\n await authClient.verifyEmail(...args);\n\n const getSession: AuthClient['getSession'] = async (...args) =>\n await authClient.getSession(...args);\n\n const forgetPassword: AuthClient['forgetPassword'] = async (...args) =>\n await authClient.forgetPassword(...args);\n\n const sendVerificationEmail: AuthClient['sendVerificationEmail'] = async (\n ...args\n ) => await authClient.sendVerificationEmail(...args);\n\n const changeEmail: AuthClient['changeEmail'] = async (...args) =>\n await authClient.changeEmail(...args);\n\n const deleteUser = authClient.deleteUser;\n\n const revokeSession: AuthClient['revokeSession'] = async (...args) =>\n await authClient.revokeSession(...args);\n\n const revokeSessions: AuthClient['revokeSessions'] = async (...args) =>\n await authClient.revokeSessions(...args);\n\n const revokeOtherSessions: AuthClient['revokeOtherSessions'] = async (\n ...args\n ) => await authClient.revokeOtherSessions(...args);\n\n const linkSocial: AuthClient['linkSocial'] = async (...args) =>\n await authClient.linkSocial(...args);\n\n const listAccounts: AuthClient['listAccounts'] = async (...args) =>\n await authClient.listAccounts(...args);\n\n const unlinkAccount: AuthClient['unlinkAccount'] = async (...args) =>\n await authClient.unlinkAccount(...args);\n\n const refreshToken: AuthClient['refreshToken'] = async (...args) =>\n await authClient.refreshToken(...args);\n\n const getAccessToken: AuthClient['getAccessToken'] = async (...args) =>\n await authClient.getAccessToken(...args);\n\n const accountInfo: AuthClient['accountInfo'] = async (...args) =>\n await authClient.accountInfo(...args);\n\n const updateUser: AuthClient['updateUser'] = async (...args) =>\n await authClient.updateUser(...args);\n\n const listSessions: AuthClient['listSessions'] = async (...args) =>\n await authClient.listSessions(...args);\n\n return {\n signInEmail,\n signUpEmail,\n signOut,\n signInSocial,\n linkSocial,\n changePasswordSession,\n requestPasswordResetSession,\n resetPassword,\n verifyEmailSession,\n getSession,\n forgetPassword,\n sendVerificationEmail,\n changeEmail,\n deleteUser,\n revokeSession,\n revokeSessions,\n revokeOtherSessions,\n listAccounts,\n unlinkAccount,\n refreshToken,\n getAccessToken,\n accountInfo,\n updateUser,\n listSessions,\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA0B;AAiCnB,MAAM,aAAa,OACxB,mBACqB;AACrB,QAAM,aACJ,gBAAgB,QAAQ,cAAc,aAAAA,QAAc,QAAQ;AAE9D,MAAI,CAAC,YAAY;AACf,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAEA,QAAM,EAAE,iBAAiB,IAAI,MAAM,OAAO,oBAAoB;AAI9D,QAAM,aAAyB,iBAAiB;AAAA,IAC9C,SAAS;AAAA,IACT,iBAAiB;AAAA;AAAA,EACnB,CAAC;AAED,QAAM,cAA6C,UAAU,SAC3D,MAAM,WAAW,OAAO,MAAM,GAAG,IAAI;AAEvC,QAAM,eAA+C,UAAU,SAC7D,MAAM,WAAW,OAAO,OAAO,GAAG,IAAI;AAExC,QAAM,cAA6C,UAAU,SAC3D,MAAM,WAAW,OAAO,MAAM,GAAG,IAAI;AAEvC,QAAM,UAAiC,UAAU,SAC/C,MAAM,WAAW,QAAQ,GAAG,IAAI;AAElC,QAAM,wBAAsD,UAAU,SACpE,MAAM,WAAW,eAAe,GAAG,IAAI;AAEzC,QAAM,8BACJ,UAAU,SAAS,MAAM,WAAW,qBAAqB,GAAG,IAAI;AAElE,QAAM,gBAAgB,WAAW;AAEjC,QAAM,qBAAgD,UAAU,SAC9D,MAAM,WAAW,YAAY,GAAG,IAAI;AAEtC,QAAM,aAAuC,UAAU,SACrD,MAAM,WAAW,WAAW,GAAG,IAAI;AAErC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@@
|
|
|
1
|
-
import configuration from "@intlayer/config/built";
|
|
2
|
-
const getAuthAPI = async (intlayerConfig) => {
|
|
3
|
-
const backendURL = intlayerConfig?.editor?.backendURL ?? configuration.editor?.backendURL;
|
|
4
|
-
if (!backendURL) {
|
|
5
|
-
throw new Error(
|
|
6
|
-
"Backend URL is not defined in the Intlayer configuration."
|
|
7
|
-
);
|
|
8
|
-
}
|
|
9
|
-
const { createAuthClient } = await import("better-auth/client");
|
|
10
|
-
const authClient = createAuthClient({
|
|
11
|
-
baseURL: backendURL,
|
|
12
|
-
withCredentials: true
|
|
13
|
-
// makes fetch forward cookies
|
|
14
|
-
});
|
|
15
|
-
const signInEmail = async (...args) => await authClient.signIn.email(...args);
|
|
16
|
-
const signInSocial = async (...args) => await authClient.signIn.social(...args);
|
|
17
|
-
const signUpEmail = async (...args) => await authClient.signUp.email(...args);
|
|
18
|
-
const signOut = async (...args) => await authClient.signOut(...args);
|
|
19
|
-
const changePasswordSession = async (...args) => await authClient.changePassword(...args);
|
|
20
|
-
const requestPasswordResetSession = async (...args) => await authClient.requestPasswordReset(...args);
|
|
21
|
-
const resetPassword = authClient.resetPassword;
|
|
22
|
-
const verifyEmailSession = async (...args) => await authClient.verifyEmail(...args);
|
|
23
|
-
const getSession = async (...args) => await authClient.getSession(...args);
|
|
24
|
-
const forgetPassword = async (...args) => await authClient.forgetPassword(...args);
|
|
25
|
-
const sendVerificationEmail = async (...args) => await authClient.sendVerificationEmail(...args);
|
|
26
|
-
const changeEmail = async (...args) => await authClient.changeEmail(...args);
|
|
27
|
-
const deleteUser = authClient.deleteUser;
|
|
28
|
-
const revokeSession = async (...args) => await authClient.revokeSession(...args);
|
|
29
|
-
const revokeSessions = async (...args) => await authClient.revokeSessions(...args);
|
|
30
|
-
const revokeOtherSessions = async (...args) => await authClient.revokeOtherSessions(...args);
|
|
31
|
-
const linkSocial = async (...args) => await authClient.linkSocial(...args);
|
|
32
|
-
const listAccounts = async (...args) => await authClient.listAccounts(...args);
|
|
33
|
-
const unlinkAccount = async (...args) => await authClient.unlinkAccount(...args);
|
|
34
|
-
const refreshToken = async (...args) => await authClient.refreshToken(...args);
|
|
35
|
-
const getAccessToken = async (...args) => await authClient.getAccessToken(...args);
|
|
36
|
-
const accountInfo = async (...args) => await authClient.accountInfo(...args);
|
|
37
|
-
const updateUser = async (...args) => await authClient.updateUser(...args);
|
|
38
|
-
const listSessions = async (...args) => await authClient.listSessions(...args);
|
|
39
|
-
return {
|
|
40
|
-
signInEmail,
|
|
41
|
-
signUpEmail,
|
|
42
|
-
signOut,
|
|
43
|
-
signInSocial,
|
|
44
|
-
linkSocial,
|
|
45
|
-
changePasswordSession,
|
|
46
|
-
requestPasswordResetSession,
|
|
47
|
-
resetPassword,
|
|
48
|
-
verifyEmailSession,
|
|
49
|
-
getSession,
|
|
50
|
-
forgetPassword,
|
|
51
|
-
sendVerificationEmail,
|
|
52
|
-
changeEmail,
|
|
53
|
-
deleteUser,
|
|
54
|
-
revokeSession,
|
|
55
|
-
revokeSessions,
|
|
56
|
-
revokeOtherSessions,
|
|
57
|
-
listAccounts,
|
|
58
|
-
unlinkAccount,
|
|
59
|
-
refreshToken,
|
|
60
|
-
getAccessToken,
|
|
61
|
-
accountInfo,
|
|
62
|
-
updateUser,
|
|
63
|
-
listSessions
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
export {
|
|
67
|
-
getAuthAPI
|
|
68
|
-
};
|
|
69
|
-
//# sourceMappingURL=auth.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/getIntlayerAPI/auth.ts"],"sourcesContent":["import configuration from '@intlayer/config/built';\nimport type { IntlayerConfig } from '@intlayer/config/client';\nimport type { createAuthClient } from 'better-auth/client';\n\ntype AuthClient = ReturnType<typeof createAuthClient>;\n\nexport interface AuthAPI {\n signInEmail: AuthClient['signIn']['email'];\n signUpEmail: AuthClient['signUp']['email'];\n signOut: AuthClient['signOut'];\n signInSocial: AuthClient['signIn']['social'];\n linkSocial: AuthClient['linkSocial'];\n changePasswordSession: AuthClient['changePassword'];\n requestPasswordResetSession: AuthClient['requestPasswordReset'];\n resetPassword: AuthClient['resetPassword'];\n verifyEmailSession: AuthClient['verifyEmail'];\n getSession: AuthClient['getSession'];\n forgetPassword: AuthClient['forgetPassword'];\n sendVerificationEmail: AuthClient['sendVerificationEmail'];\n changeEmail: AuthClient['changeEmail'];\n deleteUser: AuthClient['deleteUser'];\n revokeSession: AuthClient['revokeSession'];\n revokeSessions: AuthClient['revokeSessions'];\n revokeOtherSessions: AuthClient['revokeOtherSessions'];\n listAccounts: AuthClient['listAccounts'];\n unlinkAccount: AuthClient['unlinkAccount'];\n refreshToken: AuthClient['refreshToken'];\n getAccessToken: AuthClient['getAccessToken'];\n accountInfo: AuthClient['accountInfo'];\n updateUser: AuthClient['updateUser'];\n listSessions: AuthClient['listSessions'];\n}\n\nexport const getAuthAPI = async (\n intlayerConfig?: IntlayerConfig\n): Promise<AuthAPI> => {\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 { createAuthClient } = await import('better-auth/client');\n /*\n * Extract each method to avoid type inference issues at build time.\n */\n const authClient: AuthClient = createAuthClient({\n baseURL: backendURL,\n withCredentials: true, // makes fetch forward cookies\n });\n\n const signInEmail: AuthClient['signIn']['email'] = async (...args) =>\n await authClient.signIn.email(...args);\n\n const signInSocial: AuthClient['signIn']['social'] = async (...args) =>\n await authClient.signIn.social(...args);\n\n const signUpEmail: AuthClient['signUp']['email'] = async (...args) =>\n await authClient.signUp.email(...args);\n\n const signOut: AuthClient['signOut'] = async (...args) =>\n await authClient.signOut(...args);\n\n const changePasswordSession: AuthClient['changePassword'] = async (...args) =>\n await authClient.changePassword(...args);\n\n const requestPasswordResetSession: AuthClient['requestPasswordReset'] =\n async (...args) => await authClient.requestPasswordReset(...args);\n\n const resetPassword = authClient.resetPassword;\n\n const verifyEmailSession: AuthClient['verifyEmail'] = async (...args) =>\n await authClient.verifyEmail(...args);\n\n const getSession: AuthClient['getSession'] = async (...args) =>\n await authClient.getSession(...args);\n\n const forgetPassword: AuthClient['forgetPassword'] = async (...args) =>\n await authClient.forgetPassword(...args);\n\n const sendVerificationEmail: AuthClient['sendVerificationEmail'] = async (\n ...args\n ) => await authClient.sendVerificationEmail(...args);\n\n const changeEmail: AuthClient['changeEmail'] = async (...args) =>\n await authClient.changeEmail(...args);\n\n const deleteUser = authClient.deleteUser;\n\n const revokeSession: AuthClient['revokeSession'] = async (...args) =>\n await authClient.revokeSession(...args);\n\n const revokeSessions: AuthClient['revokeSessions'] = async (...args) =>\n await authClient.revokeSessions(...args);\n\n const revokeOtherSessions: AuthClient['revokeOtherSessions'] = async (\n ...args\n ) => await authClient.revokeOtherSessions(...args);\n\n const linkSocial: AuthClient['linkSocial'] = async (...args) =>\n await authClient.linkSocial(...args);\n\n const listAccounts: AuthClient['listAccounts'] = async (...args) =>\n await authClient.listAccounts(...args);\n\n const unlinkAccount: AuthClient['unlinkAccount'] = async (...args) =>\n await authClient.unlinkAccount(...args);\n\n const refreshToken: AuthClient['refreshToken'] = async (...args) =>\n await authClient.refreshToken(...args);\n\n const getAccessToken: AuthClient['getAccessToken'] = async (...args) =>\n await authClient.getAccessToken(...args);\n\n const accountInfo: AuthClient['accountInfo'] = async (...args) =>\n await authClient.accountInfo(...args);\n\n const updateUser: AuthClient['updateUser'] = async (...args) =>\n await authClient.updateUser(...args);\n\n const listSessions: AuthClient['listSessions'] = async (...args) =>\n await authClient.listSessions(...args);\n\n return {\n signInEmail,\n signUpEmail,\n signOut,\n signInSocial,\n linkSocial,\n changePasswordSession,\n requestPasswordResetSession,\n resetPassword,\n verifyEmailSession,\n getSession,\n forgetPassword,\n sendVerificationEmail,\n changeEmail,\n deleteUser,\n revokeSession,\n revokeSessions,\n revokeOtherSessions,\n listAccounts,\n unlinkAccount,\n refreshToken,\n get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C,UAAU,SAC7D,MAAM,WAAW,eAAe,GAAG,IAAI;AAEzC,QAAM,sBAAyD,UAC1D,SACA,MAAM,WAAW,oBAAoB,GAAG,IAAI;AAEjD,QAAM,aAAuC,UAAU,SACrD,MAAM,WAAW,WAAW,GAAG,IAAI;AAErC,QAAM,eAA2C,UAAU,SACzD,MAAM,WAAW,aAAa,GAAG,IAAI;AAEvC,QAAM,gBAA6C,UAAU,SAC3D,MAAM,WAAW,cAAc,GAAG,IAAI;AAExC,QAAM,eAA2C,UAAU,SACzD,MAAM,WAAW,aAAa,GAAG,IAAI;AAEvC,QAAM,iBAA+C,UAAU,SAC7D,MAAM,WAAW,eAAe,GAAG,IAAI;AAEzC,QAAM,cAAyC,UAAU,SACvD,MAAM,WAAW,YAAY,GAAG,IAAI;AAEtC,QAAM,aAAuC,UAAU,SACrD,MAAM,WAAW,WAAW,GAAG,IAAI;AAErC,QAAM,eAA2C,UAAU,SACzD,MAAM,WAAW,aAAa,GAAG,IAAI;AAEvC,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;","names":[]}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { IntlayerConfig } from '@intlayer/config/client';
|
|
2
|
-
import type { 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) => Promise<AuthAPI>;
|
|
31
|
-
export {};
|
|
32
|
-
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,KAAK,UAAU,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEtD,MAAM,WAAW,OAAO;IACtB,WAAW,EAAE,UAAU,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