@orq-ai/node 4.10.0-rc.7 → 4.10.0-rc.8
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/README.md +48 -53
- package/funcs/projectsCreate.d.ts +1 -1
- package/funcs/projectsCreate.js +1 -1
- package/funcs/projectsDelete.d.ts +3 -0
- package/funcs/projectsDelete.d.ts.map +1 -1
- package/funcs/projectsDelete.js +3 -0
- package/funcs/projectsDelete.js.map +1 -1
- package/funcs/projectsList.d.ts +1 -1
- package/funcs/projectsList.js +1 -1
- package/funcs/reportingQuery.d.ts +17 -0
- package/funcs/reportingQuery.d.ts.map +1 -0
- package/funcs/{contactsCreate.js → reportingQuery.js} +10 -10
- package/funcs/reportingQuery.js.map +1 -0
- package/funcs/skillsCreate.d.ts +1 -1
- package/funcs/skillsCreate.js +1 -1
- package/funcs/skillsDelete.d.ts +3 -0
- package/funcs/skillsDelete.d.ts.map +1 -1
- package/funcs/skillsDelete.js +3 -0
- package/funcs/skillsDelete.js.map +1 -1
- package/funcs/skillsGet.d.ts +1 -1
- package/funcs/skillsGet.js +1 -1
- package/funcs/skillsList.d.ts +1 -1
- package/funcs/skillsList.js +1 -1
- package/funcs/skillsUpdate.d.ts +1 -1
- package/funcs/skillsUpdate.js +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/createprojectrequest.d.ts +6 -0
- package/models/components/createprojectrequest.d.ts.map +1 -1
- package/models/components/createprojectrequest.js.map +1 -1
- package/models/components/createprojectresponse.d.ts +3 -0
- package/models/components/createprojectresponse.d.ts.map +1 -1
- package/models/components/createprojectresponse.js.map +1 -1
- package/models/components/createskillrequest.d.ts +18 -0
- package/models/components/createskillrequest.d.ts.map +1 -1
- package/models/components/createskillrequest.js.map +1 -1
- package/models/components/createskillresponse.d.ts +3 -0
- package/models/components/createskillresponse.d.ts.map +1 -1
- package/models/components/createskillresponse.js.map +1 -1
- package/models/components/datapoint.d.ts +40 -0
- package/models/components/datapoint.d.ts.map +1 -0
- package/models/components/datapoint.js +53 -0
- package/models/components/datapoint.js.map +1 -0
- package/models/components/file.d.ts +0 -1
- package/models/components/file.d.ts.map +1 -1
- package/models/components/file.js +0 -2
- package/models/components/file.js.map +1 -1
- package/models/components/filter.d.ts +99 -0
- package/models/components/filter.d.ts.map +1 -0
- package/models/components/filter.js +120 -0
- package/models/components/filter.js.map +1 -0
- package/models/components/getprojectresponse.d.ts +3 -0
- package/models/components/getprojectresponse.d.ts.map +1 -1
- package/models/components/getprojectresponse.js.map +1 -1
- package/models/components/getskillresponse.d.ts +3 -0
- package/models/components/getskillresponse.d.ts.map +1 -1
- package/models/components/getskillresponse.js.map +1 -1
- package/models/components/index.d.ts +6 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +6 -0
- package/models/components/index.js.map +1 -1
- package/models/components/listprojectsresponse.d.ts +12 -0
- package/models/components/listprojectsresponse.d.ts.map +1 -1
- package/models/components/listprojectsresponse.js.map +1 -1
- package/models/components/listskillsresponse.d.ts +12 -0
- package/models/components/listskillsresponse.d.ts.map +1 -1
- package/models/components/listskillsresponse.js.map +1 -1
- package/models/components/project.d.ts +42 -1
- package/models/components/project.d.ts.map +1 -1
- package/models/components/project.js +0 -2
- package/models/components/project.js.map +1 -1
- package/models/components/queryreportrequest.d.ts +156 -0
- package/models/components/queryreportrequest.d.ts.map +1 -0
- package/models/components/queryreportrequest.js +166 -0
- package/models/components/queryreportrequest.js.map +1 -0
- package/models/components/queryreportresponse.d.ts +59 -0
- package/models/components/queryreportresponse.d.ts.map +1 -0
- package/models/components/queryreportresponse.js +73 -0
- package/models/components/queryreportresponse.js.map +1 -0
- package/models/components/reasoningpart.js +1 -1
- package/models/components/responsemeta.d.ts +63 -0
- package/models/components/responsemeta.d.ts.map +1 -0
- package/models/{operations/remoteconfigsgetconfig.js → components/responsemeta.js} +31 -27
- package/models/components/responsemeta.js.map +1 -0
- package/models/components/skill.d.ts +37 -1
- package/models/components/skill.d.ts.map +1 -1
- package/models/components/skill.js +0 -2
- package/models/components/skill.js.map +1 -1
- package/models/components/totals.d.ts +18 -0
- package/models/components/totals.d.ts.map +1 -0
- package/models/components/totals.js +51 -0
- package/models/components/totals.js.map +1 -0
- package/models/components/updateprojectrequest.d.ts +12 -0
- package/models/components/updateprojectrequest.d.ts.map +1 -1
- package/models/components/updateprojectrequest.js.map +1 -1
- package/models/components/updateprojectresponse.d.ts +3 -0
- package/models/components/updateprojectresponse.d.ts.map +1 -1
- package/models/components/updateprojectresponse.js.map +1 -1
- package/models/components/updateskillrequest.d.ts +21 -0
- package/models/components/updateskillrequest.d.ts.map +1 -1
- package/models/components/updateskillrequest.js.map +1 -1
- package/models/components/updateskillresponse.d.ts +3 -0
- package/models/components/updateskillresponse.d.ts.map +1 -1
- package/models/components/updateskillresponse.js.map +1 -1
- package/models/operations/createannotation.d.ts +4 -4
- package/models/operations/createannotation.d.ts.map +1 -1
- package/models/operations/createannotation.js +5 -5
- package/models/operations/createannotation.js.map +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/createeval.js +16 -16
- package/models/operations/createidentity.js +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/index.d.ts +0 -2
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -2
- package/models/operations/index.js.map +1 -1
- package/models/operations/invokeeval.d.ts +28 -28
- package/models/operations/invokeeval.d.ts.map +1 -1
- package/models/operations/invokeeval.js +40 -40
- package/models/operations/invokeeval.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listidentities.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedback.d.ts +15 -15
- package/models/operations/postv2feedback.d.ts.map +1 -1
- package/models/operations/postv2feedback.js +15 -16
- package/models/operations/postv2feedback.js.map +1 -1
- package/models/operations/postv2feedbackevaluation.js +3 -3
- package/models/operations/postv2feedbackremove.d.ts +8 -8
- package/models/operations/postv2feedbackremove.d.ts.map +1 -1
- package/models/operations/postv2feedbackremove.js +8 -7
- package/models/operations/postv2feedbackremove.js.map +1 -1
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/projectdelete.d.ts +3 -0
- package/models/operations/projectdelete.d.ts.map +1 -1
- package/models/operations/projectdelete.js.map +1 -1
- package/models/operations/projectget.d.ts +3 -0
- package/models/operations/projectget.d.ts.map +1 -1
- package/models/operations/projectget.js.map +1 -1
- package/models/operations/projectlist.d.ts +15 -0
- package/models/operations/projectlist.d.ts.map +1 -1
- package/models/operations/projectlist.js.map +1 -1
- package/models/operations/projectupdate.d.ts +3 -0
- package/models/operations/projectupdate.d.ts.map +1 -1
- package/models/operations/projectupdate.js.map +1 -1
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrieveidentity.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/skilldelete.d.ts +3 -0
- package/models/operations/skilldelete.d.ts.map +1 -1
- package/models/operations/skilldelete.js.map +1 -1
- package/models/operations/skilllist.d.ts +12 -0
- package/models/operations/skilllist.d.ts.map +1 -1
- package/models/operations/skilllist.js.map +1 -1
- package/models/operations/skillupdate.d.ts +3 -0
- package/models/operations/skillupdate.d.ts.map +1 -1
- package/models/operations/skillupdate.js.map +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/updateeval.js +16 -16
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +8 -8
- package/sdk/feedback.d.ts +1 -1
- package/sdk/feedback.d.ts.map +1 -1
- package/sdk/feedback.js +3 -3
- package/sdk/feedback.js.map +1 -1
- package/sdk/projects.d.ts +5 -2
- package/sdk/projects.d.ts.map +1 -1
- package/sdk/projects.js +5 -2
- package/sdk/projects.js.map +1 -1
- package/sdk/reporting.d.ts +12 -0
- package/sdk/reporting.d.ts.map +1 -0
- package/sdk/reporting.js +22 -0
- package/sdk/reporting.js.map +1 -0
- package/sdk/sdk.d.ts +5 -8
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +7 -11
- package/sdk/sdk.js.map +1 -1
- package/sdk/skills.d.ts +7 -4
- package/sdk/skills.d.ts.map +1 -1
- package/sdk/skills.js +7 -4
- package/sdk/skills.js.map +1 -1
- package/src/funcs/projectsCreate.ts +1 -1
- package/src/funcs/projectsDelete.ts +3 -0
- package/src/funcs/projectsList.ts +1 -1
- package/src/funcs/{contactsCreate.ts → reportingQuery.ts} +13 -13
- package/src/funcs/skillsCreate.ts +1 -1
- package/src/funcs/skillsDelete.ts +3 -0
- package/src/funcs/skillsGet.ts +1 -1
- package/src/funcs/skillsList.ts +1 -1
- package/src/funcs/skillsUpdate.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/createprojectrequest.ts +6 -0
- package/src/models/components/createprojectresponse.ts +3 -0
- package/src/models/components/createskillrequest.ts +18 -0
- package/src/models/components/createskillresponse.ts +3 -0
- package/src/models/components/datapoint.ts +60 -0
- package/src/models/components/file.ts +0 -3
- package/src/models/components/filter.ts +137 -0
- package/src/models/components/getprojectresponse.ts +3 -0
- package/src/models/components/getskillresponse.ts +3 -0
- package/src/models/components/index.ts +6 -0
- package/src/models/components/listprojectsresponse.ts +12 -0
- package/src/models/components/listskillsresponse.ts +12 -0
- package/src/models/components/project.ts +42 -3
- package/src/models/components/queryreportrequest.ts +237 -0
- package/src/models/components/queryreportresponse.ts +96 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/responsemeta.ts +103 -0
- package/src/models/components/skill.ts +37 -3
- package/src/models/components/totals.ts +34 -0
- package/src/models/components/updateprojectrequest.ts +12 -0
- package/src/models/components/updateprojectresponse.ts +3 -0
- package/src/models/components/updateskillrequest.ts +21 -0
- package/src/models/components/updateskillresponse.ts +3 -0
- package/src/models/operations/createannotation.ts +7 -11
- 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/createeval.ts +16 -16
- package/src/models/operations/createidentity.ts +1 -1
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/index.ts +0 -2
- package/src/models/operations/invokeeval.ts +83 -80
- 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/listidentities.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedback.ts +34 -27
- package/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/src/models/operations/postv2feedbackremove.ts +14 -17
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/projectdelete.ts +3 -0
- package/src/models/operations/projectget.ts +3 -0
- package/src/models/operations/projectlist.ts +15 -0
- package/src/models/operations/projectupdate.ts +3 -0
- 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/retrieveidentity.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/skilldelete.ts +3 -0
- package/src/models/operations/skilllist.ts +12 -0
- package/src/models/operations/skillupdate.ts +3 -0
- 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/updateeval.ts +16 -16
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/feedback.ts +8 -8
- package/src/sdk/projects.ts +5 -2
- package/src/sdk/reporting.ts +27 -0
- package/src/sdk/sdk.ts +11 -17
- package/src/sdk/skills.ts +7 -4
- package/funcs/contactsCreate.d.ts +0 -17
- package/funcs/contactsCreate.d.ts.map +0 -1
- package/funcs/contactsCreate.js.map +0 -1
- package/funcs/remoteconfigsRetrieve.d.ts +0 -14
- package/funcs/remoteconfigsRetrieve.d.ts.map +0 -1
- package/funcs/remoteconfigsRetrieve.js +0 -115
- package/funcs/remoteconfigsRetrieve.js.map +0 -1
- package/models/operations/createcontact.d.ts +0 -95
- package/models/operations/createcontact.d.ts.map +0 -1
- package/models/operations/createcontact.js +0 -86
- package/models/operations/createcontact.js.map +0 -1
- package/models/operations/remoteconfigsgetconfig.d.ts +0 -67
- package/models/operations/remoteconfigsgetconfig.d.ts.map +0 -1
- package/models/operations/remoteconfigsgetconfig.js.map +0 -1
- package/sdk/contacts.d.ts +0 -12
- package/sdk/contacts.d.ts.map +0 -1
- package/sdk/contacts.js +0 -22
- package/sdk/contacts.js.map +0 -1
- package/sdk/remoteconfigs.d.ts +0 -9
- package/sdk/remoteconfigs.d.ts.map +0 -1
- package/sdk/remoteconfigs.js +0 -19
- package/sdk/remoteconfigs.js.map +0 -1
- package/src/funcs/remoteconfigsRetrieve.ts +0 -163
- package/src/models/operations/createcontact.ts +0 -156
- package/src/models/operations/remoteconfigsgetconfig.ts +0 -108
- package/src/sdk/contacts.ts +0 -27
- package/src/sdk/remoteconfigs.ts +0 -24
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listprojectsresponse.js","sourceRoot":"","sources":["../../src/models/components/listprojectsresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"listprojectsresponse.js","sourceRoot":"","sources":["../../src/models/components/listprojectsresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0CH,oEAQC;AAhDD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAGjD,6CAA8D;AAoB9D,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,kCAAqB,CAAC,CAAC,QAAQ,EAAE;IAC/C,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,UAAU,EAAE,SAAS;KACtB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,4BAA4B,CAC1C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,0CAAkC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9D,kDAAkD,CACnD,CAAC;AACJ,CAAC"}
|
|
@@ -3,8 +3,20 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
4
|
import { Skill } from "./skill.js";
|
|
5
5
|
export type ListSkillsResponse = {
|
|
6
|
+
/**
|
|
7
|
+
* Object discriminator for list responses; always `list`.
|
|
8
|
+
*/
|
|
6
9
|
object?: string | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* Page of skills, ordered newest first.
|
|
12
|
+
*/
|
|
7
13
|
data?: Array<Skill> | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* Whether more skills are available in the selected pagination
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* direction.
|
|
19
|
+
*/
|
|
8
20
|
hasMore?: boolean | undefined;
|
|
9
21
|
};
|
|
10
22
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listskillsresponse.d.ts","sourceRoot":"","sources":["../../src/models/components/listskillsresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,KAAK,EAAuB,MAAM,YAAY,CAAC;AAExD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,IAAI,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC;IAChC,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,kBAAkB,EAClB,CAAC,CAAC,UAAU,EACZ,OAAO,CASP,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
|
|
1
|
+
{"version":3,"file":"listskillsresponse.d.ts","sourceRoot":"","sources":["../../src/models/components/listskillsresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,KAAK,EAAuB,MAAM,YAAY,CAAC;AAExD,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC;IAChC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,kBAAkB,EAClB,CAAC,CAAC,UAAU,EACZ,OAAO,CASP,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listskillsresponse.js","sourceRoot":"","sources":["../../src/models/components/listskillsresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"listskillsresponse.js","sourceRoot":"","sources":["../../src/models/components/listskillsresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0CH,gEAQC;AAhDD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAGjD,yCAAwD;AAoBxD,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,8BAAmB,CAAC,CAAC,QAAQ,EAAE;IAC7C,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,UAAU,EAAE,SAAS;KACtB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,0BAA0B,CACxC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wCAAgC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC5D,gDAAgD,CACjD,CAAC;AACJ,CAAC"}
|
|
@@ -2,16 +2,57 @@ import * as z from "zod/v3";
|
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
4
|
export type Project = {
|
|
5
|
+
/**
|
|
6
|
+
* Unique project identifier assigned by ORQ. Use this value in
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* retrieve, update, and delete requests.
|
|
10
|
+
*/
|
|
5
11
|
projectId?: string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Human-readable project name.
|
|
14
|
+
*/
|
|
6
15
|
name?: string | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Stable project key generated from the name and used by internal
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
* workspace navigation.
|
|
21
|
+
*/
|
|
7
22
|
key?: string | undefined;
|
|
8
|
-
|
|
23
|
+
/**
|
|
24
|
+
* Whether the project is archived and hidden from normal active
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* project lists.
|
|
28
|
+
*/
|
|
9
29
|
isArchived?: boolean | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Whether this is the workspace default project.
|
|
32
|
+
*/
|
|
10
33
|
isDefault?: boolean | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Team identifiers associated with the project for access and
|
|
36
|
+
*
|
|
37
|
+
* @remarks
|
|
38
|
+
* organization.
|
|
39
|
+
*/
|
|
11
40
|
teams?: Array<string> | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Time when the project was created.
|
|
43
|
+
*/
|
|
12
44
|
createdAt?: Date | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Time when the project was last updated.
|
|
47
|
+
*/
|
|
13
48
|
updatedAt?: Date | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* User ID that created the project.
|
|
51
|
+
*/
|
|
14
52
|
createdById?: string | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* User ID that last updated the project.
|
|
55
|
+
*/
|
|
15
56
|
updatedById?: string | undefined;
|
|
16
57
|
};
|
|
17
58
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../src/models/components/project.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,OAAO,GAAG;IACpB,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB
|
|
1
|
+
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../src/models/components/project.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,OAAO,GAAG;IACpB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B;;;;;OAKG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAChC;;;;;OAKG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC7B;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC7B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qBAAqB,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CA0BxE,CAAC;AAEL,wBAAgB,eAAe,CAC7B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAM9C"}
|
|
@@ -46,7 +46,6 @@ exports.Project$inboundSchema = z.object({
|
|
|
46
46
|
project_id: z.string().optional(),
|
|
47
47
|
name: z.string().optional(),
|
|
48
48
|
key: z.string().optional(),
|
|
49
|
-
workspace_id: z.string().optional(),
|
|
50
49
|
is_archived: z.boolean().optional(),
|
|
51
50
|
is_default: z.boolean().optional(),
|
|
52
51
|
teams: z.array(z.string()).optional(),
|
|
@@ -57,7 +56,6 @@ exports.Project$inboundSchema = z.object({
|
|
|
57
56
|
}).transform((v) => {
|
|
58
57
|
return (0, primitives_js_1.remap)(v, {
|
|
59
58
|
"project_id": "projectId",
|
|
60
|
-
"workspace_id": "workspaceId",
|
|
61
59
|
"is_archived": "isArchived",
|
|
62
60
|
"is_default": "isDefault",
|
|
63
61
|
"created_at": "createdAt",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.js","sourceRoot":"","sources":["../../src/models/components/project.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"project.js","sourceRoot":"","sources":["../../src/models/components/project.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4FH,0CAQC;AAlGD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AA2DjD,gBAAgB;AACH,QAAA,qBAAqB,GAChC,CAAC,CAAC,MAAM,CAAC;IACP,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,WAAW,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACnC,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAClC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACrC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAC9D,IAAI,IAAI,CAAC,CAAC,CAAC,CACZ,CAAC,QAAQ,EAAE;IACZ,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAC9D,IAAI,IAAI,CAAC,CAAC,CAAC,CACZ,CAAC,QAAQ,EAAE;IACZ,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,YAAY,EAAE,WAAW;QACzB,aAAa,EAAE,YAAY;QAC3B,YAAY,EAAE,WAAW;QACzB,YAAY,EAAE,WAAW;QACzB,YAAY,EAAE,WAAW;QACzB,eAAe,EAAE,aAAa;QAC9B,eAAe,EAAE,aAAa;KAC/B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEL,SAAgB,eAAe,CAC7B,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,6BAAqB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACjD,qCAAqC,CACtC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
import { Filter, Filter$Outbound } from "./filter.js";
|
|
6
|
+
/**
|
|
7
|
+
* Catalogue metric to query.
|
|
8
|
+
*/
|
|
9
|
+
export declare const Metric: {
|
|
10
|
+
readonly GenaiRequests: "genai.requests";
|
|
11
|
+
readonly GenaiTokens: "genai.tokens";
|
|
12
|
+
readonly GenaiCost: "genai.cost";
|
|
13
|
+
readonly GenaiErrors: "genai.errors";
|
|
14
|
+
readonly GenaiLatencyP50: "genai.latency.p50";
|
|
15
|
+
readonly GenaiLatencyP95: "genai.latency.p95";
|
|
16
|
+
readonly GenaiLatencyP99: "genai.latency.p99";
|
|
17
|
+
readonly GenaiEvaluatorRuns: "genai.evaluator.runs";
|
|
18
|
+
readonly GenaiEvaluatorPassRate: "genai.evaluator.pass_rate";
|
|
19
|
+
readonly GenaiEvaluatorScoreAvg: "genai.evaluator.score.avg";
|
|
20
|
+
readonly GenaiGuardrailRuns: "genai.guardrail.runs";
|
|
21
|
+
readonly GenaiGuardrailBlockRate: "genai.guardrail.block_rate";
|
|
22
|
+
readonly GenaiGuardrailTriggered: "genai.guardrail.triggered";
|
|
23
|
+
readonly GenaiUsage: "genai.usage";
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Catalogue metric to query.
|
|
27
|
+
*/
|
|
28
|
+
export type Metric = ClosedEnum<typeof Metric>;
|
|
29
|
+
/**
|
|
30
|
+
* Requested bucket grain. Use `auto` or omit the field to let the server choose based on the requested range.
|
|
31
|
+
*/
|
|
32
|
+
export declare const Grain: {
|
|
33
|
+
readonly Auto: "auto";
|
|
34
|
+
readonly Minute: "minute";
|
|
35
|
+
readonly Hour: "hour";
|
|
36
|
+
readonly Day: "day";
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Requested bucket grain. Use `auto` or omit the field to let the server choose based on the requested range.
|
|
40
|
+
*/
|
|
41
|
+
export type Grain = ClosedEnum<typeof Grain>;
|
|
42
|
+
export declare const GroupBy: {
|
|
43
|
+
readonly Project: "project";
|
|
44
|
+
readonly Identity: "identity";
|
|
45
|
+
readonly Provider: "provider";
|
|
46
|
+
readonly Model: "model";
|
|
47
|
+
readonly Product: "product";
|
|
48
|
+
readonly ApiKey: "api_key";
|
|
49
|
+
readonly StatusCode: "status_code";
|
|
50
|
+
readonly HttpStatusCode: "http_status_code";
|
|
51
|
+
readonly CredentialType: "credential_type";
|
|
52
|
+
readonly Dimension: "dimension";
|
|
53
|
+
readonly DimensionType: "dimension_type";
|
|
54
|
+
readonly Tag: "tag";
|
|
55
|
+
readonly Agent: "agent";
|
|
56
|
+
readonly Tool: "tool";
|
|
57
|
+
readonly Deployment: "deployment";
|
|
58
|
+
readonly Evaluator: "evaluator";
|
|
59
|
+
readonly Dataset: "dataset";
|
|
60
|
+
readonly Prompt: "prompt";
|
|
61
|
+
readonly Policy: "policy";
|
|
62
|
+
readonly Conversation: "conversation";
|
|
63
|
+
readonly Thread: "thread";
|
|
64
|
+
readonly MemoryStore: "memory_store";
|
|
65
|
+
readonly Knowledge: "knowledge";
|
|
66
|
+
readonly Sheet: "sheet";
|
|
67
|
+
readonly GuardrailOrigin: "guardrail_origin";
|
|
68
|
+
readonly EvaluatorName: "evaluator_name";
|
|
69
|
+
readonly EvaluatorType: "evaluator_type";
|
|
70
|
+
readonly EvaluatorVersion: "evaluator_version";
|
|
71
|
+
readonly ResultType: "result_type";
|
|
72
|
+
readonly EvaluationStage: "evaluation_stage";
|
|
73
|
+
readonly GuardrailStage: "guardrail_stage";
|
|
74
|
+
readonly EvaluatorStage: "evaluator_stage";
|
|
75
|
+
readonly GuardrailAction: "guardrail_action";
|
|
76
|
+
readonly ResultLabel: "result_label";
|
|
77
|
+
};
|
|
78
|
+
export type GroupBy = ClosedEnum<typeof GroupBy>;
|
|
79
|
+
export type QueryReportRequest = {
|
|
80
|
+
/**
|
|
81
|
+
* Catalogue metric to query.
|
|
82
|
+
*/
|
|
83
|
+
metric: Metric;
|
|
84
|
+
/**
|
|
85
|
+
* Inclusive lower bound for the report window (RFC 3339, UTC).
|
|
86
|
+
*/
|
|
87
|
+
from: Date;
|
|
88
|
+
/**
|
|
89
|
+
* Exclusive upper bound for the report window (RFC 3339, UTC).
|
|
90
|
+
*/
|
|
91
|
+
to: Date;
|
|
92
|
+
/**
|
|
93
|
+
* Requested bucket grain. Use `auto` or omit the field to let the server choose based on the requested range.
|
|
94
|
+
*/
|
|
95
|
+
grain?: Grain | undefined;
|
|
96
|
+
/**
|
|
97
|
+
* Reporting dimensions to break down by. Valid dimensions depend on the selected metric.
|
|
98
|
+
*/
|
|
99
|
+
groupBy?: Array<GroupBy> | undefined;
|
|
100
|
+
/**
|
|
101
|
+
* Up to 20 allowlisted predicates combined with AND.
|
|
102
|
+
*/
|
|
103
|
+
filters?: Array<Filter> | undefined;
|
|
104
|
+
/**
|
|
105
|
+
* Maximum bucket rows returned. Defaults to 1000 and is capped at
|
|
106
|
+
*
|
|
107
|
+
* @remarks
|
|
108
|
+
* 5000.
|
|
109
|
+
*/
|
|
110
|
+
limit?: number | undefined;
|
|
111
|
+
/**
|
|
112
|
+
* IANA time zone applied to bucket boundaries, for example
|
|
113
|
+
*
|
|
114
|
+
* @remarks
|
|
115
|
+
* `America/New_York`. Response timestamps remain UTC. Empty means UTC.
|
|
116
|
+
*/
|
|
117
|
+
timeZone?: string | undefined;
|
|
118
|
+
/**
|
|
119
|
+
* When true, include a `totals` block aggregated across the full
|
|
120
|
+
*
|
|
121
|
+
* @remarks
|
|
122
|
+
* report window.
|
|
123
|
+
*/
|
|
124
|
+
includeTotals?: boolean | undefined;
|
|
125
|
+
};
|
|
126
|
+
/** @internal */
|
|
127
|
+
export declare const Metric$inboundSchema: z.ZodNativeEnum<typeof Metric>;
|
|
128
|
+
/** @internal */
|
|
129
|
+
export declare const Metric$outboundSchema: z.ZodNativeEnum<typeof Metric>;
|
|
130
|
+
/** @internal */
|
|
131
|
+
export declare const Grain$inboundSchema: z.ZodNativeEnum<typeof Grain>;
|
|
132
|
+
/** @internal */
|
|
133
|
+
export declare const Grain$outboundSchema: z.ZodNativeEnum<typeof Grain>;
|
|
134
|
+
/** @internal */
|
|
135
|
+
export declare const GroupBy$inboundSchema: z.ZodNativeEnum<typeof GroupBy>;
|
|
136
|
+
/** @internal */
|
|
137
|
+
export declare const GroupBy$outboundSchema: z.ZodNativeEnum<typeof GroupBy>;
|
|
138
|
+
/** @internal */
|
|
139
|
+
export declare const QueryReportRequest$inboundSchema: z.ZodType<QueryReportRequest, z.ZodTypeDef, unknown>;
|
|
140
|
+
/** @internal */
|
|
141
|
+
export type QueryReportRequest$Outbound = {
|
|
142
|
+
metric: string;
|
|
143
|
+
from: string;
|
|
144
|
+
to: string;
|
|
145
|
+
grain?: string | undefined;
|
|
146
|
+
group_by?: Array<string> | undefined;
|
|
147
|
+
filters?: Array<Filter$Outbound> | undefined;
|
|
148
|
+
limit?: number | undefined;
|
|
149
|
+
time_zone?: string | undefined;
|
|
150
|
+
include_totals?: boolean | undefined;
|
|
151
|
+
};
|
|
152
|
+
/** @internal */
|
|
153
|
+
export declare const QueryReportRequest$outboundSchema: z.ZodType<QueryReportRequest$Outbound, z.ZodTypeDef, QueryReportRequest>;
|
|
154
|
+
export declare function queryReportRequestToJSON(queryReportRequest: QueryReportRequest): string;
|
|
155
|
+
export declare function queryReportRequestFromJSON(jsonString: string): SafeParseResult<QueryReportRequest, SDKValidationError>;
|
|
156
|
+
//# sourceMappingURL=queryreportrequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queryreportrequest.d.ts","sourceRoot":"","sources":["../../src/models/components/queryreportrequest.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.QueryReportRequest$outboundSchema = exports.QueryReportRequest$inboundSchema = exports.GroupBy$outboundSchema = exports.GroupBy$inboundSchema = exports.Grain$outboundSchema = exports.Grain$inboundSchema = exports.Metric$outboundSchema = exports.Metric$inboundSchema = exports.GroupBy = exports.Grain = exports.Metric = void 0;
|
|
40
|
+
exports.queryReportRequestToJSON = queryReportRequestToJSON;
|
|
41
|
+
exports.queryReportRequestFromJSON = queryReportRequestFromJSON;
|
|
42
|
+
const z = __importStar(require("zod/v3"));
|
|
43
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
44
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
45
|
+
const filter_js_1 = require("./filter.js");
|
|
46
|
+
/**
|
|
47
|
+
* Catalogue metric to query.
|
|
48
|
+
*/
|
|
49
|
+
exports.Metric = {
|
|
50
|
+
GenaiRequests: "genai.requests",
|
|
51
|
+
GenaiTokens: "genai.tokens",
|
|
52
|
+
GenaiCost: "genai.cost",
|
|
53
|
+
GenaiErrors: "genai.errors",
|
|
54
|
+
GenaiLatencyP50: "genai.latency.p50",
|
|
55
|
+
GenaiLatencyP95: "genai.latency.p95",
|
|
56
|
+
GenaiLatencyP99: "genai.latency.p99",
|
|
57
|
+
GenaiEvaluatorRuns: "genai.evaluator.runs",
|
|
58
|
+
GenaiEvaluatorPassRate: "genai.evaluator.pass_rate",
|
|
59
|
+
GenaiEvaluatorScoreAvg: "genai.evaluator.score.avg",
|
|
60
|
+
GenaiGuardrailRuns: "genai.guardrail.runs",
|
|
61
|
+
GenaiGuardrailBlockRate: "genai.guardrail.block_rate",
|
|
62
|
+
GenaiGuardrailTriggered: "genai.guardrail.triggered",
|
|
63
|
+
GenaiUsage: "genai.usage",
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Requested bucket grain. Use `auto` or omit the field to let the server choose based on the requested range.
|
|
67
|
+
*/
|
|
68
|
+
exports.Grain = {
|
|
69
|
+
Auto: "auto",
|
|
70
|
+
Minute: "minute",
|
|
71
|
+
Hour: "hour",
|
|
72
|
+
Day: "day",
|
|
73
|
+
};
|
|
74
|
+
exports.GroupBy = {
|
|
75
|
+
Project: "project",
|
|
76
|
+
Identity: "identity",
|
|
77
|
+
Provider: "provider",
|
|
78
|
+
Model: "model",
|
|
79
|
+
Product: "product",
|
|
80
|
+
ApiKey: "api_key",
|
|
81
|
+
StatusCode: "status_code",
|
|
82
|
+
HttpStatusCode: "http_status_code",
|
|
83
|
+
CredentialType: "credential_type",
|
|
84
|
+
Dimension: "dimension",
|
|
85
|
+
DimensionType: "dimension_type",
|
|
86
|
+
Tag: "tag",
|
|
87
|
+
Agent: "agent",
|
|
88
|
+
Tool: "tool",
|
|
89
|
+
Deployment: "deployment",
|
|
90
|
+
Evaluator: "evaluator",
|
|
91
|
+
Dataset: "dataset",
|
|
92
|
+
Prompt: "prompt",
|
|
93
|
+
Policy: "policy",
|
|
94
|
+
Conversation: "conversation",
|
|
95
|
+
Thread: "thread",
|
|
96
|
+
MemoryStore: "memory_store",
|
|
97
|
+
Knowledge: "knowledge",
|
|
98
|
+
Sheet: "sheet",
|
|
99
|
+
GuardrailOrigin: "guardrail_origin",
|
|
100
|
+
EvaluatorName: "evaluator_name",
|
|
101
|
+
EvaluatorType: "evaluator_type",
|
|
102
|
+
EvaluatorVersion: "evaluator_version",
|
|
103
|
+
ResultType: "result_type",
|
|
104
|
+
EvaluationStage: "evaluation_stage",
|
|
105
|
+
GuardrailStage: "guardrail_stage",
|
|
106
|
+
EvaluatorStage: "evaluator_stage",
|
|
107
|
+
GuardrailAction: "guardrail_action",
|
|
108
|
+
ResultLabel: "result_label",
|
|
109
|
+
};
|
|
110
|
+
/** @internal */
|
|
111
|
+
exports.Metric$inboundSchema = z
|
|
112
|
+
.nativeEnum(exports.Metric);
|
|
113
|
+
/** @internal */
|
|
114
|
+
exports.Metric$outboundSchema = exports.Metric$inboundSchema;
|
|
115
|
+
/** @internal */
|
|
116
|
+
exports.Grain$inboundSchema = z.nativeEnum(exports.Grain);
|
|
117
|
+
/** @internal */
|
|
118
|
+
exports.Grain$outboundSchema = exports.Grain$inboundSchema;
|
|
119
|
+
/** @internal */
|
|
120
|
+
exports.GroupBy$inboundSchema = z
|
|
121
|
+
.nativeEnum(exports.GroupBy);
|
|
122
|
+
/** @internal */
|
|
123
|
+
exports.GroupBy$outboundSchema = exports.GroupBy$inboundSchema;
|
|
124
|
+
/** @internal */
|
|
125
|
+
exports.QueryReportRequest$inboundSchema = z.object({
|
|
126
|
+
metric: exports.Metric$inboundSchema,
|
|
127
|
+
from: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
128
|
+
to: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
129
|
+
grain: exports.Grain$inboundSchema.optional(),
|
|
130
|
+
group_by: z.array(exports.GroupBy$inboundSchema).optional(),
|
|
131
|
+
filters: z.array(filter_js_1.Filter$inboundSchema).optional(),
|
|
132
|
+
limit: z.number().int().optional(),
|
|
133
|
+
time_zone: z.string().optional(),
|
|
134
|
+
include_totals: z.boolean().optional(),
|
|
135
|
+
}).transform((v) => {
|
|
136
|
+
return (0, primitives_js_1.remap)(v, {
|
|
137
|
+
"group_by": "groupBy",
|
|
138
|
+
"time_zone": "timeZone",
|
|
139
|
+
"include_totals": "includeTotals",
|
|
140
|
+
});
|
|
141
|
+
});
|
|
142
|
+
/** @internal */
|
|
143
|
+
exports.QueryReportRequest$outboundSchema = z.object({
|
|
144
|
+
metric: exports.Metric$outboundSchema,
|
|
145
|
+
from: z.date().transform(v => v.toISOString()),
|
|
146
|
+
to: z.date().transform(v => v.toISOString()),
|
|
147
|
+
grain: exports.Grain$outboundSchema.optional(),
|
|
148
|
+
groupBy: z.array(exports.GroupBy$outboundSchema).optional(),
|
|
149
|
+
filters: z.array(filter_js_1.Filter$outboundSchema).optional(),
|
|
150
|
+
limit: z.number().int().optional(),
|
|
151
|
+
timeZone: z.string().optional(),
|
|
152
|
+
includeTotals: z.boolean().optional(),
|
|
153
|
+
}).transform((v) => {
|
|
154
|
+
return (0, primitives_js_1.remap)(v, {
|
|
155
|
+
groupBy: "group_by",
|
|
156
|
+
timeZone: "time_zone",
|
|
157
|
+
includeTotals: "include_totals",
|
|
158
|
+
});
|
|
159
|
+
});
|
|
160
|
+
function queryReportRequestToJSON(queryReportRequest) {
|
|
161
|
+
return JSON.stringify(exports.QueryReportRequest$outboundSchema.parse(queryReportRequest));
|
|
162
|
+
}
|
|
163
|
+
function queryReportRequestFromJSON(jsonString) {
|
|
164
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.QueryReportRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'QueryReportRequest' from JSON`);
|
|
165
|
+
}
|
|
166
|
+
//# sourceMappingURL=queryreportrequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queryreportrequest.js","sourceRoot":"","sources":["../../src/models/components/queryreportrequest.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
import { DataPoint } from "./datapoint.js";
|
|
6
|
+
import { QueryReportRequest } from "./queryreportrequest.js";
|
|
7
|
+
import { ResponseMeta } from "./responsemeta.js";
|
|
8
|
+
import { Totals } from "./totals.js";
|
|
9
|
+
/**
|
|
10
|
+
* Object discriminator for typed SDKs and JSON parsers; always `report`.
|
|
11
|
+
*/
|
|
12
|
+
export declare const ObjectT: {
|
|
13
|
+
readonly Report: "report";
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Object discriminator for typed SDKs and JSON parsers; always `report`.
|
|
17
|
+
*/
|
|
18
|
+
export type ObjectT = ClosedEnum<typeof ObjectT>;
|
|
19
|
+
export type QueryReportResponse = {
|
|
20
|
+
/**
|
|
21
|
+
* Object discriminator for typed SDKs and JSON parsers; always `report`.
|
|
22
|
+
*/
|
|
23
|
+
object?: ObjectT | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* The request that produced this response, parroted back so caller
|
|
26
|
+
*
|
|
27
|
+
* @remarks
|
|
28
|
+
* code never has to remember its own payload to interpret the result.
|
|
29
|
+
*/
|
|
30
|
+
request?: QueryReportRequest | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Time-ordered buckets.
|
|
33
|
+
*/
|
|
34
|
+
data?: Array<DataPoint> | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Totals across the whole window. Present only when
|
|
37
|
+
*
|
|
38
|
+
* @remarks
|
|
39
|
+
* `include_totals=true` on the request.
|
|
40
|
+
*/
|
|
41
|
+
totals?: Totals | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Pagination contract. Always populated; currently false because the
|
|
44
|
+
*
|
|
45
|
+
* @remarks
|
|
46
|
+
* server caps the response at `limit` instead of issuing cursors.
|
|
47
|
+
*/
|
|
48
|
+
hasMore?: boolean | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Diagnostic metadata.
|
|
51
|
+
*/
|
|
52
|
+
meta?: ResponseMeta | undefined;
|
|
53
|
+
};
|
|
54
|
+
/** @internal */
|
|
55
|
+
export declare const ObjectT$inboundSchema: z.ZodNativeEnum<typeof ObjectT>;
|
|
56
|
+
/** @internal */
|
|
57
|
+
export declare const QueryReportResponse$inboundSchema: z.ZodType<QueryReportResponse, z.ZodTypeDef, unknown>;
|
|
58
|
+
export declare function queryReportResponseFromJSON(jsonString: string): SafeParseResult<QueryReportResponse, SDKValidationError>;
|
|
59
|
+
//# sourceMappingURL=queryreportresponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queryreportresponse.d.ts","sourceRoot":"","sources":["../../src/models/components/queryreportresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,SAAS,EAA2B,MAAM,gBAAgB,CAAC;AACpE,OAAO,EACL,kBAAkB,EAEnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,YAAY,EAA8B,MAAM,mBAAmB,CAAC;AAC7E,OAAO,EAAE,MAAM,EAAwB,MAAM,aAAa,CAAC;AAE3D;;GAEG;AACH,eAAO,MAAM,OAAO;;CAEV,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC;AAEjD,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B;;;;;OAKG;IACH,OAAO,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;IACzC;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC;IACpC;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,IAAI,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;CACjC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qBAAqB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,OAAO,CAC5C,CAAC;AAEvB,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,mBAAmB,EACnB,CAAC,CAAC,UAAU,EACZ,OAAO,CAYP,CAAC;AAEH,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAM1D"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.QueryReportResponse$inboundSchema = exports.ObjectT$inboundSchema = exports.ObjectT = void 0;
|
|
40
|
+
exports.queryReportResponseFromJSON = queryReportResponseFromJSON;
|
|
41
|
+
const z = __importStar(require("zod/v3"));
|
|
42
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
43
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
const datapoint_js_1 = require("./datapoint.js");
|
|
45
|
+
const queryreportrequest_js_1 = require("./queryreportrequest.js");
|
|
46
|
+
const responsemeta_js_1 = require("./responsemeta.js");
|
|
47
|
+
const totals_js_1 = require("./totals.js");
|
|
48
|
+
/**
|
|
49
|
+
* Object discriminator for typed SDKs and JSON parsers; always `report`.
|
|
50
|
+
*/
|
|
51
|
+
exports.ObjectT = {
|
|
52
|
+
Report: "report",
|
|
53
|
+
};
|
|
54
|
+
/** @internal */
|
|
55
|
+
exports.ObjectT$inboundSchema = z
|
|
56
|
+
.nativeEnum(exports.ObjectT);
|
|
57
|
+
/** @internal */
|
|
58
|
+
exports.QueryReportResponse$inboundSchema = z.object({
|
|
59
|
+
object: exports.ObjectT$inboundSchema.optional(),
|
|
60
|
+
request: queryreportrequest_js_1.QueryReportRequest$inboundSchema.optional(),
|
|
61
|
+
data: z.array(datapoint_js_1.DataPoint$inboundSchema).optional(),
|
|
62
|
+
totals: totals_js_1.Totals$inboundSchema.optional(),
|
|
63
|
+
has_more: z.boolean().optional(),
|
|
64
|
+
meta: responsemeta_js_1.ResponseMeta$inboundSchema.optional(),
|
|
65
|
+
}).transform((v) => {
|
|
66
|
+
return (0, primitives_js_1.remap)(v, {
|
|
67
|
+
"has_more": "hasMore",
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
function queryReportResponseFromJSON(jsonString) {
|
|
71
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.QueryReportResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'QueryReportResponse' from JSON`);
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=queryreportresponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queryreportresponse.js","sourceRoot":"","sources":["../../src/models/components/queryreportresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqFH,kEAQC;AA3FD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAIjD,iDAAoE;AACpE,mEAGiC;AACjC,uDAA6E;AAC7E,2CAA2D;AAE3D;;GAEG;AACU,QAAA,OAAO,GAAG;IACrB,MAAM,EAAE,QAAQ;CACR,CAAC;AA0CX,gBAAgB;AACH,QAAA,qBAAqB,GAAoC,CAAC;KACpE,UAAU,CAAC,eAAO,CAAC,CAAC;AAEvB,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,6BAAqB,CAAC,QAAQ,EAAE;IACxC,OAAO,EAAE,wDAAgC,CAAC,QAAQ,EAAE;IACpD,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,sCAAuB,CAAC,CAAC,QAAQ,EAAE;IACjD,MAAM,EAAE,gCAAoB,CAAC,QAAQ,EAAE;IACvC,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAChC,IAAI,EAAE,4CAA0B,CAAC,QAAQ,EAAE;CAC5C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,UAAU,EAAE,SAAS;KACtB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,2BAA2B,CACzC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yCAAiC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC7D,iDAAiD,CAClD,CAAC;AACJ,CAAC"}
|
|
@@ -43,7 +43,7 @@ const primitives_js_1 = require("../../lib/primitives.js");
|
|
|
43
43
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
44
|
/** @internal */
|
|
45
45
|
exports.ReasoningPart$inboundSchema = z.object({
|
|
46
|
-
_id: z.string().default("
|
|
46
|
+
_id: z.string().default("reasoning_01krnnjmy9vg7aqp7ejm5wy2e5"),
|
|
47
47
|
metadata: z.record(z.any()).optional(),
|
|
48
48
|
kind: z.literal("reasoning"),
|
|
49
49
|
reasoning: z.string(),
|