@orq-ai/node 4.11.7 → 4.11.9
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/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/evaluatorresponsefunction.js +2 -2
- package/models/components/evaluatorresponsehttp.js +2 -2
- package/models/components/evaluatorresponsejsonschema.js +2 -2
- package/models/components/evaluatorresponsellm.js +2 -2
- package/models/components/evaluatorresponsepython.js +2 -2
- package/models/components/evaluatorresponseragas.js +2 -2
- package/models/components/evaluatorresponsetypescript.js +2 -2
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +3 -3
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +6 -6
- package/packages/orq-rc/src/funcs/notifiersList.ts +2 -0
- package/packages/orq-rc/src/funcs/reportingQuery.ts +3 -1
- package/packages/orq-rc/src/funcs/telemetryQuery.ts +162 -0
- package/packages/orq-rc/src/funcs/tracesAggregate.ts +3 -1
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/models/components/apikey.ts +6 -0
- package/packages/orq-rc/src/models/components/budget.ts +6 -0
- package/packages/orq-rc/src/models/components/budgetalert.ts +92 -0
- package/packages/orq-rc/src/models/components/budgetalertdimension.ts +22 -0
- package/packages/orq-rc/src/models/components/createbudgetrequest.ts +14 -0
- package/packages/orq-rc/src/models/components/evaluatorresponsefunction.ts +2 -2
- package/packages/orq-rc/src/models/components/evaluatorresponsehttp.ts +2 -2
- package/packages/orq-rc/src/models/components/evaluatorresponsejsonschema.ts +2 -2
- package/packages/orq-rc/src/models/components/evaluatorresponsellm.ts +2 -2
- package/packages/orq-rc/src/models/components/evaluatorresponsepython.ts +2 -2
- package/packages/orq-rc/src/models/components/evaluatorresponseragas.ts +2 -2
- package/packages/orq-rc/src/models/components/evaluatorresponsetypescript.ts +2 -2
- package/packages/orq-rc/src/models/components/identity.ts +6 -0
- package/packages/orq-rc/src/models/components/index.ts +6 -0
- package/packages/orq-rc/src/models/components/modelsconfig.ts +1 -0
- package/packages/orq-rc/src/models/components/querytelemetrymeta.ts +38 -0
- package/packages/orq-rc/src/models/components/querytelemetryrequest.ts +85 -0
- package/packages/orq-rc/src/models/components/querytelemetryresponse.ts +42 -0
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/telemetryrow.ts +42 -0
- package/packages/orq-rc/src/models/components/thinkingconfigenabledschema.ts +1 -0
- package/packages/orq-rc/src/models/components/updatebudgetrequest.ts +21 -0
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +4 -0
- package/packages/orq-rc/src/models/operations/createchatcompletion.ts +1 -0
- package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +237 -19
- package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/createprompt.ts +4 -0
- package/packages/orq-rc/src/models/operations/createrouterresponse.ts +19 -26
- package/packages/orq-rc/src/models/operations/createtool.ts +6 -6
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +1 -0
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +1 -0
- package/packages/orq-rc/src/models/operations/deployments.ts +2 -0
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +1 -0
- package/packages/orq-rc/src/models/operations/getallprompts.ts +3 -0
- package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +3 -0
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +3 -0
- package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/listagents.ts +2 -0
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +313 -84
- package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
- package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +3 -0
- package/packages/orq-rc/src/models/operations/notifierlist.ts +13 -0
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +119 -11
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +2 -0
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +234 -9
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
- package/packages/orq-rc/src/models/operations/runagent.ts +3 -1
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +3 -1
- package/packages/orq-rc/src/models/operations/updateagent.ts +4 -0
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +229 -9
- package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateprompt.ts +4 -0
- package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
- package/packages/orq-rc/src/sdk/feedback.ts +6 -0
- package/packages/orq-rc/src/sdk/humanreviewsets.ts +4 -1
- package/packages/orq-rc/src/sdk/reporting.ts +3 -1
- package/packages/orq-rc/src/sdk/sdk.ts +6 -0
- package/packages/orq-rc/src/sdk/telemetry.ts +27 -0
- package/packages/orq-rc/src/sdk/traces.ts +3 -1
- package/sdk/feedback.d.ts +4 -1
- package/sdk/feedback.d.ts.map +1 -1
- package/sdk/feedback.js +4 -1
- package/sdk/feedback.js.map +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/evaluatorresponsefunction.ts +2 -2
- package/src/models/components/evaluatorresponsehttp.ts +2 -2
- package/src/models/components/evaluatorresponsejsonschema.ts +2 -2
- package/src/models/components/evaluatorresponsellm.ts +2 -2
- package/src/models/components/evaluatorresponsepython.ts +2 -2
- package/src/models/components/evaluatorresponseragas.ts +2 -2
- package/src/models/components/evaluatorresponsetypescript.ts +2 -2
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/feedback.ts +4 -1
|
@@ -753,7 +753,7 @@ export const RetrieveToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
753
753
|
z.ZodTypeDef,
|
|
754
754
|
unknown
|
|
755
755
|
> = z.object({
|
|
756
|
-
_id: z.string().default("
|
|
756
|
+
_id: z.string().default("tool_01KXN9FG55SCS6CC1F3W6KGVTZ"),
|
|
757
757
|
path: z.string(),
|
|
758
758
|
key: z.string(),
|
|
759
759
|
display_name: z.string().optional(),
|
|
@@ -859,7 +859,7 @@ export const RetrieveToolResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
859
859
|
z.ZodTypeDef,
|
|
860
860
|
unknown
|
|
861
861
|
> = z.object({
|
|
862
|
-
id: z.string().default("
|
|
862
|
+
id: z.string().default("01KXN9FG54DJMHNGAERD1S7MH2"),
|
|
863
863
|
name: z.string(),
|
|
864
864
|
description: z.string().optional(),
|
|
865
865
|
schema: z.lazy(() => RetrieveToolResponseBodyToolsSchema$inboundSchema),
|
|
@@ -917,7 +917,7 @@ export const RetrieveToolResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
917
917
|
z.ZodTypeDef,
|
|
918
918
|
unknown
|
|
919
919
|
> = z.object({
|
|
920
|
-
_id: z.string().default("
|
|
920
|
+
_id: z.string().default("tool_01KXN9FG53TJQZKZMJQ8QYT3H7"),
|
|
921
921
|
path: z.string(),
|
|
922
922
|
key: z.string(),
|
|
923
923
|
display_name: z.string().optional(),
|
|
@@ -1108,7 +1108,7 @@ export const RetrieveToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1108
1108
|
z.ZodTypeDef,
|
|
1109
1109
|
unknown
|
|
1110
1110
|
> = z.object({
|
|
1111
|
-
_id: z.string().default("
|
|
1111
|
+
_id: z.string().default("tool_01KXN9FG51W0YKZ37QDQ566YDP"),
|
|
1112
1112
|
path: z.string(),
|
|
1113
1113
|
key: z.string(),
|
|
1114
1114
|
display_name: z.string().optional(),
|
|
@@ -1204,7 +1204,7 @@ export const RetrieveToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1204
1204
|
z.ZodTypeDef,
|
|
1205
1205
|
unknown
|
|
1206
1206
|
> = z.object({
|
|
1207
|
-
_id: z.string().default("
|
|
1207
|
+
_id: z.string().default("tool_01KXN9FG4ZH49T5FVRV0J8HZG5"),
|
|
1208
1208
|
path: z.string(),
|
|
1209
1209
|
key: z.string(),
|
|
1210
1210
|
display_name: z.string().optional(),
|
|
@@ -1310,7 +1310,7 @@ export const RetrieveToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1310
1310
|
z.ZodTypeDef,
|
|
1311
1311
|
unknown
|
|
1312
1312
|
> = z.object({
|
|
1313
|
-
_id: z.string().default("
|
|
1313
|
+
_id: z.string().default("tool_01KXN9FG4XFMVV5R7DSE5R1F1W"),
|
|
1314
1314
|
path: z.string(),
|
|
1315
1315
|
key: z.string(),
|
|
1316
1316
|
display_name: z.string().optional(),
|
|
@@ -164,6 +164,7 @@ export type RunAgentModelConfigurationModalities = ClosedEnum<
|
|
|
164
164
|
*/
|
|
165
165
|
export const RunAgentId1 = {
|
|
166
166
|
OrqPiiDetection: "orq_pii_detection",
|
|
167
|
+
OrqSecretDetection: "orq_secret_detection",
|
|
167
168
|
OrqSexualModeration: "orq_sexual_moderation",
|
|
168
169
|
OrqHarmfulModeration: "orq_harmful_moderation",
|
|
169
170
|
} as const;
|
|
@@ -653,6 +654,7 @@ export type RunAgentFallbackModelConfigurationModalities = ClosedEnum<
|
|
|
653
654
|
*/
|
|
654
655
|
export const RunAgentIdAgents1 = {
|
|
655
656
|
OrqPiiDetection: "orq_pii_detection",
|
|
657
|
+
OrqSecretDetection: "orq_secret_detection",
|
|
656
658
|
OrqSexualModeration: "orq_sexual_moderation",
|
|
657
659
|
OrqHarmfulModeration: "orq_harmful_moderation",
|
|
658
660
|
} as const;
|
|
@@ -4040,7 +4042,7 @@ export const Tools$outboundSchema: z.ZodType<
|
|
|
4040
4042
|
z.ZodTypeDef,
|
|
4041
4043
|
Tools
|
|
4042
4044
|
> = z.object({
|
|
4043
|
-
id: z.string().default("
|
|
4045
|
+
id: z.string().default("01KXN9FFWZ0K45VAZ70P7AVZPZ"),
|
|
4044
4046
|
name: z.string(),
|
|
4045
4047
|
description: z.string().optional(),
|
|
4046
4048
|
schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
|
|
@@ -168,6 +168,7 @@ export type StreamRunAgentModelConfigurationModalities = ClosedEnum<
|
|
|
168
168
|
*/
|
|
169
169
|
export const StreamRunAgentId1 = {
|
|
170
170
|
OrqPiiDetection: "orq_pii_detection",
|
|
171
|
+
OrqSecretDetection: "orq_secret_detection",
|
|
171
172
|
OrqSexualModeration: "orq_sexual_moderation",
|
|
172
173
|
OrqHarmfulModeration: "orq_harmful_moderation",
|
|
173
174
|
} as const;
|
|
@@ -667,6 +668,7 @@ export type StreamRunAgentFallbackModelConfigurationModalities = ClosedEnum<
|
|
|
667
668
|
*/
|
|
668
669
|
export const StreamRunAgentIdAgents1 = {
|
|
669
670
|
OrqPiiDetection: "orq_pii_detection",
|
|
671
|
+
OrqSecretDetection: "orq_secret_detection",
|
|
670
672
|
OrqSexualModeration: "orq_sexual_moderation",
|
|
671
673
|
OrqHarmfulModeration: "orq_harmful_moderation",
|
|
672
674
|
} as const;
|
|
@@ -4096,7 +4098,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
|
|
|
4096
4098
|
z.ZodTypeDef,
|
|
4097
4099
|
AgentToolInputRunTools
|
|
4098
4100
|
> = z.object({
|
|
4099
|
-
id: z.string().default("
|
|
4101
|
+
id: z.string().default("01KXN9FFYEBPAE11VQR76E5MMW"),
|
|
4100
4102
|
name: z.string(),
|
|
4101
4103
|
description: z.string().optional(),
|
|
4102
4104
|
schema: z.lazy(() =>
|
|
@@ -166,6 +166,7 @@ export type ModelConfigurationModalities = ClosedEnum<
|
|
|
166
166
|
*/
|
|
167
167
|
export const UpdateAgentId1 = {
|
|
168
168
|
OrqPiiDetection: "orq_pii_detection",
|
|
169
|
+
OrqSecretDetection: "orq_secret_detection",
|
|
169
170
|
OrqSexualModeration: "orq_sexual_moderation",
|
|
170
171
|
OrqHarmfulModeration: "orq_harmful_moderation",
|
|
171
172
|
} as const;
|
|
@@ -657,6 +658,7 @@ export type UpdateAgentFallbackModelConfigurationModalities = ClosedEnum<
|
|
|
657
658
|
*/
|
|
658
659
|
export const UpdateAgentIdAgents1 = {
|
|
659
660
|
OrqPiiDetection: "orq_pii_detection",
|
|
661
|
+
OrqSecretDetection: "orq_secret_detection",
|
|
660
662
|
OrqSexualModeration: "orq_sexual_moderation",
|
|
661
663
|
OrqHarmfulModeration: "orq_harmful_moderation",
|
|
662
664
|
} as const;
|
|
@@ -2111,6 +2113,7 @@ export type UpdateAgentModalities = ClosedEnum<typeof UpdateAgentModalities>;
|
|
|
2111
2113
|
*/
|
|
2112
2114
|
export const UpdateAgentIdAgentsResponse1 = {
|
|
2113
2115
|
OrqPiiDetection: "orq_pii_detection",
|
|
2116
|
+
OrqSecretDetection: "orq_secret_detection",
|
|
2114
2117
|
OrqSexualModeration: "orq_sexual_moderation",
|
|
2115
2118
|
OrqHarmfulModeration: "orq_harmful_moderation",
|
|
2116
2119
|
} as const;
|
|
@@ -2580,6 +2583,7 @@ export type UpdateAgentFallbackModelConfigurationAgentsModalities = ClosedEnum<
|
|
|
2580
2583
|
*/
|
|
2581
2584
|
export const UpdateAgentIdAgentsResponse2001 = {
|
|
2582
2585
|
OrqPiiDetection: "orq_pii_detection",
|
|
2586
|
+
OrqSecretDetection: "orq_secret_detection",
|
|
2583
2587
|
OrqSexualModeration: "orq_sexual_moderation",
|
|
2584
2588
|
OrqHarmfulModeration: "orq_harmful_moderation",
|
|
2585
2589
|
} as const;
|
|
@@ -750,6 +750,123 @@ export type UpdateDatapointDatasetsMessages =
|
|
|
750
750
|
| UpdateDatapointMessagesDatasetsAssistantMessage
|
|
751
751
|
| UpdateDatapointMessagesDatasetsToolMessage;
|
|
752
752
|
|
|
753
|
+
/**
|
|
754
|
+
* The type of evaluation
|
|
755
|
+
*/
|
|
756
|
+
export const UpdateDatapointEvaluationsDatasetsResponse200EvaluationType = {
|
|
757
|
+
HumanReview: "human_review",
|
|
758
|
+
} as const;
|
|
759
|
+
/**
|
|
760
|
+
* The type of evaluation
|
|
761
|
+
*/
|
|
762
|
+
export type UpdateDatapointEvaluationsDatasetsResponse200EvaluationType =
|
|
763
|
+
ClosedEnum<
|
|
764
|
+
typeof UpdateDatapointEvaluationsDatasetsResponse200EvaluationType
|
|
765
|
+
>;
|
|
766
|
+
|
|
767
|
+
export const UpdateDatapointEvaluationsDatasetsResponse200Source = {
|
|
768
|
+
Orq: "orq",
|
|
769
|
+
External: "external",
|
|
770
|
+
} as const;
|
|
771
|
+
export type UpdateDatapointEvaluationsDatasetsResponse200Source = ClosedEnum<
|
|
772
|
+
typeof UpdateDatapointEvaluationsDatasetsResponse200Source
|
|
773
|
+
>;
|
|
774
|
+
|
|
775
|
+
/**
|
|
776
|
+
* The kind of annotator that produced the evaluation
|
|
777
|
+
*/
|
|
778
|
+
export const UpdateDatapointEvaluationsDatasetsResponse200Kind = {
|
|
779
|
+
Llm: "llm",
|
|
780
|
+
Code: "code",
|
|
781
|
+
Human: "human",
|
|
782
|
+
Automation: "automation",
|
|
783
|
+
} as const;
|
|
784
|
+
/**
|
|
785
|
+
* The kind of annotator that produced the evaluation
|
|
786
|
+
*/
|
|
787
|
+
export type UpdateDatapointEvaluationsDatasetsResponse200Kind = ClosedEnum<
|
|
788
|
+
typeof UpdateDatapointEvaluationsDatasetsResponse200Kind
|
|
789
|
+
>;
|
|
790
|
+
|
|
791
|
+
/**
|
|
792
|
+
* The annotator that produced this evaluation. Optional during the dual-write deprecation window.
|
|
793
|
+
*/
|
|
794
|
+
export type UpdateDatapointEvaluationsDatasetsResponse200Annotator = {
|
|
795
|
+
/**
|
|
796
|
+
* The kind of annotator that produced the evaluation
|
|
797
|
+
*/
|
|
798
|
+
kind: UpdateDatapointEvaluationsDatasetsResponse200Kind;
|
|
799
|
+
/**
|
|
800
|
+
* Who/what produced this annotation. User/contact id for human, evaluator eval span id for llm/code, automation rule id for automation.
|
|
801
|
+
*/
|
|
802
|
+
actorId: string;
|
|
803
|
+
};
|
|
804
|
+
|
|
805
|
+
/**
|
|
806
|
+
* The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
|
|
807
|
+
*/
|
|
808
|
+
export const UpdateDatapointEvaluationsDatasetsResponse200OutputSchema = {
|
|
809
|
+
Boolean: "boolean",
|
|
810
|
+
Number: "number",
|
|
811
|
+
Categorical: "categorical",
|
|
812
|
+
String: "string",
|
|
813
|
+
} as const;
|
|
814
|
+
/**
|
|
815
|
+
* The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
|
|
816
|
+
*/
|
|
817
|
+
export type UpdateDatapointEvaluationsDatasetsResponse200OutputSchema =
|
|
818
|
+
ClosedEnum<typeof UpdateDatapointEvaluationsDatasetsResponse200OutputSchema>;
|
|
819
|
+
|
|
820
|
+
export type UpdateDatapointEvaluations4 = {
|
|
821
|
+
/**
|
|
822
|
+
* The unique identifier of the human evaluation
|
|
823
|
+
*/
|
|
824
|
+
id: string;
|
|
825
|
+
/**
|
|
826
|
+
* The type of evaluation
|
|
827
|
+
*/
|
|
828
|
+
evaluationType: UpdateDatapointEvaluationsDatasetsResponse200EvaluationType;
|
|
829
|
+
/**
|
|
830
|
+
* The unique identifier of the human review. Omitted on corrections, which inherit the parent evaluator output schema.
|
|
831
|
+
*/
|
|
832
|
+
humanReviewId?: string | undefined;
|
|
833
|
+
source: UpdateDatapointEvaluationsDatasetsResponse200Source;
|
|
834
|
+
/**
|
|
835
|
+
* The annotator that produced this evaluation. Optional during the dual-write deprecation window.
|
|
836
|
+
*/
|
|
837
|
+
annotator?:
|
|
838
|
+
| UpdateDatapointEvaluationsDatasetsResponse200Annotator
|
|
839
|
+
| undefined;
|
|
840
|
+
/**
|
|
841
|
+
* The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
|
|
842
|
+
*/
|
|
843
|
+
outputSchema?:
|
|
844
|
+
| UpdateDatapointEvaluationsDatasetsResponse200OutputSchema
|
|
845
|
+
| undefined;
|
|
846
|
+
/**
|
|
847
|
+
* When present, references the id of the annotation this entry corrects. Presence of this field marks the entry as a correction.
|
|
848
|
+
*/
|
|
849
|
+
parentAnnotationId?: string | undefined;
|
|
850
|
+
/**
|
|
851
|
+
* Optional free-text explanation of the value
|
|
852
|
+
*/
|
|
853
|
+
explanation?: string | undefined;
|
|
854
|
+
/**
|
|
855
|
+
* Deprecated: use annotator.actor_id. The unique identifier of the user who reviewed the item.
|
|
856
|
+
*
|
|
857
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
858
|
+
*/
|
|
859
|
+
reviewedById: string;
|
|
860
|
+
/**
|
|
861
|
+
* Deprecated. The date and time the item was reviewed
|
|
862
|
+
*
|
|
863
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
864
|
+
*/
|
|
865
|
+
reviewedAt: Date;
|
|
866
|
+
type: "string_array";
|
|
867
|
+
values: Array<string>;
|
|
868
|
+
};
|
|
869
|
+
|
|
753
870
|
/**
|
|
754
871
|
* The type of evaluation
|
|
755
872
|
*/
|
|
@@ -860,8 +977,8 @@ export type UpdateDatapointEvaluations3 = {
|
|
|
860
977
|
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
861
978
|
*/
|
|
862
979
|
reviewedAt: Date;
|
|
863
|
-
type: "
|
|
864
|
-
|
|
980
|
+
type: "boolean";
|
|
981
|
+
value: boolean;
|
|
865
982
|
};
|
|
866
983
|
|
|
867
984
|
/**
|
|
@@ -1093,7 +1210,8 @@ export type UpdateDatapointEvaluations1 = {
|
|
|
1093
1210
|
export type UpdateDatapointEvaluations =
|
|
1094
1211
|
| UpdateDatapointEvaluations1
|
|
1095
1212
|
| UpdateDatapointEvaluations2
|
|
1096
|
-
| UpdateDatapointEvaluations3
|
|
1213
|
+
| UpdateDatapointEvaluations3
|
|
1214
|
+
| UpdateDatapointEvaluations4;
|
|
1097
1215
|
|
|
1098
1216
|
/**
|
|
1099
1217
|
* Dataset item updated.
|
|
@@ -1132,6 +1250,7 @@ export type UpdateDatapointResponseBody = {
|
|
|
1132
1250
|
| UpdateDatapointEvaluations1
|
|
1133
1251
|
| UpdateDatapointEvaluations2
|
|
1134
1252
|
| UpdateDatapointEvaluations3
|
|
1253
|
+
| UpdateDatapointEvaluations4
|
|
1135
1254
|
>
|
|
1136
1255
|
| undefined;
|
|
1137
1256
|
/**
|
|
@@ -2554,6 +2673,105 @@ export function updateDatapointDatasetsMessagesFromJSON(
|
|
|
2554
2673
|
);
|
|
2555
2674
|
}
|
|
2556
2675
|
|
|
2676
|
+
/** @internal */
|
|
2677
|
+
export const UpdateDatapointEvaluationsDatasetsResponse200EvaluationType$inboundSchema:
|
|
2678
|
+
z.ZodNativeEnum<
|
|
2679
|
+
typeof UpdateDatapointEvaluationsDatasetsResponse200EvaluationType
|
|
2680
|
+
> = z.nativeEnum(UpdateDatapointEvaluationsDatasetsResponse200EvaluationType);
|
|
2681
|
+
|
|
2682
|
+
/** @internal */
|
|
2683
|
+
export const UpdateDatapointEvaluationsDatasetsResponse200Source$inboundSchema:
|
|
2684
|
+
z.ZodNativeEnum<typeof UpdateDatapointEvaluationsDatasetsResponse200Source> =
|
|
2685
|
+
z.nativeEnum(UpdateDatapointEvaluationsDatasetsResponse200Source);
|
|
2686
|
+
|
|
2687
|
+
/** @internal */
|
|
2688
|
+
export const UpdateDatapointEvaluationsDatasetsResponse200Kind$inboundSchema:
|
|
2689
|
+
z.ZodNativeEnum<typeof UpdateDatapointEvaluationsDatasetsResponse200Kind> = z
|
|
2690
|
+
.nativeEnum(UpdateDatapointEvaluationsDatasetsResponse200Kind);
|
|
2691
|
+
|
|
2692
|
+
/** @internal */
|
|
2693
|
+
export const UpdateDatapointEvaluationsDatasetsResponse200Annotator$inboundSchema:
|
|
2694
|
+
z.ZodType<
|
|
2695
|
+
UpdateDatapointEvaluationsDatasetsResponse200Annotator,
|
|
2696
|
+
z.ZodTypeDef,
|
|
2697
|
+
unknown
|
|
2698
|
+
> = z.object({
|
|
2699
|
+
kind: UpdateDatapointEvaluationsDatasetsResponse200Kind$inboundSchema,
|
|
2700
|
+
actor_id: z.string(),
|
|
2701
|
+
}).transform((v) => {
|
|
2702
|
+
return remap$(v, {
|
|
2703
|
+
"actor_id": "actorId",
|
|
2704
|
+
});
|
|
2705
|
+
});
|
|
2706
|
+
|
|
2707
|
+
export function updateDatapointEvaluationsDatasetsResponse200AnnotatorFromJSON(
|
|
2708
|
+
jsonString: string,
|
|
2709
|
+
): SafeParseResult<
|
|
2710
|
+
UpdateDatapointEvaluationsDatasetsResponse200Annotator,
|
|
2711
|
+
SDKValidationError
|
|
2712
|
+
> {
|
|
2713
|
+
return safeParse(
|
|
2714
|
+
jsonString,
|
|
2715
|
+
(x) =>
|
|
2716
|
+
UpdateDatapointEvaluationsDatasetsResponse200Annotator$inboundSchema
|
|
2717
|
+
.parse(JSON.parse(x)),
|
|
2718
|
+
`Failed to parse 'UpdateDatapointEvaluationsDatasetsResponse200Annotator' from JSON`,
|
|
2719
|
+
);
|
|
2720
|
+
}
|
|
2721
|
+
|
|
2722
|
+
/** @internal */
|
|
2723
|
+
export const UpdateDatapointEvaluationsDatasetsResponse200OutputSchema$inboundSchema:
|
|
2724
|
+
z.ZodNativeEnum<
|
|
2725
|
+
typeof UpdateDatapointEvaluationsDatasetsResponse200OutputSchema
|
|
2726
|
+
> = z.nativeEnum(UpdateDatapointEvaluationsDatasetsResponse200OutputSchema);
|
|
2727
|
+
|
|
2728
|
+
/** @internal */
|
|
2729
|
+
export const UpdateDatapointEvaluations4$inboundSchema: z.ZodType<
|
|
2730
|
+
UpdateDatapointEvaluations4,
|
|
2731
|
+
z.ZodTypeDef,
|
|
2732
|
+
unknown
|
|
2733
|
+
> = z.object({
|
|
2734
|
+
id: z.string(),
|
|
2735
|
+
evaluation_type:
|
|
2736
|
+
UpdateDatapointEvaluationsDatasetsResponse200EvaluationType$inboundSchema,
|
|
2737
|
+
human_review_id: z.string().optional(),
|
|
2738
|
+
source: UpdateDatapointEvaluationsDatasetsResponse200Source$inboundSchema
|
|
2739
|
+
.default("orq"),
|
|
2740
|
+
annotator: z.lazy(() =>
|
|
2741
|
+
UpdateDatapointEvaluationsDatasetsResponse200Annotator$inboundSchema
|
|
2742
|
+
).optional(),
|
|
2743
|
+
output_schema:
|
|
2744
|
+
UpdateDatapointEvaluationsDatasetsResponse200OutputSchema$inboundSchema
|
|
2745
|
+
.optional(),
|
|
2746
|
+
parent_annotation_id: z.string().optional(),
|
|
2747
|
+
explanation: z.string().optional(),
|
|
2748
|
+
reviewed_by_id: z.string(),
|
|
2749
|
+
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2750
|
+
"2026-07-16T11:02:38.230Z",
|
|
2751
|
+
).transform(v => new Date(v)),
|
|
2752
|
+
type: z.literal("string_array"),
|
|
2753
|
+
values: z.array(z.string()),
|
|
2754
|
+
}).transform((v) => {
|
|
2755
|
+
return remap$(v, {
|
|
2756
|
+
"evaluation_type": "evaluationType",
|
|
2757
|
+
"human_review_id": "humanReviewId",
|
|
2758
|
+
"output_schema": "outputSchema",
|
|
2759
|
+
"parent_annotation_id": "parentAnnotationId",
|
|
2760
|
+
"reviewed_by_id": "reviewedById",
|
|
2761
|
+
"reviewed_at": "reviewedAt",
|
|
2762
|
+
});
|
|
2763
|
+
});
|
|
2764
|
+
|
|
2765
|
+
export function updateDatapointEvaluations4FromJSON(
|
|
2766
|
+
jsonString: string,
|
|
2767
|
+
): SafeParseResult<UpdateDatapointEvaluations4, SDKValidationError> {
|
|
2768
|
+
return safeParse(
|
|
2769
|
+
jsonString,
|
|
2770
|
+
(x) => UpdateDatapointEvaluations4$inboundSchema.parse(JSON.parse(x)),
|
|
2771
|
+
`Failed to parse 'UpdateDatapointEvaluations4' from JSON`,
|
|
2772
|
+
);
|
|
2773
|
+
}
|
|
2774
|
+
|
|
2557
2775
|
/** @internal */
|
|
2558
2776
|
export const UpdateDatapointEvaluationsDatasetsResponseEvaluationType$inboundSchema:
|
|
2559
2777
|
z.ZodNativeEnum<
|
|
@@ -2629,10 +2847,10 @@ export const UpdateDatapointEvaluations3$inboundSchema: z.ZodType<
|
|
|
2629
2847
|
explanation: z.string().optional(),
|
|
2630
2848
|
reviewed_by_id: z.string(),
|
|
2631
2849
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2632
|
-
"2026-07-
|
|
2850
|
+
"2026-07-16T11:02:38.229Z",
|
|
2633
2851
|
).transform(v => new Date(v)),
|
|
2634
|
-
type: z.literal("
|
|
2635
|
-
|
|
2852
|
+
type: z.literal("boolean"),
|
|
2853
|
+
value: z.boolean(),
|
|
2636
2854
|
}).transform((v) => {
|
|
2637
2855
|
return remap$(v, {
|
|
2638
2856
|
"evaluation_type": "evaluationType",
|
|
@@ -2726,7 +2944,7 @@ export const UpdateDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
|
2726
2944
|
explanation: z.string().optional(),
|
|
2727
2945
|
reviewed_by_id: z.string(),
|
|
2728
2946
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2729
|
-
"2026-07-
|
|
2947
|
+
"2026-07-16T11:02:38.228Z",
|
|
2730
2948
|
).transform(v => new Date(v)),
|
|
2731
2949
|
type: z.literal("number"),
|
|
2732
2950
|
value: z.number(),
|
|
@@ -2815,7 +3033,7 @@ export const UpdateDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
|
2815
3033
|
explanation: z.string().optional(),
|
|
2816
3034
|
reviewed_by_id: z.string(),
|
|
2817
3035
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2818
|
-
"2026-07-
|
|
3036
|
+
"2026-07-16T11:02:38.227Z",
|
|
2819
3037
|
).transform(v => new Date(v)),
|
|
2820
3038
|
type: z.literal("string"),
|
|
2821
3039
|
value: z.string(),
|
|
@@ -2849,6 +3067,7 @@ export const UpdateDatapointEvaluations$inboundSchema: z.ZodType<
|
|
|
2849
3067
|
z.lazy(() => UpdateDatapointEvaluations1$inboundSchema),
|
|
2850
3068
|
z.lazy(() => UpdateDatapointEvaluations2$inboundSchema),
|
|
2851
3069
|
z.lazy(() => UpdateDatapointEvaluations3$inboundSchema),
|
|
3070
|
+
z.lazy(() => UpdateDatapointEvaluations4$inboundSchema),
|
|
2852
3071
|
]);
|
|
2853
3072
|
|
|
2854
3073
|
export function updateDatapointEvaluationsFromJSON(
|
|
@@ -2889,6 +3108,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
2889
3108
|
z.lazy(() => UpdateDatapointEvaluations1$inboundSchema),
|
|
2890
3109
|
z.lazy(() => UpdateDatapointEvaluations2$inboundSchema),
|
|
2891
3110
|
z.lazy(() => UpdateDatapointEvaluations3$inboundSchema),
|
|
3111
|
+
z.lazy(() => UpdateDatapointEvaluations4$inboundSchema),
|
|
2892
3112
|
]),
|
|
2893
3113
|
).optional(),
|
|
2894
3114
|
dataset_id: z.string(),
|
|
@@ -2898,7 +3118,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
2898
3118
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2899
3119
|
.optional(),
|
|
2900
3120
|
updated: z.string().datetime({ offset: true }).default(
|
|
2901
|
-
"2026-07-
|
|
3121
|
+
"2026-07-16T11:02:21.951Z",
|
|
2902
3122
|
).transform(v => new Date(v)),
|
|
2903
3123
|
}).transform((v) => {
|
|
2904
3124
|
return remap$(v, {
|
|
@@ -182,7 +182,7 @@ export const UpdateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
182
182
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
183
183
|
.optional(),
|
|
184
184
|
updated: z.string().datetime({ offset: true }).default(
|
|
185
|
-
"2026-07-
|
|
185
|
+
"2026-07-16T11:02:21.951Z",
|
|
186
186
|
).transform(v => new Date(v)),
|
|
187
187
|
}).transform((v) => {
|
|
188
188
|
return remap$(v, {
|
|
@@ -152,7 +152,7 @@ export const UpdateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
152
152
|
z.ZodTypeDef,
|
|
153
153
|
unknown
|
|
154
154
|
> = z.object({
|
|
155
|
-
_id: z.string().default("
|
|
155
|
+
_id: z.string().default("01KXN9FG8C8DTNFNH7XBTP487Q"),
|
|
156
156
|
display_name: z.string(),
|
|
157
157
|
description: z.nullable(z.string()).optional(),
|
|
158
158
|
status: UpdateDatasourceStatus$inboundSchema,
|
|
@@ -550,6 +550,7 @@ export type UpdatePromptModalities = ClosedEnum<typeof UpdatePromptModalities>;
|
|
|
550
550
|
*/
|
|
551
551
|
export const UpdatePromptId1 = {
|
|
552
552
|
OrqPiiDetection: "orq_pii_detection",
|
|
553
|
+
OrqSecretDetection: "orq_secret_detection",
|
|
553
554
|
OrqSexualModeration: "orq_sexual_moderation",
|
|
554
555
|
OrqHarmfulModeration: "orq_harmful_moderation",
|
|
555
556
|
} as const;
|
|
@@ -1256,6 +1257,7 @@ export type UpdatePromptVerbosity = ClosedEnum<typeof UpdatePromptVerbosity>;
|
|
|
1256
1257
|
* The level of thinking to use for the model. Only supported by `Google AI`
|
|
1257
1258
|
*/
|
|
1258
1259
|
export const UpdatePromptThinkingLevel = {
|
|
1260
|
+
Minimal: "minimal",
|
|
1259
1261
|
Low: "low",
|
|
1260
1262
|
Medium: "medium",
|
|
1261
1263
|
High: "high",
|
|
@@ -1404,6 +1406,7 @@ export const UpdatePromptProvider = {
|
|
|
1404
1406
|
Wafer: "wafer",
|
|
1405
1407
|
Poolside: "poolside",
|
|
1406
1408
|
Tencent: "tencent",
|
|
1409
|
+
Nebius: "nebius",
|
|
1407
1410
|
Reson8: "reson8",
|
|
1408
1411
|
Slack: "slack",
|
|
1409
1412
|
Orq: "orq",
|
|
@@ -1786,6 +1789,7 @@ export type UpdatePromptPromptsModalities = ClosedEnum<
|
|
|
1786
1789
|
*/
|
|
1787
1790
|
export const UpdatePromptIdPrompts1 = {
|
|
1788
1791
|
OrqPiiDetection: "orq_pii_detection",
|
|
1792
|
+
OrqSecretDetection: "orq_secret_detection",
|
|
1789
1793
|
OrqSexualModeration: "orq_sexual_moderation",
|
|
1790
1794
|
OrqHarmfulModeration: "orq_harmful_moderation",
|
|
1791
1795
|
} as const;
|
|
@@ -1472,7 +1472,7 @@ export const RequestBodyTools$outboundSchema: z.ZodType<
|
|
|
1472
1472
|
z.ZodTypeDef,
|
|
1473
1473
|
RequestBodyTools
|
|
1474
1474
|
> = z.object({
|
|
1475
|
-
id: z.string().default("
|
|
1475
|
+
id: z.string().default("01KXN9FG4FPZR9459SR60ASREV"),
|
|
1476
1476
|
name: z.string(),
|
|
1477
1477
|
description: z.string().optional(),
|
|
1478
1478
|
schema: z.lazy(() => UpdateToolRequestBodyToolsSchema$outboundSchema),
|
|
@@ -2193,7 +2193,7 @@ export const UpdateToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
2193
2193
|
z.ZodTypeDef,
|
|
2194
2194
|
unknown
|
|
2195
2195
|
> = z.object({
|
|
2196
|
-
_id: z.string().default("
|
|
2196
|
+
_id: z.string().default("tool_01KXN9FG4899A61A23BAPRDQ17"),
|
|
2197
2197
|
path: z.string(),
|
|
2198
2198
|
key: z.string(),
|
|
2199
2199
|
display_name: z.string().optional(),
|
|
@@ -2296,7 +2296,7 @@ export const UpdateToolResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
2296
2296
|
z.ZodTypeDef,
|
|
2297
2297
|
unknown
|
|
2298
2298
|
> = z.object({
|
|
2299
|
-
id: z.string().default("
|
|
2299
|
+
id: z.string().default("01KXN9FG47KKMFNY2QG665JKWC"),
|
|
2300
2300
|
name: z.string(),
|
|
2301
2301
|
description: z.string().optional(),
|
|
2302
2302
|
schema: z.lazy(() => UpdateToolResponseBodyToolsSchema$inboundSchema),
|
|
@@ -2354,7 +2354,7 @@ export const UpdateToolResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
2354
2354
|
z.ZodTypeDef,
|
|
2355
2355
|
unknown
|
|
2356
2356
|
> = z.object({
|
|
2357
|
-
_id: z.string().default("
|
|
2357
|
+
_id: z.string().default("tool_01KXN9FG45DSCGMRBX43VK9BMM"),
|
|
2358
2358
|
path: z.string(),
|
|
2359
2359
|
key: z.string(),
|
|
2360
2360
|
display_name: z.string().optional(),
|
|
@@ -2543,7 +2543,7 @@ export const UpdateToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
2543
2543
|
z.ZodTypeDef,
|
|
2544
2544
|
unknown
|
|
2545
2545
|
> = z.object({
|
|
2546
|
-
_id: z.string().default("
|
|
2546
|
+
_id: z.string().default("tool_01KXN9FG43WJNTMCRDRGPB7K5A"),
|
|
2547
2547
|
path: z.string(),
|
|
2548
2548
|
key: z.string(),
|
|
2549
2549
|
display_name: z.string().optional(),
|
|
@@ -2638,7 +2638,7 @@ export const UpdateToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
2638
2638
|
z.ZodTypeDef,
|
|
2639
2639
|
unknown
|
|
2640
2640
|
> = z.object({
|
|
2641
|
-
_id: z.string().default("
|
|
2641
|
+
_id: z.string().default("tool_01KXN9FG41HNGW8NFFEVYTQKC7"),
|
|
2642
2642
|
path: z.string(),
|
|
2643
2643
|
key: z.string(),
|
|
2644
2644
|
display_name: z.string().optional(),
|
|
@@ -2741,7 +2741,7 @@ export const UpdateToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
2741
2741
|
z.ZodTypeDef,
|
|
2742
2742
|
unknown
|
|
2743
2743
|
> = z.object({
|
|
2744
|
-
_id: z.string().default("
|
|
2744
|
+
_id: z.string().default("tool_01KXN9FG40HXY17GFPMSQMP42Z"),
|
|
2745
2745
|
path: z.string(),
|
|
2746
2746
|
key: z.string(),
|
|
2747
2747
|
display_name: z.string().optional(),
|
|
@@ -44,6 +44,12 @@ export class Feedback extends ClientSDK {
|
|
|
44
44
|
));
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
+
/**
|
|
48
|
+
* Create custom model
|
|
49
|
+
*
|
|
50
|
+
* @remarks
|
|
51
|
+
* Creates a new custom model for the workspace. Provider credentials in the configuration are encrypted using the workspace encryption key before being persisted.
|
|
52
|
+
*/
|
|
47
53
|
async create(
|
|
48
54
|
request?: operations.PostV2FeedbackRequestBody | undefined,
|
|
49
55
|
options?: RequestOptions,
|
|
@@ -27,7 +27,10 @@ export class HumanReviewSets extends ClientSDK {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* Create a
|
|
30
|
+
* Create a new management key
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Mints a new opaque management key (`sk-orq-<key_id>-<secret>`) in the workspace. The raw secret is returned ONCE in the response and is never retrievable afterwards. The stored record retains only `token_prefix` and a SHA-256 `token_hash`.
|
|
31
34
|
*/
|
|
32
35
|
async create(
|
|
33
36
|
request?: operations.PostV2HumanEvalSetsRequestBody | undefined,
|
|
@@ -12,7 +12,9 @@ export class Reporting extends ClientSDK {
|
|
|
12
12
|
* Query reporting metrics
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* Returns time-series analytics for AI usage, cost, latency, evaluator results, and guardrail outcomes. Select a metric and time range, break results down by supported dimensions, apply filters, and optionally include totals for the full range.
|
|
15
|
+
* Deprecated: use TelemetryService.Query (POST /v2/telemetry/query) instead. Returns time-series analytics for AI usage, cost, latency, evaluator results, and guardrail outcomes. Select a metric and time range, break results down by supported dimensions, apply filters, and optionally include totals for the full range.
|
|
16
|
+
*
|
|
17
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
16
18
|
*/
|
|
17
19
|
async query(
|
|
18
20
|
request: components.QueryReportRequest,
|
|
@@ -31,6 +31,7 @@ import { Router } from "./router.js";
|
|
|
31
31
|
import { RoutingRules } from "./routingrules.js";
|
|
32
32
|
import { Schedules } from "./schedules.js";
|
|
33
33
|
import { Skills } from "./skills.js";
|
|
34
|
+
import { Telemetry } from "./telemetry.js";
|
|
34
35
|
import { Tools } from "./tools.js";
|
|
35
36
|
import { Traces } from "./traces.js";
|
|
36
37
|
|
|
@@ -180,6 +181,11 @@ export class Orq extends ClientSDK {
|
|
|
180
181
|
return (this._reporting ??= new Reporting(this._options));
|
|
181
182
|
}
|
|
182
183
|
|
|
184
|
+
private _telemetry?: Telemetry;
|
|
185
|
+
get telemetry(): Telemetry {
|
|
186
|
+
return (this._telemetry ??= new Telemetry(this._options));
|
|
187
|
+
}
|
|
188
|
+
|
|
183
189
|
private _traces?: Traces;
|
|
184
190
|
get traces(): Traces {
|
|
185
191
|
return (this._traces ??= new Traces(this._options));
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { telemetryQuery } from "../funcs/telemetryQuery.js";
|
|
6
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
7
|
+
import * as components from "../models/components/index.js";
|
|
8
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
9
|
+
|
|
10
|
+
export class Telemetry extends ClientSDK {
|
|
11
|
+
/**
|
|
12
|
+
* Query telemetry
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Unified query envelope for traces, metrics, and logs. Selects a source, a compute list, and a time range, with optional grain, group-by, and filters; returns a time series or a single aggregate row per group.
|
|
16
|
+
*/
|
|
17
|
+
async query(
|
|
18
|
+
request: components.QueryTelemetryRequest,
|
|
19
|
+
options?: RequestOptions,
|
|
20
|
+
): Promise<components.QueryTelemetryResponse> {
|
|
21
|
+
return unwrapAsync(telemetryQuery(
|
|
22
|
+
this,
|
|
23
|
+
request,
|
|
24
|
+
options,
|
|
25
|
+
));
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -21,7 +21,9 @@ export class Traces extends ClientSDK {
|
|
|
21
21
|
* Aggregate traces
|
|
22
22
|
*
|
|
23
23
|
* @remarks
|
|
24
|
-
* Aggregate trace metrics using the structured trace filter contract.
|
|
24
|
+
* Deprecated: use TelemetryService.Query (POST /v2/telemetry/query, source=TRACES, grain=none) instead. Aggregate trace metrics using the structured trace filter contract.
|
|
25
|
+
*
|
|
26
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
25
27
|
*/
|
|
26
28
|
async aggregate(
|
|
27
29
|
request: components.AggregateTracesRequest,
|
package/sdk/feedback.d.ts
CHANGED
|
@@ -5,7 +5,10 @@ export declare class Feedback extends ClientSDK {
|
|
|
5
5
|
createEvaluation(request?: operations.PostV2FeedbackEvaluationRequestBody | undefined, options?: RequestOptions): Promise<void>;
|
|
6
6
|
remove(request?: operations.PostV2FeedbackRemoveRequestBody | undefined, options?: RequestOptions): Promise<operations.PostV2FeedbackRemoveResponseBody>;
|
|
7
7
|
/**
|
|
8
|
-
* Create
|
|
8
|
+
* Create routing rule
|
|
9
|
+
*
|
|
10
|
+
* @remarks
|
|
11
|
+
* Creates a new routing rule with expression, models configuration, and priority settings.
|
|
9
12
|
*/
|
|
10
13
|
create(request?: operations.PostV2FeedbackRequestBody | undefined, options?: RequestOptions): Promise<operations.PostV2FeedbackResponseBody>;
|
|
11
14
|
}
|