@corti/sdk 4.0.0-stt → 4.0.0-templates-fix

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 (109) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/documents/resources/sections/client/Client.d.ts +2 -10
  3. package/dist/cjs/api/resources/documents/resources/sections/client/Client.js +1 -9
  4. package/dist/cjs/api/resources/documents/resources/templates/client/Client.d.ts +2 -2
  5. package/dist/cjs/api/resources/documents/resources/templates/client/Client.js +1 -1
  6. package/dist/cjs/api/resources/transcripts/client/requests/TranscriptsCreateRequest.d.ts +1 -1
  7. package/dist/cjs/api/resources/transcripts/types/TranscriptsCreateRequestKeyterms.d.ts +2 -2
  8. package/dist/cjs/api/resources/transcripts/types/TranscriptsCreateRequestKeytermsTermsItem.d.ts +1 -1
  9. package/dist/cjs/api/types/GuidedSection.d.ts +6 -29
  10. package/dist/cjs/api/types/GuidedSectionListItem.d.ts +36 -0
  11. package/dist/cjs/api/types/GuidedSectionListItem.js +3 -0
  12. package/dist/cjs/api/types/{GuidedSectionSource.d.ts → GuidedSectionListItemSource.d.ts} +2 -2
  13. package/dist/cjs/api/types/{GuidedSectionSource.js → GuidedSectionListItemSource.js} +2 -2
  14. package/dist/cjs/api/types/GuidedSectionsCreateRequest.d.ts +1 -1
  15. package/dist/cjs/api/types/GuidedTemplate.d.ts +6 -29
  16. package/dist/cjs/api/types/GuidedTemplateListItem.d.ts +36 -0
  17. package/dist/cjs/api/types/GuidedTemplateListItem.js +3 -0
  18. package/dist/{esm/api/types/GuidedTemplateSource.d.mts → cjs/api/types/GuidedTemplateListItemSource.d.ts} +2 -2
  19. package/dist/cjs/api/types/{GuidedTemplateSource.js → GuidedTemplateListItemSource.js} +2 -2
  20. package/dist/cjs/api/types/GuidedTemplatesCreateRequest.d.ts +1 -1
  21. package/dist/cjs/api/types/StreamConfig.d.ts +1 -1
  22. package/dist/cjs/api/types/StreamConfigKeyterms.d.ts +2 -2
  23. package/dist/cjs/api/types/StreamConfigKeytermsTermsItem.d.ts +1 -1
  24. package/dist/cjs/api/types/TranscribeConfig.d.ts +1 -1
  25. package/dist/cjs/api/types/TranscribeConfigKeyterms.d.ts +2 -2
  26. package/dist/cjs/api/types/TranscribeConfigKeytermsTermsItem.d.ts +1 -1
  27. package/dist/cjs/api/types/index.d.ts +4 -2
  28. package/dist/cjs/api/types/index.js +4 -2
  29. package/dist/cjs/serialization/resources/documents/resources/sections/client/list.d.ts +3 -3
  30. package/dist/cjs/serialization/resources/documents/resources/sections/client/list.js +2 -2
  31. package/dist/cjs/serialization/resources/documents/resources/templates/client/list.d.ts +3 -3
  32. package/dist/cjs/serialization/resources/documents/resources/templates/client/list.js +2 -2
  33. package/dist/cjs/serialization/types/GuidedSection.d.ts +2 -17
  34. package/dist/cjs/serialization/types/GuidedSection.js +5 -18
  35. package/dist/cjs/serialization/types/GuidedSectionListItem.d.ts +24 -0
  36. package/dist/cjs/serialization/types/GuidedSectionListItem.js +56 -0
  37. package/dist/cjs/serialization/types/GuidedSectionListItemSource.d.ts +7 -0
  38. package/dist/cjs/serialization/types/{GuidedSectionSource.js → GuidedSectionListItemSource.js} +2 -2
  39. package/dist/cjs/serialization/types/GuidedSectionsCreateRequest.d.ts +1 -1
  40. package/dist/cjs/serialization/types/GuidedSectionsCreateRequest.js +1 -1
  41. package/dist/cjs/serialization/types/GuidedTemplate.d.ts +2 -17
  42. package/dist/cjs/serialization/types/GuidedTemplate.js +5 -18
  43. package/dist/cjs/serialization/types/GuidedTemplateListItem.d.ts +24 -0
  44. package/dist/cjs/serialization/types/GuidedTemplateListItem.js +56 -0
  45. package/dist/cjs/serialization/types/GuidedTemplateListItemSource.d.ts +7 -0
  46. package/dist/cjs/serialization/types/{GuidedTemplateSource.js → GuidedTemplateListItemSource.js} +2 -2
  47. package/dist/cjs/serialization/types/GuidedTemplatesCreateRequest.d.ts +1 -1
  48. package/dist/cjs/serialization/types/GuidedTemplatesCreateRequest.js +1 -1
  49. package/dist/cjs/serialization/types/index.d.ts +4 -2
  50. package/dist/cjs/serialization/types/index.js +4 -2
  51. package/dist/cjs/version.d.ts +1 -1
  52. package/dist/cjs/version.js +1 -1
  53. package/dist/esm/BaseClient.mjs +2 -2
  54. package/dist/esm/api/resources/documents/resources/sections/client/Client.d.mts +2 -10
  55. package/dist/esm/api/resources/documents/resources/sections/client/Client.mjs +1 -9
  56. package/dist/esm/api/resources/documents/resources/templates/client/Client.d.mts +2 -2
  57. package/dist/esm/api/resources/documents/resources/templates/client/Client.mjs +1 -1
  58. package/dist/esm/api/resources/transcripts/client/requests/TranscriptsCreateRequest.d.mts +1 -1
  59. package/dist/esm/api/resources/transcripts/types/TranscriptsCreateRequestKeyterms.d.mts +2 -2
  60. package/dist/esm/api/resources/transcripts/types/TranscriptsCreateRequestKeytermsTermsItem.d.mts +1 -1
  61. package/dist/esm/api/types/GuidedSection.d.mts +6 -29
  62. package/dist/esm/api/types/GuidedSectionListItem.d.mts +36 -0
  63. package/dist/esm/api/types/GuidedSectionListItem.mjs +2 -0
  64. package/dist/esm/api/types/{GuidedSectionSource.d.mts → GuidedSectionListItemSource.d.mts} +2 -2
  65. package/dist/esm/api/types/{GuidedSectionSource.mjs → GuidedSectionListItemSource.mjs} +1 -1
  66. package/dist/esm/api/types/GuidedSectionsCreateRequest.d.mts +1 -1
  67. package/dist/esm/api/types/GuidedTemplate.d.mts +6 -29
  68. package/dist/esm/api/types/GuidedTemplateListItem.d.mts +36 -0
  69. package/dist/esm/api/types/GuidedTemplateListItem.mjs +2 -0
  70. package/dist/{cjs/api/types/GuidedTemplateSource.d.ts → esm/api/types/GuidedTemplateListItemSource.d.mts} +2 -2
  71. package/dist/esm/api/types/{GuidedTemplateSource.mjs → GuidedTemplateListItemSource.mjs} +1 -1
  72. package/dist/esm/api/types/GuidedTemplatesCreateRequest.d.mts +1 -1
  73. package/dist/esm/api/types/StreamConfig.d.mts +1 -1
  74. package/dist/esm/api/types/StreamConfigKeyterms.d.mts +2 -2
  75. package/dist/esm/api/types/StreamConfigKeytermsTermsItem.d.mts +1 -1
  76. package/dist/esm/api/types/TranscribeConfig.d.mts +1 -1
  77. package/dist/esm/api/types/TranscribeConfigKeyterms.d.mts +2 -2
  78. package/dist/esm/api/types/TranscribeConfigKeytermsTermsItem.d.mts +1 -1
  79. package/dist/esm/api/types/index.d.mts +4 -2
  80. package/dist/esm/api/types/index.mjs +4 -2
  81. package/dist/esm/serialization/resources/documents/resources/sections/client/list.d.mts +3 -3
  82. package/dist/esm/serialization/resources/documents/resources/sections/client/list.mjs +2 -2
  83. package/dist/esm/serialization/resources/documents/resources/templates/client/list.d.mts +3 -3
  84. package/dist/esm/serialization/resources/documents/resources/templates/client/list.mjs +2 -2
  85. package/dist/esm/serialization/types/GuidedSection.d.mts +2 -17
  86. package/dist/esm/serialization/types/GuidedSection.mjs +5 -18
  87. package/dist/esm/serialization/types/GuidedSectionListItem.d.mts +24 -0
  88. package/dist/esm/serialization/types/GuidedSectionListItem.mjs +20 -0
  89. package/dist/esm/serialization/types/GuidedSectionListItemSource.d.mts +7 -0
  90. package/dist/esm/serialization/types/{GuidedTemplateSource.mjs → GuidedSectionListItemSource.mjs} +1 -1
  91. package/dist/esm/serialization/types/GuidedSectionsCreateRequest.d.mts +1 -1
  92. package/dist/esm/serialization/types/GuidedSectionsCreateRequest.mjs +1 -1
  93. package/dist/esm/serialization/types/GuidedTemplate.d.mts +2 -17
  94. package/dist/esm/serialization/types/GuidedTemplate.mjs +5 -18
  95. package/dist/esm/serialization/types/GuidedTemplateListItem.d.mts +24 -0
  96. package/dist/esm/serialization/types/GuidedTemplateListItem.mjs +20 -0
  97. package/dist/esm/serialization/types/GuidedTemplateListItemSource.d.mts +7 -0
  98. package/dist/esm/serialization/types/{GuidedSectionSource.mjs → GuidedTemplateListItemSource.mjs} +1 -1
  99. package/dist/esm/serialization/types/GuidedTemplatesCreateRequest.d.mts +1 -1
  100. package/dist/esm/serialization/types/GuidedTemplatesCreateRequest.mjs +1 -1
  101. package/dist/esm/serialization/types/index.d.mts +4 -2
  102. package/dist/esm/serialization/types/index.mjs +4 -2
  103. package/dist/esm/version.d.mts +1 -1
  104. package/dist/esm/version.mjs +1 -1
  105. package/package.json +1 -1
  106. package/dist/cjs/serialization/types/GuidedSectionSource.d.ts +0 -7
  107. package/dist/cjs/serialization/types/GuidedTemplateSource.d.ts +0 -7
  108. package/dist/esm/serialization/types/GuidedSectionSource.d.mts +0 -7
  109. package/dist/esm/serialization/types/GuidedTemplateSource.d.mts +0 -7
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.GuidedSectionListItem = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ const GuidedLabel_js_1 = require("./GuidedLabel.js");
40
+ const GuidedSectionListItemSource_js_1 = require("./GuidedSectionListItemSource.js");
41
+ exports.GuidedSectionListItem = core.serialization.object({
42
+ id: core.serialization.string(),
43
+ inheritedFromId: core.serialization.string().optionalNullable(),
44
+ autoGenerated: core.serialization.boolean().optional(),
45
+ source: GuidedSectionListItemSource_js_1.GuidedSectionListItemSource.optional(),
46
+ name: core.serialization.string(),
47
+ languages: core.serialization.list(core.serialization.string()),
48
+ regions: core.serialization.list(core.serialization.string()),
49
+ specialties: core.serialization.list(core.serialization.string()),
50
+ description: core.serialization.string().optional(),
51
+ labels: core.serialization.list(GuidedLabel_js_1.GuidedLabel),
52
+ createdBy: core.serialization.string().optional(),
53
+ createdAt: core.serialization.date(),
54
+ updatedAt: core.serialization.date(),
55
+ deletedAt: core.serialization.date().optionalNullable(),
56
+ });
@@ -0,0 +1,7 @@
1
+ import type * as Corti from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ export declare const GuidedSectionListItemSource: core.serialization.Schema<serializers.GuidedSectionListItemSource.Raw, Corti.GuidedSectionListItemSource>;
5
+ export declare namespace GuidedSectionListItemSource {
6
+ type Raw = "user" | "corti" | "project";
7
+ }
@@ -34,6 +34,6 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  };
35
35
  })();
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.GuidedSectionSource = void 0;
37
+ exports.GuidedSectionListItemSource = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
- exports.GuidedSectionSource = core.serialization.enum_(["user", "corti", "project"]);
39
+ exports.GuidedSectionListItemSource = core.serialization.enum_(["user", "corti", "project"]);
@@ -5,5 +5,5 @@ import { GuidedSectionsCreateFromInheritanceRequest } from "./GuidedSectionsCrea
5
5
  import { GuidedSectionsCreateFromScratchRequest } from "./GuidedSectionsCreateFromScratchRequest.js";
