@orq-ai/node 4.9.3 → 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 (208) hide show
  1. package/jsr.json +1 -1
  2. package/langchain/async-handler.d.mts.map +1 -1
  3. package/langchain/async-handler.mjs +8 -11
  4. package/langchain/async-handler.mjs.map +1 -1
  5. package/langchain/events.d.mts.map +1 -1
  6. package/langchain/events.mjs +12 -0
  7. package/langchain/events.mjs.map +1 -1
  8. package/langchain/handler.d.mts.map +1 -1
  9. package/langchain/handler.mjs +8 -11
  10. package/langchain/handler.mjs.map +1 -1
  11. package/langchain/span-builder.mjs +3 -3
  12. package/langchain/span-builder.mjs.map +1 -1
  13. package/langchain/utils.d.mts.map +1 -1
  14. package/langchain/utils.mjs +115 -0
  15. package/langchain/utils.mjs.map +1 -1
  16. package/lib/config.d.ts +3 -3
  17. package/lib/config.js +3 -3
  18. package/models/components/reasoningpart.js +1 -1
  19. package/models/operations/createcontact.js +1 -1
  20. package/models/operations/createdataset.js +1 -1
  21. package/models/operations/createdatasetitem.js +4 -4
  22. package/models/operations/createdatasource.js +1 -1
  23. package/models/operations/createeval.js +16 -16
  24. package/models/operations/createidentity.js +1 -1
  25. package/models/operations/createrouterresponse.d.ts +6 -11
  26. package/models/operations/createrouterresponse.d.ts.map +1 -1
  27. package/models/operations/createrouterresponse.js +2 -8
  28. package/models/operations/createrouterresponse.js.map +1 -1
  29. package/models/operations/createtool.js +6 -6
  30. package/models/operations/getalltools.js +6 -6
  31. package/models/operations/getevals.js +16 -16
  32. package/models/operations/getv2humanevalsets.js +2 -2
  33. package/models/operations/getv2humanevalsetsid.js +2 -2
  34. package/models/operations/listdatasetdatapoints.js +4 -4
  35. package/models/operations/listdatasets.js +1 -1
  36. package/models/operations/listdatasources.js +1 -1
  37. package/models/operations/listidentities.js +1 -1
  38. package/models/operations/patchv2humanevalsetsid.js +2 -2
  39. package/models/operations/postv2feedbackevaluation.js +3 -3
  40. package/models/operations/postv2humanevalsets.js +2 -2
  41. package/models/operations/retrievedatapoint.js +4 -4
  42. package/models/operations/retrievedataset.js +1 -1
  43. package/models/operations/retrievedatasource.js +1 -1
  44. package/models/operations/retrieveidentity.js +1 -1
  45. package/models/operations/retrievetool.js +6 -6
  46. package/models/operations/runagent.js +1 -1
  47. package/models/operations/streamrunagent.js +1 -1
  48. package/models/operations/updatedatapoint.js +4 -4
  49. package/models/operations/updatedataset.js +1 -1
  50. package/models/operations/updatedatasource.js +1 -1
  51. package/models/operations/updateeval.js +16 -16
  52. package/models/operations/updateidentity.js +1 -1
  53. package/models/operations/updatetool.js +7 -7
  54. package/package.json +7 -7
  55. package/packages/orq-rc/src/funcs/identitiesCreate.ts +10 -15
  56. package/packages/orq-rc/src/funcs/identitiesDelete.ts +7 -16
  57. package/packages/orq-rc/src/funcs/identitiesList.ts +6 -5
  58. package/packages/orq-rc/src/funcs/identitiesRetrieve.ts +6 -18
  59. package/packages/orq-rc/src/funcs/identitiesUpdate.ts +9 -15
  60. package/packages/orq-rc/src/funcs/projectsCreate.ts +1 -1
  61. package/packages/orq-rc/src/funcs/projectsDelete.ts +3 -0
  62. package/packages/orq-rc/src/funcs/projectsList.ts +1 -1
  63. package/packages/orq-rc/src/funcs/{contactsCreate.ts → reportingQuery.ts} +13 -13
  64. package/packages/orq-rc/src/funcs/skillsCreate.ts +1 -1
  65. package/packages/orq-rc/src/funcs/skillsDelete.ts +3 -0
  66. package/packages/orq-rc/src/funcs/skillsGet.ts +1 -1
  67. package/packages/orq-rc/src/funcs/skillsList.ts +1 -1
  68. package/packages/orq-rc/src/funcs/skillsUpdate.ts +1 -1
  69. package/packages/orq-rc/src/lib/config.ts +3 -3
  70. package/packages/orq-rc/src/models/components/createidentityrequest.ts +76 -0
  71. package/packages/orq-rc/src/models/components/createidentityresponse.ts +32 -0
  72. package/packages/orq-rc/src/models/components/createprojectrequest.ts +6 -0
  73. package/packages/orq-rc/src/models/components/createprojectresponse.ts +3 -0
  74. package/packages/orq-rc/src/models/components/createskillrequest.ts +18 -0
  75. package/packages/orq-rc/src/models/components/createskillresponse.ts +3 -0
  76. package/packages/orq-rc/src/models/components/datapoint.ts +60 -0
  77. package/packages/orq-rc/src/models/components/deleteidentityresponse.ts +27 -0
  78. package/packages/orq-rc/src/models/components/file.ts +0 -3
  79. package/packages/orq-rc/src/models/components/filter.ts +137 -0
  80. package/packages/orq-rc/src/models/components/getprojectresponse.ts +3 -0
  81. package/packages/orq-rc/src/models/components/getskillresponse.ts +3 -0
  82. package/packages/orq-rc/src/models/components/identity.ts +83 -0
  83. package/packages/orq-rc/src/models/components/identitymetrics.ts +45 -0
  84. package/packages/orq-rc/src/models/components/index.ts +15 -0
  85. package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +17 -10
  86. package/packages/orq-rc/src/models/components/listidentitiesresponse.ts +41 -0
  87. package/packages/orq-rc/src/models/components/listprojectsresponse.ts +12 -0
  88. package/packages/orq-rc/src/models/components/listskillsresponse.ts +12 -0
  89. package/packages/orq-rc/src/models/components/modelref.ts +6 -0
  90. package/packages/orq-rc/src/models/components/project.ts +42 -3
  91. package/packages/orq-rc/src/models/components/queryreportrequest.ts +237 -0
  92. package/packages/orq-rc/src/models/components/queryreportresponse.ts +96 -0
  93. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  94. package/packages/orq-rc/src/models/components/responsemeta.ts +103 -0
  95. package/packages/orq-rc/src/models/components/retrieveidentityresponse.ts +32 -0
  96. package/packages/orq-rc/src/models/components/skill.ts +37 -3
  97. package/packages/orq-rc/src/models/components/totals.ts +34 -0
  98. package/packages/orq-rc/src/models/components/updateidentityrequest.ts +75 -0
  99. package/packages/orq-rc/src/models/components/updateidentityresponse.ts +32 -0
  100. package/packages/orq-rc/src/models/components/updateprojectrequest.ts +12 -0
  101. package/packages/orq-rc/src/models/components/updateprojectresponse.ts +3 -0
  102. package/packages/orq-rc/src/models/components/updateskillrequest.ts +21 -0
  103. package/packages/orq-rc/src/models/components/updateskillresponse.ts +3 -0
  104. package/packages/orq-rc/src/models/errors/index.ts +0 -3
  105. package/packages/orq-rc/src/models/operations/createagentrequest.ts +3 -3
  106. package/packages/orq-rc/src/models/operations/createannotation.ts +7 -11
  107. package/packages/orq-rc/src/models/operations/createdataset.ts +4 -4
  108. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
  109. package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
  110. package/packages/orq-rc/src/models/operations/createeval.ts +31 -31
  111. package/packages/orq-rc/src/models/operations/createknowledge.ts +9 -9
  112. package/packages/orq-rc/src/models/operations/creatememorystore.ts +3 -3
  113. package/packages/orq-rc/src/models/operations/createprompt.ts +3 -3
  114. package/packages/orq-rc/src/models/operations/createrouterresponse.ts +3 -24
  115. package/packages/orq-rc/src/models/operations/createtool.ts +36 -36
  116. package/packages/orq-rc/src/models/operations/deleteidentity.ts +0 -3
  117. package/packages/orq-rc/src/models/operations/getalltools.ts +21 -21
  118. package/packages/orq-rc/src/models/operations/getevals.ts +16 -16
  119. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +6 -6
  120. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
  121. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  122. package/packages/orq-rc/src/models/operations/index.ts +0 -3
  123. package/packages/orq-rc/src/models/operations/invokeeval.ts +83 -80
  124. package/packages/orq-rc/src/models/operations/listagents.ts +3 -3
  125. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
  126. package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
  127. package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
  128. package/packages/orq-rc/src/models/operations/listidentities.ts +9 -230
  129. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +6 -6
  130. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  131. package/packages/orq-rc/src/models/operations/postv2agentsa2a.ts +14 -17
  132. package/packages/orq-rc/src/models/operations/postv2feedback.ts +34 -27
  133. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +3 -3
  134. package/packages/orq-rc/src/models/operations/postv2feedbackremove.ts +14 -17
  135. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  136. package/packages/orq-rc/src/models/operations/projectdelete.ts +3 -0
  137. package/packages/orq-rc/src/models/operations/projectget.ts +3 -0
  138. package/packages/orq-rc/src/models/operations/projectlist.ts +15 -0
  139. package/packages/orq-rc/src/models/operations/projectupdate.ts +3 -0
  140. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +3 -3
  141. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
  142. package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
  143. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
  144. package/packages/orq-rc/src/models/operations/retrieveidentity.ts +3 -138
  145. package/packages/orq-rc/src/models/operations/retrievetool.ts +21 -21
  146. package/packages/orq-rc/src/models/operations/runagent.ts +4 -4
  147. package/packages/orq-rc/src/models/operations/skilldelete.ts +3 -0
  148. package/packages/orq-rc/src/models/operations/skilllist.ts +12 -0
  149. package/packages/orq-rc/src/models/operations/skillupdate.ts +3 -0
  150. package/packages/orq-rc/src/models/operations/streamrunagent.ts +4 -4
  151. package/packages/orq-rc/src/models/operations/updateagent.ts +6 -6
  152. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
  153. package/packages/orq-rc/src/models/operations/updatedataset.ts +4 -4
  154. package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
  155. package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
  156. package/packages/orq-rc/src/models/operations/updateidentity.ts +5 -154
  157. package/packages/orq-rc/src/models/operations/updateknowledge.ts +12 -12
  158. package/packages/orq-rc/src/models/operations/updateprompt.ts +3 -3
  159. package/packages/orq-rc/src/models/operations/updatetool.ts +37 -37
  160. package/packages/orq-rc/src/sdk/feedback.ts +8 -8
  161. package/packages/orq-rc/src/sdk/identities.ts +18 -17
  162. package/packages/orq-rc/src/sdk/projects.ts +5 -2
  163. package/packages/orq-rc/src/sdk/reporting.ts +27 -0
  164. package/packages/orq-rc/src/sdk/sdk.ts +16 -22
  165. package/packages/orq-rc/src/sdk/skills.ts +7 -4
  166. package/src/lib/config.ts +3 -3
  167. package/src/models/components/reasoningpart.ts +1 -1
  168. package/src/models/operations/createcontact.ts +1 -1
  169. package/src/models/operations/createdataset.ts +1 -1
  170. package/src/models/operations/createdatasetitem.ts +4 -4
  171. package/src/models/operations/createdatasource.ts +1 -1
  172. package/src/models/operations/createeval.ts +16 -16
  173. package/src/models/operations/createidentity.ts +1 -1
  174. package/src/models/operations/createrouterresponse.ts +3 -24
  175. package/src/models/operations/createtool.ts +6 -6
  176. package/src/models/operations/getalltools.ts +6 -6
  177. package/src/models/operations/getevals.ts +16 -16
  178. package/src/models/operations/getv2humanevalsets.ts +2 -2
  179. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  180. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  181. package/src/models/operations/listdatasets.ts +1 -1
  182. package/src/models/operations/listdatasources.ts +1 -1
  183. package/src/models/operations/listidentities.ts +1 -1
  184. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  185. package/src/models/operations/postv2feedbackevaluation.ts +3 -3
  186. package/src/models/operations/postv2humanevalsets.ts +2 -2
  187. package/src/models/operations/retrievedatapoint.ts +4 -4
  188. package/src/models/operations/retrievedataset.ts +1 -1
  189. package/src/models/operations/retrievedatasource.ts +1 -1
  190. package/src/models/operations/retrieveidentity.ts +1 -1
  191. package/src/models/operations/retrievetool.ts +6 -6
  192. package/src/models/operations/runagent.ts +1 -1
  193. package/src/models/operations/streamrunagent.ts +1 -1
  194. package/src/models/operations/updatedatapoint.ts +4 -4
  195. package/src/models/operations/updatedataset.ts +1 -1
  196. package/src/models/operations/updatedatasource.ts +1 -1
  197. package/src/models/operations/updateeval.ts +16 -16
  198. package/src/models/operations/updateidentity.ts +1 -1
  199. package/src/models/operations/updatetool.ts +7 -7
  200. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -163
  201. package/packages/orq-rc/src/models/errors/deleteidentity.ts +0 -62
  202. package/packages/orq-rc/src/models/errors/retrieveidentity.ts +0 -118
  203. package/packages/orq-rc/src/models/errors/updateidentity.ts +0 -54
  204. package/packages/orq-rc/src/models/operations/createcontact.ts +0 -156
  205. package/packages/orq-rc/src/models/operations/createidentity.ts +0 -162
  206. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -108
  207. package/packages/orq-rc/src/sdk/contacts.ts +0 -27
  208. package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
