@orq-ai/node 4.14.13 → 4.14.15

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 (163) 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/evaluatorresponsefunction.js +2 -2
  5. package/models/components/evaluatorresponsehttp.js +2 -2
  6. package/models/components/evaluatorresponsejsonschema.js +2 -2
  7. package/models/components/evaluatorresponsellm.js +2 -2
  8. package/models/components/evaluatorresponsepython.js +2 -2
  9. package/models/components/evaluatorresponseragas.js +2 -2
  10. package/models/components/evaluatorresponsetypescript.js +2 -2
  11. package/models/components/reasoningpart.js +1 -1
  12. package/models/operations/createannotationqueue.js +1 -1
  13. package/models/operations/createdataset.js +1 -1
  14. package/models/operations/createdatasetitem.js +5 -5
  15. package/models/operations/createtool.js +4 -4
  16. package/models/operations/getalltools.js +4 -4
  17. package/models/operations/geteval.js +16 -16
  18. package/models/operations/getv2humanevalsets.js +2 -2
  19. package/models/operations/getv2humanevalsetsid.js +2 -2
  20. package/models/operations/listannotationqueues.js +1 -1
  21. package/models/operations/listdatasetdatapoints.js +5 -5
  22. package/models/operations/listdatasets.js +1 -1
  23. package/models/operations/patchv2humanevalsetsid.js +2 -2
  24. package/models/operations/postv2feedbackevaluation.js +4 -4
  25. package/models/operations/postv2humanevalsets.js +2 -2
  26. package/models/operations/retrieveannotationqueue.js +1 -1
  27. package/models/operations/retrievedatapoint.js +5 -5
  28. package/models/operations/retrievedataset.js +1 -1
  29. package/models/operations/retrievetool.js +4 -4
  30. package/models/operations/runagent.js +1 -1
  31. package/models/operations/streamrunagent.js +1 -1
  32. package/models/operations/updateannotationqueue.js +1 -1
  33. package/models/operations/updatedatapoint.js +5 -5
  34. package/models/operations/updatedataset.js +1 -1
  35. package/models/operations/updatetool.js +4 -4
  36. package/package.json +3 -3
  37. package/packages/orq-rc/src/funcs/budgetsCreate.ts +1 -1
  38. package/packages/orq-rc/src/funcs/budgetsDelete.ts +1 -1
  39. package/packages/orq-rc/src/funcs/budgetsGet.ts +1 -1
  40. package/packages/orq-rc/src/funcs/budgetsList.ts +1 -1
  41. package/packages/orq-rc/src/funcs/budgetsResetConsumption.ts +1 -1
  42. package/packages/orq-rc/src/funcs/budgetsUpdate.ts +1 -1
  43. package/packages/orq-rc/src/funcs/evalsCreate.ts +4 -5
  44. package/packages/orq-rc/src/funcs/evalsGet.ts +4 -5
  45. package/packages/orq-rc/src/funcs/evalsGetVersion.ts +4 -5
  46. package/packages/orq-rc/src/funcs/evalsInvoke.ts +4 -4
  47. package/packages/orq-rc/src/funcs/evalsUpdate.ts +4 -5
  48. package/packages/orq-rc/src/funcs/hubGet.ts +168 -0
  49. package/packages/orq-rc/src/funcs/hubSearch.ts +169 -0
  50. package/packages/orq-rc/src/funcs/sessionsCreate.ts +162 -0
  51. package/packages/orq-rc/src/funcs/sessionsDelete.ts +168 -0
  52. package/packages/orq-rc/src/funcs/sessionsGet.ts +168 -0
  53. package/packages/orq-rc/src/funcs/sessionsGetCount.ts +162 -0
  54. package/packages/orq-rc/src/funcs/sessionsList.ts +162 -0
  55. package/packages/orq-rc/src/funcs/sessionsListTags.ts +144 -0
  56. package/packages/orq-rc/src/funcs/sessionsUpdate.ts +171 -0
  57. package/packages/orq-rc/src/lib/config.ts +2 -2
  58. package/packages/orq-rc/src/models/components/agentresponserequest.ts +14 -10
  59. package/packages/orq-rc/src/models/components/budgetlimit.ts +11 -9
  60. package/packages/orq-rc/src/models/components/createthreadrequest.ts +91 -0
  61. package/packages/orq-rc/src/models/components/filter.ts +7 -9
  62. package/packages/orq-rc/src/models/components/gethubitemresponse.ts +37 -0
  63. package/packages/orq-rc/src/models/components/getthreadcountrequest.ts +42 -0
  64. package/packages/orq-rc/src/models/components/getthreadcountresponse.ts +31 -0
  65. package/packages/orq-rc/src/models/components/hubitem.ts +136 -0
  66. package/packages/orq-rc/src/models/components/hubitemsummary.ts +60 -0
  67. package/packages/orq-rc/src/models/components/hubsearchhit.ts +35 -0
  68. package/packages/orq-rc/src/models/components/index.ts +18 -3
  69. package/packages/orq-rc/src/models/components/listthreadsrequest.ts +42 -0
  70. package/packages/orq-rc/src/models/components/listthreadsresponse.ts +41 -0
  71. package/packages/orq-rc/src/models/components/managementkey.ts +3 -4
  72. package/packages/orq-rc/src/models/components/modelmetadata.ts +6 -0
  73. package/packages/orq-rc/src/models/components/modelsconfig.ts +11 -10
  74. package/packages/orq-rc/src/models/components/monitorfilter.ts +11 -7
  75. package/packages/orq-rc/src/models/components/openaipromptcacheoptions.ts +84 -0
  76. package/packages/orq-rc/src/models/components/publicresponseresource.ts +7 -0
  77. package/packages/orq-rc/src/models/components/queryreportrequest.ts +10 -11
  78. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  79. package/packages/orq-rc/src/models/components/responsemeta.ts +6 -7
  80. package/packages/orq-rc/src/models/components/searchhubitemsresponse.ts +32 -0
  81. package/packages/orq-rc/src/models/components/sessioninterval.ts +26 -0
  82. package/packages/orq-rc/src/models/components/textcontentpartschema.ts +13 -8
  83. package/packages/orq-rc/src/models/components/thread.ts +101 -0
  84. package/packages/orq-rc/src/models/components/threadbilling.ts +68 -0
  85. package/packages/orq-rc/src/models/components/threadfilters.ts +66 -0
  86. package/packages/orq-rc/src/models/components/threadkind.ts +20 -0
  87. package/packages/orq-rc/src/models/components/threadusage.ts +68 -0
  88. package/packages/orq-rc/src/models/components/updatethreadrequest.ts +105 -0
  89. package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
  90. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +5 -5
  91. package/packages/orq-rc/src/models/operations/createeval.ts +25 -0
  92. package/packages/orq-rc/src/models/operations/createrouterresponse.ts +128 -9
  93. package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
  94. package/packages/orq-rc/src/models/operations/deletesession.ts +36 -0
  95. package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
  96. package/packages/orq-rc/src/models/operations/geteval.ts +25 -0
  97. package/packages/orq-rc/src/models/operations/getevalversion.ts +25 -0
  98. package/packages/orq-rc/src/models/operations/getsession.ts +36 -0
  99. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
  100. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  101. package/packages/orq-rc/src/models/operations/hubget.ts +27 -0
  102. package/packages/orq-rc/src/models/operations/hubsearch.ts +34 -0
  103. package/packages/orq-rc/src/models/operations/index.ts +5 -0
  104. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +5 -5
  105. package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
  106. package/packages/orq-rc/src/models/operations/modelcreateopenailike.ts +8 -0
  107. package/packages/orq-rc/src/models/operations/modelupdateopenailike.ts +8 -0
  108. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  109. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +4 -4
  110. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  111. package/packages/orq-rc/src/models/operations/postv2routerocr.ts +36 -0
  112. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +5 -5
  113. package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
  114. package/packages/orq-rc/src/models/operations/retrieveresponse.ts +5 -0
  115. package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
  116. package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
  117. package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
  118. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +5 -5
  119. package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
  120. package/packages/orq-rc/src/models/operations/updateeval.ts +25 -0
  121. package/packages/orq-rc/src/models/operations/updatesession.ts +41 -0
  122. package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
  123. package/packages/orq-rc/src/sdk/budgets.ts +6 -6
  124. package/packages/orq-rc/src/sdk/evals.ts +5 -5
  125. package/packages/orq-rc/src/sdk/hub.ts +46 -0
  126. package/packages/orq-rc/src/sdk/sdk.ts +27 -15
  127. package/packages/orq-rc/src/sdk/sessions.ts +134 -0
  128. package/src/lib/config.ts +2 -2
  129. package/src/models/components/evaluatorresponsefunction.ts +2 -2
  130. package/src/models/components/evaluatorresponsehttp.ts +2 -2
  131. package/src/models/components/evaluatorresponsejsonschema.ts +2 -2
  132. package/src/models/components/evaluatorresponsellm.ts +2 -2
  133. package/src/models/components/evaluatorresponsepython.ts +2 -2
  134. package/src/models/components/evaluatorresponseragas.ts +2 -2
  135. package/src/models/components/evaluatorresponsetypescript.ts +2 -2
  136. package/src/models/components/reasoningpart.ts +1 -1
  137. package/src/models/operations/createannotationqueue.ts +1 -1
  138. package/src/models/operations/createdataset.ts +1 -1
  139. package/src/models/operations/createdatasetitem.ts +5 -5
  140. package/src/models/operations/createtool.ts +4 -4
  141. package/src/models/operations/getalltools.ts +4 -4
  142. package/src/models/operations/geteval.ts +16 -16
  143. package/src/models/operations/getv2humanevalsets.ts +2 -2
  144. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  145. package/src/models/operations/listannotationqueues.ts +1 -1
  146. package/src/models/operations/listdatasetdatapoints.ts +5 -5
  147. package/src/models/operations/listdatasets.ts +1 -1
  148. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  149. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  150. package/src/models/operations/postv2humanevalsets.ts +2 -2
  151. package/src/models/operations/retrieveannotationqueue.ts +1 -1
  152. package/src/models/operations/retrievedatapoint.ts +5 -5
  153. package/src/models/operations/retrievedataset.ts +1 -1
  154. package/src/models/operations/retrievetool.ts +4 -4
  155. package/src/models/operations/runagent.ts +1 -1
  156. package/src/models/operations/streamrunagent.ts +1 -1
  157. package/src/models/operations/updateannotationqueue.ts +1 -1
  158. package/src/models/operations/updatedatapoint.ts +5 -5
  159. package/src/models/operations/updatedataset.ts +1 -1
  160. package/src/models/operations/updatetool.ts +4 -4
  161. package/packages/orq-rc/src/models/components/evaluatordocumentresponse.ts +0 -50
  162. package/packages/orq-rc/src/models/components/getevaluatorversionresponse.ts +0 -58
  163. package/packages/orq-rc/src/models/components/invokeevaluatorresponse.ts +0 -47