6
6
  export declare const GuidedSectionsCreateRequest: core.serialization.Schema<serializers.GuidedSectionsCreateRequest.Raw, Corti.GuidedSectionsCreateRequest>;
7
7
  export declare namespace GuidedSectionsCreateRequest {
8
- type Raw = GuidedSectionsCreateFromScratchRequest.Raw | GuidedSectionsCreateFromInheritanceRequest.Raw;
8
+ type Raw = GuidedSectionsCreateFromInheritanceRequest.Raw | GuidedSectionsCreateFromScratchRequest.Raw;
9
9
  }
@@ -39,6 +39,6 @@ const core = __importStar(require("../../core/index.js"));
39
39
  const GuidedSectionsCreateFromInheritanceRequest_js_1 = require("./GuidedSectionsCreateFromInheritanceRequest.js");
40
40
  const GuidedSectionsCreateFromScratchRequest_js_1 = require("./GuidedSectionsCreateFromScratchRequest.js");
41
41
  exports.GuidedSectionsCreateRequest = core.serialization.undiscriminatedUnion([
42
- GuidedSectionsCreateFromScratchRequest_js_1.GuidedSectionsCreateFromScratchRequest,
43
42
  GuidedSectionsCreateFromInheritanceRequest_js_1.GuidedSectionsCreateFromInheritanceRequest,
43
+ GuidedSectionsCreateFromScratchRequest_js_1.GuidedSectionsCreateFromScratchRequest,
44
44
  ]);
