@orq-ai/node 4.9.4 → 4.9.6

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.
Files changed (176) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +2 -2
  3. package/lib/config.js +2 -2
  4. package/models/components/reasoningpart.js +1 -1
  5. package/models/operations/createcontact.js +1 -1
  6. package/models/operations/createdataset.js +1 -1
  7. package/models/operations/createdatasetitem.js +4 -4
  8. package/models/operations/createdatasource.js +1 -1
  9. package/models/operations/createeval.js +16 -16
  10. package/models/operations/createidentity.js +1 -1
  11. package/models/operations/createtool.js +6 -6
  12. package/models/operations/getalltools.js +6 -6
  13. package/models/operations/getevals.js +16 -16
  14. package/models/operations/getv2humanevalsets.js +2 -2
  15. package/models/operations/getv2humanevalsetsid.js +2 -2
  16. package/models/operations/listdatasetdatapoints.js +4 -4
  17. package/models/operations/listdatasets.js +1 -1
  18. package/models/operations/listdatasources.js +1 -1
  19. package/models/operations/listidentities.js +1 -1
  20. package/models/operations/patchv2humanevalsetsid.js +2 -2
  21. package/models/operations/postv2feedbackevaluation.js +3 -3
  22. package/models/operations/postv2humanevalsets.js +2 -2
  23. package/models/operations/retrievedatapoint.js +4 -4
  24. package/models/operations/retrievedataset.js +1 -1
  25. package/models/operations/retrievedatasource.js +1 -1
  26. package/models/operations/retrieveidentity.js +1 -1
  27. package/models/operations/retrievetool.js +6 -6
  28. package/models/operations/runagent.js +1 -1
  29. package/models/operations/streamrunagent.js +1 -1
  30. package/models/operations/updatedatapoint.js +4 -4
  31. package/models/operations/updatedataset.js +1 -1
  32. package/models/operations/updatedatasource.js +1 -1
  33. package/models/operations/updateeval.js +16 -16
  34. package/models/operations/updateidentity.js +1 -1
  35. package/models/operations/updatetool.js +7 -7
  36. package/package.json +5 -5
  37. package/packages/orq-rc/src/funcs/identitiesCreate.ts +10 -15
  38. package/packages/orq-rc/src/funcs/identitiesDelete.ts +7 -16
  39. package/packages/orq-rc/src/funcs/identitiesList.ts +6 -5
  40. package/packages/orq-rc/src/funcs/identitiesRetrieve.ts +6 -18
  41. package/packages/orq-rc/src/funcs/identitiesUpdate.ts +9 -15
  42. package/packages/orq-rc/src/funcs/projectsCreate.ts +1 -1
  43. package/packages/orq-rc/src/funcs/projectsDelete.ts +3 -0
  44. package/packages/orq-rc/src/funcs/projectsList.ts +1 -1
  45. package/packages/orq-rc/src/funcs/{contactsCreate.ts → reportingQuery.ts} +13 -13
  46. package/packages/orq-rc/src/funcs/skillsCreate.ts +1 -1
  47. package/packages/orq-rc/src/funcs/skillsDelete.ts +3 -0
  48. package/packages/orq-rc/src/funcs/skillsGet.ts +1 -1
  49. package/packages/orq-rc/src/funcs/skillsList.ts +1 -1
  50. package/packages/orq-rc/src/funcs/skillsUpdate.ts +1 -1
  51. package/packages/orq-rc/src/lib/config.ts +2 -2
  52. package/packages/orq-rc/src/models/components/createidentityrequest.ts +76 -0
  53. package/packages/orq-rc/src/models/components/createidentityresponse.ts +32 -0
  54. package/packages/orq-rc/src/models/components/createprojectrequest.ts +6 -0
  55. package/packages/orq-rc/src/models/components/createprojectresponse.ts +3 -0
  56. package/packages/orq-rc/src/models/components/createskillrequest.ts +18 -0
  57. package/packages/orq-rc/src/models/components/createskillresponse.ts +3 -0
  58. package/packages/orq-rc/src/models/components/datapoint.ts +60 -0
  59. package/packages/orq-rc/src/models/components/deleteidentityresponse.ts +27 -0
  60. package/packages/orq-rc/src/models/components/file.ts +0 -3
  61. package/packages/orq-rc/src/models/components/filter.ts +137 -0
  62. package/packages/orq-rc/src/models/components/getprojectresponse.ts +3 -0
  63. package/packages/orq-rc/src/models/components/getskillresponse.ts +3 -0
  64. package/packages/orq-rc/src/models/components/identity.ts +83 -0
  65. package/packages/orq-rc/src/models/components/identitymetrics.ts +45 -0
  66. package/packages/orq-rc/src/models/components/index.ts +15 -0
  67. package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +17 -10
  68. package/packages/orq-rc/src/models/components/listidentitiesresponse.ts +41 -0
  69. package/packages/orq-rc/src/models/components/listprojectsresponse.ts +12 -0
  70. package/packages/orq-rc/src/models/components/listskillsresponse.ts +12 -0
  71. package/packages/orq-rc/src/models/components/project.ts +42 -3
  72. package/packages/orq-rc/src/models/components/queryreportrequest.ts +237 -0
  73. package/packages/orq-rc/src/models/components/queryreportresponse.ts +96 -0
  74. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  75. package/packages/orq-rc/src/models/components/responsemeta.ts +103 -0
  76. package/packages/orq-rc/src/models/components/retrieveidentityresponse.ts +32 -0
  77. package/packages/orq-rc/src/models/components/skill.ts +37 -3
  78. package/packages/orq-rc/src/models/components/totals.ts +34 -0
  79. package/packages/orq-rc/src/models/components/updateidentityrequest.ts +75 -0
  80. package/packages/orq-rc/src/models/components/updateidentityresponse.ts +32 -0
  81. package/packages/orq-rc/src/models/components/updateprojectrequest.ts +12 -0
  82. package/packages/orq-rc/src/models/components/updateprojectresponse.ts +3 -0
  83. package/packages/orq-rc/src/models/components/updateskillrequest.ts +21 -0
  84. package/packages/orq-rc/src/models/components/updateskillresponse.ts +3 -0
  85. package/packages/orq-rc/src/models/errors/index.ts +0 -3
  86. package/packages/orq-rc/src/models/operations/createannotation.ts +7 -11
  87. package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
  88. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
  89. package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
  90. package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
  91. package/packages/orq-rc/src/models/operations/createtool.ts +6 -6
  92. package/packages/orq-rc/src/models/operations/deleteidentity.ts +0 -3
  93. package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
  94. package/packages/orq-rc/src/models/operations/getevals.ts +16 -16
  95. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
  96. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  97. package/packages/orq-rc/src/models/operations/index.ts +0 -3
  98. package/packages/orq-rc/src/models/operations/invokeeval.ts +83 -80
  99. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
  100. package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
  101. package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
  102. package/packages/orq-rc/src/models/operations/listidentities.ts +9 -230
  103. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  104. package/packages/orq-rc/src/models/operations/postv2agentsa2a.ts +14 -17
  105. package/packages/orq-rc/src/models/operations/postv2feedback.ts +34 -27
  106. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +3 -3
  107. package/packages/orq-rc/src/models/operations/postv2feedbackremove.ts +14 -17
  108. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  109. package/packages/orq-rc/src/models/operations/projectdelete.ts +3 -0
  110. package/packages/orq-rc/src/models/operations/projectget.ts +3 -0
  111. package/packages/orq-rc/src/models/operations/projectlist.ts +15 -0
  112. package/packages/orq-rc/src/models/operations/projectupdate.ts +3 -0
  113. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
  114. package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
  115. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
  116. package/packages/orq-rc/src/models/operations/retrieveidentity.ts +3 -138
  117. package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
  118. package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
  119. package/packages/orq-rc/src/models/operations/skilldelete.ts +3 -0
  120. package/packages/orq-rc/src/models/operations/skilllist.ts +12 -0
  121. package/packages/orq-rc/src/models/operations/skillupdate.ts +3 -0
  122. package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
  123. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
  124. package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
  125. package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
  126. package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
  127. package/packages/orq-rc/src/models/operations/updateidentity.ts +5 -154
  128. package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
  129. package/packages/orq-rc/src/sdk/feedback.ts +8 -8
  130. package/packages/orq-rc/src/sdk/identities.ts +18 -17
  131. package/packages/orq-rc/src/sdk/projects.ts +5 -2
  132. package/packages/orq-rc/src/sdk/reporting.ts +27 -0
  133. package/packages/orq-rc/src/sdk/sdk.ts +16 -22
  134. package/packages/orq-rc/src/sdk/skills.ts +7 -4
  135. package/src/lib/config.ts +2 -2
  136. package/src/models/components/reasoningpart.ts +1 -1
  137. package/src/models/operations/createcontact.ts +1 -1
  138. package/src/models/operations/createdataset.ts +1 -1
  139. package/src/models/operations/createdatasetitem.ts +4 -4
  140. package/src/models/operations/createdatasource.ts +1 -1
  141. package/src/models/operations/createeval.ts +16 -16
  142. package/src/models/operations/createidentity.ts +1 -1
  143. package/src/models/operations/createtool.ts +6 -6
  144. package/src/models/operations/getalltools.ts +6 -6
  145. package/src/models/operations/getevals.ts +16 -16
  146. package/src/models/operations/getv2humanevalsets.ts +2 -2
  147. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  148. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  149. package/src/models/operations/listdatasets.ts +1 -1
  150. package/src/models/operations/listdatasources.ts +1 -1
  151. package/src/models/operations/listidentities.ts +1 -1
  152. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  153. package/src/models/operations/postv2feedbackevaluation.ts +3 -3
  154. package/src/models/operations/postv2humanevalsets.ts +2 -2
  155. package/src/models/operations/retrievedatapoint.ts +4 -4
  156. package/src/models/operations/retrievedataset.ts +1 -1
  157. package/src/models/operations/retrievedatasource.ts +1 -1
  158. package/src/models/operations/retrieveidentity.ts +1 -1
  159. package/src/models/operations/retrievetool.ts +6 -6
  160. package/src/models/operations/runagent.ts +1 -1
  161. package/src/models/operations/streamrunagent.ts +1 -1
  162. package/src/models/operations/updatedatapoint.ts +4 -4
  163. package/src/models/operations/updatedataset.ts +1 -1
  164. package/src/models/operations/updatedatasource.ts +1 -1
  165. package/src/models/operations/updateeval.ts +16 -16
  166. package/src/models/operations/updateidentity.ts +1 -1
  167. package/src/models/operations/updatetool.ts +7 -7
  168. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -163
  169. package/packages/orq-rc/src/models/errors/deleteidentity.ts +0 -62
  170. package/packages/orq-rc/src/models/errors/retrieveidentity.ts +0 -118
  171. package/packages/orq-rc/src/models/errors/updateidentity.ts +0 -54
  172. package/packages/orq-rc/src/models/operations/createcontact.ts +0 -156
  173. package/packages/orq-rc/src/models/operations/createidentity.ts +0 -162
  174. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -108
  175. package/packages/orq-rc/src/sdk/contacts.ts +0 -27
  176. package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
