@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
@@ -131,6 +131,7 @@ export * from "./createskillrequest.js";
131
131
  export * from "./createskillresponse.js";
132
132
  export * from "./createsmartrouterrequest.js";
133
133
  export * from "./createsmartrouterresponse.js";
134
+ export * from "./createthreadrequest.js";
134
135
  export * from "./createwebhookrequest.js";
135
136
  export * from "./currentdatetoolinput.js";
136
137
  export * from "./datapart.js";
@@ -183,7 +184,6 @@ export * from "./errorpart.js";
183
184
  export * from "./errorstreamingevent.js";
184
185
  export * from "./evaluationcontext.js";
185
186
  export * from "./evaluationresult.js";
186
- export * from "./evaluatordocumentresponse.js";
187
187
  export * from "./evaluatorref.js";
188
188
  export * from "./executionnamedstreamingevent.js";
189
189
  export * from "./executionreviewedstreamingevent.js";
@@ -211,10 +211,10 @@ export * from "./generatewebhooksecretresponse.js";
211
211
  export * from "./getagentresponse.js";
212
212
  export * from "./getalertresponse.js";
213
213
  export * from "./getbudgetresponse.js";
214
- export * from "./getevaluatorversionresponse.js";
215
214
  export * from "./getfilecontentresponse.js";
216
215
  export * from "./getfileresponse.js";
217
216
  export * from "./getguardrailruleresponse.js";
217
+ export * from "./gethubitemresponse.js";
218
218
  export * from "./getipallowlistresponse.js";
219
219
  export * from "./getlogcontextrequest.js";
220
220
  export * from "./getlogcontextresponse.js";
@@ -227,6 +227,8 @@ export * from "./getnotifierresponse.js";
227
227
  export * from "./getprojectresponse.js";
228
228
  export * from "./getskillresponse.js";
229
229
  export * from "./getsmartrouterresponse.js";
230
+ export * from "./getthreadcountrequest.js";
231
+ export * from "./getthreadcountresponse.js";
230
232
  export * from "./gettraceresponse.js";
231
233
  export * from "./gettracespanresponse.js";
232
234
  export * from "./getuploadfileurlresponse.js";
@@ -238,6 +240,9 @@ export * from "./guardrailruleexpression.js";
238
240
  export * from "./guardrailruleguardrail.js";
239
241
  export * from "./guardrailruleplugin.js";
240
242
  export * from "./httptoolinput.js";
243
+ export * from "./hubitem.js";
244
+ export * from "./hubitemsummary.js";
245
+ export * from "./hubsearchhit.js";
241
246
  export * from "./identity.js";
242
247
  export * from "./identitybudgetscope.js";
243
248
  export * from "./identitybudgetscoperestresponse.js";
@@ -248,7 +253,6 @@ export * from "./incompletedetails.js";
248
253
  export * from "./inputtokensdetails.js";
249
254
  export * from "./internalretrievalconfig.js";
250
255
  export * from "./invokeevaluatorrequest.js";
251
- export * from "./invokeevaluatorresponse.js";
252
256
  export * from "./ipallowlist.js";
253
257
  export * from "./iprange.js";
254
258
  export * from "./jsonschematoolinput.js";
@@ -297,6 +301,8 @@ export * from "./listroutingrulesresponse.js";
297
301
  export * from "./listroutingruleusedmodelsresponse.js";
298
302
  export * from "./listskillsresponse.js";
299
303
  export * from "./listsmartroutersresponse.js";
304
+ export * from "./listthreadsrequest.js";
305
+ export * from "./listthreadsresponse.js";
300
306
  export * from "./listtracefacetsresponse.js";
301
307
  export * from "./listtracefacetvaluesresponse.js";
302
308
  export * from "./listtracefieldsresponse.js";
@@ -363,6 +369,7 @@ export * from "./movefilesystemfilerequest.js";
363
369
  export * from "./movefilesystemfileresponse.js";
364
370
  export * from "./notifier.js";
365
371
  export * from "./notifiertype.js";
372
+ export * from "./openaipromptcacheoptions.js";
366
373
  export * from "./orqadvisortool.js";
