@orq-ai/node 4.14.17 → 4.14.19

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 (164) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +3 -3
  3. package/lib/config.js +3 -3
  4. package/lib/config.js.map +1 -1
  5. package/models/components/evaluatorresponsefunction.js +2 -2
  6. package/models/components/evaluatorresponsehttp.js +2 -2
  7. package/models/components/evaluatorresponsejsonschema.js +2 -2
  8. package/models/components/evaluatorresponsellm.js +2 -2
  9. package/models/components/evaluatorresponsepython.js +2 -2
  10. package/models/components/evaluatorresponseragas.js +2 -2
  11. package/models/components/evaluatorresponsetypescript.js +2 -2
  12. package/models/components/reasoningpart.js +1 -1
  13. package/models/operations/createannotationqueue.js +1 -1
  14. package/models/operations/createdataset.js +1 -1
  15. package/models/operations/createdatasetitem.js +5 -5
  16. package/models/operations/createtool.js +4 -4
  17. package/models/operations/getalltools.js +4 -4
  18. package/models/operations/geteval.js +16 -16
  19. package/models/operations/getv2humanevalsets.js +2 -2
  20. package/models/operations/getv2humanevalsetsid.js +2 -2
  21. package/models/operations/listannotationqueues.js +1 -1
  22. package/models/operations/listdatasetdatapoints.js +5 -5
  23. package/models/operations/listdatasets.js +1 -1
  24. package/models/operations/patchv2humanevalsetsid.js +2 -2
  25. package/models/operations/postv2feedbackevaluation.js +4 -4
  26. package/models/operations/postv2humanevalsets.js +2 -2
  27. package/models/operations/retrieveannotationqueue.js +1 -1
  28. package/models/operations/retrievedatapoint.js +5 -5
  29. package/models/operations/retrievedataset.js +1 -1
  30. package/models/operations/retrievetool.js +4 -4
  31. package/models/operations/runagent.js +1 -1
  32. package/models/operations/streamrunagent.js +1 -1
  33. package/models/operations/updateannotationqueue.js +1 -1
  34. package/models/operations/updatedatapoint.js +5 -5
  35. package/models/operations/updatedataset.js +1 -1
  36. package/models/operations/updatetool.js +4 -4
  37. package/package.json +1 -1
  38. package/packages/orq-rc/src/funcs/agentsCreate.ts +1 -1
  39. package/packages/orq-rc/src/funcs/agentsDelete.ts +1 -1
  40. package/packages/orq-rc/src/funcs/agentsList.ts +1 -1
  41. package/packages/orq-rc/src/funcs/agentsResponsesGet.ts +1 -1
  42. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +1 -1
  43. package/packages/orq-rc/src/funcs/agentsStream.ts +1 -1
  44. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +1 -1
  45. package/packages/orq-rc/src/funcs/agentsUpdate.ts +1 -1
  46. package/packages/orq-rc/src/funcs/annotationQueuesAddItems.ts +5 -4
  47. package/packages/orq-rc/src/funcs/annotationQueuesClear.ts +6 -6
  48. package/packages/orq-rc/src/funcs/annotationQueuesDelete.ts +6 -6
  49. package/packages/orq-rc/src/funcs/annotationQueuesRemoveItems.ts +6 -6
  50. package/packages/orq-rc/src/funcs/budgetsList.ts +1 -1
  51. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +10 -1
  52. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +1 -1
  53. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +1 -1
  54. package/packages/orq-rc/src/funcs/knowledgeList.ts +1 -1
  55. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +1 -1
  56. package/packages/orq-rc/src/funcs/knowledgeRetrieveFileUrl.ts +1 -1
  57. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +1 -1
  58. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +1 -1
  59. package/packages/orq-rc/src/funcs/modelsAzureFoundryDeployments.ts +1 -1
  60. package/packages/orq-rc/src/funcs/modelsCreate.ts +1 -1
  61. package/packages/orq-rc/src/funcs/modelsCreateAwsBedrock.ts +1 -1
  62. package/packages/orq-rc/src/funcs/modelsCreateOpenaiLike.ts +1 -1
  63. package/packages/orq-rc/src/funcs/modelsCreateVertex.ts +1 -1
  64. package/packages/orq-rc/src/funcs/modelsImportLitellm.ts +1 -1
  65. package/packages/orq-rc/src/funcs/modelsListLitellm.ts +1 -1
  66. package/packages/orq-rc/src/funcs/modelsUpdate.ts +1 -1
  67. package/packages/orq-rc/src/funcs/modelsUpdateAwsBedrock.ts +1 -1
  68. package/packages/orq-rc/src/funcs/modelsUpdateOpenaiLike.ts +1 -1
  69. package/packages/orq-rc/src/funcs/modelsValidate.ts +1 -1
  70. package/packages/orq-rc/src/funcs/modelsValidateAwsBedrock.ts +1 -1
  71. package/packages/orq-rc/src/funcs/projectsCreate.ts +1 -1
  72. package/packages/orq-rc/src/funcs/projectsDelete.ts +1 -1
  73. package/packages/orq-rc/src/funcs/projectsUpdate.ts +1 -1
  74. package/packages/orq-rc/src/funcs/webhooksGet.ts +1 -1
  75. package/packages/orq-rc/src/lib/config.ts +3 -3
  76. package/packages/orq-rc/src/models/components/aggregatelogsrequest.ts +3 -3
  77. package/packages/orq-rc/src/models/components/auditlogfilter.ts +1 -1
  78. package/packages/orq-rc/src/models/components/evaluationcontext.ts +4 -20
  79. package/packages/orq-rc/src/models/components/evaluationresult.ts +7 -11
  80. package/packages/orq-rc/src/models/components/index.ts +0 -4
  81. package/packages/orq-rc/src/models/components/invokeevaluatorrequest.ts +6 -29
  82. package/packages/orq-rc/src/models/components/memorystoreembeddingconfig.ts +1 -1
  83. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  84. package/packages/orq-rc/src/models/components/searchknowledgematch.ts +1 -4
  85. package/packages/orq-rc/src/models/components/searchknowledgerequest.ts +4 -4
  86. package/packages/orq-rc/src/models/components/searchretrievalconfig.ts +1 -1
  87. package/packages/orq-rc/src/models/components/skill.ts +2 -3
  88. package/packages/orq-rc/src/models/components/spansummary.ts +21 -0
  89. package/packages/orq-rc/src/models/components/toolexecutionfailedstreamingevent.ts +1 -0
  90. package/packages/orq-rc/src/models/components/toolexecutionfinishedstreamingevent.ts +1 -0
  91. package/packages/orq-rc/src/models/components/toolexecutionstartedstreamingevent.ts +1 -0
  92. package/packages/orq-rc/src/models/components/traceusage.ts +3 -0
  93. package/packages/orq-rc/src/models/components/webhook.ts +2 -2
  94. package/packages/orq-rc/src/models/operations/budgetlist.ts +2 -3
  95. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +5 -5
  96. package/packages/orq-rc/src/models/operations/createcompletion.ts +4 -4
  97. package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
  98. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +5 -5
  99. package/packages/orq-rc/src/models/operations/createimageedit.ts +1 -1
  100. package/packages/orq-rc/src/models/operations/createprompt.ts +1 -1
  101. package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
  102. package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
  103. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
  104. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  105. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +5 -5
  106. package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
  107. package/packages/orq-rc/src/models/operations/modelcreateawsbedrock.ts +8 -0
  108. package/packages/orq-rc/src/models/operations/modelupdateawsbedrock.ts +8 -0
  109. package/packages/orq-rc/src/models/operations/parse.ts +3 -3
  110. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  111. package/packages/orq-rc/src/models/operations/postv2feedback.ts +2 -0
  112. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +4 -4
  113. package/packages/orq-rc/src/models/operations/postv2feedbackremove.ts +2 -0
  114. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  115. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +5 -5
  116. package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
  117. package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
  118. package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
  119. package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
  120. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +5 -5
  121. package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
  122. package/packages/orq-rc/src/models/operations/updateprompt.ts +1 -1
  123. package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
  124. package/packages/orq-rc/src/sdk/annotationqueues.ts +4 -4
  125. package/packages/orq-rc/src/sdk/budgets.ts +1 -1
  126. package/packages/orq-rc/src/sdk/projects.ts +3 -3
  127. package/packages/orq-rc/src/sdk/webhooks.ts +1 -1
  128. package/src/lib/config.ts +3 -3
  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/addannotationqueueitemsresponse.ts +0 -38
  162. package/packages/orq-rc/src/models/components/clearannotationqueueresponse.ts +0 -27
  163. package/packages/orq-rc/src/models/components/deleteannotationqueueresponse.ts +0 -27
  164. package/packages/orq-rc/src/models/components/removeannotationqueueitemsresponse.ts +0 -28
