@corti/sdk 2.0.0-templates.3 → 2.0.0-templates.5
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/Client.d.ts +0 -3
- package/dist/cjs/Client.js +28 -33
- package/dist/cjs/api/errors/UnprocessableEntityError.d.ts +2 -1
- package/dist/cjs/api/resources/agents/client/Client.js +28 -4
- 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/resources/index.d.ts +0 -1
- package/dist/cjs/api/resources/index.js +1 -2
- package/dist/cjs/api/types/AgentsErrorResponse.d.ts +12 -0
- package/dist/cjs/api/types/AgentsValidationError.d.ts +8 -0
- package/dist/cjs/api/types/AgentsValidationErrorErrorsItem.d.ts +4 -0
- package/dist/cjs/api/types/AgentsValidationErrorResponse.d.ts +4 -0
- package/dist/cjs/api/types/SectionGeneration.d.ts +2 -2
- package/dist/cjs/api/types/SectionGenerationPartial.d.ts +1 -1
- package/dist/cjs/api/types/index.d.ts +4 -17
- package/dist/cjs/api/types/index.js +4 -17
- package/dist/cjs/serialization/types/AgentsErrorResponse.d.ts +13 -0
- package/dist/cjs/serialization/types/{GuidedDocumentByDynamic.js → AgentsErrorResponse.js} +7 -6
- package/dist/cjs/serialization/types/AgentsValidationError.d.ts +14 -0
- package/dist/cjs/serialization/types/{GuidedDocumentByTemplateRef.js → AgentsValidationError.js} +8 -6
- package/dist/cjs/serialization/types/AgentsValidationErrorErrorsItem.d.ts +10 -0
- package/dist/cjs/serialization/types/{GuidedGenerationResultUsageTokenCount.js → AgentsValidationErrorErrorsItem.js} +4 -4
- package/dist/cjs/serialization/types/AgentsValidationErrorResponse.d.ts +11 -0
- package/dist/cjs/serialization/types/{GuidedDynamicRequest.js → AgentsValidationErrorResponse.js} +8 -7
- package/dist/cjs/serialization/types/SectionGeneration.d.ts +1 -1
- package/dist/cjs/serialization/types/SectionGeneration.js +1 -1
- package/dist/cjs/serialization/types/SectionGenerationPartial.d.ts +1 -1
- package/dist/cjs/serialization/types/SectionGenerationPartial.js +1 -1
- package/dist/cjs/serialization/types/index.d.ts +4 -17
- package/dist/cjs/serialization/types/index.js +4 -17
- 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/Client.d.mts +0 -3
- package/dist/esm/Client.mjs +0 -5
- package/dist/esm/api/errors/UnprocessableEntityError.d.mts +2 -1
- package/dist/esm/api/resources/agents/client/Client.mjs +28 -4
- 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/resources/index.d.mts +0 -1
- package/dist/esm/api/resources/index.mjs +0 -1
- package/dist/esm/api/types/AgentsErrorResponse.d.mts +12 -0
- package/dist/esm/api/types/AgentsValidationError.d.mts +8 -0
- package/dist/esm/api/types/AgentsValidationErrorErrorsItem.d.mts +4 -0
- package/dist/esm/api/types/AgentsValidationErrorResponse.d.mts +4 -0
- package/dist/esm/api/types/SectionGeneration.d.mts +2 -2
- package/dist/esm/api/types/SectionGenerationPartial.d.mts +1 -1
- package/dist/esm/api/types/index.d.mts +4 -17
- package/dist/esm/api/types/index.mjs +4 -17
- package/dist/esm/serialization/types/AgentsErrorResponse.d.mts +13 -0
- package/dist/esm/serialization/types/AgentsErrorResponse.mjs +9 -0
- package/dist/esm/serialization/types/AgentsValidationError.d.mts +14 -0
- package/dist/esm/serialization/types/AgentsValidationError.mjs +10 -0
- package/dist/esm/serialization/types/AgentsValidationErrorErrorsItem.d.mts +10 -0
- package/dist/esm/serialization/types/AgentsValidationErrorErrorsItem.mjs +6 -0
- package/dist/esm/serialization/types/AgentsValidationErrorResponse.d.mts +11 -0
- package/dist/esm/serialization/types/AgentsValidationErrorResponse.mjs +9 -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/SectionGenerationPartial.d.mts +1 -1
- package/dist/esm/serialization/types/SectionGenerationPartial.mjs +1 -1
- package/dist/esm/serialization/types/index.d.mts +4 -17
- package/dist/esm/serialization/types/index.mjs +4 -17
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/dist/cjs/api/resources/alphaDocuments/client/Client.d.ts +0 -41
- package/dist/cjs/api/resources/alphaDocuments/client/Client.js +0 -149
- package/dist/cjs/api/resources/alphaDocuments/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/alphaDocuments/client/index.js +0 -2
- package/dist/cjs/api/resources/alphaDocuments/index.d.ts +0 -1
- package/dist/cjs/api/resources/alphaDocuments/index.js +0 -17
- package/dist/cjs/api/types/GuidedAssemblyRequest.d.ts +0 -13
- package/dist/cjs/api/types/GuidedAssemblySectionRef.d.ts +0 -10
- package/dist/cjs/api/types/GuidedDocumentByAssembly.d.ts +0 -10
- package/dist/cjs/api/types/GuidedDocumentByDynamic.d.ts +0 -10
- package/dist/cjs/api/types/GuidedDocumentByTemplateRef.d.ts +0 -10
- package/dist/cjs/api/types/GuidedDocumentByTemplateRef.js +0 -3
- package/dist/cjs/api/types/GuidedDocumentRequest.d.ts +0 -2
- package/dist/cjs/api/types/GuidedDocumentRequest.js +0 -3
- package/dist/cjs/api/types/GuidedDocumentResponse.d.ts +0 -8
- package/dist/cjs/api/types/GuidedDocumentResponse.js +0 -3
- package/dist/cjs/api/types/GuidedDynamicInline.d.ts +0 -5
- package/dist/cjs/api/types/GuidedDynamicInline.js +0 -3
- package/dist/cjs/api/types/GuidedDynamicRequest.d.ts +0 -10
- package/dist/cjs/api/types/GuidedDynamicRequest.js +0 -3
- package/dist/cjs/api/types/GuidedGenerationResult.d.ts +0 -11
- package/dist/cjs/api/types/GuidedGenerationResult.js +0 -3
- package/dist/cjs/api/types/GuidedGenerationResultUsage.d.ts +0 -4
- package/dist/cjs/api/types/GuidedGenerationResultUsage.js +0 -3
- package/dist/cjs/api/types/GuidedGenerationResultUsageTokenCount.d.ts +0 -4
- package/dist/cjs/api/types/GuidedGenerationResultUsageTokenCount.js +0 -3
- package/dist/cjs/api/types/GuidedSectionOverride.d.ts +0 -13
- package/dist/cjs/api/types/GuidedSectionOverride.js +0 -3
- package/dist/cjs/api/types/GuidedTemplateOverrides.d.ts +0 -7
- package/dist/cjs/api/types/GuidedTemplateOverrides.js +0 -3
- package/dist/cjs/api/types/GuidedTemplateRef.d.ts +0 -9
- package/dist/cjs/api/types/GuidedTemplateRef.js +0 -3
- package/dist/cjs/api/types/SectionInstructionsOverride.d.ts +0 -9
- package/dist/cjs/api/types/SectionInstructionsOverride.js +0 -3
- package/dist/cjs/api/types/SectionOverrides.d.ts +0 -11
- package/dist/cjs/api/types/SectionOverrides.js +0 -3
- package/dist/cjs/serialization/types/GuidedAssemblyRequest.d.ts +0 -14
- package/dist/cjs/serialization/types/GuidedAssemblyRequest.js +0 -46
- package/dist/cjs/serialization/types/GuidedAssemblySectionRef.d.ts +0 -12
- package/dist/cjs/serialization/types/GuidedAssemblySectionRef.js +0 -44
- package/dist/cjs/serialization/types/GuidedDocumentByAssembly.d.ts +0 -12
- package/dist/cjs/serialization/types/GuidedDocumentByAssembly.js +0 -44
- package/dist/cjs/serialization/types/GuidedDocumentByDynamic.d.ts +0 -12
- package/dist/cjs/serialization/types/GuidedDocumentByTemplateRef.d.ts +0 -12
- package/dist/cjs/serialization/types/GuidedDocumentRequest.d.ts +0 -10
- package/dist/cjs/serialization/types/GuidedDocumentRequest.js +0 -46
- package/dist/cjs/serialization/types/GuidedDocumentResponse.d.ts +0 -12
- package/dist/cjs/serialization/types/GuidedDocumentResponse.js +0 -44
- package/dist/cjs/serialization/types/GuidedDynamicInline.d.ts +0 -12
- package/dist/cjs/serialization/types/GuidedDynamicInline.js +0 -44
- package/dist/cjs/serialization/types/GuidedDynamicRequest.d.ts +0 -12
- package/dist/cjs/serialization/types/GuidedGenerationResult.d.ts +0 -12
- package/dist/cjs/serialization/types/GuidedGenerationResult.js +0 -46
- package/dist/cjs/serialization/types/GuidedGenerationResultUsage.d.ts +0 -10
- package/dist/cjs/serialization/types/GuidedGenerationResultUsage.js +0 -42
- package/dist/cjs/serialization/types/GuidedGenerationResultUsageTokenCount.d.ts +0 -10
- package/dist/cjs/serialization/types/GuidedSectionOverride.d.ts +0 -13
- package/dist/cjs/serialization/types/GuidedSectionOverride.js +0 -46
- package/dist/cjs/serialization/types/GuidedTemplateOverrides.d.ts +0 -12
- package/dist/cjs/serialization/types/GuidedTemplateOverrides.js +0 -44
- package/dist/cjs/serialization/types/GuidedTemplateRef.d.ts +0 -12
- package/dist/cjs/serialization/types/GuidedTemplateRef.js +0 -44
- package/dist/cjs/serialization/types/SectionInstructionsOverride.d.ts +0 -10
- package/dist/cjs/serialization/types/SectionInstructionsOverride.js +0 -42
- package/dist/cjs/serialization/types/SectionOverrides.d.ts +0 -12
- package/dist/cjs/serialization/types/SectionOverrides.js +0 -45
- package/dist/esm/api/resources/alphaDocuments/client/Client.d.mts +0 -41
- package/dist/esm/api/resources/alphaDocuments/client/Client.mjs +0 -112
- package/dist/esm/api/resources/alphaDocuments/client/index.d.mts +0 -1
- package/dist/esm/api/resources/alphaDocuments/client/index.mjs +0 -1
- package/dist/esm/api/resources/alphaDocuments/index.d.mts +0 -1
- package/dist/esm/api/resources/alphaDocuments/index.mjs +0 -1
- package/dist/esm/api/types/GuidedAssemblyRequest.d.mts +0 -13
- package/dist/esm/api/types/GuidedAssemblySectionRef.d.mts +0 -10
- package/dist/esm/api/types/GuidedDocumentByAssembly.d.mts +0 -10
- package/dist/esm/api/types/GuidedDocumentByDynamic.d.mts +0 -10
- package/dist/esm/api/types/GuidedDocumentByTemplateRef.d.mts +0 -10
- package/dist/esm/api/types/GuidedDocumentByTemplateRef.mjs +0 -2
- package/dist/esm/api/types/GuidedDocumentRequest.d.mts +0 -2
- package/dist/esm/api/types/GuidedDocumentRequest.mjs +0 -2
- package/dist/esm/api/types/GuidedDocumentResponse.d.mts +0 -8
- package/dist/esm/api/types/GuidedDocumentResponse.mjs +0 -2
- package/dist/esm/api/types/GuidedDynamicInline.d.mts +0 -5
- package/dist/esm/api/types/GuidedDynamicInline.mjs +0 -2
- package/dist/esm/api/types/GuidedDynamicRequest.d.mts +0 -10
- package/dist/esm/api/types/GuidedDynamicRequest.mjs +0 -2
- package/dist/esm/api/types/GuidedGenerationResult.d.mts +0 -11
- package/dist/esm/api/types/GuidedGenerationResult.mjs +0 -2
- package/dist/esm/api/types/GuidedGenerationResultUsage.d.mts +0 -4
- package/dist/esm/api/types/GuidedGenerationResultUsage.mjs +0 -2
- package/dist/esm/api/types/GuidedGenerationResultUsageTokenCount.d.mts +0 -4
- package/dist/esm/api/types/GuidedGenerationResultUsageTokenCount.mjs +0 -2
- package/dist/esm/api/types/GuidedSectionOverride.d.mts +0 -13
- package/dist/esm/api/types/GuidedSectionOverride.mjs +0 -2
- package/dist/esm/api/types/GuidedTemplateOverrides.d.mts +0 -7
- package/dist/esm/api/types/GuidedTemplateOverrides.mjs +0 -2
- package/dist/esm/api/types/GuidedTemplateRef.d.mts +0 -9
- package/dist/esm/api/types/GuidedTemplateRef.mjs +0 -2
- package/dist/esm/api/types/SectionInstructionsOverride.d.mts +0 -9
- package/dist/esm/api/types/SectionInstructionsOverride.mjs +0 -2
- package/dist/esm/api/types/SectionOverrides.d.mts +0 -11
- package/dist/esm/api/types/SectionOverrides.mjs +0 -2
- package/dist/esm/serialization/types/GuidedAssemblyRequest.d.mts +0 -14
- package/dist/esm/serialization/types/GuidedAssemblyRequest.mjs +0 -10
- package/dist/esm/serialization/types/GuidedAssemblySectionRef.d.mts +0 -12
- package/dist/esm/serialization/types/GuidedAssemblySectionRef.mjs +0 -8
- package/dist/esm/serialization/types/GuidedDocumentByAssembly.d.mts +0 -12
- package/dist/esm/serialization/types/GuidedDocumentByAssembly.mjs +0 -8
- package/dist/esm/serialization/types/GuidedDocumentByDynamic.d.mts +0 -12
- package/dist/esm/serialization/types/GuidedDocumentByDynamic.mjs +0 -8
- package/dist/esm/serialization/types/GuidedDocumentByTemplateRef.d.mts +0 -12
- package/dist/esm/serialization/types/GuidedDocumentByTemplateRef.mjs +0 -8
- package/dist/esm/serialization/types/GuidedDocumentRequest.d.mts +0 -10
- package/dist/esm/serialization/types/GuidedDocumentRequest.mjs +0 -10
- package/dist/esm/serialization/types/GuidedDocumentResponse.d.mts +0 -12
- package/dist/esm/serialization/types/GuidedDocumentResponse.mjs +0 -8
- package/dist/esm/serialization/types/GuidedDynamicInline.d.mts +0 -12
- package/dist/esm/serialization/types/GuidedDynamicInline.mjs +0 -8
- package/dist/esm/serialization/types/GuidedDynamicRequest.d.mts +0 -12
- package/dist/esm/serialization/types/GuidedDynamicRequest.mjs +0 -8
- package/dist/esm/serialization/types/GuidedGenerationResult.d.mts +0 -12
- package/dist/esm/serialization/types/GuidedGenerationResult.mjs +0 -10
- package/dist/esm/serialization/types/GuidedGenerationResultUsage.d.mts +0 -10
- package/dist/esm/serialization/types/GuidedGenerationResultUsage.mjs +0 -6
- package/dist/esm/serialization/types/GuidedGenerationResultUsageTokenCount.d.mts +0 -10
- package/dist/esm/serialization/types/GuidedGenerationResultUsageTokenCount.mjs +0 -6
- package/dist/esm/serialization/types/GuidedSectionOverride.d.mts +0 -13
- package/dist/esm/serialization/types/GuidedSectionOverride.mjs +0 -10
- package/dist/esm/serialization/types/GuidedTemplateOverrides.d.mts +0 -12
- package/dist/esm/serialization/types/GuidedTemplateOverrides.mjs +0 -8
- package/dist/esm/serialization/types/GuidedTemplateRef.d.mts +0 -12
- package/dist/esm/serialization/types/GuidedTemplateRef.mjs +0 -8
- package/dist/esm/serialization/types/SectionInstructionsOverride.d.mts +0 -10
- package/dist/esm/serialization/types/SectionInstructionsOverride.mjs +0 -6
- package/dist/esm/serialization/types/SectionOverrides.d.mts +0 -12
- package/dist/esm/serialization/types/SectionOverrides.mjs +0 -9
- /package/dist/cjs/api/types/{GuidedAssemblyRequest.js → AgentsErrorResponse.js} +0 -0
- /package/dist/cjs/api/types/{GuidedAssemblySectionRef.js → AgentsValidationError.js} +0 -0
- /package/dist/cjs/api/types/{GuidedDocumentByAssembly.js → AgentsValidationErrorErrorsItem.js} +0 -0
- /package/dist/cjs/api/types/{GuidedDocumentByDynamic.js → AgentsValidationErrorResponse.js} +0 -0
- /package/dist/esm/api/types/{GuidedAssemblyRequest.mjs → AgentsErrorResponse.mjs} +0 -0
- /package/dist/esm/api/types/{GuidedAssemblySectionRef.mjs → AgentsValidationError.mjs} +0 -0
- /package/dist/esm/api/types/{GuidedDocumentByAssembly.mjs → AgentsValidationErrorErrorsItem.mjs} +0 -0
- /package/dist/esm/api/types/{GuidedDocumentByDynamic.mjs → AgentsValidationErrorResponse.mjs} +0 -0
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.5",
|
|
47
|
+
"User-Agent": "@corti/sdk/2.0.0-templates.5",
|
|
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,
|
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AgentsClient } from "./api/resources/agents/client/Client.js";
|
|
2
|
-
import { AlphaDocumentsClient } from "./api/resources/alphaDocuments/client/Client.js";
|
|
3
2
|
import { AlphaSectionsClient } from "./api/resources/alphaSections/client/Client.js";
|
|
4
3
|
import { AlphaSectionVersionsClient } from "./api/resources/alphaSectionVersions/client/Client.js";
|
|
5
4
|
import { AlphaTemplatesClient } from "./api/resources/alphaTemplates/client/Client.js";
|
|
@@ -35,7 +34,6 @@ export declare class CortiClient {
|
|
|
35
34
|
protected _alphaTemplateVersions: AlphaTemplateVersionsClient | undefined;
|
|
36
35
|
protected _alphaSections: AlphaSectionsClient | undefined;
|
|
37
36
|
protected _alphaSectionVersions: AlphaSectionVersionsClient | undefined;
|
|
38
|
-
protected _alphaDocuments: AlphaDocumentsClient | undefined;
|
|
39
37
|
protected _agents: AgentsClient | undefined;
|
|
40
38
|
protected _stream: StreamClient | undefined;
|
|
41
39
|
protected _transcribe: TranscribeClient | undefined;
|
|
@@ -52,7 +50,6 @@ export declare class CortiClient {
|
|
|
52
50
|
get alphaTemplateVersions(): AlphaTemplateVersionsClient;
|
|
53
51
|
get alphaSections(): AlphaSectionsClient;
|
|
54
52
|
get alphaSectionVersions(): AlphaSectionVersionsClient;
|
|
55
|
-
get alphaDocuments(): AlphaDocumentsClient;
|
|
56
53
|
get agents(): AgentsClient;
|
|
57
54
|
get stream(): StreamClient;
|
|
58
55
|
get transcribe(): TranscribeClient;
|
package/dist/cjs/Client.js
CHANGED
|
@@ -3,21 +3,20 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.CortiClient = void 0;
|
|
5
5
|
const Client_js_1 = require("./api/resources/agents/client/Client.js");
|
|
6
|
-
const Client_js_2 = require("./api/resources/
|
|
7
|
-
const Client_js_3 = require("./api/resources/
|
|
8
|
-
const Client_js_4 = require("./api/resources/
|
|
9
|
-
const Client_js_5 = require("./api/resources/
|
|
10
|
-
const Client_js_6 = require("./api/resources/
|
|
11
|
-
const Client_js_7 = require("./api/resources/
|
|
12
|
-
const Client_js_8 = require("./api/resources/
|
|
13
|
-
const Client_js_9 = require("./api/resources/
|
|
14
|
-
const Client_js_10 = require("./api/resources/
|
|
15
|
-
const Client_js_11 = require("./api/resources/
|
|
16
|
-
const Client_js_12 = require("./api/resources/
|
|
17
|
-
const Client_js_13 = require("./api/resources/
|
|
18
|
-
const Client_js_14 = require("./api/resources/
|
|
19
|
-
const Client_js_15 = require("./api/resources/
|
|
20
|
-
const Client_js_16 = require("./api/resources/transcripts/client/Client.js");
|
|
6
|
+
const Client_js_2 = require("./api/resources/alphaSections/client/Client.js");
|
|
7
|
+
const Client_js_3 = require("./api/resources/alphaSectionVersions/client/Client.js");
|
|
8
|
+
const Client_js_4 = require("./api/resources/alphaTemplates/client/Client.js");
|
|
9
|
+
const Client_js_5 = require("./api/resources/alphaTemplateVersions/client/Client.js");
|
|
10
|
+
const Client_js_6 = require("./api/resources/auth/client/Client.js");
|
|
11
|
+
const Client_js_7 = require("./api/resources/codes/client/Client.js");
|
|
12
|
+
const Client_js_8 = require("./api/resources/documents/client/Client.js");
|
|
13
|
+
const Client_js_9 = require("./api/resources/facts/client/Client.js");
|
|
14
|
+
const Client_js_10 = require("./api/resources/interactions/client/Client.js");
|
|
15
|
+
const Client_js_11 = require("./api/resources/recordings/client/Client.js");
|
|
16
|
+
const Client_js_12 = require("./api/resources/stream/client/Client.js");
|
|
17
|
+
const Client_js_13 = require("./api/resources/templates/client/Client.js");
|
|
18
|
+
const Client_js_14 = require("./api/resources/transcribe/client/Client.js");
|
|
19
|
+
const Client_js_15 = require("./api/resources/transcripts/client/Client.js");
|
|
21
20
|
const BaseClient_js_1 = require("./BaseClient.js");
|
|
22
21
|
class CortiClient {
|
|
23
22
|
constructor(options) {
|
|
@@ -25,55 +24,51 @@ class CortiClient {
|
|
|
25
24
|
}
|
|
26
25
|
get auth() {
|
|
27
26
|
var _a;
|
|
28
|
-
return ((_a = this._auth) !== null && _a !== void 0 ? _a : (this._auth = new
|
|
27
|
+
return ((_a = this._auth) !== null && _a !== void 0 ? _a : (this._auth = new Client_js_6.AuthClient(this._options)));
|
|
29
28
|
}
|
|
30
29
|
get interactions() {
|
|
31
30
|
var _a;
|
|
32
|
-
return ((_a = this._interactions) !== null && _a !== void 0 ? _a : (this._interactions = new
|
|
31
|
+
return ((_a = this._interactions) !== null && _a !== void 0 ? _a : (this._interactions = new Client_js_10.InteractionsClient(this._options)));
|
|
33
32
|
}
|
|
34
33
|
get recordings() {
|
|
35
34
|
var _a;
|
|
36
|
-
return ((_a = this._recordings) !== null && _a !== void 0 ? _a : (this._recordings = new
|
|
35
|
+
return ((_a = this._recordings) !== null && _a !== void 0 ? _a : (this._recordings = new Client_js_11.RecordingsClient(this._options)));
|
|
37
36
|
}
|
|
38
37
|
get transcripts() {
|
|
39
38
|
var _a;
|
|
40
|
-
return ((_a = this._transcripts) !== null && _a !== void 0 ? _a : (this._transcripts = new
|
|
39
|
+
return ((_a = this._transcripts) !== null && _a !== void 0 ? _a : (this._transcripts = new Client_js_15.TranscriptsClient(this._options)));
|
|
41
40
|
}
|
|
42
41
|
get facts() {
|
|
43
42
|
var _a;
|
|
44
|
-
return ((_a = this._facts) !== null && _a !== void 0 ? _a : (this._facts = new
|
|
43
|
+
return ((_a = this._facts) !== null && _a !== void 0 ? _a : (this._facts = new Client_js_9.FactsClient(this._options)));
|
|
45
44
|
}
|
|
46
45
|
get documents() {
|
|
47
46
|
var _a;
|
|
48
|
-
return ((_a = this._documents) !== null && _a !== void 0 ? _a : (this._documents = new
|
|
47
|
+
return ((_a = this._documents) !== null && _a !== void 0 ? _a : (this._documents = new Client_js_8.DocumentsClient(this._options)));
|
|
49
48
|
}
|
|
50
49
|
get templates() {
|
|
51
50
|
var _a;
|
|
52
|
-
return ((_a = this._templates) !== null && _a !== void 0 ? _a : (this._templates = new
|
|
51
|
+
return ((_a = this._templates) !== null && _a !== void 0 ? _a : (this._templates = new Client_js_13.TemplatesClient(this._options)));
|
|
53
52
|
}
|
|
54
53
|
get codes() {
|
|
55
54
|
var _a;
|
|
56
|
-
return ((_a = this._codes) !== null && _a !== void 0 ? _a : (this._codes = new
|
|
55
|
+
return ((_a = this._codes) !== null && _a !== void 0 ? _a : (this._codes = new Client_js_7.CodesClient(this._options)));
|
|
57
56
|
}
|
|
58
57
|
get alphaTemplates() {
|
|
59
58
|
var _a;
|
|
60
|
-
return ((_a = this._alphaTemplates) !== null && _a !== void 0 ? _a : (this._alphaTemplates = new
|
|
59
|
+
return ((_a = this._alphaTemplates) !== null && _a !== void 0 ? _a : (this._alphaTemplates = new Client_js_4.AlphaTemplatesClient(this._options)));
|
|
61
60
|
}
|
|
62
61
|
get alphaTemplateVersions() {
|
|
63
62
|
var _a;
|
|
64
|
-
return ((_a = this._alphaTemplateVersions) !== null && _a !== void 0 ? _a : (this._alphaTemplateVersions = new
|
|
63
|
+
return ((_a = this._alphaTemplateVersions) !== null && _a !== void 0 ? _a : (this._alphaTemplateVersions = new Client_js_5.AlphaTemplateVersionsClient(this._options)));
|
|
65
64
|
}
|
|
66
65
|
get alphaSections() {
|
|
67
66
|
var _a;
|
|
68
|
-
return ((_a = this._alphaSections) !== null && _a !== void 0 ? _a : (this._alphaSections = new
|
|
67
|
+
return ((_a = this._alphaSections) !== null && _a !== void 0 ? _a : (this._alphaSections = new Client_js_2.AlphaSectionsClient(this._options)));
|
|
69
68
|
}
|
|
70
69
|
get alphaSectionVersions() {
|
|
71
70
|
var _a;
|
|
72
|
-
return ((_a = this._alphaSectionVersions) !== null && _a !== void 0 ? _a : (this._alphaSectionVersions = new
|
|
73
|
-
}
|
|
74
|
-
get alphaDocuments() {
|
|
75
|
-
var _a;
|
|
76
|
-
return ((_a = this._alphaDocuments) !== null && _a !== void 0 ? _a : (this._alphaDocuments = new Client_js_2.AlphaDocumentsClient(this._options)));
|
|
71
|
+
return ((_a = this._alphaSectionVersions) !== null && _a !== void 0 ? _a : (this._alphaSectionVersions = new Client_js_3.AlphaSectionVersionsClient(this._options)));
|
|
77
72
|
}
|
|
78
73
|
get agents() {
|
|
79
74
|
var _a;
|
|
@@ -81,11 +76,11 @@ class CortiClient {
|
|
|
81
76
|
}
|
|
82
77
|
get stream() {
|
|
83
78
|
var _a;
|
|
84
|
-
return ((_a = this._stream) !== null && _a !== void 0 ? _a : (this._stream = new
|
|
79
|
+
return ((_a = this._stream) !== null && _a !== void 0 ? _a : (this._stream = new Client_js_12.StreamClient(this._options)));
|
|
85
80
|
}
|
|
86
81
|
get transcribe() {
|
|
87
82
|
var _a;
|
|
88
|
-
return ((_a = this._transcribe) !== null && _a !== void 0 ? _a : (this._transcribe = new
|
|
83
|
+
return ((_a = this._transcribe) !== null && _a !== void 0 ? _a : (this._transcribe = new Client_js_14.TranscribeClient(this._options)));
|
|
89
84
|
}
|
|
90
85
|
}
|
|
91
86
|
exports.CortiClient = CortiClient;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type * as core from "../../core/index.js";
|
|
2
2
|
import * as errors from "../../errors/index.js";
|
|
3
|
+
import type * as Corti from "../index.js";
|
|
3
4
|
export declare class UnprocessableEntityError extends errors.CortiError {
|
|
4
|
-
constructor(body
|
|
5
|
+
constructor(body: Corti.AgentsValidationErrorResponse, rawResponse?: core.RawResponse);
|
|
5
6
|
}
|
|
@@ -196,7 +196,13 @@ class AgentsClient {
|
|
|
196
196
|
case 401:
|
|
197
197
|
throw new Corti.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
198
198
|
case 422:
|
|
199
|
-
throw new Corti.UnprocessableEntityError(_response.error.body,
|
|
199
|
+
throw new Corti.UnprocessableEntityError(serializers.AgentsValidationErrorResponse.parseOrThrow(_response.error.body, {
|
|
200
|
+
unrecognizedObjectKeys: "passthrough",
|
|
201
|
+
allowUnrecognizedUnionMembers: true,
|
|
202
|
+
allowUnrecognizedEnumValues: true,
|
|
203
|
+
skipValidation: true,
|
|
204
|
+
breadcrumbsPrefix: ["response"],
|
|
205
|
+
}), _response.rawResponse);
|
|
200
206
|
default:
|
|
201
207
|
throw new errors.CortiError({
|
|
202
208
|
statusCode: _response.error.statusCode,
|
|
@@ -386,7 +392,13 @@ class AgentsClient {
|
|
|
386
392
|
case 404:
|
|
387
393
|
throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
|
|
388
394
|
case 422:
|
|
389
|
-
throw new Corti.UnprocessableEntityError(_response.error.body,
|
|
395
|
+
throw new Corti.UnprocessableEntityError(serializers.AgentsValidationErrorResponse.parseOrThrow(_response.error.body, {
|
|
396
|
+
unrecognizedObjectKeys: "passthrough",
|
|
397
|
+
allowUnrecognizedUnionMembers: true,
|
|
398
|
+
allowUnrecognizedEnumValues: true,
|
|
399
|
+
skipValidation: true,
|
|
400
|
+
breadcrumbsPrefix: ["response"],
|
|
401
|
+
}), _response.rawResponse);
|
|
390
402
|
default:
|
|
391
403
|
throw new errors.CortiError({
|
|
392
404
|
statusCode: _response.error.statusCode,
|
|
@@ -535,7 +547,13 @@ class AgentsClient {
|
|
|
535
547
|
case 404:
|
|
536
548
|
throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
|
|
537
549
|
case 422:
|
|
538
|
-
throw new Corti.UnprocessableEntityError(_response.error.body,
|
|
550
|
+
throw new Corti.UnprocessableEntityError(serializers.AgentsValidationErrorResponse.parseOrThrow(_response.error.body, {
|
|
551
|
+
unrecognizedObjectKeys: "passthrough",
|
|
552
|
+
allowUnrecognizedUnionMembers: true,
|
|
553
|
+
allowUnrecognizedEnumValues: true,
|
|
554
|
+
skipValidation: true,
|
|
555
|
+
breadcrumbsPrefix: ["response"],
|
|
556
|
+
}), _response.rawResponse);
|
|
539
557
|
default:
|
|
540
558
|
throw new errors.CortiError({
|
|
541
559
|
statusCode: _response.error.statusCode,
|
|
@@ -748,7 +766,13 @@ class AgentsClient {
|
|
|
748
766
|
case 401:
|
|
749
767
|
throw new Corti.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
750
768
|
case 422:
|
|
751
|
-
throw new Corti.UnprocessableEntityError(_response.error.body,
|
|
769
|
+
throw new Corti.UnprocessableEntityError(serializers.AgentsValidationErrorResponse.parseOrThrow(_response.error.body, {
|
|
770
|
+
unrecognizedObjectKeys: "passthrough",
|
|
771
|
+
allowUnrecognizedUnionMembers: true,
|
|
772
|
+
allowUnrecognizedEnumValues: true,
|
|
773
|
+
skipValidation: true,
|
|
774
|
+
breadcrumbsPrefix: ["response"],
|
|
775
|
+
}), _response.rawResponse);
|
|
752
776
|
default:
|
|
753
777
|
throw new errors.CortiError({
|
|
754
778
|
statusCode: _response.error.statusCode,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export * from "./agents/client/requests/index.js";
|
|
2
2
|
export * as agents from "./agents/index.js";
|
|
3
3
|
export * from "./agents/types/index.js";
|
|
4
|
-
export * as alphaDocuments from "./alphaDocuments/index.js";
|
|
5
4
|
export * from "./alphaSections/client/requests/index.js";
|
|
6
5
|
export * as alphaSections from "./alphaSections/index.js";
|
|
7
6
|
export * as alphaSectionVersions from "./alphaSectionVersions/index.js";
|
|
@@ -36,11 +36,10 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.transcripts = exports.transcribe = exports.templates = exports.stream = exports.recordings = exports.interactions = exports.facts = exports.documents = exports.codes = exports.auth = exports.alphaTemplateVersions = exports.alphaTemplates = exports.alphaSectionVersions = exports.alphaSections = exports.
|
|
39
|
+
exports.transcripts = exports.transcribe = exports.templates = exports.stream = exports.recordings = exports.interactions = exports.facts = exports.documents = exports.codes = exports.auth = exports.alphaTemplateVersions = exports.alphaTemplates = exports.alphaSectionVersions = exports.alphaSections = exports.agents = void 0;
|
|
40
40
|
__exportStar(require("./agents/client/requests/index.js"), exports);
|
|
41
41
|
exports.agents = __importStar(require("./agents/index.js"));
|
|
42
42
|
__exportStar(require("./agents/types/index.js"), exports);
|
|
43
|
-
exports.alphaDocuments = __importStar(require("./alphaDocuments/index.js"));
|
|
44
43
|
__exportStar(require("./alphaSections/client/requests/index.js"), exports);
|
|
45
44
|
exports.alphaSections = __importStar(require("./alphaSections/index.js"));
|
|
46
45
|
exports.alphaSectionVersions = __importStar(require("./alphaSectionVersions/index.js"));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface AgentsErrorResponse {
|
|
2
|
+
/** A machine-readable error code that identifies the type of error. */
|
|
3
|
+
code: string;
|
|
4
|
+
/** A human-readable description of the error, providing more context about what went wrong. */
|
|
5
|
+
description: string;
|
|
6
|
+
/** A human-readable message describing how to fix the issue. */
|
|
7
|
+
howToFix?: string;
|
|
8
|
+
/** An optional object containing additional details about the error. */
|
|
9
|
+
details?: Record<string, unknown>;
|
|
10
|
+
/** An optional object containing the cause of the error, following the same structure as the parent error response. */
|
|
11
|
+
cause?: Record<string, unknown>;
|
|
12
|
+
}
|
|
@@ -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;
|
|
@@ -4,7 +4,7 @@ import type * as Corti from "../index.js";
|
|
|
4
4
|
*/
|
|
5
5
|
export interface SectionGenerationPartial {
|
|
6
6
|
/** Override the inherited section title. Passed to the LLM. */
|
|
7
|
-
|
|
7
|
+
heading?: string;
|
|
8
8
|
/** Override the inherited prompt instructions for this section. Any field omitted is inherited. */
|
|
9
9
|
instructions?: Corti.SectionInstructionsPartial;
|
|
10
10
|
/** Override the inherited output schema. */
|
|
@@ -22,6 +22,7 @@ export * from "./AgentsCreateMcpServerAuthorizationType.js";
|
|
|
22
22
|
export * from "./AgentsCreateMcpServerTransportType.js";
|
|
23
23
|
export * from "./AgentsDataPart.js";
|
|
24
24
|
export * from "./AgentsDataPartKind.js";
|
|
25
|
+
export * from "./AgentsErrorResponse.js";
|
|
25
26
|
export * from "./AgentsExpert.js";
|
|
26
27
|
export * from "./AgentsExpertReference.js";
|
|
27
28
|
export * from "./AgentsExpertReferenceType.js";
|
|
@@ -52,6 +53,9 @@ export * from "./AgentsTaskStatusState.js";
|
|
|
52
53
|
export * from "./AgentsTextPart.js";
|
|
53
54
|
export * from "./AgentsTextPartKind.js";
|
|
54
55
|
export * from "./AgentsUpdateExpertReference.js";
|
|
56
|
+
export * from "./AgentsValidationError.js";
|
|
57
|
+
export * from "./AgentsValidationErrorErrorsItem.js";
|
|
58
|
+
export * from "./AgentsValidationErrorResponse.js";
|
|
55
59
|
export * from "./ArrayNode.js";
|
|
56
60
|
export * from "./AuthTokenRequestAuthorizationCode.js";
|
|
57
61
|
export * from "./AuthTokenRequestAuthorizationPkce.js";
|
|
@@ -122,21 +126,6 @@ export * from "./FactsListItem.js";
|
|
|
122
126
|
export * from "./FactsListResponse.js";
|
|
123
127
|
export * from "./FactsUpdateResponse.js";
|
|
124
128
|
export * from "./FieldDefinition.js";
|
|
125
|
-
export * from "./GuidedAssemblyRequest.js";
|
|
126
|
-
export * from "./GuidedAssemblySectionRef.js";
|
|
127
|
-
export * from "./GuidedDocumentByAssembly.js";
|
|
128
|
-
export * from "./GuidedDocumentByDynamic.js";
|
|
129
|
-
export * from "./GuidedDocumentByTemplateRef.js";
|
|
130
|
-
export * from "./GuidedDocumentRequest.js";
|
|
131
|
-
export * from "./GuidedDocumentResponse.js";
|
|
132
|
-
export * from "./GuidedDynamicInline.js";
|
|
133
|
-
export * from "./GuidedDynamicRequest.js";
|
|
134
|
-
export * from "./GuidedGenerationResult.js";
|
|
135
|
-
export * from "./GuidedGenerationResultUsage.js";
|
|
136
|
-
export * from "./GuidedGenerationResultUsageTokenCount.js";
|
|
137
|
-
export * from "./GuidedSectionOverride.js";
|
|
138
|
-
export * from "./GuidedTemplateOverrides.js";
|
|
139
|
-
export * from "./GuidedTemplateRef.js";
|
|
140
129
|
export * from "./InteractionsCreateResponse.js";
|
|
141
130
|
export * from "./InteractionsEncounterCreateRequest.js";
|
|
142
131
|
export * from "./InteractionsEncounterPeriod.js";
|
|
@@ -158,9 +147,7 @@ export * from "./Section.js";
|
|
|
158
147
|
export * from "./SectionGeneration.js";
|
|
159
148
|
export * from "./SectionGenerationPartial.js";
|
|
160
149
|
export * from "./SectionInstructions.js";
|
|
161
|
-
export * from "./SectionInstructionsOverride.js";
|
|
162
150
|
export * from "./SectionInstructionsPartial.js";
|
|
163
|
-
export * from "./SectionOverrides.js";
|
|
164
151
|
export * from "./SectionVersion.js";
|
|
165
152
|
export * from "./StatusResponse.js";
|
|
166
153
|
export * from "./StreamConfig.js";
|
|
@@ -38,6 +38,7 @@ __exportStar(require("./AgentsCreateMcpServerAuthorizationType.js"), exports);
|
|
|
38
38
|
__exportStar(require("./AgentsCreateMcpServerTransportType.js"), exports);
|
|
39
39
|
__exportStar(require("./AgentsDataPart.js"), exports);
|
|
40
40
|
__exportStar(require("./AgentsDataPartKind.js"), exports);
|
|
41
|
+
__exportStar(require("./AgentsErrorResponse.js"), exports);
|
|
41
42
|
__exportStar(require("./AgentsExpert.js"), exports);
|
|
42
43
|
__exportStar(require("./AgentsExpertReference.js"), exports);
|
|
43
44
|
__exportStar(require("./AgentsExpertReferenceType.js"), exports);
|
|
@@ -68,6 +69,9 @@ __exportStar(require("./AgentsTaskStatusState.js"), exports);
|
|
|
68
69
|
__exportStar(require("./AgentsTextPart.js"), exports);
|
|
69
70
|
__exportStar(require("./AgentsTextPartKind.js"), exports);
|
|
70
71
|
__exportStar(require("./AgentsUpdateExpertReference.js"), exports);
|
|
72
|
+
__exportStar(require("./AgentsValidationError.js"), exports);
|
|
73
|
+
__exportStar(require("./AgentsValidationErrorErrorsItem.js"), exports);
|
|
74
|
+
__exportStar(require("./AgentsValidationErrorResponse.js"), exports);
|
|
71
75
|
__exportStar(require("./ArrayNode.js"), exports);
|
|
72
76
|
__exportStar(require("./AuthTokenRequestAuthorizationCode.js"), exports);
|
|
73
77
|
__exportStar(require("./AuthTokenRequestAuthorizationPkce.js"), exports);
|
|
@@ -138,21 +142,6 @@ __exportStar(require("./FactsListItem.js"), exports);
|
|
|
138
142
|
__exportStar(require("./FactsListResponse.js"), exports);
|
|
139
143
|
__exportStar(require("./FactsUpdateResponse.js"), exports);
|
|
140
144
|
__exportStar(require("./FieldDefinition.js"), exports);
|
|
141
|
-
__exportStar(require("./GuidedAssemblyRequest.js"), exports);
|
|
142
|
-
__exportStar(require("./GuidedAssemblySectionRef.js"), exports);
|
|
143
|
-
__exportStar(require("./GuidedDocumentByAssembly.js"), exports);
|
|
144
|
-
__exportStar(require("./GuidedDocumentByDynamic.js"), exports);
|
|
145
|
-
__exportStar(require("./GuidedDocumentByTemplateRef.js"), exports);
|
|
146
|
-
__exportStar(require("./GuidedDocumentRequest.js"), exports);
|
|
147
|
-
__exportStar(require("./GuidedDocumentResponse.js"), exports);
|
|
148
|
-
__exportStar(require("./GuidedDynamicInline.js"), exports);
|
|
149
|
-
__exportStar(require("./GuidedDynamicRequest.js"), exports);
|
|
150
|
-
__exportStar(require("./GuidedGenerationResult.js"), exports);
|
|
151
|
-
__exportStar(require("./GuidedGenerationResultUsage.js"), exports);
|
|
152
|
-
__exportStar(require("./GuidedGenerationResultUsageTokenCount.js"), exports);
|
|
153
|
-
__exportStar(require("./GuidedSectionOverride.js"), exports);
|
|
154
|
-
__exportStar(require("./GuidedTemplateOverrides.js"), exports);
|
|
155
|
-
__exportStar(require("./GuidedTemplateRef.js"), exports);
|
|
156
145
|
__exportStar(require("./InteractionsCreateResponse.js"), exports);
|
|
157
146
|
__exportStar(require("./InteractionsEncounterCreateRequest.js"), exports);
|
|
158
147
|
__exportStar(require("./InteractionsEncounterPeriod.js"), exports);
|
|
@@ -174,9 +163,7 @@ __exportStar(require("./Section.js"), exports);
|
|
|
174
163
|
__exportStar(require("./SectionGeneration.js"), exports);
|
|
175
164
|
__exportStar(require("./SectionGenerationPartial.js"), exports);
|
|
176
165
|
__exportStar(require("./SectionInstructions.js"), exports);
|
|
177
|
-
__exportStar(require("./SectionInstructionsOverride.js"), exports);
|
|
178
166
|
__exportStar(require("./SectionInstructionsPartial.js"), exports);
|
|
179
|
-
__exportStar(require("./SectionOverrides.js"), exports);
|
|
180
167
|
__exportStar(require("./SectionVersion.js"), exports);
|
|
181
168
|
__exportStar(require("./StatusResponse.js"), exports);
|
|
182
169
|
__exportStar(require("./StreamConfig.js"), exports);
|
|
@@ -0,0 +1,13 @@
|
|
|
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 AgentsErrorResponse: core.serialization.ObjectSchema<serializers.AgentsErrorResponse.Raw, Corti.AgentsErrorResponse>;
|
|
5
|
+
export declare namespace AgentsErrorResponse {
|
|
6
|
+
interface Raw {
|
|
7
|
+
code: string;
|
|
8
|
+
description: string;
|
|
9
|
+
howToFix?: string | null;
|
|
10
|
+
details?: Record<string, unknown> | null;
|
|
11
|
+
cause?: Record<string, unknown> | null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -34,11 +34,12 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
};
|
|
35
35
|
})();
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.
|
|
37
|
+
exports.AgentsErrorResponse = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
exports.AgentsErrorResponse = core.serialization.object({
|
|
40
|
+
code: core.serialization.string(),
|
|
41
|
+
description: core.serialization.string(),
|
|
42
|
+
howToFix: core.serialization.string().optional(),
|
|
43
|
+
details: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
44
|
+
cause: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
44
45
|
});
|
|
@@ -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
|
+
import { AgentsValidationErrorErrorsItem } from "./AgentsValidationErrorErrorsItem.js";
|
|
5
|
+
export declare const AgentsValidationError: core.serialization.ObjectSchema<serializers.AgentsValidationError.Raw, Corti.AgentsValidationError>;
|
|
6
|
+
export declare namespace AgentsValidationError {
|
|
7
|
+
interface Raw {
|
|
8
|
+
msg: string;
|
|
9
|
+
type: string;
|
|
10
|
+
reason: string;
|
|
11
|
+
howToFix: string;
|
|
12
|
+
errors?: AgentsValidationErrorErrorsItem.Raw[] | null;
|
|
13
|
+
}
|
|
14
|
+
}
|
package/dist/cjs/serialization/types/{GuidedDocumentByTemplateRef.js → AgentsValidationError.js}
RENAMED
|
@@ -34,11 +34,13 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
};
|
|
35
35
|
})();
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.
|
|
37
|
+
exports.AgentsValidationError = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
const AgentsValidationErrorErrorsItem_js_1 = require("./AgentsValidationErrorErrorsItem.js");
|
|
40
|
+
exports.AgentsValidationError = core.serialization.object({
|
|
41
|
+
msg: core.serialization.string(),
|
|
42
|
+
type: core.serialization.string(),
|
|
43
|
+
reason: core.serialization.string(),
|
|
44
|
+
howToFix: core.serialization.string(),
|
|
45
|
+
errors: core.serialization.list(AgentsValidationErrorErrorsItem_js_1.AgentsValidationErrorErrorsItem).optional(),
|
|
44
46
|
});
|
|
@@ -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 AgentsValidationErrorErrorsItem: core.serialization.ObjectSchema<serializers.AgentsValidationErrorErrorsItem.Raw, Corti.AgentsValidationErrorErrorsItem>;
|
|
5
|
+
export declare namespace AgentsValidationErrorErrorsItem {
|
|
6
|
+
interface Raw {
|
|
7
|
+
location?: string | null;
|
|
8
|
+
reason?: string | null;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -34,9 +34,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
};
|
|
35
35
|
})();
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.
|
|
37
|
+
exports.AgentsValidationErrorErrorsItem = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
|
-
exports.
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
exports.AgentsValidationErrorErrorsItem = core.serialization.object({
|
|
40
|
+
location: core.serialization.string().optional(),
|
|
41
|
+
reason: core.serialization.string().optional(),
|
|
42
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 { AgentsErrorResponse } from "./AgentsErrorResponse.js";
|
|
5
|
+
import { AgentsValidationError } from "./AgentsValidationError.js";
|
|
6
|
+
export declare const AgentsValidationErrorResponse: core.serialization.ObjectSchema<serializers.AgentsValidationErrorResponse.Raw, Corti.AgentsValidationErrorResponse>;
|
|
7
|
+
export declare namespace AgentsValidationErrorResponse {
|
|
8
|
+
interface Raw extends AgentsErrorResponse.Raw {
|
|
9
|
+
detail?: AgentsValidationError.Raw[] | null;
|
|
10
|
+
}
|
|
11
|
+
}
|
package/dist/cjs/serialization/types/{GuidedDynamicRequest.js → AgentsValidationErrorResponse.js}
RENAMED
|
@@ -34,11 +34,12 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
};
|
|
35
35
|
})();
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.
|
|
37
|
+
exports.AgentsValidationErrorResponse = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
})
|
|
39
|
+
const AgentsErrorResponse_js_1 = require("./AgentsErrorResponse.js");
|
|
40
|
+
const AgentsValidationError_js_1 = require("./AgentsValidationError.js");
|
|
41
|
+
exports.AgentsValidationErrorResponse = core.serialization
|
|
42
|
+
.object({
|
|
43
|
+
detail: core.serialization.list(AgentsValidationError_js_1.AgentsValidationError).optional(),
|
|
44
|
+
})
|
|
45
|
+
.extend(AgentsErrorResponse_js_1.AgentsErrorResponse);
|
|
@@ -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
|
});
|
|
@@ -5,7 +5,7 @@ import { SectionInstructionsPartial } from "./SectionInstructionsPartial.js";
|
|
|
5
5
|
export declare const SectionGenerationPartial: core.serialization.ObjectSchema<serializers.SectionGenerationPartial.Raw, Corti.SectionGenerationPartial>;
|
|
6
6
|
export declare namespace SectionGenerationPartial {
|
|
7
7
|
interface Raw {
|
|
8
|
-
|
|
8
|
+
heading?: string | null;
|
|
9
9
|
instructions?: SectionInstructionsPartial.Raw | null;
|
|
10
10
|
outputSchema?: serializers.OutputSchema.Raw | null;
|
|
11
11
|
}
|
|
@@ -39,7 +39,7 @@ const core = __importStar(require("../../core/index.js"));
|
|
|
39
39
|
const serializers = __importStar(require("../index.js"));
|
|
40
40
|
const SectionInstructionsPartial_js_1 = require("./SectionInstructionsPartial.js");
|
|
41
41
|
exports.SectionGenerationPartial = core.serialization.object({
|
|
42
|
-
|
|
42
|
+
heading: core.serialization.string().optional(),
|
|
43
43
|
instructions: SectionInstructionsPartial_js_1.SectionInstructionsPartial.optional(),
|
|
44
44
|
outputSchema: core.serialization.lazy(() => serializers.OutputSchema).optional(),
|
|
45
45
|
});
|