@@ -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("01KRMVC5R5Z1JMMJS4F50FS6PB"),
1475
+ id: z.string().default("01KRWQHHRT6T21RWYF5D1E77PS"),
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("tool_01KRMVC5QWF44VPM55FC566PTG"),
2196
+ _id: z.string().default("tool_01KRWQHHRN89ET5EPKQ9EA8NYF"),
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("01KRMVC5QVH0Q5HD1QB6DYH05H"),
2299
+ id: z.string().default("01KRWQHHRM8Q1Z3FHCFNJ9C918"),
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("tool_01KRMVC5QTASN8A8V71AR8PDGJ"),
2357
+ _id: z.string().default("tool_01KRWQHHRKN0BJKGX95XFG2WBM"),
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("tool_01KRMVC5QQWZXDCAK4Q06MFEVC"),
2546
+ _id: z.string().default("tool_01KRWQHHRJZGTBNV71QF2Q44WX"),
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("tool_01KRMVC5QNZQTFD6ND7GH55S5T"),
2641
+ _id: z.string().default("tool_01KRWQHHRHE2DK6H42YA271WZA"),
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("tool_01KRMVC5QKSEWQCN80SV4QRCJ5"),
2744
+ _id: z.string().default("tool_01KRWQHHRFXS9AFM3JYB1PRGW6"),
2745
2745
  path: z.string(),
