@markupai/api 1.0.0 → 1.1.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 +18 -1
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/styleChecks/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/styleChecks/client/Client.js +2 -2
- package/dist/cjs/api/resources/{styleSuggestions/client/requests/CreateStyleSuggestionV1StyleSuggestionsPostRequest.d.ts → styleChecks/client/requests/StyleCheckRequestBody.d.ts} +4 -4
- package/dist/cjs/api/resources/styleChecks/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/styleGuides/client/Client.js +3 -0
- package/dist/cjs/api/resources/styleGuides/client/requests/StyleGuideRequestBody.d.ts +3 -0
- package/dist/cjs/api/resources/styleRewrites/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/styleRewrites/client/Client.js +2 -2
- package/dist/cjs/api/resources/{styleChecks/client/requests/CreateStyleCheckV1StyleChecksPostRequest.d.ts → styleRewrites/client/requests/StyleRewriteRequestBody.d.ts} +4 -4
- package/dist/cjs/api/resources/styleRewrites/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/styleSuggestions/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/styleSuggestions/client/Client.js +2 -2
- package/dist/cjs/api/resources/{styleRewrites/client/requests/CreateStyleRewriteV1StyleRewritesPostRequest.d.ts → styleSuggestions/client/requests/StyleSuggestionRequestBody.d.ts} +4 -4
- package/dist/cjs/api/resources/styleSuggestions/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/types/BaseStyleGuideType.d.ts +9 -0
- package/dist/cjs/api/types/BaseStyleGuideType.js +11 -0
- package/dist/cjs/api/types/StyleGuideResponse.d.ts +2 -0
- package/dist/cjs/api/types/WorkflowInfo.d.ts +2 -0
- package/dist/cjs/api/types/index.d.ts +1 -0
- package/dist/cjs/api/types/index.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/resources/styleChecks/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/styleChecks/client/Client.mjs +2 -2
- package/dist/esm/api/resources/{styleSuggestions/client/requests/CreateStyleSuggestionV1StyleSuggestionsPostRequest.d.mts → styleChecks/client/requests/StyleCheckRequestBody.d.mts} +4 -4
- package/dist/esm/api/resources/styleChecks/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/styleGuides/client/Client.mjs +3 -0
- package/dist/esm/api/resources/styleGuides/client/requests/StyleGuideRequestBody.d.mts +3 -0
- package/dist/esm/api/resources/styleRewrites/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/styleRewrites/client/Client.mjs +2 -2
- package/dist/esm/api/resources/styleRewrites/client/requests/{CreateStyleRewriteV1StyleRewritesPostRequest.d.mts → StyleRewriteRequestBody.d.mts} +4 -4
- package/dist/esm/api/resources/styleRewrites/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/styleSuggestions/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/styleSuggestions/client/Client.mjs +2 -2
- package/dist/esm/api/resources/{styleChecks/client/requests/CreateStyleCheckV1StyleChecksPostRequest.d.mts → styleSuggestions/client/requests/StyleSuggestionRequestBody.d.mts} +4 -4
- package/dist/esm/api/resources/styleSuggestions/client/requests/index.d.mts +1 -1
- package/dist/esm/api/types/BaseStyleGuideType.d.mts +9 -0
- package/dist/esm/api/types/BaseStyleGuideType.mjs +8 -0
- package/dist/esm/api/types/StyleGuideResponse.d.mts +2 -0
- package/dist/esm/api/types/WorkflowInfo.d.mts +2 -0
- package/dist/esm/api/types/index.d.mts +1 -0
- package/dist/esm/api/types/index.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +3 -3
- /package/dist/cjs/api/resources/styleChecks/client/requests/{CreateStyleCheckV1StyleChecksPostRequest.js → StyleCheckRequestBody.js} +0 -0
- /package/dist/cjs/api/resources/styleRewrites/client/requests/{CreateStyleRewriteV1StyleRewritesPostRequest.js → StyleRewriteRequestBody.js} +0 -0
- /package/dist/cjs/api/resources/styleSuggestions/client/requests/{CreateStyleSuggestionV1StyleSuggestionsPostRequest.js → StyleSuggestionRequestBody.js} +0 -0
- /package/dist/esm/api/resources/styleChecks/client/requests/{CreateStyleCheckV1StyleChecksPostRequest.mjs → StyleCheckRequestBody.mjs} +0 -0
- /package/dist/esm/api/resources/styleRewrites/client/requests/{CreateStyleRewriteV1StyleRewritesPostRequest.mjs → StyleRewriteRequestBody.mjs} +0 -0
- /package/dist/esm/api/resources/styleSuggestions/client/requests/{CreateStyleSuggestionV1StyleSuggestionsPostRequest.mjs → StyleSuggestionRequestBody.mjs} +0 -0
package/README.md
CHANGED
|
@@ -5,6 +5,23 @@
|
|
|
5
5
|
|
|
6
6
|
The official Markup AI SDK for interacting with the Markup AI API.
|
|
7
7
|
|
|
8
|
+
## Table of Contents
|
|
9
|
+
|
|
10
|
+
- [Installation](#installation)
|
|
11
|
+
- [Reference](#reference)
|
|
12
|
+
- [Usage](#usage)
|
|
13
|
+
- [Request and Response Types](#request-and-response-types)
|
|
14
|
+
- [Exception Handling](#exception-handling)
|
|
15
|
+
- [Advanced](#advanced)
|
|
16
|
+
- [Additional Headers](#additional-headers)
|
|
17
|
+
- [Additional Query String Parameters](#additional-query-string-parameters)
|
|
18
|
+
- [Retries](#retries)
|
|
19
|
+
- [Timeouts](#timeouts)
|
|
20
|
+
- [Aborting Requests](#aborting-requests)
|
|
21
|
+
- [Access Raw Response Data](#access-raw-response-data)
|
|
22
|
+
- [Runtime Compatibility](#runtime-compatibility)
|
|
23
|
+
- [Contributing](#contributing)
|
|
24
|
+
|
|
8
25
|
## Installation
|
|
9
26
|
|
|
10
27
|
```sh
|
|
@@ -26,7 +43,7 @@ const client = new MarkupAIClient({ token: "YOUR_TOKEN" });
|
|
|
26
43
|
await client.styleGuides.listStyleGuides();
|
|
27
44
|
```
|
|
28
45
|
|
|
29
|
-
## Request
|
|
46
|
+
## Request and Response Types
|
|
30
47
|
|
|
31
48
|
The SDK exports all request and response types as TypeScript interfaces. Simply import them with the
|
|
32
49
|
following namespace:
|
package/dist/cjs/Client.js
CHANGED
|
@@ -48,8 +48,8 @@ class MarkupAIClient {
|
|
|
48
48
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
49
49
|
"X-Fern-Language": "JavaScript",
|
|
50
50
|
"X-Fern-SDK-Name": "@markupai/api",
|
|
51
|
-
"X-Fern-SDK-Version": "1.
|
|
52
|
-
"User-Agent": "@markupai/api/1.
|
|
51
|
+
"X-Fern-SDK-Version": "1.1.0",
|
|
52
|
+
"User-Agent": "@markupai/api/1.1.0",
|
|
53
53
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
54
54
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
55
55
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -36,7 +36,7 @@ export declare class StyleChecks {
|
|
|
36
36
|
/**
|
|
37
37
|
* Analyze text for grammar, style, and clarity issues.
|
|
38
38
|
*
|
|
39
|
-
* @param {MarkupAI.
|
|
39
|
+
* @param {MarkupAI.StyleCheckRequestBody} request
|
|
40
40
|
* @param {StyleChecks.RequestOptions} requestOptions - Request-specific configuration.
|
|
41
41
|
*
|
|
42
42
|
* @throws {@link MarkupAI.UnauthorizedError}
|
|
@@ -54,7 +54,7 @@ export declare class StyleChecks {
|
|
|
54
54
|
* style_guide: "style_guide"
|
|
55
55
|
* })
|
|
56
56
|
*/
|
|
57
|
-
createStyleCheck(request: MarkupAI.
|
|
57
|
+
createStyleCheck(request: MarkupAI.StyleCheckRequestBody, requestOptions?: StyleChecks.RequestOptions): core.HttpResponsePromise<MarkupAI.WorkflowResponse>;
|
|
58
58
|
private __createStyleCheck;
|
|
59
59
|
/**
|
|
60
60
|
* Retrieve style check results.
|
|
@@ -61,7 +61,7 @@ class StyleChecks {
|
|
|
61
61
|
/**
|
|
62
62
|
* Analyze text for grammar, style, and clarity issues.
|
|
63
63
|
*
|
|
64
|
-
* @param {MarkupAI.
|
|
64
|
+
* @param {MarkupAI.StyleCheckRequestBody} request
|
|
65
65
|
* @param {StyleChecks.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
66
|
*
|
|
67
67
|
* @throws {@link MarkupAI.UnauthorizedError}
|
|
@@ -86,7 +86,6 @@ class StyleChecks {
|
|
|
86
86
|
return __awaiter(this, void 0, void 0, function* () {
|
|
87
87
|
var _a, _b, _c, _d;
|
|
88
88
|
const _request = yield core.newFormData();
|
|
89
|
-
yield _request.appendFile("file_upload", request.file_upload);
|
|
90
89
|
_request.append("dialect", request.dialect);
|
|
91
90
|
if (request.tone != null) {
|
|
92
91
|
_request.append("tone", request.tone);
|
|
@@ -95,6 +94,7 @@ class StyleChecks {
|
|
|
95
94
|
if (request.webhook_url != null) {
|
|
96
95
|
_request.append("webhook_url", request.webhook_url);
|
|
97
96
|
}
|
|
97
|
+
yield _request.appendFile("file_upload", request.file_upload);
|
|
98
98
|
const _maybeEncodedRequest = yield _request.getRequest();
|
|
99
99
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({ Authorization: yield this._getAuthorizationHeader() }, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
100
100
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as core from "../../../../../core/index.js";
|
|
5
4
|
import * as MarkupAI from "../../../../index.js";
|
|
5
|
+
import * as core from "../../../../../core/index.js";
|
|
6
6
|
/**
|
|
7
7
|
* @example
|
|
8
8
|
* {
|
|
@@ -11,9 +11,7 @@ import * as MarkupAI from "../../../../index.js";
|
|
|
11
11
|
* style_guide: "style_guide"
|
|
12
12
|
* }
|
|
13
13
|
*/
|
|
14
|
-
export interface
|
|
15
|
-
/** The document to analyze. Text files (.txt), PDFs (.pdf), and Markdown files (.md) are accepted. The max file size is 1.5 MB */
|
|
16
|
-
file_upload: core.file.Uploadable.FileLike;
|
|
14
|
+
export interface StyleCheckRequestBody {
|
|
17
15
|
/** The language variant you'd like us to use for analysis. Choose from American English, British English, or other supported dialects. */
|
|
18
16
|
dialect: MarkupAI.Dialects;
|
|
19
17
|
/** The tone variation you're aiming for. Options include formal, academic, casual, and other tone variations to match your content goals. */
|
|
@@ -22,4 +20,6 @@ export interface CreateStyleSuggestionV1StyleSuggestionsPostRequest {
|
|
|
22
20
|
style_guide: string;
|
|
23
21
|
/** A URL that results will be POSTed to once the process completes. */
|
|
24
22
|
webhook_url?: string;
|
|
23
|
+
/** The document to analyze. Text (.txt), Markdown (.md), HTML (.html .htm), DITA (.dita, .xml), and PDF (.pdf) files are accepted. The max file size is 1.5 MB. */
|
|
24
|
+
file_upload: core.file.Uploadable.FileLike;
|
|
25
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { type
|
|
1
|
+
export { type StyleCheckRequestBody } from "./StyleCheckRequestBody.js";
|
|
@@ -153,6 +153,9 @@ class StyleGuides {
|
|
|
153
153
|
const _request = yield core.newFormData();
|
|
154
154
|
yield _request.appendFile("file_upload", request.file_upload);
|
|
155
155
|
_request.append("name", request.name);
|
|
156
|
+
if (request.base_style_guide != null) {
|
|
157
|
+
_request.append("base_style_guide", request.base_style_guide);
|
|
158
|
+
}
|
|
156
159
|
const _maybeEncodedRequest = yield _request.getRequest();
|
|
157
160
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({ Authorization: yield this._getAuthorizationHeader() }, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
158
161
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as core from "../../../../../core/index.js";
|
|
5
|
+
import * as MarkupAI from "../../../../index.js";
|
|
5
6
|
/**
|
|
6
7
|
* @example
|
|
7
8
|
* {
|
|
@@ -14,4 +15,6 @@ export interface StyleGuideRequestBody {
|
|
|
14
15
|
file_upload: core.file.Uploadable.FileLike;
|
|
15
16
|
/** A friendly name for your style guide to help you identify it later. */
|
|
16
17
|
name: string;
|
|
18
|
+
/** The base style guide to extend (AP, Chicago, or Microsoft). If not provided, the style guide will be created from scratch. */
|
|
19
|
+
base_style_guide?: MarkupAI.BaseStyleGuideType;
|
|
17
20
|
}
|
|
@@ -36,7 +36,7 @@ export declare class StyleRewrites {
|
|
|
36
36
|
/**
|
|
37
37
|
* Rewrite text with style corrections applied.
|
|
38
38
|
*
|
|
39
|
-
* @param {MarkupAI.
|
|
39
|
+
* @param {MarkupAI.StyleRewriteRequestBody} request
|
|
40
40
|
* @param {StyleRewrites.RequestOptions} requestOptions - Request-specific configuration.
|
|
41
41
|
*
|
|
42
42
|
* @throws {@link MarkupAI.UnauthorizedError}
|
|
@@ -54,7 +54,7 @@ export declare class StyleRewrites {
|
|
|
54
54
|
* style_guide: "style_guide"
|
|
55
55
|
* })
|
|
56
56
|
*/
|
|
57
|
-
createStyleRewrite(request: MarkupAI.
|
|
57
|
+
createStyleRewrite(request: MarkupAI.StyleRewriteRequestBody, requestOptions?: StyleRewrites.RequestOptions): core.HttpResponsePromise<MarkupAI.WorkflowResponse>;
|
|
58
58
|
private __createStyleRewrite;
|
|
59
59
|
/**
|
|
60
60
|
* Retrieve rewrite results.
|
|
@@ -61,7 +61,7 @@ class StyleRewrites {
|
|
|
61
61
|
/**
|
|
62
62
|
* Rewrite text with style corrections applied.
|
|
63
63
|
*
|
|
64
|
-
* @param {MarkupAI.
|
|
64
|
+
* @param {MarkupAI.StyleRewriteRequestBody} request
|
|
65
65
|
* @param {StyleRewrites.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
66
|
*
|
|
67
67
|
* @throws {@link MarkupAI.UnauthorizedError}
|
|
@@ -86,7 +86,6 @@ class StyleRewrites {
|
|
|
86
86
|
return __awaiter(this, void 0, void 0, function* () {
|
|
87
87
|
var _a, _b, _c, _d;
|
|
88
88
|
const _request = yield core.newFormData();
|
|
89
|
-
yield _request.appendFile("file_upload", request.file_upload);
|
|
90
89
|
_request.append("dialect", request.dialect);
|
|
91
90
|
if (request.tone != null) {
|
|
92
91
|
_request.append("tone", request.tone);
|
|
@@ -95,6 +94,7 @@ class StyleRewrites {
|
|
|
95
94
|
if (request.webhook_url != null) {
|
|
96
95
|
_request.append("webhook_url", request.webhook_url);
|
|
97
96
|
}
|
|
97
|
+
yield _request.appendFile("file_upload", request.file_upload);
|
|
98
98
|
const _maybeEncodedRequest = yield _request.getRequest();
|
|
99
99
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({ Authorization: yield this._getAuthorizationHeader() }, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
100
100
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as core from "../../../../../core/index.js";
|
|
5
4
|
import * as MarkupAI from "../../../../index.js";
|
|
5
|
+
import * as core from "../../../../../core/index.js";
|
|
6
6
|
/**
|
|
7
7
|
* @example
|
|
8
8
|
* {
|
|
@@ -11,9 +11,7 @@ import * as MarkupAI from "../../../../index.js";
|
|
|
11
11
|
* style_guide: "style_guide"
|
|
12
12
|
* }
|
|
13
13
|
*/
|
|
14
|
-
export interface
|
|
15
|
-
/** The document to analyze. Text files (.txt), PDFs (.pdf), and Markdown files (.md) are accepted. The max file size is 1.5 MB */
|
|
16
|
-
file_upload: core.file.Uploadable.FileLike;
|
|
14
|
+
export interface StyleRewriteRequestBody {
|
|
17
15
|
/** The language variant you'd like us to use for analysis. Choose from American English, British English, or other supported dialects. */
|
|
18
16
|
dialect: MarkupAI.Dialects;
|
|
19
17
|
/** The tone variation you're aiming for. Options include formal, academic, casual, and other tone variations to match your content goals. */
|
|
@@ -22,4 +20,6 @@ export interface CreateStyleCheckV1StyleChecksPostRequest {
|
|
|
22
20
|
style_guide: string;
|
|
23
21
|
/** A URL that results will be POSTed to once the process completes. */
|
|
24
22
|
webhook_url?: string;
|
|
23
|
+
/** The document to rewrite. Text (.txt), Markdown (.md), HTML (.html .htm), and DITA (.dita, .xml) files are accepted. The max file size is 1.5 MB. */
|
|
24
|
+
file_upload: core.file.Uploadable.FileLike;
|
|
25
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { type
|
|
1
|
+
export { type StyleRewriteRequestBody } from "./StyleRewriteRequestBody.js";
|
|
@@ -36,7 +36,7 @@ export declare class StyleSuggestions {
|
|
|
36
36
|
/**
|
|
37
37
|
* Get suggested corrections for text.
|
|
38
38
|
*
|
|
39
|
-
* @param {MarkupAI.
|
|
39
|
+
* @param {MarkupAI.StyleSuggestionRequestBody} request
|
|
40
40
|
* @param {StyleSuggestions.RequestOptions} requestOptions - Request-specific configuration.
|
|
41
41
|
*
|
|
42
42
|
* @throws {@link MarkupAI.UnauthorizedError}
|
|
@@ -54,7 +54,7 @@ export declare class StyleSuggestions {
|
|
|
54
54
|
* style_guide: "style_guide"
|
|
55
55
|
* })
|
|
56
56
|
*/
|
|
57
|
-
createStyleSuggestion(request: MarkupAI.
|
|
57
|
+
createStyleSuggestion(request: MarkupAI.StyleSuggestionRequestBody, requestOptions?: StyleSuggestions.RequestOptions): core.HttpResponsePromise<MarkupAI.WorkflowResponse>;
|
|
58
58
|
private __createStyleSuggestion;
|
|
59
59
|
/**
|
|
60
60
|
* Retrieve suggestion results.
|
|
@@ -61,7 +61,7 @@ class StyleSuggestions {
|
|
|
61
61
|
/**
|
|
62
62
|
* Get suggested corrections for text.
|
|
63
63
|
*
|
|
64
|
-
* @param {MarkupAI.
|
|
64
|
+
* @param {MarkupAI.StyleSuggestionRequestBody} request
|
|
65
65
|
* @param {StyleSuggestions.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
66
|
*
|
|
67
67
|
* @throws {@link MarkupAI.UnauthorizedError}
|
|
@@ -86,7 +86,6 @@ class StyleSuggestions {
|
|
|
86
86
|
return __awaiter(this, void 0, void 0, function* () {
|
|
87
87
|
var _a, _b, _c, _d;
|
|
88
88
|
const _request = yield core.newFormData();
|
|
89
|
-
yield _request.appendFile("file_upload", request.file_upload);
|
|
90
89
|
_request.append("dialect", request.dialect);
|
|
91
90
|
if (request.tone != null) {
|
|
92
91
|
_request.append("tone", request.tone);
|
|
@@ -95,6 +94,7 @@ class StyleSuggestions {
|
|
|
95
94
|
if (request.webhook_url != null) {
|
|
96
95
|
_request.append("webhook_url", request.webhook_url);
|
|
97
96
|
}
|
|
97
|
+
yield _request.appendFile("file_upload", request.file_upload);
|
|
98
98
|
const _maybeEncodedRequest = yield _request.getRequest();
|
|
99
99
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({ Authorization: yield this._getAuthorizationHeader() }, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
100
100
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as core from "../../../../../core/index.js";
|
|
5
4
|
import * as MarkupAI from "../../../../index.js";
|
|
5
|
+
import * as core from "../../../../../core/index.js";
|
|
6
6
|
/**
|
|
7
7
|
* @example
|
|
8
8
|
* {
|
|
@@ -11,9 +11,7 @@ import * as MarkupAI from "../../../../index.js";
|
|
|
11
11
|
* style_guide: "style_guide"
|
|
12
12
|
* }
|
|
13
13
|
*/
|
|
14
|
-
export interface
|
|
15
|
-
/** The document to analyze. Text files (.txt), PDFs (.pdf), and Markdown files (.md) are accepted. The max file size is 1.5 MB */
|
|
16
|
-
file_upload: core.file.Uploadable.FileLike;
|
|
14
|
+
export interface StyleSuggestionRequestBody {
|
|
17
15
|
/** The language variant you'd like us to use for analysis. Choose from American English, British English, or other supported dialects. */
|
|
18
16
|
dialect: MarkupAI.Dialects;
|
|
19
17
|
/** The tone variation you're aiming for. Options include formal, academic, casual, and other tone variations to match your content goals. */
|
|
@@ -22,4 +20,6 @@ export interface CreateStyleRewriteV1StyleRewritesPostRequest {
|
|
|
22
20
|
style_guide: string;
|
|
23
21
|
/** A URL that results will be POSTed to once the process completes. */
|
|
24
22
|
webhook_url?: string;
|
|
23
|
+
/** The document to analyze. Text (.txt), Markdown (.md), HTML (.html .htm), DITA (.dita, .xml), and PDF (.pdf) files are accepted. The max file size is 1.5 MB. */
|
|
24
|
+
file_upload: core.file.Uploadable.FileLike;
|
|
25
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { type
|
|
1
|
+
export { type StyleSuggestionRequestBody } from "./StyleSuggestionRequestBody.js";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type BaseStyleGuideType = "ap" | "chicago" | "microsoft";
|
|
5
|
+
export declare const BaseStyleGuideType: {
|
|
6
|
+
readonly Ap: "ap";
|
|
7
|
+
readonly Chicago: "chicago";
|
|
8
|
+
readonly Microsoft: "microsoft";
|
|
9
|
+
};
|
|
@@ -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.BaseStyleGuideType = void 0;
|
|
7
|
+
exports.BaseStyleGuideType = {
|
|
8
|
+
Ap: "ap",
|
|
9
|
+
Chicago: "chicago",
|
|
10
|
+
Microsoft: "microsoft",
|
|
11
|
+
};
|
|
@@ -18,4 +18,6 @@ export interface StyleGuideResponse {
|
|
|
18
18
|
updated_by?: string;
|
|
19
19
|
/** User-friendly summary of the style guide's contents and characteristics */
|
|
20
20
|
summary?: string;
|
|
21
|
+
/** The base style guide type that this style guide extends (AP, Chicago, or Microsoft). */
|
|
22
|
+
base_style_guide_type?: MarkupAI.BaseStyleGuideType;
|
|
21
23
|
}
|
|
@@ -7,6 +7,8 @@ export interface WorkflowInfo {
|
|
|
7
7
|
id: string;
|
|
8
8
|
/** API version */
|
|
9
9
|
api_version?: string;
|
|
10
|
+
/** The original name of the file passed into the workflow */
|
|
11
|
+
filename?: string;
|
|
10
12
|
/** UTC timestamp when the result was generated */
|
|
11
13
|
generated_at?: string;
|
|
12
14
|
status?: MarkupAI.WorkflowStatus;
|
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./AnalysisScore.js"), exports);
|
|
18
|
+
__exportStar(require("./BaseStyleGuideType.js"), exports);
|
|
18
19
|
__exportStar(require("./ClarityCategory.js"), exports);
|
|
19
20
|
__exportStar(require("./ClarityScore.js"), exports);
|
|
20
21
|
__exportStar(require("./ConfigOptions.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.1.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -12,8 +12,8 @@ export class MarkupAIClient {
|
|
|
12
12
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
13
13
|
"X-Fern-Language": "JavaScript",
|
|
14
14
|
"X-Fern-SDK-Name": "@markupai/api",
|
|
15
|
-
"X-Fern-SDK-Version": "1.
|
|
16
|
-
"User-Agent": "@markupai/api/1.
|
|
15
|
+
"X-Fern-SDK-Version": "1.1.0",
|
|
16
|
+
"User-Agent": "@markupai/api/1.1.0",
|
|
17
17
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
18
18
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
19
19
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -36,7 +36,7 @@ export declare class StyleChecks {
|
|
|
36
36
|
/**
|
|
37
37
|
* Analyze text for grammar, style, and clarity issues.
|
|
38
38
|
*
|
|
39
|
-
* @param {MarkupAI.
|
|
39
|
+
* @param {MarkupAI.StyleCheckRequestBody} request
|
|
40
40
|
* @param {StyleChecks.RequestOptions} requestOptions - Request-specific configuration.
|
|
41
41
|
*
|
|
42
42
|
* @throws {@link MarkupAI.UnauthorizedError}
|
|
@@ -54,7 +54,7 @@ export declare class StyleChecks {
|
|
|
54
54
|
* style_guide: "style_guide"
|
|
55
55
|
* })
|
|
56
56
|
*/
|
|
57
|
-
createStyleCheck(request: MarkupAI.
|
|
57
|
+
createStyleCheck(request: MarkupAI.StyleCheckRequestBody, requestOptions?: StyleChecks.RequestOptions): core.HttpResponsePromise<MarkupAI.WorkflowResponse>;
|
|
58
58
|
private __createStyleCheck;
|
|
59
59
|
/**
|
|
60
60
|
* Retrieve style check results.
|
|
@@ -25,7 +25,7 @@ export class StyleChecks {
|
|
|
25
25
|
/**
|
|
26
26
|
* Analyze text for grammar, style, and clarity issues.
|
|
27
27
|
*
|
|
28
|
-
* @param {MarkupAI.
|
|
28
|
+
* @param {MarkupAI.StyleCheckRequestBody} request
|
|
29
29
|
* @param {StyleChecks.RequestOptions} requestOptions - Request-specific configuration.
|
|
30
30
|
*
|
|
31
31
|
* @throws {@link MarkupAI.UnauthorizedError}
|
|
@@ -50,7 +50,6 @@ export class StyleChecks {
|
|
|
50
50
|
return __awaiter(this, void 0, void 0, function* () {
|
|
51
51
|
var _a, _b, _c, _d;
|
|
52
52
|
const _request = yield core.newFormData();
|
|
53
|
-
yield _request.appendFile("file_upload", request.file_upload);
|
|
54
53
|
_request.append("dialect", request.dialect);
|
|
55
54
|
if (request.tone != null) {
|
|
56
55
|
_request.append("tone", request.tone);
|
|
@@ -59,6 +58,7 @@ export class StyleChecks {
|
|
|
59
58
|
if (request.webhook_url != null) {
|
|
60
59
|
_request.append("webhook_url", request.webhook_url);
|
|
61
60
|
}
|
|
61
|
+
yield _request.appendFile("file_upload", request.file_upload);
|
|
62
62
|
const _maybeEncodedRequest = yield _request.getRequest();
|
|
63
63
|
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);
|
|
64
64
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as core from "../../../../../core/index.mjs";
|
|
5
4
|
import * as MarkupAI from "../../../../index.mjs";
|
|
5
|
+
import * as core from "../../../../../core/index.mjs";
|
|
6
6
|
/**
|
|
7
7
|
* @example
|
|
8
8
|
* {
|
|
@@ -11,9 +11,7 @@ import * as MarkupAI from "../../../../index.mjs";
|
|
|
11
11
|
* style_guide: "style_guide"
|
|
12
12
|
* }
|
|
13
13
|
*/
|
|
14
|
-
export interface
|
|
15
|
-
/** The document to analyze. Text files (.txt), PDFs (.pdf), and Markdown files (.md) are accepted. The max file size is 1.5 MB */
|
|
16
|
-
file_upload: core.file.Uploadable.FileLike;
|
|
14
|
+
export interface StyleCheckRequestBody {
|
|
17
15
|
/** The language variant you'd like us to use for analysis. Choose from American English, British English, or other supported dialects. */
|
|
18
16
|
dialect: MarkupAI.Dialects;
|
|
19
17
|
/** The tone variation you're aiming for. Options include formal, academic, casual, and other tone variations to match your content goals. */
|
|
@@ -22,4 +20,6 @@ export interface CreateStyleSuggestionV1StyleSuggestionsPostRequest {
|
|
|
22
20
|
style_guide: string;
|
|
23
21
|
/** A URL that results will be POSTed to once the process completes. */
|
|
24
22
|
webhook_url?: string;
|
|
23
|
+
/** The document to analyze. Text (.txt), Markdown (.md), HTML (.html .htm), DITA (.dita, .xml), and PDF (.pdf) files are accepted. The max file size is 1.5 MB. */
|
|
24
|
+
file_upload: core.file.Uploadable.FileLike;
|
|
25
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { type
|
|
1
|
+
export { type StyleCheckRequestBody } from "./StyleCheckRequestBody.mjs";
|
|
@@ -117,6 +117,9 @@ export class StyleGuides {
|
|
|
117
117
|
const _request = yield core.newFormData();
|
|
118
118
|
yield _request.appendFile("file_upload", request.file_upload);
|
|
119
119
|
_request.append("name", request.name);
|
|
120
|
+
if (request.base_style_guide != null) {
|
|
121
|
+
_request.append("base_style_guide", request.base_style_guide);
|
|
122
|
+
}
|
|
120
123
|
const _maybeEncodedRequest = yield _request.getRequest();
|
|
121
124
|
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);
|
|
122
125
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as core from "../../../../../core/index.mjs";
|
|
5
|
+
import * as MarkupAI from "../../../../index.mjs";
|
|
5
6
|
/**
|
|
6
7
|
* @example
|
|
7
8
|
* {
|
|
@@ -14,4 +15,6 @@ export interface StyleGuideRequestBody {
|
|
|
14
15
|
file_upload: core.file.Uploadable.FileLike;
|
|
15
16
|
/** A friendly name for your style guide to help you identify it later. */
|
|
16
17
|
name: string;
|
|
18
|
+
/** The base style guide to extend (AP, Chicago, or Microsoft). If not provided, the style guide will be created from scratch. */
|
|
19
|
+
base_style_guide?: MarkupAI.BaseStyleGuideType;
|
|
17
20
|
}
|
|
@@ -36,7 +36,7 @@ export declare class StyleRewrites {
|
|
|
36
36
|
/**
|
|
37
37
|
* Rewrite text with style corrections applied.
|
|
38
38
|
*
|
|
39
|
-
* @param {MarkupAI.
|
|
39
|
+
* @param {MarkupAI.StyleRewriteRequestBody} request
|
|
40
40
|
* @param {StyleRewrites.RequestOptions} requestOptions - Request-specific configuration.
|
|
41
41
|
*
|
|
42
42
|
* @throws {@link MarkupAI.UnauthorizedError}
|
|
@@ -54,7 +54,7 @@ export declare class StyleRewrites {
|
|
|
54
54
|
* style_guide: "style_guide"
|
|
55
55
|
* })
|
|
56
56
|
*/
|
|
57
|
-
createStyleRewrite(request: MarkupAI.
|
|
57
|
+
createStyleRewrite(request: MarkupAI.StyleRewriteRequestBody, requestOptions?: StyleRewrites.RequestOptions): core.HttpResponsePromise<MarkupAI.WorkflowResponse>;
|
|
58
58
|
private __createStyleRewrite;
|
|
59
59
|
/**
|
|
60
60
|
* Retrieve rewrite results.
|
|
@@ -25,7 +25,7 @@ export class StyleRewrites {
|
|
|
25
25
|
/**
|
|
26
26
|
* Rewrite text with style corrections applied.
|
|
27
27
|
*
|
|
28
|
-
* @param {MarkupAI.
|
|
28
|
+
* @param {MarkupAI.StyleRewriteRequestBody} request
|
|
29
29
|
* @param {StyleRewrites.RequestOptions} requestOptions - Request-specific configuration.
|
|
30
30
|
*
|
|
31
31
|
* @throws {@link MarkupAI.UnauthorizedError}
|
|
@@ -50,7 +50,6 @@ export class StyleRewrites {
|
|
|
50
50
|
return __awaiter(this, void 0, void 0, function* () {
|
|
51
51
|
var _a, _b, _c, _d;
|
|
52
52
|
const _request = yield core.newFormData();
|
|
53
|
-
yield _request.appendFile("file_upload", request.file_upload);
|
|
54
53
|
_request.append("dialect", request.dialect);
|
|
55
54
|
if (request.tone != null) {
|
|
56
55
|
_request.append("tone", request.tone);
|
|
@@ -59,6 +58,7 @@ export class StyleRewrites {
|
|
|
59
58
|
if (request.webhook_url != null) {
|
|
60
59
|
_request.append("webhook_url", request.webhook_url);
|
|
61
60
|
}
|
|
61
|
+
yield _request.appendFile("file_upload", request.file_upload);
|
|
62
62
|
const _maybeEncodedRequest = yield _request.getRequest();
|
|
63
63
|
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);
|
|
64
64
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as core from "../../../../../core/index.mjs";
|
|
5
4
|
import * as MarkupAI from "../../../../index.mjs";
|
|
5
|
+
import * as core from "../../../../../core/index.mjs";
|
|
6
6
|
/**
|
|
7
7
|
* @example
|
|
8
8
|
* {
|
|
@@ -11,9 +11,7 @@ import * as MarkupAI from "../../../../index.mjs";
|
|
|
11
11
|
* style_guide: "style_guide"
|
|
12
12
|
* }
|
|
13
13
|
*/
|
|
14
|
-
export interface
|
|
15
|
-
/** The document to analyze. Text files (.txt), PDFs (.pdf), and Markdown files (.md) are accepted. The max file size is 1.5 MB */
|
|
16
|
-
file_upload: core.file.Uploadable.FileLike;
|
|
14
|
+
export interface StyleRewriteRequestBody {
|
|
17
15
|
/** The language variant you'd like us to use for analysis. Choose from American English, British English, or other supported dialects. */
|
|
18
16
|
dialect: MarkupAI.Dialects;
|
|
19
17
|
/** The tone variation you're aiming for. Options include formal, academic, casual, and other tone variations to match your content goals. */
|
|
@@ -22,4 +20,6 @@ export interface CreateStyleRewriteV1StyleRewritesPostRequest {
|
|
|
22
20
|
style_guide: string;
|
|
23
21
|
/** A URL that results will be POSTed to once the process completes. */
|
|
24
22
|
webhook_url?: string;
|
|
23
|
+
/** The document to rewrite. Text (.txt), Markdown (.md), HTML (.html .htm), and DITA (.dita, .xml) files are accepted. The max file size is 1.5 MB. */
|
|
24
|
+
file_upload: core.file.Uploadable.FileLike;
|
|
25
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { type
|
|
1
|
+
export { type StyleRewriteRequestBody } from "./StyleRewriteRequestBody.mjs";
|
|
@@ -36,7 +36,7 @@ export declare class StyleSuggestions {
|
|
|
36
36
|
/**
|
|
37
37
|
* Get suggested corrections for text.
|
|
38
38
|
*
|
|
39
|
-
* @param {MarkupAI.
|
|
39
|
+
* @param {MarkupAI.StyleSuggestionRequestBody} request
|
|
40
40
|
* @param {StyleSuggestions.RequestOptions} requestOptions - Request-specific configuration.
|
|
41
41
|
*
|
|
42
42
|
* @throws {@link MarkupAI.UnauthorizedError}
|
|
@@ -54,7 +54,7 @@ export declare class StyleSuggestions {
|
|
|
54
54
|
* style_guide: "style_guide"
|
|
55
55
|
* })
|
|
56
56
|
*/
|
|
57
|
-
createStyleSuggestion(request: MarkupAI.
|
|
57
|
+
createStyleSuggestion(request: MarkupAI.StyleSuggestionRequestBody, requestOptions?: StyleSuggestions.RequestOptions): core.HttpResponsePromise<MarkupAI.WorkflowResponse>;
|
|
58
58
|
private __createStyleSuggestion;
|
|
59
59
|
/**
|
|
60
60
|
* Retrieve suggestion results.
|
|
@@ -25,7 +25,7 @@ export class StyleSuggestions {
|
|
|
25
25
|
/**
|
|
26
26
|
* Get suggested corrections for text.
|
|
27
27
|
*
|
|
28
|
-
* @param {MarkupAI.
|
|
28
|
+
* @param {MarkupAI.StyleSuggestionRequestBody} request
|
|
29
29
|
* @param {StyleSuggestions.RequestOptions} requestOptions - Request-specific configuration.
|
|
30
30
|
*
|
|
31
31
|
* @throws {@link MarkupAI.UnauthorizedError}
|
|
@@ -50,7 +50,6 @@ export class StyleSuggestions {
|
|
|
50
50
|
return __awaiter(this, void 0, void 0, function* () {
|
|
51
51
|
var _a, _b, _c, _d;
|
|
52
52
|
const _request = yield core.newFormData();
|
|
53
|
-
yield _request.appendFile("file_upload", request.file_upload);
|
|
54
53
|
_request.append("dialect", request.dialect);
|
|
55
54
|
if (request.tone != null) {
|
|
56
55
|
_request.append("tone", request.tone);
|
|
@@ -59,6 +58,7 @@ export class StyleSuggestions {
|
|
|
59
58
|
if (request.webhook_url != null) {
|
|
60
59
|
_request.append("webhook_url", request.webhook_url);
|
|
61
60
|
}
|
|
61
|
+
yield _request.appendFile("file_upload", request.file_upload);
|
|
62
62
|
const _maybeEncodedRequest = yield _request.getRequest();
|
|
63
63
|
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);
|
|
64
64
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as core from "../../../../../core/index.mjs";
|
|
5
4
|
import * as MarkupAI from "../../../../index.mjs";
|
|
5
|
+
import * as core from "../../../../../core/index.mjs";
|
|
6
6
|
/**
|
|
7
7
|
* @example
|
|
8
8
|
* {
|
|
@@ -11,9 +11,7 @@ import * as MarkupAI from "../../../../index.mjs";
|
|
|
11
11
|
* style_guide: "style_guide"
|
|
12
12
|
* }
|
|
13
13
|
*/
|
|
14
|
-
export interface
|
|
15
|
-
/** The document to analyze. Text files (.txt), PDFs (.pdf), and Markdown files (.md) are accepted. The max file size is 1.5 MB */
|
|
16
|
-
file_upload: core.file.Uploadable.FileLike;
|
|
14
|
+
export interface StyleSuggestionRequestBody {
|
|
17
15
|
/** The language variant you'd like us to use for analysis. Choose from American English, British English, or other supported dialects. */
|
|
18
16
|
dialect: MarkupAI.Dialects;
|
|
19
17
|
/** The tone variation you're aiming for. Options include formal, academic, casual, and other tone variations to match your content goals. */
|
|
@@ -22,4 +20,6 @@ export interface CreateStyleCheckV1StyleChecksPostRequest {
|
|
|
22
20
|
style_guide: string;
|
|
23
21
|
/** A URL that results will be POSTed to once the process completes. */
|
|
24
22
|
webhook_url?: string;
|
|
23
|
+
/** The document to analyze. Text (.txt), Markdown (.md), HTML (.html .htm), DITA (.dita, .xml), and PDF (.pdf) files are accepted. The max file size is 1.5 MB. */
|
|
24
|
+
file_upload: core.file.Uploadable.FileLike;
|
|
25
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { type
|
|
1
|
+
export { type StyleSuggestionRequestBody } from "./StyleSuggestionRequestBody.mjs";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type BaseStyleGuideType = "ap" | "chicago" | "microsoft";
|
|
5
|
+
export declare const BaseStyleGuideType: {
|
|
6
|
+
readonly Ap: "ap";
|
|
7
|
+
readonly Chicago: "chicago";
|
|
8
|
+
readonly Microsoft: "microsoft";
|
|
9
|
+
};
|
|
@@ -18,4 +18,6 @@ export interface StyleGuideResponse {
|
|
|
18
18
|
updated_by?: string;
|
|
19
19
|
/** User-friendly summary of the style guide's contents and characteristics */
|
|
20
20
|
summary?: string;
|
|
21
|
+
/** The base style guide type that this style guide extends (AP, Chicago, or Microsoft). */
|
|
22
|
+
base_style_guide_type?: MarkupAI.BaseStyleGuideType;
|
|
21
23
|
}
|
|
@@ -7,6 +7,8 @@ export interface WorkflowInfo {
|
|
|
7
7
|
id: string;
|
|
8
8
|
/** API version */
|
|
9
9
|
api_version?: string;
|
|
10
|
+
/** The original name of the file passed into the workflow */
|
|
11
|
+
filename?: string;
|
|
10
12
|
/** UTC timestamp when the result was generated */
|
|
11
13
|
generated_at?: string;
|
|
12
14
|
status?: MarkupAI.WorkflowStatus;
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.1.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.
|
|
1
|
+
export const SDK_VERSION = "1.1.0";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -372,7 +372,7 @@ await client.styleChecks.createStyleCheck({
|
|
|
372
372
|
<dl>
|
|
373
373
|
<dd>
|
|
374
374
|
|
|
375
|
-
**request:** `MarkupAI.
|
|
375
|
+
**request:** `MarkupAI.StyleCheckRequestBody`
|
|
376
376
|
|
|
377
377
|
</dd>
|
|
378
378
|
</dl>
|
|
@@ -504,7 +504,7 @@ await client.styleSuggestions.createStyleSuggestion({
|
|
|
504
504
|
<dl>
|
|
505
505
|
<dd>
|
|
506
506
|
|
|
507
|
-
**request:** `MarkupAI.
|
|
507
|
+
**request:** `MarkupAI.StyleSuggestionRequestBody`
|
|
508
508
|
|
|
509
509
|
</dd>
|
|
510
510
|
</dl>
|
|
@@ -636,7 +636,7 @@ await client.styleRewrites.createStyleRewrite({
|
|
|
636
636
|
<dl>
|
|
637
637
|
<dd>
|
|
638
638
|
|
|
639
|
-
**request:** `MarkupAI.
|
|
639
|
+
**request:** `MarkupAI.StyleRewriteRequestBody`
|
|
640
640
|
|
|
641
641
|
</dd>
|
|
642
642
|
</dl>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|