@markupai/api 1.2.0 → 1.4.0
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 +0 -18
- package/dist/cjs/Client.d.ts +3 -0
- package/dist/cjs/Client.js +7 -2
- package/dist/cjs/api/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/index.js +3 -1
- package/dist/cjs/api/resources/styleGuides/client/Client.d.ts +4 -6
- package/dist/cjs/api/resources/styleGuides/client/Client.js +11 -8
- package/dist/cjs/api/resources/styleGuides/client/requests/BodyStyleGuidesUpdateStyleGuide.d.ts +13 -0
- package/dist/cjs/api/resources/styleGuides/client/requests/StyleGuideRequestBody.d.ts +2 -0
- package/dist/cjs/api/resources/styleGuides/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/terminology/client/Client.d.ts +333 -0
- package/dist/cjs/api/resources/terminology/client/Client.js +1314 -0
- package/dist/cjs/api/resources/terminology/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/terminology/client/index.js +17 -0
- package/dist/cjs/api/resources/terminology/client/requests/BodyTerminologyImportTerminology.d.ts +17 -0
- package/dist/cjs/api/resources/terminology/client/requests/BodyTerminologyImportTerminology.js +5 -0
- package/dist/cjs/api/resources/{styleGuides/client/requests/BodyUpdateStyleGuideV1StyleGuidesStyleGuideIdPatch.d.ts → terminology/client/requests/DomainCreateRequest.d.ts} +2 -2
- package/dist/cjs/api/resources/terminology/client/requests/DomainCreateRequest.js +5 -0
- package/dist/cjs/api/resources/terminology/client/requests/DomainUpdateRequest.d.ts +11 -0
- package/dist/cjs/api/resources/terminology/client/requests/DomainUpdateRequest.js +5 -0
- package/dist/cjs/api/resources/terminology/client/requests/TermSetCreateRequest.d.ts +15 -0
- package/dist/cjs/api/resources/terminology/client/requests/TermSetCreateRequest.js +5 -0
- package/dist/cjs/api/resources/terminology/client/requests/TermSetUpdateRequest.d.ts +11 -0
- package/dist/cjs/api/resources/terminology/client/requests/TermSetUpdateRequest.js +5 -0
- package/dist/cjs/api/resources/terminology/client/requests/TermUpdateRequest.d.ts +15 -0
- package/dist/cjs/api/resources/terminology/client/requests/TermUpdateRequest.js +5 -0
- package/dist/cjs/api/resources/terminology/client/requests/TerminologyListDomainsRequest.d.ts +19 -0
- package/dist/cjs/api/resources/terminology/client/requests/TerminologyListDomainsRequest.js +5 -0
- package/dist/cjs/api/resources/terminology/client/requests/TerminologyListTermSetsRequest.d.ts +21 -0
- package/dist/cjs/api/resources/terminology/client/requests/TerminologyListTermSetsRequest.js +5 -0
- package/dist/cjs/api/resources/terminology/client/requests/TerminologySearchTerminologyRequest.d.ts +14 -0
- package/dist/cjs/api/resources/terminology/client/requests/TerminologySearchTerminologyRequest.js +5 -0
- package/dist/cjs/api/resources/terminology/client/requests/index.d.ts +9 -0
- package/dist/cjs/api/resources/terminology/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/terminology/index.d.ts +1 -0
- package/dist/cjs/api/resources/terminology/index.js +17 -0
- package/dist/cjs/api/types/ConsistencyCategory.d.ts +1 -4
- package/dist/cjs/api/types/ConsistencyCategory.js +0 -3
- package/dist/cjs/api/types/DomainResponse.d.ts +13 -0
- package/dist/cjs/api/types/DomainResponse.js +5 -0
- package/dist/cjs/api/types/DomainSummary.d.ts +7 -0
- package/dist/cjs/api/types/DomainSummary.js +5 -0
- package/dist/cjs/api/types/ImportSummary.d.ts +12 -0
- package/dist/cjs/api/types/ImportSummary.js +5 -0
- package/dist/cjs/api/types/Issue.d.ts +1 -0
- package/dist/cjs/api/types/MatchedTerm.d.ts +7 -0
- package/dist/cjs/api/types/MatchedTerm.js +5 -0
- package/dist/cjs/api/types/PaginatedDomainsResponse.d.ts +11 -0
- package/dist/cjs/api/types/PaginatedDomainsResponse.js +5 -0
- package/dist/cjs/api/types/PaginatedTermSetsResponse.d.ts +15 -0
- package/dist/cjs/api/types/PaginatedTermSetsResponse.js +5 -0
- package/dist/cjs/api/types/Severity.d.ts +9 -0
- package/dist/cjs/api/types/Severity.js +11 -0
- package/dist/cjs/api/types/StyleGuideResponse.d.ts +2 -0
- package/dist/cjs/api/types/Suggestion.d.ts +1 -0
- package/dist/cjs/api/types/TermCreateRequest.d.ts +11 -0
- package/dist/cjs/api/types/TermCreateRequest.js +5 -0
- package/dist/cjs/api/types/TermDetail.d.ts +16 -0
- package/dist/cjs/api/types/TermDetail.js +5 -0
- package/dist/cjs/api/types/TermItem.d.ts +7 -0
- package/dist/cjs/api/types/TermItem.js +5 -0
- package/dist/cjs/api/types/TermResponse.d.ts +16 -0
- package/dist/cjs/api/types/TermResponse.js +5 -0
- package/dist/cjs/api/types/TermSetResponse.d.ts +14 -0
- package/dist/cjs/api/types/TermSetResponse.js +5 -0
- package/dist/cjs/api/types/TermSetResult.d.ts +9 -0
- package/dist/cjs/api/types/TermSetResult.js +5 -0
- package/dist/cjs/api/types/TermSetWithTerms.d.ts +17 -0
- package/dist/cjs/api/types/TermSetWithTerms.js +5 -0
- package/dist/cjs/api/types/TermType.d.ts +12 -0
- package/dist/cjs/api/types/TermType.js +11 -0
- package/dist/cjs/api/types/TerminologySearchResponse.d.ts +7 -0
- package/dist/cjs/api/types/TerminologySearchResponse.js +5 -0
- package/dist/cjs/api/types/index.d.ts +16 -0
- package/dist/cjs/api/types/index.js +16 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +3 -0
- package/dist/esm/Client.mjs +7 -2
- package/dist/esm/api/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/index.mjs +2 -0
- package/dist/esm/api/resources/styleGuides/client/Client.d.mts +4 -6
- package/dist/esm/api/resources/styleGuides/client/Client.mjs +11 -8
- package/dist/esm/api/resources/styleGuides/client/requests/BodyStyleGuidesUpdateStyleGuide.d.mts +13 -0
- package/dist/esm/api/resources/styleGuides/client/requests/StyleGuideRequestBody.d.mts +2 -0
- package/dist/esm/api/resources/styleGuides/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/terminology/client/Client.d.mts +333 -0
- package/dist/esm/api/resources/terminology/client/Client.mjs +1277 -0
- package/dist/esm/api/resources/terminology/client/index.d.mts +2 -0
- package/dist/esm/api/resources/terminology/client/index.mjs +1 -0
- package/dist/esm/api/resources/terminology/client/requests/BodyTerminologyImportTerminology.d.mts +17 -0
- package/dist/esm/api/resources/terminology/client/requests/BodyTerminologyImportTerminology.mjs +4 -0
- package/dist/esm/api/resources/{styleGuides/client/requests/BodyUpdateStyleGuideV1StyleGuidesStyleGuideIdPatch.d.mts → terminology/client/requests/DomainCreateRequest.d.mts} +2 -2
- package/dist/esm/api/resources/terminology/client/requests/DomainCreateRequest.mjs +4 -0
- package/dist/esm/api/resources/terminology/client/requests/DomainUpdateRequest.d.mts +11 -0
- package/dist/esm/api/resources/terminology/client/requests/DomainUpdateRequest.mjs +4 -0
- package/dist/esm/api/resources/terminology/client/requests/TermSetCreateRequest.d.mts +15 -0
- package/dist/esm/api/resources/terminology/client/requests/TermSetCreateRequest.mjs +4 -0
- package/dist/esm/api/resources/terminology/client/requests/TermSetUpdateRequest.d.mts +11 -0
- package/dist/esm/api/resources/terminology/client/requests/TermSetUpdateRequest.mjs +4 -0
- package/dist/esm/api/resources/terminology/client/requests/TermUpdateRequest.d.mts +15 -0
- package/dist/esm/api/resources/terminology/client/requests/TermUpdateRequest.mjs +4 -0
- package/dist/esm/api/resources/terminology/client/requests/TerminologyListDomainsRequest.d.mts +19 -0
- package/dist/esm/api/resources/terminology/client/requests/TerminologyListDomainsRequest.mjs +4 -0
- package/dist/esm/api/resources/terminology/client/requests/TerminologyListTermSetsRequest.d.mts +21 -0
- package/dist/esm/api/resources/terminology/client/requests/TerminologyListTermSetsRequest.mjs +4 -0
- package/dist/esm/api/resources/terminology/client/requests/TerminologySearchTerminologyRequest.d.mts +14 -0
- package/dist/esm/api/resources/terminology/client/requests/TerminologySearchTerminologyRequest.mjs +4 -0
- package/dist/esm/api/resources/terminology/client/requests/index.d.mts +9 -0
- package/dist/esm/api/resources/terminology/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/terminology/index.d.mts +1 -0
- package/dist/esm/api/resources/terminology/index.mjs +1 -0
- package/dist/esm/api/types/ConsistencyCategory.d.mts +1 -4
- package/dist/esm/api/types/ConsistencyCategory.mjs +0 -3
- package/dist/esm/api/types/DomainResponse.d.mts +13 -0
- package/dist/esm/api/types/DomainResponse.mjs +4 -0
- package/dist/esm/api/types/DomainSummary.d.mts +7 -0
- package/dist/esm/api/types/DomainSummary.mjs +4 -0
- package/dist/esm/api/types/ImportSummary.d.mts +12 -0
- package/dist/esm/api/types/ImportSummary.mjs +4 -0
- package/dist/esm/api/types/Issue.d.mts +1 -0
- package/dist/esm/api/types/MatchedTerm.d.mts +7 -0
- package/dist/esm/api/types/MatchedTerm.mjs +4 -0
- package/dist/esm/api/types/PaginatedDomainsResponse.d.mts +11 -0
- package/dist/esm/api/types/PaginatedDomainsResponse.mjs +4 -0
- package/dist/esm/api/types/PaginatedTermSetsResponse.d.mts +15 -0
- package/dist/esm/api/types/PaginatedTermSetsResponse.mjs +4 -0
- package/dist/esm/api/types/Severity.d.mts +9 -0
- package/dist/esm/api/types/Severity.mjs +8 -0
- package/dist/esm/api/types/StyleGuideResponse.d.mts +2 -0
- package/dist/esm/api/types/Suggestion.d.mts +1 -0
- package/dist/esm/api/types/TermCreateRequest.d.mts +11 -0
- package/dist/esm/api/types/TermCreateRequest.mjs +4 -0
- package/dist/esm/api/types/TermDetail.d.mts +16 -0
- package/dist/esm/api/types/TermDetail.mjs +4 -0
- package/dist/esm/api/types/TermItem.d.mts +7 -0
- package/dist/esm/api/types/TermItem.mjs +4 -0
- package/dist/esm/api/types/TermResponse.d.mts +16 -0
- package/dist/esm/api/types/TermResponse.mjs +4 -0
- package/dist/esm/api/types/TermSetResponse.d.mts +14 -0
- package/dist/esm/api/types/TermSetResponse.mjs +4 -0
- package/dist/esm/api/types/TermSetResult.d.mts +9 -0
- package/dist/esm/api/types/TermSetResult.mjs +4 -0
- package/dist/esm/api/types/TermSetWithTerms.d.mts +17 -0
- package/dist/esm/api/types/TermSetWithTerms.mjs +4 -0
- package/dist/esm/api/types/TermType.d.mts +12 -0
- package/dist/esm/api/types/TermType.mjs +8 -0
- package/dist/esm/api/types/TerminologySearchResponse.d.mts +7 -0
- package/dist/esm/api/types/TerminologySearchResponse.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +16 -0
- package/dist/esm/api/types/index.mjs +16 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +998 -5
- /package/dist/cjs/api/resources/styleGuides/client/requests/{BodyUpdateStyleGuideV1StyleGuidesStyleGuideIdPatch.js → BodyStyleGuidesUpdateStyleGuide.js} +0 -0
- /package/dist/esm/api/resources/styleGuides/client/requests/{BodyUpdateStyleGuideV1StyleGuidesStyleGuideIdPatch.mjs → BodyStyleGuidesUpdateStyleGuide.mjs} +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.TermType = void 0;
|
|
7
|
+
exports.TermType = {
|
|
8
|
+
Preferred: "preferred",
|
|
9
|
+
Prohibited: "prohibited",
|
|
10
|
+
ContextDependent: "context_dependent",
|
|
11
|
+
};
|
|
@@ -6,17 +6,24 @@ export * from "./ConfigOptions.js";
|
|
|
6
6
|
export * from "./ConsistencyCategory.js";
|
|
7
7
|
export * from "./ConsistencyScore.js";
|
|
8
8
|
export * from "./Dialects.js";
|
|
9
|
+
export * from "./DomainResponse.js";
|
|
10
|
+
export * from "./DomainSummary.js";
|
|
9
11
|
export * from "./ErrorResponse.js";
|
|
10
12
|
export * from "./GrammarCategory.js";
|
|
11
13
|
export * from "./GrammarScore.js";
|
|
14
|
+
export * from "./ImportSummary.js";
|
|
12
15
|
export * from "./Issue.js";
|
|
13
16
|
export * from "./IssueCategory.js";
|
|
17
|
+
export * from "./MatchedTerm.js";
|
|
14
18
|
export * from "./OriginalContent.js";
|
|
19
|
+
export * from "./PaginatedDomainsResponse.js";
|
|
20
|
+
export * from "./PaginatedTermSetsResponse.js";
|
|
15
21
|
export * from "./Position.js";
|
|
16
22
|
export * from "./QualityScore.js";
|
|
17
23
|
export * from "./RewriteContent.js";
|
|
18
24
|
export * from "./RewriteResponse.js";
|
|
19
25
|
export * from "./ScoreOutput.js";
|
|
26
|
+
export * from "./Severity.js";
|
|
20
27
|
export * from "./StyleCheckResponse.js";
|
|
21
28
|
export * from "./StyleGuide.js";
|
|
22
29
|
export * from "./StyleGuideResponse.js";
|
|
@@ -25,8 +32,17 @@ export * from "./StyleGuides.js";
|
|
|
25
32
|
export * from "./Suggestion.js";
|
|
26
33
|
export * from "./SuggestionOriginalContent.js";
|
|
27
34
|
export * from "./SuggestionResponse.js";
|
|
35
|
+
export * from "./TermCreateRequest.js";
|
|
36
|
+
export * from "./TermDetail.js";
|
|
37
|
+
export * from "./TermItem.js";
|
|
28
38
|
export * from "./TermReplaceCategory.js";
|
|
39
|
+
export * from "./TermResponse.js";
|
|
40
|
+
export * from "./TermSetResponse.js";
|
|
41
|
+
export * from "./TermSetResult.js";
|
|
42
|
+
export * from "./TermSetWithTerms.js";
|
|
43
|
+
export * from "./TermType.js";
|
|
29
44
|
export * from "./TerminologyScore.js";
|
|
45
|
+
export * from "./TerminologySearchResponse.js";
|
|
30
46
|
export * from "./ToneCategory.js";
|
|
31
47
|
export * from "./ToneScore.js";
|
|
32
48
|
export * from "./Tones.js";
|
|
@@ -22,17 +22,24 @@ __exportStar(require("./ConfigOptions.js"), exports);
|
|
|
22
22
|
__exportStar(require("./ConsistencyCategory.js"), exports);
|
|
23
23
|
__exportStar(require("./ConsistencyScore.js"), exports);
|
|
24
24
|
__exportStar(require("./Dialects.js"), exports);
|
|
25
|
+
__exportStar(require("./DomainResponse.js"), exports);
|
|
26
|
+
__exportStar(require("./DomainSummary.js"), exports);
|
|
25
27
|
__exportStar(require("./ErrorResponse.js"), exports);
|
|
26
28
|
__exportStar(require("./GrammarCategory.js"), exports);
|
|
27
29
|
__exportStar(require("./GrammarScore.js"), exports);
|
|
30
|
+
__exportStar(require("./ImportSummary.js"), exports);
|
|
28
31
|
__exportStar(require("./Issue.js"), exports);
|
|
29
32
|
__exportStar(require("./IssueCategory.js"), exports);
|
|
33
|
+
__exportStar(require("./MatchedTerm.js"), exports);
|
|
30
34
|
__exportStar(require("./OriginalContent.js"), exports);
|
|
35
|
+
__exportStar(require("./PaginatedDomainsResponse.js"), exports);
|
|
36
|
+
__exportStar(require("./PaginatedTermSetsResponse.js"), exports);
|
|
31
37
|
__exportStar(require("./Position.js"), exports);
|
|
32
38
|
__exportStar(require("./QualityScore.js"), exports);
|
|
33
39
|
__exportStar(require("./RewriteContent.js"), exports);
|
|
34
40
|
__exportStar(require("./RewriteResponse.js"), exports);
|
|
35
41
|
__exportStar(require("./ScoreOutput.js"), exports);
|
|
42
|
+
__exportStar(require("./Severity.js"), exports);
|
|
36
43
|
__exportStar(require("./StyleCheckResponse.js"), exports);
|
|
37
44
|
__exportStar(require("./StyleGuide.js"), exports);
|
|
38
45
|
__exportStar(require("./StyleGuideResponse.js"), exports);
|
|
@@ -41,8 +48,17 @@ __exportStar(require("./StyleGuides.js"), exports);
|
|
|
41
48
|
__exportStar(require("./Suggestion.js"), exports);
|
|
42
49
|
__exportStar(require("./SuggestionOriginalContent.js"), exports);
|
|
43
50
|
__exportStar(require("./SuggestionResponse.js"), exports);
|
|
51
|
+
__exportStar(require("./TermCreateRequest.js"), exports);
|
|
52
|
+
__exportStar(require("./TermDetail.js"), exports);
|
|
53
|
+
__exportStar(require("./TermItem.js"), exports);
|
|
44
54
|
__exportStar(require("./TermReplaceCategory.js"), exports);
|
|
55
|
+
__exportStar(require("./TermResponse.js"), exports);
|
|
56
|
+
__exportStar(require("./TermSetResponse.js"), exports);
|
|
57
|
+
__exportStar(require("./TermSetResult.js"), exports);
|
|
58
|
+
__exportStar(require("./TermSetWithTerms.js"), exports);
|
|
59
|
+
__exportStar(require("./TermType.js"), exports);
|
|
45
60
|
__exportStar(require("./TerminologyScore.js"), exports);
|
|
61
|
+
__exportStar(require("./TerminologySearchResponse.js"), exports);
|
|
46
62
|
__exportStar(require("./ToneCategory.js"), exports);
|
|
47
63
|
__exportStar(require("./ToneScore.js"), exports);
|
|
48
64
|
__exportStar(require("./Tones.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.4.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.d.mts
CHANGED
|
@@ -7,6 +7,7 @@ import { StyleGuides } from "./api/resources/styleGuides/client/Client.mjs";
|
|
|
7
7
|
import { StyleChecks } from "./api/resources/styleChecks/client/Client.mjs";
|
|
8
8
|
import { StyleSuggestions } from "./api/resources/styleSuggestions/client/Client.mjs";
|
|
9
9
|
import { StyleRewrites } from "./api/resources/styleRewrites/client/Client.mjs";
|
|
10
|
+
import { Terminology } from "./api/resources/terminology/client/Client.mjs";
|
|
10
11
|
export declare namespace MarkupAIClient {
|
|
11
12
|
interface Options {
|
|
12
13
|
environment?: core.Supplier<environments.MarkupAIEnvironment | string>;
|
|
@@ -36,9 +37,11 @@ export declare class MarkupAIClient {
|
|
|
36
37
|
protected _styleChecks: StyleChecks | undefined;
|
|
37
38
|
protected _styleSuggestions: StyleSuggestions | undefined;
|
|
38
39
|
protected _styleRewrites: StyleRewrites | undefined;
|
|
40
|
+
protected _terminology: Terminology | undefined;
|
|
39
41
|
constructor(_options: MarkupAIClient.Options);
|
|
40
42
|
get styleGuides(): StyleGuides;
|
|
41
43
|
get styleChecks(): StyleChecks;
|
|
42
44
|
get styleSuggestions(): StyleSuggestions;
|
|
43
45
|
get styleRewrites(): StyleRewrites;
|
|
46
|
+
get terminology(): Terminology;
|
|
44
47
|
}
|
package/dist/esm/Client.mjs
CHANGED
|
@@ -7,13 +7,14 @@ import { StyleGuides } from "./api/resources/styleGuides/client/Client.mjs";
|
|
|
7
7
|
import { StyleChecks } from "./api/resources/styleChecks/client/Client.mjs";
|
|
8
8
|
import { StyleSuggestions } from "./api/resources/styleSuggestions/client/Client.mjs";
|
|
9
9
|
import { StyleRewrites } from "./api/resources/styleRewrites/client/Client.mjs";
|
|
10
|
+
import { Terminology } from "./api/resources/terminology/client/Client.mjs";
|
|
10
11
|
export class MarkupAIClient {
|
|
11
12
|
constructor(_options) {
|
|
12
13
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
13
14
|
"X-Fern-Language": "JavaScript",
|
|
14
15
|
"X-Fern-SDK-Name": "@markupai/api",
|
|
15
|
-
"X-Fern-SDK-Version": "1.
|
|
16
|
-
"User-Agent": "@markupai/api/1.
|
|
16
|
+
"X-Fern-SDK-Version": "1.4.0",
|
|
17
|
+
"User-Agent": "@markupai/api/1.4.0",
|
|
17
18
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
18
19
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
19
20
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -34,4 +35,8 @@ export class MarkupAIClient {
|
|
|
34
35
|
var _a;
|
|
35
36
|
return ((_a = this._styleRewrites) !== null && _a !== void 0 ? _a : (this._styleRewrites = new StyleRewrites(this._options)));
|
|
36
37
|
}
|
|
38
|
+
get terminology() {
|
|
39
|
+
var _a;
|
|
40
|
+
return ((_a = this._terminology) !== null && _a !== void 0 ? _a : (this._terminology = new Terminology(this._options)));
|
|
41
|
+
}
|
|
37
42
|
}
|
|
@@ -2,7 +2,9 @@ export * as styleGuides from "./styleGuides/index.mjs";
|
|
|
2
2
|
export * as styleChecks from "./styleChecks/index.mjs";
|
|
3
3
|
export * as styleSuggestions from "./styleSuggestions/index.mjs";
|
|
4
4
|
export * as styleRewrites from "./styleRewrites/index.mjs";
|
|
5
|
+
export * as terminology from "./terminology/index.mjs";
|
|
5
6
|
export * from "./styleGuides/client/requests/index.mjs";
|
|
6
7
|
export * from "./styleChecks/client/requests/index.mjs";
|
|
7
8
|
export * from "./styleSuggestions/client/requests/index.mjs";
|
|
8
9
|
export * from "./styleRewrites/client/requests/index.mjs";
|
|
10
|
+
export * from "./terminology/client/requests/index.mjs";
|
|
@@ -2,7 +2,9 @@ export * as styleGuides from "./styleGuides/index.mjs";
|
|
|
2
2
|
export * as styleChecks from "./styleChecks/index.mjs";
|
|
3
3
|
export * as styleSuggestions from "./styleSuggestions/index.mjs";
|
|
4
4
|
export * as styleRewrites from "./styleRewrites/index.mjs";
|
|
5
|
+
export * as terminology from "./terminology/index.mjs";
|
|
5
6
|
export * from "./styleGuides/client/requests/index.mjs";
|
|
6
7
|
export * from "./styleChecks/client/requests/index.mjs";
|
|
7
8
|
export * from "./styleSuggestions/client/requests/index.mjs";
|
|
8
9
|
export * from "./styleRewrites/client/requests/index.mjs";
|
|
10
|
+
export * from "./terminology/client/requests/index.mjs";
|
|
@@ -105,10 +105,10 @@ export declare class StyleGuides {
|
|
|
105
105
|
deleteStyleGuide(styleGuideId: string, requestOptions?: StyleGuides.RequestOptions): core.HttpResponsePromise<void>;
|
|
106
106
|
private __deleteStyleGuide;
|
|
107
107
|
/**
|
|
108
|
-
* Update the name of an existing style guide.
|
|
108
|
+
* Update the name and/or terminology domain IDs of an existing style guide.
|
|
109
109
|
*
|
|
110
110
|
* @param {string} styleGuideId - The ID of the style guide.
|
|
111
|
-
* @param {MarkupAI.
|
|
111
|
+
* @param {MarkupAI.BodyStyleGuidesUpdateStyleGuide} request
|
|
112
112
|
* @param {StyleGuides.RequestOptions} requestOptions - Request-specific configuration.
|
|
113
113
|
*
|
|
114
114
|
* @throws {@link MarkupAI.UnauthorizedError}
|
|
@@ -119,11 +119,9 @@ export declare class StyleGuides {
|
|
|
119
119
|
* @throws {@link MarkupAI.InternalServerError}
|
|
120
120
|
*
|
|
121
121
|
* @example
|
|
122
|
-
* await client.styleGuides.updateStyleGuide("style_guide_id"
|
|
123
|
-
* name: "name"
|
|
124
|
-
* })
|
|
122
|
+
* await client.styleGuides.updateStyleGuide("style_guide_id")
|
|
125
123
|
*/
|
|
126
|
-
updateStyleGuide(styleGuideId: string, request
|
|
124
|
+
updateStyleGuide(styleGuideId: string, request?: MarkupAI.BodyStyleGuidesUpdateStyleGuide, requestOptions?: StyleGuides.RequestOptions): core.HttpResponsePromise<MarkupAI.StyleGuideResponse>;
|
|
127
125
|
private __updateStyleGuide;
|
|
128
126
|
protected _getAuthorizationHeader(): Promise<string>;
|
|
129
127
|
}
|
|
@@ -121,6 +121,11 @@ export class StyleGuides {
|
|
|
121
121
|
if (request.base_style_guide != null) {
|
|
122
122
|
_request.append("base_style_guide", request.base_style_guide);
|
|
123
123
|
}
|
|
124
|
+
if (request.terminology_domain_ids != null) {
|
|
125
|
+
for (const _item of request.terminology_domain_ids) {
|
|
126
|
+
_request.append("terminology_domain_ids", _item);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
124
129
|
const _maybeEncodedRequest = yield _request.getRequest();
|
|
125
130
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({ Authorization: yield this._getAuthorizationHeader() }, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
126
131
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
@@ -320,10 +325,10 @@ export class StyleGuides {
|
|
|
320
325
|
});
|
|
321
326
|
}
|
|
322
327
|
/**
|
|
323
|
-
* Update the name of an existing style guide.
|
|
328
|
+
* Update the name and/or terminology domain IDs of an existing style guide.
|
|
324
329
|
*
|
|
325
330
|
* @param {string} styleGuideId - The ID of the style guide.
|
|
326
|
-
* @param {MarkupAI.
|
|
331
|
+
* @param {MarkupAI.BodyStyleGuidesUpdateStyleGuide} request
|
|
327
332
|
* @param {StyleGuides.RequestOptions} requestOptions - Request-specific configuration.
|
|
328
333
|
*
|
|
329
334
|
* @throws {@link MarkupAI.UnauthorizedError}
|
|
@@ -334,15 +339,13 @@ export class StyleGuides {
|
|
|
334
339
|
* @throws {@link MarkupAI.InternalServerError}
|
|
335
340
|
*
|
|
336
341
|
* @example
|
|
337
|
-
* await client.styleGuides.updateStyleGuide("style_guide_id"
|
|
338
|
-
* name: "name"
|
|
339
|
-
* })
|
|
342
|
+
* await client.styleGuides.updateStyleGuide("style_guide_id")
|
|
340
343
|
*/
|
|
341
|
-
updateStyleGuide(styleGuideId, request, requestOptions) {
|
|
344
|
+
updateStyleGuide(styleGuideId, request = {}, requestOptions) {
|
|
342
345
|
return core.HttpResponsePromise.fromPromise(this.__updateStyleGuide(styleGuideId, request, requestOptions));
|
|
343
346
|
}
|
|
344
|
-
__updateStyleGuide(
|
|
345
|
-
return __awaiter(this,
|
|
347
|
+
__updateStyleGuide(styleGuideId_1) {
|
|
348
|
+
return __awaiter(this, arguments, void 0, function* (styleGuideId, request = {}, requestOptions) {
|
|
346
349
|
var _a, _b, _c, _d;
|
|
347
350
|
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
348
351
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
package/dist/esm/api/resources/styleGuides/client/requests/BodyStyleGuidesUpdateStyleGuide.d.mts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {}
|
|
7
|
+
*/
|
|
8
|
+
export interface BodyStyleGuidesUpdateStyleGuide {
|
|
9
|
+
/** The name of the style guide. */
|
|
10
|
+
name?: string;
|
|
11
|
+
/** List of domain IDs to filter terminology searches by. NULL or empty list means no filtering. */
|
|
12
|
+
terminology_domain_ids?: string[];
|
|
13
|
+
}
|
|
@@ -17,4 +17,6 @@ export interface StyleGuideRequestBody {
|
|
|
17
17
|
name: string;
|
|
18
18
|
/** The base style guide to extend (AP, Chicago, or Microsoft). If not provided, the style guide will be created from scratch. */
|
|
19
19
|
base_style_guide?: MarkupAI.BaseStyleGuideType;
|
|
20
|
+
/** List of domain IDs to filter terminology searches by. NULL or empty list means no filtering. */
|
|
21
|
+
terminology_domain_ids?: string[];
|
|
20
22
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { type StyleGuideRequestBody } from "./StyleGuideRequestBody.mjs";
|
|
2
|
-
export { type
|
|
2
|
+
export { type BodyStyleGuidesUpdateStyleGuide } from "./BodyStyleGuidesUpdateStyleGuide.mjs";
|
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments.mjs";
|
|
5
|
+
import * as core from "../../../../core/index.mjs";
|
|
6
|
+
import * as MarkupAI from "../../../index.mjs";
|
|
7
|
+
export declare namespace Terminology {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.MarkupAIEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
token: core.Supplier<core.BearerToken>;
|
|
13
|
+
/** Additional headers to include in requests. */
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
|
+
fetcher?: core.FetchFunction;
|
|
16
|
+
}
|
|
17
|
+
interface RequestOptions {
|
|
18
|
+
/** The maximum time to wait for a response in seconds. */
|
|
19
|
+
timeoutInSeconds?: number;
|
|
20
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
21
|
+
maxRetries?: number;
|
|
22
|
+
/** A hook to abort the request. */
|
|
23
|
+
abortSignal?: AbortSignal;
|
|
24
|
+
/** Additional query string parameters to include in the request. */
|
|
25
|
+
queryParams?: Record<string, unknown>;
|
|
26
|
+
/** Additional headers to include in the request. */
|
|
27
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Manage term sets and terms.
|
|
32
|
+
*/
|
|
33
|
+
export declare class Terminology {
|
|
34
|
+
protected readonly _options: Terminology.Options;
|
|
35
|
+
constructor(_options: Terminology.Options);
|
|
36
|
+
/**
|
|
37
|
+
* Exports all term sets, terms and domains to CSV. The exported CSV follows the same format as the CSV import.
|
|
38
|
+
*
|
|
39
|
+
* @param {Terminology.RequestOptions} requestOptions - Request-specific configuration.
|
|
40
|
+
*
|
|
41
|
+
* @throws {@link MarkupAI.UnauthorizedError}
|
|
42
|
+
* @throws {@link MarkupAI.ForbiddenError}
|
|
43
|
+
* @throws {@link MarkupAI.InternalServerError}
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* await client.terminology.exportTerminology()
|
|
47
|
+
*/
|
|
48
|
+
exportTerminology(requestOptions?: Terminology.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
49
|
+
private __exportTerminology;
|
|
50
|
+
/**
|
|
51
|
+
* Uploads a CSV or ACTIF XML file and imports terminology.
|
|
52
|
+
*
|
|
53
|
+
* **CSV Format Requirements:**
|
|
54
|
+
* - CSV must include columns: Prohibited, Preferred, Context-Dependent, Instructions, Domains
|
|
55
|
+
* - The first row must contain the column headers in the exact same order as shown above
|
|
56
|
+
* - Multiple values within a single cell should be separated by semicolons with a space (e.g., term1; term2; term3)
|
|
57
|
+
* - Empty cells are allowed
|
|
58
|
+
* - The CSV import format is the same as the CSV export format.
|
|
59
|
+
*
|
|
60
|
+
* @param {MarkupAI.BodyTerminologyImportTerminology} request
|
|
61
|
+
* @param {Terminology.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link MarkupAI.UnauthorizedError}
|
|
64
|
+
* @throws {@link MarkupAI.ForbiddenError}
|
|
65
|
+
* @throws {@link MarkupAI.UnprocessableEntityError}
|
|
66
|
+
* @throws {@link MarkupAI.InternalServerError}
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* import { createReadStream } from "fs";
|
|
70
|
+
* await client.terminology.importTerminology({
|
|
71
|
+
* file: fs.createReadStream("/path/to/your/file"),
|
|
72
|
+
* delete_existing: true
|
|
73
|
+
* })
|
|
74
|
+
*/
|
|
75
|
+
importTerminology(request: MarkupAI.BodyTerminologyImportTerminology, requestOptions?: Terminology.RequestOptions): core.HttpResponsePromise<MarkupAI.ImportSummary>;
|
|
76
|
+
private __importTerminology;
|
|
77
|
+
/**
|
|
78
|
+
* Searches the text for relevant terminology and returns matched term sets.
|
|
79
|
+
*
|
|
80
|
+
* Term sets are matched if any word sequence (up to 5 words) in the text is similar to one of the terms of the term set.
|
|
81
|
+
* The similarity measure used is a trigram similarity of 0.5 or higher between the word sequence and the term.
|
|
82
|
+
*
|
|
83
|
+
* @param {MarkupAI.TerminologySearchTerminologyRequest} request
|
|
84
|
+
* @param {Terminology.RequestOptions} requestOptions - Request-specific configuration.
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link MarkupAI.UnauthorizedError}
|
|
87
|
+
* @throws {@link MarkupAI.ForbiddenError}
|
|
88
|
+
* @throws {@link MarkupAI.UnprocessableEntityError}
|
|
89
|
+
* @throws {@link MarkupAI.InternalServerError}
|
|
90
|
+
*
|
|
91
|
+
* @example
|
|
92
|
+
* await client.terminology.searchTerminology({
|
|
93
|
+
* query: "query"
|
|
94
|
+
* })
|
|
95
|
+
*/
|
|
96
|
+
searchTerminology(request: MarkupAI.TerminologySearchTerminologyRequest, requestOptions?: Terminology.RequestOptions): core.HttpResponsePromise<MarkupAI.TerminologySearchResponse>;
|
|
97
|
+
private __searchTerminology;
|
|
98
|
+
/**
|
|
99
|
+
* Get a pageable list of term sets with all their associated terms and domains.
|
|
100
|
+
*
|
|
101
|
+
* The search filter searches the term set instructions and term text fields.
|
|
102
|
+
*
|
|
103
|
+
* @param {MarkupAI.TerminologyListTermSetsRequest} request
|
|
104
|
+
* @param {Terminology.RequestOptions} requestOptions - Request-specific configuration.
|
|
105
|
+
*
|
|
106
|
+
* @throws {@link MarkupAI.UnauthorizedError}
|
|
107
|
+
* @throws {@link MarkupAI.ForbiddenError}
|
|
108
|
+
* @throws {@link MarkupAI.UnprocessableEntityError}
|
|
109
|
+
* @throws {@link MarkupAI.InternalServerError}
|
|
110
|
+
*
|
|
111
|
+
* @example
|
|
112
|
+
* await client.terminology.listTermSets({
|
|
113
|
+
* page: 1,
|
|
114
|
+
* page_size: 1,
|
|
115
|
+
* search_term: "search_term"
|
|
116
|
+
* })
|
|
117
|
+
*/
|
|
118
|
+
listTermSets(request?: MarkupAI.TerminologyListTermSetsRequest, requestOptions?: Terminology.RequestOptions): core.HttpResponsePromise<MarkupAI.PaginatedTermSetsResponse>;
|
|
119
|
+
private __listTermSets;
|
|
120
|
+
/**
|
|
121
|
+
* Create a new term set. Terms and domains are linked to term sets.
|
|
122
|
+
* The term set instructions text will be used to determine whether a term should be flagged in the text and what the term replacement should be.
|
|
123
|
+
*
|
|
124
|
+
* @param {MarkupAI.TermSetCreateRequest} request
|
|
125
|
+
* @param {Terminology.RequestOptions} requestOptions - Request-specific configuration.
|
|
126
|
+
*
|
|
127
|
+
* @throws {@link MarkupAI.UnauthorizedError}
|
|
128
|
+
* @throws {@link MarkupAI.ForbiddenError}
|
|
129
|
+
* @throws {@link MarkupAI.UnprocessableEntityError}
|
|
130
|
+
* @throws {@link MarkupAI.InternalServerError}
|
|
131
|
+
*
|
|
132
|
+
* @example
|
|
133
|
+
* await client.terminology.createTermSet({
|
|
134
|
+
* instructions: "instructions"
|
|
135
|
+
* })
|
|
136
|
+
*/
|
|
137
|
+
createTermSet(request: MarkupAI.TermSetCreateRequest, requestOptions?: Terminology.RequestOptions): core.HttpResponsePromise<MarkupAI.TermSetResponse>;
|
|
138
|
+
private __createTermSet;
|
|
139
|
+
/**
|
|
140
|
+
* @param {string} termSetId - UUID of the term set
|
|
141
|
+
* @param {Terminology.RequestOptions} requestOptions - Request-specific configuration.
|
|
142
|
+
*
|
|
143
|
+
* @throws {@link MarkupAI.UnauthorizedError}
|
|
144
|
+
* @throws {@link MarkupAI.ForbiddenError}
|
|
145
|
+
* @throws {@link MarkupAI.UnprocessableEntityError}
|
|
146
|
+
* @throws {@link MarkupAI.InternalServerError}
|
|
147
|
+
*
|
|
148
|
+
* @example
|
|
149
|
+
* await client.terminology.getTermSet("term_set_id")
|
|
150
|
+
*/
|
|
151
|
+
getTermSet(termSetId: string, requestOptions?: Terminology.RequestOptions): core.HttpResponsePromise<MarkupAI.TermSetWithTerms>;
|
|
152
|
+
private __getTermSet;
|
|
153
|
+
/**
|
|
154
|
+
* @param {string} termSetId - UUID of the term set
|
|
155
|
+
* @param {Terminology.RequestOptions} requestOptions - Request-specific configuration.
|
|
156
|
+
*
|
|
157
|
+
* @throws {@link MarkupAI.UnauthorizedError}
|
|
158
|
+
* @throws {@link MarkupAI.ForbiddenError}
|
|
159
|
+
* @throws {@link MarkupAI.UnprocessableEntityError}
|
|
160
|
+
* @throws {@link MarkupAI.InternalServerError}
|
|
161
|
+
*
|
|
162
|
+
* @example
|
|
163
|
+
* await client.terminology.deleteTermSet("term_set_id")
|
|
164
|
+
*/
|
|
165
|
+
deleteTermSet(termSetId: string, requestOptions?: Terminology.RequestOptions): core.HttpResponsePromise<void>;
|
|
166
|
+
private __deleteTermSet;
|
|
167
|
+
/**
|
|
168
|
+
* @param {string} termSetId - UUID of the term set
|
|
169
|
+
* @param {MarkupAI.TermSetUpdateRequest} request
|
|
170
|
+
* @param {Terminology.RequestOptions} requestOptions - Request-specific configuration.
|
|
171
|
+
*
|
|
172
|
+
* @throws {@link MarkupAI.UnauthorizedError}
|
|
173
|
+
* @throws {@link MarkupAI.ForbiddenError}
|
|
174
|
+
* @throws {@link MarkupAI.UnprocessableEntityError}
|
|
175
|
+
* @throws {@link MarkupAI.InternalServerError}
|
|
176
|
+
*
|
|
177
|
+
* @example
|
|
178
|
+
* await client.terminology.updateTermSet("term_set_id")
|
|
179
|
+
*/
|
|
180
|
+
updateTermSet(termSetId: string, request?: MarkupAI.TermSetUpdateRequest, requestOptions?: Terminology.RequestOptions): core.HttpResponsePromise<MarkupAI.TermSetResponse>;
|
|
181
|
+
private __updateTermSet;
|
|
182
|
+
/**
|
|
183
|
+
* Create terms that should be matched in the text. The term types are:
|
|
184
|
+
*
|
|
185
|
+
* * **preferred**: this is the preferred term for the associated term set
|
|
186
|
+
* * **prohibited**: this term should not be used to talk about the term set
|
|
187
|
+
* * **context_dependent**: this term is correct in certain cases, but incorrect in others, the instructions field of the term set should explain when the term is correct and when it is incorrect
|
|
188
|
+
*
|
|
189
|
+
* @param {string} termSetId - UUID of the term set
|
|
190
|
+
* @param {MarkupAI.TermCreateRequest} request
|
|
191
|
+
* @param {Terminology.RequestOptions} requestOptions - Request-specific configuration.
|
|
192
|
+
*
|
|
193
|
+
* @throws {@link MarkupAI.UnauthorizedError}
|
|
194
|
+
* @throws {@link MarkupAI.ForbiddenError}
|
|
195
|
+
* @throws {@link MarkupAI.UnprocessableEntityError}
|
|
196
|
+
* @throws {@link MarkupAI.InternalServerError}
|
|
197
|
+
*
|
|
198
|
+
* @example
|
|
199
|
+
* await client.terminology.createTerm("term_set_id", {
|
|
200
|
+
* term: "term",
|
|
201
|
+
* type: "preferred"
|
|
202
|
+
* })
|
|
203
|
+
*/
|
|
204
|
+
createTerm(termSetId: string, request: MarkupAI.TermCreateRequest, requestOptions?: Terminology.RequestOptions): core.HttpResponsePromise<MarkupAI.TermResponse>;
|
|
205
|
+
private __createTerm;
|
|
206
|
+
/**
|
|
207
|
+
* @param {string} termSetId - UUID of the term set
|
|
208
|
+
* @param {string} termId - UUID of the term
|
|
209
|
+
* @param {Terminology.RequestOptions} requestOptions - Request-specific configuration.
|
|
210
|
+
*
|
|
211
|
+
* @throws {@link MarkupAI.UnauthorizedError}
|
|
212
|
+
* @throws {@link MarkupAI.ForbiddenError}
|
|
213
|
+
* @throws {@link MarkupAI.UnprocessableEntityError}
|
|
214
|
+
* @throws {@link MarkupAI.InternalServerError}
|
|
215
|
+
*
|
|
216
|
+
* @example
|
|
217
|
+
* await client.terminology.getTerm("term_set_id", "term_id")
|
|
218
|
+
*/
|
|
219
|
+
getTerm(termSetId: string, termId: string, requestOptions?: Terminology.RequestOptions): core.HttpResponsePromise<MarkupAI.TermResponse>;
|
|
220
|
+
private __getTerm;
|
|
221
|
+
/**
|
|
222
|
+
* @param {string} termSetId - UUID of the term set
|
|
223
|
+
* @param {string} termId - UUID of the term
|
|
224
|
+
* @param {MarkupAI.TermUpdateRequest} request
|
|
225
|
+
* @param {Terminology.RequestOptions} requestOptions - Request-specific configuration.
|
|
226
|
+
*
|
|
227
|
+
* @throws {@link MarkupAI.UnauthorizedError}
|
|
228
|
+
* @throws {@link MarkupAI.ForbiddenError}
|
|
229
|
+
* @throws {@link MarkupAI.UnprocessableEntityError}
|
|
230
|
+
* @throws {@link MarkupAI.InternalServerError}
|
|
231
|
+
*
|
|
232
|
+
* @example
|
|
233
|
+
* await client.terminology.updateTerm("term_set_id", "term_id", {
|
|
234
|
+
* term: "term",
|
|
235
|
+
* type: "preferred"
|
|
236
|
+
* })
|
|
237
|
+
*/
|
|
238
|
+
updateTerm(termSetId: string, termId: string, request: MarkupAI.TermUpdateRequest, requestOptions?: Terminology.RequestOptions): core.HttpResponsePromise<MarkupAI.TermResponse>;
|
|
239
|
+
private __updateTerm;
|
|
240
|
+
/**
|
|
241
|
+
* @param {string} termSetId - UUID of the term set
|
|
242
|
+
* @param {string} termId - UUID of the term
|
|
243
|
+
* @param {Terminology.RequestOptions} requestOptions - Request-specific configuration.
|
|
244
|
+
*
|
|
245
|
+
* @throws {@link MarkupAI.UnauthorizedError}
|
|
246
|
+
* @throws {@link MarkupAI.ForbiddenError}
|
|
247
|
+
* @throws {@link MarkupAI.UnprocessableEntityError}
|
|
248
|
+
* @throws {@link MarkupAI.InternalServerError}
|
|
249
|
+
*
|
|
250
|
+
* @example
|
|
251
|
+
* await client.terminology.deleteTerm("term_set_id", "term_id")
|
|
252
|
+
*/
|
|
253
|
+
deleteTerm(termSetId: string, termId: string, requestOptions?: Terminology.RequestOptions): core.HttpResponsePromise<void>;
|
|
254
|
+
private __deleteTerm;
|
|
255
|
+
/**
|
|
256
|
+
* @param {MarkupAI.TerminologyListDomainsRequest} request
|
|
257
|
+
* @param {Terminology.RequestOptions} requestOptions - Request-specific configuration.
|
|
258
|
+
*
|
|
259
|
+
* @throws {@link MarkupAI.UnauthorizedError}
|
|
260
|
+
* @throws {@link MarkupAI.ForbiddenError}
|
|
261
|
+
* @throws {@link MarkupAI.UnprocessableEntityError}
|
|
262
|
+
* @throws {@link MarkupAI.InternalServerError}
|
|
263
|
+
*
|
|
264
|
+
* @example
|
|
265
|
+
* await client.terminology.listDomains({
|
|
266
|
+
* page: 1,
|
|
267
|
+
* page_size: 1,
|
|
268
|
+
* search: "search"
|
|
269
|
+
* })
|
|
270
|
+
*/
|
|
271
|
+
listDomains(request?: MarkupAI.TerminologyListDomainsRequest, requestOptions?: Terminology.RequestOptions): core.HttpResponsePromise<MarkupAI.PaginatedDomainsResponse>;
|
|
272
|
+
private __listDomains;
|
|
273
|
+
/**
|
|
274
|
+
* @param {MarkupAI.DomainCreateRequest} request
|
|
275
|
+
* @param {Terminology.RequestOptions} requestOptions - Request-specific configuration.
|
|
276
|
+
*
|
|
277
|
+
* @throws {@link MarkupAI.UnauthorizedError}
|
|
278
|
+
* @throws {@link MarkupAI.ForbiddenError}
|
|
279
|
+
* @throws {@link MarkupAI.UnprocessableEntityError}
|
|
280
|
+
* @throws {@link MarkupAI.InternalServerError}
|
|
281
|
+
*
|
|
282
|
+
* @example
|
|
283
|
+
* await client.terminology.createDomain({
|
|
284
|
+
* name: "name"
|
|
285
|
+
* })
|
|
286
|
+
*/
|
|
287
|
+
createDomain(request: MarkupAI.DomainCreateRequest, requestOptions?: Terminology.RequestOptions): core.HttpResponsePromise<MarkupAI.DomainResponse>;
|
|
288
|
+
private __createDomain;
|
|
289
|
+
/**
|
|
290
|
+
* @param {string} domainId - UUID of the domain
|
|
291
|
+
* @param {Terminology.RequestOptions} requestOptions - Request-specific configuration.
|
|
292
|
+
*
|
|
293
|
+
* @throws {@link MarkupAI.UnauthorizedError}
|
|
294
|
+
* @throws {@link MarkupAI.ForbiddenError}
|
|
295
|
+
* @throws {@link MarkupAI.UnprocessableEntityError}
|
|
296
|
+
* @throws {@link MarkupAI.InternalServerError}
|
|
297
|
+
*
|
|
298
|
+
* @example
|
|
299
|
+
* await client.terminology.getDomain("domain_id")
|
|
300
|
+
*/
|
|
301
|
+
getDomain(domainId: string, requestOptions?: Terminology.RequestOptions): core.HttpResponsePromise<MarkupAI.DomainResponse>;
|
|
302
|
+
private __getDomain;
|
|
303
|
+
/**
|
|
304
|
+
* @param {string} domainId - UUID of the domain
|
|
305
|
+
* @param {Terminology.RequestOptions} requestOptions - Request-specific configuration.
|
|
306
|
+
*
|
|
307
|
+
* @throws {@link MarkupAI.UnauthorizedError}
|
|
308
|
+
* @throws {@link MarkupAI.ForbiddenError}
|
|
309
|
+
* @throws {@link MarkupAI.UnprocessableEntityError}
|
|
310
|
+
* @throws {@link MarkupAI.InternalServerError}
|
|
311
|
+
*
|
|
312
|
+
* @example
|
|
313
|
+
* await client.terminology.deleteDomain("domain_id")
|
|
314
|
+
*/
|
|
315
|
+
deleteDomain(domainId: string, requestOptions?: Terminology.RequestOptions): core.HttpResponsePromise<void>;
|
|
316
|
+
private __deleteDomain;
|
|
317
|
+
/**
|
|
318
|
+
* @param {string} domainId - UUID of the domain
|
|
319
|
+
* @param {MarkupAI.DomainUpdateRequest} request
|
|
320
|
+
* @param {Terminology.RequestOptions} requestOptions - Request-specific configuration.
|
|
321
|
+
*
|
|
322
|
+
* @throws {@link MarkupAI.UnauthorizedError}
|
|
323
|
+
* @throws {@link MarkupAI.ForbiddenError}
|
|
324
|
+
* @throws {@link MarkupAI.UnprocessableEntityError}
|
|
325
|
+
* @throws {@link MarkupAI.InternalServerError}
|
|
326
|
+
*
|
|
327
|
+
* @example
|
|
328
|
+
* await client.terminology.updateDomain("domain_id")
|
|
329
|
+
*/
|
|
330
|
+
updateDomain(domainId: string, request?: MarkupAI.DomainUpdateRequest, requestOptions?: Terminology.RequestOptions): core.HttpResponsePromise<MarkupAI.DomainResponse>;
|
|
331
|
+
private __updateDomain;
|
|
332
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
333
|
+
}
|