@@ -1,26 +1,11 @@
1
1
  import type * as Corti from "../../api/index.js";
2
2
  import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
- import { GuidedLabel } from "./GuidedLabel.js";
5
- import { GuidedTemplateSource } from "./GuidedTemplateSource.js";
4
+ import { GuidedTemplateListItem } from "./GuidedTemplateListItem.js";
6
5
  import { GuidedTemplateVersion } from "./GuidedTemplateVersion.js";
7
6
  export declare const GuidedTemplate: core.serialization.ObjectSchema<serializers.GuidedTemplate.Raw, Corti.GuidedTemplate>;
8
7
  export declare namespace GuidedTemplate {
9
- interface Raw {
10
- id: string;
11
- inheritedFromId?: (string | null | undefined) | null;
12
- autoGenerated?: boolean | null;
13
- source?: GuidedTemplateSource.Raw | null;
14
- name: string;
15
- description?: string | null;
16
- languages: string[];
17
- regions: string[];
18
- specialties: string[];
19
- labels: GuidedLabel.Raw[];
8
+ interface Raw extends GuidedTemplateListItem.Raw {
20
9
  publishedVersion?: GuidedTemplateVersion.Raw | null;
21
- createdBy?: string | null;
22
- createdAt: string;
23
- updatedAt: string;
24
- deletedAt?: (string | null | undefined) | null;
25
10
  }
26
11
  }
@@ -36,23 +36,10 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.GuidedTemplate = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
- const GuidedLabel_js_1 = require("./GuidedLabel.js");
40
- const GuidedTemplateSource_js_1 = require("./GuidedTemplateSource.js");
39
+ const GuidedTemplateListItem_js_1 = require("./GuidedTemplateListItem.js");
41
40
  const GuidedTemplateVersion_js_1 = require("./GuidedTemplateVersion.js");
42
- exports.GuidedTemplate = core.serialization.object({
43
- id: core.serialization.string(),
44
- inheritedFromId: core.serialization.string().optionalNullable(),
45
- autoGenerated: core.serialization.boolean().optional(),
46
- source: GuidedTemplateSource_js_1.GuidedTemplateSource.optional(),
47
- name: core.serialization.string(),
48
- description: core.serialization.string().optional(),
49
- languages: core.serialization.list(core.serialization.string()),
50
- regions: core.serialization.list(core.serialization.string()),
51
- specialties: core.serialization.list(core.serialization.string()),
52
- labels: core.serialization.list(GuidedLabel_js_1.GuidedLabel),
41
+ exports.GuidedTemplate = core.serialization
42
+ .object({
53
43
  publishedVersion: GuidedTemplateVersion_js_1.GuidedTemplateVersion.optional(),
54
- createdBy: core.serialization.string().optional(),
55
- createdAt: core.serialization.date(),
56
- updatedAt: core.serialization.date(),
57
- deletedAt: core.serialization.date().optionalNullable(),
58
- });
44
+ })
45
+ .extend(GuidedTemplateListItem_js_1.GuidedTemplateListItem);
@@ -0,0 +1,24 @@
1
+ import type * as Corti from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ import { GuidedLabel } from "./GuidedLabel.js";
5
+ import { GuidedTemplateListItemSource } from "./GuidedTemplateListItemSource.js";
6
+ export declare const GuidedTemplateListItem: core.serialization.ObjectSchema<serializers.GuidedTemplateListItem.Raw, Corti.GuidedTemplateListItem>;
7
+ export declare namespace GuidedTemplateListItem {
8
+ interface Raw {
9
+ id: string;
10
+ inheritedFromId?: (string | null | undefined) | null;
11
+ autoGenerated?: boolean | null;
12
+ source?: GuidedTemplateListItemSource.Raw | null;
13
+ name: string;
14
+ description?: string | null;
15
+ languages: string[];
16
+ regions: string[];
17
+ specialties: string[];
18
+ labels: GuidedLabel.Raw[];
19
+ createdBy?: string | null;
20
+ createdAt: string;
21
+ updatedAt: string;
22
+ deletedAt?: (string | null | undefined) | null;
23
+ }
24
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.GuidedTemplateListItem = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ const GuidedLabel_js_1 = require("./GuidedLabel.js");
40
+ const GuidedTemplateListItemSource_js_1 = require("./GuidedTemplateListItemSource.js");
41
+ exports.GuidedTemplateListItem = core.serialization.object({
42
+ id: core.serialization.string(),
43
+ inheritedFromId: core.serialization.string().optionalNullable(),
44
+ autoGenerated: core.serialization.boolean().optional(),
45
+ source: GuidedTemplateListItemSource_js_1.GuidedTemplateListItemSource.optional(),
46
+ name: core.serialization.string(),
47
+ description: core.serialization.string().optional(),
48
+ languages: core.serialization.list(core.serialization.string()),
49
+ regions: core.serialization.list(core.serialization.string()),
50
+ specialties: core.serialization.list(core.serialization.string()),
51
+ labels: core.serialization.list(GuidedLabel_js_1.GuidedLabel),
52
+ createdBy: core.serialization.string().optional(),
53
+ createdAt: core.serialization.date(),
54
+ updatedAt: core.serialization.date(),
55
+ deletedAt: core.serialization.date().optionalNullable(),
56
+ });
@@ -0,0 +1,7 @@
1
+ import type * as Corti from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ export declare const GuidedTemplateListItemSource: core.serialization.Schema<serializers.GuidedTemplateListItemSource.Raw, Corti.GuidedTemplateListItemSource>;
5
+ export declare namespace GuidedTemplateListItemSource {
6
+ type Raw = "user" | "corti" | "project";
7
+ }
@@ -34,6 +34,6 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  };
35
35
  })();
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.GuidedTemplateSource = void 0;
37
+ exports.GuidedTemplateListItemSource = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
- exports.GuidedTemplateSource = core.serialization.enum_(["user", "corti", "project"]);
39
+ exports.GuidedTemplateListItemSource = core.serialization.enum_(["user", "corti", "project"]);
@@ -5,5 +5,5 @@ import { GuidedTemplatesCreateFromInheritanceRequest } from "./GuidedTemplatesCr
5
5
  import { GuidedTemplatesCreateFromScratchRequest } from "./GuidedTemplatesCreateFromScratchRequest.js";
