@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
|
@@ -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);
|
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.5";
|
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.5",
|
|
10
|
+
"User-Agent": "@corti/sdk/2.0.0-templates.5",
|
|
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,
|
package/dist/esm/Client.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AgentsClient } from "./api/resources/agents/client/Client.mjs";
|
|
2
|
-
import { AlphaDocumentsClient } from "./api/resources/alphaDocuments/client/Client.mjs";
|
|
3
2
|
import { AlphaSectionsClient } from "./api/resources/alphaSections/client/Client.mjs";
|
|
4
3
|
import { AlphaSectionVersionsClient } from "./api/resources/alphaSectionVersions/client/Client.mjs";
|
|
5
4
|
import { AlphaTemplatesClient } from "./api/resources/alphaTemplates/client/Client.mjs";
|
|
@@ -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/esm/Client.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import { AgentsClient } from "./api/resources/agents/client/Client.mjs";
|
|
3
|
-
import { AlphaDocumentsClient } from "./api/resources/alphaDocuments/client/Client.mjs";
|
|
4
3
|
import { AlphaSectionsClient } from "./api/resources/alphaSections/client/Client.mjs";
|
|
5
4
|
import { AlphaSectionVersionsClient } from "./api/resources/alphaSectionVersions/client/Client.mjs";
|
|
6
5
|
import { AlphaTemplatesClient } from "./api/resources/alphaTemplates/client/Client.mjs";
|
|
@@ -68,10 +67,6 @@ export class CortiClient {
|
|
|
68
67
|
var _a;
|
|
69
68
|
return ((_a = this._alphaSectionVersions) !== null && _a !== void 0 ? _a : (this._alphaSectionVersions = new AlphaSectionVersionsClient(this._options)));
|
|
70
69
|
}
|
|
71
|
-
get alphaDocuments() {
|
|
72
|
-
var _a;
|
|
73
|
-
return ((_a = this._alphaDocuments) !== null && _a !== void 0 ? _a : (this._alphaDocuments = new AlphaDocumentsClient(this._options)));
|
|
74
|
-
}
|
|
75
70
|
get agents() {
|
|
76
71
|
var _a;
|
|
77
72
|
return ((_a = this._agents) !== null && _a !== void 0 ? _a : (this._agents = new AgentsClient(this._options)));
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type * as core from "../../core/index.mjs";
|
|
2
2
|
import * as errors from "../../errors/index.mjs";
|
|
3
|
+
import type * as Corti from "../index.mjs";
|
|
3
4
|
export declare class UnprocessableEntityError extends errors.CortiError {
|
|
4
|
-
constructor(body
|
|
5
|
+
constructor(body: Corti.AgentsValidationErrorResponse, rawResponse?: core.RawResponse);
|
|
5
6
|
}
|
|
@@ -160,7 +160,13 @@ export class AgentsClient {
|
|
|
160
160
|
case 401:
|
|
161
161
|
throw new Corti.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
162
162
|
case 422:
|
|
163
|
-
throw new Corti.UnprocessableEntityError(_response.error.body,
|
|
163
|
+
throw new Corti.UnprocessableEntityError(serializers.AgentsValidationErrorResponse.parseOrThrow(_response.error.body, {
|
|
164
|
+
unrecognizedObjectKeys: "passthrough",
|
|
165
|
+
allowUnrecognizedUnionMembers: true,
|
|
166
|
+
allowUnrecognizedEnumValues: true,
|
|
167
|
+
skipValidation: true,
|
|
168
|
+
breadcrumbsPrefix: ["response"],
|
|
169
|
+
}), _response.rawResponse);
|
|
164
170
|
default:
|
|
165
171
|
throw new errors.CortiError({
|
|
166
172
|
statusCode: _response.error.statusCode,
|
|
@@ -350,7 +356,13 @@ export class AgentsClient {
|
|
|
350
356
|
case 404:
|
|
351
357
|
throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
|
|
352
358
|
case 422:
|
|
353
|
-
throw new Corti.UnprocessableEntityError(_response.error.body,
|
|
359
|
+
throw new Corti.UnprocessableEntityError(serializers.AgentsValidationErrorResponse.parseOrThrow(_response.error.body, {
|
|
360
|
+
unrecognizedObjectKeys: "passthrough",
|
|
361
|
+
allowUnrecognizedUnionMembers: true,
|
|
362
|
+
allowUnrecognizedEnumValues: true,
|
|
363
|
+
skipValidation: true,
|
|
364
|
+
breadcrumbsPrefix: ["response"],
|
|
365
|
+
}), _response.rawResponse);
|
|
354
366
|
default:
|
|
355
367
|
throw new errors.CortiError({
|
|
356
368
|
statusCode: _response.error.statusCode,
|
|
@@ -499,7 +511,13 @@ export class AgentsClient {
|
|
|
499
511
|
case 404:
|
|
500
512
|
throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
|
|
501
513
|
case 422:
|
|
502
|
-
throw new Corti.UnprocessableEntityError(_response.error.body,
|
|
514
|
+
throw new Corti.UnprocessableEntityError(serializers.AgentsValidationErrorResponse.parseOrThrow(_response.error.body, {
|
|
515
|
+
unrecognizedObjectKeys: "passthrough",
|
|
516
|
+
allowUnrecognizedUnionMembers: true,
|
|
517
|
+
allowUnrecognizedEnumValues: true,
|
|
518
|
+
skipValidation: true,
|
|
519
|
+
breadcrumbsPrefix: ["response"],
|
|
520
|
+
}), _response.rawResponse);
|
|
503
521
|
default:
|
|
504
522
|
throw new errors.CortiError({
|
|
505
523
|
statusCode: _response.error.statusCode,
|
|
@@ -712,7 +730,13 @@ export class AgentsClient {
|
|
|
712
730
|
case 401:
|
|
713
731
|
throw new Corti.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
714
732
|
case 422:
|
|
715
|
-
throw new Corti.UnprocessableEntityError(_response.error.body,
|
|
733
|
+
throw new Corti.UnprocessableEntityError(serializers.AgentsValidationErrorResponse.parseOrThrow(_response.error.body, {
|
|
734
|
+
unrecognizedObjectKeys: "passthrough",
|
|
735
|
+
allowUnrecognizedUnionMembers: true,
|
|
736
|
+
allowUnrecognizedEnumValues: true,
|
|
737
|
+
skipValidation: true,
|
|
738
|
+
breadcrumbsPrefix: ["response"],
|
|
739
|
+
}), _response.rawResponse);
|
|
716
740
|
default:
|
|
717
741
|
throw new errors.CortiError({
|
|
718
742
|
statusCode: _response.error.statusCode,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export * from "./agents/client/requests/index.mjs";
|
|
2
2
|
export * as agents from "./agents/index.mjs";
|
|
3
3
|
export * from "./agents/types/index.mjs";
|
|
4
|
-
export * as alphaDocuments from "./alphaDocuments/index.mjs";
|
|
5
4
|
export * from "./alphaSections/client/requests/index.mjs";
|
|
6
5
|
export * as alphaSections from "./alphaSections/index.mjs";
|
|
7
6
|
export * as alphaSectionVersions from "./alphaSectionVersions/index.mjs";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export * from "./agents/client/requests/index.mjs";
|
|
2
2
|
export * as agents from "./agents/index.mjs";
|
|
3
3
|
export * from "./agents/types/index.mjs";
|
|
4
|
-
export * as alphaDocuments from "./alphaDocuments/index.mjs";
|
|
5
4
|
export * from "./alphaSections/client/requests/index.mjs";
|
|
6
5
|
export * as alphaSections from "./alphaSections/index.mjs";
|
|
7
6
|
export * as alphaSectionVersions from "./alphaSectionVersions/index.mjs";
|
|
@@ -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.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;
|
|
@@ -4,7 +4,7 @@ import type * as Corti from "../index.mjs";
|
|
|
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.mjs";
|
|
|
22
22
|
export * from "./AgentsCreateMcpServerTransportType.mjs";
|
|
23
23
|
export * from "./AgentsDataPart.mjs";
|
|
24
24
|
export * from "./AgentsDataPartKind.mjs";
|
|
25
|
+
export * from "./AgentsErrorResponse.mjs";
|
|
25
26
|
export * from "./AgentsExpert.mjs";
|
|
26
27
|
export * from "./AgentsExpertReference.mjs";
|
|
27
28
|
export * from "./AgentsExpertReferenceType.mjs";
|
|
@@ -52,6 +53,9 @@ export * from "./AgentsTaskStatusState.mjs";
|
|
|
52
53
|
export * from "./AgentsTextPart.mjs";
|
|
53
54
|
export * from "./AgentsTextPartKind.mjs";
|
|
54
55
|
export * from "./AgentsUpdateExpertReference.mjs";
|
|
56
|
+
export * from "./AgentsValidationError.mjs";
|
|
57
|
+
export * from "./AgentsValidationErrorErrorsItem.mjs";
|
|
58
|
+
export * from "./AgentsValidationErrorResponse.mjs";
|
|
55
59
|
export * from "./ArrayNode.mjs";
|
|
56
60
|
export * from "./AuthTokenRequestAuthorizationCode.mjs";
|
|
57
61
|
export * from "./AuthTokenRequestAuthorizationPkce.mjs";
|
|
@@ -122,21 +126,6 @@ export * from "./FactsListItem.mjs";
|
|
|
122
126
|
export * from "./FactsListResponse.mjs";
|
|
123
127
|
export * from "./FactsUpdateResponse.mjs";
|
|
124
128
|
export * from "./FieldDefinition.mjs";
|
|
125
|
-
export * from "./GuidedAssemblyRequest.mjs";
|
|
126
|
-
export * from "./GuidedAssemblySectionRef.mjs";
|
|
127
|
-
export * from "./GuidedDocumentByAssembly.mjs";
|
|
128
|
-
export * from "./GuidedDocumentByDynamic.mjs";
|
|
129
|
-
export * from "./GuidedDocumentByTemplateRef.mjs";
|
|
130
|
-
export * from "./GuidedDocumentRequest.mjs";
|
|
131
|
-
export * from "./GuidedDocumentResponse.mjs";
|
|
132
|
-
export * from "./GuidedDynamicInline.mjs";
|
|
133
|
-
export * from "./GuidedDynamicRequest.mjs";
|
|
134
|
-
export * from "./GuidedGenerationResult.mjs";
|
|
135
|
-
export * from "./GuidedGenerationResultUsage.mjs";
|
|
136
|
-
export * from "./GuidedGenerationResultUsageTokenCount.mjs";
|
|
137
|
-
export * from "./GuidedSectionOverride.mjs";
|
|
138
|
-
export * from "./GuidedTemplateOverrides.mjs";
|
|
139
|
-
export * from "./GuidedTemplateRef.mjs";
|
|
140
129
|
export * from "./InteractionsCreateResponse.mjs";
|
|
141
130
|
export * from "./InteractionsEncounterCreateRequest.mjs";
|
|
142
131
|
export * from "./InteractionsEncounterPeriod.mjs";
|
|
@@ -158,9 +147,7 @@ export * from "./Section.mjs";
|
|
|
158
147
|
export * from "./SectionGeneration.mjs";
|
|
159
148
|
export * from "./SectionGenerationPartial.mjs";
|
|
160
149
|
export * from "./SectionInstructions.mjs";
|
|
161
|
-
export * from "./SectionInstructionsOverride.mjs";
|
|
162
150
|
export * from "./SectionInstructionsPartial.mjs";
|
|
163
|
-
export * from "./SectionOverrides.mjs";
|
|
164
151
|
export * from "./SectionVersion.mjs";
|
|
165
152
|
export * from "./StatusResponse.mjs";
|
|
166
153
|
export * from "./StreamConfig.mjs";
|
|
@@ -22,6 +22,7 @@ export * from "./AgentsCreateMcpServerAuthorizationType.mjs";
|
|
|
22
22
|
export * from "./AgentsCreateMcpServerTransportType.mjs";
|
|
23
23
|
export * from "./AgentsDataPart.mjs";
|
|
24
24
|
export * from "./AgentsDataPartKind.mjs";
|
|
25
|
+
export * from "./AgentsErrorResponse.mjs";
|
|
25
26
|
export * from "./AgentsExpert.mjs";
|
|
26
27
|
export * from "./AgentsExpertReference.mjs";
|
|
27
28
|
export * from "./AgentsExpertReferenceType.mjs";
|
|
@@ -52,6 +53,9 @@ export * from "./AgentsTaskStatusState.mjs";
|
|
|
52
53
|
export * from "./AgentsTextPart.mjs";
|
|
53
54
|
export * from "./AgentsTextPartKind.mjs";
|
|
54
55
|
export * from "./AgentsUpdateExpertReference.mjs";
|
|
56
|
+
export * from "./AgentsValidationError.mjs";
|
|
57
|
+
export * from "./AgentsValidationErrorErrorsItem.mjs";
|
|
58
|
+
export * from "./AgentsValidationErrorResponse.mjs";
|
|
55
59
|
export * from "./ArrayNode.mjs";
|
|
56
60
|
export * from "./AuthTokenRequestAuthorizationCode.mjs";
|
|
57
61
|
export * from "./AuthTokenRequestAuthorizationPkce.mjs";
|
|
@@ -122,21 +126,6 @@ export * from "./FactsListItem.mjs";
|
|
|
122
126
|
export * from "./FactsListResponse.mjs";
|
|
123
127
|
export * from "./FactsUpdateResponse.mjs";
|
|
124
128
|
export * from "./FieldDefinition.mjs";
|
|
125
|
-
export * from "./GuidedAssemblyRequest.mjs";
|
|
126
|
-
export * from "./GuidedAssemblySectionRef.mjs";
|
|
127
|
-
export * from "./GuidedDocumentByAssembly.mjs";
|
|
128
|
-
export * from "./GuidedDocumentByDynamic.mjs";
|
|
129
|
-
export * from "./GuidedDocumentByTemplateRef.mjs";
|
|
130
|
-
export * from "./GuidedDocumentRequest.mjs";
|
|
131
|
-
export * from "./GuidedDocumentResponse.mjs";
|
|
132
|
-
export * from "./GuidedDynamicInline.mjs";
|
|
133
|
-
export * from "./GuidedDynamicRequest.mjs";
|
|
134
|
-
export * from "./GuidedGenerationResult.mjs";
|
|
135
|
-
export * from "./GuidedGenerationResultUsage.mjs";
|
|
136
|
-
export * from "./GuidedGenerationResultUsageTokenCount.mjs";
|
|
137
|
-
export * from "./GuidedSectionOverride.mjs";
|
|
138
|
-
export * from "./GuidedTemplateOverrides.mjs";
|
|
139
|
-
export * from "./GuidedTemplateRef.mjs";
|
|
140
129
|
export * from "./InteractionsCreateResponse.mjs";
|
|
141
130
|
export * from "./InteractionsEncounterCreateRequest.mjs";
|
|
142
131
|
export * from "./InteractionsEncounterPeriod.mjs";
|
|
@@ -158,9 +147,7 @@ export * from "./Section.mjs";
|
|
|
158
147
|
export * from "./SectionGeneration.mjs";
|
|
159
148
|
export * from "./SectionGenerationPartial.mjs";
|
|
160
149
|
export * from "./SectionInstructions.mjs";
|
|
161
|
-
export * from "./SectionInstructionsOverride.mjs";
|
|
162
150
|
export * from "./SectionInstructionsPartial.mjs";
|
|
163
|
-
export * from "./SectionOverrides.mjs";
|
|
164
151
|
export * from "./SectionVersion.mjs";
|
|
165
152
|
export * from "./StatusResponse.mjs";
|
|
166
153
|
export * from "./StreamConfig.mjs";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as Corti from "../../api/index.mjs";
|
|
2
|
+
import * as core from "../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../index.mjs";
|
|
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
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../core/index.mjs";
|
|
3
|
+
export const AgentsErrorResponse = core.serialization.object({
|
|
4
|
+
code: core.serialization.string(),
|
|
5
|
+
description: core.serialization.string(),
|
|
6
|
+
howToFix: core.serialization.string().optional(),
|
|
7
|
+
details: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
8
|
+
cause: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
9
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as Corti from "../../api/index.mjs";
|
|
2
|
+
import * as core from "../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../index.mjs";
|
|
4
|
+
import { AgentsValidationErrorErrorsItem } from "./AgentsValidationErrorErrorsItem.mjs";
|
|
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
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../core/index.mjs";
|
|
3
|
+
import { AgentsValidationErrorErrorsItem } from "./AgentsValidationErrorErrorsItem.mjs";
|
|
4
|
+
export const AgentsValidationError = core.serialization.object({
|
|
5
|
+
msg: core.serialization.string(),
|
|
6
|
+
type: core.serialization.string(),
|
|
7
|
+
reason: core.serialization.string(),
|
|
8
|
+
howToFix: core.serialization.string(),
|
|
9
|
+
errors: core.serialization.list(AgentsValidationErrorErrorsItem).optional(),
|
|
10
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Corti from "../../api/index.mjs";
|
|
2
|
+
import * as core from "../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../index.mjs";
|
|
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
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../core/index.mjs";
|
|
3
|
+
export const AgentsValidationErrorErrorsItem = core.serialization.object({
|
|
4
|
+
location: core.serialization.string().optional(),
|
|
5
|
+
reason: core.serialization.string().optional(),
|
|
6
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as Corti from "../../api/index.mjs";
|
|
2
|
+
import * as core from "../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../index.mjs";
|
|
4
|
+
import { AgentsErrorResponse } from "./AgentsErrorResponse.mjs";
|
|
5
|
+
import { AgentsValidationError } from "./AgentsValidationError.mjs";
|
|
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
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../core/index.mjs";
|
|
3
|
+
import { AgentsErrorResponse } from "./AgentsErrorResponse.mjs";
|
|
4
|
+
import { AgentsValidationError } from "./AgentsValidationError.mjs";
|
|
5
|
+
export const AgentsValidationErrorResponse = core.serialization
|
|
6
|
+
.object({
|
|
7
|
+
detail: core.serialization.list(AgentsValidationError).optional(),
|
|
8
|
+
})
|
|
9
|
+
.extend(AgentsErrorResponse);
|
|
@@ -5,7 +5,7 @@ import { SectionInstructions } from "./SectionInstructions.mjs";
|
|
|
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
|
}
|
|
@@ -3,7 +3,7 @@ import * as core from "../../core/index.mjs";
|
|
|
3
3
|
import * as serializers from "../index.mjs";
|
|
4
4
|
import { SectionInstructions } from "./SectionInstructions.mjs";
|
|
5
5
|
export const SectionGeneration = core.serialization.object({
|
|
6
|
-
|
|
6
|
+
heading: core.serialization.string(),
|
|
7
7
|
instructions: SectionInstructions,
|
|
8
8
|
outputSchema: core.serialization.lazy(() => serializers.OutputSchema),
|
|
9
9
|
});
|
|
@@ -5,7 +5,7 @@ import { SectionInstructionsPartial } from "./SectionInstructionsPartial.mjs";
|
|
|
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
|
}
|
|
@@ -3,7 +3,7 @@ import * as core from "../../core/index.mjs";
|
|
|
3
3
|
import * as serializers from "../index.mjs";
|
|
4
4
|
import { SectionInstructionsPartial } from "./SectionInstructionsPartial.mjs";
|
|
5
5
|
export const SectionGenerationPartial = core.serialization.object({
|
|
6
|
-
|
|
6
|
+
heading: core.serialization.string().optional(),
|
|
7
7
|
instructions: SectionInstructionsPartial.optional(),
|
|
8
8
|
outputSchema: core.serialization.lazy(() => serializers.OutputSchema).optional(),
|
|
9
9
|
});
|