@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
|
@@ -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
|
-
|
|
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
|
-
|
|
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);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.0.0-templates.
|
|
1
|
+
export declare const SDK_VERSION = "2.0.0-templates.4";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -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.
|
|
10
|
-
"User-Agent": "@corti/sdk/2.0.0-templates.
|
|
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,
|
|
@@ -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
|
-
/**
|
|
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.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
|
-
/**
|
|
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.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
|
-
/**
|
|
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.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,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.mjs";
|
|
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.mjs";
|
|
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;
|