@@ -18,7 +18,7 @@ export class Budgets extends ClientSDK {
18
18
  * List budgets
19
19
  *
20
20
  * @remarks
21
- * Returns budgets visible to the current workspace, ordered by creation time with the newest first. Supports filtering by scope kind, scope target id, period, and active state, plus an optional free-text query that searches across denormalized target names via Typesense.
21
+ * Returns budgets visible to the current workspace, ordered by creation time with the newest first. Supports filtering by scope kind, scope target id, period, and active state, plus an optional free-text query that searches across denormalized target names via Typesense. Requires a Management Key with the Budgets permission; project-scoped API keys cannot manage budgets.
22
22
  */
23
23
  async list(
24
24
  request?: operations.BudgetListRequest | undefined,
@@ -35,7 +35,7 @@ export class Budgets extends ClientSDK {
35
35
  * Create a new budget
36
36
  *
37
37
  * @remarks
38
- * Creates a new budget in the workspace. Exactly one scope variant must be set (workspace / project / identity / api_key / provider / model). At least one of `limits.amount`, `limits.token_limit`, or `rate_limit.requests_per_minute` MUST be provided. Uniqueness is enforced across (workspace_id, scope_kind, scope_target_id).
38
+ * Creates a new budget in the workspace. Exactly one scope variant must be set (workspace / project / identity / api_key / provider / model). At least one of `limits.amount`, `limits.token_limit`, or `rate_limit.requests_per_minute` MUST be provided. Uniqueness is enforced across (workspace_id, scope_kind, scope_target_id). Requires a Management Key with the Budgets permission; project-scoped API keys cannot manage budgets.
39
39
  */
40
40
  async create(
41
41
  request: components.CreateBudgetRequest,
@@ -52,7 +52,7 @@ export class Budgets extends ClientSDK {
52
52
  * Retrieve a budget
53
53
  *
54
54
  * @remarks
55
- * Retrieves the metadata for an existing budget by its unique identifier. Returns `NotFound` when the budget does not exist in the caller's workspace.
55
+ * Retrieves the metadata for an existing budget by its unique identifier. Returns `NotFound` when the budget does not exist in the caller's workspace. Requires a Management Key with the Budgets permission; project-scoped API keys cannot manage budgets.
56
56
  */
57
57
  async get(
58
58
  request: operations.BudgetGetRequest,
@@ -69,7 +69,7 @@ export class Budgets extends ClientSDK {
69
69
  * Delete a budget
70
70
  *
71
71
  * @remarks
72
- * Permanently deletes a budget. Its consumption counters are cleared immediately. The response body is empty on success.
72
+ * Permanently deletes a budget. Its consumption counters are cleared immediately. The response body is empty on success. Requires a Management Key with the Budgets permission; project-scoped API keys cannot manage budgets.
73
73
  */
74
74
  async delete(
75
75
  request: operations.BudgetDeleteRequest,
@@ -86,7 +86,7 @@ export class Budgets extends ClientSDK {
86
86
  * Update a budget
87
87
  *
88
88
  * @remarks
89
- * Updates mutable fields of a budget: limits, rate limit, activation, and expiration. The scope is immutable — to change a budget's target, delete and recreate it. Omitted fields keep their current values.
89
+ * Updates mutable fields of a budget: limits, rate limit, activation, and expiration. The scope is immutable — to change a budget's target, delete and recreate it. Omitted fields keep their current values. Requires a Management Key with the Budgets permission; project-scoped API keys cannot manage budgets.
90
90
  */
91
91
  async update(
92
92
  request: operations.BudgetUpdateRequest,
@@ -103,7 +103,7 @@ export class Budgets extends ClientSDK {
103
103
  * Reset budget consumption
104
104
  *
105
105
  * @remarks
106
- * Clears the current-period cost, token, and request counters for the budget. The budget record itself is preserved.
106
+ * Clears the current-period cost, token, and request counters for the budget. The budget record itself is preserved. Requires a Management Key with the Budgets permission; project-scoped API keys cannot manage budgets.
107
107
  */
108
108
  async resetConsumption(
109
109
  request: operations.BudgetResetConsumptionRequest,
@@ -42,7 +42,7 @@ export class Evals extends ClientSDK {
42
42
  async create(
43
43
  request: operations.CreateEvalRequestBody,
44
44
  options?: RequestOptions,
45
- ): Promise<components.EvaluatorDocumentResponse> {
45
+ ): Promise<operations.CreateEvalResponseBody> {
46
46
  return unwrapAsync(evalsCreate(
47
47
  this,
48
48
  request,
@@ -59,7 +59,7 @@ export class Evals extends ClientSDK {
59
59
  async get(
60
60
  request: operations.GetEvalRequest,
61
61
  options?: RequestOptions,
62
- ): Promise<components.EvaluatorDocumentResponse> {
62
+ ): Promise<operations.GetEvalResponseBody> {
63
63
  return unwrapAsync(evalsGet(
64
64
  this,
65
65
  request,
@@ -93,7 +93,7 @@ export class Evals extends ClientSDK {
93
93
  async update(
94
94
  request: operations.UpdateEvalRequest,
95
95
  options?: RequestOptions,
96
- ): Promise<components.EvaluatorDocumentResponse> {
96
+ ): Promise<operations.UpdateEvalResponseBody> {
97
97
  return unwrapAsync(evalsUpdate(
98
98
  this,
99
99
  request,
@@ -127,7 +127,7 @@ export class Evals extends ClientSDK {
127
127
  async getVersion(
128
128
  request: operations.GetEvalVersionRequest,
129
129
  options?: RequestOptions,
130
- ): Promise<components.GetEvaluatorVersionResponse> {
130
+ ): Promise<operations.GetEvalVersionResponseBody> {
131
131
  return unwrapAsync(evalsGetVersion(
132
132
  this,
133
133
  request,
@@ -144,7 +144,7 @@ export class Evals extends ClientSDK {
144
144
  async invoke(
145
145
  request: operations.InvokeEvalRequest,
146
146
  options?: RequestOptions,
147
- ): Promise<components.InvokeEvaluatorResponse> {
147
+ ): Promise<components.EvaluationResult> {
148
148
  return unwrapAsync(evalsInvoke(
149
149
  this,
150
150
  request,
@@ -0,0 +1,46 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { hubGet } from "../funcs/hubGet.js";
6
+ import { hubSearch } from "../funcs/hubSearch.js";
7
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
8
+ import * as components from "../models/components/index.js";
9
+ import * as operations from "../models/operations/index.js";
10
+ import { unwrapAsync } from "../types/fp.js";
11
+
12
+ export class Hub extends ClientSDK {
13
+ /**
14
+ * Search hub items
15
+ *
16
+ * @remarks
17
+ * Returns hub items available to the current workspace, sorted by display name.
18
+ */
19
+ async search(
20
+ request?: operations.HubSearchRequest | undefined,
21
+ options?: RequestOptions,
22
+ ): Promise<components.SearchHubItemsResponse> {
23
+ return unwrapAsync(hubSearch(
24
+ this,
25
+ request,
26
+ options,
27
+ ));
28
+ }
29
+
30
+ /**
31
+ * Get a hub item
32
+ *
33
+ * @remarks
34
+ * Retrieves a hub item available to the current workspace.
35
+ */
36
+ async get(
37
+ request: operations.HubGetRequest,
38
+ options?: RequestOptions,
39
+ ): Promise<components.GetHubItemResponse> {
40
+ return unwrapAsync(hubGet(
41
+ this,
42
+ request,
43
+ options,
44
+ ));
45
+ }
46
+ }
@@ -18,6 +18,7 @@ import { Feedback } from "./feedback.js";
18
18
  import { Files } from "./files.js";
19
19
  import { FileSystems } from "./filesystems.js";
20
20
  import { GuardrailRules } from "./guardrailrules.js";
21
+ import { Hub } from "./hub.js";
21
22
  import { HumanReviewSets } from "./humanreviewsets.js";
22
23
  import { Identities } from "./identities.js";
23
24
  import { Knowledge } from "./knowledge.js";
@@ -38,6 +39,7 @@ import { Responses } from "./responses.js";
38
39
  import { Router } from "./router.js";
39
40
  import { RoutingRules } from "./routingrules.js";
40
41
  import { Schedules } from "./schedules.js";
42
+ import { Sessions } from "./sessions.js";
41
43
  import { Skills } from "./skills.js";
42
44
  import { SmartRouters } from "./smartrouters.js";
43
45
  import { Tools } from "./tools.js";
@@ -123,6 +125,21 @@ export class Orq extends ClientSDK {
123
125
  return (this._pii ??= new Pii(this._options));
124
126
  }
125
127
 
128
+ private _logs?: Logs;
129
+ get logs(): Logs {
130
+ return (this._logs ??= new Logs(this._options));
131
+ }
132
+
133
+ private _reporting?: Reporting;
134
+ get reporting(): Reporting {
135
+ return (this._reporting ??= new Reporting(this._options));
136
+ }
137
+
138
+ private _traces?: Traces;
139
+ get traces(): Traces {
140
+ return (this._traces ??= new Traces(this._options));
141
+ }
142
+
126
143
  private _models?: Models;
127
144
  get models(): Models {
128
145
  return (this._models ??= new Models(this._options));
@@ -168,6 +185,11 @@ export class Orq extends ClientSDK {
168
185
  return (this._guardrailRules ??= new GuardrailRules(this._options));
169
186
  }
170
187
 
188
+ private _hub?: Hub;
189
+ get hub(): Hub {
190
+ return (this._hub ??= new Hub(this._options));
191
+ }
192
+
171
193
  private _identities?: Identities;
172
194
  get identities(): Identities {
173
195
  return (this._identities ??= new Identities(this._options));
@@ -208,6 +230,11 @@ export class Orq extends ClientSDK {
208
230
  return (this._routingRules ??= new RoutingRules(this._options));
209
231
  }
210
232
 
233
+ private _sessions?: Sessions;
234
+ get sessions(): Sessions {
235
+ return (this._sessions ??= new Sessions(this._options));
236
+ }
237
+
211
238
  private _skills?: Skills;
212
239
  get skills(): Skills {
213
240
  return (this._skills ??= new Skills(this._options));
@@ -247,19 +274,4 @@ export class Orq extends ClientSDK {
247
274
  get responses(): Responses {
248
275
  return (this._responses ??= new Responses(this._options));
249
276
  }
250
-
251
- private _logs?: Logs;
252
- get logs(): Logs {
253
- return (this._logs ??= new Logs(this._options));
254
- }
255
-
256
- private _reporting?: Reporting;
257
- get reporting(): Reporting {
258
- return (this._reporting ??= new Reporting(this._options));
259
- }
260
-
261
- private _traces?: Traces;
262
- get traces(): Traces {
263
- return (this._traces ??= new Traces(this._options));
264
- }
265
277
  }
@@ -0,0 +1,134 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { sessionsCreate } from "../funcs/sessionsCreate.js";
6
+ import { sessionsDelete } from "../funcs/sessionsDelete.js";
7
+ import { sessionsGet } from "../funcs/sessionsGet.js";
8
+ import { sessionsGetCount } from "../funcs/sessionsGetCount.js";
9
+ import { sessionsList } from "../funcs/sessionsList.js";
10
+ import { sessionsListTags } from "../funcs/sessionsListTags.js";
11
+ import { sessionsUpdate } from "../funcs/sessionsUpdate.js";
12
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
13
+ import * as components from "../models/components/index.js";
14
+ import * as operations from "../models/operations/index.js";
15
+ import { unwrapAsync } from "../types/fp.js";
16
+
17
+ export class Sessions extends ClientSDK {
18
+ /**
19
+ * Create trace thread
20
+ *
21
+ * @remarks
22
+ * Create a thread for traces.
23
+ */
24
+ async create(
25
+ request: components.CreateThreadRequest,
26
+ options?: RequestOptions,
27
+ ): Promise<components.Thread> {
28
+ return unwrapAsync(sessionsCreate(
29
+ this,
30
+ request,
31
+ options,
32
+ ));
33
+ }
34
+
35
+ /**
36
+ * Get thread count
37
+ *
38
+ * @remarks
39
+ * Get total count of trace threads.
40
+ */
41
+ async getCount(
42
+ request: components.GetThreadCountRequest,
43
+ options?: RequestOptions,
44
+ ): Promise<components.GetThreadCountResponse> {
45
+ return unwrapAsync(sessionsGetCount(
46
+ this,
47
+ request,
48
+ options,
49
+ ));
50
+ }
51
+
52
+ /**
53
+ * List trace threads
54
+ *
55
+ * @remarks
56
+ * List trace threads from your workspace.
57
+ */
58
+ async list(
59
+ request: components.ListThreadsRequest,
60
+ options?: RequestOptions,
61
+ ): Promise<components.ListThreadsResponse> {
62
+ return unwrapAsync(sessionsList(
63
+ this,
64
+ request,
65
+ options,
66
+ ));
67
+ }
68
+
69
+ /**
70
+ * List thread tags
71
+ *
72
+ * @remarks
73
+ * Retrieves all unique thread tags in the workspace.
74
+ */
75
+ async listTags(
76
+ options?: RequestOptions,
77
+ ): Promise<Array<string>> {
78
+ return unwrapAsync(sessionsListTags(
79
+ this,
80
+ options,
81
+ ));
82
+ }
83
+
84
+ /**
85
+ * Get trace thread
86
+ *
87
+ * @remarks
88
+ * Get a trace thread.
89
+ */
90
+ async get(
91
+ request: operations.GetSessionRequest,
92
+ options?: RequestOptions,
93
+ ): Promise<components.Thread> {
94
+ return unwrapAsync(sessionsGet(
95
+ this,
96
+ request,
97
+ options,
98
+ ));
99
+ }
100
+
101
+ /**
102
+ * Delete trace thread
103
+ *
104
+ * @remarks
105
+ * Delete a trace thread.
106
+ */
107
+ async delete(
108
+ request: operations.DeleteSessionRequest,
109
+ options?: RequestOptions,
110
+ ): Promise<void> {
111
+ return unwrapAsync(sessionsDelete(
112
+ this,
113
+ request,
114
+ options,
115
+ ));
116
+ }
117
+
118
+ /**
119
+ * Update trace thread
120
+ *
121
+ * @remarks
122
+ * Update a trace thread.
123
+ */
124
+ async update(
125
+ request: operations.UpdateSessionRequest,
126
+ options?: RequestOptions,
127
+ ): Promise<components.Thread> {
128
+ return unwrapAsync(sessionsUpdate(
129
+ this,
130
+ request,
131
+ options,
132
+ ));
133
+ }
134
+ }
package/src/lib/config.ts CHANGED
@@ -58,7 +58,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
58
58
  export const SDK_METADATA = {
59
59
  language: "typescript",
60
60
  openapiDocVersion: "2.0",
61
- sdkVersion: "4.14.13",
61
+ sdkVersion: "4.14.15",
62
62
  genVersion: "2.935.1",
63
- userAgent: "speakeasy-sdk/typescript 4.14.13 2.935.1 2.0 @orq-ai/node",
63
+ userAgent: "speakeasy-sdk/typescript 4.14.15 2.935.1 2.0 @orq-ai/node",
64
64
  } as const;
@@ -860,8 +860,8 @@ export const EvaluatorResponseFunction$inboundSchema: z.ZodType<
860
860
  > = z.object({
861
861
  _id: z.string(),
862
862
  description: z.string(),
863
- created: z.string().default("2026-09-06T12:48:20.359Z"),
864
- updated: z.string().default("2026-09-06T12:48:20.359Z"),
863
+ created: z.string().default("2026-09-08T23:04:09.774Z"),
864
+ updated: z.string().default("2026-09-08T23:04:09.774Z"),
865
865
  updated_by_id: z.nullable(z.string()).optional(),
866
866
  project_id: z.string().optional(),
867
867
  guardrail_config: z.any().optional(),
@@ -46,8 +46,8 @@ export const EvaluatorResponseHttp$inboundSchema: z.ZodType<
46
46
  > = z.object({
47
47
  _id: z.string(),
48
48
  description: z.string(),
49
- created: z.string().default("2026-09-06T12:48:20.359Z"),
50
- updated: z.string().default("2026-09-06T12:48:20.359Z"),
49
+ created: z.string().default("2026-09-08T23:04:09.774Z"),
50
+ updated: z.string().default("2026-09-08T23:04:09.774Z"),
51
51
  updated_by_id: z.nullable(z.string()).optional(),
52
52
  project_id: z.string().optional(),
53
53
  guardrail_config: z.any().optional(),
@@ -32,8 +32,8 @@ export const EvaluatorResponseJsonSchema$inboundSchema: z.ZodType<
32
32
  > = z.object({
33
33
  _id: z.string(),
34
34
  description: z.string(),
35
- created: z.string().default("2026-09-06T12:48:20.359Z"),
36
- updated: z.string().default("2026-09-06T12:48:20.359Z"),
35
+ created: z.string().default("2026-09-08T23:04:09.774Z"),
36
+ updated: z.string().default("2026-09-08T23:04:09.774Z"),
37
37
  updated_by_id: z.nullable(z.string()).optional(),
38
38
  project_id: z.string().optional(),
39
39
  guardrail_config: z.any().optional(),
@@ -271,8 +271,8 @@ export const EvaluatorResponseLlm$inboundSchema: z.ZodType<
271
271
  > = z.object({
272
272
  _id: z.string(),
273
273
  description: z.string(),
274
- created: z.string().default("2026-09-06T12:48:20.359Z"),
275
- updated: z.string().default("2026-09-06T12:48:20.359Z"),
274
+ created: z.string().default("2026-09-08T23:04:09.774Z"),
275
+ updated: z.string().default("2026-09-08T23:04:09.774Z"),
276
276
  updated_by_id: z.nullable(z.string()).optional(),
277
277
  project_id: z.string().optional(),
278
278
  guardrail_config: z.any().optional(),
@@ -32,8 +32,8 @@ export const EvaluatorResponsePython$inboundSchema: z.ZodType<
32
32
  > = z.object({
33
33
  _id: z.string(),
34
34
  description: z.string(),
35
- created: z.string().default("2026-09-06T12:48:20.359Z"),
36
- updated: z.string().default("2026-09-06T12:48:20.359Z"),
35
+ created: z.string().default("2026-09-08T23:04:09.774Z"),
36
+ updated: z.string().default("2026-09-08T23:04:09.774Z"),
37
37
  updated_by_id: z.nullable(z.string()).optional(),
38
38
  project_id: z.string().optional(),
39
39
  guardrail_config: z.any().optional(),
@@ -54,8 +54,8 @@ export const EvaluatorResponseRagas$inboundSchema: z.ZodType<
54
54
  > = z.object({
55
55
  _id: z.string(),
56
56
  description: z.string(),
57
- created: z.string().default("2026-09-06T12:48:20.359Z"),
58
- updated: z.string().default("2026-09-06T12:48:20.359Z"),
57
+ created: z.string().default("2026-09-08T23:04:09.774Z"),
58
+ updated: z.string().default("2026-09-08T23:04:09.774Z"),
59
59
  updated_by_id: z.nullable(z.string()).optional(),
60
60
  project_id: z.string().optional(),
61
61
  guardrail_config: z.any().optional(),
@@ -32,8 +32,8 @@ export const EvaluatorResponseTypescript$inboundSchema: z.ZodType<
32
32
  > = z.object({
33
33
  _id: z.string(),
34
34
  description: z.string(),
35
- created: z.string().default("2026-09-06T12:48:20.359Z"),
36
- updated: z.string().default("2026-09-06T12:48:20.359Z"),
35
+ created: z.string().default("2026-09-08T23:04:09.774Z"),
36
+ updated: z.string().default("2026-09-08T23:04:09.774Z"),
37
37
  updated_by_id: z.nullable(z.string()).optional(),
38
38
  project_id: z.string().optional(),
39
39
  guardrail_config: z.any().optional(),
@@ -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_01m1vc6p405047gf58ck2v89ez"),
43
+ _id: z.string().default("reasoning_01m21m7qk8xd94efpg2xt4fdmn"),
44
44
  metadata: z.record(z.any()).optional(),
45
45
  kind: z.literal("reasoning"),
46
46
  reasoning: z.string(),
@@ -151,7 +151,7 @@ export const CreateAnnotationQueueResponseBody$inboundSchema: z.ZodType<
151
151
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
152
152
  .optional(),
153
153
  updated: z.string().datetime({ offset: true }).default(
154
- "2026-09-06T12:48:18.752Z",
154
+ "2026-09-08T23:04:08.153Z",
155
155
  ).transform(v => new Date(v)),
156
156
  }).transform((v) => {
157
157
  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-09-06T12:48:18.752Z",
141
+ "2026-09-08T23:04:08.153Z",
142
142
  ).transform(v => new Date(v)),
143
143
  }).transform((v) => {
144
144
  return remap$(v, {
@@ -2739,7 +2739,7 @@ export const Evaluations4$inboundSchema: z.ZodType<
2739
2739
  explanation: z.string().optional(),
2740
2740
  reviewed_by_id: z.string(),
2741
2741
  reviewed_at: z.string().datetime({ offset: true }).default(
2742
- "2026-09-06T12:48:29.117Z",
2742
+ "2026-09-08T23:04:18.598Z",
2743
2743
  ).transform(v => new Date(v)),
2744
2744
  type: z.literal("string_array"),
2745
2745
  values: z.array(z.string()),
@@ -2829,7 +2829,7 @@ export const CreateDatasetItemEvaluations3$inboundSchema: z.ZodType<
2829
2829
  explanation: z.string().optional(),
2830
2830
  reviewed_by_id: z.string(),
2831
2831
  reviewed_at: z.string().datetime({ offset: true }).default(
2832
- "2026-09-06T12:48:29.116Z",
2832
+ "2026-09-08T23:04:18.597Z",
2833
2833
  ).transform(v => new Date(v)),
2834
2834
  type: z.literal("boolean"),
2835
2835
  value: z.boolean(),
@@ -2914,7 +2914,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
2914
2914
  explanation: z.string().optional(),
2915
2915
  reviewed_by_id: z.string(),
2916
2916
  reviewed_at: z.string().datetime({ offset: true }).default(
2917
- "2026-09-06T12:48:29.116Z",
2917
+ "2026-09-08T23:04:18.596Z",
2918
2918
  ).transform(v => new Date(v)),
2919
2919
  type: z.literal("number"),
2920
2920
  value: z.number(),
@@ -3000,7 +3000,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
3000
3000
  explanation: z.string().optional(),
3001
3001
  reviewed_by_id: z.string(),
3002
3002
  reviewed_at: z.string().datetime({ offset: true }).default(
3003
- "2026-09-06T12:48:29.115Z",
3003
+ "2026-09-08T23:04:18.596Z",
3004
3004
  ).transform(v => new Date(v)),
3005
3005
  type: z.literal("string"),
3006
3006
  value: z.string(),
@@ -3087,7 +3087,7 @@ export const ResponseBody$inboundSchema: z.ZodType<
3087
3087
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
3088
3088
  .optional(),
3089
3089
  updated: z.string().datetime({ offset: true }).default(
3090
- "2026-09-06T12:48:18.752Z",
3090
+ "2026-09-08T23:04:08.153Z",
3091
3091
  ).transform(v => new Date(v)),
3092
3092
  }).transform((v) => {
3093
3093
  return remap$(v, {
@@ -1573,7 +1573,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
1573
1573
  z.ZodTypeDef,
1574
1574
  unknown
1575
1575
  > = z.object({
1576
- _id: z.string().default("tool_01M1VC6PBSPVW8MFMA1A5AXBTE"),
1576
+ _id: z.string().default("tool_01M21M7QV1AXM83S9SN0GC6C5S"),
1577
1577
  path: z.string(),
1578
1578
  key: z.string(),
1579
1579
  display_name: z.string().optional(),
@@ -1760,7 +1760,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
1760
1760
  z.ZodTypeDef,
1761
1761
  unknown
1762
1762
  > = z.object({
1763
- _id: z.string().default("tool_01M1VC6PBQDDJ722EDRF7WG7J0"),
1763
+ _id: z.string().default("tool_01M21M7QTZFA70ZWS0TX180CB0"),
1764
1764
  path: z.string(),
1765
1765
  key: z.string(),
1766
1766
  display_name: z.string().optional(),
@@ -1853,7 +1853,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
1853
1853
  z.ZodTypeDef,
1854
1854
  unknown
1855
1855
  > = z.object({
1856
- _id: z.string().default("tool_01M1VC6PBP76XFJAJXSXVCVESG"),
1856
+ _id: z.string().default("tool_01M21M7QTYESZFZSWN27SSP4T2"),
1857
1857
  path: z.string(),
1858
1858
  key: z.string(),
1859
1859
  display_name: z.string().optional(),
@@ -1954,7 +1954,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
1954
1954
  z.ZodTypeDef,
1955
1955
  unknown
1956
1956
  > = z.object({
1957
- _id: z.string().default("tool_01M1VC6PBNNFC0ENZ9W308Q434"),
1957
+ _id: z.string().default("tool_01M21M7QTXBTPA8A5362N244BV"),
1958
1958
  path: z.string(),
1959
1959
  key: z.string(),
1960
1960
  display_name: z.string().optional(),
@@ -639,7 +639,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
639
639
  z.ZodTypeDef,
640
640
  unknown
641
641
  > = z.object({
642
- _id: z.string().default("tool_01M1VC6PBE298PV04YMQTVCYDX"),
642
+ _id: z.string().default("tool_01M21M7QTP919C5FQCBNC57RKN"),
643
643
  path: z.string(),
644
644
  key: z.string(),
645
645
  display_name: z.string().optional(),
@@ -821,7 +821,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
821
821
  z.ZodTypeDef,
822
822
  unknown
823
823
  > = z.object({
824
- _id: z.string().default("tool_01M1VC6PBC7S8KG5FAQS69TJ94"),
824
+ _id: z.string().default("tool_01M21M7QTMTCC360W5GSZ8TPH5"),
825
825
  path: z.string(),
826
826
  key: z.string(),
827
827
  display_name: z.string().optional(),
@@ -914,7 +914,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
914
914
  z.ZodTypeDef,
915
915
  unknown
916
916
  > = z.object({
917
- _id: z.string().default("tool_01M1VC6PBAA5PQG4P78ZGWV01K"),
917
+ _id: z.string().default("tool_01M21M7QTFPCB4XQKYMCQBWESP"),
918
918
  path: z.string(),
919
919
  key: z.string(),
920
920
  display_name: z.string().optional(),
@@ -1012,7 +1012,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
1012
1012
  z.ZodTypeDef,
1013
1013
  unknown
1014
1014
  > = z.object({
1015
- _id: z.string().default("tool_01M1VC6PB9YBC3GVDPFXHXJQKP"),
1015
+ _id: z.string().default("tool_01M21M7QTEV7J3Q321039HTTPM"),
1016
1016
  path: z.string(),
1017
1017
  key: z.string(),
1018
1018
  display_name: z.string().optional(),