367
374
  export * from "./orqsidekicktool.js";
368
375
  export * from "./outputtokensdetails.js";
@@ -510,6 +517,7 @@ export * from "./routingrulemodel.js";
510
517
  export * from "./routingrulemodelsconfig.js";
511
518
  export * from "./routingruleplugin.js";
512
519
  export * from "./scopemode.js";
520
+ export * from "./searchhubitemsresponse.js";
513
521
  export * from "./searchknowledgematch.js";
514
522
  export * from "./searchknowledgerequest.js";
515
523
  export * from "./searchknowledgeresponse.js";
@@ -526,6 +534,7 @@ export * from "./security.js";
526
534
  export * from "./securityconfig.js";
527
535
  export * from "./servertoolusedetails.js";
528
536
  export * from "./serviceaccountowner.js";
537
+ export * from "./sessioninterval.js";
529
538
  export * from "./sharing.js";
530
539
  export * from "./sharingallprojects.js";
531
540
  export * from "./sharingselectedprojects.js";
@@ -552,6 +561,11 @@ export * from "./textpart.js";
552
561
  export * from "./thinkingconfigadaptiveschema.js";
553
562
  export * from "./thinkingconfigdisabledschema.js";
554
563
  export * from "./thinkingconfigenabledschema.js";
564
+ export * from "./thread.js";
565
+ export * from "./threadbilling.js";
566
+ export * from "./threadfilters.js";
567
+ export * from "./threadkind.js";
568
+ export * from "./threadusage.js";
555
569
  export * from "./timeoutconfig.js";
556
570
  export * from "./timeoutstreamingevent.js";
557
571
  export * from "./tokenlimit.js";
@@ -614,6 +628,7 @@ export * from "./updateskillrequest.js";
614
628
  export * from "./updateskillresponse.js";
615
629
  export * from "./updatesmartrouterrequest.js";
616
630
  export * from "./updatesmartrouterresponse.js";
631
+ export * from "./updatethreadrequest.js";
617
632
  export * from "./updateworkspacerequest.js";
618
633
  export * from "./updateworkspaceresponse.js";
619
634
  export * from "./updateworkspacesettingsrequest.js";
