@intlayer/api 5.5.9 → 5.5.10
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/README.md +42 -9
- package/dist/types/getIntlayerAPI/ai.d.ts +1 -1
- package/dist/types/getIntlayerAPI/ai.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/auth.d.ts +1 -1
- package/dist/types/getIntlayerAPI/auth.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/dictionary.d.ts +1 -1
- package/dist/types/getIntlayerAPI/dictionary.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/index.d.ts +65 -65
- package/dist/types/getIntlayerAPI/newsletter.d.ts +1 -1
- package/dist/types/getIntlayerAPI/newsletter.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/organization.d.ts +1 -1
- package/dist/types/getIntlayerAPI/organization.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/project.d.ts +1 -1
- package/dist/types/getIntlayerAPI/project.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/search.d.ts +1 -1
- package/dist/types/getIntlayerAPI/search.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/stripe.d.ts +1 -1
- package/dist/types/getIntlayerAPI/stripe.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/tag.d.ts +1 -1
- package/dist/types/getIntlayerAPI/tag.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/user.d.ts +1 -1
- package/dist/types/getIntlayerAPI/user.d.ts.map +1 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -5,15 +5,48 @@
|
|
|
5
5
|
</div>
|
|
6
6
|
|
|
7
7
|
<div align="center">
|
|
8
|
-
<a href="https://www.npmjs.com/package/intlayer"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
<a href="https://www.npmjs.com/package/intlayer" target="blank"><img
|
|
9
|
+
align="center"
|
|
10
|
+
alt="npm"
|
|
11
|
+
src="https://img.shields.io/npm/v/intlayer.svg?labelColor=49516F&color=8994BC&style=for-the-badge"
|
|
12
|
+
height="30" /></a>
|
|
13
|
+
<a href="https://npmjs.org/package/intlayer" target="blank"><img
|
|
14
|
+
align="center"
|
|
15
|
+
src="https://img.shields.io/npm/dm/intlayer?labelColor=49516F&color=8994BC&style=for-the-badge"
|
|
16
|
+
alt="monthly downloads"
|
|
17
|
+
height="30"
|
|
18
|
+
/></a>
|
|
19
|
+
<a href="https://npmjs.org/package/intlayer" target="blank"><img
|
|
20
|
+
align="center"
|
|
21
|
+
src="https://img.shields.io/npm/types/intlayer?label=types%20included&labelColor=49516F&color=8994BC&style=for-the-badge"
|
|
22
|
+
alt="types included"
|
|
23
|
+
height="30"
|
|
24
|
+
/></a>
|
|
25
|
+
</div>
|
|
26
|
+
|
|
27
|
+
<div>
|
|
28
|
+
<br/>
|
|
29
|
+
<p align="center">
|
|
30
|
+
<a href="https://www.linkedin.com/company/intlayerorg" target="blank"><img align="center"
|
|
31
|
+
src="https://img.shields.io/badge/linkedin-%231DA1F2.svg?style=for-the-badge&logo=linkedin&logoColor=white"
|
|
32
|
+
alt="Intlayer LinkedIn" height="30"/></a>
|
|
33
|
+
<a href="https://www.facebook.com/intlayer" target="blank"><img align="center"
|
|
34
|
+
src="https://img.shields.io/badge/facebook-4267B2.svg?style=for-the-badge&logo=facebook&logoColor=white"
|
|
35
|
+
alt="Intlayer Facebook" height="30"/></a>
|
|
36
|
+
<a href="https://www.instagram.com/intlayer_org/" target="blank"><img align="center"
|
|
37
|
+
src="https://img.shields.io/badge/instagram-%23E4405F.svg?style=for-the-badge&logo=Instagram&logoColor=white"
|
|
38
|
+
alt="Intlayer Instagram" height="30"/></a>
|
|
39
|
+
<a href="https://x.com/Intlayer183096" target="blank"><img align="center"
|
|
40
|
+
src="https://img.shields.io/badge/x-1DA1F2.svg?style=for-the-badge&logo=x&logoColor=white"
|
|
41
|
+
alt="Intlayer X" height="30"/></a>
|
|
42
|
+
<a href="https://www.youtube.com/@intlayer" target="blank"><img align="center"
|
|
43
|
+
src="https://img.shields.io/badge/youtube-FF0000.svg?style=for-the-badge&logo=youtube&logoColor=white"
|
|
44
|
+
alt="Intlayer YouTube" height="30"/></a>
|
|
45
|
+
<a href="https://www.tiktok.com/@intlayer" target="blank"><img align="center"
|
|
46
|
+
src="https://img.shields.io/badge/tiktok-000000.svg?style=for-the-badge&logo=tiktok&logoColor=white"
|
|
47
|
+
alt="Intlayer TikTok" height="30"/></a>
|
|
48
|
+
<br>
|
|
49
|
+
</p>
|
|
17
50
|
</div>
|
|
18
51
|
|
|
19
52
|
# @intlayer/api: interact with Intlayer API
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AskDocQuestionResult, AuditContentDeclarationBody, AuditContentDeclarationFieldBody,
|
|
1
|
+
import type { AskDocQuestionResult, AuditContentDeclarationBody, AuditContentDeclarationFieldBody, AuditContentDeclarationMetadataBody, AuditTagBody, AutocompleteBody, ChatCompletionRequestMessage, TranslateJSONBody } from '../types';
|
|
2
2
|
import type { IntlayerConfig } from '@intlayer/config/client';
|
|
3
3
|
import { type FetcherOptions } from '../fetcher';
|
|
4
4
|
export type AskDocQuestionBody = {
|
|
@@ -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,
|
|
1
|
+
{"version":3,"file":"ai.d.ts","sourceRoot":"","sources":["../../../src/getIntlayerAPI/ai.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,2BAA2B,EAC3B,gCAAgC,EAEhC,mCAAmC,EAGnC,YAAY,EAEZ,gBAAgB,EAEhB,4BAA4B,EAC5B,iBAAiB,EAElB,MAAM,UAAU,CAAC;AAGlB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,EAAW,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAE1D,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,EAAE,4BAA4B,EAAE,CAAC;IACzC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,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;2BAmBtB,iBAAiB,iBACV,cAAc;qCAkBrB,2BAA2B,iBACpB,cAAc;0CAkBrB,gCAAgC,iBACzB,cAAc;6CAkBrB,mCAAmC,iBAC5B,cAAc;sBAkBrB,YAAY,iBACL,cAAc;4BAgCrB,kBAAkB,iBACX,cAAc;0BAgErB,gBAAgB,iBACT,cAAc;CAqB/B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IntlayerConfig } from '@intlayer/config/client';
|
|
2
|
-
import type { AskResetPasswordBody,
|
|
2
|
+
import type { AskResetPasswordBody, CreateSessionBody, DefinePasswordBody, GetSessionInformationQuery, GithubLoginQueryParams, GoogleLoginQueryParams, LoginBody, RegisterBody, RegisterQuery, UpdatePasswordBody, UserAPI, ValidEmailParams } from '../types';
|
|
3
3
|
import { type FetcherOptions } from '../fetcher';
|
|
4
4
|
export declare const getAuthAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
5
5
|
login: (user: LoginBody, otherOptions?: FetcherOptions) => Promise<LoginResult>;
|
|
@@ -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,KAAK,EACV,oBAAoB,
|
|
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,EACV,oBAAoB,EAGpB,iBAAiB,EAEjB,kBAAkB,EAIlB,0BAA0B,EAE1B,sBAAsB,EACtB,sBAAsB,EACtB,SAAS,EAET,YAAY,EACZ,aAAa,EAGb,kBAAkB,EAElB,OAAO,EACP,gBAAgB,EAEjB,MAAM,UAAU,CAAC;AAElB,OAAO,EAAW,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAE1D,eAAO,MAAM,UAAU,GACrB,iBAAgB,cAAmB,EACnC,iBAAiB,cAAc;kBAkBJ,SAAS,iBAAgB,cAAc;oCAgB3B,sBAAsB,KAAG,MAAM;oCAW/B,sBAAsB,KAAG,MAAM;qBAY9D,YAAY,UACX,aAAa,iBACN,cAAc;4BAiBM,cAAc;8BAmC1C,kBAAkB,iBACV,cAAc;8BApBrB,oBAAoB,CAAC,OAAO,CAAC,iBACtB,cAAc;4CAuDsB,cAAc;sCAgB5C,gBAAgB,iBACtB,cAAc;sCAgBW,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC;2BAnDxD,kBAAkB,iBACV,cAAc;0BA2DtB,iBAAiB,iBACT,cAAc;gCAmBb,0BAA0B,CAAC,eAAe,CAAC,iBAC5C,cAAc;kCAcY,cAAc;0CAWN,cAAc;CAmCjE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IntlayerConfig } from '@intlayer/config/client';
|
|
2
|
-
import type { AddDictionaryBody,
|
|
2
|
+
import type { AddDictionaryBody, DeleteDictionaryParam, GetDictionariesParams, GetDictionaryParams, GetDictionaryQuery, PushDictionariesBody, UpdateDictionaryBody, UpdateDictionaryParam } from '../types';
|
|
3
3
|
import { type FetcherOptions } from '../fetcher';
|
|
4
4
|
export declare const getDictionaryAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
5
5
|
getDictionaries: (filters?: GetDictionariesParams, otherOptions?: FetcherOptions) => Promise<GetDictionariesResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dictionary.d.ts","sourceRoot":"","sources":["../../../src/getIntlayerAPI/dictionary.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EACV,iBAAiB,
|
|
1
|
+
{"version":3,"file":"dictionary.d.ts","sourceRoot":"","sources":["../../../src/getIntlayerAPI/dictionary.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EACV,iBAAiB,EAEjB,qBAAqB,EAGrB,qBAAqB,EAErB,mBAAmB,EACnB,kBAAkB,EAElB,oBAAoB,EAEpB,oBAAoB,EACpB,qBAAqB,EAEtB,MAAM,UAAU,CAAC;AAElB,OAAO,EAAW,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAE1D,eAAO,MAAM,gBAAgB,GAC3B,iBAAgB,cAAmB,EACnC,iBAAiB,cAAc;gCAkBnB,qBAAqB,iBACjB,cAAc;yCAcmB,cAAc;mCAa9C,mBAAmB,CAAC,eAAe,CAAC,YACzC,kBAAkB,CAAC,SAAS,CAAC,iBACzB,cAAc;qCA8Bd,oBAAoB,CAAC,cAAc,CAAC,iBACpC,cAAc;0BAftB,iBAAiB,iBACT,cAAc;qCA+Bd,qBAAqB,CAAC,cAAc,CAAC,cACvC,oBAAoB,iBAClB,cAAc;2BAiBxB,qBAAqB,CAAC,cAAc,CAAC,iBAC3B,cAAc;CAoB/B,CAAC"}
|
|
@@ -2,86 +2,86 @@ import type { IntlayerConfig } from '@intlayer/config/client';
|
|
|
2
2
|
import type { FetcherOptions } from '../fetcher';
|
|
3
3
|
export declare const getIntlayerAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
4
4
|
organization: {
|
|
5
|
-
getOrganizations: (filters?:
|
|
6
|
-
getOrganization: (organizationId:
|
|
7
|
-
addOrganization: (organization:
|
|
8
|
-
addOrganizationMember: (body:
|
|
9
|
-
updateOrganization: (organization:
|
|
10
|
-
updateOrganizationMembers: (body:
|
|
11
|
-
deleteOrganization: (otherOptions?: FetcherOptions) => Promise<
|
|
12
|
-
selectOrganization: (organizationId:
|
|
13
|
-
unselectOrganization: (otherOptions?: FetcherOptions) => Promise<
|
|
5
|
+
getOrganizations: (filters?: GetOrganizationsParams, otherOptions?: FetcherOptions) => Promise<GetOrganizationsResult>;
|
|
6
|
+
getOrganization: (organizationId: GetOrganizationParam, otherOptions?: FetcherOptions) => Promise<GetOrganizationResult>;
|
|
7
|
+
addOrganization: (organization: AddOrganizationBody, otherOptions?: FetcherOptions) => Promise<AddOrganizationResult>;
|
|
8
|
+
addOrganizationMember: (body: AddOrganizationMemberBody, otherOptions?: FetcherOptions) => Promise<AddOrganizationMemberResult>;
|
|
9
|
+
updateOrganization: (organization: UpdateOrganizationBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationResult>;
|
|
10
|
+
updateOrganizationMembers: (body: UpdateOrganizationMembersBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationMembersResult>;
|
|
11
|
+
deleteOrganization: (otherOptions?: FetcherOptions) => Promise<DeleteOrganizationResult>;
|
|
12
|
+
selectOrganization: (organizationId: SelectOrganizationParam, otherOptions?: FetcherOptions) => Promise<SelectOrganizationResult>;
|
|
13
|
+
unselectOrganization: (otherOptions?: FetcherOptions) => Promise<UnselectOrganizationResult>;
|
|
14
14
|
};
|
|
15
15
|
project: {
|
|
16
|
-
getProjects: (filters?:
|
|
17
|
-
addProject: (project:
|
|
18
|
-
updateProject: (project:
|
|
19
|
-
updateProjectMembers: (body:
|
|
20
|
-
pushProjectConfiguration: (projectConfiguration:
|
|
21
|
-
deleteProject: (otherOptions?: FetcherOptions) => Promise<
|
|
22
|
-
selectProject: (projectId:
|
|
23
|
-
unselectProject: (otherOptions?: FetcherOptions) => Promise<
|
|
24
|
-
addNewAccessKey: (accessKey:
|
|
25
|
-
deleteAccessKey: (clientId:
|
|
26
|
-
refreshAccessKey: (clientId:
|
|
16
|
+
getProjects: (filters?: GetProjectsParams, otherOptions?: FetcherOptions) => Promise<GetProjectsResult>;
|
|
17
|
+
addProject: (project: AddProjectBody, otherOptions?: FetcherOptions) => Promise<AddProjectResult>;
|
|
18
|
+
updateProject: (project: UpdateProjectBody, otherOptions?: FetcherOptions) => Promise<UpdateProjectResult>;
|
|
19
|
+
updateProjectMembers: (body: UpdateProjectMembersBody, otherOptions?: FetcherOptions) => Promise<UpdateProjectMembersResult>;
|
|
20
|
+
pushProjectConfiguration: (projectConfiguration: PushProjectConfigurationBody, otherOptions?: FetcherOptions) => Promise<PushProjectConfigurationResult>;
|
|
21
|
+
deleteProject: (otherOptions?: FetcherOptions) => Promise<DeleteProjectResult>;
|
|
22
|
+
selectProject: (projectId: SelectProjectParam, otherOptions?: FetcherOptions) => Promise<SelectProjectResult>;
|
|
23
|
+
unselectProject: (otherOptions?: FetcherOptions) => Promise<UnselectProjectResult>;
|
|
24
|
+
addNewAccessKey: (accessKey: AddNewAccessKeyBody, otherOptions?: FetcherOptions) => Promise<AddNewAccessKeyResponse>;
|
|
25
|
+
deleteAccessKey: (clientId: DeleteAccessKeyBody, otherOptions?: FetcherOptions) => Promise<DeleteAccessKeyResponse>;
|
|
26
|
+
refreshAccessKey: (clientId: RefreshAccessKeyBody, otherOptions?: FetcherOptions) => Promise<RefreshAccessKeyResponse>;
|
|
27
27
|
};
|
|
28
28
|
user: {
|
|
29
|
-
createUser: (user:
|
|
30
|
-
getUsers: (filters?:
|
|
31
|
-
getUserById: (userId:
|
|
32
|
-
getUserByAccount: (providerAccountId:
|
|
33
|
-
getUserByEmail: (email:
|
|
34
|
-
updateUser: (user:
|
|
35
|
-
deleteUser: (userId: string, otherOptions?: FetcherOptions) => Promise<
|
|
29
|
+
createUser: (user: CreateUserBody, otherOptions?: FetcherOptions) => Promise<CreateUserResult>;
|
|
30
|
+
getUsers: (filters?: GetUsersParams, otherOptions?: FetcherOptions) => Promise<GetUsersResult>;
|
|
31
|
+
getUserById: (userId: GetUserByIdParams, otherOptions?: FetcherOptions) => Promise<GetUserByIdResult>;
|
|
32
|
+
getUserByAccount: (providerAccountId: GetUserByAccountParams, provider: GetUserByAccountParams, otherOptions?: FetcherOptions) => Promise<GetUserByAccountResult>;
|
|
33
|
+
getUserByEmail: (email: GetUserByEmailParams, otherOptions?: FetcherOptions) => Promise<GetUserByEmailResult>;
|
|
34
|
+
updateUser: (user: UpdateUserBody, otherOptions?: FetcherOptions) => Promise<UpdateUserResult>;
|
|
35
|
+
deleteUser: (userId: string, otherOptions?: FetcherOptions) => Promise<UpdateUserResult>;
|
|
36
36
|
};
|
|
37
37
|
auth: {
|
|
38
|
-
login: (user:
|
|
39
|
-
getLoginWithGitHubURL: (params:
|
|
40
|
-
getLoginWithGoogleURL: (params:
|
|
41
|
-
register: (user:
|
|
38
|
+
login: (user: LoginBody, otherOptions?: FetcherOptions) => Promise<LoginResult>;
|
|
39
|
+
getLoginWithGitHubURL: (params: GithubLoginQueryParams) => string;
|
|
40
|
+
getLoginWithGoogleURL: (params: GoogleLoginQueryParams) => string;
|
|
41
|
+
register: (user: RegisterBody, query?: RegisterQuery, otherOptions?: FetcherOptions) => Promise<RegisterResult>;
|
|
42
42
|
logout: (otherOptions?: FetcherOptions) => Promise<void>;
|
|
43
|
-
defineNewPassword: (data:
|
|
44
|
-
askResetPassword: (email:
|
|
45
|
-
checkIfUserHasPassword: (otherOptions?: FetcherOptions) => Promise<
|
|
46
|
-
verifyEmail: ({ userId, secret }:
|
|
47
|
-
getVerifyEmailStatusURL: (userId: string |
|
|
48
|
-
changePassword: (data:
|
|
49
|
-
createSession: (data:
|
|
50
|
-
getSession: (sessionToken?:
|
|
51
|
-
getCSRFToken: (otherOptions?: FetcherOptions) => Promise<
|
|
52
|
-
getOAuth2AccessToken: (otherOptions?: FetcherOptions) => Promise<
|
|
43
|
+
defineNewPassword: (data: DefinePasswordBody, otherOptions?: FetcherOptions) => Promise<DefinePasswordResult>;
|
|
44
|
+
askResetPassword: (email: AskResetPasswordBody, otherOptions?: FetcherOptions) => Promise<AskResetPasswordResult>;
|
|
45
|
+
checkIfUserHasPassword: (otherOptions?: FetcherOptions) => Promise<CheckIfUserHasPasswordResult>;
|
|
46
|
+
verifyEmail: ({ userId, secret }: ValidEmailParams, otherOptions?: FetcherOptions) => Promise<ValidEmailResult>;
|
|
47
|
+
getVerifyEmailStatusURL: (userId: string | UserAPI) => string;
|
|
48
|
+
changePassword: (data: UpdatePasswordBody, otherOptions?: FetcherOptions) => Promise<UpdatePasswordResult>;
|
|
49
|
+
createSession: (data: CreateSessionBody, otherOptions?: FetcherOptions) => Promise<CreateSessionResult>;
|
|
50
|
+
getSession: (sessionToken?: GetSessionInformationQuery, otherOptions?: FetcherOptions) => Promise<GetSessionInformationResult>;
|
|
51
|
+
getCSRFToken: (otherOptions?: FetcherOptions) => Promise<SetCSRFTokenResult>;
|
|
52
|
+
getOAuth2AccessToken: (otherOptions?: FetcherOptions) => Promise<GetOAuth2TokenResult>;
|
|
53
53
|
};
|
|
54
54
|
dictionary: {
|
|
55
|
-
getDictionaries: (filters?:
|
|
56
|
-
getDictionariesKeys: (otherOptions?: FetcherOptions) => Promise<
|
|
57
|
-
getDictionary: (dictionaryKey:
|
|
58
|
-
pushDictionaries: (dictionaries:
|
|
59
|
-
addDictionary: (body:
|
|
60
|
-
updateDictionary: (dictionaryId:
|
|
61
|
-
deleteDictionary: (id:
|
|
55
|
+
getDictionaries: (filters?: GetDictionariesParams, otherOptions?: FetcherOptions) => Promise<GetDictionariesResult>;
|
|
56
|
+
getDictionariesKeys: (otherOptions?: FetcherOptions) => Promise<GetDictionariesKeysResult>;
|
|
57
|
+
getDictionary: (dictionaryKey: GetDictionaryParams, version?: GetDictionaryQuery, otherOptions?: FetcherOptions) => Promise<GetDictionaryResult>;
|
|
58
|
+
pushDictionaries: (dictionaries: PushDictionariesBody, otherOptions?: FetcherOptions) => Promise<PushDictionariesResult>;
|
|
59
|
+
addDictionary: (body: AddDictionaryBody, otherOptions?: FetcherOptions) => Promise<AddDictionaryResult>;
|
|
60
|
+
updateDictionary: (dictionaryId: UpdateDictionaryParam, dictionary: UpdateDictionaryBody, otherOptions?: FetcherOptions) => Promise<UpdateDictionaryResult>;
|
|
61
|
+
deleteDictionary: (id: DeleteDictionaryParam, otherOptions?: FetcherOptions) => Promise<DeleteDictionaryResult>;
|
|
62
62
|
};
|
|
63
63
|
stripe: {
|
|
64
|
-
getPricing: (body?:
|
|
65
|
-
getSubscription: (body?:
|
|
66
|
-
cancelSubscription: (otherOptions?: FetcherOptions) => Promise<
|
|
64
|
+
getPricing: (body?: GetPricingBody, otherOptions?: FetcherOptions) => Promise<GetPricingResult>;
|
|
65
|
+
getSubscription: (body?: GetCheckoutSessionBody, otherOptions?: FetcherOptions) => Promise<GetCheckoutSessionResult>;
|
|
66
|
+
cancelSubscription: (otherOptions?: FetcherOptions) => Promise<GetCheckoutSessionResult>;
|
|
67
67
|
};
|
|
68
68
|
ai: {
|
|
69
|
-
translateJSON: (body?:
|
|
70
|
-
auditContentDeclaration: (body?:
|
|
71
|
-
auditContentDeclarationField: (body?:
|
|
72
|
-
auditContentDeclarationMetadata: (body?:
|
|
73
|
-
auditTag: (body?:
|
|
69
|
+
translateJSON: (body?: TranslateJSONBody, otherOptions?: FetcherOptions) => Promise<TranslateJSONResult>;
|
|
70
|
+
auditContentDeclaration: (body?: AuditContentDeclarationBody, otherOptions?: FetcherOptions) => Promise<AuditContentDeclarationResult>;
|
|
71
|
+
auditContentDeclarationField: (body?: AuditContentDeclarationFieldBody, otherOptions?: FetcherOptions) => Promise<AuditContentDeclarationFieldResult>;
|
|
72
|
+
auditContentDeclarationMetadata: (body?: AuditContentDeclarationMetadataBody, otherOptions?: FetcherOptions) => Promise<AuditContentDeclarationMetadataResult>;
|
|
73
|
+
auditTag: (body?: AuditTagBody, otherOptions?: FetcherOptions) => Promise<AuditTagResult>;
|
|
74
74
|
askDocQuestion: (body?: import("./ai").AskDocQuestionBody, otherOptions?: FetcherOptions) => Promise<void>;
|
|
75
|
-
autocomplete: (body?:
|
|
75
|
+
autocomplete: (body?: AutocompleteBody, otherOptions?: FetcherOptions) => Promise<AutocompleteResponse>;
|
|
76
76
|
};
|
|
77
77
|
tag: {
|
|
78
|
-
getTags: (filters?:
|
|
79
|
-
addTag: (tag:
|
|
80
|
-
updateTag: (tagId:
|
|
81
|
-
deleteTag: (tagId:
|
|
78
|
+
getTags: (filters?: GetTagsParams, otherOptions?: FetcherOptions) => Promise<GetTagsResult>;
|
|
79
|
+
addTag: (tag: AddTagBody, otherOptions?: FetcherOptions) => Promise<AddTagResult>;
|
|
80
|
+
updateTag: (tagId: UpdateTagParams, tag: UpdateTagBody, otherOptions?: FetcherOptions) => Promise<UpdateTagResult>;
|
|
81
|
+
deleteTag: (tagId: DeleteTagParams, otherOptions?: FetcherOptions) => Promise<DeleteTagResult>;
|
|
82
82
|
};
|
|
83
83
|
search: {
|
|
84
|
-
searchDoc: (params?:
|
|
84
|
+
searchDoc: (params?: SearchDocUtilParams, otherOptions?: FetcherOptions) => Promise<SearchDocUtilResult>;
|
|
85
85
|
};
|
|
86
86
|
editor: {
|
|
87
87
|
getDictionaries: (otherOptions?: FetcherOptions) => Promise<Record<string, any>>;
|
|
@@ -89,9 +89,9 @@ export declare const getIntlayerAPI: (authAPIOptions?: FetcherOptions, intlayerC
|
|
|
89
89
|
writeDictionary: (dictionary: import("intlayer-editor").WriteContentDeclarationBody, otherOptions?: FetcherOptions) => Promise<import("intlayer-editor").WriteContentDeclarationResult>;
|
|
90
90
|
};
|
|
91
91
|
newsletter: {
|
|
92
|
-
subscribeToNewsletter: (body:
|
|
93
|
-
unsubscribeFromNewsletter: (body:
|
|
94
|
-
getNewsletterStatus: (otherOptions?: FetcherOptions) => Promise<
|
|
92
|
+
subscribeToNewsletter: (body: NewsletterSubscriptionBody, otherOptions?: FetcherOptions) => Promise<NewsletterSubscriptionResult>;
|
|
93
|
+
unsubscribeFromNewsletter: (body: NewsletterUnsubscriptionBody, otherOptions?: FetcherOptions) => Promise<NewsletterSubscriptionResult>;
|
|
94
|
+
getNewsletterStatus: (otherOptions?: FetcherOptions) => Promise<NewsletterSubscriptionResult>;
|
|
95
95
|
};
|
|
96
96
|
};
|
|
97
97
|
export type IntlayerAPI = ReturnType<typeof getIntlayerAPI>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IntlayerConfig } from '@intlayer/config/client';
|
|
2
|
-
import type { NewsletterSubscriptionBody,
|
|
2
|
+
import type { NewsletterSubscriptionBody, NewsletterUnsubscriptionBody } from '../types';
|
|
3
3
|
import { type FetcherOptions } from '../fetcher';
|
|
4
4
|
export declare const getNewsletterAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
5
5
|
subscribeToNewsletter: (body: NewsletterSubscriptionBody, otherOptions?: FetcherOptions) => Promise<NewsletterSubscriptionResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"newsletter.d.ts","sourceRoot":"","sources":["../../../src/getIntlayerAPI/newsletter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EACV,0BAA0B,
|
|
1
|
+
{"version":3,"file":"newsletter.d.ts","sourceRoot":"","sources":["../../../src/getIntlayerAPI/newsletter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EACV,0BAA0B,EAE1B,4BAA4B,EAC7B,MAAM,UAAU,CAAC;AAElB,OAAO,EAAW,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAE1D,eAAO,MAAM,gBAAgB,GAC3B,iBAAgB,cAAmB,EACnC,iBAAiB,cAAc;kCAmBvB,0BAA0B,iBAClB,cAAc;sCAkBtB,4BAA4B,iBACpB,cAAc;yCAgBmB,cAAc;CAehE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IntlayerConfig } from '@intlayer/config/client';
|
|
2
|
-
import type { AddOrganizationBody, AddOrganizationMemberBody,
|
|
2
|
+
import type { AddOrganizationBody, AddOrganizationMemberBody, GetOrganizationParam, GetOrganizationsParams, SelectOrganizationParam, UpdateOrganizationBody, UpdateOrganizationMembersBody } from '../types';
|
|
3
3
|
import { type FetcherOptions } from '../fetcher';
|
|
4
4
|
export declare const getOrganizationAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
5
5
|
getOrganizations: (filters?: GetOrganizationsParams, otherOptions?: FetcherOptions) => Promise<GetOrganizationsResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../../../src/getIntlayerAPI/organization.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EACV,mBAAmB,EACnB,yBAAyB,
|
|
1
|
+
{"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../../../src/getIntlayerAPI/organization.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EACV,mBAAmB,EACnB,yBAAyB,EAIzB,oBAAoB,EAEpB,sBAAsB,EAEtB,uBAAuB,EAGvB,sBAAsB,EACtB,6BAA6B,EAG9B,MAAM,UAAU,CAAC;AAElB,OAAO,EAAW,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAE1D,eAAO,MAAM,kBAAkB,GAC7B,iBAAgB,cAAmB,EACnC,iBAAiB,cAAc;iCAkBnB,sBAAsB,iBAClB,cAAc;sCAgBZ,oBAAoB,CAAC,gBAAgB,CAAC,iBACxC,cAAc;oCAad,mBAAmB,iBACnB,cAAc;kCAqDtB,yBAAyB,iBACjB,cAAc;uCArCd,sBAAsB,iBACtB,cAAc;sCAiBtB,6BAA6B,iBACrB,cAAc;wCAkCkB,cAAc;yCAe5C,uBAAuB,CAAC,gBAAgB,CAAC,iBAC3C,cAAc;0CAeoB,cAAc;CAqBjE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IntlayerConfig } from '@intlayer/config/client';
|
|
2
|
-
import type { AddNewAccessKeyBody,
|
|
2
|
+
import type { AddNewAccessKeyBody, AddProjectBody, DeleteAccessKeyBody, GetProjectsParams, PushProjectConfigurationBody, RefreshAccessKeyBody, SelectProjectParam, UpdateProjectBody, UpdateProjectMembersBody } from '../types';
|
|
3
3
|
import { type FetcherOptions } from '../fetcher';
|
|
4
4
|
export declare const getProjectAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
5
5
|
getProjects: (filters?: GetProjectsParams, otherOptions?: FetcherOptions) => Promise<GetProjectsResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../../src/getIntlayerAPI/project.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EACV,mBAAmB,
|
|
1
|
+
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../../src/getIntlayerAPI/project.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EACV,mBAAmB,EAEnB,cAAc,EAEd,mBAAmB,EAGnB,iBAAiB,EAEjB,4BAA4B,EAE5B,oBAAoB,EAEpB,kBAAkB,EAGlB,iBAAiB,EACjB,wBAAwB,EAGzB,MAAM,UAAU,CAAC;AAElB,OAAO,EAAW,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAE1D,eAAO,MAAM,aAAa,GACxB,iBAAgB,cAAmB,EACnC,iBAAiB,cAAc;4BAkBnB,iBAAiB,iBACb,cAAc;0BAgBnB,cAAc,iBACT,cAAc;6BAiBnB,iBAAiB,iBACZ,cAAc;iCAiBtB,wBAAwB,iBAChB,cAAc;qDAgBN,4BAA4B,iBACpC,cAAc;mCAgBa,cAAc;+BAe5C,kBAAkB,CAAC,WAAW,CAAC,iBAC5B,cAAc;qCAee,cAAc;iCAiB9C,mBAAmB,iBAChB,cAAc;gCAmBlB,mBAAmB,CAAC,UAAU,CAAC,iBAC3B,cAAc;iCAmBlB,oBAAoB,CAAC,UAAU,CAAC,iBAC5B,cAAc;CAyB/B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SearchDocUtilParams
|
|
1
|
+
import type { SearchDocUtilParams } from '../types';
|
|
2
2
|
import type { IntlayerConfig } from '@intlayer/config/client';
|
|
3
3
|
import { type FetcherOptions } from '../fetcher';
|
|
4
4
|
export declare const getSearchAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../src/getIntlayerAPI/search.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../src/getIntlayerAPI/search.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAuB,MAAM,UAAU,CAAC;AAGzE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,EAAW,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAE1D,eAAO,MAAM,YAAY,GACvB,iBAAgB,cAAmB,EACnC,iBAAiB,cAAc;yBAmBpB,mBAAmB,iBACd,cAAc;CAe/B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IntlayerConfig } from '@intlayer/config/client';
|
|
2
|
-
import type { GetCheckoutSessionBody,
|
|
2
|
+
import type { GetCheckoutSessionBody, GetPricingBody } from '../types';
|
|
3
3
|
import { type FetcherOptions } from '../fetcher';
|
|
4
4
|
export declare const getStripeAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
5
5
|
getPricing: (body?: GetPricingBody, otherOptions?: FetcherOptions) => Promise<GetPricingResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stripe.d.ts","sourceRoot":"","sources":["../../../src/getIntlayerAPI/stripe.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EACV,sBAAsB,
|
|
1
|
+
{"version":3,"file":"stripe.d.ts","sourceRoot":"","sources":["../../../src/getIntlayerAPI/stripe.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EACV,sBAAsB,EAEtB,cAAc,EAEf,MAAM,UAAU,CAAC;AAElB,OAAO,EAAW,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAE1D,eAAO,MAAM,YAAY,GACvB,iBAAgB,cAAmB,EACnC,iBAAiB,cAAc;wBAkBtB,cAAc,iBACP,cAAc;6BAiBrB,sBAAsB,iBACf,cAAc;wCAgBkB,cAAc;CAe/D,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IntlayerConfig } from '@intlayer/config/client';
|
|
2
|
-
import type { AddTagBody,
|
|
2
|
+
import type { AddTagBody, DeleteTagParams, GetTagsParams, UpdateTagBody, UpdateTagParams } from '../types';
|
|
3
3
|
import { type FetcherOptions } from '../fetcher';
|
|
4
4
|
export declare const getTagAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
5
5
|
getTags: (filters?: GetTagsParams, otherOptions?: FetcherOptions) => Promise<GetTagsResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../src/getIntlayerAPI/tag.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EACV,UAAU,
|
|
1
|
+
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../src/getIntlayerAPI/tag.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EACV,UAAU,EAEV,eAAe,EAEf,aAAa,EAEb,aAAa,EACb,eAAe,EAEhB,MAAM,UAAU,CAAC;AAElB,OAAO,EAAW,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAE1D,eAAO,MAAM,SAAS,GACpB,iBAAgB,cAAmB,EACnC,iBAAiB,cAAc;wBAkBnB,aAAa,iBACT,cAAc;kBAeH,UAAU,iBAAgB,cAAc;uBAgB1D,eAAe,CAAC,OAAO,CAAC,OAC1B,aAAa,iBACJ,cAAc;uBAiBrB,eAAe,CAAC,OAAO,CAAC,iBAEjB,cAAc;CAiB/B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type IntlayerConfig } from '@intlayer/config/client';
|
|
2
|
-
import type { CreateUserBody,
|
|
2
|
+
import type { CreateUserBody, GetUserByAccountParams, GetUserByEmailParams, GetUserByIdParams, GetUsersParams, UpdateUserBody } 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>;
|
|
@@ -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,
|
|
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,EAEd,sBAAsB,EAEtB,oBAAoB,EAEpB,iBAAiB,EAEjB,cAAc,EAEd,cAAc,EAEf,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;CAoB/B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/api",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.10",
|
|
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,7 @@
|
|
|
58
58
|
"./package.json"
|
|
59
59
|
],
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@intlayer/config": "5.5.
|
|
61
|
+
"@intlayer/config": "5.5.10"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@changesets/changelog-github": "0.5.1",
|
|
@@ -72,15 +72,15 @@
|
|
|
72
72
|
"tsc-alias": "^1.8.16",
|
|
73
73
|
"tsup": "^8.5.0",
|
|
74
74
|
"typescript": "^5.8.3",
|
|
75
|
-
"@intlayer/backend": "5.5.9",
|
|
76
|
-
"@utils/eslint-config": "1.0.4",
|
|
77
|
-
"@utils/ts-config": "1.0.4",
|
|
78
75
|
"@utils/ts-config-types": "1.0.4",
|
|
76
|
+
"@utils/ts-config": "1.0.4",
|
|
79
77
|
"@utils/tsup-config": "1.0.4",
|
|
80
|
-
"intlayer
|
|
78
|
+
"@intlayer/backend": "5.5.10",
|
|
79
|
+
"@utils/eslint-config": "1.0.4",
|
|
80
|
+
"intlayer-editor": "5.5.10"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
|
-
"@intlayer/config": "5.5.
|
|
83
|
+
"@intlayer/config": "5.5.10"
|
|
84
84
|
},
|
|
85
85
|
"engines": {
|
|
86
86
|
"node": ">=14.18"
|