@markupai/api 1.4.0 → 1.5.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/LICENSE +1 -1
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/types/StyleGuideResponse.d.ts +2 -0
- package/dist/cjs/api/types/Suggestion.d.ts +2 -0
- package/dist/cjs/api/types/Tones.d.ts +2 -1
- package/dist/cjs/api/types/Tones.js +1 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/types/StyleGuideResponse.d.mts +2 -0
- package/dist/esm/api/types/Suggestion.d.mts +2 -0
- package/dist/esm/api/types/Tones.d.mts +2 -1
- package/dist/esm/api/types/Tones.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
package/LICENSE
CHANGED
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
same "printed page" as the copyright notice for easier
|
|
187
187
|
identification within third-party archives.
|
|
188
188
|
|
|
189
|
-
Copyright (c)
|
|
189
|
+
Copyright (c) 2026 Markup-ai.
|
|
190
190
|
|
|
191
191
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
192
|
you may not use this file except in compliance with the License.
|
package/dist/cjs/Client.js
CHANGED
|
@@ -49,8 +49,8 @@ class MarkupAIClient {
|
|
|
49
49
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
50
50
|
"X-Fern-Language": "JavaScript",
|
|
51
51
|
"X-Fern-SDK-Name": "@markupai/api",
|
|
52
|
-
"X-Fern-SDK-Version": "1.
|
|
53
|
-
"User-Agent": "@markupai/api/1.
|
|
52
|
+
"X-Fern-SDK-Version": "1.5.0",
|
|
53
|
+
"User-Agent": "@markupai/api/1.5.0",
|
|
54
54
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
55
55
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
56
56
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -22,4 +22,6 @@ export interface StyleGuideResponse {
|
|
|
22
22
|
base_style_guide_type?: MarkupAI.BaseStyleGuideType;
|
|
23
23
|
/** List of domain IDs to filter terminology searches by. NULL or empty list means no filtering. */
|
|
24
24
|
terminology_domain_ids?: string[];
|
|
25
|
+
/** Whether this style guide has a tone prompt defined. */
|
|
26
|
+
has_tone_prompt?: boolean;
|
|
25
27
|
}
|
|
@@ -11,6 +11,8 @@ export interface Suggestion {
|
|
|
11
11
|
subcategory: Suggestion.Subcategory;
|
|
12
12
|
/** The suggested replacement text */
|
|
13
13
|
suggestion: string;
|
|
14
|
+
/** Explanation for the suggestion, generated by the LLM */
|
|
15
|
+
explanation?: string;
|
|
14
16
|
category?: MarkupAI.IssueCategory;
|
|
15
17
|
severity: MarkupAI.Severity;
|
|
16
18
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type Tones = "academic" | "confident" | "conversational" | "empathetic" | "engaging" | "friendly" | "professional" | "technical";
|
|
4
|
+
export type Tones = "academic" | "confident" | "conversational" | "empathetic" | "engaging" | "friendly" | "professional" | "style_guide" | "technical";
|
|
5
5
|
export declare const Tones: {
|
|
6
6
|
readonly Academic: "academic";
|
|
7
7
|
readonly Confident: "confident";
|
|
@@ -10,5 +10,6 @@ export declare const Tones: {
|
|
|
10
10
|
readonly Engaging: "engaging";
|
|
11
11
|
readonly Friendly: "friendly";
|
|
12
12
|
readonly Professional: "professional";
|
|
13
|
+
readonly StyleGuide: "style_guide";
|
|
13
14
|
readonly Technical: "technical";
|
|
14
15
|
};
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.5.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -13,8 +13,8 @@ export class MarkupAIClient {
|
|
|
13
13
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
14
14
|
"X-Fern-Language": "JavaScript",
|
|
15
15
|
"X-Fern-SDK-Name": "@markupai/api",
|
|
16
|
-
"X-Fern-SDK-Version": "1.
|
|
17
|
-
"User-Agent": "@markupai/api/1.
|
|
16
|
+
"X-Fern-SDK-Version": "1.5.0",
|
|
17
|
+
"User-Agent": "@markupai/api/1.5.0",
|
|
18
18
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
19
19
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
20
20
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -22,4 +22,6 @@ export interface StyleGuideResponse {
|
|
|
22
22
|
base_style_guide_type?: MarkupAI.BaseStyleGuideType;
|
|
23
23
|
/** List of domain IDs to filter terminology searches by. NULL or empty list means no filtering. */
|
|
24
24
|
terminology_domain_ids?: string[];
|
|
25
|
+
/** Whether this style guide has a tone prompt defined. */
|
|
26
|
+
has_tone_prompt?: boolean;
|
|
25
27
|
}
|
|
@@ -11,6 +11,8 @@ export interface Suggestion {
|
|
|
11
11
|
subcategory: Suggestion.Subcategory;
|
|
12
12
|
/** The suggested replacement text */
|
|
13
13
|
suggestion: string;
|
|
14
|
+
/** Explanation for the suggestion, generated by the LLM */
|
|
15
|
+
explanation?: string;
|
|
14
16
|
category?: MarkupAI.IssueCategory;
|
|
15
17
|
severity: MarkupAI.Severity;
|
|
16
18
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type Tones = "academic" | "confident" | "conversational" | "empathetic" | "engaging" | "friendly" | "professional" | "technical";
|
|
4
|
+
export type Tones = "academic" | "confident" | "conversational" | "empathetic" | "engaging" | "friendly" | "professional" | "style_guide" | "technical";
|
|
5
5
|
export declare const Tones: {
|
|
6
6
|
readonly Academic: "academic";
|
|
7
7
|
readonly Confident: "confident";
|
|
@@ -10,5 +10,6 @@ export declare const Tones: {
|
|
|
10
10
|
readonly Engaging: "engaging";
|
|
11
11
|
readonly Friendly: "friendly";
|
|
12
12
|
readonly Professional: "professional";
|
|
13
|
+
readonly StyleGuide: "style_guide";
|
|
13
14
|
readonly Technical: "technical";
|
|
14
15
|
};
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.5.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.
|
|
1
|
+
export const SDK_VERSION = "1.5.0";
|