@corti/sdk 2.0.0-templates.3 → 2.0.0-templates.4

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 (117) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/alphaDocuments/client/Client.d.ts +0 -6
  3. package/dist/cjs/api/resources/alphaDocuments/client/Client.js +0 -6
  4. package/dist/cjs/api/resources/alphaSectionVersions/client/Client.d.ts +1 -1
  5. package/dist/cjs/api/resources/alphaSectionVersions/client/Client.js +1 -1
  6. package/dist/cjs/api/resources/alphaSections/client/Client.d.ts +1 -1
  7. package/dist/cjs/api/resources/alphaSections/client/Client.js +1 -1
  8. package/dist/cjs/api/types/ContextFacts.d.ts +8 -0
  9. package/dist/cjs/api/types/ContextFacts.js +3 -0
  10. package/dist/cjs/api/types/ContextText.d.ts +8 -0
  11. package/dist/cjs/api/types/ContextText.js +3 -0
  12. package/dist/cjs/api/types/ContextTranscript.d.ts +8 -0
  13. package/dist/cjs/api/types/ContextTranscript.js +3 -0
  14. package/dist/cjs/api/types/GuidedDocumentByAssembly.d.ts +5 -3
  15. package/dist/cjs/api/types/GuidedDocumentByDynamic.d.ts +5 -3
  16. package/dist/cjs/api/types/GuidedDocumentByTemplateRef.d.ts +5 -3
  17. package/dist/cjs/api/types/GuidedDocumentContext.d.ts +2 -0
  18. package/dist/cjs/api/types/GuidedDocumentContext.js +3 -0
  19. package/dist/cjs/api/types/GuidedDocumentFactMinimal.d.ts +7 -0
  20. package/dist/cjs/api/types/GuidedDocumentFactMinimal.js +3 -0
  21. package/dist/cjs/api/types/GuidedDocumentTranscriptMetadataMinimal.d.ts +7 -0
  22. package/dist/cjs/api/types/GuidedDocumentTranscriptMetadataMinimal.js +3 -0
  23. package/dist/cjs/api/types/GuidedDocumentTranscriptMinimal.d.ts +8 -0
  24. package/dist/cjs/api/types/GuidedDocumentTranscriptMinimal.js +3 -0
  25. package/dist/cjs/api/types/GuidedDocumentTranscriptSegmentMinimal.d.ts +17 -0
  26. package/dist/cjs/api/types/GuidedDocumentTranscriptSegmentMinimal.js +3 -0
  27. package/dist/cjs/api/types/GuidedGenerationResult.d.ts +1 -1
  28. package/dist/cjs/api/types/SectionGeneration.d.ts +2 -2
  29. package/dist/cjs/api/types/index.d.ts +8 -0
  30. package/dist/cjs/api/types/index.js +8 -0
  31. package/dist/cjs/serialization/types/ContextFacts.d.ts +11 -0
  32. package/dist/cjs/serialization/types/ContextFacts.js +43 -0
  33. package/dist/cjs/serialization/types/ContextText.d.ts +10 -0
  34. package/dist/cjs/serialization/types/ContextText.js +42 -0
  35. package/dist/cjs/serialization/types/ContextTranscript.d.ts +11 -0
  36. package/dist/cjs/serialization/types/ContextTranscript.js +43 -0
  37. package/dist/cjs/serialization/types/GuidedDocumentByAssembly.d.ts +3 -2
  38. package/dist/cjs/serialization/types/GuidedDocumentByAssembly.js +3 -2
  39. package/dist/cjs/serialization/types/GuidedDocumentByDynamic.d.ts +3 -2
  40. package/dist/cjs/serialization/types/GuidedDocumentByDynamic.js +3 -2
  41. package/dist/cjs/serialization/types/GuidedDocumentByTemplateRef.d.ts +3 -2
  42. package/dist/cjs/serialization/types/GuidedDocumentByTemplateRef.js +3 -2
  43. package/dist/cjs/serialization/types/GuidedDocumentContext.d.ts +10 -0
  44. package/dist/cjs/serialization/types/GuidedDocumentContext.js +42 -0
  45. package/dist/cjs/serialization/types/GuidedDocumentFactMinimal.d.ts +9 -0
  46. package/dist/cjs/serialization/types/GuidedDocumentFactMinimal.js +41 -0
  47. package/dist/cjs/serialization/types/GuidedDocumentTranscriptMetadataMinimal.d.ts +10 -0
  48. package/dist/cjs/serialization/types/GuidedDocumentTranscriptMetadataMinimal.js +42 -0
  49. package/dist/cjs/serialization/types/GuidedDocumentTranscriptMinimal.d.ts +12 -0
  50. package/dist/cjs/serialization/types/GuidedDocumentTranscriptMinimal.js +44 -0
  51. package/dist/cjs/serialization/types/GuidedDocumentTranscriptSegmentMinimal.d.ts +14 -0
  52. package/dist/cjs/serialization/types/GuidedDocumentTranscriptSegmentMinimal.js +46 -0
  53. package/dist/cjs/serialization/types/SectionGeneration.d.ts +1 -1
  54. package/dist/cjs/serialization/types/SectionGeneration.js +1 -1
  55. package/dist/cjs/serialization/types/index.d.ts +8 -0
  56. package/dist/cjs/serialization/types/index.js +8 -0
  57. package/dist/cjs/version.d.ts +1 -1
  58. package/dist/cjs/version.js +1 -1
  59. package/dist/esm/BaseClient.mjs +2 -2
  60. package/dist/esm/api/resources/alphaDocuments/client/Client.d.mts +0 -6
  61. package/dist/esm/api/resources/alphaDocuments/client/Client.mjs +0 -6
  62. package/dist/esm/api/resources/alphaSectionVersions/client/Client.d.mts +1 -1
  63. package/dist/esm/api/resources/alphaSectionVersions/client/Client.mjs +1 -1
  64. package/dist/esm/api/resources/alphaSections/client/Client.d.mts +1 -1
  65. package/dist/esm/api/resources/alphaSections/client/Client.mjs +1 -1
  66. package/dist/esm/api/types/ContextFacts.d.mts +8 -0
  67. package/dist/esm/api/types/ContextFacts.mjs +2 -0
  68. package/dist/esm/api/types/ContextText.d.mts +8 -0
  69. package/dist/esm/api/types/ContextText.mjs +2 -0
  70. package/dist/esm/api/types/ContextTranscript.d.mts +8 -0
  71. package/dist/esm/api/types/ContextTranscript.mjs +2 -0
  72. package/dist/esm/api/types/GuidedDocumentByAssembly.d.mts +5 -3
  73. package/dist/esm/api/types/GuidedDocumentByDynamic.d.mts +5 -3
  74. package/dist/esm/api/types/GuidedDocumentByTemplateRef.d.mts +5 -3
  75. package/dist/esm/api/types/GuidedDocumentContext.d.mts +2 -0
  76. package/dist/esm/api/types/GuidedDocumentContext.mjs +2 -0
  77. package/dist/esm/api/types/GuidedDocumentFactMinimal.d.mts +7 -0
  78. package/dist/esm/api/types/GuidedDocumentFactMinimal.mjs +2 -0
  79. package/dist/esm/api/types/GuidedDocumentTranscriptMetadataMinimal.d.mts +7 -0
  80. package/dist/esm/api/types/GuidedDocumentTranscriptMetadataMinimal.mjs +2 -0
  81. package/dist/esm/api/types/GuidedDocumentTranscriptMinimal.d.mts +8 -0
  82. package/dist/esm/api/types/GuidedDocumentTranscriptMinimal.mjs +2 -0
  83. package/dist/esm/api/types/GuidedDocumentTranscriptSegmentMinimal.d.mts +17 -0
  84. package/dist/esm/api/types/GuidedDocumentTranscriptSegmentMinimal.mjs +2 -0
  85. package/dist/esm/api/types/GuidedGenerationResult.d.mts +1 -1
  86. package/dist/esm/api/types/SectionGeneration.d.mts +2 -2
  87. package/dist/esm/api/types/index.d.mts +8 -0
  88. package/dist/esm/api/types/index.mjs +8 -0
  89. package/dist/esm/serialization/types/ContextFacts.d.mts +11 -0
  90. package/dist/esm/serialization/types/ContextFacts.mjs +7 -0
  91. package/dist/esm/serialization/types/ContextText.d.mts +10 -0
  92. package/dist/esm/serialization/types/ContextText.mjs +6 -0
  93. package/dist/esm/serialization/types/ContextTranscript.d.mts +11 -0
  94. package/dist/esm/serialization/types/ContextTranscript.mjs +7 -0
  95. package/dist/esm/serialization/types/GuidedDocumentByAssembly.d.mts +3 -2
  96. package/dist/esm/serialization/types/GuidedDocumentByAssembly.mjs +3 -2
  97. package/dist/esm/serialization/types/GuidedDocumentByDynamic.d.mts +3 -2
  98. package/dist/esm/serialization/types/GuidedDocumentByDynamic.mjs +3 -2
  99. package/dist/esm/serialization/types/GuidedDocumentByTemplateRef.d.mts +3 -2
  100. package/dist/esm/serialization/types/GuidedDocumentByTemplateRef.mjs +3 -2
  101. package/dist/esm/serialization/types/GuidedDocumentContext.d.mts +10 -0
  102. package/dist/esm/serialization/types/GuidedDocumentContext.mjs +6 -0
  103. package/dist/esm/serialization/types/GuidedDocumentFactMinimal.d.mts +9 -0
  104. package/dist/esm/serialization/types/GuidedDocumentFactMinimal.mjs +5 -0
  105. package/dist/esm/serialization/types/GuidedDocumentTranscriptMetadataMinimal.d.mts +10 -0
  106. package/dist/esm/serialization/types/GuidedDocumentTranscriptMetadataMinimal.mjs +6 -0
  107. package/dist/esm/serialization/types/GuidedDocumentTranscriptMinimal.d.mts +12 -0
  108. package/dist/esm/serialization/types/GuidedDocumentTranscriptMinimal.mjs +8 -0
  109. package/dist/esm/serialization/types/GuidedDocumentTranscriptSegmentMinimal.d.mts +14 -0
  110. package/dist/esm/serialization/types/GuidedDocumentTranscriptSegmentMinimal.mjs +10 -0
  111. package/dist/esm/serialization/types/SectionGeneration.d.mts +1 -1
  112. package/dist/esm/serialization/types/SectionGeneration.mjs +1 -1
  113. package/dist/esm/serialization/types/index.d.mts +8 -0
  114. package/dist/esm/serialization/types/index.mjs +8 -0
  115. package/dist/esm/version.d.mts +1 -1
  116. package/dist/esm/version.mjs +1 -1
  117. package/package.json +1 -1