6
6
  export declare const GuidedTemplatesCreateRequest: core.serialization.Schema<serializers.GuidedTemplatesCreateRequest.Raw, Corti.GuidedTemplatesCreateRequest>;
7
7
  export declare namespace GuidedTemplatesCreateRequest {
8
- type Raw = GuidedTemplatesCreateFromScratchRequest.Raw | GuidedTemplatesCreateFromInheritanceRequest.Raw;
8
+ type Raw = GuidedTemplatesCreateFromInheritanceRequest.Raw | GuidedTemplatesCreateFromScratchRequest.Raw;
9
9
  }
@@ -39,6 +39,6 @@ const core = __importStar(require("../../core/index.js"));
39
39
  const GuidedTemplatesCreateFromInheritanceRequest_js_1 = require("./GuidedTemplatesCreateFromInheritanceRequest.js");
40
40
  const GuidedTemplatesCreateFromScratchRequest_js_1 = require("./GuidedTemplatesCreateFromScratchRequest.js");
41
41
  exports.GuidedTemplatesCreateRequest = core.serialization.undiscriminatedUnion([
42
- GuidedTemplatesCreateFromScratchRequest_js_1.GuidedTemplatesCreateFromScratchRequest,
43
42
  GuidedTemplatesCreateFromInheritanceRequest_js_1.GuidedTemplatesCreateFromInheritanceRequest,
43
+ GuidedTemplatesCreateFromScratchRequest_js_1.GuidedTemplatesCreateFromScratchRequest,
44
44
  ]);