2746
2746
  key: z.string(),
2747
2747
  display_name: z.string().optional(),
@@ -9,22 +9,22 @@ import * as operations from "../models/operations/index.js";
9
9
  import { unwrapAsync } from "../types/fp.js";
10
10
 
11
11
  export class Feedback extends ClientSDK {
12
- async postV2Feedback(
13
- request?: operations.PostV2FeedbackRequestBody | undefined,
12
+ async postV2FeedbackRemove(
13
+ request?: operations.PostV2FeedbackRemoveRequestBody | undefined,
14
14
  options?: RequestOptions,
15
- ): Promise<operations.PostV2FeedbackResponseBody> {
16
- return unwrapAsync(feedbackPostV2Feedback(
15
+ ): Promise<operations.PostV2FeedbackRemoveResponseBody> {
16
+ return unwrapAsync(feedbackPostV2FeedbackRemove(
17
17
  this,
18
18
  request,
19
19
  options,
20
20
  ));
21
21
  }
22
22
 
23
- async postV2FeedbackRemove(
24
- request?: operations.PostV2FeedbackRemoveRequestBody | undefined,
23
+ async postV2Feedback(
24
+ request?: operations.PostV2FeedbackRequestBody | undefined,
25
25
  options?: RequestOptions,
26
- ): Promise<operations.PostV2FeedbackRemoveResponseBody> {
27
- return unwrapAsync(feedbackPostV2FeedbackRemove(
26
+ ): Promise<operations.PostV2FeedbackResponseBody> {
27
+ return unwrapAsync(feedbackPostV2Feedback(
28
28
  this,
29
29
  request,
30
30
  options,
@@ -8,6 +8,7 @@ import { identitiesList } from "../funcs/identitiesList.js";
8
8
  import { identitiesRetrieve } from "../funcs/identitiesRetrieve.js";
9
9
  import { identitiesUpdate } from "../funcs/identitiesUpdate.js";
10
10
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
11
+ import * as components from "../models/components/index.js";
11
12
  import * as operations from "../models/operations/index.js";
12
13
  import { unwrapAsync } from "../types/fp.js";
13
14
 
@@ -21,7 +22,7 @@ export class Identities extends ClientSDK {
21
22
  async list(
22
23
  request?: operations.ListIdentitiesRequest | undefined,
23
24
  options?: RequestOptions,
24
- ): Promise<operations.ListIdentitiesResponseBody> {
25
+ ): Promise<components.ListIdentitiesResponse> {
25
26
  return unwrapAsync(identitiesList(
26
27
  this,
27
28
  request,
@@ -33,12 +34,12 @@ export class Identities extends ClientSDK {
33
34
  * Create an identity
34
35
  *
35
36
  * @remarks
36
- * Creates a new identity with a unique external_id. If an identity with the same external_id already exists, the operation will fail. Use this endpoint to add users from your system to orq.ai for tracking their usage and engagement.
37
+ * Creates a new identity with a unique external_id. If an identity with the same external_id already exists, the operation will fail.
37
38
  */
38
39
  async create(
39
- request?: operations.CreateIdentityRequestBody | undefined,
40
+ request: components.CreateIdentityRequest,
40
41
  options?: RequestOptions,
41
- ): Promise<operations.CreateIdentityResponseBody> {
42
+ ): Promise<components.CreateIdentityResponse> {
42
43
  return unwrapAsync(identitiesCreate(
43
44
  this,
44
45
  request,
@@ -55,7 +56,7 @@ export class Identities extends ClientSDK {
55
56
  async retrieve(
56
57
  request: operations.RetrieveIdentityRequest,
57
58
  options?: RequestOptions,
58
- ): Promise<operations.RetrieveIdentityResponseBody> {
59
+ ): Promise<components.RetrieveIdentityResponse> {
59
60
  return unwrapAsync(identitiesRetrieve(
60
61
  this,
61
62
  request,
@@ -64,16 +65,16 @@ export class Identities extends ClientSDK {
64
65
  }
65
66
 
66
67
  /**
67
- * Update an identity
68
+ * Delete an identity
68
69
  *
69
70
  * @remarks
70
- * Updates specific fields of an existing identity. Only the fields provided in the request body will be updated.
71
+ * Permanently deletes an identity from your workspace and cleans up associated budget configurations.
71
72
  */
72
- async update(
73
- request: operations.UpdateIdentityRequest,
73
+ async delete(
74
+ request: operations.DeleteIdentityRequest,
74
75
  options?: RequestOptions,
75
- ): Promise<operations.UpdateIdentityResponseBody> {
76
- return unwrapAsync(identitiesUpdate(
76
+ ): Promise<components.DeleteIdentityResponse> {
77
+ return unwrapAsync(identitiesDelete(
77
78
  this,
78
79
  request,
79
80
  options,
@@ -81,16 +82,16 @@ export class Identities extends ClientSDK {
81
82
  }
82
83
 
83
84
  /**
84
- * Delete an identity
85
+ * Update an identity
85
86
  *
86
87
  * @remarks
87
- * Permanently deletes an identity from your workspace and cleans up associated budget configurations. This action cannot be undone.
88
+ * Updates specific fields of an existing identity. Only the fields provided in the request body will be updated.
88
89
  */
89
- async delete(
90
- request: operations.DeleteIdentityRequest,
90
+ async update(
91
+ request: operations.UpdateIdentityRequest,
91
92
  options?: RequestOptions,
92
- ): Promise<void> {
93
- return unwrapAsync(identitiesDelete(
93
+ ): Promise<components.UpdateIdentityResponse> {
94
+ return unwrapAsync(identitiesUpdate(
94
95
  this,
95
96
  request,
96
97
  options,
@@ -17,7 +17,7 @@ export class Projects extends ClientSDK {
17
17
  * List all projects
18
18
  *
19
19
  * @remarks
20
- * Returns a list of projects. Projects are sorted by creation date, with the most recently created projects appearing first.
20
+ * Returns projects visible to the current workspace, ordered by creation time with the newest project first. Use `starting_after` or `ending_before` to page through large collections.
21
21
  */
22
22
  async list(
23
23
  request?: operations.ProjectListRequest | undefined,
@@ -34,7 +34,7 @@ export class Projects extends ClientSDK {
34
34
  * Create a new project
35
35
  *
36
36
  * @remarks
37
- * Creates a new project within the workspace. Projects organize resources like skills, deployments, and datasets.
37
+ * Creates a project in the current workspace. Projects are workspace-level containers for resources such as skills, deployments, datasets, rules, and related team access.
38
38
  */
39
39
  async create(
40
40
  request: components.CreateProjectRequest,
@@ -66,6 +66,9 @@ export class Projects extends ClientSDK {
66
66
 
67
67
  /**
68
68
  * Delete a project
69
+ *
70
+ * @remarks
71
+ * Deletes a project from the workspace. The response body is empty when the delete succeeds.
69
72
  */
70
73
  async delete(
71
74
  request: operations.ProjectDeleteRequest,
@@ -0,0 +1,27 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { reportingQuery } from "../funcs/reportingQuery.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 Reporting extends ClientSDK {
11
+ /**
12
+ * Query reporting metrics
13
+ *
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.
16
+ */
17
+ async query(
18
+ request: components.QueryReportRequest,
19
+ options?: RequestOptions,
20
+ ): Promise<components.QueryReportResponse> {
21
+ return unwrapAsync(reportingQuery(
22
+ this,
23
+ request,
24
+ options,
25
+ ));
26
+ }
27
+ }
@@ -10,7 +10,6 @@ import { unwrapAsync } from "../types/fp.js";
10
10
  import { Agents } from "./agents.js";
11
11
  import { Annotations } from "./annotations.js";
12
12
  import { Chunking } from "./chunking.js";
13
- import { Contacts } from "./contacts.js";
14
13
  import { Datasets } from "./datasets.js";
15
14
  import { Deployments } from "./deployments.js";
16
15
  import { Evals } from "./evals.js";
@@ -24,7 +23,7 @@ import { MemoryStores } from "./memorystores.js";
24
23
  import { Policies } from "./policies.js";
25
24
  import { Projects } from "./projects.js";
26
25
  import { Prompts } from "./prompts.js";
27
- import { Remoteconfigs } from "./remoteconfigs.js";
26
+ import { Reporting } from "./reporting.js";
28
27
  import { Responses } from "./responses.js";
29
28
  import { Router } from "./router.js";
30
29
  import { RoutingRules } from "./routingrules.js";
@@ -33,26 +32,11 @@ import { Skills } from "./skills.js";
33
32
  import { Tools } from "./tools.js";
34
33
 
35
34
  export class Orq extends ClientSDK {
36
- private _contacts?: Contacts;
37
- get contacts(): Contacts {
38
- return (this._contacts ??= new Contacts(this._options));
39
- }
40
-
41
- private _feedback?: Feedback;
42
- get feedback(): Feedback {
43
- return (this._feedback ??= new Feedback(this._options));
44
- }
45
-
46
35
  private _evals?: Evals;
47
36
  get evals(): Evals {
48
37
  return (this._evals ??= new Evals(this._options));
49
38
  }
50
39
 
51
- private _identities?: Identities;
52
- get identities(): Identities {
53
- return (this._identities ??= new Identities(this._options));
54
- }
55
-
56
40
  private _deployments?: Deployments;
57
41
  get deployments(): Deployments {
58
42
  return (this._deployments ??= new Deployments(this._options));
@@ -68,11 +52,6 @@ export class Orq extends ClientSDK {
68
52
  return (this._prompts ??= new Prompts(this._options));
69
53
  }
70
54
 
71
- private _remoteconfigs?: Remoteconfigs;
72
- get remoteconfigs(): Remoteconfigs {
73
- return (this._remoteconfigs ??= new Remoteconfigs(this._options));
74
- }
75
-
76
55
  private _tools?: Tools;
77
56
  get tools(): Tools {
78
57
  return (this._tools ??= new Tools(this._options));
@@ -108,6 +87,11 @@ export class Orq extends ClientSDK {
108
87
  return (this._annotations ??= new Annotations(this._options));
109
88
  }
110
89
 
90
+ private _feedback?: Feedback;
91
+ get feedback(): Feedback {
92
+ return (this._feedback ??= new Feedback(this._options));
93
+ }
94
+
111
95
  private _humanReviewSets?: HumanReviewSets;
112
96
  get humanReviewSets(): HumanReviewSets {
113
97
  return (this._humanReviewSets ??= new HumanReviewSets(this._options));
@@ -133,6 +117,11 @@ export class Orq extends ClientSDK {
133
117
  return (this._files ??= new Files(this._options));
134
118
  }
135
119
 
120
+ private _identities?: Identities;
121
+ get identities(): Identities {
122
+ return (this._identities ??= new Identities(this._options));
123
+ }
124
+
136
125
  private _projects?: Projects;
137
126
  get projects(): Projects {
138
127
  return (this._projects ??= new Projects(this._options));
@@ -153,6 +142,11 @@ export class Orq extends ClientSDK {
153
142
  return (this._responses ??= new Responses(this._options));
154
143
  }
155
144
 
145
+ private _reporting?: Reporting;
146
+ get reporting(): Reporting {
147
+ return (this._reporting ??= new Reporting(this._options));
148
+ }
149
+
156
150
  async postV2FeedbackEvaluationRemove(
157
151
  request?: operations.PostV2FeedbackEvaluationRemoveRequestBody | undefined,
158
152
  options?: RequestOptions,
@@ -17,7 +17,7 @@ export class Skills extends ClientSDK {
17
17
  * List all skills
18
18
  *
19
19
  * @remarks
20
- * Returns a list of skills. Skills are sorted by creation date, with the most recently created skills appearing first.
20
+ * Returns the skills visible to the current workspace, ordered by creation time with the newest skill first. Use `starting_after` or `ending_before` to page through large collections.
21
21
  */
22
22
  async list(
23
23
  request?: operations.SkillListRequest | undefined,
@@ -34,7 +34,7 @@ export class Skills extends ClientSDK {
34
34
  * Create a new skill
35
35
  *
36
36
  * @remarks
37
- * Skills are modular instructions you can use to codify processes and conventions
37
+ * Creates a reusable skill in the workspace. Skills store instructions, metadata, and an optional project location so teams can standardize repeatable AI workflows.
38
38
  */
39
39
  async create(
40
40
  request: components.CreateSkillRequest,
@@ -51,7 +51,7 @@ export class Skills extends ClientSDK {
51
51
  * Retrieve a skill
52
52
  *
53
53
  * @remarks
54
- * Retrieves an existing skill by its unique skill ID or its display name (display names are unique within a workspace).
54
+ * Retrieves an existing skill by skill ID. Display names are also accepted for compatibility because they are unique within a workspace.
55
55
  */
56
56
  async get(
57
57
  request: operations.SkillGetRequest,
@@ -66,6 +66,9 @@ export class Skills extends ClientSDK {
66
66
 
67
67
  /**
68
68
  * Delete a skill
69
+ *
70
+ * @remarks
71
+ * Deletes a skill from the workspace. The response body is empty when the delete succeeds.
69
72
  */
70
73
  async delete(
71
74
  request: operations.SkillDeleteRequest,
@@ -82,7 +85,7 @@ export class Skills extends ClientSDK {
82
85
  * Update a skill
83
86
  *
84
87
  * @remarks
85
- * Updates the specified skill by setting the values of the parameters passed.
88
+ * Updates mutable skill fields. Omitted optional fields keep their current values. Repeated fields such as `tags` replace the existing collection when provided.
86
89
  */
87
90
  async update(
88
91
  request: operations.SkillUpdateRequest,
package/src/lib/config.ts CHANGED
@@ -68,7 +68,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
68
68
  export const SDK_METADATA = {
69
69
  language: "typescript",
70
70
  openapiDocVersion: "2.0",
71
- sdkVersion: "4.9.4",
71
+ sdkVersion: "4.9.6",
72
72
  genVersion: "2.884.4",
73
- userAgent: "speakeasy-sdk/typescript 4.9.4 2.884.4 2.0 @orq-ai/node",
73
+ userAgent: "speakeasy-sdk/typescript 4.9.6 2.884.4 2.0 @orq-ai/node",
74
74
  } as const;
@@ -40,7 +40,7 @@ export const ReasoningPart$inboundSchema: z.ZodType<
40
40
  z.ZodTypeDef,
41
41
  unknown
42
42
  > = z.object({
43
- _id: z.string().default("reasoning_01krnm0tv9nb8g8qmaxnsxxr77"),
43
+ _id: z.string().default("reasoning_01krx1wcatzx794ygf77884hmm"),
44
44
  metadata: z.record(z.any()).optional(),
45
45
  kind: z.literal("reasoning"),
46
46
  reasoning: z.string(),
@@ -134,7 +134,7 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
134
134
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
135
135
  .optional(),
136
136
  updated: z.string().datetime({ offset: true }).default(
137
- "2026-05-15T10:48:08.824Z",
137
+ "2026-05-18T08:05:02.495Z",
138
138
  ).transform(v => new Date(v)),
139
139
  }).transform((v) => {
140
140
  return remap$(v, {
@@ -138,7 +138,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
138
138
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
139
139
  .optional(),
140
140
  updated: z.string().datetime({ offset: true }).default(
141
- "2026-05-15T10:48:08.824Z",
141
+ "2026-05-18T08:05:02.495Z",
142
142
  ).transform(v => new Date(v)),
143
143
  }).transform((v) => {
144
144
  return remap$(v, {
@@ -2355,7 +2355,7 @@ export const Evaluations3$inboundSchema: z.ZodType<
2355
2355
  ),
2356
2356
  reviewed_by_id: z.string(),
2357
2357
  reviewed_at: z.string().datetime({ offset: true }).default(
2358
- "2026-05-15T10:48:23.726Z",
2358
+ "2026-05-18T08:05:18.549Z",
2359
2359
  ).transform(v => new Date(v)),
2360
2360
  type: z.literal("string_array"),
2361
2361
  values: z.array(z.string()),
@@ -2400,7 +2400,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
2400
2400
  source: CreateDatasetItemEvaluationsSource$inboundSchema.default("orq"),
2401
2401
  reviewed_by_id: z.string(),
2402
2402
  reviewed_at: z.string().datetime({ offset: true }).default(
2403
- "2026-05-15T10:48:23.721Z",
2403
+ "2026-05-18T08:05:18.548Z",
2404
2404
  ).transform(v => new Date(v)),
2405
2405
  type: z.literal("number"),
2406
2406
  value: z.number(),
@@ -2446,7 +2446,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
2446
2446
  source: EvaluationsSource$inboundSchema.default("orq"),
2447
2447
  reviewed_by_id: z.string(),
2448
2448
  reviewed_at: z.string().datetime({ offset: true }).default(
2449
- "2026-05-15T10:48:23.721Z",
2449
+ "2026-05-18T08:05:18.548Z",
2450
2450
  ).transform(v => new Date(v)),
2451
2451
  type: z.literal("string"),
2452
2452
  value: z.string(),
@@ -2529,7 +2529,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
2529
2529
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
2530
2530
  .optional(),
2531
2531
  updated: z.string().datetime({ offset: true }).default(
2532
- "2026-05-15T10:48:08.824Z",
2532
+ "2026-05-18T08:05:02.495Z",
2533
2533
  ).transform(v => new Date(v)),
2534
2534
  }).transform((v) => {
2535
2535
  return remap$(v, {
@@ -403,7 +403,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
403
403
  z.ZodTypeDef,
404
404
  unknown
405
405
  > = z.object({
406
- _id: z.string().default("01KRNM0VPBZY0X6GGFQ02DS2EY"),
406
+ _id: z.string().default("01KRX1WD04BSH6X5T8JK453HD3"),
407
407
  display_name: z.string(),
408
408
  description: z.string().optional(),
409
409
  status: CreateDatasourceStatus$inboundSchema,
@@ -2776,8 +2776,8 @@ export const Typescript$inboundSchema: z.ZodType<
2776
2776
  > = z.object({
2777
2777
  _id: z.string(),
2778
2778
  description: z.string(),
2779
- created: z.string().default("2026-05-15T10:48:10.929Z"),
2780
- updated: z.string().default("2026-05-15T10:48:10.929Z"),
2779
+ created: z.string().default("2026-05-18T08:05:04.737Z"),
2780
+ updated: z.string().default("2026-05-18T08:05:04.737Z"),
2781
2781
  guardrail_config: z.nullable(
2782
2782
  z.union([
2783
2783
  z.lazy(() =>
@@ -2965,8 +2965,8 @@ export const Ragas$inboundSchema: z.ZodType<Ragas, z.ZodTypeDef, unknown> = z
2965
2965
  .object({
2966
2966
  _id: z.string(),
2967
2967
  description: z.string(),
2968
- created: z.string().default("2026-05-15T10:48:10.929Z"),
2969
- updated: z.string().default("2026-05-15T10:48:10.929Z"),
2968
+ created: z.string().default("2026-05-18T08:05:04.737Z"),
2969
+ updated: z.string().default("2026-05-18T08:05:04.737Z"),
2970
2970
  guardrail_config: z.nullable(
2971
2971
  z.union([
2972
2972
  z.lazy(() =>
@@ -3789,8 +3789,8 @@ export const CreateEvalResponseBodyFunction$inboundSchema: z.ZodType<
3789
3789
  > = z.object({
3790
3790
  _id: z.string(),
3791
3791
  description: z.string(),
3792
- created: z.string().default("2026-05-15T10:48:10.929Z"),
3793
- updated: z.string().default("2026-05-15T10:48:10.929Z"),
3792
+ created: z.string().default("2026-05-18T08:05:04.737Z"),
3793
+ updated: z.string().default("2026-05-18T08:05:04.737Z"),
3794
3794
  guardrail_config: z.nullable(
3795
3795
  z.union([
3796
3796
  z.lazy(() =>
@@ -4008,8 +4008,8 @@ export const ResponseBodyPython$inboundSchema: z.ZodType<
4008
4008
  > = z.object({
4009
4009
  _id: z.string(),
4010
4010
  description: z.string(),
4011
- created: z.string().default("2026-05-15T10:48:10.929Z"),
4012
- updated: z.string().default("2026-05-15T10:48:10.929Z"),
4011
+ created: z.string().default("2026-05-18T08:05:04.737Z"),
4012
+ updated: z.string().default("2026-05-18T08:05:04.737Z"),
4013
4013
  guardrail_config: z.nullable(
4014
4014
  z.union([
4015
4015
  z.lazy(() =>
@@ -4190,8 +4190,8 @@ export const ResponseBodyHTTP$inboundSchema: z.ZodType<
4190
4190
  > = z.object({
4191
4191
  _id: z.string(),
4192
4192
  description: z.string(),
4193
- created: z.string().default("2026-05-15T10:48:10.929Z"),
4194
- updated: z.string().default("2026-05-15T10:48:10.929Z"),
4193
+ created: z.string().default("2026-05-18T08:05:04.737Z"),
4194
+ updated: z.string().default("2026-05-18T08:05:04.737Z"),
4195
4195
  guardrail_config: z.nullable(
4196
4196
  z.union([
4197
4197
  z.lazy(() =>
@@ -4367,8 +4367,8 @@ export const ResponseBodyJSON$inboundSchema: z.ZodType<
4367
4367
  > = z.object({
4368
4368
  _id: z.string(),
4369
4369
  description: z.string(),
4370
- created: z.string().default("2026-05-15T10:48:10.929Z"),
4371
- updated: z.string().default("2026-05-15T10:48:10.929Z"),
4370
+ created: z.string().default("2026-05-18T08:05:04.737Z"),
4371
+ updated: z.string().default("2026-05-18T08:05:04.737Z"),
4372
4372
  guardrail_config: z.nullable(
4373
4373
  z.union([
4374
4374
  z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
@@ -4738,8 +4738,8 @@ export const CreateEvalLlm2$inboundSchema: z.ZodType<
4738
4738
  > = z.object({
4739
4739
  _id: z.string(),
4740
4740
  description: z.string(),
4741
- created: z.string().default("2026-05-15T10:48:10.929Z"),
4742
- updated: z.string().default("2026-05-15T10:48:10.929Z"),
4741
+ created: z.string().default("2026-05-18T08:05:04.737Z"),
4742
+ updated: z.string().default("2026-05-18T08:05:04.737Z"),
4743
4743
  guardrail_config: z.nullable(
4744
4744
  z.union([
4745
4745
  z.lazy(() =>
@@ -4954,8 +4954,8 @@ export const CreateEvalLlm1$inboundSchema: z.ZodType<
4954
4954
  > = z.object({
4955
4955
  _id: z.string(),
4956
4956
  description: z.string(),
4957
- created: z.string().default("2026-05-15T10:48:10.929Z"),
4958
- updated: z.string().default("2026-05-15T10:48:10.929Z"),
4957
+ created: z.string().default("2026-05-18T08:05:04.737Z"),
4958
+ updated: z.string().default("2026-05-18T08:05:04.737Z"),
4959
4959
  guardrail_config: z.nullable(
4960
4960
  z.union([
4961
4961
  z.lazy(() =>
@@ -139,7 +139,7 @@ export const CreateIdentityResponseBody$inboundSchema: z.ZodType<
139
139
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
140
140
  .optional(),
141
141
  updated: z.string().datetime({ offset: true }).default(
142
- "2026-05-15T10:48:08.824Z",
142
+ "2026-05-18T08:05:02.495Z",
143
143
  ).transform(v => new Date(v)),
144
144
  }).transform((v) => {
145
145
  return remap$(v, {
@@ -1902,7 +1902,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
1902
1902
  z.ZodTypeDef,
1903
1903
  unknown
1904
1904
  > = z.object({
1905
- _id: z.string().default("tool_01KRNM0V965TP4G5VVKD3KZHE7"),
1905
+ _id: z.string().default("tool_01KRX1WCVMFA5W1E6BF0952WFY"),
1906
1906
  path: z.string(),
1907
1907
  key: z.string(),
1908
1908
  display_name: z.string().optional(),
@@ -1999,7 +1999,7 @@ export const ResponseBodyTools$inboundSchema: z.ZodType<
1999
1999
  z.ZodTypeDef,
2000
2000
  unknown
2001
2001
  > = z.object({
2002
- id: z.string().default("01KRNM0V95HT07Y54E102AZ1G5"),
2002
+ id: z.string().default("01KRX1WCVKMQZWERK8YWYHKEMD"),
2003
2003
  name: z.string(),
2004
2004
  description: z.string().optional(),
2005
2005
  schema: z.lazy(() => CreateToolResponseBodySchema$inboundSchema),
@@ -2055,7 +2055,7 @@ export const ResponseBodyMCPTool$inboundSchema: z.ZodType<
2055
2055
  z.ZodTypeDef,
2056
2056
  unknown
2057
2057
  > = z.object({
2058
- _id: z.string().default("tool_01KRNM0V94J765TX7RETGJSDXG"),
2058
+ _id: z.string().default("tool_01KRX1WCVJW0D3VZGJYBRNB2F1"),
2059
2059
  path: z.string(),
2060
2060
  key: z.string(),
2061
2061
  display_name: z.string().optional(),
@@ -2241,7 +2241,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
2241
2241
  z.ZodTypeDef,
2242
2242
  unknown
2243
2243
  > = z.object({
2244
- _id: z.string().default("tool_01KRNM0V926SHEQJXMFJXKVEZ0"),
2244
+ _id: z.string().default("tool_01KRX1WCVG1NQEEB738JEX3DAY"),
2245
2245
  path: z.string(),
2246
2246
  key: z.string(),
2247
2247
  display_name: z.string().optional(),
@@ -2334,7 +2334,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
2334
2334
  z.ZodTypeDef,
2335
2335
  unknown
2336
2336
  > = z.object({
2337
- _id: z.string().default("tool_01KRNM0V91NW32PGS5YCR95ET4"),
2337
+ _id: z.string().default("tool_01KRX1WCVE85WC9B70V134BCEN"),
2338
2338
  path: z.string(),
2339
2339
  key: z.string(),
2340
2340
  display_name: z.string().optional(),
@@ -2435,7 +2435,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
2435
2435
  z.ZodTypeDef,
2436
2436
  unknown
2437
2437
  > = z.object({
2438
- _id: z.string().default("tool_01KRNM0V90R9WJ5FG4SBS785Y4"),
2438
+ _id: z.string().default("tool_01KRX1WCVDJBDEJDJT47BFATA6"),
2439
2439
  path: z.string(),
2440
2440
  key: z.string(),
2441
2441
  display_name: z.string().optional(),