@intlayer/api 8.1.6 → 8.1.8
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 +37 -28
- package/dist/cjs/distantDictionary/fetchDistantDictionaries.cjs.map +1 -1
- package/dist/cjs/distantDictionary/fetchDistantDictionary.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/ai.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/dictionary.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/editor.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/index.cjs +1 -1
- package/dist/cjs/getIntlayerAPI/index.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/newsletter.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/oAuth.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/organization.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/project.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/search.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/stripe.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/tag.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/user.cjs.map +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/esm/distantDictionary/fetchDistantDictionaries.mjs.map +1 -1
- package/dist/esm/distantDictionary/fetchDistantDictionary.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/ai.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/dictionary.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/editor.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/index.mjs +1 -1
- package/dist/esm/getIntlayerAPI/index.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/newsletter.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/oAuth.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/organization.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/project.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/search.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/stripe.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/tag.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/user.mjs.map +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/types/@intlayer/unmerged-dictionaries-entry/dist/types/index.d.ts +8 -0
- package/dist/types/@intlayer/unmerged-dictionaries-entry/dist/types/index.d.ts.map +1 -0
- package/dist/types/distantDictionary/fetchDistantDictionaries.d.ts +1 -1
- package/dist/types/distantDictionary/fetchDistantDictionary.d.ts +1 -1
- package/dist/types/getIntlayerAPI/ai.d.ts +9 -2
- package/dist/types/getIntlayerAPI/ai.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/dictionary.d.ts +1 -1
- package/dist/types/getIntlayerAPI/editor.d.ts +3 -1
- package/dist/types/getIntlayerAPI/editor.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/index.d.ts +0 -2
- package/dist/types/getIntlayerAPI/index.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/newsletter.d.ts +1 -1
- package/dist/types/getIntlayerAPI/oAuth.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/organization.d.ts +1 -1
- package/dist/types/getIntlayerAPI/project.d.ts +3 -3
- 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/tag.d.ts +1 -1
- package/dist/types/getIntlayerAPI/user.d.ts +6 -2
- package/dist/types/getIntlayerAPI/user.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -4
- package/dist/types/intlayer-editor/server/dist/controllers/configuration.controller.d.ts +12 -0
- package/dist/types/intlayer-editor/server/dist/controllers/configuration.controller.d.ts.map +1 -0
- package/dist/types/intlayer-editor/server/dist/controllers/dictionary.controller.d.ts +25 -0
- package/dist/types/intlayer-editor/server/dist/controllers/dictionary.controller.d.ts.map +1 -0
- package/dist/types/intlayer-editor/server/dist/export.d.ts +2 -0
- package/dist/types/intlayer-editor/server/dist/utils/httpStatusCodes.d.ts +408 -0
- package/dist/types/intlayer-editor/server/dist/utils/httpStatusCodes.d.ts.map +1 -0
- package/dist/types/intlayer-editor/server/dist/utils/responseData.d.ts +20 -0
- package/dist/types/intlayer-editor/server/dist/utils/responseData.d.ts.map +1 -0
- package/dist/types/types.d.ts +1 -14
- package/package.json +4 -17
- package/dist/cjs/getIntlayerAPI/audit.cjs +0 -2
- package/dist/cjs/getIntlayerAPI/audit.cjs.map +0 -1
- package/dist/esm/getIntlayerAPI/audit.mjs +0 -2
- package/dist/esm/getIntlayerAPI/audit.mjs.map +0 -1
- package/dist/types/getIntlayerAPI/audit.d.ts +0 -13
- package/dist/types/getIntlayerAPI/audit.d.ts.map +0 -1
- package/dist/types/types.d.ts.map +0 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { 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, CreateAuditBody, CreateAuditResult, CreateSessionBody, CreateSessionResult, CreateUserBody, CreateUserResult, CustomQueryBody, CustomQueryResult, DefinePasswordBody, DefinePasswordResult, DeleteAccessKeyBody, DeleteAccessKeyResponse, DeleteDictionaryParam, DeleteDictionaryResult, DeleteOrganizationResult, DeleteProjectResult, DeleteTagParams, DeleteTagResult, DictionaryAPI, GetAuditByIdParams, GetAuditByIdResult, GetAuditsParams, GetAuditsResult, GetCIConfigResult, GetCheckoutSessionBody, GetCheckoutSessionResult, GetConfigurationResult, GetDictionariesKeysResult, GetDictionariesParams, GetDictionariesResult, GetDictionariesUpdateTimestampResult, GetDictionaryParams, GetDictionaryQuery, GetDictionaryResult, GetDiscussionsParams, GetDiscussionsResult, GetEditorDictionariesResult, GetOAuth2TokenBody, GetOAuth2TokenResult, GetOrganizationParam, GetOrganizationResult, GetOrganizationSSOConfigBody, GetOrganizationSSOConfigResult, 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, ProjectConfigCI, PushCIConfigResult, PushDictionariesBody, PushDictionariesResult, PushProjectConfigurationBody, PushProjectConfigurationResult, RefreshAccessKeyBody, RefreshAccessKeyResponse, RegisterBody, RegisterQuery, RegisterResult, SearchDocUtilParams, SearchDocUtilResult, SelectOrganizationParam, SelectOrganizationResult, SelectProjectParam, SelectProjectResult, SetCSRFTokenResult, TranslateJSONBody, TranslateJSONResult, TriggerBuildResult, TriggerWebhookBody, TriggerWebhookResult, UnselectOrganizationResult, UnselectProjectResult, UpdateDictionaryBody, UpdateDictionaryParam, UpdateDictionaryResult, UpdateOrganizationBody, UpdateOrganizationMembersBody, UpdateOrganizationMembersResult, UpdateOrganizationResult, UpdatePasswordBody, UpdatePasswordResult, UpdateProjectBody, UpdateProjectMembersBody, UpdateProjectMembersResult, UpdateProjectResult, UpdateTagBody, UpdateTagParams, UpdateTagResult, UpdateUserBody, UpdateUserResult, UserAPI, ValidEmailParams, ValidEmailResult, Webhook, WriteContentDeclarationBody, WriteContentDeclarationResult } from "./types.js";
|
|
2
1
|
import { fetchDistantDictionaries } from "./distantDictionary/fetchDistantDictionaries.js";
|
|
3
2
|
import { fetchDistantDictionary } from "./distantDictionary/fetchDistantDictionary.js";
|
|
4
3
|
import "./distantDictionary/index.js";
|
|
5
4
|
import { FetcherOptions, fetcher, fetcherOptions } from "./fetcher.js";
|
|
6
|
-
import { AskDocQuestionBody, getAiAPI } from "./getIntlayerAPI/ai.js";
|
|
7
|
-
import { getAuditAPI } from "./getIntlayerAPI/audit.js";
|
|
5
|
+
import { AskDocQuestionBody, AskDocQuestionResult, AutocompleteBody, getAiAPI } from "./getIntlayerAPI/ai.js";
|
|
8
6
|
import { BitbucketAuthCallbackBody, BitbucketAuthCallbackResult, BitbucketCheckConfigBody, BitbucketCheckConfigResult, BitbucketGetAuthUrlResult, BitbucketGetConfigFileBody, BitbucketGetConfigFileResult, BitbucketListReposResult, BitbucketRepository, getBitbucketAPI } from "./getIntlayerAPI/bitbucket.js";
|
|
9
7
|
import { getDictionaryAPI } from "./getIntlayerAPI/dictionary.js";
|
|
10
8
|
import { getEditorAPI } from "./getIntlayerAPI/editor.js";
|
|
@@ -20,4 +18,4 @@ import { getTagAPI } from "./getIntlayerAPI/tag.js";
|
|
|
20
18
|
import { getUserAPI } from "./getIntlayerAPI/user.js";
|
|
21
19
|
import { IntlayerAPI, getIntlayerAPI } from "./getIntlayerAPI/index.js";
|
|
22
20
|
import { IntlayerAPIProxy, getIntlayerAPIProxy } from "./proxy.js";
|
|
23
|
-
export {
|
|
21
|
+
export { AskDocQuestionBody, AskDocQuestionResult, AutocompleteBody, BitbucketAuthCallbackBody, BitbucketAuthCallbackResult, BitbucketCheckConfigBody, BitbucketCheckConfigResult, BitbucketGetAuthUrlResult, BitbucketGetConfigFileBody, BitbucketGetConfigFileResult, BitbucketListReposResult, BitbucketRepository, FetcherOptions, GitHubAuthCallbackBody, GitHubAuthCallbackResult, GitHubCheckConfigBody, GitHubCheckConfigResult, GitHubGetAuthUrlResult, GitHubGetConfigFileBody, GitHubGetConfigFileResult, GitHubListReposResult, GitHubRepository, GitLabAuthCallbackBody, GitLabAuthCallbackResult, GitLabCheckConfigBody, GitLabCheckConfigResult, GitLabGetAuthUrlResult, GitLabGetConfigFileBody, GitLabGetConfigFileResult, GitLabListProjectsResult, GitLabProject, IntlayerAPI, IntlayerAPIProxy, fetchDistantDictionaries, fetchDistantDictionary, fetcher, fetcherOptions, getAiAPI, getBitbucketAPI, getDictionaryAPI, getEditorAPI, getGithubAPI, getGitlabAPI, getIntlayerAPI, getIntlayerAPIProxy, getNewsletterAPI, getOAuthAPI, getOrganizationAPI, getProjectAPI, getSearchAPI, getStripeAPI, getTagAPI, getUserAPI };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ResponseData } from "../utils/responseData.js";
|
|
2
|
+
import { IntlayerConfig } from "@intlayer/types";
|
|
3
|
+
|
|
4
|
+
//#region ../../intlayer-editor/server/dist/controllers/configuration.controller.d.ts
|
|
5
|
+
//#region src/controllers/configuration.controller.d.ts
|
|
6
|
+
type GetConfigurationResult = ResponseData<IntlayerConfig>;
|
|
7
|
+
/**
|
|
8
|
+
* Get the Intlayer configuration
|
|
9
|
+
*/
|
|
10
|
+
//#endregion
|
|
11
|
+
export { GetConfigurationResult };
|
|
12
|
+
//# sourceMappingURL=configuration.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configuration.controller.d.ts","names":["ResponseData","IntlayerConfig","FastifyReply","FastifyRequest","GetConfigurationResult","getConfiguration","Promise","_req","res"],"sources":["../../../../../../../../intlayer-editor/server/dist/controllers/configuration.controller.d.ts"],"mappings":";;;;;KAKKI,sBAAAA,GAAyBJ,YAAAA,CAAaC,cAAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ResponseData } from "../utils/responseData.js";
|
|
2
|
+
import { UnmergedDictionaries } from "../../../../@intlayer/unmerged-dictionaries-entry/dist/types/index.js";
|
|
3
|
+
import { Dictionary } from "@intlayer/types";
|
|
4
|
+
import { DictionaryStatus } from "@intlayer/chokidar/build";
|
|
5
|
+
|
|
6
|
+
//#region ../../intlayer-editor/server/dist/controllers/dictionary.controller.d.ts
|
|
7
|
+
//#region src/controllers/dictionary.controller.d.ts
|
|
8
|
+
type GetEditorDictionariesResult = ResponseData<UnmergedDictionaries>;
|
|
9
|
+
/**
|
|
10
|
+
* Get the Intlayer configuration
|
|
11
|
+
*/
|
|
12
|
+
type WriteContentDeclarationBody = {
|
|
13
|
+
dictionary: Dictionary;
|
|
14
|
+
};
|
|
15
|
+
type WriteContentDeclarationResultData = {
|
|
16
|
+
status: DictionaryStatus;
|
|
17
|
+
path: string;
|
|
18
|
+
};
|
|
19
|
+
type WriteContentDeclarationResult = ResponseData<WriteContentDeclarationResultData>;
|
|
20
|
+
/**
|
|
21
|
+
* Adds a new dictionary to the database.
|
|
22
|
+
*/
|
|
23
|
+
//#endregion
|
|
24
|
+
export { GetEditorDictionariesResult, WriteContentDeclarationBody, WriteContentDeclarationResult };
|
|
25
|
+
//# sourceMappingURL=dictionary.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dictionary.controller.d.ts","names":["ResponseData","Dictionary","FastifyReply","FastifyRequest","DictionaryStatus","UnmergedDictionaries","GetEditorDictionariesResult","getDictionaries","Promise","_req","res","WriteContentDeclarationBody","dictionary","WriteContentDeclarationResultData","status","path","WriteContentDeclarationResult","writeContentDeclaration","Body","req"],"sources":["../../../../../../../../intlayer-editor/server/dist/controllers/dictionary.controller.d.ts"],"mappings":";;;;;;;KAOKM,2BAAAA,GAA8BN,YAAAA,CAAaK,oBAAAA;;;;KAK3CM,2BAAAA;EACHC,UAAAA,EAAYX,UAAAA;AAAAA;AAAAA,KAETY,iCAAAA;EACHC,MAAAA,EAAQV,gBAAAA;EACRW,IAAAA;AAAAA;AAAAA,KAEGC,6BAAAA,GAAgChB,YAAAA,CAAaa,iCAAAA"}
|
|
@@ -0,0 +1,408 @@
|
|
|
1
|
+
//#region ../../intlayer-editor/server/dist/utils/httpStatusCodes.d.ts
|
|
2
|
+
//#region src/utils/httpStatusCodes.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Enum for HTTP response status codes.
|
|
5
|
+
* Contains all the possible HTTP response codes according to the standard.
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* 1xx: Informational responses
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* 100 - CONTINUE - The server has received the request headers and the client should proceed to send the request body.
|
|
12
|
+
*
|
|
13
|
+
* 101 - SWITCHING_PROTOCOLS - The requester has asked the server to switch protocols and the server has agreed to do so.
|
|
14
|
+
*
|
|
15
|
+
* 102 - PROCESSING - Used to return some response headers before final HTTP message.
|
|
16
|
+
*
|
|
17
|
+
* 103 - EARLY_HINTS - Early hints - part of optimization to improve page load time.
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
* 2xx: Successful responses
|
|
21
|
+
*
|
|
22
|
+
*
|
|
23
|
+
* 200 - OK - The request has succeeded.
|
|
24
|
+
*
|
|
25
|
+
* 201 - CREATED - The request has been fulfilled and has resulted in one or more new resources being created.
|
|
26
|
+
*
|
|
27
|
+
* 202 - ACCEPTED - The request has been accepted for processing, but the processing has not been completed.
|
|
28
|
+
*
|
|
29
|
+
* 203 - NON_AUTHORITATIVE_INFORMATION - The server successfully processed the request, but is returning information that may be from another source.
|
|
30
|
+
*
|
|
31
|
+
* 204 - NO_CONTENT - The server successfully processed the request and is not returning any content.
|
|
32
|
+
*
|
|
33
|
+
* 205 - RESET_CONTENT - The server successfully processed the request, but is not returning any content and requires that the requester reset the document view.
|
|
34
|
+
*
|
|
35
|
+
* 206 - PARTIAL_CONTENT - The server is delivering only part of the resource due to a range header sent by the client.
|
|
36
|
+
*
|
|
37
|
+
* 207 - MULTI_STATUS - Multi-status response providing status for multiple independent operations.
|
|
38
|
+
*
|
|
39
|
+
* 208 - ALREADY_REPORTED - The members of a DAV binding have already been enumerated in a preceding part of the request.
|
|
40
|
+
*
|
|
41
|
+
* 226 - IM_USED - The server has fulfilled a GET request for the resource, and the response is a representation of the result of one or more instance manipulations applied to the current instance.
|
|
42
|
+
*
|
|
43
|
+
*
|
|
44
|
+
* 3xx: Redirection messages
|
|
45
|
+
*
|
|
46
|
+
*
|
|
47
|
+
* 300 - MULTIPLE_CHOICES - The request has more than one possible response. The user-agent or user should choose one of them.
|
|
48
|
+
*
|
|
49
|
+
* 301 - MOVED_PERMANENTLY - The URL of the requested resource has been changed permanently.
|
|
50
|
+
*
|
|
51
|
+
* 302 - FOUND - The requested resource is available at a different URI.
|
|
52
|
+
*
|
|
53
|
+
* 303 - SEE_OTHER - The response to the request can be found under another URI using a GET method.
|
|
54
|
+
*
|
|
55
|
+
* 304 - NOT_MODIFIED - Indicates that the resource has not been modified since the version specified by the request headers.
|
|
56
|
+
*
|
|
57
|
+
* 305 - USE_PROXY - The requested resource must be accessed through the proxy given by the Location field.
|
|
58
|
+
*
|
|
59
|
+
* 306 - SWITCH_PROXY - No longer used. Originally meant to direct the client to switch to a different proxy.
|
|
60
|
+
*
|
|
61
|
+
* 307 - TEMPORARY_REDIRECT - The requested resource resides temporarily under a different URI.
|
|
62
|
+
*
|
|
63
|
+
* 308 - PERMANENT_REDIRECT - The request should be repeated with another URI, but future requests should still use the original URI.
|
|
64
|
+
*
|
|
65
|
+
*
|
|
66
|
+
* 4xx: Client error responses
|
|
67
|
+
*
|
|
68
|
+
*
|
|
69
|
+
* 400 - BAD_REQUEST - The server cannot or will not process the request due to something perceived to be a client error.
|
|
70
|
+
*
|
|
71
|
+
* 401 - UNAUTHORIZED - The client must authenticate itself to get the requested response.
|
|
72
|
+
*
|
|
73
|
+
* 403 - FORBIDDEN - The client does not have access rights to the content.
|
|
74
|
+
*
|
|
75
|
+
* 404 - NOT_FOUND - The server can not find the requested resource.
|
|
76
|
+
*
|
|
77
|
+
* 405 - METHOD_NOT_ALLOWED - The request method is known by the server but is not supported by the target resource.
|
|
78
|
+
*
|
|
79
|
+
* 406 - NOT_ACCEPTABLE - This response is sent when the requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request.
|
|
80
|
+
*
|
|
81
|
+
* 407 - PROXY_AUTHENTICATION_REQUIRED - This is similar to 401 but authentication is needed to be done by a proxy.
|
|
82
|
+
*
|
|
83
|
+
* 408 - REQUEST_TIMEOUT - This response is sent on an idle connection by some servers, even without any previous request by the client.
|
|
84
|
+
*
|
|
85
|
+
* 409 - CONFLICT - This response is sent when a request conflicts with the current state of the server.
|
|
86
|
+
*
|
|
87
|
+
* 410 - GONE - This response is sent when the requested resource is no longer available and will not be available again.
|
|
88
|
+
*
|
|
89
|
+
* 411 - LENGTH_REQUIRED - The request did not specify the length of its content, which is required by the requested resource.
|
|
90
|
+
*
|
|
91
|
+
* 412 - PRECONDITION_FAILED - The server does not meet one of the preconditions that the requester put on the request.
|
|
92
|
+
*
|
|
93
|
+
* 413 - PAYLOAD_TOO_LARGE - The request is larger than the server is willing or able to process.
|
|
94
|
+
*
|
|
95
|
+
* 414 - URI_TOO_LONG - The URI requested by the client is longer than the server is willing to interpret.
|
|
96
|
+
*
|
|
97
|
+
* 415 - UNSUPPORTED_MEDIA_TYPE - The media format of the requested data is not supported by the server.
|
|
98
|
+
*
|
|
99
|
+
* 416 - RANGE_NOT_SATISFIABLE - The range specified by the Range header field in the request can't be fulfilled.
|
|
100
|
+
*
|
|
101
|
+
* 417 - EXPECTATION_FAILED - The expectation indicated by the Expect request header field can't be met by the server.
|
|
102
|
+
*
|
|
103
|
+
* 418 - IM_A_TEAPOT - The server refuses the attempt to brew coffee with a teapot.
|
|
104
|
+
*
|
|
105
|
+
* 421 - MISDIRECTED_REQUEST - The request was directed at a server that is not able to produce a response.
|
|
106
|
+
*
|
|
107
|
+
* 422 - UNPROCESSABLE_ENTITY - The request was well-formed but was unable to be followed due to semantic errors.
|
|
108
|
+
*
|
|
109
|
+
* 423 - LOCKED - The resource that is being accessed is locked.
|
|
110
|
+
*
|
|
111
|
+
* 424 - FAILED_DEPENDENCY - The request failed due to failure of a previous request.
|
|
112
|
+
*
|
|
113
|
+
* 425 - TOO_EARLY - Indicates that the server is unwilling to risk processing a request that might be replayed.
|
|
114
|
+
*
|
|
115
|
+
* 426 - UPGRADE_REQUIRED - The server refuses to perform the request using the current protocol but might be willing to do so after the client upgrades to a different protocol.
|
|
116
|
+
*
|
|
117
|
+
* 428 - PRECONDITION_REQUIRED - The origin server requires the request to be conditional.
|
|
118
|
+
*
|
|
119
|
+
* 429 - TOO_MANY_REQUESTS - The user has sent too many requests in a given amount of time.
|
|
120
|
+
*
|
|
121
|
+
* 431 - REQUEST_HEADER_FIELDS_TOO_LARGE - The server is unwilling to process the request because its header fields are too large.
|
|
122
|
+
*
|
|
123
|
+
* 451 - UNAVAILABLE_FOR_LEGAL_REASONS - The user-agent requested a resource that cannot legally be provided, such as a censored resource.
|
|
124
|
+
*
|
|
125
|
+
*
|
|
126
|
+
* 5xx: Server error responses
|
|
127
|
+
*
|
|
128
|
+
*
|
|
129
|
+
* 500 - INTERNAL_SERVER_ERROR - The server encountered an unexpected condition that prevented it from fulfilling the request.
|
|
130
|
+
*
|
|
131
|
+
* 501 - NOT_IMPLEMENTED - The server does not support the functionality required to fulfill the request.
|
|
132
|
+
*
|
|
133
|
+
* 502 - BAD_GATEWAY - The server, while acting as a gateway or proxy, received an invalid response from the upstream server.
|
|
134
|
+
*
|
|
135
|
+
* 503 - SERVICE_UNAVAILABLE - The server is currently unavailable (because it is overloaded or down for maintenance).
|
|
136
|
+
*
|
|
137
|
+
* 504 - GATEWAY_TIMEOUT - The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.
|
|
138
|
+
*
|
|
139
|
+
* 505 - HTTP_VERSION_NOT_SUPPORTED - The server does not support the HTTP protocol version used in the request.
|
|
140
|
+
*
|
|
141
|
+
* 506 - VARIANT_ALSO_NEGOTIATES - The server has an internal configuration error, such as a misconfigured gateway.
|
|
142
|
+
*
|
|
143
|
+
* 507 - INSUFFICIENT_STORAGE - The server is unable to store the representation needed to complete the request.
|
|
144
|
+
*
|
|
145
|
+
* 508 - LOOP_DETECTED - The server detected an infinite loop while processing a request.
|
|
146
|
+
*/
|
|
147
|
+
declare enum HttpStatusCodes {
|
|
148
|
+
/**
|
|
149
|
+
* The server has received the request headers and the client should proceed to send the request body.
|
|
150
|
+
*/
|
|
151
|
+
CONTINUE_100 = 100,
|
|
152
|
+
/**
|
|
153
|
+
* The requester has asked the server to switch protocols and the server has agreed to do so.
|
|
154
|
+
*/
|
|
155
|
+
SWITCHING_PROTOCOLS_101 = 101,
|
|
156
|
+
/**
|
|
157
|
+
* Used to return some response headers before final HTTP message.
|
|
158
|
+
*/
|
|
159
|
+
PROCESSING_102 = 102,
|
|
160
|
+
// WebDAV
|
|
161
|
+
/**
|
|
162
|
+
* Early hints - part of optimization to improve page load time.
|
|
163
|
+
*/
|
|
164
|
+
EARLY_HINTS_103 = 103,
|
|
165
|
+
/**
|
|
166
|
+
* The request has succeeded.
|
|
167
|
+
*/
|
|
168
|
+
OK_200 = 200,
|
|
169
|
+
/**
|
|
170
|
+
* The request has been fulfilled and has resulted in one or more new resources being created.
|
|
171
|
+
*/
|
|
172
|
+
CREATED_201 = 201,
|
|
173
|
+
/**
|
|
174
|
+
* The request has been accepted for processing, but the processing has not been completed.
|
|
175
|
+
*/
|
|
176
|
+
ACCEPTED_202 = 202,
|
|
177
|
+
/**
|
|
178
|
+
* The server successfully processed the request, but is returning information that may be from another source.
|
|
179
|
+
*/
|
|
180
|
+
NON_AUTHORITATIVE_INFORMATION_203 = 203,
|
|
181
|
+
/**
|
|
182
|
+
* The server successfully processed the request and is not returning any content.
|
|
183
|
+
*/
|
|
184
|
+
NO_CONTENT_204 = 204,
|
|
185
|
+
/**
|
|
186
|
+
* The server successfully processed the request, but is not returning any content and requires that the requester reset the document view.
|
|
187
|
+
*/
|
|
188
|
+
RESET_CONTENT_205 = 205,
|
|
189
|
+
/**
|
|
190
|
+
* The server is delivering only part of the resource due to a range header sent by the client.
|
|
191
|
+
*/
|
|
192
|
+
PARTIAL_CONTENT_206 = 206,
|
|
193
|
+
/**
|
|
194
|
+
* Multi-status response providing status for multiple independent operations.
|
|
195
|
+
*/
|
|
196
|
+
MULTI_STATUS_207 = 207,
|
|
197
|
+
// WebDAV
|
|
198
|
+
/**
|
|
199
|
+
* The members of a DAV binding have already been enumerated in a preceding part of the request.
|
|
200
|
+
*/
|
|
201
|
+
ALREADY_REPORTED_208 = 208,
|
|
202
|
+
// WebDAV
|
|
203
|
+
/**
|
|
204
|
+
* The server has fulfilled a GET request for the resource, and the response is a representation of the result of one or more instance manipulations applied to the current instance.
|
|
205
|
+
*/
|
|
206
|
+
IM_USED_226 = 226,
|
|
207
|
+
/**
|
|
208
|
+
* The request has more than one possible response. The user-agent or user should choose one of them.
|
|
209
|
+
*/
|
|
210
|
+
MULTIPLE_CHOICES_300 = 300,
|
|
211
|
+
/**
|
|
212
|
+
* The URL of the requested resource has been changed permanently.
|
|
213
|
+
*/
|
|
214
|
+
MOVED_PERMANENTLY_301 = 301,
|
|
215
|
+
/**
|
|
216
|
+
* The requested resource is available at a different URI.
|
|
217
|
+
*/
|
|
218
|
+
FOUND_302 = 302,
|
|
219
|
+
/**
|
|
220
|
+
* The response to the request can be found under another URI using a GET method.
|
|
221
|
+
*/
|
|
222
|
+
SEE_OTHER_303 = 303,
|
|
223
|
+
/**
|
|
224
|
+
* Indicates that the resource has not been modified since the version specified by the request headers.
|
|
225
|
+
*/
|
|
226
|
+
NOT_MODIFIED_304 = 304,
|
|
227
|
+
/**
|
|
228
|
+
* The requested resource must be accessed through the proxy given by the Location field.
|
|
229
|
+
*/
|
|
230
|
+
USE_PROXY_305 = 305,
|
|
231
|
+
/**
|
|
232
|
+
* No longer used. Originally meant to direct the client to switch to a different proxy.
|
|
233
|
+
*/
|
|
234
|
+
SWITCH_PROXY_306 = 306,
|
|
235
|
+
/**
|
|
236
|
+
* The requested resource resides temporarily under a different URI.
|
|
237
|
+
*/
|
|
238
|
+
TEMPORARY_REDIRECT_307 = 307,
|
|
239
|
+
/**
|
|
240
|
+
* The request should be repeated with another URI, but future requests should still use the original URI.
|
|
241
|
+
*/
|
|
242
|
+
PERMANENT_REDIRECT_308 = 308,
|
|
243
|
+
/**
|
|
244
|
+
* The server cannot or will not process the request due to something perceived to be a client error.
|
|
245
|
+
*/
|
|
246
|
+
BAD_REQUEST_400 = 400,
|
|
247
|
+
/**
|
|
248
|
+
* The client must authenticate itself to get the requested response.
|
|
249
|
+
*/
|
|
250
|
+
UNAUTHORIZED_401 = 401,
|
|
251
|
+
/**
|
|
252
|
+
* The client does not have access rights to the content.
|
|
253
|
+
*/
|
|
254
|
+
FORBIDDEN_403 = 403,
|
|
255
|
+
/**
|
|
256
|
+
* The server can not find the requested resource.
|
|
257
|
+
*/
|
|
258
|
+
NOT_FOUND_404 = 404,
|
|
259
|
+
/**
|
|
260
|
+
* The request method is known by the server but is not supported by the target resource.
|
|
261
|
+
*/
|
|
262
|
+
METHOD_NOT_ALLOWED_405 = 405,
|
|
263
|
+
/**
|
|
264
|
+
* This response is sent when the requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request.
|
|
265
|
+
*/
|
|
266
|
+
NOT_ACCEPTABLE_406 = 406,
|
|
267
|
+
/**
|
|
268
|
+
* This is similar to 401 but authentication is needed to be done by a proxy.
|
|
269
|
+
*/
|
|
270
|
+
PROXY_AUTHENTICATION_REQUIRED_407 = 407,
|
|
271
|
+
/**
|
|
272
|
+
* This response is sent on an idle connection by some servers, even without any previous request by the client.
|
|
273
|
+
*/
|
|
274
|
+
REQUEST_TIMEOUT_408 = 408,
|
|
275
|
+
/**
|
|
276
|
+
* This response is sent when a request conflicts with the current state of the server.
|
|
277
|
+
*/
|
|
278
|
+
CONFLICT_409 = 409,
|
|
279
|
+
/**
|
|
280
|
+
* This response is sent when the requested resource is no longer available and will not be available again.
|
|
281
|
+
*/
|
|
282
|
+
GONE_410 = 410,
|
|
283
|
+
/**
|
|
284
|
+
* The request did not specify the length of its content, which is required by the requested resource.
|
|
285
|
+
*/
|
|
286
|
+
LENGTH_REQUIRED_411 = 411,
|
|
287
|
+
/**
|
|
288
|
+
* The server does not meet one of the preconditions that the requester put on the request.
|
|
289
|
+
*/
|
|
290
|
+
PRECONDITION_FAILED_412 = 412,
|
|
291
|
+
/**
|
|
292
|
+
* The request is larger than the server is willing or able to process.
|
|
293
|
+
*/
|
|
294
|
+
PAYLOAD_TOO_LARGE_413 = 413,
|
|
295
|
+
/**
|
|
296
|
+
* The URI requested by the client is longer than the server is willing to interpret.
|
|
297
|
+
*/
|
|
298
|
+
URI_TOO_LONG_414 = 414,
|
|
299
|
+
/**
|
|
300
|
+
* The media format of the requested data is not supported by the server.
|
|
301
|
+
*/
|
|
302
|
+
UNSUPPORTED_MEDIA_TYPE_415 = 415,
|
|
303
|
+
/**
|
|
304
|
+
* The range specified by the Range header field in the request can't be fulfilled.
|
|
305
|
+
*/
|
|
306
|
+
RANGE_NOT_SATISFIABLE_416 = 416,
|
|
307
|
+
/**
|
|
308
|
+
* The expectation indicated by the Expect request header field can't be met by the server.
|
|
309
|
+
*/
|
|
310
|
+
EXPECTATION_FAILED_417 = 417,
|
|
311
|
+
/**
|
|
312
|
+
* The server refuses the attempt to brew coffee with a teapot.
|
|
313
|
+
*/
|
|
314
|
+
IM_A_TEAPOT_418 = 418,
|
|
315
|
+
// Easter egg from the HTCPCP/1.0 protocol.
|
|
316
|
+
/**
|
|
317
|
+
* The request was directed at a server that is not able to produce a response.
|
|
318
|
+
*/
|
|
319
|
+
MISDIRECTED_REQUEST_421 = 421,
|
|
320
|
+
/**
|
|
321
|
+
* The request was well-formed but was unable to be followed due to semantic errors.
|
|
322
|
+
*/
|
|
323
|
+
UNPROCESSABLE_ENTITY_422 = 422,
|
|
324
|
+
// WebDAV
|
|
325
|
+
/**
|
|
326
|
+
* The resource that is being accessed is locked.
|
|
327
|
+
*/
|
|
328
|
+
LOCKED_423 = 423,
|
|
329
|
+
// WebDAV
|
|
330
|
+
/**
|
|
331
|
+
* The request failed due to failure of a previous request.
|
|
332
|
+
*/
|
|
333
|
+
FAILED_DEPENDENCY_424 = 424,
|
|
334
|
+
// WebDAV
|
|
335
|
+
/**
|
|
336
|
+
* Indicates that the server is unwilling to risk processing a request that might be replayed.
|
|
337
|
+
*/
|
|
338
|
+
TOO_EARLY_425 = 425,
|
|
339
|
+
/**
|
|
340
|
+
* The server refuses to perform the request using the current protocol but might be willing to do so after the client upgrades to a different protocol.
|
|
341
|
+
*/
|
|
342
|
+
UPGRADE_REQUIRED_426 = 426,
|
|
343
|
+
/**
|
|
344
|
+
* The origin server requires the request to be conditional.
|
|
345
|
+
*/
|
|
346
|
+
PRECONDITION_REQUIRED_428 = 428,
|
|
347
|
+
/**
|
|
348
|
+
* The user has sent too many requests in a given amount of time.
|
|
349
|
+
*/
|
|
350
|
+
TOO_MANY_REQUESTS_429 = 429,
|
|
351
|
+
/**
|
|
352
|
+
* The server is unwilling to process the request because its header fields are too large.
|
|
353
|
+
*/
|
|
354
|
+
REQUEST_HEADER_FIELDS_TOO_LARGE_431 = 431,
|
|
355
|
+
/**
|
|
356
|
+
* The user-agent requested a resource that cannot legally be provided, such as a censored resource.
|
|
357
|
+
*/
|
|
358
|
+
UNAVAILABLE_FOR_LEGAL_REASONS_451 = 451,
|
|
359
|
+
/**
|
|
360
|
+
* The server encountered an unexpected condition that prevented it from fulfilling the request.
|
|
361
|
+
*/
|
|
362
|
+
INTERNAL_SERVER_ERROR_500 = 500,
|
|
363
|
+
/**
|
|
364
|
+
* The server does not support the functionality required to fulfill the request.
|
|
365
|
+
*/
|
|
366
|
+
NOT_IMPLEMENTED_501 = 501,
|
|
367
|
+
/**
|
|
368
|
+
* The server, while acting as a gateway or proxy, received an invalid response from the upstream server.
|
|
369
|
+
*/
|
|
370
|
+
BAD_GATEWAY_502 = 502,
|
|
371
|
+
/**
|
|
372
|
+
* The server is currently unavailable (because it is overloaded or down for maintenance).
|
|
373
|
+
*/
|
|
374
|
+
SERVICE_UNAVAILABLE_503 = 503,
|
|
375
|
+
/**
|
|
376
|
+
* The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.
|
|
377
|
+
*/
|
|
378
|
+
GATEWAY_TIMEOUT_504 = 504,
|
|
379
|
+
/**
|
|
380
|
+
* The server does not support the HTTP protocol version used in the request.
|
|
381
|
+
*/
|
|
382
|
+
HTTP_VERSION_NOT_SUPPORTED_505 = 505,
|
|
383
|
+
/**
|
|
384
|
+
* The server has an internal configuration error, such as a misconfigured gateway.
|
|
385
|
+
*/
|
|
386
|
+
VARIANT_ALSO_NEGOTIATES_506 = 506,
|
|
387
|
+
/**
|
|
388
|
+
* The server is unable to store the representation needed to complete the request.
|
|
389
|
+
*/
|
|
390
|
+
INSUFFICIENT_STORAGE_507 = 507,
|
|
391
|
+
// WebDAV
|
|
392
|
+
/**
|
|
393
|
+
* The server detected an infinite loop while processing a request.
|
|
394
|
+
*/
|
|
395
|
+
LOOP_DETECTED_508 = 508,
|
|
396
|
+
// WebDAV
|
|
397
|
+
/**
|
|
398
|
+
* Further extensions to the request are required for the server to fulfill it.
|
|
399
|
+
*/
|
|
400
|
+
NOT_EXTENDED_510 = 510,
|
|
401
|
+
/**
|
|
402
|
+
* The client needs to authenticate to gain network access.
|
|
403
|
+
*/
|
|
404
|
+
NETWORK_AUTHENTICATION_REQUIRED_511 = 511
|
|
405
|
+
} //#endregion
|
|
406
|
+
//#endregion
|
|
407
|
+
export { HttpStatusCodes };
|
|
408
|
+
//# sourceMappingURL=httpStatusCodes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"httpStatusCodes.d.ts","names":["HttpStatusCodes","CONTINUE_100","SWITCHING_PROTOCOLS_101","PROCESSING_102","EARLY_HINTS_103","OK_200","CREATED_201","ACCEPTED_202","NON_AUTHORITATIVE_INFORMATION_203","NO_CONTENT_204","RESET_CONTENT_205","PARTIAL_CONTENT_206","MULTI_STATUS_207","ALREADY_REPORTED_208","IM_USED_226","MULTIPLE_CHOICES_300","MOVED_PERMANENTLY_301","FOUND_302","SEE_OTHER_303","NOT_MODIFIED_304","USE_PROXY_305","SWITCH_PROXY_306","TEMPORARY_REDIRECT_307","PERMANENT_REDIRECT_308","BAD_REQUEST_400","UNAUTHORIZED_401","FORBIDDEN_403","NOT_FOUND_404","METHOD_NOT_ALLOWED_405","NOT_ACCEPTABLE_406","PROXY_AUTHENTICATION_REQUIRED_407","REQUEST_TIMEOUT_408","CONFLICT_409","GONE_410","LENGTH_REQUIRED_411","PRECONDITION_FAILED_412","PAYLOAD_TOO_LARGE_413","URI_TOO_LONG_414","UNSUPPORTED_MEDIA_TYPE_415","RANGE_NOT_SATISFIABLE_416","EXPECTATION_FAILED_417","IM_A_TEAPOT_418","MISDIRECTED_REQUEST_421","UNPROCESSABLE_ENTITY_422","LOCKED_423","FAILED_DEPENDENCY_424","TOO_EARLY_425","UPGRADE_REQUIRED_426","PRECONDITION_REQUIRED_428","TOO_MANY_REQUESTS_429","REQUEST_HEADER_FIELDS_TOO_LARGE_431","UNAVAILABLE_FOR_LEGAL_REASONS_451","INTERNAL_SERVER_ERROR_500","NOT_IMPLEMENTED_501","BAD_GATEWAY_502","SERVICE_UNAVAILABLE_503","GATEWAY_TIMEOUT_504","HTTP_VERSION_NOT_SUPPORTED_505","VARIANT_ALSO_NEGOTIATES_506","INSUFFICIENT_STORAGE_507","LOOP_DETECTED_508","NOT_EXTENDED_510","NETWORK_AUTHENTICATION_REQUIRED_511"],"sources":["../../../../../../../../intlayer-editor/server/dist/utils/httpStatusCodes.d.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAiJaA,eAAAA;;;;EAIXC,YAAAA;;;;EAIAC,uBAAAA;;;;EAIAC,cAAAA;EAAAA;;;;EAKAC,eAAAA;;;;EAIAC,MAAAA;;;;EAIAC,WAAAA;;;;EAIAC,YAAAA;;;;EAIAC,iCAAAA;;;;EAIAC,cAAAA;;;;EAIAC,iBAAAA;;;;EAIAC,mBAAAA;;;;EAIAC,gBAAAA;EAAAA;;;;EAKAC,oBAAAA;EAAAA;;;;EAKAC,WAAAA;;;;EAIAC,oBAAAA;;;;EAIAC,qBAAAA;;;;EAIAC,SAAAA;;;;EAIAC,aAAAA;;;;EAIAC,gBAAAA;;;;EAIAC,aAAAA;;;;EAIAC,gBAAAA;;;;EAIAC,sBAAAA;;;;EAIAC,sBAAAA;;;;EAIAC,eAAAA;;;;EAIAC,gBAAAA;;;;EAIAC,aAAAA;;;;EAIAC,aAAAA;;;;EAIAC,sBAAAA;;;;EAIAC,kBAAAA;;;;EAIAC,iCAAAA;;;;EAIAC,mBAAAA;;;;EAIAC,YAAAA;;;;EAIAC,QAAAA;;;;EAIAC,mBAAAA;;;;EAIAC,uBAAAA;;;;EAIAC,qBAAAA;;;;EAIAC,gBAAAA;;;;EAIAC,0BAAAA;;;;EAIAC,yBAAAA;;;;EAIAC,sBAAAA;;;;EAIAC,eAAAA;EAAAA;;;;EAKAC,uBAAAA;;;;EAIAC,wBAAAA;EAAAA;;;;EAKAC,UAAAA;EAAAA;;;;EAKAC,qBAAAA;EAAAA;;;;EAKAC,aAAAA;;;;EAIAC,oBAAAA;;;;EAIAC,yBAAAA;;;;EAIAC,qBAAAA;;;;EAIAC,mCAAAA;;;;EAIAC,iCAAAA;;;;EAIAC,yBAAAA;;;;EAIAC,mBAAAA;;;;EAIAC,eAAAA;;;;EAIAC,uBAAAA;;;;EAIAC,mBAAAA;;;;EAIAC,8BAAAA;;;;EAIAC,2BAAAA;;;;EAIAC,wBAAAA;EAAAA;;;;EAKAC,iBAAAA;EAAAA;;;;EAKAC,gBAAAA;;;;EAIAC,mCAAAA;AAAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HttpStatusCodes } from "./httpStatusCodes.js";
|
|
2
|
+
|
|
3
|
+
//#region ../../intlayer-editor/server/dist/utils/responseData.d.ts
|
|
4
|
+
//#region src/utils/responseData.d.ts
|
|
5
|
+
type ErrorData = {
|
|
6
|
+
code: string;
|
|
7
|
+
title: string;
|
|
8
|
+
message: string;
|
|
9
|
+
} & object;
|
|
10
|
+
type ResponseData<T = null> = {
|
|
11
|
+
message?: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
success: boolean;
|
|
14
|
+
status: HttpStatusCodes;
|
|
15
|
+
data: T | null;
|
|
16
|
+
error?: ErrorData | ErrorData[];
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { ResponseData };
|
|
20
|
+
//# sourceMappingURL=responseData.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responseData.d.ts","names":["HttpStatusCodes","ErrorData","code","title","message","ResponseData","T","description","success","status","data","error","ValidResponseStatus","OK_200","CREATED_201","ACCEPTED_202","NON_AUTHORITATIVE_INFORMATION_203","NO_CONTENT_204","RESET_CONTENT_205","PARTIAL_CONTENT_206","MULTI_STATUS_207","ALREADY_REPORTED_208","IM_USED_226","SuccessResponseArgs","ErrorResponseArgs","formatResponse","PaginatedResponse","Omit","page","page_size","total_pages","total_items","SuccessPaginatedResponseArgs","pageSize","totalPages","totalItems","ErrorPaginatedResponseArgs","formatPaginatedResponse"],"sources":["../../../../../../../../intlayer-editor/server/dist/utils/responseData.d.ts"],"mappings":";;;;KAGKC,SAAAA;EACHC,IAAAA;EACAC,KAAAA;EACAC,OAAAA;AAAAA;AAAAA,KAEGC,YAAAA;EACHD,OAAAA;EACAG,WAAAA;EACAC,OAAAA;EACAC,MAAAA,EAAQT,eAAAA;EACRU,IAAAA,EAAMJ,CAAAA;EACNK,KAAAA,GAAQV,SAAAA,GAAYA,SAAAA;AAAAA"}
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,14 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { GetConfigurationResult, GetEditorDictionariesResult, WriteContentDeclarationBody, WriteContentDeclarationResult } from "intlayer-editor";
|
|
3
|
-
|
|
4
|
-
//#region src/types.d.ts
|
|
5
|
-
type AutocompleteBody = {
|
|
6
|
-
text: string;
|
|
7
|
-
aiOptions?: AIOptions;
|
|
8
|
-
contextBefore?: string;
|
|
9
|
-
currentLine?: string;
|
|
10
|
-
contextAfter?: string;
|
|
11
|
-
};
|
|
12
|
-
//#endregion
|
|
13
|
-
export { type AIOptions$1 as AIOptions, type AIProvider, type AddDictionaryBody, type AddDictionaryResult, type AddNewAccessKeyBody, type AddNewAccessKeyResponse, type AddOrganizationBody, type AddOrganizationMemberBody, type AddOrganizationMemberResult, type AddOrganizationResult, type AddProjectBody, type AddProjectResult, type AddTagBody, type AddTagResult, type AskDocQuestionResult, type AskResetPasswordBody, type AskResetPasswordResult, type AuditContentDeclarationBody, type AuditContentDeclarationFieldBody, type AuditContentDeclarationFieldResult, type AuditContentDeclarationMetadataBody, type AuditContentDeclarationMetadataResult, type AuditContentDeclarationResult, type AuditTagBody, type AuditTagResult, type AuthClient, type AutocompleteBody, type AutocompleteResponse, type ChatCompletionRequestMessage, type CheckIfUserHasPasswordResult, type CreateAuditBody, type CreateAuditResult, type CreateSessionBody, type CreateSessionResult, type CreateUserBody, type CreateUserResult, type CustomQueryBody, type CustomQueryResult, type DefinePasswordBody, type DefinePasswordResult, type DeleteAccessKeyBody, type DeleteAccessKeyResponse, type DeleteDictionaryParam, type DeleteDictionaryResult, type DeleteOrganizationResult, type DeleteProjectResult, type DeleteTagParams, type DeleteTagResult, type DictionaryAPI, type GetAuditByIdParams, type GetAuditByIdResult, type GetAuditsParams, type GetAuditsResult, type GetCIConfigResult, type GetCheckoutSessionBody, type GetCheckoutSessionResult, type GetConfigurationResult, type GetDictionariesKeysResult, type GetDictionariesParams, type GetDictionariesResult, type GetDictionariesUpdateTimestampResult, type GetDictionaryParams, type GetDictionaryQuery, type GetDictionaryResult, type GetDiscussionsParams, type GetDiscussionsResult, type GetEditorDictionariesResult, type GetOAuth2TokenBody, type GetOAuth2TokenResult, type GetOrganizationParam, type GetOrganizationResult, type GetOrganizationSSOConfigBody, type GetOrganizationSSOConfigResult, type GetOrganizationsParams, type GetOrganizationsResult, type GetPricingBody, type GetPricingResult, type GetProjectsParams, type GetProjectsResult, type GetSessionInformationQuery, type GetSessionInformationResult, type GetTagsParams, type GetTagsResult, type GetUserByAccountParams, type GetUserByAccountResult, type GetUserByEmailParams, type GetUserByEmailResult, type GetUserByIdParams, type GetUserByIdResult, type GetUsersParams, type GetUsersResult, type GithubLoginQueryParams, type GoogleLoginQueryParams, type LoginBody, type LoginResult, type Messages, type NewsletterSubscriptionBody, type NewsletterSubscriptionResult, type NewsletterUnsubscriptionBody, type ProjectConfigCI, type PushCIConfigResult, type PushDictionariesBody, type PushDictionariesResult, type PushProjectConfigurationBody, type PushProjectConfigurationResult, type RefreshAccessKeyBody, type RefreshAccessKeyResponse, type RegisterBody, type RegisterQuery, type RegisterResult, type SearchDocUtilParams, type SearchDocUtilResult, type SelectOrganizationParam, type SelectOrganizationResult, type SelectProjectParam, type SelectProjectResult, type SetCSRFTokenResult, type TranslateJSONBody, type TranslateJSONResult, type TriggerBuildResult, type TriggerWebhookBody, type TriggerWebhookResult, type UnselectOrganizationResult, type UnselectProjectResult, type UpdateDictionaryBody, type UpdateDictionaryParam, type UpdateDictionaryResult, type UpdateOrganizationBody, type UpdateOrganizationMembersBody, type UpdateOrganizationMembersResult, type UpdateOrganizationResult, type UpdatePasswordBody, type UpdatePasswordResult, type UpdateProjectBody, type UpdateProjectMembersBody, type UpdateProjectMembersResult, type UpdateProjectResult, type UpdateTagBody, type UpdateTagParams, type UpdateTagResult, type UpdateUserBody, type UpdateUserResult, type UserAPI, type ValidEmailParams, type ValidEmailResult, type Webhook, type WriteContentDeclarationBody, type WriteContentDeclarationResult };
|
|
14
|
-
//# sourceMappingURL=types.d.ts.map
|
|
1
|
+
export { };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/api",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.8",
|
|
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": [
|
|
@@ -55,7 +55,6 @@
|
|
|
55
55
|
"./package.json"
|
|
56
56
|
],
|
|
57
57
|
"scripts": {
|
|
58
|
-
"_prepublish": "cp -f ../../../README.md ./README.md",
|
|
59
58
|
"build": "tsdown --config tsdown.config.ts",
|
|
60
59
|
"build:ci": "tsdown --config tsdown.config.ts",
|
|
61
60
|
"clean": "rimraf ./dist .turbo",
|
|
@@ -64,7 +63,7 @@
|
|
|
64
63
|
"format:fix": "biome format --write .",
|
|
65
64
|
"lint": "biome lint .",
|
|
66
65
|
"lint:fix": "biome lint --write .",
|
|
67
|
-
"prepublish": "
|
|
66
|
+
"prepublish": "cp -f ../../../README.md ./README.md",
|
|
68
67
|
"publish": "bun publish || true",
|
|
69
68
|
"publish:canary": "bun publish --access public --tag canary || true",
|
|
70
69
|
"publish:latest": "bun publish --access public --tag latest || true",
|
|
@@ -73,8 +72,8 @@
|
|
|
73
72
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
74
73
|
},
|
|
75
74
|
"dependencies": {
|
|
76
|
-
"@intlayer/config": "8.1.
|
|
77
|
-
"@intlayer/types": "8.1.
|
|
75
|
+
"@intlayer/config": "8.1.8",
|
|
76
|
+
"@intlayer/types": "8.1.8"
|
|
78
77
|
},
|
|
79
78
|
"devDependencies": {
|
|
80
79
|
"@types/node": "25.3.0",
|
|
@@ -86,18 +85,6 @@
|
|
|
86
85
|
"typescript": "5.9.3",
|
|
87
86
|
"vitest": "4.0.18"
|
|
88
87
|
},
|
|
89
|
-
"peerDependencies": {
|
|
90
|
-
"@intlayer/backend": "8.1.6",
|
|
91
|
-
"intlayer-editor": "8.1.6"
|
|
92
|
-
},
|
|
93
|
-
"peerDependenciesMeta": {
|
|
94
|
-
"@intlayer/backend": {
|
|
95
|
-
"optional": true
|
|
96
|
-
},
|
|
97
|
-
"intlayer-editor": {
|
|
98
|
-
"optional": true
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
88
|
"engines": {
|
|
102
89
|
"node": ">=14.18"
|
|
103
90
|
},
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../_virtual/_rolldown/runtime.cjs`),t=require(`../fetcher.cjs`);let n=require(`@intlayer/config/built`);n=e.__toESM(n);const r=(e={},r)=>{let i=r?.editor?.backendURL??n.default?.editor?.backendURL;if(!i)throw Error(`Backend URL is not defined in the Intlayer configuration.`);let a=`${i}/api/audit`;return{createAudit:async(n,r={})=>await t.fetcher(`${a}`,e,r,{method:`POST`,body:n}),getAudits:async(n,r={})=>await t.fetcher(a,e,r,{cache:`no-store`,params:n}),getAuditById:async(n,r={})=>await t.fetcher(`${a}/${String(n)}`,e,r,{cache:`no-store`})}};exports.getAuditAPI=r;
|
|
2
|
-
//# sourceMappingURL=audit.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"audit.cjs","names":["configuration","fetcher"],"sources":["../../../src/getIntlayerAPI/audit.ts"],"sourcesContent":["import configuration from '@intlayer/config/built';\nimport type { IntlayerConfig } from '@intlayer/types';\nimport { type FetcherOptions, fetcher } from '../fetcher';\nimport type {\n CreateAuditBody,\n CreateAuditResult,\n GetAuditByIdParams,\n GetAuditByIdResult,\n GetAuditsParams,\n GetAuditsResult,\n} from '../types';\n\nexport const getAuditAPI = (\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 AUDIT_API_ROUTE = `${backendURL}/api/audit`;\n\n /**\n * Creates a new audit in the database.\n * @param audit - Audit data.\n */\n const createAudit = async (\n audit: CreateAuditBody,\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<CreateAuditResult>(\n `${AUDIT_API_ROUTE}`,\n authAPIOptions,\n otherOptions,\n {\n method: 'POST',\n body: audit,\n }\n );\n\n /**\n * Retrieves audits for the current user or project.\n * @param params - Query parameters (page, pageSize).\n */\n const getAudits = async (\n params?: GetAuditsParams,\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<GetAuditsResult>(\n AUDIT_API_ROUTE,\n authAPIOptions,\n otherOptions,\n {\n cache: 'no-store',\n // @ts-ignore Number of parameter will be stringified by the fetcher\n params,\n }\n );\n\n /**\n * Retrieves an audit by its ID.\n * @param auditId - Audit ID.\n */\n const getAuditById = async (\n auditId: GetAuditByIdParams['auditId'],\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<GetAuditByIdResult>(\n `${AUDIT_API_ROUTE}/${String(auditId)}`,\n authAPIOptions,\n otherOptions,\n {\n cache: 'no-store',\n }\n );\n\n return {\n createAudit,\n getAudits,\n getAuditById,\n };\n};\n"],"mappings":"2MAYA,MAAa,GACX,EAAiC,EAAE,CACnC,IACG,CACH,IAAM,EACJ,GAAgB,QAAQ,YAAcA,EAAAA,SAAe,QAAQ,WAE/D,GAAI,CAAC,EACH,MAAU,MACR,4DACD,CAGH,IAAM,EAAkB,GAAG,EAAW,YAwDtC,MAAO,CACL,YAnDkB,MAClB,EACA,EAA+B,EAAE,GAEjC,MAAMC,EAAAA,QACJ,GAAG,IACH,EACA,EACA,CACE,OAAQ,OACR,KAAM,EACP,CACF,CAwCD,UAlCgB,MAChB,EACA,EAA+B,EAAE,GAEjC,MAAMA,EAAAA,QACJ,EACA,EACA,EACA,CACE,MAAO,WAEP,SACD,CACF,CAsBD,aAhBmB,MACnB,EACA,EAA+B,EAAE,GAEjC,MAAMA,EAAAA,QACJ,GAAG,EAAgB,GAAG,OAAO,EAAQ,GACrC,EACA,EACA,CACE,MAAO,WACR,CACF,CAMF"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{fetcher as e}from"../fetcher.mjs";import t from"@intlayer/config/built";const n=(n={},r)=>{let i=r?.editor?.backendURL??t?.editor?.backendURL;if(!i)throw Error(`Backend URL is not defined in the Intlayer configuration.`);let a=`${i}/api/audit`;return{createAudit:async(t,r={})=>await e(`${a}`,n,r,{method:`POST`,body:t}),getAudits:async(t,r={})=>await e(a,n,r,{cache:`no-store`,params:t}),getAuditById:async(t,r={})=>await e(`${a}/${String(t)}`,n,r,{cache:`no-store`})}};export{n as getAuditAPI};
|
|
2
|
-
//# sourceMappingURL=audit.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"audit.mjs","names":[],"sources":["../../../src/getIntlayerAPI/audit.ts"],"sourcesContent":["import configuration from '@intlayer/config/built';\nimport type { IntlayerConfig } from '@intlayer/types';\nimport { type FetcherOptions, fetcher } from '../fetcher';\nimport type {\n CreateAuditBody,\n CreateAuditResult,\n GetAuditByIdParams,\n GetAuditByIdResult,\n GetAuditsParams,\n GetAuditsResult,\n} from '../types';\n\nexport const getAuditAPI = (\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 AUDIT_API_ROUTE = `${backendURL}/api/audit`;\n\n /**\n * Creates a new audit in the database.\n * @param audit - Audit data.\n */\n const createAudit = async (\n audit: CreateAuditBody,\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<CreateAuditResult>(\n `${AUDIT_API_ROUTE}`,\n authAPIOptions,\n otherOptions,\n {\n method: 'POST',\n body: audit,\n }\n );\n\n /**\n * Retrieves audits for the current user or project.\n * @param params - Query parameters (page, pageSize).\n */\n const getAudits = async (\n params?: GetAuditsParams,\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<GetAuditsResult>(\n AUDIT_API_ROUTE,\n authAPIOptions,\n otherOptions,\n {\n cache: 'no-store',\n // @ts-ignore Number of parameter will be stringified by the fetcher\n params,\n }\n );\n\n /**\n * Retrieves an audit by its ID.\n * @param auditId - Audit ID.\n */\n const getAuditById = async (\n auditId: GetAuditByIdParams['auditId'],\n otherOptions: FetcherOptions = {}\n ) =>\n await fetcher<GetAuditByIdResult>(\n `${AUDIT_API_ROUTE}/${String(auditId)}`,\n authAPIOptions,\n otherOptions,\n {\n cache: 'no-store',\n }\n );\n\n return {\n createAudit,\n getAudits,\n getAuditById,\n };\n};\n"],"mappings":"+EAYA,MAAa,GACX,EAAiC,EAAE,CACnC,IACG,CACH,IAAM,EACJ,GAAgB,QAAQ,YAAc,GAAe,QAAQ,WAE/D,GAAI,CAAC,EACH,MAAU,MACR,4DACD,CAGH,IAAM,EAAkB,GAAG,EAAW,YAwDtC,MAAO,CACL,YAnDkB,MAClB,EACA,EAA+B,EAAE,GAEjC,MAAM,EACJ,GAAG,IACH,EACA,EACA,CACE,OAAQ,OACR,KAAM,EACP,CACF,CAwCD,UAlCgB,MAChB,EACA,EAA+B,EAAE,GAEjC,MAAM,EACJ,EACA,EACA,EACA,CACE,MAAO,WAEP,SACD,CACF,CAsBD,aAhBmB,MACnB,EACA,EAA+B,EAAE,GAEjC,MAAM,EACJ,GAAG,EAAgB,GAAG,OAAO,EAAQ,GACrC,EACA,EACA,CACE,MAAO,WACR,CACF,CAMF"}
|