@@ -155,7 +155,7 @@ async function $do(
155
155
  | SDKValidationError
156
156
  >(
157
157
  M.json(200, z.array(components.ModelDocument$inboundSchema)),
158
- M.fail([400, 404, "4XX"]),
158
+ M.fail([400, 401, 404, "4XX"]),
159
159
  M.fail("5XX"),
160
160
  )(response, req);
161
161
  if (!result.ok) {
@@ -133,7 +133,7 @@ async function $do(
133
133
  | SDKValidationError
134
134
  >(
135
135
  M.json(200, z.array(z.record(z.any()))),
136
- M.fail([404, "4XX"]),
136
+ M.fail([401, 404, "4XX"]),
137
137
  M.fail([500, "5XX"]),
138
138
  )(response, req);
139
139
  if (!result.ok) {
@@ -157,7 +157,7 @@ async function $do(
157
157
  | SDKValidationError
158
158
  >(
159
159
  M.json(200, operations.ModelUpdateResponseBody$inboundSchema),
160
- M.fail([400, 404, "4XX"]),
160
+ M.fail([400, 401, 404, "4XX"]),
161
161
  M.fail("5XX"),
162
162
  )(response, req);
163
163
  if (!result.ok) {
@@ -158,7 +158,7 @@ async function $do(
158
158
  | SDKValidationError
159
159
  >(
160
160
  M.json(200, operations.ModelUpdateAwsBedrockResponseBody$inboundSchema),
161
- M.fail([400, 404, "4XX"]),
161
+ M.fail([400, 401, 404, "4XX"]),
162
162
  M.fail("5XX"),
163
163
  )(response, req);
164
164
  if (!result.ok) {
@@ -158,7 +158,7 @@ async function $do(
158
158
  | SDKValidationError
159
159
  >(
160
160
  M.json(200, operations.ModelUpdateOpenAILikeResponseBody$inboundSchema),
161
- M.fail([400, 404, "4XX"]),
161
+ M.fail([400, 401, 404, "4XX"]),
162
162
  M.fail("5XX"),
163
163
  )(response, req);
164
164
  if (!result.ok) {
@@ -152,7 +152,7 @@ async function $do(
152
152
  | SDKValidationError
153
153
  >(
154
154
  M.nil(200, z.void()),
155
- M.fail([400, 415, "4XX"]),
155
+ M.fail([400, 401, 415, "4XX"]),
156
156
  M.fail("5XX"),
157
157
  )(response, req);
158
158
  if (!result.ok) {
@@ -153,7 +153,7 @@ async function $do(
153
153
  | SDKValidationError
154
154
  >(
155
155
  M.nil(200, z.void()),
156
- M.fail([400, 404, "4XX"]),
156
+ M.fail([400, 401, 404, "4XX"]),
157
157
  M.fail("5XX"),
158
158
  )(response, req);
159
159
  if (!result.ok) {
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
29
29
  * Create a new project
30
30
  *
31
31
  * @remarks
32
- * Creates a project in the current workspace. Projects are workspace-level containers for resources such as skills, deployments, datasets, rules, and related team access.
32
+ * Creates a project in the current workspace. Projects are workspace-level containers for resources such as skills, deployments, datasets, rules, and related team access. Requires a key with write access to Projects (management key or API key), or an admin session. Project-scoped API keys are rejected.
33
33
  */
34
34
  export function projectsCreate(
35
35
  client: OrqCore,
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * Delete a project
31
31
  *
32
32
  * @remarks
33
- * Deletes a project from the workspace. The response body is empty when the delete succeeds.
33
+ * Deletes a project from the workspace. The response body is empty when the delete succeeds. Requires a key with write access to Projects (management key or API key), or an admin session. Project-scoped API keys are rejected.
34
34
  */
35
35
  export function projectsDelete(
36
36
  client: OrqCore,
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * Update a project
31
31
  *
32
32
  * @remarks
33
- * Updates the specified project by setting the values of the parameters passed.
33
+ * Updates the specified project by setting the values of the parameters passed. Requires a key with write access to Projects (management key or API key), or an admin session. Project-scoped API keys are rejected.
34
34
  */
35
35
  export function projectsUpdate(
36
36
  client: OrqCore,
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * Retrieve a webhook
31
31
  *
32
32
  * @remarks
33
- * Retrieves a webhook in the current workspace by ID. The response includes its signing secret; treat it as sensitive.
33
+ * Retrieves a webhook in the current workspace by ID. The signing secret is returned masked; it is only shown in full when the webhook is created.
34
34
  */
35
35
  export function webhooksGet(
36
36
  client: OrqCore,
@@ -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.15.0-rc.41",
62
- genVersion: "2.935.1",
63
- userAgent: "speakeasy-sdk/typescript 4.15.0-rc.41 2.935.1 2.0 @orq-ai/node",
61
+ sdkVersion: "4.15.0-rc.51",
62
+ genVersion: "2.937.18",
63
+ userAgent: "speakeasy-sdk/typescript 4.15.0-rc.51 2.937.18 2.0 @orq-ai/node",
64
64
  } as const;
@@ -13,11 +13,11 @@ export type AggregateLogsRequest = {
13
13
  from?: Date | undefined;
14
14
  to?: Date | undefined;
15
15
  /**
16
- * Time bucket grain: "auto" | "minute" | "hour" | "day", matching the shared
16
+ * Time bucket grain: "auto" | "minute" | "hour" | "day". "auto" picks the
17
17
  *
18
18
  * @remarks
19
- * libs/go/reporting Grain vocabulary used by the traces reporting API. Empty
20
- * defaults to "auto" (grain picked from the time range).
19
+ * grain from the requested time range. Empty returns rows without time
20
+ * buckets.
21
21
  */
22
22
  grain?: string | undefined;
23
23
  filters?: Array<TraceFilter> | undefined;
@@ -13,7 +13,7 @@ export type AuditLogFilter = {
13
13
  */
14
14
  type: string;
15
15
  /**
16
- * Audit log field path to filter on. Supported paths include created_at, entity_id, entity_type, action, actor_id, and metadata.display_name.
16
+ * Audit log field path to filter on. Supported paths include created_at, entity_id, entity_type, action, actor_id, origin, and metadata.display_name.
17
17
  */
18
18
  path: string;
19
19
  /**
@@ -14,17 +14,15 @@ import {
14
14
  StructuredOutput$outboundSchema,
15
15
  } from "./structuredoutput.js";
16
16
 
17
- export type Messages = {};
18
-
19
17
  /**
20
18
  * The data to grade. When `messages` is present it is the conversation and
21
19
  *
22
20
  * @remarks
23
21
  * `input.user_query` is ignored; `output.response` is appended only when the
24
- * conversation carries no assistant turn. Mirrors graders-api buildGraderRequest.
22
+ * conversation carries no assistant turn.
25
23
  */
26
24
  export type EvaluationContext = {
27
- messages?: Array<Messages> | undefined;
25
+ messages?: Array<{ [k: string]: any }> | undefined;
28
26
  /**
29
27
  * StructuredInput names its fields after the template variables they feed, so
30
28
  *
@@ -36,23 +34,9 @@ export type EvaluationContext = {
36
34
  variables?: { [k: string]: any } | undefined;
37
35
  };
38
36
 
39
- /** @internal */
40
- export type Messages$Outbound = {};
41
-
42
- /** @internal */
43
- export const Messages$outboundSchema: z.ZodType<
44
- Messages$Outbound,
45
- z.ZodTypeDef,
46
- Messages
47
- > = z.object({});
48
-
49
- export function messagesToJSON(messages: Messages): string {
50
- return JSON.stringify(Messages$outboundSchema.parse(messages));
51
- }
52
-
53
37
  /** @internal */
54
38
  export type EvaluationContext$Outbound = {
55
- messages?: Array<Messages$Outbound> | undefined;
39
+ messages?: Array<{ [k: string]: any }> | undefined;
56
40
  input?: StructuredInput$Outbound | undefined;
57
41
  output?: StructuredOutput$Outbound | undefined;
58
42
  variables?: { [k: string]: any } | undefined;
@@ -64,7 +48,7 @@ export const EvaluationContext$outboundSchema: z.ZodType<
64
48
  z.ZodTypeDef,
65
49
  EvaluationContext
66
50
  > = z.object({
67
- messages: z.array(z.lazy(() => Messages$outboundSchema)).optional(),
51
+ messages: z.array(z.record(z.any())).optional(),
68
52
  input: StructuredInput$outboundSchema.optional(),
69
53
  output: StructuredOutput$outboundSchema.optional(),
70
54
  variables: z.record(z.any()).optional(),
@@ -9,14 +9,11 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
11
  /**
12
- * The verdict. Shaped to match WorkflowRunMinifiedEvalSchema, the body the
13
- *
14
- * @remarks
15
- * TypeScript route returned, so existing consumers read the same JSON.
12
+ * The verdict. Its shape is fixed so existing consumers read the same JSON.
16
13
  */
17
14
  export type EvaluationResult = {
18
15
  /**
19
- * Discriminator, matching the legacy union: "string", "number", "boolean",
16
+ * Discriminator for the verdict shape: "string", "number", "boolean",
20
17
  *
21
18
  * @remarks
22
19
  * "string_array", "rouge_n", "bert_score", "llm_evaluator", "http_eval".
@@ -34,17 +31,16 @@ export type EvaluationResult = {
34
31
  * Trace reference of the evaluator's own span. Optional so an absent
35
32
  *
36
33
  * @remarks
37
- * reference is omitted rather than emitted as an empty string, matching the
38
- * legacy body.
34
+ * reference is omitted rather than emitted as an empty string.
39
35
  */
40
36
  traceId?: string | undefined;
41
37
  spanId?: string | undefined;
42
38
  evaluatorId?: string | undefined;
43
39
  /**
44
- * How the run ended, as distinct from `passed`: "passed", "condition_failed"
40
+ * How the run ended, as distinct from `passed`: "passed", "condition_failed",
45
41
  *
46
42
  * @remarks
47
- * or "timed_out". A string, not an enum, because the engine owns the
43
+ * "failed" or "timed_out". A string, not an enum, because the engine owns the
48
44
  * vocabulary.
49
45
  */
50
46
  status?: string | undefined;
@@ -52,8 +48,8 @@ export type EvaluationResult = {
52
48
  * The guardrail's decision when the evaluator has one, the grader's own
53
49
  *
54
50
  * @remarks
55
- * judgement otherwise. Always present — the endpoint this replaces omitted it
56
- * without a guardrail, so read `guardrail_config` to detect one, not this.
51
+ * judgement otherwise. Always present, so read `guardrail_config` to detect
52
+ * a guardrail, not this.
57
53
  */
58
54
  passed?: boolean | undefined;
59
55
  explanation?: string | undefined;
@@ -6,7 +6,6 @@ export * from "./accesslevel.js";
6
6
  export * from "./actionreviewedstreamingevent.js";
7
7
  export * from "./actionreviewrequestedstreamingevent.js";
8
8
  export * from "./addannotationqueueitemsrequest.js";
9
- export * from "./addannotationqueueitemsresponse.js";
10
9
  export * from "./addiprangerequest.js";
11
10
  export * from "./addiprangeresponse.js";
12
11
  export * from "./advisortoolinput.js";
@@ -90,7 +89,6 @@ export * from "./chunksservicelistpaginatedresponse.js";
90
89
  export * from "./chunksservicelistresponse.js";
91
90
  export * from "./chunksservicesetenabledrequest.js";
92
91
  export * from "./chunksserviceupdaterequest.js";
93
- export * from "./clearannotationqueueresponse.js";
94
92
  export * from "./codeinterpretertoolinput.js";
95
93
  export * from "./codetoolinput.js";
96
94
  export * from "./conversationparam.js";
@@ -148,7 +146,6 @@ export * from "./datasourcesservicepreviewchunksrequest.js";
148
146
  export * from "./datasourcesservicepreviewchunksresponse.js";
149
147
  export * from "./datasourcesserviceupdaterequest.js";
150
148
  export * from "./deletealertresponse.js";
151
- export * from "./deleteannotationqueueresponse.js";
152
149
  export * from "./deletebudgetresponse.js";
153
150
  export * from "./deleteevaluatorresponse.js";
154
151
  export * from "./deletefileresponse.js";
@@ -435,7 +432,6 @@ export * from "./redactrequest.js";
435
432
  export * from "./redactresponse.js";
436
433
  export * from "./refusalpartschema.js";
437
434
  export * from "./removeannotationqueueitemsrequest.js";
438
- export * from "./removeannotationqueueitemsresponse.js";
439
435
  export * from "./requestlimit.js";
440
436
  export * from "./rerankconfig.js";
441
437
  export * from "./rerankmodelparameters.js";
@@ -9,14 +9,12 @@ import {
9
9
  EvaluationContext$outboundSchema,
10
10
  } from "./evaluationcontext.js";
11
11
 
12
- export type InvokeEvaluatorRequestMessages = {};
13
-
14
12
  /**
15
13
  * Accepts two shapes. `context` names its fields after the template variables
16
14
  *
17
15
  * @remarks
18
- * they feed and is the one to use; the flat fields below are the legacy body,
19
- * folded into `context` when it is absent. Setting `context` wins.
16
+ * they feed and is the one to use; the flat fields below are folded into
17
+ * `context` when it is absent. Setting `context` wins.
20
18
  */
21
19
  export type InvokeEvaluatorRequest = {
22
20
  /**
@@ -24,7 +22,7 @@ export type InvokeEvaluatorRequest = {
24
22
  *
25
23
  * @remarks
26
24
  * `input.user_query` is ignored; `output.response` is appended only when the
27
- * conversation carries no assistant turn. Mirrors graders-api buildGraderRequest.
25
+ * conversation carries no assistant turn.
28
26
  */
29
27
  context?: EvaluationContext | undefined;
30
28
  /**
@@ -65,7 +63,7 @@ export type InvokeEvaluatorRequest = {
65
63
  * @remarks
66
64
  * `context.messages`.
67
65
  */
68
- messages?: Array<InvokeEvaluatorRequestMessages> | undefined;
66
+ messages?: Array<{ [k: string]: any }> | undefined;
69
67
  /**
70
68
  * Template variables for evaluator prompt substitution. Folds into
71
69
  *
@@ -75,26 +73,6 @@ export type InvokeEvaluatorRequest = {
75
73
  variables?: { [k: string]: any } | undefined;
76
74
  };
77
75
 
78
- /** @internal */
79
- export type InvokeEvaluatorRequestMessages$Outbound = {};
80
-
81
- /** @internal */
82
- export const InvokeEvaluatorRequestMessages$outboundSchema: z.ZodType<
83
- InvokeEvaluatorRequestMessages$Outbound,
84
- z.ZodTypeDef,
85
- InvokeEvaluatorRequestMessages
86
- > = z.object({});
87
-
88
- export function invokeEvaluatorRequestMessagesToJSON(
89
- invokeEvaluatorRequestMessages: InvokeEvaluatorRequestMessages,
90
- ): string {
91
- return JSON.stringify(
92
- InvokeEvaluatorRequestMessages$outboundSchema.parse(
93
- invokeEvaluatorRequestMessages,
94
- ),
95
- );
96
- }
97
-
98
76
  /** @internal */
99
77
  export type InvokeEvaluatorRequest$Outbound = {
100
78
  context?: EvaluationContext$Outbound | undefined;
@@ -103,7 +81,7 @@ export type InvokeEvaluatorRequest$Outbound = {
103
81
  output?: string | undefined;
104
82
  reference?: string | undefined;
105
83
  retrievals?: Array<string> | undefined;
106
- messages?: Array<InvokeEvaluatorRequestMessages$Outbound> | undefined;
84
+ messages?: Array<{ [k: string]: any }> | undefined;
107
85
  variables?: { [k: string]: any } | undefined;
108
86
  };
109
87
 
@@ -119,8 +97,7 @@ export const InvokeEvaluatorRequest$outboundSchema: z.ZodType<
119
97
  output: z.string().optional(),
120
98
  reference: z.string().optional(),
121
99
  retrievals: z.array(z.string()).optional(),
122
- messages: z.array(z.lazy(() => InvokeEvaluatorRequestMessages$outboundSchema))
123
- .optional(),
100
+ messages: z.array(z.record(z.any())).optional(),
124
101
  variables: z.record(z.any()).optional(),
125
102
  });
126
103
 
@@ -9,7 +9,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
9
 
10
10
  export type MemoryStoreEmbeddingConfig = {
11
11
  /**
12
- * The embeddings model to use for the knowledge base in the format "provider/model" for public models or "workspaceKey@provider/model" for private workspace models. This model will be used to embed the chunks when they are added to the knowledge base. Refer to the (Supported models)[/docs/proxy/supported-models] to browse available models.
12
+ * The embeddings model to use for the knowledge base in the format "provider/model" for public models or "workspaceKey@provider/model" for private workspace models. This model will be used to embed the chunks when they are added to the knowledge base. Refer to the [Supported models](/docs/ai-gateway/supported-models) to browse available models.
13
13
  */
14
14
  model: string;
15
15
  };
@@ -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_01m28es552q7fd8gzxzp472he7"),
43
+ _id: z.string().default("reasoning_01m2jktwbaerm0jddw9vawcwt0"),
44
44
  metadata: z.record(z.any()).optional(),
45
45
  kind: z.literal("reasoning"),
46
46
  reasoning: z.string(),
@@ -20,10 +20,7 @@ export type SearchKnowledgeMatch = {
20
20
  id: string;
21
21
  text: string;
22
22
  /**
23
- * The service maps the internal embedding field to this public name. Empty
24
- *
25
- * @remarks
26
- * repeated fields are omitted by proto JSON, preserving optional vectors.
23
+ * Embedding vector of the chunk, returned only when requested.
27
24
  */
28
25
  vector?: Array<number> | undefined;
29
26
  /**
@@ -311,7 +311,7 @@ export type Two = {
311
311
  */
312
312
  model?: string | undefined;
313
313
  /**
314
- * Internal database model identifier used by the retrieval testing UI.
314
+ * Identifier of the stored model configuration to use.
315
315
  */
316
316
  modelDbId: string;
317
317
  /**
@@ -330,7 +330,7 @@ export type AgenticRagConfig1 = {
330
330
  */
331
331
  model: string;
332
332
  /**
333
- * Internal database model identifier used by the retrieval testing UI.
333
+ * Identifier of the stored model configuration to use.
334
334
  */
335
335
  modelDbId?: string | undefined;
336
336
  /**
@@ -349,10 +349,10 @@ export type AgenticRagConfig1 = {
349
349
  export type SearchKnowledgeRequestAgenticRagConfig = Two | AgenticRagConfig1;
350
350
 
351
351
  /**
352
- * SearchKnowledgeRequest mirrors the existing public search body and adds the
352
+ * Search request. Sets the knowledge base and query, plus optional retrieval
353
353
  *
354
354
  * @remarks
355
- * internal retrieval configuration override used by the knowledge testing UI.
355
+ * settings.
356
356
  */
357
357
  export type SearchKnowledgeRequest = {
358
358
  /**
@@ -31,7 +31,7 @@ export type SearchRetrievalConfigRerankConfig = {
31
31
  };
32
32
 
33
33
  /**
34
- * SearchRetrievalConfig mirrors RetrievalConfigInDatabaseSchema. Type remains
34
+ * SearchRetrievalConfig is the retrieval strategy configuration. Type remains
35
35
  *
36
36
  * @remarks
37
37
  * optional because external knowledge bases use the same base configuration
@@ -58,11 +58,10 @@ export type Skill = {
58
58
  */
59
59
  instructions: string;
60
60
  /**
61
- * Latest semver assigned by the activity log. Stamped on the document
61
+ * Latest semver for the skill. It advances when the skill's definition
62
62
  *
63
63
  * @remarks
64
- * by CreateSkill / UpdateSkill so reads return it without joining
65
- * workspaces.activities.
64
+ * changes and is returned on every read.
66
65
  */
67
66
  version: string;
68
67
  };
@@ -27,6 +27,18 @@ export type SpanSummary = {
27
27
  usage?: TraceUsage | undefined;
28
28
  cost?: TraceCost | undefined;
29
29
  hasDetail?: boolean | undefined;
30
+ level?: number | undefined;
31
+ hasChildren?: boolean | undefined;
32
+ /**
33
+ * Row badge inputs, so the tree does not need a detail fetch per span:
34
+ *
35
+ * @remarks
36
+ * trace_framework is set on the trace root, leading_span_type where the
37
+ * ingest marked one, guardrail_enabled on evaluator spans run as guardrails.
38
+ */
39
+ traceFramework?: string | undefined;
40
+ leadingSpanType?: string | undefined;
41
+ guardrailEnabled?: boolean | undefined;
30
42
  };
31
43
 
32
44
  /** @internal */
@@ -53,6 +65,11 @@ export const SpanSummary$inboundSchema: z.ZodType<
53
65
  usage: TraceUsage$inboundSchema.optional(),
54
66
  cost: TraceCost$inboundSchema.optional(),
55
67
  has_detail: z.boolean().optional(),
68
+ level: z.number().int().optional(),
69
+ has_children: z.boolean().optional(),
70
+ trace_framework: z.string().optional(),
71
+ leading_span_type: z.string().optional(),
72
+ guardrail_enabled: z.boolean().optional(),
56
73
  }).transform((v) => {
57
74
  return remap$(v, {
58
75
  "trace_id": "traceId",
@@ -62,6 +79,10 @@ export const SpanSummary$inboundSchema: z.ZodType<
62
79
  "ended_at": "endedAt",
63
80
  "duration_ms": "durationMs",
64
81
  "has_detail": "hasDetail",
82
+ "has_children": "hasChildren",
83
+ "trace_framework": "traceFramework",
84
+ "leading_span_type": "leadingSpanType",
85
+ "guardrail_enabled": "guardrailEnabled",
65
86
  });
66
87
  });
67
88
 
@@ -35,6 +35,7 @@ export const ToolExecutionFailedStreamingEventProduct = {
35
35
  Evaluators: "evaluators",
36
36
  Otel: "otel",
37
37
  AiChat: "ai-chat",
38
+ McpGateway: "mcp_gateway",
38
39
  } as const;
39
40
  /**
40
41
  * Orquesta product
@@ -30,6 +30,7 @@ export const ToolExecutionFinishedStreamingEventProduct = {
30
30
  Evaluators: "evaluators",
31
31
  Otel: "otel",
32
32
  AiChat: "ai-chat",
33
+ McpGateway: "mcp_gateway",
33
34
  } as const;
34
35
  /**
35
36
  * Orquesta product
@@ -30,6 +30,7 @@ export const Product = {
30
30
  Evaluators: "evaluators",
31
31
  Otel: "otel",
32
32
  AiChat: "ai-chat",
33
+ McpGateway: "mcp_gateway",
33
34
  } as const;
34
35
  /**
35
36
  * Orquesta product
@@ -18,6 +18,7 @@ export type TraceUsage = {
18
18
  completionAudioTokens?: number | undefined;
19
19
  completionAcceptedPredictionTokens?: number | undefined;
20
20
  completionRejectedPredictionTokens?: number | undefined;
21
+ promptCacheCreationTokens?: number | undefined;
21
22
  };
22
23
 
23
24
  /** @internal */
@@ -35,6 +36,7 @@ export const TraceUsage$inboundSchema: z.ZodType<
35
36
  completion_audio_tokens: z.number().int().optional(),
36
37
  completion_accepted_prediction_tokens: z.number().int().optional(),
37
38
  completion_rejected_prediction_tokens: z.number().int().optional(),
39
+ prompt_cache_creation_tokens: z.number().int().optional(),
38
40
  }).transform((v) => {
39
41
  return remap$(v, {
40
42
  "prompt_tokens": "promptTokens",
@@ -48,6 +50,7 @@ export const TraceUsage$inboundSchema: z.ZodType<
48
50
  "completionAcceptedPredictionTokens",
49
51
  "completion_rejected_prediction_tokens":
50
52
  "completionRejectedPredictionTokens",
53
+ "prompt_cache_creation_tokens": "promptCacheCreationTokens",
51
54
  });
52
55
  });
53
56
 
@@ -22,7 +22,7 @@ export const ContentType = {
22
22
  export type ContentType = ClosedEnum<typeof ContentType>;
23
23
 
24
24
  /**
25
- * A webhook subscription and its delivery configuration. Responses include the signing secret; treat it as sensitive.
25
+ * A webhook subscription and its delivery configuration. The signing secret is shown in full only in the create response and is masked everywhere else.
26
26
  */
27
27
  export type Webhook = {
28
28
  /**
@@ -46,7 +46,7 @@ export type Webhook = {
46
46
  */
47
47
  events: Array<string>;
48
48
  /**
49
- * Signing secret used to compute `X-Orq-Signature` as the lowercase hexadecimal HMAC-SHA256 of the exact request body bytes. Treat this value as sensitive.
49
+ * Signing secret used to compute `X-Orq-Signature` as the lowercase hexadecimal HMAC-SHA256 of the exact request body bytes. Shown in full only in the create response; list and get return a masked value.
50
50
  */
51
51
  secret: string;
52
52
  /**
@@ -48,11 +48,10 @@ export type BudgetListRequest = {
48
48
  */
49
49
  period?: Array<components.BudgetPeriod> | undefined;
50
50
  /**
51
- * Optional free-text query. Server translates this into a Typesense
51
+ * Optional free-text query matched against a budget's scope target
52
52
  *
53
53
  * @remarks
54
- * search over the denormalized `scope_target_name` and id fields on
55
- * the per-workspace `{workspace_id}_budgets` collection.
54
+ * name and id.
56
55
  */
57
56
  query?: string | undefined;
58
57
  /**
@@ -1229,7 +1229,7 @@ export type FilterBy1 =
1229
1229
  | CreateChatCompletion1Nin;
1230
1230
 
1231
1231
  /**
1232
- * The metadata filter to apply to the search. Check the [Searching a Knowledge Base](https://docs.orq.ai/docs/knowledge/api#knowledge-base-search) for more information.
1232
+ * The metadata filter to apply to the search. Check the [Searching a Knowledge Base](https://docs.orq.ai/docs/ai-studio/ai-engineering/knowledge-bases#search-a-knowledge-base) for more information.
1233
1233
  */
1234
1234
  export type FilterBy = FilterByAnd | FilterByOr | {
1235
1235
  [k: string]:
@@ -1266,7 +1266,7 @@ export type SearchOptions = {
1266
1266
  */
1267
1267
  export type RerankConfig = {
1268
1268
  /**
1269
- * The name of the rerank model to use. Refer to the [model list](https://docs.orq.ai/docs/proxy#/rerank-models).
1269
+ * The name of the rerank model to use. Refer to the [model list](https://docs.orq.ai/docs/ai-gateway/supported-models#rerank-models).
1270
1270
  */
1271
1271
  model: string;
1272
1272
  /**
@@ -1284,7 +1284,7 @@ export type RerankConfig = {
1284
1284
  */
1285
1285
  export type AgenticRagConfig = {
1286
1286
  /**
1287
- * The name of the model for the Agent to use. Refer to the [model list](https://docs.orq.ai/docs/proxy#/chat-models).
1287
+ * The name of the model for the Agent to use. Refer to the [model list](https://docs.orq.ai/docs/ai-gateway/supported-models#chat-models).
1288
1288
  */
1289
1289
  model: string;
1290
1290
  };
@@ -1303,7 +1303,7 @@ export type CreateChatCompletionKnowledgeBases = {
1303
1303
  */
1304
1304
  searchType?: SearchType | null | undefined;
1305
1305
  /**
1306
- * The metadata filter to apply to the search. Check the [Searching a Knowledge Base](https://docs.orq.ai/docs/knowledge/api#knowledge-base-search) for more information.
1306
+ * The metadata filter to apply to the search. Check the [Searching a Knowledge Base](https://docs.orq.ai/docs/ai-studio/ai-engineering/knowledge-bases#search-a-knowledge-base) for more information.
1307
1307
  */
1308
1308
  filterBy?: FilterByAnd | FilterByOr | {
1309
1309
  [k: string]:
@@ -1449,7 +1449,7 @@ export type CreateChatCompletionRequestBody = {
1449
1449
  | CreateChatCompletionMessagesToolMessage
1450
1450
  >;
1451
1451
  /**
1452
- * Model ID used to generate the response, like `openai/gpt-4o` or `anthropic/claude-haiku-4-5-20251001`. The AI Gateway offers a wide range of models with different capabilities, performance characteristics, and price points. Refer to the (Supported models)[/docs/proxy/supported-models] to browse available models.
1452
+ * Model ID used to generate the response, like `openai/gpt-4o` or `anthropic/claude-haiku-4-5-20251001`. The AI Gateway offers a wide range of models with different capabilities, performance characteristics, and price points. Refer to the [Supported models](/docs/ai-gateway/supported-models) to browse available models.
1453
1453
  */
1454
1454
  model: string;
1455
1455
  /**