@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 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) 2025 Markup-ai.
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.
@@ -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.4.0",
53
- "User-Agent": "@markupai/api/1.4.0",
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
  };
@@ -12,5 +12,6 @@ exports.Tones = {
12
12
  Engaging: "engaging",
13
13
  Friendly: "friendly",
14
14
  Professional: "professional",
15
+ StyleGuide: "style_guide",
15
16
  Technical: "technical",
16
17
  };
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.4.0";
1
+ export declare const SDK_VERSION = "1.5.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.4.0";
4
+ exports.SDK_VERSION = "1.5.0";
@@ -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.4.0",
17
- "User-Agent": "@markupai/api/1.4.0",
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
  };
@@ -9,5 +9,6 @@ export const Tones = {
9
9
  Engaging: "engaging",
10
10
  Friendly: "friendly",
11
11
  Professional: "professional",
12
+ StyleGuide: "style_guide",
12
13
  Technical: "technical",
13
14
  };
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.4.0";
1
+ export declare const SDK_VERSION = "1.5.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.4.0";
1
+ export const SDK_VERSION = "1.5.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markupai/api",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "private": false,
5
5
  "repository": "github:markupai/markup-ai-typescript-sdk",
6
6
  "license": "Apache-2.0",