@@ -141,9 +141,10 @@ export * from "./GuidedSectionGenerationPartial.js";
141
141
  export * from "./GuidedSectionInstructions.js";
142
142
  export * from "./GuidedSectionInstructionsOverride.js";
143
143
  export * from "./GuidedSectionInstructionsPartial.js";
144
+ export * from "./GuidedSectionListItem.js";
145
+ export * from "./GuidedSectionListItemSource.js";
144
146
  export * from "./GuidedSectionOverride.js";
145
147
  export * from "./GuidedSectionOverrides.js";
146
- export * from "./GuidedSectionSource.js";
147
148
  export * from "./GuidedSectionsCreateBase.js";
148
149
  export * from "./GuidedSectionsCreateFromInheritanceRequest.js";
149
150
  export * from "./GuidedSectionsCreateFromScratchRequest.js";
@@ -157,9 +158,10 @@ export * from "./GuidedTemplate.js";
157
158
  export * from "./GuidedTemplateGeneration.js";
158
159
  export * from "./GuidedTemplateInstructions.js";
159
160
  export * from "./GuidedTemplateInstructionsPartial.js";
161
+ export * from "./GuidedTemplateListItem.js";
162
+ export * from "./GuidedTemplateListItemSource.js";
160
163
  export * from "./GuidedTemplateOverrides.js";
161
164
  export * from "./GuidedTemplateRef.js";
162
- export * from "./GuidedTemplateSource.js";
163
165
  export * from "./GuidedTemplatesCreateBase.js";
164
166
  export * from "./GuidedTemplatesCreateFromInheritanceRequest.js";
165
167
  export * from "./GuidedTemplatesCreateFromInheritanceRequestGeneration.js";
@@ -157,9 +157,10 @@ __exportStar(require("./GuidedSectionGenerationPartial.js"), exports);
157
157
  __exportStar(require("./GuidedSectionInstructions.js"), exports);
158
158
  __exportStar(require("./GuidedSectionInstructionsOverride.js"), exports);
159
159
  __exportStar(require("./GuidedSectionInstructionsPartial.js"), exports);
160
+ __exportStar(require("./GuidedSectionListItem.js"), exports);
161
+ __exportStar(require("./GuidedSectionListItemSource.js"), exports);
160
162
  __exportStar(require("./GuidedSectionOverride.js"), exports);
161
163
  __exportStar(require("./GuidedSectionOverrides.js"), exports);
162
- __exportStar(require("./GuidedSectionSource.js"), exports);
163
164
  __exportStar(require("./GuidedSectionsCreateBase.js"), exports);
164
165
  __exportStar(require("./GuidedSectionsCreateFromInheritanceRequest.js"), exports);
165
166
  __exportStar(require("./GuidedSectionsCreateFromScratchRequest.js"), exports);