@@ -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.3",
72
- genVersion: "2.884.0",
73
- userAgent: "speakeasy-sdk/typescript 4.9.3 2.884.0 2.0 @orq-ai/node",
71
+ sdkVersion: "4.9.6",
72
+ genVersion: "2.884.4",
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_01krgst47cax8vmk1pdfq3k3wd"),
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-13T13:53:07.391Z",
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-13T13:53:07.391Z",
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-13T13:53:23.357Z",
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-13T13:53:23.357Z",
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-13T13:53:23.357Z",
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-13T13:53:07.391Z",
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("01KRGST59JD660ERPFDVNZFJWM"),
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-13T13:53:09.745Z"),
2780
- updated: z.string().default("2026-05-13T13:53:09.745Z"),
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-13T13:53:09.745Z"),
2969
- updated: z.string().default("2026-05-13T13:53:09.745Z"),
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-13T13:53:09.745Z"),
3793
- updated: z.string().default("2026-05-13T13:53:09.745Z"),
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-13T13:53:09.745Z"),
4012
- updated: z.string().default("2026-05-13T13:53:09.745Z"),
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-13T13:53:09.745Z"),
4194
- updated: z.string().default("2026-05-13T13:53:09.745Z"),
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-13T13:53:09.745Z"),
4371
- updated: z.string().default("2026-05-13T13:53:09.745Z"),
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-13T13:53:09.745Z"),
4742
- updated: z.string().default("2026-05-13T13:53:09.745Z"),
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-13T13:53:09.745Z"),
4958
- updated: z.string().default("2026-05-13T13:53:09.745Z"),
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-13T13:53:07.391Z",
142
+ "2026-05-18T08:05:02.495Z",
143
143
  ).transform(v => new Date(v)),
