@orq-ai/node 4.17.0-rc.28 → 4.17.0-rc.29
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/funcs/alertsCreate.d.ts +1 -1
- package/funcs/alertsCreate.js +1 -1
- package/funcs/alertsList.js +1 -0
- package/funcs/alertsList.js.map +1 -1
- package/funcs/alertsUpdate.d.ts +1 -1
- package/funcs/alertsUpdate.js +1 -1
- package/funcs/routerClassifyCreate.d.ts +3 -0
- package/funcs/routerClassifyCreate.d.ts.map +1 -1
- package/funcs/routerClassifyCreate.js +3 -0
- package/funcs/routerClassifyCreate.js.map +1 -1
- package/funcs/routerDecisionsCreate.d.ts +3 -0
- package/funcs/routerDecisionsCreate.d.ts.map +1 -1
- package/funcs/routerDecisionsCreate.js +3 -0
- package/funcs/routerDecisionsCreate.js.map +1 -1
- package/funcs/telemetryListCapabilities.js +2 -0
- package/funcs/telemetryListCapabilities.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/alert.d.ts +3 -1
- package/models/components/alert.d.ts.map +1 -1
- package/models/components/alert.js +2 -0
- package/models/components/alert.js.map +1 -1
- package/models/components/alertquery.d.ts +16 -4
- package/models/components/alertquery.d.ts.map +1 -1
- package/models/components/alertquery.js +5 -0
- package/models/components/alertquery.js.map +1 -1
- package/models/components/alertscope.d.ts +13 -0
- package/models/components/alertscope.d.ts.map +1 -0
- package/models/components/alertscope.js +51 -0
- package/models/components/alertscope.js.map +1 -0
- package/models/components/alerttelemetrysource.d.ts +13 -0
- package/models/components/alerttelemetrysource.d.ts.map +1 -0
- package/models/components/alerttelemetrysource.js +50 -0
- package/models/components/alerttelemetrysource.js.map +1 -0
- package/models/components/alerttrigger.d.ts +8 -0
- package/models/components/alerttrigger.d.ts.map +1 -1
- package/models/components/alerttrigger.js +2 -0
- package/models/components/alerttrigger.js.map +1 -1
- package/models/components/audiocontentpartschema.d.ts +5 -5
- package/models/components/audiocontentpartschema.d.ts.map +1 -1
- package/models/components/audiocontentpartschema.js +6 -7
- package/models/components/audiocontentpartschema.js.map +1 -1
- package/models/components/classifyanswer.d.ts +2 -1
- package/models/components/classifyanswer.d.ts.map +1 -1
- package/models/components/classifyanswer.js +2 -0
- package/models/components/classifyanswer.js.map +1 -1
- package/models/components/classifyasset.d.ts +52 -0
- package/models/components/classifyasset.d.ts.map +1 -0
- package/models/components/classifyasset.js +75 -0
- package/models/components/classifyasset.js.map +1 -0
- package/models/components/classifybox.d.ts +25 -0
- package/models/components/classifybox.d.ts.map +1 -0
- package/models/components/classifybox.js +53 -0
- package/models/components/classifybox.js.map +1 -0
- package/models/components/classifyboxanswer.d.ts +16 -0
- package/models/components/classifyboxanswer.d.ts.map +1 -0
- package/models/components/classifyboxanswer.js +53 -0
- package/models/components/classifyboxanswer.js.map +1 -0
- package/models/components/classifychoiceanswer.d.ts +1 -1
- package/models/components/classifyscoreanswer.d.ts +1 -1
- package/models/components/createalertrequest.d.ts +6 -3
- package/models/components/createalertrequest.d.ts.map +1 -1
- package/models/components/createalertrequest.js +3 -1
- package/models/components/createalertrequest.js.map +1 -1
- package/models/components/index.d.ts +5 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +5 -0
- package/models/components/index.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/updatealertrequest.d.ts +4 -1
- package/models/components/updatealertrequest.d.ts.map +1 -1
- package/models/components/updatealertrequest.js.map +1 -1
- package/models/operations/alertlist.d.ts +9 -0
- package/models/operations/alertlist.d.ts.map +1 -1
- package/models/operations/alertlist.js +2 -0
- package/models/operations/alertlist.js.map +1 -1
- package/models/operations/createclassify.d.ts +118 -17
- package/models/operations/createclassify.d.ts.map +1 -1
- package/models/operations/createclassify.js +41 -5
- package/models/operations/createclassify.js.map +1 -1
- package/models/operations/createdecisions.d.ts +124 -23
- package/models/operations/createdecisions.d.ts.map +1 -1
- package/models/operations/createdecisions.js +48 -10
- package/models/operations/createdecisions.js.map +1 -1
- package/models/operations/createtool.js +4 -4
- package/models/operations/getalltools.js +4 -4
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listdeploymentversions.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/telemetrylistcapabilities.d.ts +16 -0
- package/models/operations/telemetrylistcapabilities.d.ts.map +1 -1
- package/models/operations/telemetrylistcapabilities.js +8 -0
- package/models/operations/telemetrylistcapabilities.js.map +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +1 -1
- package/sdk/alerts.d.ts +2 -2
- package/sdk/alerts.js +2 -2
- package/sdk/classify.d.ts +3 -0
- package/sdk/classify.d.ts.map +1 -1
- package/sdk/classify.js +3 -0
- package/sdk/classify.js.map +1 -1
- package/sdk/decisions.d.ts +3 -0
- package/sdk/decisions.d.ts.map +1 -1
- package/sdk/decisions.js +3 -0
- package/sdk/decisions.js.map +1 -1
- package/src/funcs/alertsCreate.ts +1 -1
- package/src/funcs/alertsList.ts +1 -0
- package/src/funcs/alertsUpdate.ts +1 -1
- package/src/funcs/routerClassifyCreate.ts +3 -0
- package/src/funcs/routerDecisionsCreate.ts +3 -0
- package/src/funcs/telemetryListCapabilities.ts +2 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/alert.ts +4 -1
- package/src/models/components/alertquery.ts +24 -4
- package/src/models/components/alertscope.ts +20 -0
- package/src/models/components/alerttelemetrysource.ts +22 -0
- package/src/models/components/alerttrigger.ts +9 -0
- package/src/models/components/audiocontentpartschema.ts +13 -9
- package/src/models/components/classifyanswer.ts +6 -0
- package/src/models/components/classifyasset.ts +81 -0
- package/src/models/components/classifybox.ts +49 -0
- package/src/models/components/classifyboxanswer.ts +39 -0
- package/src/models/components/classifychoiceanswer.ts +1 -1
- package/src/models/components/classifyscoreanswer.ts +1 -1
- package/src/models/components/createalertrequest.ts +8 -4
- package/src/models/components/index.ts +5 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/updatealertrequest.ts +4 -1
- package/src/models/operations/alertlist.ts +10 -0
- package/src/models/operations/createclassify.ts +169 -21
- package/src/models/operations/createdecisions.ts +197 -32
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listdeploymentversions.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/telemetrylistcapabilities.ts +24 -0
- package/src/models/operations/updatetool.ts +4 -4
- package/src/sdk/alerts.ts +2 -2
- package/src/sdk/classify.ts +3 -0
- package/src/sdk/decisions.ts +3 -0
|
@@ -36,11 +36,16 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.CreateClassifyResponseBody$inboundSchema = exports.CreateClassifyRequestBody$outboundSchema = exports.State$outboundSchema = exports.Questions$outboundSchema = exports.NoulQuestion$outboundSchema = exports.Instructions$outboundSchema = exports.Criteria$outboundSchema = exports.ChoiceQuestion$outboundSchema = exports.QuestionsInstructions$outboundSchema = exports.ScoreQuestion$outboundSchema = exports.CreateClassifyQuestionsInstructions$outboundSchema = void 0;
|
|
39
|
+
exports.CreateClassifyResponseBody$inboundSchema = exports.CreateClassifyRequestBody$outboundSchema = exports.State$outboundSchema = exports.Questions$outboundSchema = exports.NoulQuestion$outboundSchema = exports.Instructions$outboundSchema = exports.Criteria$outboundSchema = exports.True$outboundSchema = exports.False$outboundSchema = exports.ChoiceQuestion$outboundSchema = exports.QuestionsInstructions$outboundSchema = exports.QuestionsCriteria$outboundSchema = exports.ScoreQuestion$outboundSchema = exports.CreateClassifyQuestionsInstructions$outboundSchema = exports.BoxQuestion$outboundSchema = exports.CreateClassifyQuestionsRouterClassifyInstructions$outboundSchema = void 0;
|
|
40
|
+
exports.createClassifyQuestionsRouterClassifyInstructionsToJSON = createClassifyQuestionsRouterClassifyInstructionsToJSON;
|
|
41
|
+
exports.boxQuestionToJSON = boxQuestionToJSON;
|
|
40
42
|
exports.createClassifyQuestionsInstructionsToJSON = createClassifyQuestionsInstructionsToJSON;
|
|
41
43
|
exports.scoreQuestionToJSON = scoreQuestionToJSON;
|
|
44
|
+
exports.questionsCriteriaToJSON = questionsCriteriaToJSON;
|
|
42
45
|
exports.questionsInstructionsToJSON = questionsInstructionsToJSON;
|
|
43
46
|
exports.choiceQuestionToJSON = choiceQuestionToJSON;
|
|
47
|
+
exports.falseToJSON = falseToJSON;
|
|
48
|
+
exports.trueToJSON = trueToJSON;
|
|
44
49
|
exports.criteriaToJSON = criteriaToJSON;
|
|
45
50
|
exports.instructionsToJSON = instructionsToJSON;
|
|
46
51
|
exports.noulQuestionToJSON = noulQuestionToJSON;
|
|
@@ -53,13 +58,26 @@ const primitives_js_1 = require("../../lib/primitives.js");
|
|
|
53
58
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
54
59
|
const components = __importStar(require("../components/index.js"));
|
|
55
60
|
/** @internal */
|
|
61
|
+
exports.CreateClassifyQuestionsRouterClassifyInstructions$outboundSchema = z.union([z.string(), z.record(z.any()), z.array(z.any())]);
|
|
62
|
+
function createClassifyQuestionsRouterClassifyInstructionsToJSON(createClassifyQuestionsRouterClassifyInstructions) {
|
|
63
|
+
return JSON.stringify(exports.CreateClassifyQuestionsRouterClassifyInstructions$outboundSchema.parse(createClassifyQuestionsRouterClassifyInstructions));
|
|
64
|
+
}
|
|
65
|
+
/** @internal */
|
|
66
|
+
exports.BoxQuestion$outboundSchema = z.object({
|
|
67
|
+
instructions: z.union([z.string(), z.record(z.any()), z.array(z.any())]),
|
|
68
|
+
type: z.literal("box"),
|
|
69
|
+
});
|
|
70
|
+
function boxQuestionToJSON(boxQuestion) {
|
|
71
|
+
return JSON.stringify(exports.BoxQuestion$outboundSchema.parse(boxQuestion));
|
|
72
|
+
}
|
|
73
|
+
/** @internal */
|
|
56
74
|
exports.CreateClassifyQuestionsInstructions$outboundSchema = z.union([z.string(), z.record(z.any()), z.array(z.any())]);
|
|
57
75
|
function createClassifyQuestionsInstructionsToJSON(createClassifyQuestionsInstructions) {
|
|
58
76
|
return JSON.stringify(exports.CreateClassifyQuestionsInstructions$outboundSchema.parse(createClassifyQuestionsInstructions));
|
|
59
77
|
}
|
|
60
78
|
/** @internal */
|
|
61
79
|
exports.ScoreQuestion$outboundSchema = z.object({
|
|
62
|
-
criteria: z.array(z.
|
|
80
|
+
criteria: z.array(z.any()),
|
|
63
81
|
instructions: z.union([z.string(), z.record(z.any()), z.array(z.any())]),
|
|
64
82
|
type: z.literal("score"),
|
|
65
83
|
});
|
|
@@ -67,13 +85,18 @@ function scoreQuestionToJSON(scoreQuestion) {
|
|
|
67
85
|
return JSON.stringify(exports.ScoreQuestion$outboundSchema.parse(scoreQuestion));
|
|
68
86
|
}
|
|
69
87
|
/** @internal */
|
|
88
|
+
exports.QuestionsCriteria$outboundSchema = z.union([z.string(), z.record(z.any()), z.array(z.any())]);
|
|
89
|
+
function questionsCriteriaToJSON(questionsCriteria) {
|
|
90
|
+
return JSON.stringify(exports.QuestionsCriteria$outboundSchema.parse(questionsCriteria));
|
|
91
|
+
}
|
|
92
|
+
/** @internal */
|
|
70
93
|
exports.QuestionsInstructions$outboundSchema = z.union([z.string(), z.record(z.any()), z.array(z.any())]);
|
|
71
94
|
function questionsInstructionsToJSON(questionsInstructions) {
|
|
72
95
|
return JSON.stringify(exports.QuestionsInstructions$outboundSchema.parse(questionsInstructions));
|
|
73
96
|
}
|
|
74
97
|
/** @internal */
|
|
75
98
|
exports.ChoiceQuestion$outboundSchema = z.object({
|
|
76
|
-
criteria: z.record(z.nullable(z.string())),
|
|
99
|
+
criteria: z.record(z.nullable(z.union([z.string(), z.record(z.any()), z.array(z.any())]))),
|
|
77
100
|
instructions: z.union([z.string(), z.record(z.any()), z.array(z.any())]),
|
|
78
101
|
type: z.literal("choice"),
|
|
79
102
|
});
|
|
@@ -81,9 +104,19 @@ function choiceQuestionToJSON(choiceQuestion) {
|
|
|
81
104
|
return JSON.stringify(exports.ChoiceQuestion$outboundSchema.parse(choiceQuestion));
|
|
82
105
|
}
|
|
83
106
|
/** @internal */
|
|
107
|
+
exports.False$outboundSchema = z.union([z.string(), z.record(z.any()), z.array(z.any())]);
|
|
108
|
+
function falseToJSON(value) {
|
|
109
|
+
return JSON.stringify(exports.False$outboundSchema.parse(value));
|
|
110
|
+
}
|
|
111
|
+
/** @internal */
|
|
112
|
+
exports.True$outboundSchema = z.union([z.string(), z.record(z.any()), z.array(z.any())]);
|
|
113
|
+
function trueToJSON(value) {
|
|
114
|
+
return JSON.stringify(exports.True$outboundSchema.parse(value));
|
|
115
|
+
}
|
|
116
|
+
/** @internal */
|
|
84
117
|
exports.Criteria$outboundSchema = z.object({
|
|
85
|
-
false: z.string().optional(),
|
|
86
|
-
true: z.string().optional(),
|
|
118
|
+
false: z.union([z.string(), z.record(z.any()), z.array(z.any())]).optional(),
|
|
119
|
+
true: z.union([z.string(), z.record(z.any()), z.array(z.any())]).optional(),
|
|
87
120
|
});
|
|
88
121
|
function criteriaToJSON(criteria) {
|
|
89
122
|
return JSON.stringify(exports.Criteria$outboundSchema.parse(criteria));
|
|
@@ -107,6 +140,7 @@ exports.Questions$outboundSchema = z.union([
|
|
|
107
140
|
z.lazy(() => exports.NoulQuestion$outboundSchema),
|
|
108
141
|
z.lazy(() => exports.ChoiceQuestion$outboundSchema),
|
|
109
142
|
z.lazy(() => exports.ScoreQuestion$outboundSchema),
|
|
143
|
+
z.lazy(() => exports.BoxQuestion$outboundSchema),
|
|
110
144
|
]);
|
|
111
145
|
function questionsToJSON(questions) {
|
|
112
146
|
return JSON.stringify(exports.Questions$outboundSchema.parse(questions));
|
|
@@ -118,6 +152,7 @@ function stateToJSON(state) {
|
|
|
118
152
|
}
|
|
119
153
|
/** @internal */
|
|
120
154
|
exports.CreateClassifyRequestBody$outboundSchema = z.object({
|
|
155
|
+
assets: z.record(components.ClassifyAsset$outboundSchema).optional(),
|
|
121
156
|
cache: components.ClassifyCacheConfig$outboundSchema.optional(),
|
|
122
157
|
fallbackOnCodes: z.nullable(z.array(z.number().int())).optional(),
|
|
123
158
|
fallbacks: z.nullable(z.array(components.FallbackConfig$outboundSchema))
|
|
@@ -130,6 +165,7 @@ exports.CreateClassifyRequestBody$outboundSchema = z.object({
|
|
|
130
165
|
z.lazy(() => exports.NoulQuestion$outboundSchema),
|
|
131
166
|
z.lazy(() => exports.ChoiceQuestion$outboundSchema),
|
|
132
167
|
z.lazy(() => exports.ScoreQuestion$outboundSchema),
|
|
168
|
+
z.lazy(() => exports.BoxQuestion$outboundSchema),
|
|
133
169
|
])),
|
|
134
170
|
retry: components.ClassifyRetryConfig$outboundSchema.optional(),
|
|
135
171
|
state: z.union([z.string(), z.record(z.any()), z.array(z.any())]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createclassify.js","sourceRoot":"","sources":["../../src/models/operations/createclassify.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"createclassify.js","sourceRoot":"","sources":["../../src/models/operations/createclassify.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyMH,0HASC;AAkBD,8CAEC;AAcD,8FAQC;AAoBD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AC,CAAC;AAEH,SAAgB,kCAAkC,CAChD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gDAAwC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpE,wDAAwD,CACzD,CAAC;AACJ,CAAC"}
|
|
@@ -2,6 +2,24 @@ import * as z from "zod/v3";
|
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import * as components from "../components/index.js";
|
|
4
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
/**
|
|
6
|
+
* The evaluation prompt for this question. A string, an object or an array.
|
|
7
|
+
*/
|
|
8
|
+
export type CreateDecisionsQuestionsRouterDecisionsRequestRequestBodyInstructions = string | {
|
|
9
|
+
[k: string]: any;
|
|
10
|
+
} | Array<any>;
|
|
11
|
+
/**
|
|
12
|
+
* Beta, TypeSafe jev-preview only. Locates one target in an image from assets and returns its bounding box. Always returns a box; pair it with a noul question to check presence.
|
|
13
|
+
*/
|
|
14
|
+
export type QuestionsBoxQuestion = {
|
|
15
|
+
/**
|
|
16
|
+
* The evaluation prompt for this question. A string, an object or an array.
|
|
17
|
+
*/
|
|
18
|
+
instructions: string | {
|
|
19
|
+
[k: string]: any;
|
|
20
|
+
} | Array<any>;
|
|
21
|
+
type: "box";
|
|
22
|
+
};
|
|
5
23
|
/**
|
|
6
24
|
* The evaluation prompt for this question. A string, an object or an array.
|
|
7
25
|
*/
|
|
@@ -13,9 +31,9 @@ export type CreateDecisionsQuestionsRouterDecisionsRequestInstructions = string
|
|
|
13
31
|
*/
|
|
14
32
|
export type QuestionsScoreQuestion = {
|
|
15
33
|
/**
|
|
16
|
-
* Ordered level descriptions from lowest to highest. At least two levels.
|
|
34
|
+
* Ordered level descriptions from lowest to highest. At least two levels. Each level can be a string, an object or an array.
|
|
17
35
|
*/
|
|
18
|
-
criteria: Array<
|
|
36
|
+
criteria: Array<any>;
|
|
19
37
|
/**
|
|
20
38
|
* The evaluation prompt for this question. A string, an object or an array.
|
|
21
39
|
*/
|
|
@@ -24,6 +42,12 @@ export type QuestionsScoreQuestion = {
|
|
|
24
42
|
} | Array<any>;
|
|
25
43
|
type: "score";
|
|
26
44
|
};
|
|
45
|
+
/**
|
|
46
|
+
* The option description, or null.
|
|
47
|
+
*/
|
|
48
|
+
export type CreateDecisionsQuestionsRouterDecisionsCriteria = string | {
|
|
49
|
+
[k: string]: any;
|
|
50
|
+
} | Array<any>;
|
|
27
51
|
/**
|
|
28
52
|
* The evaluation prompt for this question. A string, an object or an array.
|
|
29
53
|
*/
|
|
@@ -35,10 +59,12 @@ export type CreateDecisionsQuestionsRouterDecisionsInstructions = string | {
|
|
|
35
59
|
*/
|
|
36
60
|
export type QuestionsChoiceQuestion = {
|
|
37
61
|
/**
|
|
38
|
-
* Options keyed by name, each mapped to a description or null.
|
|
62
|
+
* Options keyed by name, each mapped to a description or null. A description can be a string, an object or an array.
|
|
39
63
|
*/
|
|
40
64
|
criteria: {
|
|
41
|
-
[k: string]: string |
|
|
65
|
+
[k: string]: string | {
|
|
66
|
+
[k: string]: any;
|
|
67
|
+
} | Array<any> | null;
|
|
42
68
|
};
|
|
43
69
|
/**
|
|
44
70
|
* The evaluation prompt for this question. A string, an object or an array.
|
|
@@ -48,12 +74,34 @@ export type QuestionsChoiceQuestion = {
|
|
|
48
74
|
} | Array<any>;
|
|
49
75
|
type: "choice";
|
|
50
76
|
};
|
|
77
|
+
/**
|
|
78
|
+
* What false means. A string, an object or an array.
|
|
79
|
+
*/
|
|
80
|
+
export type QuestionsFalse = string | {
|
|
81
|
+
[k: string]: any;
|
|
82
|
+
} | Array<any>;
|
|
83
|
+
/**
|
|
84
|
+
* What true means. A string, an object or an array.
|
|
85
|
+
*/
|
|
86
|
+
export type QuestionsTrue = string | {
|
|
87
|
+
[k: string]: any;
|
|
88
|
+
} | Array<any>;
|
|
51
89
|
/**
|
|
52
90
|
* Optional descriptions of what true and false mean.
|
|
53
91
|
*/
|
|
54
|
-
export type
|
|
55
|
-
|
|
56
|
-
|
|
92
|
+
export type CreateDecisionsQuestionsCriteria = {
|
|
93
|
+
/**
|
|
94
|
+
* What false means. A string, an object or an array.
|
|
95
|
+
*/
|
|
96
|
+
false?: string | {
|
|
97
|
+
[k: string]: any;
|
|
98
|
+
} | Array<any> | undefined;
|
|
99
|
+
/**
|
|
100
|
+
* What true means. A string, an object or an array.
|
|
101
|
+
*/
|
|
102
|
+
true?: string | {
|
|
103
|
+
[k: string]: any;
|
|
104
|
+
} | Array<any> | undefined;
|
|
57
105
|
};
|
|
58
106
|
/**
|
|
59
107
|
* The evaluation prompt for this question. A string, an object or an array.
|
|
@@ -68,7 +116,7 @@ export type QuestionsNoulQuestion = {
|
|
|
68
116
|
/**
|
|
69
117
|
* Optional descriptions of what true and false mean.
|
|
70
118
|
*/
|
|
71
|
-
criteria?:
|
|
119
|
+
criteria?: CreateDecisionsQuestionsCriteria | undefined;
|
|
72
120
|
/**
|
|
73
121
|
* The evaluation prompt for this question. A string, an object or an array.
|
|
74
122
|
*/
|
|
@@ -77,21 +125,27 @@ export type QuestionsNoulQuestion = {
|
|
|
77
125
|
} | Array<any>;
|
|
78
126
|
type: "noul";
|
|
79
127
|
};
|
|
80
|
-
export type CreateDecisionsQuestions = QuestionsNoulQuestion | QuestionsChoiceQuestion | QuestionsScoreQuestion;
|
|
128
|
+
export type CreateDecisionsQuestions = QuestionsNoulQuestion | QuestionsChoiceQuestion | QuestionsScoreQuestion | QuestionsBoxQuestion;
|
|
81
129
|
/**
|
|
82
|
-
* The content to evaluate. A string, an object or an array. For OpenAI GPT-6 Luna, strings are passed as text and objects or ordinary JSON arrays are serialized as text. User-message arrays accept string content or input_text/input_image parts. Images must be inline base64 data URLs, with at most 128 images across the request. Remote image URLs, file IDs, audio, non-user roles, bare content parts and tool items are rejected.
|
|
130
|
+
* The content to evaluate. A string, an object or an array. For TypeSafe models, reference images declared in assets by writing their reference string. For OpenAI GPT-6 Luna, strings are passed as text and objects or ordinary JSON arrays are serialized as text. User-message arrays accept string content or input_text/input_image parts. Images must be inline base64 data URLs, with at most 128 images across the request. Remote image URLs, file IDs, audio, non-user roles, bare content parts and tool items are rejected.
|
|
83
131
|
*/
|
|
84
132
|
export type CreateDecisionsState = string | {
|
|
85
133
|
[k: string]: any;
|
|
86
134
|
} | Array<any>;
|
|
87
135
|
export type CreateDecisionsRequestBody = {
|
|
136
|
+
/**
|
|
137
|
+
* Beta, TypeSafe models only. Inline images keyed by a reference string. Write the reference in state, instructions or criteria wherever the image belongs; every asset must be referenced. Required for box questions.
|
|
138
|
+
*/
|
|
139
|
+
assets?: {
|
|
140
|
+
[k: string]: components.ClassifyAsset;
|
|
141
|
+
} | undefined;
|
|
88
142
|
cache?: components.ClassifyCacheConfig | undefined;
|
|
89
143
|
/**
|
|
90
144
|
* HTTP status codes that trigger fallback. Defaults to [408,429,500,502,503,504,529]. Each code must be unique and between 400 and 599.
|
|
91
145
|
*/
|
|
92
146
|
fallbackOnCodes?: Array<number> | null | undefined;
|
|
93
147
|
/**
|
|
94
|
-
* Up to 10 fallback models in order. The gateway retries a model for matching error codes before trying the next model. Every model must support classification and satisfy access checks.
|
|
148
|
+
* Up to 10 fallback models in order. The gateway retries a model for matching error codes before trying the next model. Every model must support classification and satisfy access checks. Requests with images in state require native OpenAI image-capable fallbacks; requests with assets or box questions require TypeSafe fallbacks.
|
|
95
149
|
*/
|
|
96
150
|
fallbacks?: Array<components.FallbackConfig> | null | undefined;
|
|
97
151
|
identity?: components.ResponseIdentity | undefined;
|
|
@@ -113,11 +167,11 @@ export type CreateDecisionsRequestBody = {
|
|
|
113
167
|
* Typed questions keyed by an identifier of your choice. Each answer is returned under the same key.
|
|
114
168
|
*/
|
|
115
169
|
questions: {
|
|
116
|
-
[k: string]: QuestionsNoulQuestion | QuestionsChoiceQuestion | QuestionsScoreQuestion;
|
|
170
|
+
[k: string]: QuestionsNoulQuestion | QuestionsChoiceQuestion | QuestionsScoreQuestion | QuestionsBoxQuestion;
|
|
117
171
|
};
|
|
118
172
|
retry?: components.ClassifyRetryConfig | undefined;
|
|
119
173
|
/**
|
|
120
|
-
* The content to evaluate. A string, an object or an array. For OpenAI GPT-6 Luna, strings are passed as text and objects or ordinary JSON arrays are serialized as text. User-message arrays accept string content or input_text/input_image parts. Images must be inline base64 data URLs, with at most 128 images across the request. Remote image URLs, file IDs, audio, non-user roles, bare content parts and tool items are rejected.
|
|
174
|
+
* The content to evaluate. A string, an object or an array. For TypeSafe models, reference images declared in assets by writing their reference string. For OpenAI GPT-6 Luna, strings are passed as text and objects or ordinary JSON arrays are serialized as text. User-message arrays accept string content or input_text/input_image parts. Images must be inline base64 data URLs, with at most 128 images across the request. Remote image URLs, file IDs, audio, non-user roles, bare content parts and tool items are rejected.
|
|
121
175
|
*/
|
|
122
176
|
state: string | {
|
|
123
177
|
[k: string]: any;
|
|
@@ -142,6 +196,23 @@ export type CreateDecisionsResponseBody = {
|
|
|
142
196
|
usage: components.ClassifyUsage;
|
|
143
197
|
};
|
|
144
198
|
/** @internal */
|
|
199
|
+
export type CreateDecisionsQuestionsRouterDecisionsRequestRequestBodyInstructions$Outbound = string | {
|
|
200
|
+
[k: string]: any;
|
|
201
|
+
} | Array<any>;
|
|
202
|
+
/** @internal */
|
|
203
|
+
export declare const CreateDecisionsQuestionsRouterDecisionsRequestRequestBodyInstructions$outboundSchema: z.ZodType<CreateDecisionsQuestionsRouterDecisionsRequestRequestBodyInstructions$Outbound, z.ZodTypeDef, CreateDecisionsQuestionsRouterDecisionsRequestRequestBodyInstructions>;
|
|
204
|
+
export declare function createDecisionsQuestionsRouterDecisionsRequestRequestBodyInstructionsToJSON(createDecisionsQuestionsRouterDecisionsRequestRequestBodyInstructions: CreateDecisionsQuestionsRouterDecisionsRequestRequestBodyInstructions): string;
|
|
205
|
+
/** @internal */
|
|
206
|
+
export type QuestionsBoxQuestion$Outbound = {
|
|
207
|
+
instructions: string | {
|
|
208
|
+
[k: string]: any;
|
|
209
|
+
} | Array<any>;
|
|
210
|
+
type: "box";
|
|
211
|
+
};
|
|
212
|
+
/** @internal */
|
|
213
|
+
export declare const QuestionsBoxQuestion$outboundSchema: z.ZodType<QuestionsBoxQuestion$Outbound, z.ZodTypeDef, QuestionsBoxQuestion>;
|
|
214
|
+
export declare function questionsBoxQuestionToJSON(questionsBoxQuestion: QuestionsBoxQuestion): string;
|
|
215
|
+
/** @internal */
|
|
145
216
|
export type CreateDecisionsQuestionsRouterDecisionsRequestInstructions$Outbound = string | {
|
|
146
217
|
[k: string]: any;
|
|
147
218
|
} | Array<any>;
|
|
@@ -150,7 +221,7 @@ export declare const CreateDecisionsQuestionsRouterDecisionsRequestInstructions$
|
|
|
150
221
|
export declare function createDecisionsQuestionsRouterDecisionsRequestInstructionsToJSON(createDecisionsQuestionsRouterDecisionsRequestInstructions: CreateDecisionsQuestionsRouterDecisionsRequestInstructions): string;
|
|
151
222
|
/** @internal */
|
|
152
223
|
export type QuestionsScoreQuestion$Outbound = {
|
|
153
|
-
criteria: Array<
|
|
224
|
+
criteria: Array<any>;
|
|
154
225
|
instructions: string | {
|
|
155
226
|
[k: string]: any;
|
|
156
227
|
} | Array<any>;
|
|
@@ -160,6 +231,13 @@ export type QuestionsScoreQuestion$Outbound = {
|
|
|
160
231
|
export declare const QuestionsScoreQuestion$outboundSchema: z.ZodType<QuestionsScoreQuestion$Outbound, z.ZodTypeDef, QuestionsScoreQuestion>;
|
|
161
232
|
export declare function questionsScoreQuestionToJSON(questionsScoreQuestion: QuestionsScoreQuestion): string;
|
|
162
233
|
/** @internal */
|
|
234
|
+
export type CreateDecisionsQuestionsRouterDecisionsCriteria$Outbound = string | {
|
|
235
|
+
[k: string]: any;
|
|
236
|
+
} | Array<any>;
|
|
237
|
+
/** @internal */
|
|
238
|
+
export declare const CreateDecisionsQuestionsRouterDecisionsCriteria$outboundSchema: z.ZodType<CreateDecisionsQuestionsRouterDecisionsCriteria$Outbound, z.ZodTypeDef, CreateDecisionsQuestionsRouterDecisionsCriteria>;
|
|
239
|
+
export declare function createDecisionsQuestionsRouterDecisionsCriteriaToJSON(createDecisionsQuestionsRouterDecisionsCriteria: CreateDecisionsQuestionsRouterDecisionsCriteria): string;
|
|
240
|
+
/** @internal */
|
|
163
241
|
export type CreateDecisionsQuestionsRouterDecisionsInstructions$Outbound = string | {
|
|
164
242
|
[k: string]: any;
|
|
165
243
|
} | Array<any>;
|
|
@@ -169,7 +247,9 @@ export declare function createDecisionsQuestionsRouterDecisionsInstructionsToJSO
|
|
|
169
247
|
/** @internal */
|
|
170
248
|
export type QuestionsChoiceQuestion$Outbound = {
|
|
171
249
|
criteria: {
|
|
172
|
-
[k: string]: string |
|
|
250
|
+
[k: string]: string | {
|
|
251
|
+
[k: string]: any;
|
|
252
|
+
} | Array<any> | null;
|
|
173
253
|
};
|
|
174
254
|
instructions: string | {
|
|
175
255
|
[k: string]: any;
|
|
@@ -180,13 +260,31 @@ export type QuestionsChoiceQuestion$Outbound = {
|
|
|
180
260
|
export declare const QuestionsChoiceQuestion$outboundSchema: z.ZodType<QuestionsChoiceQuestion$Outbound, z.ZodTypeDef, QuestionsChoiceQuestion>;
|
|
181
261
|
export declare function questionsChoiceQuestionToJSON(questionsChoiceQuestion: QuestionsChoiceQuestion): string;
|
|
182
262
|
/** @internal */
|
|
183
|
-
export type
|
|
184
|
-
|
|
185
|
-
|
|
263
|
+
export type QuestionsFalse$Outbound = string | {
|
|
264
|
+
[k: string]: any;
|
|
265
|
+
} | Array<any>;
|
|
266
|
+
/** @internal */
|
|
267
|
+
export declare const QuestionsFalse$outboundSchema: z.ZodType<QuestionsFalse$Outbound, z.ZodTypeDef, QuestionsFalse>;
|
|
268
|
+
export declare function questionsFalseToJSON(questionsFalse: QuestionsFalse): string;
|
|
269
|
+
/** @internal */
|
|
270
|
+
export type QuestionsTrue$Outbound = string | {
|
|
271
|
+
[k: string]: any;
|
|
272
|
+
} | Array<any>;
|
|
273
|
+
/** @internal */
|
|
274
|
+
export declare const QuestionsTrue$outboundSchema: z.ZodType<QuestionsTrue$Outbound, z.ZodTypeDef, QuestionsTrue>;
|
|
275
|
+
export declare function questionsTrueToJSON(questionsTrue: QuestionsTrue): string;
|
|
276
|
+
/** @internal */
|
|
277
|
+
export type CreateDecisionsQuestionsCriteria$Outbound = {
|
|
278
|
+
false?: string | {
|
|
279
|
+
[k: string]: any;
|
|
280
|
+
} | Array<any> | undefined;
|
|
281
|
+
true?: string | {
|
|
282
|
+
[k: string]: any;
|
|
283
|
+
} | Array<any> | undefined;
|
|
186
284
|
};
|
|
187
285
|
/** @internal */
|
|
188
|
-
export declare const
|
|
189
|
-
export declare function
|
|
286
|
+
export declare const CreateDecisionsQuestionsCriteria$outboundSchema: z.ZodType<CreateDecisionsQuestionsCriteria$Outbound, z.ZodTypeDef, CreateDecisionsQuestionsCriteria>;
|
|
287
|
+
export declare function createDecisionsQuestionsCriteriaToJSON(createDecisionsQuestionsCriteria: CreateDecisionsQuestionsCriteria): string;
|
|
190
288
|
/** @internal */
|
|
191
289
|
export type CreateDecisionsQuestionsInstructions$Outbound = string | {
|
|
192
290
|
[k: string]: any;
|
|
@@ -196,7 +294,7 @@ export declare const CreateDecisionsQuestionsInstructions$outboundSchema: z.ZodT
|
|
|
196
294
|
export declare function createDecisionsQuestionsInstructionsToJSON(createDecisionsQuestionsInstructions: CreateDecisionsQuestionsInstructions): string;
|
|
197
295
|
/** @internal */
|
|
198
296
|
export type QuestionsNoulQuestion$Outbound = {
|
|
199
|
-
criteria?:
|
|
297
|
+
criteria?: CreateDecisionsQuestionsCriteria$Outbound | undefined;
|
|
200
298
|
instructions: string | {
|
|
201
299
|
[k: string]: any;
|
|
202
300
|
} | Array<any>;
|
|
@@ -206,7 +304,7 @@ export type QuestionsNoulQuestion$Outbound = {
|
|
|
206
304
|
export declare const QuestionsNoulQuestion$outboundSchema: z.ZodType<QuestionsNoulQuestion$Outbound, z.ZodTypeDef, QuestionsNoulQuestion>;
|
|
207
305
|
export declare function questionsNoulQuestionToJSON(questionsNoulQuestion: QuestionsNoulQuestion): string;
|
|
208
306
|
/** @internal */
|
|
209
|
-
export type CreateDecisionsQuestions$Outbound = QuestionsNoulQuestion$Outbound | QuestionsChoiceQuestion$Outbound | QuestionsScoreQuestion$Outbound;
|
|
307
|
+
export type CreateDecisionsQuestions$Outbound = QuestionsNoulQuestion$Outbound | QuestionsChoiceQuestion$Outbound | QuestionsScoreQuestion$Outbound | QuestionsBoxQuestion$Outbound;
|
|
210
308
|
/** @internal */
|
|
211
309
|
export declare const CreateDecisionsQuestions$outboundSchema: z.ZodType<CreateDecisionsQuestions$Outbound, z.ZodTypeDef, CreateDecisionsQuestions>;
|
|
212
310
|
export declare function createDecisionsQuestionsToJSON(createDecisionsQuestions: CreateDecisionsQuestions): string;
|
|
@@ -219,6 +317,9 @@ export declare const CreateDecisionsState$outboundSchema: z.ZodType<CreateDecisi
|
|
|
219
317
|
export declare function createDecisionsStateToJSON(createDecisionsState: CreateDecisionsState): string;
|
|
220
318
|
/** @internal */
|
|
221
319
|
export type CreateDecisionsRequestBody$Outbound = {
|
|
320
|
+
assets?: {
|
|
321
|
+
[k: string]: components.ClassifyAsset$Outbound;
|
|
322
|
+
} | undefined;
|
|
222
323
|
cache?: components.ClassifyCacheConfig$Outbound | undefined;
|
|
223
324
|
fallback_on_codes?: Array<number> | null | undefined;
|
|
224
325
|
fallbacks?: Array<components.FallbackConfig$Outbound> | null | undefined;
|
|
@@ -229,7 +330,7 @@ export type CreateDecisionsRequestBody$Outbound = {
|
|
|
229
330
|
model: string;
|
|
230
331
|
name?: string | undefined;
|
|
231
332
|
questions: {
|
|
232
|
-
[k: string]: QuestionsNoulQuestion$Outbound | QuestionsChoiceQuestion$Outbound | QuestionsScoreQuestion$Outbound;
|
|
333
|
+
[k: string]: QuestionsNoulQuestion$Outbound | QuestionsChoiceQuestion$Outbound | QuestionsScoreQuestion$Outbound | QuestionsBoxQuestion$Outbound;
|
|
233
334
|
};
|
|
234
335
|
retry?: components.ClassifyRetryConfig$Outbound | undefined;
|
|
235
336
|
state: string | {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createdecisions.d.ts","sourceRoot":"","sources":["../../src/models/operations/createdecisions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,0DAA0D,GAClE,MAAM,GACN;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,GACpB,KAAK,CAAC,GAAG,CAAC,CAAC;AAEf;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"createdecisions.d.ts","sourceRoot":"","sources":["../../src/models/operations/createdecisions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,qEAAqE,GAC7E,MAAM,GACN;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,GACpB,KAAK,CAAC,GAAG,CAAC,CAAC;AAEf;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,YAAY,EAAE,MAAM,GAAG;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,KAAK,CAAC,GAAG,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zE,QAAQ,CAAC,EAAE,UAAU,CAAC,yBAAyB,GAAG,SAAS,CAAC;IAC5D,QAAQ,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,SAAS,EAAE;QACT,CAAC,CAAC,EAAE,MAAM,GACN,8BAA8B,GAC9B,gCAAgC,GAChC,+BAA+B,GAC/B,6BAA6B,CAAC;KACnC,CAAC;IACF,KAAK,CAAC,EAAE,UAAU,CAAC,4BAA4B,GAAG,SAAS,CAAC;IAC5D,KAAK,EAAE,MAAM,GAAG;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;IAClD,OAAO,CAAC,EAAE,UAAU,CAAC,8BAA8B,GAAG,SAAS,CAAC;CACjE,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,mCAAmC,EACnC,CAAC,CAAC,UAAU,EACZ,0BAA0B,CA0B1B,CAAC;AAEH,wBAAgB,gCAAgC,CAC9C,0BAA0B,EAAE,0BAA0B,GACrD,MAAM,CAIR;AAED,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,OAAO,CAMP,CAAC;AAEH,wBAAgB,mCAAmC,CACjD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,2BAA2B,EAAE,kBAAkB,CAAC,CAMlE"}
|
|
@@ -36,12 +36,17 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.CreateDecisionsResponseBody$inboundSchema = exports.CreateDecisionsRequestBody$outboundSchema = exports.CreateDecisionsState$outboundSchema = exports.CreateDecisionsQuestions$outboundSchema = exports.QuestionsNoulQuestion$outboundSchema = exports.CreateDecisionsQuestionsInstructions$outboundSchema = exports.
|
|
39
|
+
exports.CreateDecisionsResponseBody$inboundSchema = exports.CreateDecisionsRequestBody$outboundSchema = exports.CreateDecisionsState$outboundSchema = exports.CreateDecisionsQuestions$outboundSchema = exports.QuestionsNoulQuestion$outboundSchema = exports.CreateDecisionsQuestionsInstructions$outboundSchema = exports.CreateDecisionsQuestionsCriteria$outboundSchema = exports.QuestionsTrue$outboundSchema = exports.QuestionsFalse$outboundSchema = exports.QuestionsChoiceQuestion$outboundSchema = exports.CreateDecisionsQuestionsRouterDecisionsInstructions$outboundSchema = exports.CreateDecisionsQuestionsRouterDecisionsCriteria$outboundSchema = exports.QuestionsScoreQuestion$outboundSchema = exports.CreateDecisionsQuestionsRouterDecisionsRequestInstructions$outboundSchema = exports.QuestionsBoxQuestion$outboundSchema = exports.CreateDecisionsQuestionsRouterDecisionsRequestRequestBodyInstructions$outboundSchema = void 0;
|
|
40
|
+
exports.createDecisionsQuestionsRouterDecisionsRequestRequestBodyInstructionsToJSON = createDecisionsQuestionsRouterDecisionsRequestRequestBodyInstructionsToJSON;
|
|
41
|
+
exports.questionsBoxQuestionToJSON = questionsBoxQuestionToJSON;
|
|
40
42
|
exports.createDecisionsQuestionsRouterDecisionsRequestInstructionsToJSON = createDecisionsQuestionsRouterDecisionsRequestInstructionsToJSON;
|
|
41
43
|
exports.questionsScoreQuestionToJSON = questionsScoreQuestionToJSON;
|
|
44
|
+
exports.createDecisionsQuestionsRouterDecisionsCriteriaToJSON = createDecisionsQuestionsRouterDecisionsCriteriaToJSON;
|
|
42
45
|
exports.createDecisionsQuestionsRouterDecisionsInstructionsToJSON = createDecisionsQuestionsRouterDecisionsInstructionsToJSON;
|
|
43
46
|
exports.questionsChoiceQuestionToJSON = questionsChoiceQuestionToJSON;
|
|
44
|
-
exports.
|
|
47
|
+
exports.questionsFalseToJSON = questionsFalseToJSON;
|
|
48
|
+
exports.questionsTrueToJSON = questionsTrueToJSON;
|
|
49
|
+
exports.createDecisionsQuestionsCriteriaToJSON = createDecisionsQuestionsCriteriaToJSON;
|
|
45
50
|
exports.createDecisionsQuestionsInstructionsToJSON = createDecisionsQuestionsInstructionsToJSON;
|
|
46
51
|
exports.questionsNoulQuestionToJSON = questionsNoulQuestionToJSON;
|
|
47
52
|
exports.createDecisionsQuestionsToJSON = createDecisionsQuestionsToJSON;
|
|
@@ -53,6 +58,20 @@ const primitives_js_1 = require("../../lib/primitives.js");
|
|
|
53
58
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
54
59
|
const components = __importStar(require("../components/index.js"));
|
|
55
60
|
/** @internal */
|
|
61
|
+
exports.CreateDecisionsQuestionsRouterDecisionsRequestRequestBodyInstructions$outboundSchema = z.union([z.string(), z.record(z.any()), z.array(z.any())]);
|
|
62
|
+
function createDecisionsQuestionsRouterDecisionsRequestRequestBodyInstructionsToJSON(createDecisionsQuestionsRouterDecisionsRequestRequestBodyInstructions) {
|
|
63
|
+
return JSON.stringify(exports.CreateDecisionsQuestionsRouterDecisionsRequestRequestBodyInstructions$outboundSchema
|
|
64
|
+
.parse(createDecisionsQuestionsRouterDecisionsRequestRequestBodyInstructions));
|
|
65
|
+
}
|
|
66
|
+
/** @internal */
|
|
67
|
+
exports.QuestionsBoxQuestion$outboundSchema = z.object({
|
|
68
|
+
instructions: z.union([z.string(), z.record(z.any()), z.array(z.any())]),
|
|
69
|
+
type: z.literal("box"),
|
|
70
|
+
});
|
|
71
|
+
function questionsBoxQuestionToJSON(questionsBoxQuestion) {
|
|
72
|
+
return JSON.stringify(exports.QuestionsBoxQuestion$outboundSchema.parse(questionsBoxQuestion));
|
|
73
|
+
}
|
|
74
|
+
/** @internal */
|
|
56
75
|
exports.CreateDecisionsQuestionsRouterDecisionsRequestInstructions$outboundSchema = z.union([z.string(), z.record(z.any()), z.array(z.any())]);
|
|
57
76
|
function createDecisionsQuestionsRouterDecisionsRequestInstructionsToJSON(createDecisionsQuestionsRouterDecisionsRequestInstructions) {
|
|
58
77
|
return JSON.stringify(exports.CreateDecisionsQuestionsRouterDecisionsRequestInstructions$outboundSchema
|
|
@@ -60,7 +79,7 @@ function createDecisionsQuestionsRouterDecisionsRequestInstructionsToJSON(create
|
|
|
60
79
|
}
|
|
61
80
|
/** @internal */
|
|
62
81
|
exports.QuestionsScoreQuestion$outboundSchema = z.object({
|
|
63
|
-
criteria: z.array(z.
|
|
82
|
+
criteria: z.array(z.any()),
|
|
64
83
|
instructions: z.union([z.string(), z.record(z.any()), z.array(z.any())]),
|
|
65
84
|
type: z.literal("score"),
|
|
66
85
|
});
|
|
@@ -68,13 +87,18 @@ function questionsScoreQuestionToJSON(questionsScoreQuestion) {
|
|
|
68
87
|
return JSON.stringify(exports.QuestionsScoreQuestion$outboundSchema.parse(questionsScoreQuestion));
|
|
69
88
|
}
|
|
70
89
|
/** @internal */
|
|
90
|
+
exports.CreateDecisionsQuestionsRouterDecisionsCriteria$outboundSchema = z.union([z.string(), z.record(z.any()), z.array(z.any())]);
|
|
91
|
+
function createDecisionsQuestionsRouterDecisionsCriteriaToJSON(createDecisionsQuestionsRouterDecisionsCriteria) {
|
|
92
|
+
return JSON.stringify(exports.CreateDecisionsQuestionsRouterDecisionsCriteria$outboundSchema.parse(createDecisionsQuestionsRouterDecisionsCriteria));
|
|
93
|
+
}
|
|
94
|
+
/** @internal */
|
|
71
95
|
exports.CreateDecisionsQuestionsRouterDecisionsInstructions$outboundSchema = z.union([z.string(), z.record(z.any()), z.array(z.any())]);
|
|
72
96
|
function createDecisionsQuestionsRouterDecisionsInstructionsToJSON(createDecisionsQuestionsRouterDecisionsInstructions) {
|
|
73
97
|
return JSON.stringify(exports.CreateDecisionsQuestionsRouterDecisionsInstructions$outboundSchema.parse(createDecisionsQuestionsRouterDecisionsInstructions));
|
|
74
98
|
}
|
|
75
99
|
/** @internal */
|
|
76
100
|
exports.QuestionsChoiceQuestion$outboundSchema = z.object({
|
|
77
|
-
criteria: z.record(z.nullable(z.string())),
|
|
101
|
+
criteria: z.record(z.nullable(z.union([z.string(), z.record(z.any()), z.array(z.any())]))),
|
|
78
102
|
instructions: z.union([z.string(), z.record(z.any()), z.array(z.any())]),
|
|
79
103
|
type: z.literal("choice"),
|
|
80
104
|
});
|
|
@@ -82,12 +106,22 @@ function questionsChoiceQuestionToJSON(questionsChoiceQuestion) {
|
|
|
82
106
|
return JSON.stringify(exports.QuestionsChoiceQuestion$outboundSchema.parse(questionsChoiceQuestion));
|
|
83
107
|
}
|
|
84
108
|
/** @internal */
|
|
85
|
-
exports.
|
|
86
|
-
|
|
87
|
-
|
|
109
|
+
exports.QuestionsFalse$outboundSchema = z.union([z.string(), z.record(z.any()), z.array(z.any())]);
|
|
110
|
+
function questionsFalseToJSON(questionsFalse) {
|
|
111
|
+
return JSON.stringify(exports.QuestionsFalse$outboundSchema.parse(questionsFalse));
|
|
112
|
+
}
|
|
113
|
+
/** @internal */
|
|
114
|
+
exports.QuestionsTrue$outboundSchema = z.union([z.string(), z.record(z.any()), z.array(z.any())]);
|
|
115
|
+
function questionsTrueToJSON(questionsTrue) {
|
|
116
|
+
return JSON.stringify(exports.QuestionsTrue$outboundSchema.parse(questionsTrue));
|
|
117
|
+
}
|
|
118
|
+
/** @internal */
|
|
119
|
+
exports.CreateDecisionsQuestionsCriteria$outboundSchema = z.object({
|
|
120
|
+
false: z.union([z.string(), z.record(z.any()), z.array(z.any())]).optional(),
|
|
121
|
+
true: z.union([z.string(), z.record(z.any()), z.array(z.any())]).optional(),
|
|
88
122
|
});
|
|
89
|
-
function
|
|
90
|
-
return JSON.stringify(exports.
|
|
123
|
+
function createDecisionsQuestionsCriteriaToJSON(createDecisionsQuestionsCriteria) {
|
|
124
|
+
return JSON.stringify(exports.CreateDecisionsQuestionsCriteria$outboundSchema.parse(createDecisionsQuestionsCriteria));
|
|
91
125
|
}
|
|
92
126
|
/** @internal */
|
|
93
127
|
exports.CreateDecisionsQuestionsInstructions$outboundSchema = z.union([z.string(), z.record(z.any()), z.array(z.any())]);
|
|
@@ -96,7 +130,8 @@ function createDecisionsQuestionsInstructionsToJSON(createDecisionsQuestionsInst
|
|
|
96
130
|
}
|
|
97
131
|
/** @internal */
|
|
98
132
|
exports.QuestionsNoulQuestion$outboundSchema = z.object({
|
|
99
|
-
criteria: z.lazy(() => exports.
|
|
133
|
+
criteria: z.lazy(() => exports.CreateDecisionsQuestionsCriteria$outboundSchema)
|
|
134
|
+
.optional(),
|
|
100
135
|
instructions: z.union([z.string(), z.record(z.any()), z.array(z.any())]),
|
|
101
136
|
type: z.literal("noul"),
|
|
102
137
|
});
|
|
@@ -108,6 +143,7 @@ exports.CreateDecisionsQuestions$outboundSchema = z.union([
|
|
|
108
143
|
z.lazy(() => exports.QuestionsNoulQuestion$outboundSchema),
|
|
109
144
|
z.lazy(() => exports.QuestionsChoiceQuestion$outboundSchema),
|
|
110
145
|
z.lazy(() => exports.QuestionsScoreQuestion$outboundSchema),
|
|
146
|
+
z.lazy(() => exports.QuestionsBoxQuestion$outboundSchema),
|
|
111
147
|
]);
|
|
112
148
|
function createDecisionsQuestionsToJSON(createDecisionsQuestions) {
|
|
113
149
|
return JSON.stringify(exports.CreateDecisionsQuestions$outboundSchema.parse(createDecisionsQuestions));
|
|
@@ -119,6 +155,7 @@ function createDecisionsStateToJSON(createDecisionsState) {
|
|
|
119
155
|
}
|
|
120
156
|
/** @internal */
|
|
121
157
|
exports.CreateDecisionsRequestBody$outboundSchema = z.object({
|
|
158
|
+
assets: z.record(components.ClassifyAsset$outboundSchema).optional(),
|
|
122
159
|
cache: components.ClassifyCacheConfig$outboundSchema.optional(),
|
|
123
160
|
fallbackOnCodes: z.nullable(z.array(z.number().int())).optional(),
|
|
124
161
|
fallbacks: z.nullable(z.array(components.FallbackConfig$outboundSchema))
|
|
@@ -131,6 +168,7 @@ exports.CreateDecisionsRequestBody$outboundSchema = z.object({
|
|
|
131
168
|
z.lazy(() => exports.QuestionsNoulQuestion$outboundSchema),
|
|
132
169
|
z.lazy(() => exports.QuestionsChoiceQuestion$outboundSchema),
|
|
133
170
|
z.lazy(() => exports.QuestionsScoreQuestion$outboundSchema),
|
|
171
|
+
z.lazy(() => exports.QuestionsBoxQuestion$outboundSchema),
|
|
134
172
|
])),
|
|
135
173
|
retry: components.ClassifyRetryConfig$outboundSchema.optional(),
|
|
136
174
|
state: z.union([z.string(), z.record(z.any()), z.array(z.any())]),
|