@markupai/api 1.1.0 → 1.3.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.
Files changed (156) hide show
  1. package/dist/cjs/Client.d.ts +3 -0
  2. package/dist/cjs/Client.js +7 -2
  3. package/dist/cjs/api/errors/ConflictError.d.ts +9 -0
  4. package/dist/cjs/api/errors/ConflictError.js +52 -0
  5. package/dist/cjs/api/errors/index.d.ts +1 -0
  6. package/dist/cjs/api/errors/index.js +1 -0
  7. package/dist/cjs/api/resources/index.d.ts +2 -0
  8. package/dist/cjs/api/resources/index.js +3 -1
  9. package/dist/cjs/api/resources/styleGuides/client/Client.d.ts +6 -6
  10. package/dist/cjs/api/resources/styleGuides/client/Client.js +17 -8
  11. package/dist/cjs/api/resources/styleGuides/client/requests/BodyStyleGuidesUpdateStyleGuide.d.ts +13 -0
  12. package/dist/cjs/api/resources/styleGuides/client/requests/StyleGuideRequestBody.d.ts +2 -0
  13. package/dist/cjs/api/resources/styleGuides/client/requests/index.d.ts +1 -1
  14. package/dist/cjs/api/resources/terminology/client/Client.d.ts +333 -0
  15. package/dist/cjs/api/resources/terminology/client/Client.js +1314 -0
  16. package/dist/cjs/api/resources/terminology/client/index.d.ts +2 -0
  17. package/dist/cjs/api/resources/terminology/client/index.js +17 -0
  18. package/dist/cjs/api/resources/terminology/client/requests/BodyTerminologyImportTerminology.d.ts +17 -0
  19. package/dist/cjs/api/resources/terminology/client/requests/BodyTerminologyImportTerminology.js +5 -0
  20. package/dist/cjs/api/resources/{styleGuides/client/requests/BodyUpdateStyleGuideV1StyleGuidesStyleGuideIdPatch.d.ts → terminology/client/requests/DomainCreateRequest.d.ts} +2 -2
  21. package/dist/cjs/api/resources/terminology/client/requests/DomainCreateRequest.js +5 -0
  22. package/dist/cjs/api/resources/terminology/client/requests/DomainUpdateRequest.d.ts +11 -0
  23. package/dist/cjs/api/resources/terminology/client/requests/DomainUpdateRequest.js +5 -0
  24. package/dist/cjs/api/resources/terminology/client/requests/TermSetCreateRequest.d.ts +15 -0
  25. package/dist/cjs/api/resources/terminology/client/requests/TermSetCreateRequest.js +5 -0
  26. package/dist/cjs/api/resources/terminology/client/requests/TermSetUpdateRequest.d.ts +11 -0
  27. package/dist/cjs/api/resources/terminology/client/requests/TermSetUpdateRequest.js +5 -0
  28. package/dist/cjs/api/resources/terminology/client/requests/TermUpdateRequest.d.ts +15 -0
  29. package/dist/cjs/api/resources/terminology/client/requests/TermUpdateRequest.js +5 -0
  30. package/dist/cjs/api/resources/terminology/client/requests/TerminologyListDomainsRequest.d.ts +19 -0
  31. package/dist/cjs/api/resources/terminology/client/requests/TerminologyListDomainsRequest.js +5 -0
  32. package/dist/cjs/api/resources/terminology/client/requests/TerminologyListTermSetsRequest.d.ts +21 -0
  33. package/dist/cjs/api/resources/terminology/client/requests/TerminologyListTermSetsRequest.js +5 -0
  34. package/dist/cjs/api/resources/terminology/client/requests/TerminologySearchTerminologyRequest.d.ts +14 -0
  35. package/dist/cjs/api/resources/terminology/client/requests/TerminologySearchTerminologyRequest.js +5 -0
  36. package/dist/cjs/api/resources/terminology/client/requests/index.d.ts +9 -0
  37. package/dist/cjs/api/resources/terminology/client/requests/index.js +2 -0
  38. package/dist/cjs/api/resources/terminology/index.d.ts +1 -0
  39. package/dist/cjs/api/resources/terminology/index.js +17 -0
  40. package/dist/cjs/api/types/ConsistencyCategory.d.ts +1 -4
  41. package/dist/cjs/api/types/ConsistencyCategory.js +0 -3
  42. package/dist/cjs/api/types/DomainResponse.d.ts +13 -0
  43. package/dist/cjs/api/types/DomainResponse.js +5 -0
  44. package/dist/cjs/api/types/DomainSummary.d.ts +7 -0
  45. package/dist/cjs/api/types/DomainSummary.js +5 -0
  46. package/dist/cjs/api/types/ImportSummary.d.ts +12 -0
  47. package/dist/cjs/api/types/ImportSummary.js +5 -0
  48. package/dist/cjs/api/types/MatchedTerm.d.ts +7 -0
  49. package/dist/cjs/api/types/MatchedTerm.js +5 -0
  50. package/dist/cjs/api/types/PaginatedDomainsResponse.d.ts +11 -0
  51. package/dist/cjs/api/types/PaginatedDomainsResponse.js +5 -0
  52. package/dist/cjs/api/types/PaginatedTermSetsResponse.d.ts +15 -0
  53. package/dist/cjs/api/types/PaginatedTermSetsResponse.js +5 -0
  54. package/dist/cjs/api/types/StyleGuideResponse.d.ts +2 -0
  55. package/dist/cjs/api/types/TermCreateRequest.d.ts +11 -0
  56. package/dist/cjs/api/types/TermCreateRequest.js +5 -0
  57. package/dist/cjs/api/types/TermDetail.d.ts +16 -0
  58. package/dist/cjs/api/types/TermDetail.js +5 -0
  59. package/dist/cjs/api/types/TermItem.d.ts +7 -0
  60. package/dist/cjs/api/types/TermItem.js +5 -0
  61. package/dist/cjs/api/types/TermResponse.d.ts +16 -0
  62. package/dist/cjs/api/types/TermResponse.js +5 -0
  63. package/dist/cjs/api/types/TermSetResponse.d.ts +14 -0
  64. package/dist/cjs/api/types/TermSetResponse.js +5 -0
  65. package/dist/cjs/api/types/TermSetResult.d.ts +9 -0
  66. package/dist/cjs/api/types/TermSetResult.js +5 -0
  67. package/dist/cjs/api/types/TermSetWithTerms.d.ts +17 -0
  68. package/dist/cjs/api/types/TermSetWithTerms.js +5 -0
  69. package/dist/cjs/api/types/TermType.d.ts +12 -0
  70. package/dist/cjs/api/types/TermType.js +11 -0
  71. package/dist/cjs/api/types/TerminologySearchResponse.d.ts +7 -0
  72. package/dist/cjs/api/types/TerminologySearchResponse.js +5 -0
  73. package/dist/cjs/api/types/index.d.ts +15 -0
  74. package/dist/cjs/api/types/index.js +15 -0
  75. package/dist/cjs/version.d.ts +1 -1
  76. package/dist/cjs/version.js +1 -1
  77. package/dist/esm/Client.d.mts +3 -0
  78. package/dist/esm/Client.mjs +7 -2
  79. package/dist/esm/api/errors/ConflictError.d.mts +9 -0
  80. package/dist/esm/api/errors/ConflictError.mjs +15 -0
  81. package/dist/esm/api/errors/index.d.mts +1 -0
  82. package/dist/esm/api/errors/index.mjs +1 -0
  83. package/dist/esm/api/resources/index.d.mts +2 -0
  84. package/dist/esm/api/resources/index.mjs +2 -0
  85. package/dist/esm/api/resources/styleGuides/client/Client.d.mts +6 -6
  86. package/dist/esm/api/resources/styleGuides/client/Client.mjs +17 -8
  87. package/dist/esm/api/resources/styleGuides/client/requests/BodyStyleGuidesUpdateStyleGuide.d.mts +13 -0
  88. package/dist/esm/api/resources/styleGuides/client/requests/StyleGuideRequestBody.d.mts +2 -0
  89. package/dist/esm/api/resources/styleGuides/client/requests/index.d.mts +1 -1
  90. package/dist/esm/api/resources/terminology/client/Client.d.mts +333 -0
  91. package/dist/esm/api/resources/terminology/client/Client.mjs +1277 -0
  92. package/dist/esm/api/resources/terminology/client/index.d.mts +2 -0
  93. package/dist/esm/api/resources/terminology/client/index.mjs +1 -0
  94. package/dist/esm/api/resources/terminology/client/requests/BodyTerminologyImportTerminology.d.mts +17 -0
  95. package/dist/esm/api/resources/terminology/client/requests/BodyTerminologyImportTerminology.mjs +4 -0
  96. package/dist/esm/api/resources/{styleGuides/client/requests/BodyUpdateStyleGuideV1StyleGuidesStyleGuideIdPatch.d.mts → terminology/client/requests/DomainCreateRequest.d.mts} +2 -2
  97. package/dist/esm/api/resources/terminology/client/requests/DomainCreateRequest.mjs +4 -0
  98. package/dist/esm/api/resources/terminology/client/requests/DomainUpdateRequest.d.mts +11 -0
  99. package/dist/esm/api/resources/terminology/client/requests/DomainUpdateRequest.mjs +4 -0
  100. package/dist/esm/api/resources/terminology/client/requests/TermSetCreateRequest.d.mts +15 -0
  101. package/dist/esm/api/resources/terminology/client/requests/TermSetCreateRequest.mjs +4 -0
  102. package/dist/esm/api/resources/terminology/client/requests/TermSetUpdateRequest.d.mts +11 -0
  103. package/dist/esm/api/resources/terminology/client/requests/TermSetUpdateRequest.mjs +4 -0
  104. package/dist/esm/api/resources/terminology/client/requests/TermUpdateRequest.d.mts +15 -0
  105. package/dist/esm/api/resources/terminology/client/requests/TermUpdateRequest.mjs +4 -0
  106. package/dist/esm/api/resources/terminology/client/requests/TerminologyListDomainsRequest.d.mts +19 -0
  107. package/dist/esm/api/resources/terminology/client/requests/TerminologyListDomainsRequest.mjs +4 -0
  108. package/dist/esm/api/resources/terminology/client/requests/TerminologyListTermSetsRequest.d.mts +21 -0
  109. package/dist/esm/api/resources/terminology/client/requests/TerminologyListTermSetsRequest.mjs +4 -0
  110. package/dist/esm/api/resources/terminology/client/requests/TerminologySearchTerminologyRequest.d.mts +14 -0
  111. package/dist/esm/api/resources/terminology/client/requests/TerminologySearchTerminologyRequest.mjs +4 -0
  112. package/dist/esm/api/resources/terminology/client/requests/index.d.mts +9 -0
  113. package/dist/esm/api/resources/terminology/client/requests/index.mjs +1 -0
  114. package/dist/esm/api/resources/terminology/index.d.mts +1 -0
  115. package/dist/esm/api/resources/terminology/index.mjs +1 -0
  116. package/dist/esm/api/types/ConsistencyCategory.d.mts +1 -4
  117. package/dist/esm/api/types/ConsistencyCategory.mjs +0 -3
  118. package/dist/esm/api/types/DomainResponse.d.mts +13 -0
  119. package/dist/esm/api/types/DomainResponse.mjs +4 -0
  120. package/dist/esm/api/types/DomainSummary.d.mts +7 -0
  121. package/dist/esm/api/types/DomainSummary.mjs +4 -0
  122. package/dist/esm/api/types/ImportSummary.d.mts +12 -0
  123. package/dist/esm/api/types/ImportSummary.mjs +4 -0
  124. package/dist/esm/api/types/MatchedTerm.d.mts +7 -0
  125. package/dist/esm/api/types/MatchedTerm.mjs +4 -0
  126. package/dist/esm/api/types/PaginatedDomainsResponse.d.mts +11 -0
  127. package/dist/esm/api/types/PaginatedDomainsResponse.mjs +4 -0
  128. package/dist/esm/api/types/PaginatedTermSetsResponse.d.mts +15 -0
  129. package/dist/esm/api/types/PaginatedTermSetsResponse.mjs +4 -0
  130. package/dist/esm/api/types/StyleGuideResponse.d.mts +2 -0
  131. package/dist/esm/api/types/TermCreateRequest.d.mts +11 -0
  132. package/dist/esm/api/types/TermCreateRequest.mjs +4 -0
  133. package/dist/esm/api/types/TermDetail.d.mts +16 -0
  134. package/dist/esm/api/types/TermDetail.mjs +4 -0
  135. package/dist/esm/api/types/TermItem.d.mts +7 -0
  136. package/dist/esm/api/types/TermItem.mjs +4 -0
  137. package/dist/esm/api/types/TermResponse.d.mts +16 -0
  138. package/dist/esm/api/types/TermResponse.mjs +4 -0
  139. package/dist/esm/api/types/TermSetResponse.d.mts +14 -0
  140. package/dist/esm/api/types/TermSetResponse.mjs +4 -0
  141. package/dist/esm/api/types/TermSetResult.d.mts +9 -0
  142. package/dist/esm/api/types/TermSetResult.mjs +4 -0
  143. package/dist/esm/api/types/TermSetWithTerms.d.mts +17 -0
  144. package/dist/esm/api/types/TermSetWithTerms.mjs +4 -0
  145. package/dist/esm/api/types/TermType.d.mts +12 -0
  146. package/dist/esm/api/types/TermType.mjs +8 -0
  147. package/dist/esm/api/types/TerminologySearchResponse.d.mts +7 -0
  148. package/dist/esm/api/types/TerminologySearchResponse.mjs +4 -0
  149. package/dist/esm/api/types/index.d.mts +15 -0
  150. package/dist/esm/api/types/index.mjs +15 -0
  151. package/dist/esm/version.d.mts +1 -1
  152. package/dist/esm/version.mjs +1 -1
  153. package/package.json +1 -1
  154. package/reference.md +998 -5
  155. /package/dist/cjs/api/resources/styleGuides/client/requests/{BodyUpdateStyleGuideV1StyleGuidesStyleGuideIdPatch.js → BodyStyleGuidesUpdateStyleGuide.js} +0 -0
  156. /package/dist/esm/api/resources/styleGuides/client/requests/{BodyUpdateStyleGuideV1StyleGuidesStyleGuideIdPatch.mjs → BodyStyleGuidesUpdateStyleGuide.mjs} +0 -0