144
144
  }).transform((v) => {
145
145
  return remap$(v, {
@@ -318,11 +318,6 @@ export type OrqAiTool = {
318
318
  type: CreateRouterResponseToolsType;
319
319
  };
320
320
 
321
- /**
322
- * The parameters the function accepts, as a JSON Schema object.
323
- */
324
- export type ToolsParameters = {};
325
-
326
321
  /**
327
322
  * A function tool the model can call.
328
323
  */
@@ -338,7 +333,7 @@ export type ToolsFunction = {
338
333
  /**
339
334
  * The parameters the function accepts, as a JSON Schema object.
340
335
  */
341
- parameters?: ToolsParameters | undefined;
336
+ parameters?: { [k: string]: any } | undefined;
342
337
  /**
343
338
  * Whether to enforce strict parameter validation.
344
339
  */
@@ -1100,27 +1095,11 @@ export function orqAiToolToJSON(orqAiTool: OrqAiTool): string {
1100
1095
  return JSON.stringify(OrqAiTool$outboundSchema.parse(orqAiTool));
1101
1096
  }
1102
1097
 
1103
- /** @internal */
1104
- export type ToolsParameters$Outbound = {};
1105
-
1106
- /** @internal */
1107
- export const ToolsParameters$outboundSchema: z.ZodType<
1108
- ToolsParameters$Outbound,
1109
- z.ZodTypeDef,
1110
- ToolsParameters
1111
- > = z.object({});
1112
-
1113
- export function toolsParametersToJSON(
1114
- toolsParameters: ToolsParameters,
1115
- ): string {
1116
- return JSON.stringify(ToolsParameters$outboundSchema.parse(toolsParameters));
1117
- }
1118
-
1119
1098
  /** @internal */
1120
1099
  export type ToolsFunction$Outbound = {
1121
1100
  description?: string | undefined;
1122
1101
  name: string;
1123
- parameters?: ToolsParameters$Outbound | undefined;
1102
+ parameters?: { [k: string]: any } | undefined;
1124
1103
  strict?: boolean | undefined;
1125
1104
  type: "function";
1126
1105
  };
@@ -1133,7 +1112,7 @@ export const ToolsFunction$outboundSchema: z.ZodType<
1133
1112
  > = z.object({
1134
1113
  description: z.string().optional(),
1135
1114
  name: z.string(),
1136
- parameters: z.lazy(() => ToolsParameters$outboundSchema).optional(),
1115
+ parameters: z.record(z.any()).optional(),
1137
1116
  strict: z.boolean().optional(),
1138
1117
  type: z.literal("function"),
1139
1118
  });
@@ -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_01KRGST4VHCZ1CS8XPFSZYVEKA"),
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("01KRGST4VD9Z0A5EPDWJBRB05M"),
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_01KRGST4V8S9NYBSM7C6V5BB1V"),
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_01KRGST4TYRF1TS6JEAS64D2G0"),
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_01KRGST4TPZTDENVEQJ7RE6JBT"),
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_01KRGST4TJGN4YD55YCF0K9TC6"),
2438
+ _id: z.string().default("tool_01KRX1WCVDJBDEJDJT47BFATA6"),
2439
2439
  path: z.string(),
2440
2440
  key: z.string(),
2441
2441
  display_name: z.string().optional(),
@@ -767,7 +767,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
767
767
  z.ZodTypeDef,
768
768
  unknown
769
769
  > = z.object({
770
- _id: z.string().default("tool_01KRGST4RZCYHHGQXDKF9FQWRZ"),
770
+ _id: z.string().default("tool_01KRX1WCTVRAYK31CAK7J974KS"),
771
771
  path: z.string(),
772
772
  key: z.string(),
773
773
  display_name: z.string().optional(),
@@ -864,7 +864,7 @@ export const DataTools$inboundSchema: z.ZodType<
864
864
  z.ZodTypeDef,
865
865
  unknown
866
866
  > = z.object({
867
- id: z.string().default("01KRGST4RTTSMBB1XZD1TYWDTH"),
867
+ id: z.string().default("01KRX1WCTTNKWN5KVTGEBJ7TMY"),
868
868
  name: z.string(),
869
869
  description: z.string().optional(),
870
870
  schema: z.lazy(() => GetAllToolsDataSchema$inboundSchema),
@@ -917,7 +917,7 @@ export const DataMCPTool$inboundSchema: z.ZodType<
917
917
  z.ZodTypeDef,
918
918
  unknown
919
919
  > = z.object({
920
- _id: z.string().default("tool_01KRGST4RPJZH0E4DCDM13WYFG"),
920
+ _id: z.string().default("tool_01KRX1WCTSNDVSQ0FZNBRRKKPE"),
921
921
  path: z.string(),
922
922
  key: z.string(),
923
923
  display_name: z.string().optional(),
@@ -1102,7 +1102,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
1102
1102
  z.ZodTypeDef,
1103
1103
  unknown
1104
1104
  > = z.object({
1105
- _id: z.string().default("tool_01KRGST4RB65C4K5FNRF5AQ4ZP"),
1105
+ _id: z.string().default("tool_01KRX1WCTQ5XHNRHR2DACWSE0Z"),
1106
1106
  path: z.string(),
1107
1107
  key: z.string(),
1108
1108
  display_name: z.string().optional(),
@@ -1195,7 +1195,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
1195
1195
  z.ZodTypeDef,
1196
1196
  unknown
1197
1197
  > = z.object({
1198
- _id: z.string().default("tool_01KRGST4R389VFVF073CVET40C"),
1198
+ _id: z.string().default("tool_01KRX1WCTNCNCT36TBJ45EKC80"),
1199
1199
  path: z.string(),
1200
1200
  key: z.string(),
1201
1201
  display_name: z.string().optional(),
@@ -1297,7 +1297,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
1297
1297
  z.ZodTypeDef,
1298
1298
  unknown
1299
1299
  > = z.object({
1300
- _id: z.string().default("tool_01KRGST4QYBT4KYPSJF9PT4XPR"),
1300
+ _id: z.string().default("tool_01KRX1WCTM6TSP6X653E21EXP0"),
1301
1301
  path: z.string(),
1302
1302
  key: z.string(),
1303
1303
  display_name: z.string().optional(),