@@ -0,0 +1,42 @@
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.GuidedDocumentContext = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ const ContextFacts_js_1 = require("./ContextFacts.js");
40
+ const ContextText_js_1 = require("./ContextText.js");
41
+ const ContextTranscript_js_1 = require("./ContextTranscript.js");
42
+ exports.GuidedDocumentContext = core.serialization.undiscriminatedUnion([ContextText_js_1.ContextText, ContextTranscript_js_1.ContextTranscript, ContextFacts_js_1.ContextFacts]);
@@ -0,0 +1,9 @@
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 GuidedDocumentFactMinimal: core.serialization.ObjectSchema<serializers.GuidedDocumentFactMinimal.Raw, Corti.GuidedDocumentFactMinimal>;
5
+ export declare namespace GuidedDocumentFactMinimal {
6
+ interface Raw {
7
+ text: string;
8
+ }
9
+ }
@@ -0,0 +1,41 @@
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.GuidedDocumentFactMinimal = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ exports.GuidedDocumentFactMinimal = core.serialization.object({
40
+ text: core.serialization.string(),
41
+ });
@@ -0,0 +1,10 @@
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 { TranscriptsParticipant } from "./TranscriptsParticipant.js";
5
+ export declare const GuidedDocumentTranscriptMetadataMinimal: core.serialization.ObjectSchema<serializers.GuidedDocumentTranscriptMetadataMinimal.Raw, Corti.GuidedDocumentTranscriptMetadataMinimal>;
6
+ export declare namespace GuidedDocumentTranscriptMetadataMinimal {
7
+ interface Raw {
8
+ participantsRoles?: (TranscriptsParticipant.Raw[] | null | undefined) | null;
9
+ }
10
+ }
@@ -0,0 +1,42 @@
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.GuidedDocumentTranscriptMetadataMinimal = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ const TranscriptsParticipant_js_1 = require("./TranscriptsParticipant.js");
40
+ exports.GuidedDocumentTranscriptMetadataMinimal = core.serialization.object({
41
+ participantsRoles: core.serialization.list(TranscriptsParticipant_js_1.TranscriptsParticipant).optionalNullable(),
42
+ });
@@ -0,0 +1,12 @@
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 { GuidedDocumentTranscriptMetadataMinimal } from "./GuidedDocumentTranscriptMetadataMinimal.js";
5
+ import { GuidedDocumentTranscriptSegmentMinimal } from "./GuidedDocumentTranscriptSegmentMinimal.js";
6
+ export declare const GuidedDocumentTranscriptMinimal: core.serialization.ObjectSchema<serializers.GuidedDocumentTranscriptMinimal.Raw, Corti.GuidedDocumentTranscriptMinimal>;
7
+ export declare namespace GuidedDocumentTranscriptMinimal {
8
+ interface Raw {
9
+ metadata?: GuidedDocumentTranscriptMetadataMinimal.Raw | null;
10
+ transcripts: GuidedDocumentTranscriptSegmentMinimal.Raw[];
11
+ }
12
+ }
@@ -0,0 +1,44 @@
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.GuidedDocumentTranscriptMinimal = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ const GuidedDocumentTranscriptMetadataMinimal_js_1 = require("./GuidedDocumentTranscriptMetadataMinimal.js");
40
+ const GuidedDocumentTranscriptSegmentMinimal_js_1 = require("./GuidedDocumentTranscriptSegmentMinimal.js");
41
+ exports.GuidedDocumentTranscriptMinimal = core.serialization.object({
42
+ metadata: GuidedDocumentTranscriptMetadataMinimal_js_1.GuidedDocumentTranscriptMetadataMinimal.optional(),
43
+ transcripts: core.serialization.list(GuidedDocumentTranscriptSegmentMinimal_js_1.GuidedDocumentTranscriptSegmentMinimal),
44
+ });
@@ -0,0 +1,14 @@
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 GuidedDocumentTranscriptSegmentMinimal: core.serialization.ObjectSchema<serializers.GuidedDocumentTranscriptSegmentMinimal.Raw, Corti.GuidedDocumentTranscriptSegmentMinimal>;
5
+ export declare namespace GuidedDocumentTranscriptSegmentMinimal {
6
+ interface Raw {
7
+ channel?: number | null;
8
+ participant?: number | null;
9
+ speakerId?: number | null;
10
+ text: string;
11
+ start?: number | null;
12
+ end?: number | null;
13
+ }
14
+ }
@@ -0,0 +1,46 @@
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.GuidedDocumentTranscriptSegmentMinimal = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ exports.GuidedDocumentTranscriptSegmentMinimal = core.serialization.object({
40
+ channel: core.serialization.number().optional(),
41
+ participant: core.serialization.number().optional(),
42
+ speakerId: core.serialization.number().optional(),
43
+ text: core.serialization.string(),
44
+ start: core.serialization.number().optional(),
45
+ end: core.serialization.number().optional(),
46
+ });
@@ -5,7 +5,7 @@ import { SectionInstructions } from "./SectionInstructions.js";
5
5
  export declare const SectionGeneration: core.serialization.ObjectSchema<serializers.SectionGeneration.Raw, Corti.SectionGeneration>;