@@ -173,9 +174,10 @@ __exportStar(require("./GuidedTemplate.js"), exports);
173
174
  __exportStar(require("./GuidedTemplateGeneration.js"), exports);
174
175
  __exportStar(require("./GuidedTemplateInstructions.js"), exports);
175
176
  __exportStar(require("./GuidedTemplateInstructionsPartial.js"), exports);
177
+ __exportStar(require("./GuidedTemplateListItem.js"), exports);
178
+ __exportStar(require("./GuidedTemplateListItemSource.js"), exports);
176
179
  __exportStar(require("./GuidedTemplateOverrides.js"), exports);
177
180
  __exportStar(require("./GuidedTemplateRef.js"), exports);
178
- __exportStar(require("./GuidedTemplateSource.js"), exports);
179
181
  __exportStar(require("./GuidedTemplatesCreateBase.js"), exports);
180
182
  __exportStar(require("./GuidedTemplatesCreateFromInheritanceRequest.js"), exports);
181
183
  __exportStar(require("./GuidedTemplatesCreateFromInheritanceRequestGeneration.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.0.0-stt";
1
+ export declare const SDK_VERSION = "4.0.0-templates-fix";
@@ -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 = "4.0.0-stt";
4
+ exports.SDK_VERSION = "4.0.0-templates-fix";
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "@corti/sdk",
9
- "X-Fern-SDK-Version": "4.0.0-stt",
10
- "User-Agent": "@corti/sdk/4.0.0-stt",
9
+ "X-Fern-SDK-Version": "4.0.0-templates-fix",
10
+ "User-Agent": "@corti/sdk/4.0.0-templates-fix",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  "Tenant-Name": options === null || options === void 0 ? void 0 : options.tenantName,
@@ -23,7 +23,7 @@ export declare class SectionsClient {
23
23
  * @example
24
24
  * await client.documents.sections.list()
25
25
  */
26
- list(request?: Corti.documents.GuidedSectionsListRequest, requestOptions?: SectionsClient.RequestOptions): core.HttpResponsePromise<Corti.GuidedSection[]>;
26
+ list(request?: Corti.documents.GuidedSectionsListRequest, requestOptions?: SectionsClient.RequestOptions): core.HttpResponsePromise<Corti.GuidedSectionListItem[]>;
27
27
  private __list;
28
28
  /**
29
29
  * Creates a new section with an initial version. When `publish` is true (default),
@@ -38,15 +38,7 @@ export declare class SectionsClient {
38
38
  * @example
39
39
  * await client.documents.sections.create({
40
40
  * name: "name",
41
- * generation: {
42
- * heading: "heading",
43
- * instructions: {
44
- * contentPrompt: "contentPrompt"
45
- * },
46
- * outputSchema: {
47
- * type: "string"
48
- * }
49
- * }
41
+ * inheritFromId: "inheritFromId"
50
42
  * })
51
43
  */
52
44
  create(request: Corti.GuidedSectionsCreateRequest, requestOptions?: SectionsClient.RequestOptions): core.HttpResponsePromise<Corti.GuidedSection>;
@@ -102,15 +102,7 @@ export class SectionsClient {
102
102
  * @example
103
103
  * await client.documents.sections.create({
104
104
  * name: "name",
105
- * generation: {
106
- * heading: "heading",
107
- * instructions: {
108
- * contentPrompt: "contentPrompt"
109
- * },
110
- * outputSchema: {
111
- * type: "string"
112
- * }
113
- * }
105
+ * inheritFromId: "inheritFromId"
114
106
  * })
115
107
  */
116
108
  create(request, requestOptions) {
@@ -23,7 +23,7 @@ export declare class TemplatesClient {
23
23
  * @example
24
24
  * await client.documents.templates.list()
25
25
  */
26
- list(request?: Corti.documents.GuidedTemplatesListRequest, requestOptions?: TemplatesClient.RequestOptions): core.HttpResponsePromise<Corti.GuidedTemplate[]>;
26
+ list(request?: Corti.documents.GuidedTemplatesListRequest, requestOptions?: TemplatesClient.RequestOptions): core.HttpResponsePromise<Corti.GuidedTemplateListItem[]>;
27
27
  private __list;
28
28
  /**
29
29
  * Creates a new template with an initial version. When `publish` is true (default),
@@ -38,7 +38,7 @@ export declare class TemplatesClient {
38
38
  * @example
39
39
  * await client.documents.templates.create({
40
40
  * name: "name",
41
- * generation: {}
41
+ * inheritFromId: "inheritFromId"
42
42
  * })
43
43
  */
44
44
  create(request: Corti.GuidedTemplatesCreateRequest, requestOptions?: TemplatesClient.RequestOptions): core.HttpResponsePromise<Corti.GuidedTemplate>;
@@ -102,7 +102,7 @@ export class TemplatesClient {
102
102
  * @example
103
103
  * await client.documents.templates.create({
104
104
  * name: "name",
105
- * generation: {}
105
+ * inheritFromId: "inheritFromId"
106
106
  * })
107
107
  */
108
108
  create(request, requestOptions) {
@@ -27,6 +27,6 @@ export interface TranscriptsCreateRequest {
27
27
  async?: boolean;
28
28
  /** Define replacements to have terms (single words or multi-word phrases) replaced in final text output with your preferred style. For example, replace "BID" with "twice daily". Configuration is case insensitive and limited to 1,000 replacements per stream. */
29
29
  replacements?: Corti.TranscriptsCreateRequestReplacementsItem[];
30
- /** Define words, terms, and phrases to be recognized by Corti speech-to-text. Especially useful for proper nouns (e.g., surnames), but also supportive of words not being recognized consistently. Configuration is case sensitive and limited to 1,000 key terms per stream. */
30
+ /** Define words, terms, and phrases to be recognized by Corti speech-to-text. Especially useful for proper nouns (e.g., surnames), but also supportive of words not being recognized consistently. */
31
31
  keyterms?: Corti.TranscriptsCreateRequestKeyterms;
32
32
  }
@@ -1,8 +1,8 @@
1
1
  import type * as Corti from "../../../index.mjs";
2
2
  /**
3
- * Define words, terms, and phrases to be recognized by Corti speech-to-text. Especially useful for proper nouns (e.g., surnames), but also supportive of words not being recognized consistently. Configuration is case sensitive and limited to 1,000 key terms per stream.
3
+ * Define words, terms, and phrases to be recognized by Corti speech-to-text. Especially useful for proper nouns (e.g., surnames), but also supportive of words not being recognized consistently.
4
4
  */
5
5
  export interface TranscriptsCreateRequestKeyterms {
6
- /** Ordered list of words to be recognized. */
6
+ /** Ordered list of words to be recognized. Configuration is case sensitive and limited to 1,000 key terms per stream. */
7
7
  terms?: Corti.TranscriptsCreateRequestKeytermsTermsItem[];
8
8
  }
@@ -1,4 +1,4 @@
1
1
  export interface TranscriptsCreateRequestKeytermsTermsItem {
2
- /** The word to be recognized, defined in its expected written form. */
2
+ /** The word to be recognized, defined in its expected written form. A defined `term` is limited to a length of 50 characters. */
3
3
  term: string;
4
4
  }
@@ -1,33 +1,10 @@
1
1
  import type * as Corti from "../index.mjs";
2
- export interface GuidedSection {
3
- /** The UUID of the section. */
4
- id: string;
5
- /** Reference to the section to inherit generation configuration from. Inherits from published version by default. */
6
- inheritedFromId?: string | null;
7
- /** True if the section was auto-generated as part of an inline section-composed POST /documents request. */
8
- autoGenerated?: boolean;
9
- /** Whether this section was created by the user, a project-related API Client or is a Corti standard resource. */
10
- source?: Corti.GuidedSectionSource;
11
- /** The name of the section. */
12
- name: string;
13
- /** BCP 47 languages this section has been tweaked for. Empty means no language-specific tweaks. */
14
- languages: string[];
15
- /** ISO 3166-1 alpha-3 country codes this section has been tweaked for. Empty means no region-specific tweaks. */
16
- regions: string[];
17
- /** Clinical specialties this section has been tweaked for. Empty means no specialty-specific tweaks. */
18
- specialties: string[];
19
- /** The description for the section. */
20
- description?: string;
21
- /** The labels available to use as query param filter in the LIST /sections endpoint. */
22
- labels: Corti.GuidedLabel[];
2
+ /**
3
+ * Section as returned by single-resource endpoints (GET, POST, PATCH on
4
+ * `/documents/sections/{sectionID}`) and when embedded inside a resolved template
5
+ * version. Extends `GuidedSectionListItem` with the resolved `publishedVersion`.
6
+ */
7
+ export interface GuidedSection extends Corti.GuidedSectionListItem {
23
8
  /** The currently published version with section inheritance fully resolved. Present when a version has been published. */
24
9
  publishedVersion?: Corti.GuidedSectionVersion;
25
- /** The UUID of the creator of this section. */
26
- createdBy?: string;
27
- /** The original timestamp when the section was created. */
28
- createdAt: Date;
29
- /** The original timestamp when the section was last updated. */
30
- updatedAt: Date;
31
- /** Present when the section has been deleted. GET by ID still returns the full resource with this field populated. */
32
- deletedAt?: Date | null;
33
10
  }
@@ -0,0 +1,36 @@
1
+ import type * as Corti from "../index.mjs";
2
+ /**
3
+ * Section metadata as returned by the LIST /documents/sections endpoint. Does not
4
+ * include the resolved `publishedVersion` — use GET /documents/sections/{sectionID}
5
+ * to fetch a single section with its published version resolved.
6
+ */
7
+ export interface GuidedSectionListItem {
8
+ /** The UUID of the section. */
9
+ id: string;
10
+ /** Reference to the section to inherit generation configuration from. Inherits from published version by default. */
11
+ inheritedFromId?: string | null;
12
+ /** True if the section was auto-generated as part of an inline section-composed POST /documents request. */
13
+ autoGenerated?: boolean;
14
+ /** Whether this section was created by the user, a project-related API Client or is a Corti standard resource. */
15
+ source?: Corti.GuidedSectionListItemSource;
16
+ /** The name of the section. */
17
+ name: string;
18
+ /** BCP 47 languages this section has been tweaked for. Empty means no language-specific tweaks. */
19
+ languages: string[];
20
+ /** ISO 3166-1 alpha-3 country codes this section has been tweaked for. Empty means no region-specific tweaks. */
21
+ regions: string[];
22
+ /** Clinical specialties this section has been tweaked for. Empty means no specialty-specific tweaks. */
23
+ specialties: string[];
24
+ /** The description for the section. */
25
+ description?: string;
26
+ /** The labels available to use as query param filter in the LIST /sections endpoint. */
27
+ labels: Corti.GuidedLabel[];
28
+ /** The UUID of the creator of this section. */
29
+ createdBy?: string;
30
+ /** The original timestamp when the section was created. */
31
+ createdAt: Date;
32
+ /** The original timestamp when the section was last updated. */
33
+ updatedAt: Date;
34
+ /** Present when the section has been deleted. GET by ID still returns the full resource with this field populated. */
35
+ deletedAt?: Date | null;
36
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -1,7 +1,7 @@
1
1
  /** Whether this section was created by the user, a project-related API Client or is a Corti standard resource. */
2
- export declare const GuidedSectionSource: {
2
+ export declare const GuidedSectionListItemSource: {
3
3
  readonly User: "user";
4
4
  readonly Corti: "corti";
5
5
  readonly Project: "project";
6
6
  };
7
- export type GuidedSectionSource = (typeof GuidedSectionSource)[keyof typeof GuidedSectionSource];
7
+ export type GuidedSectionListItemSource = (typeof GuidedSectionListItemSource)[keyof typeof GuidedSectionListItemSource];
@@ -1,6 +1,6 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  /** Whether this section was created by the user, a project-related API Client or is a Corti standard resource. */
3
- export const GuidedSectionSource = {
3
+ export const GuidedSectionListItemSource = {
4
4
  User: "user",
5
5
  Corti: "corti",
6
6
  Project: "project",
@@ -1,2 +1,2 @@
1
1
  import type * as Corti from "../index.mjs";
2
- export type GuidedSectionsCreateRequest = Corti.GuidedSectionsCreateFromScratchRequest | Corti.GuidedSectionsCreateFromInheritanceRequest;
2
+ export type GuidedSectionsCreateRequest = Corti.GuidedSectionsCreateFromInheritanceRequest | Corti.GuidedSectionsCreateFromScratchRequest;
@@ -1,33 +1,10 @@
1
1
  import type * as Corti from "../index.mjs";
2
- export interface GuidedTemplate {
3
- /** The UUID of the template. */
4
- id: string;
5
- /** Reference to the template to inherit template instructions and sections from. Inherits from published version by default. */
6
- inheritedFromId?: string | null;
7
- /** True if the template was auto-generated based on the section-composed POST /documents request. */
8
- autoGenerated?: boolean;
9
- /** Whether this template was created by the user, a project-related API Client or is a Corti standard resource. */
10
- source?: Corti.GuidedTemplateSource;
11
- /** The name of this template. Not passed to the LLM. */
12
- name: string;
13
- /** A description for this template. Not passed to the LLM. */
14
- description?: string;
15
- /** BCP 47 language tags this template has been tweaked for (e.g. `["fr", "de", "en-GB"]`). Empty means no language-specific tweaks. */
16
- languages: string[];
17
- /** ISO 3166-1 alpha-3 country codes this template has been tweaked for (e.g. `["BEL"]`). Empty means no region-specific tweaks. */
18
- regions: string[];
19
- /** Clinical specialties this template has been tweaked for. Empty means no specialty-specific tweaks. */
20
- specialties: string[];
21
- /** The available labels to use as query param filter in the LIST /templates endpoint. */
22
- labels: Corti.GuidedLabel[];
2
+ /**
3
+ * Template as returned by single-resource endpoints (GET, POST, PATCH on
4
+ * `/documents/templates/{templateID}`). Extends `GuidedTemplateListItem` with the resolved
5
+ * `publishedVersion`.
6
+ */
7
+ export interface GuidedTemplate extends Corti.GuidedTemplateListItem {
23
8
  /** The currently published version with inheritance fully resolved. Present when a version has been published. */
24
9
  publishedVersion?: Corti.GuidedTemplateVersion;
25
- /** The UUID of the creator of this template. */
26
- createdBy?: string;
27
- /** The original timestamp when the template was created. */
28
- createdAt: Date;
29
- /** The original timestamp when the template was last updated. */
30
- updatedAt: Date;
31
- /** Present when the template has been deleted. GET by ID still returns the full resource with this field populated. */
32
- deletedAt?: Date | null;
33
10
  }