@@ -0,0 +1,42 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import {
7
+ ThreadFilters,
8
+ ThreadFilters$Outbound,
9
+ ThreadFilters$outboundSchema,
10
+ } from "./threadfilters.js";
11
+
12
+ export type ListThreadsRequest = {
13
+ filters: ThreadFilters;
14
+ limit?: number | undefined;
15
+ page?: number | undefined;
16
+ };
17
+
18
+ /** @internal */
19
+ export type ListThreadsRequest$Outbound = {
20
+ filters: ThreadFilters$Outbound;
21
+ limit?: number | undefined;
22
+ page?: number | undefined;
23
+ };
24
+
25
+ /** @internal */
26
+ export const ListThreadsRequest$outboundSchema: z.ZodType<
27
+ ListThreadsRequest$Outbound,
28
+ z.ZodTypeDef,
29
+ ListThreadsRequest
30
+ > = z.object({
31
+ filters: ThreadFilters$outboundSchema,
32
+ limit: z.number().int().optional(),
33
+ page: z.number().int().optional(),
34
+ });
35
+
36
+ export function listThreadsRequestToJSON(
37
+ listThreadsRequest: ListThreadsRequest,
38
+ ): string {
39
+ return JSON.stringify(
40
+ ListThreadsRequest$outboundSchema.parse(listThreadsRequest),
41
+ );
42
+ }
@@ -0,0 +1,41 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import { Thread, Thread$inboundSchema } from "./thread.js";
11
+
12
+ export type ListThreadsResponse = {
13
+ object: string;
14
+ data: Array<Thread>;
15
+ hasMore: boolean;
16
+ };
17
+
18
+ /** @internal */
19
+ export const ListThreadsResponse$inboundSchema: z.ZodType<
20
+ ListThreadsResponse,
21
+ z.ZodTypeDef,
22
+ unknown
23
+ > = z.object({
24
+ object: z.string(),
25
+ data: z.array(Thread$inboundSchema),
26
+ has_more: z.boolean(),
27
+ }).transform((v) => {
28
+ return remap$(v, {
29
+ "has_more": "hasMore",
30
+ });
31
+ });
32
+
33
+ export function listThreadsResponseFromJSON(
34
+ jsonString: string,
35
+ ): SafeParseResult<ListThreadsResponse, SDKValidationError> {
36
+ return safeParse(
37
+ jsonString,
38
+ (x) => ListThreadsResponse$inboundSchema.parse(JSON.parse(x)),
39
+ `Failed to parse 'ListThreadsResponse' from JSON`,
40
+ );
41
+ }
@@ -43,10 +43,9 @@ export type ManagementKey = {
43
43
  * Per-domain access map. Only populated when `permission_mode` is
44
44
  *
45
45
  * @remarks
46
- * `MANAGEMENT_PERMISSION_MODE_RESTRICTED`. Valid keys are the Domain.id
47
- * values in the management capability catalog — see
48
- * libs/catalog/orq/managementkeys/v1/catalog.textpb for the canonical
49
- * list.
46
+ * `MANAGEMENT_PERMISSION_MODE_RESTRICTED`. The authoritative list of
47
+ * valid keys (Domain.id values) is returned by the List management
48
+ * capability catalog endpoint (GET /v2/management-keys/capabilities).
50
49
  */
51
50
  access?: { [k: string]: AccessLevel } | undefined;
52
51
  /**
@@ -41,6 +41,7 @@ export type ModelMetadata = {
41
41
  embeddingDimensions?: number | undefined;
42
42
  extendedContextPricingMode?: string | undefined;
43
43
  extendedContextThreshold?: number | undefined;
44
+ functionToolsRequireEffortNone?: boolean | undefined;
44
45
  generateAudio?: boolean | undefined;
45
46
  imageInputCost?: number | undefined;
46
47
  imageOutputCost?: number | undefined;
@@ -172,6 +173,7 @@ export const ModelMetadata$inboundSchema: z.ZodType<
172
173
  embedding_dimensions: z.number().int().optional(),
173
174
  extended_context_pricing_mode: z.string().optional(),
174
175
  extended_context_threshold: z.number().int().optional(),
176
+ function_tools_require_effort_none: z.boolean().optional(),
175
177
  generate_audio: z.boolean().optional(),
176
178
  image_input_cost: z.number().optional(),
177
179
  image_output_cost: z.number().optional(),
@@ -297,6 +299,7 @@ export const ModelMetadata$inboundSchema: z.ZodType<
297
299
  "embedding_dimensions": "embeddingDimensions",
298
300
  "extended_context_pricing_mode": "extendedContextPricingMode",
299
301
  "extended_context_threshold": "extendedContextThreshold",
302
+ "function_tools_require_effort_none": "functionToolsRequireEffortNone",
300
303
  "generate_audio": "generateAudio",
301
304
  "image_input_cost": "imageInputCost",
302
305
  "image_output_cost": "imageOutputCost",
@@ -424,6 +427,7 @@ export type ModelMetadata$Outbound = {
424
427
  embedding_dimensions?: number | undefined;
425
428
  extended_context_pricing_mode?: string | undefined;
426
429
  extended_context_threshold?: number | undefined;
430
+ function_tools_require_effort_none?: boolean | undefined;
427
431
  generate_audio?: boolean | undefined;
428
432
  image_input_cost?: number | undefined;
429
433
  image_output_cost?: number | undefined;
@@ -557,6 +561,7 @@ export const ModelMetadata$outboundSchema: z.ZodType<
557
561
  embeddingDimensions: z.number().int().optional(),
558
562
  extendedContextPricingMode: z.string().optional(),
559
563
  extendedContextThreshold: z.number().int().optional(),
564
+ functionToolsRequireEffortNone: z.boolean().optional(),
560
565
  generateAudio: z.boolean().optional(),
561
566
  imageInputCost: z.number().optional(),
562
567
  imageOutputCost: z.number().optional(),
@@ -682,6 +687,7 @@ export const ModelMetadata$outboundSchema: z.ZodType<
682
687
  embeddingDimensions: "embedding_dimensions",
683
688
  extendedContextPricingMode: "extended_context_pricing_mode",
684
689
  extendedContextThreshold: "extended_context_threshold",
690
+ functionToolsRequireEffortNone: "function_tools_require_effort_none",
685
691
  generateAudio: "generate_audio",
686
692
  imageInputCost: "image_input_cost",
687
693
  imageOutputCost: "image_output_cost",
@@ -14,26 +14,27 @@ import {
14
14
  ModelRef$outboundSchema,
15
15
  } from "./modelref.js";
16
16
 
17
- export const Mode = {
17
+ export const ModelsConfigMode = {
18
18
  Fallback: "fallback",
19
19
  LatencyBased: "latency_based",
20
20
  Weighted: "weighted",
21
21
  RoundRobin: "round_robin",
22
22
  } as const;
23
- export type Mode = ClosedEnum<typeof Mode>;
23
+ export type ModelsConfigMode = ClosedEnum<typeof ModelsConfigMode>;
24
24
 
25
25
  export type ModelsConfig = {
26
- mode: Mode;
26
+ mode: ModelsConfigMode;
27
27
  models: Array<ModelRef> | null;
28
28
  };
29
29
 
30
30
  /** @internal */
31
- export const Mode$inboundSchema: z.ZodNativeEnum<typeof Mode> = z.nativeEnum(
32
- Mode,
33
- );
31
+ export const ModelsConfigMode$inboundSchema: z.ZodNativeEnum<
32
+ typeof ModelsConfigMode
33
+ > = z.nativeEnum(ModelsConfigMode);
34
34
  /** @internal */
35
- export const Mode$outboundSchema: z.ZodNativeEnum<typeof Mode> =
36
- Mode$inboundSchema;
35
+ export const ModelsConfigMode$outboundSchema: z.ZodNativeEnum<
36
+ typeof ModelsConfigMode
37
+ > = ModelsConfigMode$inboundSchema;
37
38
 
38
39
  /** @internal */
39
40
  export const ModelsConfig$inboundSchema: z.ZodType<
@@ -41,7 +42,7 @@ export const ModelsConfig$inboundSchema: z.ZodType<
41
42
  z.ZodTypeDef,
42
43
  unknown
43
44
  > = z.object({
44
- mode: Mode$inboundSchema,
45
+ mode: ModelsConfigMode$inboundSchema,
45
46
  models: z.nullable(z.array(ModelRef$inboundSchema)),
46
47
  });
47
48
  /** @internal */
@@ -56,7 +57,7 @@ export const ModelsConfig$outboundSchema: z.ZodType<
56
57
  z.ZodTypeDef,
57
58
  ModelsConfig
58
59
  > = z.object({
59
- mode: Mode$outboundSchema,
60
+ mode: ModelsConfigMode$outboundSchema,
60
61
  models: z.nullable(z.array(ModelRef$outboundSchema)),
61
62
  });
62
63
 
@@ -11,7 +11,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
  /**
12
12
  * Predicate operator. `eq` and `neq` accept exactly one value; `in` and `not_in` accept 1-100 values.
13
13
  */
14
- export const Op = {
14
+ export const MonitorFilterOp = {
15
15
  Eq: "eq",
16
16
  Neq: "neq",
17
17
  In: "in",
@@ -28,7 +28,7 @@ export const Op = {
28
28
  /**
29
29
  * Predicate operator. `eq` and `neq` accept exactly one value; `in` and `not_in` accept 1-100 values.
30
30
  */
31
- export type Op = ClosedEnum<typeof Op>;
31
+ export type MonitorFilterOp = ClosedEnum<typeof MonitorFilterOp>;
32
32
 
33
33
  export type MonitorFilter = {
34
34
  /**
@@ -41,7 +41,7 @@ export type MonitorFilter = {
41
41
  /**
42
42
  * Predicate operator. `eq` and `neq` accept exactly one value; `in` and `not_in` accept 1-100 values.
43
43
  */
44
- op: Op;
44
+ op: MonitorFilterOp;
45
45
  /**
46
46
  * Values compared against the selected field.
47
47
  */
@@ -49,9 +49,13 @@ export type MonitorFilter = {
49
49
  };
50
50
 
51
51
  /** @internal */
52
- export const Op$inboundSchema: z.ZodNativeEnum<typeof Op> = z.nativeEnum(Op);
52
+ export const MonitorFilterOp$inboundSchema: z.ZodNativeEnum<
53
+ typeof MonitorFilterOp
54
+ > = z.nativeEnum(MonitorFilterOp);
53
55
  /** @internal */
54
- export const Op$outboundSchema: z.ZodNativeEnum<typeof Op> = Op$inboundSchema;
56
+ export const MonitorFilterOp$outboundSchema: z.ZodNativeEnum<
57
+ typeof MonitorFilterOp
58
+ > = MonitorFilterOp$inboundSchema;
55
59
 
56
60
  /** @internal */
57
61
  export const MonitorFilter$inboundSchema: z.ZodType<
@@ -60,7 +64,7 @@ export const MonitorFilter$inboundSchema: z.ZodType<
60
64
  unknown
61
65
  > = z.object({
62
66
  field: z.string(),
63
- op: Op$inboundSchema,
67
+ op: MonitorFilterOp$inboundSchema,
64
68
  values: z.array(z.string()),
65
69
  });
66
70
  /** @internal */
@@ -77,7 +81,7 @@ export const MonitorFilter$outboundSchema: z.ZodType<
77
81
  MonitorFilter
78
82
  > = z.object({
79
83
  field: z.string(),
80
- op: Op$outboundSchema,
84
+ op: MonitorFilterOp$outboundSchema,
81
85
  values: z.array(z.string()),
82
86
  });
83
87
 
@@ -0,0 +1,84 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { ClosedEnum } from "../../types/enums.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export const OpenAIPromptCacheOptionsMode = {
12
+ Implicit: "implicit",
13
+ Explicit: "explicit",
14
+ } as const;
15
+ export type OpenAIPromptCacheOptionsMode = ClosedEnum<
16
+ typeof OpenAIPromptCacheOptionsMode
17
+ >;
18
+
19
+ export const Ttl = {
20
+ Thirtym: "30m",
21
+ } as const;
22
+ export type Ttl = ClosedEnum<typeof Ttl>;
23
+
24
+ export type OpenAIPromptCacheOptions = {
25
+ mode?: OpenAIPromptCacheOptionsMode | undefined;
26
+ ttl?: Ttl | undefined;
27
+ };
28
+
29
+ /** @internal */
30
+ export const OpenAIPromptCacheOptionsMode$inboundSchema: z.ZodNativeEnum<
31
+ typeof OpenAIPromptCacheOptionsMode
32
+ > = z.nativeEnum(OpenAIPromptCacheOptionsMode);
33
+ /** @internal */
34
+ export const OpenAIPromptCacheOptionsMode$outboundSchema: z.ZodNativeEnum<
35
+ typeof OpenAIPromptCacheOptionsMode
36
+ > = OpenAIPromptCacheOptionsMode$inboundSchema;
37
+
38
+ /** @internal */
39
+ export const Ttl$inboundSchema: z.ZodNativeEnum<typeof Ttl> = z.nativeEnum(Ttl);
40
+ /** @internal */
41
+ export const Ttl$outboundSchema: z.ZodNativeEnum<typeof Ttl> =
42
+ Ttl$inboundSchema;
43
+
44
+ /** @internal */
45
+ export const OpenAIPromptCacheOptions$inboundSchema: z.ZodType<
46
+ OpenAIPromptCacheOptions,
47
+ z.ZodTypeDef,
48
+ unknown
49
+ > = z.object({
50
+ mode: OpenAIPromptCacheOptionsMode$inboundSchema.optional(),
51
+ ttl: Ttl$inboundSchema.optional(),
52
+ });
53
+ /** @internal */
54
+ export type OpenAIPromptCacheOptions$Outbound = {
55
+ mode?: string | undefined;
56
+ ttl?: string | undefined;
57
+ };
58
+
59
+ /** @internal */
60
+ export const OpenAIPromptCacheOptions$outboundSchema: z.ZodType<
61
+ OpenAIPromptCacheOptions$Outbound,
62
+ z.ZodTypeDef,
63
+ OpenAIPromptCacheOptions
64
+ > = z.object({
65
+ mode: OpenAIPromptCacheOptionsMode$outboundSchema.optional(),
66
+ ttl: Ttl$outboundSchema.optional(),
67
+ });
68
+
69
+ export function openAIPromptCacheOptionsToJSON(
70
+ openAIPromptCacheOptions: OpenAIPromptCacheOptions,
71
+ ): string {
72
+ return JSON.stringify(
73
+ OpenAIPromptCacheOptions$outboundSchema.parse(openAIPromptCacheOptions),
74
+ );
75
+ }
76
+ export function openAIPromptCacheOptionsFromJSON(
77
+ jsonString: string,
78
+ ): SafeParseResult<OpenAIPromptCacheOptions, SDKValidationError> {
79
+ return safeParse(
80
+ jsonString,
81
+ (x) => OpenAIPromptCacheOptions$inboundSchema.parse(JSON.parse(x)),
82
+ `Failed to parse 'OpenAIPromptCacheOptions' from JSON`,
83
+ );
84
+ }
@@ -17,6 +17,10 @@ import {
17
17
  IncompleteDetails$inboundSchema,
18
18
  } from "./incompletedetails.js";
19
19
  import { MemoryParam, MemoryParam$inboundSchema } from "./memoryparam.js";
20
+ import {
21
+ OpenAIPromptCacheOptions,
22
+ OpenAIPromptCacheOptions$inboundSchema,
23
+ } from "./openaipromptcacheoptions.js";
20
24
  import { PublicUsage, PublicUsage$inboundSchema } from "./publicusage.js";
21
25
  import { Reasoning, Reasoning$inboundSchema } from "./reasoning.js";
22
26
  import { ResponseError, ResponseError$inboundSchema } from "./responseerror.js";
@@ -86,6 +90,7 @@ export type PublicResponseResource = {
86
90
  presencePenalty: number;
87
91
  previousResponseId: string | null;
88
92
  promptCacheKey: string | null;
93
+ promptCacheOptions: OpenAIPromptCacheOptions | null;
89
94
  promptCacheRetention: string | null;
90
95
  reasoning: Reasoning | null;
91
96
  safetyIdentifier: string | null;
@@ -158,6 +163,7 @@ export const PublicResponseResource$inboundSchema: z.ZodType<
158
163
  presence_penalty: z.number(),
159
164
  previous_response_id: z.nullable(z.string()),
160
165
  prompt_cache_key: z.nullable(z.string()),
166
+ prompt_cache_options: z.nullable(OpenAIPromptCacheOptions$inboundSchema),
161
167
  prompt_cache_retention: z.nullable(z.string()),
162
168
  reasoning: z.nullable(Reasoning$inboundSchema),
163
169
  safety_identifier: z.nullable(z.string()),
@@ -188,6 +194,7 @@ export const PublicResponseResource$inboundSchema: z.ZodType<
188
194
  "presence_penalty": "presencePenalty",
189
195
  "previous_response_id": "previousResponseId",
190
196
  "prompt_cache_key": "promptCacheKey",
197
+ "prompt_cache_options": "promptCacheOptions",
191
198
  "prompt_cache_retention": "promptCacheRetention",
192
199
  "safety_identifier": "safetyIdentifier",
193
200
  "service_tier": "serviceTier",
@@ -98,14 +98,14 @@ export type GroupBy = ClosedEnum<typeof GroupBy>;
98
98
  /**
99
99
  * Value shaping. `timeseries` (default) buckets by time; `scalar` returns one aggregated row per group over the whole window, ordered by value (top list), or a single row when `group_by` is empty.
100
100
  */
101
- export const QueryReportRequestMode = {
101
+ export const Mode = {
102
102
  Timeseries: "timeseries",
103
103
  Scalar: "scalar",
104
104
  } as const;
105
105
  /**
106
106
  * Value shaping. `timeseries` (default) buckets by time; `scalar` returns one aggregated row per group over the whole window, ordered by value (top list), or a single row when `group_by` is empty.
107
107
  */
108
- export type QueryReportRequestMode = ClosedEnum<typeof QueryReportRequestMode>;
108
+ export type Mode = ClosedEnum<typeof Mode>;
109
109
 
110
110
  /**
111
111
  * Value ordering for `scalar` rows. Defaults to `desc`. Ignored for `timeseries`.
@@ -168,7 +168,7 @@ export type QueryReportRequest = {
168
168
  /**
169
169
  * Value shaping. `timeseries` (default) buckets by time; `scalar` returns one aggregated row per group over the whole window, ordered by value (top list), or a single row when `group_by` is empty.
170
170
  */
171
- mode?: QueryReportRequestMode | undefined;
171
+ mode?: Mode | undefined;
172
172
  /**
173
173
  * Value ordering for `scalar` rows. Defaults to `desc`. Ignored for `timeseries`.
174
174
  */
@@ -198,13 +198,12 @@ export const GroupBy$outboundSchema: z.ZodNativeEnum<typeof GroupBy> =
198
198
  GroupBy$inboundSchema;
199
199
 
200
200
  /** @internal */
201
- export const QueryReportRequestMode$inboundSchema: z.ZodNativeEnum<
202
- typeof QueryReportRequestMode
203
- > = z.nativeEnum(QueryReportRequestMode);
201
+ export const Mode$inboundSchema: z.ZodNativeEnum<typeof Mode> = z.nativeEnum(
202
+ Mode,
203
+ );
204
204
  /** @internal */
205
- export const QueryReportRequestMode$outboundSchema: z.ZodNativeEnum<
206
- typeof QueryReportRequestMode
207
- > = QueryReportRequestMode$inboundSchema;
205
+ export const Mode$outboundSchema: z.ZodNativeEnum<typeof Mode> =
206
+ Mode$inboundSchema;
208
207
 
209
208
  /** @internal */
210
209
  export const Sort$inboundSchema: z.ZodNativeEnum<typeof Sort> = z.nativeEnum(
@@ -229,7 +228,7 @@ export const QueryReportRequest$inboundSchema: z.ZodType<
229
228
  limit: z.number().int().optional(),
230
229
  time_zone: z.string().optional(),
231
230
  include_totals: z.boolean().optional(),
232
- mode: QueryReportRequestMode$inboundSchema.optional(),
231
+ mode: Mode$inboundSchema.optional(),
233
232
  sort: Sort$inboundSchema.optional(),
234
233
  }).transform((v) => {
235
234
  return remap$(v, {
@@ -268,7 +267,7 @@ export const QueryReportRequest$outboundSchema: z.ZodType<
268
267
  limit: z.number().int().optional(),
269
268
  timeZone: z.string().optional(),
270
269
  includeTotals: z.boolean().optional(),
271
- mode: QueryReportRequestMode$outboundSchema.optional(),
270
+ mode: Mode$outboundSchema.optional(),
272
271
  sort: Sort$outboundSchema.optional(),
273
272
  }).transform((v) => {
274
273
  return remap$(v, {
@@ -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_01m1ny970yxt51fwq3537kvmda"),
43
+ _id: z.string().default("reasoning_01m20sccb4qxe7zbkw6zsvra91"),
44
44
  metadata: z.record(z.any()).optional(),
45
45
  kind: z.literal("reasoning"),
46
46
  reasoning: z.string(),
@@ -25,13 +25,13 @@ export type EffectiveGrain = ClosedEnum<typeof EffectiveGrain>;
25
25
  /**
26
26
  * ISO 4217 currency code for cost fields. Always `USD` today.
27
27
  */
28
- export const ResponseMetaCurrency = {
28
+ export const Currency = {
29
29
  Usd: "USD",
30
30
  } as const;
31
31
  /**
32
32
  * ISO 4217 currency code for cost fields. Always `USD` today.
33
33
  */
34
- export type ResponseMetaCurrency = ClosedEnum<typeof ResponseMetaCurrency>;
34
+ export type Currency = ClosedEnum<typeof Currency>;
35
35
 
36
36
  export type ResponseMeta = {
37
37
  /**
@@ -56,7 +56,7 @@ export type ResponseMeta = {
56
56
  /**
57
57
  * ISO 4217 currency code for cost fields. Always `USD` today.
58
58
  */
59
- currency?: ResponseMetaCurrency | undefined;
59
+ currency?: Currency | undefined;
60
60
  /**
61
61
  * Non-fatal warnings about the response. May contain `totals_unavailable` when totals were requested but failed.
62
62
  */
@@ -69,9 +69,8 @@ export const EffectiveGrain$inboundSchema: z.ZodNativeEnum<
69
69
  > = z.nativeEnum(EffectiveGrain);
70
70
 
71
71
  /** @internal */
72
- export const ResponseMetaCurrency$inboundSchema: z.ZodNativeEnum<
73
- typeof ResponseMetaCurrency
74
- > = z.nativeEnum(ResponseMetaCurrency);
72
+ export const Currency$inboundSchema: z.ZodNativeEnum<typeof Currency> = z
73
+ .nativeEnum(Currency);
75
74
 
76
75
  /** @internal */
77
76
  export const ResponseMeta$inboundSchema: z.ZodType<
@@ -82,7 +81,7 @@ export const ResponseMeta$inboundSchema: z.ZodType<
82
81
  effective_grain: EffectiveGrain$inboundSchema.optional(),
83
82
  row_count: z.number().int().optional(),
84
83
  request_id: z.string().optional(),
85
- currency: ResponseMetaCurrency$inboundSchema.optional(),
84
+ currency: Currency$inboundSchema.optional(),
86
85
  warnings: z.array(z.string()).optional(),
87
86
  }).transform((v) => {
88
87
  return remap$(v, {
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import { HubSearchHit, HubSearchHit$inboundSchema } from "./hubsearchhit.js";
10
+
11
+ export type SearchHubItemsResponse = {
12
+ hits: Array<HubSearchHit>;
13
+ };
14
+
15
+ /** @internal */
16
+ export const SearchHubItemsResponse$inboundSchema: z.ZodType<
17
+ SearchHubItemsResponse,
18
+ z.ZodTypeDef,
19
+ unknown
20
+ > = z.object({
21
+ hits: z.array(HubSearchHit$inboundSchema),
22
+ });
23
+
24
+ export function searchHubItemsResponseFromJSON(
25
+ jsonString: string,
26
+ ): SafeParseResult<SearchHubItemsResponse, SDKValidationError> {
27
+ return safeParse(
28
+ jsonString,
29
+ (x) => SearchHubItemsResponse$inboundSchema.parse(JSON.parse(x)),
30
+ `Failed to parse 'SearchHubItemsResponse' from JSON`,
31
+ );
32
+ }
@@ -0,0 +1,26 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ export const SessionInterval = {
9
+ SessionIntervalUnspecified: "SESSION_INTERVAL_UNSPECIFIED",
10
+ SessionIntervalAllTime: "SESSION_INTERVAL_ALL_TIME",
11
+ SessionIntervalLast30Minutes: "SESSION_INTERVAL_LAST_30_MINUTES",
12
+ SessionIntervalLast1Hour: "SESSION_INTERVAL_LAST_1_HOUR",
13
+ SessionIntervalLast6Hours: "SESSION_INTERVAL_LAST_6_HOURS",
14
+ SessionIntervalLast24Hours: "SESSION_INTERVAL_LAST_24_HOURS",
15
+ SessionIntervalLast3Days: "SESSION_INTERVAL_LAST_3_DAYS",
16
+ SessionIntervalLast7Days: "SESSION_INTERVAL_LAST_7_DAYS",
17
+ SessionIntervalLast14Days: "SESSION_INTERVAL_LAST_14_DAYS",
18
+ SessionIntervalLast1Month: "SESSION_INTERVAL_LAST_1_MONTH",
19
+ SessionIntervalLast3Months: "SESSION_INTERVAL_LAST_3_MONTHS",
20
+ } as const;
21
+ export type SessionInterval = ClosedEnum<typeof SessionInterval>;
22
+
23
+ /** @internal */
24
+ export const SessionInterval$outboundSchema: z.ZodNativeEnum<
25
+ typeof SessionInterval
26
+ > = z.nativeEnum(SessionInterval);