6
6
  export declare namespace SectionGeneration {
7
7
  interface Raw {
8
- title: string;
8
+ heading: string;
9
9
  instructions: SectionInstructions.Raw;
10
10
  outputSchema: serializers.OutputSchema.Raw;
11
11
  }
@@ -39,7 +39,7 @@ const core = __importStar(require("../../core/index.js"));
39
39
  const serializers = __importStar(require("../index.js"));
40
40
  const SectionInstructions_js_1 = require("./SectionInstructions.js");
41
41
  exports.SectionGeneration = core.serialization.object({
42
- title: core.serialization.string(),
42
+ heading: core.serialization.string(),
43
43
  instructions: SectionInstructions_js_1.SectionInstructions,
44
44
  outputSchema: core.serialization.lazy(() => serializers.OutputSchema),
45
45
  });
@@ -76,6 +76,9 @@ export * from "./CommonTextContextType.js";
76
76
  export * from "./CommonTranscriptRequest.js";
77
77
  export * from "./CommonTranscriptResponse.js";
78
78
  export * from "./CommonUsageInfo.js";
79
+ export * from "./ContextFacts.js";
80
+ export * from "./ContextText.js";
81
+ export * from "./ContextTranscript.js";
79
82
  export * from "./CreateSectionBase.js";
80
83
  export * from "./CreateSectionFromInheritanceRequest.js";
81
84
  export * from "./CreateSectionFromScratchRequest.js";
@@ -127,8 +130,13 @@ export * from "./GuidedAssemblySectionRef.js";
127
130
  export * from "./GuidedDocumentByAssembly.js";
128
131
  export * from "./GuidedDocumentByDynamic.js";
129
132
  export * from "./GuidedDocumentByTemplateRef.js";
133
+ export * from "./GuidedDocumentContext.js";
134
+ export * from "./GuidedDocumentFactMinimal.js";
130
135
  export * from "./GuidedDocumentRequest.js";
131
136
  export * from "./GuidedDocumentResponse.js";
137
+ export * from "./GuidedDocumentTranscriptMetadataMinimal.js";
138
+ export * from "./GuidedDocumentTranscriptMinimal.js";
139
+ export * from "./GuidedDocumentTranscriptSegmentMinimal.js";
132
140
  export * from "./GuidedDynamicInline.js";
133
141
  export * from "./GuidedDynamicRequest.js";
134
142
  export * from "./GuidedGenerationResult.js";
@@ -92,6 +92,9 @@ __exportStar(require("./CommonTextContextType.js"), exports);
92
92
  __exportStar(require("./CommonTranscriptRequest.js"), exports);
93
93
  __exportStar(require("./CommonTranscriptResponse.js"), exports);
94
94
  __exportStar(require("./CommonUsageInfo.js"), exports);
95
+ __exportStar(require("./ContextFacts.js"), exports);
96
+ __exportStar(require("./ContextText.js"), exports);
97
+ __exportStar(require("./ContextTranscript.js"), exports);
95
98
  __exportStar(require("./CreateSectionBase.js"), exports);
96
99
  __exportStar(require("./CreateSectionFromInheritanceRequest.js"), exports);
97
100
  __exportStar(require("./CreateSectionFromScratchRequest.js"), exports);
@@ -143,8 +146,13 @@ __exportStar(require("./GuidedAssemblySectionRef.js"), exports);
143
146
  __exportStar(require("./GuidedDocumentByAssembly.js"), exports);
144
147
  __exportStar(require("./GuidedDocumentByDynamic.js"), exports);
145
148
  __exportStar(require("./GuidedDocumentByTemplateRef.js"), exports);
149
+ __exportStar(require("./GuidedDocumentContext.js"), exports);
150
+ __exportStar(require("./GuidedDocumentFactMinimal.js"), exports);
146
151
  __exportStar(require("./GuidedDocumentRequest.js"), exports);
147
152
  __exportStar(require("./GuidedDocumentResponse.js"), exports);
153
+ __exportStar(require("./GuidedDocumentTranscriptMetadataMinimal.js"), exports);
154
+ __exportStar(require("./GuidedDocumentTranscriptMinimal.js"), exports);
155
+ __exportStar(require("./GuidedDocumentTranscriptSegmentMinimal.js"), exports);
148
156
  __exportStar(require("./GuidedDynamicInline.js"), exports);
149
157
  __exportStar(require("./GuidedDynamicRequest.js"), exports);
150
158
  __exportStar(require("./GuidedGenerationResult.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.0.0-templates.3";
1
+ export declare const SDK_VERSION = "2.0.0-templates.4";
@@ -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 = "2.0.0-templates.3";
4
+ exports.SDK_VERSION = "2.0.0-templates.4";
@@ -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": "2.0.0-templates.3",
10
- "User-Agent": "@corti/sdk/2.0.0-templates.3",
9
+ "X-Fern-SDK-Version": "2.0.0-templates.4",
10
+ "User-Agent": "@corti/sdk/2.0.0-templates.4",
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,
@@ -25,12 +25,6 @@ export declare class AlphaDocumentsClient {
25
25
  *
26
26
  * @example
27
27
  * await client.alphaDocuments.generate({
28
- * context: {
29
- * type: "facts",
30
- * data: [{
31
- * text: "text"
32
- * }]
33
- * },
34
28
  * templateRef: {
35
29
  * templateId: "templateId"
36
30
  * }
@@ -34,12 +34,6 @@ export class AlphaDocumentsClient {
34
34
  *
35
35
  * @example
36
36
  * await client.alphaDocuments.generate({
37
- * context: {
38
- * type: "facts",
39
- * data: [{
40
- * text: "text"
41
- * }]
42
- * },
43
37
  * templateRef: {
44
38
  * templateId: "templateId"
45
39
  * }
@@ -31,7 +31,7 @@ export declare class AlphaSectionVersionsClient {
31
31
  *
32
32
  * @example
33
33
  * await client.alphaSectionVersions.create("sectionID", {
34
- * title: "title",
34
+ * heading: "heading",
35
35
  * instructions: {
36
36
  * contentPrompt: "contentPrompt"
37
37
  * },
@@ -84,7 +84,7 @@ export class AlphaSectionVersionsClient {
84
84
  *
85
85
  * @example
86
86
  * await client.alphaSectionVersions.create("sectionID", {
87
- * title: "title",
87
+ * heading: "heading",
88
88
  * instructions: {
89
89
  * contentPrompt: "contentPrompt"
90
90
  * },
@@ -30,7 +30,7 @@ export declare class AlphaSectionsClient {
30
30
  * name: "name",
31
31
  * language: "language",
32
32
  * generation: {
33
- * title: "title",
33
+ * heading: "heading",
34
34
  * instructions: {
35
35
  * contentPrompt: "contentPrompt"
36
36
  * },
@@ -84,7 +84,7 @@ export class AlphaSectionsClient {
84
84
  * name: "name",
85
85
  * language: "language",
86
86
  * generation: {
87
- * title: "title",
87
+ * heading: "heading",
88
88
  * instructions: {
89
89
  * contentPrompt: "contentPrompt"
90
90
  * },
@@ -0,0 +1,8 @@
1
+ import type * as Corti from "../index.mjs";
2
+ /**
3
+ * A single fact provided as input context to the model.
4
+ */
5
+ export interface ContextFacts {
6
+ type: "facts";
7
+ fact: Corti.GuidedDocumentFactMinimal;
8
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * A freeform text snippet provided as input context to the model.
3
+ */
4
+ export interface ContextText {
5
+ type: "text";
6
+ /** Arbitrary text to be reasoned over. */
7
+ text: string;
8
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,8 @@
1
+ import type * as Corti from "../index.mjs";
2
+ /**
3
+ * A transcript provided as input context to the model.
4
+ */
5
+ export interface ContextTranscript {
6
+ type: "transcript";
7
+ transcript: Corti.GuidedDocumentTranscriptMinimal;
8
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -1,10 +1,12 @@
1
1
  import type * as Corti from "../index.mjs";
2
2
  /**
3
- * Generate a document by assembling a template from existing stored sections. The resulting template aggregate is auto-saved and can be referenced in future calls.
3
+ * Generate a document by assembling a template from existing stored sections. The resulting template aggregate is auto-saved and can be referenced in future calls. At least one of `context` or `interactionId` must be supplied as input context for the model.
4
4
  */
5
5
  export interface GuidedDocumentByAssembly {
6
- /** Single context object the model reasons over. Same shape as the `DocumentsContext` used by `POST /interactions/{id}/documents/`, but supplied as a single object not an array. */
7
- context: Corti.DocumentsContext;
6
+ /** Ordered list of context items the model reasons over. Each item is one of text, a transcript (with optional metadata and segments), or a single fact. Items are interleaved by timestamps where present on transcript segments; otherwise array order is preserved. */
7
+ context?: Corti.GuidedDocumentContext[];
8
+ /** When supplied, all facts and transcripts already attached to the referenced interaction are passed implicitly as input context. */
9
+ interactionId?: string;
8
10
  /** Assemble a template from existing stored sections. */
9
11
  assemblyTemplate: Corti.GuidedAssemblyRequest;
10
12
  }
@@ -1,10 +1,12 @@
1
1
  import type * as Corti from "../index.mjs";
2
2
  /**
3
- * Generate a document from a fully inline template definition supplied in the request body. Sections and the wrapping template are created and immediately published as auto-generated resources.
3
+ * Generate a document from a fully inline template definition supplied in the request body. Sections and the wrapping template are created and immediately published as auto-generated resources. At least one of `context` or `interactionId` must be supplied as input context for the model.
4
4
  */
5
5
  export interface GuidedDocumentByDynamic {
6
- /** Single context object the model reasons over. Same shape as the `DocumentsContext` used by `POST /interactions/{id}/documents/`, but supplied as a single object not an array. */
7
- context: Corti.DocumentsContext;
6
+ /** Ordered list of context items the model reasons over. Each item is one of text, a transcript (with optional metadata and segments), or a single fact. Items are interleaved by timestamps where present on transcript segments; otherwise array order is preserved. */
7
+ context?: Corti.GuidedDocumentContext[];
8
+ /** When supplied, all facts and transcripts already attached to the referenced interaction are passed implicitly as input context. */
9
+ interactionId?: string;
8
10
  /** Fully inline template defined in the request body. */
9
11
  dynamicTemplate: Corti.GuidedDynamicRequest;
10
12
  }
@@ -1,10 +1,12 @@
1
1
  import type * as Corti from "../index.mjs";
2
2
  /**
3
- * Generate a document using a stored template. Optionally supply runtime overrides to patch instructions or sections without mutating the base template.
3
+ * Generate a document using a stored template. Optionally supply runtime overrides to patch instructions or sections without mutating the base template. At least one of `context` or `interactionId` must be supplied as input context for the model.
4
4
  */
5
5
  export interface GuidedDocumentByTemplateRef {
6
- /** Single context object the model reasons over. Same shape as the `DocumentsContext` used by `POST /interactions/{id}/documents/`, but supplied as a single object not an array. */
7
- context: Corti.DocumentsContext;
6
+ /** Ordered list of context items the model reasons over. Each item is one of text, a transcript (with optional metadata and segments), or a single fact. Items are interleaved by timestamps where present on transcript segments; otherwise array order is preserved. */
7
+ context?: Corti.GuidedDocumentContext[];
8
+ /** When supplied, all facts and transcripts already attached to the referenced interaction are passed implicitly as input context. */
9
+ interactionId?: string;
8
10
  /** Reference an existing stored template, optionally with overrides. */
9
11
  templateRef: Corti.GuidedTemplateRef;
10
12
  }
@@ -0,0 +1,2 @@
1
+ import type * as Corti from "../index.mjs";
2
+ export type GuidedDocumentContext = Corti.ContextText | Corti.ContextTranscript | Corti.ContextFacts;
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Minimal fact shape. Only `text` is required.
3
+ */
4
+ export interface GuidedDocumentFactMinimal {
5
+ /** The text of the fact. */
6
+ text: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,7 @@
1
+ import type * as Corti from "../index.mjs";
2
+ /**
3
+ * Optional transcript-level metadata. All fields optional.
4
+ */
5
+ export interface GuidedDocumentTranscriptMetadataMinimal {
6
+ participantsRoles?: Corti.TranscriptsParticipant[] | null;
7
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,8 @@
1
+ import type * as Corti from "../index.mjs";
2
+ /**
3
+ * Minimal transcript shape accepted as guided-document input context. Decoupled from the transcript resource: only `transcripts` is required, and within each segment only `text` is required.
4
+ */
5
+ export interface GuidedDocumentTranscriptMinimal {
6
+ metadata?: Corti.GuidedDocumentTranscriptMetadataMinimal;
7
+ transcripts: Corti.GuidedDocumentTranscriptSegmentMinimal[];
8
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Minimal transcript segment. Only `text` is required.
3
+ */
4
+ export interface GuidedDocumentTranscriptSegmentMinimal {
5
+ /** The channel associated with this phrase/utterance. */
6
+ channel?: number;
7
+ /** The identifier of the participant. */
8
+ participant?: number;
9
+ /** Id to tag an identified speaker. */
10
+ speakerId?: number;
11
+ /** The spoken phrase or utterance. */
12
+ text: string;
13
+ /** Start time in milliseconds for phrase/utterance. */
14
+ start?: number;
15
+ /** End time in milliseconds for phrase/utterance. */
16
+ end?: number;
17
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -1,6 +1,6 @@
1
1
  import type * as Corti from "../index.mjs";
2
2
  /**
3
- * ML-service result. The shape mirrors the resolved template's section output schemas.
3
+ * Generation result. The shape mirrors the resolved template's section output schemas.
4
4
  */
5
5
  export interface GuidedGenerationResult {
6
6
  /** The generated document as a map of section key to rendered string output. */
@@ -1,7 +1,7 @@
1
1
  import type * as Corti from "../index.mjs";
2
2
  export interface SectionGeneration {
3
- /** The title of this section. Passed to the LLM. */
4
- title: string;
3
+ /** The heading of this section. Passed to the LLM. */
4
+ heading: string;
5
5
  /** The prompt instructions for this section. */
6
6
  instructions: Corti.SectionInstructions;
7
7
  outputSchema: Corti.OutputSchema;