@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
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "@corti/sdk",
46
- "X-Fern-SDK-Version": "2.0.0-templates.3",
47
- "User-Agent": "@corti/sdk/2.0.0-templates.3",
46
+ "X-Fern-SDK-Version": "2.0.0-templates.4",
47
+ "User-Agent": "@corti/sdk/2.0.0-templates.4",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  "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
  * }
@@ -70,12 +70,6 @@ class AlphaDocumentsClient {
70
70
  *
71
71
  * @example
72
72
  * await client.alphaDocuments.generate({
73
- * context: {
74
- * type: "facts",
75
- * data: [{
76
- * text: "text"
77
- * }]
78
- * },
79
73
  * templateRef: {
80
74
  * templateId: "templateId"
81
75
  * }
@@ -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
  * },
@@ -120,7 +120,7 @@ class AlphaSectionVersionsClient {
120
120
  *
121
121
  * @example
122
122
  * await client.alphaSectionVersions.create("sectionID", {
123
- * title: "title",
123
+ * heading: "heading",
124
124
  * instructions: {
125
125
  * contentPrompt: "contentPrompt"
126
126
  * },
@@ -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
  * },
@@ -120,7 +120,7 @@ class AlphaSectionsClient {
120
120
  * name: "name",
121
121
  * language: "language",
122
122
  * generation: {
123
- * title: "title",
123
+ * heading: "heading",
124
124
  * instructions: {
125
125
  * contentPrompt: "contentPrompt"
126
126
  * },
@@ -0,0 +1,8 @@
1
+ import type * as Corti from "../index.js";
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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import type * as Corti from "../index.js";
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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +1,12 @@
1
1
  import type * as Corti from "../index.js";
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.js";
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.js";
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.js";
2
+ export type GuidedDocumentContext = Corti.ContextText | Corti.ContextTranscript | Corti.ContextFacts;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import type * as Corti from "../index.js";
2
+ /**
3
+ * Optional transcript-level metadata. All fields optional.
4
+ */
5
+ export interface GuidedDocumentTranscriptMetadataMinimal {
6
+ participantsRoles?: Corti.TranscriptsParticipant[] | null;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import type * as Corti from "../index.js";
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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,6 @@
1
1
  import type * as Corti from "../index.js";
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.js";
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;
@@ -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);
@@ -0,0 +1,11 @@
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 { GuidedDocumentFactMinimal } from "./GuidedDocumentFactMinimal.js";
5
+ export declare const ContextFacts: core.serialization.ObjectSchema<serializers.ContextFacts.Raw, Corti.ContextFacts>;
6
+ export declare namespace ContextFacts {
7
+ interface Raw {
8
+ type: "facts";
9
+ fact: GuidedDocumentFactMinimal.Raw;
10
+ }
11
+ }
@@ -0,0 +1,43 @@
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.ContextFacts = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ const GuidedDocumentFactMinimal_js_1 = require("./GuidedDocumentFactMinimal.js");
40
+ exports.ContextFacts = core.serialization.object({
41
+ type: core.serialization.stringLiteral("facts"),
42
+ fact: GuidedDocumentFactMinimal_js_1.GuidedDocumentFactMinimal,
43
+ });
@@ -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
+ export declare const ContextText: core.serialization.ObjectSchema<serializers.ContextText.Raw, Corti.ContextText>;
5
+ export declare namespace ContextText {
6
+ interface Raw {
7
+ type: "text";
8
+ text: string;
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.ContextText = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ exports.ContextText = core.serialization.object({
40
+ type: core.serialization.stringLiteral("text"),
41
+ text: core.serialization.string(),
42
+ });
@@ -0,0 +1,11 @@
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 { GuidedDocumentTranscriptMinimal } from "./GuidedDocumentTranscriptMinimal.js";
5
+ export declare const ContextTranscript: core.serialization.ObjectSchema<serializers.ContextTranscript.Raw, Corti.ContextTranscript>;
6
+ export declare namespace ContextTranscript {
7
+ interface Raw {
8
+ type: "transcript";
9
+ transcript: GuidedDocumentTranscriptMinimal.Raw;
10
+ }
11
+ }
@@ -0,0 +1,43 @@
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.ContextTranscript = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ const GuidedDocumentTranscriptMinimal_js_1 = require("./GuidedDocumentTranscriptMinimal.js");
40
+ exports.ContextTranscript = core.serialization.object({
41
+ type: core.serialization.stringLiteral("transcript"),
42
+ transcript: GuidedDocumentTranscriptMinimal_js_1.GuidedDocumentTranscriptMinimal,
43
+ });
@@ -1,12 +1,13 @@
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 { DocumentsContext } from "./DocumentsContext.js";
5
4
  import { GuidedAssemblyRequest } from "./GuidedAssemblyRequest.js";
5
+ import { GuidedDocumentContext } from "./GuidedDocumentContext.js";
6
6
  export declare const GuidedDocumentByAssembly: core.serialization.ObjectSchema<serializers.GuidedDocumentByAssembly.Raw, Corti.GuidedDocumentByAssembly>;
7
7
  export declare namespace GuidedDocumentByAssembly {
8
8
  interface Raw {
9
- context: DocumentsContext.Raw;
9
+ context?: GuidedDocumentContext.Raw[] | null;
10
+ interactionId?: string | null;
10
11
  assemblyTemplate: GuidedAssemblyRequest.Raw;
11
12
  }
12
13
  }
@@ -36,9 +36,10 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.GuidedDocumentByAssembly = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
- const DocumentsContext_js_1 = require("./DocumentsContext.js");
40
39
  const GuidedAssemblyRequest_js_1 = require("./GuidedAssemblyRequest.js");
40
+ const GuidedDocumentContext_js_1 = require("./GuidedDocumentContext.js");
41
41
  exports.GuidedDocumentByAssembly = core.serialization.object({
42
- context: DocumentsContext_js_1.DocumentsContext,
42
+ context: core.serialization.list(GuidedDocumentContext_js_1.GuidedDocumentContext).optional(),
43
+ interactionId: core.serialization.string().optional(),
43
44
  assemblyTemplate: GuidedAssemblyRequest_js_1.GuidedAssemblyRequest,
44
45
  });
@@ -1,12 +1,13 @@
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 { DocumentsContext } from "./DocumentsContext.js";
4
+ import { GuidedDocumentContext } from "./GuidedDocumentContext.js";
5
5
  import { GuidedDynamicRequest } from "./GuidedDynamicRequest.js";
6
6
  export declare const GuidedDocumentByDynamic: core.serialization.ObjectSchema<serializers.GuidedDocumentByDynamic.Raw, Corti.GuidedDocumentByDynamic>;
7
7
  export declare namespace GuidedDocumentByDynamic {
8
8
  interface Raw {
9
- context: DocumentsContext.Raw;
9
+ context?: GuidedDocumentContext.Raw[] | null;
10
+ interactionId?: string | null;
10
11
  dynamicTemplate: GuidedDynamicRequest.Raw;
11
12
  }
12
13
  }
@@ -36,9 +36,10 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.GuidedDocumentByDynamic = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
- const DocumentsContext_js_1 = require("./DocumentsContext.js");
39
+ const GuidedDocumentContext_js_1 = require("./GuidedDocumentContext.js");
40
40
  const GuidedDynamicRequest_js_1 = require("./GuidedDynamicRequest.js");
41
41
  exports.GuidedDocumentByDynamic = core.serialization.object({
42
- context: DocumentsContext_js_1.DocumentsContext,
42
+ context: core.serialization.list(GuidedDocumentContext_js_1.GuidedDocumentContext).optional(),
43
+ interactionId: core.serialization.string().optional(),
43
44
  dynamicTemplate: GuidedDynamicRequest_js_1.GuidedDynamicRequest,
44
45
  });
@@ -1,12 +1,13 @@
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 { DocumentsContext } from "./DocumentsContext.js";
4
+ import { GuidedDocumentContext } from "./GuidedDocumentContext.js";
5
5
  import { GuidedTemplateRef } from "./GuidedTemplateRef.js";
6
6
  export declare const GuidedDocumentByTemplateRef: core.serialization.ObjectSchema<serializers.GuidedDocumentByTemplateRef.Raw, Corti.GuidedDocumentByTemplateRef>;
7
7
  export declare namespace GuidedDocumentByTemplateRef {
8
8
  interface Raw {
9
- context: DocumentsContext.Raw;
9
+ context?: GuidedDocumentContext.Raw[] | null;
10
+ interactionId?: string | null;
10
11
  templateRef: GuidedTemplateRef.Raw;
11
12
  }
12
13
  }
@@ -36,9 +36,10 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.GuidedDocumentByTemplateRef = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
- const DocumentsContext_js_1 = require("./DocumentsContext.js");
39
+ const GuidedDocumentContext_js_1 = require("./GuidedDocumentContext.js");
40
40
  const GuidedTemplateRef_js_1 = require("./GuidedTemplateRef.js");
41
41
  exports.GuidedDocumentByTemplateRef = core.serialization.object({
42
- context: DocumentsContext_js_1.DocumentsContext,
42
+ context: core.serialization.list(GuidedDocumentContext_js_1.GuidedDocumentContext).optional(),
43
+ interactionId: core.serialization.string().optional(),
43
44
  templateRef: GuidedTemplateRef_js_1.GuidedTemplateRef,
44
45
  });
@@ -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 { ContextFacts } from "./ContextFacts.js";
5
+ import { ContextText } from "./ContextText.js";
6
+ import { ContextTranscript } from "./ContextTranscript.js";
7
+ export declare const GuidedDocumentContext: core.serialization.Schema<serializers.GuidedDocumentContext.Raw, Corti.GuidedDocumentContext>;
8
+ export declare namespace GuidedDocumentContext {
9
+ type Raw = ContextText.Raw | ContextTranscript.Raw | ContextFacts.Raw;
10
+ }