@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.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/alphaDocuments/client/Client.d.ts +0 -6
- package/dist/cjs/api/resources/alphaDocuments/client/Client.js +0 -6
- package/dist/cjs/api/resources/alphaSectionVersions/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/alphaSectionVersions/client/Client.js +1 -1
- package/dist/cjs/api/resources/alphaSections/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/alphaSections/client/Client.js +1 -1
- package/dist/cjs/api/types/ContextFacts.d.ts +8 -0
- package/dist/cjs/api/types/ContextFacts.js +3 -0
- package/dist/cjs/api/types/ContextText.d.ts +8 -0
- package/dist/cjs/api/types/ContextText.js +3 -0
- package/dist/cjs/api/types/ContextTranscript.d.ts +8 -0
- package/dist/cjs/api/types/ContextTranscript.js +3 -0
- package/dist/cjs/api/types/GuidedDocumentByAssembly.d.ts +5 -3
- package/dist/cjs/api/types/GuidedDocumentByDynamic.d.ts +5 -3
- package/dist/cjs/api/types/GuidedDocumentByTemplateRef.d.ts +5 -3
- package/dist/cjs/api/types/GuidedDocumentContext.d.ts +2 -0
- package/dist/cjs/api/types/GuidedDocumentContext.js +3 -0
- package/dist/cjs/api/types/GuidedDocumentFactMinimal.d.ts +7 -0
- package/dist/cjs/api/types/GuidedDocumentFactMinimal.js +3 -0
- package/dist/cjs/api/types/GuidedDocumentTranscriptMetadataMinimal.d.ts +7 -0
- package/dist/cjs/api/types/GuidedDocumentTranscriptMetadataMinimal.js +3 -0
- package/dist/cjs/api/types/GuidedDocumentTranscriptMinimal.d.ts +8 -0
- package/dist/cjs/api/types/GuidedDocumentTranscriptMinimal.js +3 -0
- package/dist/cjs/api/types/GuidedDocumentTranscriptSegmentMinimal.d.ts +17 -0
- package/dist/cjs/api/types/GuidedDocumentTranscriptSegmentMinimal.js +3 -0
- package/dist/cjs/api/types/GuidedGenerationResult.d.ts +1 -1
- package/dist/cjs/api/types/SectionGeneration.d.ts +2 -2
- package/dist/cjs/api/types/index.d.ts +8 -0
- package/dist/cjs/api/types/index.js +8 -0
- package/dist/cjs/serialization/types/ContextFacts.d.ts +11 -0
- package/dist/cjs/serialization/types/ContextFacts.js +43 -0
- package/dist/cjs/serialization/types/ContextText.d.ts +10 -0
- package/dist/cjs/serialization/types/ContextText.js +42 -0
- package/dist/cjs/serialization/types/ContextTranscript.d.ts +11 -0
- package/dist/cjs/serialization/types/ContextTranscript.js +43 -0
- package/dist/cjs/serialization/types/GuidedDocumentByAssembly.d.ts +3 -2
- package/dist/cjs/serialization/types/GuidedDocumentByAssembly.js +3 -2
- package/dist/cjs/serialization/types/GuidedDocumentByDynamic.d.ts +3 -2
- package/dist/cjs/serialization/types/GuidedDocumentByDynamic.js +3 -2
- package/dist/cjs/serialization/types/GuidedDocumentByTemplateRef.d.ts +3 -2
- package/dist/cjs/serialization/types/GuidedDocumentByTemplateRef.js +3 -2
- package/dist/cjs/serialization/types/GuidedDocumentContext.d.ts +10 -0
- package/dist/cjs/serialization/types/GuidedDocumentContext.js +42 -0
- package/dist/cjs/serialization/types/GuidedDocumentFactMinimal.d.ts +9 -0
- package/dist/cjs/serialization/types/GuidedDocumentFactMinimal.js +41 -0
- package/dist/cjs/serialization/types/GuidedDocumentTranscriptMetadataMinimal.d.ts +10 -0
- package/dist/cjs/serialization/types/GuidedDocumentTranscriptMetadataMinimal.js +42 -0
- package/dist/cjs/serialization/types/GuidedDocumentTranscriptMinimal.d.ts +12 -0
- package/dist/cjs/serialization/types/GuidedDocumentTranscriptMinimal.js +44 -0
- package/dist/cjs/serialization/types/GuidedDocumentTranscriptSegmentMinimal.d.ts +14 -0
- package/dist/cjs/serialization/types/GuidedDocumentTranscriptSegmentMinimal.js +46 -0
- package/dist/cjs/serialization/types/SectionGeneration.d.ts +1 -1
- package/dist/cjs/serialization/types/SectionGeneration.js +1 -1
- package/dist/cjs/serialization/types/index.d.ts +8 -0
- package/dist/cjs/serialization/types/index.js +8 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/alphaDocuments/client/Client.d.mts +0 -6
- package/dist/esm/api/resources/alphaDocuments/client/Client.mjs +0 -6
- package/dist/esm/api/resources/alphaSectionVersions/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/alphaSectionVersions/client/Client.mjs +1 -1
- package/dist/esm/api/resources/alphaSections/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/alphaSections/client/Client.mjs +1 -1
- package/dist/esm/api/types/ContextFacts.d.mts +8 -0
- package/dist/esm/api/types/ContextFacts.mjs +2 -0
- package/dist/esm/api/types/ContextText.d.mts +8 -0
- package/dist/esm/api/types/ContextText.mjs +2 -0
- package/dist/esm/api/types/ContextTranscript.d.mts +8 -0
- package/dist/esm/api/types/ContextTranscript.mjs +2 -0
- package/dist/esm/api/types/GuidedDocumentByAssembly.d.mts +5 -3
- package/dist/esm/api/types/GuidedDocumentByDynamic.d.mts +5 -3
- package/dist/esm/api/types/GuidedDocumentByTemplateRef.d.mts +5 -3
- package/dist/esm/api/types/GuidedDocumentContext.d.mts +2 -0
- package/dist/esm/api/types/GuidedDocumentContext.mjs +2 -0
- package/dist/esm/api/types/GuidedDocumentFactMinimal.d.mts +7 -0
- package/dist/esm/api/types/GuidedDocumentFactMinimal.mjs +2 -0
- package/dist/esm/api/types/GuidedDocumentTranscriptMetadataMinimal.d.mts +7 -0
- package/dist/esm/api/types/GuidedDocumentTranscriptMetadataMinimal.mjs +2 -0
- package/dist/esm/api/types/GuidedDocumentTranscriptMinimal.d.mts +8 -0
- package/dist/esm/api/types/GuidedDocumentTranscriptMinimal.mjs +2 -0
- package/dist/esm/api/types/GuidedDocumentTranscriptSegmentMinimal.d.mts +17 -0
- package/dist/esm/api/types/GuidedDocumentTranscriptSegmentMinimal.mjs +2 -0
- package/dist/esm/api/types/GuidedGenerationResult.d.mts +1 -1
- package/dist/esm/api/types/SectionGeneration.d.mts +2 -2
- package/dist/esm/api/types/index.d.mts +8 -0
- package/dist/esm/api/types/index.mjs +8 -0
- package/dist/esm/serialization/types/ContextFacts.d.mts +11 -0
- package/dist/esm/serialization/types/ContextFacts.mjs +7 -0
- package/dist/esm/serialization/types/ContextText.d.mts +10 -0
- package/dist/esm/serialization/types/ContextText.mjs +6 -0
- package/dist/esm/serialization/types/ContextTranscript.d.mts +11 -0
- package/dist/esm/serialization/types/ContextTranscript.mjs +7 -0
- package/dist/esm/serialization/types/GuidedDocumentByAssembly.d.mts +3 -2
- package/dist/esm/serialization/types/GuidedDocumentByAssembly.mjs +3 -2
- package/dist/esm/serialization/types/GuidedDocumentByDynamic.d.mts +3 -2
- package/dist/esm/serialization/types/GuidedDocumentByDynamic.mjs +3 -2
- package/dist/esm/serialization/types/GuidedDocumentByTemplateRef.d.mts +3 -2
- package/dist/esm/serialization/types/GuidedDocumentByTemplateRef.mjs +3 -2
- package/dist/esm/serialization/types/GuidedDocumentContext.d.mts +10 -0
- package/dist/esm/serialization/types/GuidedDocumentContext.mjs +6 -0
- package/dist/esm/serialization/types/GuidedDocumentFactMinimal.d.mts +9 -0
- package/dist/esm/serialization/types/GuidedDocumentFactMinimal.mjs +5 -0
- package/dist/esm/serialization/types/GuidedDocumentTranscriptMetadataMinimal.d.mts +10 -0
- package/dist/esm/serialization/types/GuidedDocumentTranscriptMetadataMinimal.mjs +6 -0
- package/dist/esm/serialization/types/GuidedDocumentTranscriptMinimal.d.mts +12 -0
- package/dist/esm/serialization/types/GuidedDocumentTranscriptMinimal.mjs +8 -0
- package/dist/esm/serialization/types/GuidedDocumentTranscriptSegmentMinimal.d.mts +14 -0
- package/dist/esm/serialization/types/GuidedDocumentTranscriptSegmentMinimal.mjs +10 -0
- package/dist/esm/serialization/types/SectionGeneration.d.mts +1 -1
- package/dist/esm/serialization/types/SectionGeneration.mjs +1 -1
- package/dist/esm/serialization/types/index.d.mts +8 -0
- package/dist/esm/serialization/types/index.mjs +8 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -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.
|
|
47
|
-
"User-Agent": "@corti/sdk/2.0.0-templates.
|
|
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,
|
|
@@ -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
|
-
/**
|
|
7
|
-
context
|
|
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
|
-
/**
|
|
7
|
-
context
|
|
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
|
-
/**
|
|
7
|
-
context
|
|
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,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,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
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type * as Corti from "../index.js";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
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
|
|
4
|
-
|
|
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
|
|
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:
|
|
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 {
|
|
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
|
|
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
|
|
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:
|
|
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 {
|
|
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
|
|
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
|
|
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:
|
|
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
|
+
}
|