@@ -0,0 +1,2 @@
1
+ export {};
2
+ export * from "./requests/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests/index.js"), exports);
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as core from "../../../../../core/index.js";
5
+ /**
6
+ * @example
7
+ * {
8
+ * file: fs.createReadStream("/path/to/your/file"),
9
+ * delete_existing: true
10
+ * }
11
+ */
12
+ export interface BodyTerminologyImportTerminology {
13
+ /** Delete all existing terms, term sets and domains before importing */
14
+ delete_existing?: boolean;
15
+ /** CSV or ACTIF XML file containing terminology data */
16
+ file: core.file.Uploadable.FileLike;
17
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -7,7 +7,7 @@
7
7
  * name: "name"
8
8
  * }
9
9
  */
10
- export interface BodyUpdateStyleGuideV1StyleGuidesStyleGuideIdPatch {
11
- /** The name of the style guide. */
10
+ export interface DomainCreateRequest {
12
11
  name: string;
12
+ description?: string;
13
13
  }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface DomainUpdateRequest {
9
+ name?: string;
10
+ description?: string;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as MarkupAI from "../../../../index.js";
5
+ /**
6
+ * @example
7
+ * {
8
+ * instructions: "instructions"
9
+ * }
10
+ */
11
+ export interface TermSetCreateRequest {
12
+ instructions: string;
13
+ terms?: MarkupAI.TermCreateRequest[];
14
+ domain_ids?: string[];
15
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface TermSetUpdateRequest {
9
+ instructions?: string;
10
+ domain_ids?: string[];
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as MarkupAI from "../../../../index.js";
5
+ /**
6
+ * @example
7
+ * {
8
+ * term: "term",
9
+ * type: "preferred"
10
+ * }
11
+ */
12
+ export interface TermUpdateRequest {
13
+ term: string;
14
+ type: MarkupAI.TermType;
15
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * page: 1,
8
+ * page_size: 1,
9
+ * search: "search"
10
+ * }
11
+ */
12
+ export interface TerminologyListDomainsRequest {
13
+ /** Page number (1-based) */
14
+ page?: number;
15
+ /** Number of items per page */
16
+ page_size?: number;
17
+ /** Optional name filter */
18
+ search?: string;
19
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * page: 1,
8
+ * page_size: 1,
9
+ * search_term: "search_term"
10
+ * }
11
+ */
12
+ export interface TerminologyListTermSetsRequest {
13
+ /** Page number (1-based) */
14
+ page?: number;
15
+ /** Number of items per page */
16
+ page_size?: number;
17
+ /** Optional search term to filter term sets */
18
+ search_term?: string;
19
+ /** Optional domain filter (any of these domains) */
20
+ domain_ids?: string | string[];
21
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * query: "query"
8
+ * }
9
+ */
10
+ export interface TerminologySearchTerminologyRequest {
11
+ query: string;
12
+ /** Optional domain filter */
13
+ domain_ids?: string | string[];
14
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ export { type BodyTerminologyImportTerminology } from "./BodyTerminologyImportTerminology.js";
2
+ export { type TerminologySearchTerminologyRequest } from "./TerminologySearchTerminologyRequest.js";
3
+ export { type TerminologyListTermSetsRequest } from "./TerminologyListTermSetsRequest.js";
4
+ export { type TermSetCreateRequest } from "./TermSetCreateRequest.js";
5
+ export { type TermSetUpdateRequest } from "./TermSetUpdateRequest.js";
6
+ export { type TermUpdateRequest } from "./TermUpdateRequest.js";
7
+ export { type TerminologyListDomainsRequest } from "./TerminologyListDomainsRequest.js";
8
+ export { type DomainCreateRequest } from "./DomainCreateRequest.js";
9
+ export { type DomainUpdateRequest } from "./DomainUpdateRequest.js";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client/index.js"), exports);
@@ -1,15 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type ConsistencyCategory = "Consistent Punctuation" | "Consistent Capitalization" | "Preferred Spelling and Grammar" | "Numbers, Dates, and Times" | "Inclusive Language" | "Brand Voice" | "Special Style Guide Requirements" | "Clarity and Readability" | "other";
4
+ export type ConsistencyCategory = "Consistent Punctuation" | "Consistent Capitalization" | "Numbers, Dates, and Times" | "Inclusive Language" | "Special Style Guide Requirements" | "other";
5
5
  export declare const ConsistencyCategory: {
6
6
  readonly ConsistentPunctuation: "Consistent Punctuation";
7
7
  readonly ConsistentCapitalization: "Consistent Capitalization";
8
- readonly PreferredSpellingAndGrammar: "Preferred Spelling and Grammar";
9
8
  readonly NumbersDatesAndTimes: "Numbers, Dates, and Times";
10
9
  readonly InclusiveLanguage: "Inclusive Language";
11
- readonly BrandVoice: "Brand Voice";
12
10
  readonly SpecialStyleGuideRequirements: "Special Style Guide Requirements";
13
- readonly ClarityAndReadability: "Clarity and Readability";
14
11
  readonly Other: "other";
15
12
  };
@@ -7,11 +7,8 @@ exports.ConsistencyCategory = void 0;
7
7
  exports.ConsistencyCategory = {
8
8
  ConsistentPunctuation: "Consistent Punctuation",
9
9
  ConsistentCapitalization: "Consistent Capitalization",
10
- PreferredSpellingAndGrammar: "Preferred Spelling and Grammar",
11
10
  NumbersDatesAndTimes: "Numbers, Dates, and Times",
12
11
  InclusiveLanguage: "Inclusive Language",
13
- BrandVoice: "Brand Voice",
14
12
  SpecialStyleGuideRequirements: "Special Style Guide Requirements",
15
- ClarityAndReadability: "Clarity and Readability",
16
13
  Other: "other",
17
14
  };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface DomainResponse {
5
+ id: string;
6
+ name: string;
7
+ description?: string;
8
+ created_at: string;
9
+ updated_at: string;
10
+ created_by?: string;
11
+ updated_by?: string;
12
+ term_set_count?: number;
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface DomainSummary {
5
+ id: string;
6
+ name: string;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ImportSummary {
5
+ entries_processed?: number;
6
+ term_sets_created?: number;
7
+ term_sets_deleted?: number;
8
+ terms_created_or_updated?: number;
9
+ domains_created?: number;
10
+ domains_deleted?: number;
11
+ errors?: string[];
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface MatchedTerm {
5
+ term: string;
6
+ matched_ngram: string;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as MarkupAI from "../index.js";
5
+ export interface PaginatedDomainsResponse {
6
+ domains: MarkupAI.DomainResponse[];
7
+ total_count: number;
8
+ page: number;
9
+ page_size: number;
10
+ total_pages: number;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as MarkupAI from "../index.js";
5
+ /**
6
+ * Pageable response for term sets in term management UI
7
+ */
8
+ export interface PaginatedTermSetsResponse {
9
+ term_sets: MarkupAI.TermSetWithTerms[];
10
+ total_count: number;
11
+ total_unfiltered_term_sets: number;
12
+ page: number;
13
+ page_size: number;
14
+ total_pages: number;
15
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -20,4 +20,6 @@ export interface StyleGuideResponse {
20
20
  summary?: string;
21
21
  /** The base style guide type that this style guide extends (AP, Chicago, or Microsoft). */
22
22
  base_style_guide_type?: MarkupAI.BaseStyleGuideType;
23
+ /** List of domain IDs to filter terminology searches by. NULL or empty list means no filtering. */
24
+ terminology_domain_ids?: string[];
23
25
  }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as MarkupAI from "../index.js";
5
+ /**
6
+ * Payload to create a new term for a term set
7
+ */
8
+ export interface TermCreateRequest {
9
+ term: string;
10
+ type: MarkupAI.TermType;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as MarkupAI from "../index.js";
5
+ /**
6
+ * Detailed term information for term management UI
7
+ */
8
+ export interface TermDetail {
9
+ id: string;
10
+ term: string;
11
+ type: MarkupAI.TermType;
12
+ created_at: string;
13
+ updated_at: string;
14
+ created_by?: string;
15
+ updated_by?: string;
16
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface TermItem {
5
+ term: string;
6
+ type: string;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as MarkupAI from "../index.js";
5
+ /**
6
+ * DB-mapped representation of a term.
7
+ */
8
+ export interface TermResponse {
9
+ id: string;
10
+ term: string;
11
+ type: MarkupAI.TermType;
12
+ created_at: string;
13
+ updated_at: string;
14
+ created_by?: string;
15
+ updated_by?: string;
16
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * DB-mapped representation of a term set (no terms).
6
+ */
7
+ export interface TermSetResponse {
8
+ id: string;
9
+ instructions: string;
10
+ created_at: string;
11
+ updated_at: string;
12
+ created_by?: string;
13
+ updated_by?: string;
14
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as MarkupAI from "../index.js";
5
+ export interface TermSetResult {
6
+ instructions: string;
7
+ terms: MarkupAI.TermItem[];
8
+ matched_terms: MarkupAI.MatchedTerm[];
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as MarkupAI from "../index.js";
5
+ /**
6
+ * Term set with all associated terms for term management UI
7
+ */
8
+ export interface TermSetWithTerms {
9
+ id: string;
10
+ instructions: string;
11
+ created_at: string;
12
+ updated_at: string;
13
+ created_by?: string;
14
+ updated_by?: string;
15
+ terms: MarkupAI.TermDetail[];
16
+ domains?: MarkupAI.DomainSummary[];
17
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Represents the three types of terms in the terminology system.
6
+ */
7
+ export type TermType = "preferred" | "prohibited" | "context_dependent";
8
+ export declare const TermType: {
9
+ readonly Preferred: "preferred";
10
+ readonly Prohibited: "prohibited";
11
+ readonly ContextDependent: "context_dependent";
12
+ };
@@ -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
+ };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as MarkupAI from "../index.js";
5
+ export interface TerminologySearchResponse {
6
+ results: MarkupAI.TermSetResult[];
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });