@orq-ai/node 4.14.3 → 4.14.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (217) 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/encodings.d.ts +10 -9
  5. package/lib/encodings.d.ts.map +1 -1
  6. package/lib/encodings.js +29 -13
  7. package/lib/encodings.js.map +1 -1
  8. package/models/components/evaluatorresponsefunction.js +2 -2
  9. package/models/components/evaluatorresponsehttp.js +2 -2
  10. package/models/components/evaluatorresponsejsonschema.js +2 -2
  11. package/models/components/evaluatorresponsellm.js +2 -2
  12. package/models/components/evaluatorresponsepython.js +2 -2
  13. package/models/components/evaluatorresponseragas.js +2 -2
  14. package/models/components/evaluatorresponsetypescript.js +2 -2
  15. package/models/components/reasoningpart.js +1 -1
  16. package/models/operations/createannotationqueue.js +1 -1
  17. package/models/operations/createdataset.js +1 -1
  18. package/models/operations/createdatasetitem.js +5 -5
  19. package/models/operations/createtool.js +4 -4
  20. package/models/operations/getalltools.js +4 -4
  21. package/models/operations/geteval.js +16 -16
  22. package/models/operations/getv2humanevalsets.js +2 -2
  23. package/models/operations/getv2humanevalsetsid.js +2 -2
  24. package/models/operations/listannotationqueues.js +1 -1
  25. package/models/operations/listdatasetdatapoints.js +5 -5
  26. package/models/operations/listdatasets.js +1 -1
  27. package/models/operations/patchv2humanevalsetsid.js +2 -2
  28. package/models/operations/postv2feedbackevaluation.js +4 -4
  29. package/models/operations/postv2humanevalsets.js +2 -2
  30. package/models/operations/retrieveannotationqueue.js +1 -1
  31. package/models/operations/retrievedatapoint.js +5 -5
  32. package/models/operations/retrievedataset.js +1 -1
  33. package/models/operations/retrievetool.js +4 -4
  34. package/models/operations/runagent.js +1 -1
  35. package/models/operations/streamrunagent.js +1 -1
  36. package/models/operations/updateannotationqueue.js +1 -1
  37. package/models/operations/updatedatapoint.js +5 -5
  38. package/models/operations/updatedataset.js +1 -1
  39. package/models/operations/updatetool.js +4 -4
  40. package/package.json +3 -3
  41. package/packages/orq-rc/examples/{evalsAll.example.ts → deploymentsList.example.ts} +2 -2
  42. package/packages/orq-rc/src/funcs/annotationQueuesAddItems.ts +9 -10
  43. package/packages/orq-rc/src/funcs/annotationQueuesClear.ts +8 -8
  44. package/packages/orq-rc/src/funcs/annotationQueuesCreate.ts +10 -13
  45. package/packages/orq-rc/src/funcs/annotationQueuesDelete.ts +8 -8
  46. package/packages/orq-rc/src/funcs/annotationQueuesList.ts +6 -5
  47. package/packages/orq-rc/src/funcs/annotationQueuesListItems.ts +6 -5
  48. package/packages/orq-rc/src/funcs/annotationQueuesRemoveItems.ts +12 -10
  49. package/packages/orq-rc/src/funcs/annotationQueuesRetrieve.ts +6 -5
  50. package/packages/orq-rc/src/funcs/annotationQueuesRetrieveItem.ts +8 -6
  51. package/packages/orq-rc/src/funcs/annotationQueuesUpdate.ts +10 -7
  52. package/packages/orq-rc/src/funcs/auditLogsQuery.ts +162 -0
  53. package/packages/orq-rc/src/funcs/evalsAll.ts +6 -14
  54. package/packages/orq-rc/src/funcs/evalsCreate.ts +10 -35
  55. package/packages/orq-rc/src/funcs/evalsDelete.ts +6 -19
  56. package/packages/orq-rc/src/funcs/evalsGet.ts +6 -14
  57. package/packages/orq-rc/src/funcs/evalsGetVersion.ts +174 -0
  58. package/packages/orq-rc/src/funcs/evalsListVersions.ts +11 -20
  59. package/packages/orq-rc/src/funcs/evalsUpdate.ts +6 -14
  60. package/packages/orq-rc/src/funcs/workspacesGet.ts +168 -0
  61. package/packages/orq-rc/src/funcs/workspacesList.ts +170 -0
  62. package/packages/orq-rc/src/funcs/workspacesUpdate.ts +171 -0
  63. package/packages/orq-rc/src/lib/config.ts +3 -3
  64. package/packages/orq-rc/src/lib/encodings.ts +58 -23
  65. package/packages/orq-rc/src/models/components/addannotationqueueitemsrequest.ts +41 -0
  66. package/packages/orq-rc/src/models/components/addannotationqueueitemsresponse.ts +38 -0
  67. package/packages/orq-rc/src/models/components/agentresponserequest.ts +17 -10
  68. package/packages/orq-rc/src/models/components/annotationqueue.ts +101 -0
  69. package/packages/orq-rc/src/models/components/annotationqueueitem.ts +80 -0
  70. package/packages/orq-rc/src/models/components/annotationqueueitemref.ts +43 -0
  71. package/packages/orq-rc/src/models/components/annotationqueuemetadata.ts +42 -0
  72. package/packages/orq-rc/src/models/components/auditlog.ts +122 -0
  73. package/packages/orq-rc/src/models/components/auditlogfilter.ts +51 -0
  74. package/packages/orq-rc/src/models/components/auditlogfilterquery.ts +54 -0
  75. package/packages/orq-rc/src/models/components/auditlogpagination.ts +55 -0
  76. package/packages/orq-rc/src/models/components/auditlogsort.ts +39 -0
  77. package/packages/orq-rc/src/models/components/budgetmatch.ts +1 -7
  78. package/packages/orq-rc/src/models/components/budgetscope.ts +1 -5
  79. package/packages/orq-rc/src/models/components/budgetscoperestresponse.ts +1 -5
  80. package/packages/orq-rc/src/models/components/clearannotationqueueresponse.ts +27 -0
  81. package/packages/orq-rc/src/models/components/createannotationqueuerequest.ts +54 -0
  82. package/packages/orq-rc/src/models/components/createapikeyrequest.ts +9 -0
  83. package/packages/orq-rc/src/models/components/deleteannotationqueueresponse.ts +27 -0
  84. package/packages/orq-rc/src/models/components/deleteevaluatorresponse.ts +27 -0
  85. package/packages/orq-rc/src/models/components/evaluatordocumentresponse.ts +50 -0
  86. package/packages/orq-rc/src/models/components/filesystemtoolinput.ts +63 -6
  87. package/packages/orq-rc/src/models/components/getevaluatorversionresponse.ts +58 -0
  88. package/packages/orq-rc/src/models/components/getworkspaceresponse.ts +32 -0
  89. package/packages/orq-rc/src/models/components/index.ts +35 -8
  90. package/packages/orq-rc/src/models/components/listannotationqueueitemsresponse.ts +53 -0
  91. package/packages/orq-rc/src/models/components/listannotationqueuesresponse.ts +53 -0
  92. package/packages/orq-rc/src/models/components/listevaluatorsresponse.ts +59 -0
  93. package/packages/orq-rc/src/models/components/listevaluatorversionsresponse.ts +59 -0
  94. package/packages/orq-rc/src/models/components/listworkspacesresponse.ts +41 -0
  95. package/packages/orq-rc/src/models/components/modelmetadata.ts +6 -0
  96. package/packages/orq-rc/src/models/components/modelsconfig.ts +10 -11
  97. package/packages/orq-rc/src/models/components/piiredactionconfig.ts +7 -9
  98. package/packages/orq-rc/src/models/components/pricing.ts +12 -0
  99. package/packages/orq-rc/src/models/components/pricingvariant.ts +12 -0
  100. package/packages/orq-rc/src/models/components/queryauditlogsrequest.ts +64 -0
  101. package/packages/orq-rc/src/models/components/queryauditlogsresponse.ts +55 -0
  102. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  103. package/packages/orq-rc/src/models/components/removeannotationqueueitemsrequest.ts +41 -0
  104. package/packages/orq-rc/src/models/components/removeannotationqueueitemsresponse.ts +28 -0
  105. package/packages/orq-rc/src/models/components/searchknowledgerequest.ts +37 -58
  106. package/packages/orq-rc/src/models/components/textcontentpartschema.ts +19 -23
  107. package/packages/orq-rc/src/models/components/updateannotationqueuerequest.ts +61 -0
  108. package/packages/orq-rc/src/models/components/updateworkspacerequest.ts +81 -0
  109. package/packages/orq-rc/src/models/components/updateworkspaceresponse.ts +32 -0
  110. package/packages/orq-rc/src/models/components/value.ts +20 -0
  111. package/packages/orq-rc/src/models/components/workspace.ts +116 -0
  112. package/packages/orq-rc/src/models/components/workspacecapabilities.ts +33 -0
  113. package/packages/orq-rc/src/models/components/workspaceorganization.ts +33 -0
  114. package/packages/orq-rc/src/models/components/workspacesettingsfields.ts +135 -0
  115. package/packages/orq-rc/src/models/errors/index.ts +0 -6
  116. package/packages/orq-rc/src/models/operations/addannotationqueueitems.ts +7 -139
  117. package/packages/orq-rc/src/models/operations/createagentrequest.ts +20 -31
  118. package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
  119. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +5 -5
  120. package/packages/orq-rc/src/models/operations/createeval.ts +3 -644
  121. package/packages/orq-rc/src/models/operations/createprompt.ts +19 -22
  122. package/packages/orq-rc/src/models/operations/createtool.ts +55 -56
  123. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +16 -18
  124. package/packages/orq-rc/src/models/operations/deployments.ts +43 -46
  125. package/packages/orq-rc/src/models/operations/getallprompts.ts +1 -0
  126. package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
  127. package/packages/orq-rc/src/models/operations/geteval.ts +0 -2770
  128. package/packages/orq-rc/src/models/operations/getevals.ts +5 -119
  129. package/packages/orq-rc/src/models/operations/getevalversion.ts +39 -0
  130. package/packages/orq-rc/src/models/operations/getoneprompt.ts +1 -0
  131. package/packages/orq-rc/src/models/operations/getpromptversion.ts +1 -0
  132. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
  133. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  134. package/packages/orq-rc/src/models/operations/index.ts +5 -2
  135. package/packages/orq-rc/src/models/operations/listannotationqueueitems.ts +5 -183
  136. package/packages/orq-rc/src/models/operations/listannotationqueues.ts +7 -173
  137. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +5 -5
  138. package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
  139. package/packages/orq-rc/src/models/operations/listevalversions.ts +49 -0
  140. package/packages/orq-rc/src/models/operations/listpromptversions.ts +1 -0
  141. package/packages/orq-rc/src/models/operations/parse.ts +7 -7
  142. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  143. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +14 -20
  144. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  145. package/packages/orq-rc/src/models/operations/removeannotationqueueitems.ts +8 -41
  146. package/packages/orq-rc/src/models/operations/retrieveannotationqueue.ts +0 -123
  147. package/packages/orq-rc/src/models/operations/retrieveannotationqueueitem.ts +31 -0
  148. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +5 -5
  149. package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
  150. package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
  151. package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
  152. package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
  153. package/packages/orq-rc/src/models/operations/updateagent.ts +31 -40
  154. package/packages/orq-rc/src/models/operations/updateannotationqueue.ts +7 -182
  155. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +5 -5
  156. package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
  157. package/packages/orq-rc/src/models/operations/updateeval.ts +6 -404
  158. package/packages/orq-rc/src/models/operations/updateprompt.ts +1 -0
  159. package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
  160. package/packages/orq-rc/src/models/operations/workspaceget.ts +31 -0
  161. package/packages/orq-rc/src/models/operations/workspacelist.ts +43 -0
  162. package/packages/orq-rc/src/models/operations/workspaceupdate.ts +40 -0
  163. package/packages/orq-rc/src/sdk/annotationqueues.ts +31 -31
  164. package/packages/orq-rc/src/sdk/auditlogs.ts +27 -0
  165. package/packages/orq-rc/src/sdk/evals.ts +41 -23
  166. package/packages/orq-rc/src/sdk/sdk.ts +22 -10
  167. package/packages/orq-rc/src/sdk/workspaces.ts +64 -0
  168. package/src/lib/config.ts +3 -3
  169. package/src/lib/encodings.ts +58 -23
  170. package/src/models/components/evaluatorresponsefunction.ts +2 -2
  171. package/src/models/components/evaluatorresponsehttp.ts +2 -2
  172. package/src/models/components/evaluatorresponsejsonschema.ts +2 -2
  173. package/src/models/components/evaluatorresponsellm.ts +2 -2
  174. package/src/models/components/evaluatorresponsepython.ts +2 -2
  175. package/src/models/components/evaluatorresponseragas.ts +2 -2
  176. package/src/models/components/evaluatorresponsetypescript.ts +2 -2
  177. package/src/models/components/reasoningpart.ts +1 -1
  178. package/src/models/operations/createannotationqueue.ts +1 -1
  179. package/src/models/operations/createdataset.ts +1 -1
  180. package/src/models/operations/createdatasetitem.ts +5 -5
  181. package/src/models/operations/createtool.ts +4 -4
  182. package/src/models/operations/getalltools.ts +4 -4
  183. package/src/models/operations/geteval.ts +16 -16
  184. package/src/models/operations/getv2humanevalsets.ts +2 -2
  185. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  186. package/src/models/operations/listannotationqueues.ts +1 -1
  187. package/src/models/operations/listdatasetdatapoints.ts +5 -5
  188. package/src/models/operations/listdatasets.ts +1 -1
  189. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  190. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  191. package/src/models/operations/postv2humanevalsets.ts +2 -2
  192. package/src/models/operations/retrieveannotationqueue.ts +1 -1
  193. package/src/models/operations/retrievedatapoint.ts +5 -5
  194. package/src/models/operations/retrievedataset.ts +1 -1
  195. package/src/models/operations/retrievetool.ts +4 -4
  196. package/src/models/operations/runagent.ts +1 -1
  197. package/src/models/operations/streamrunagent.ts +1 -1
  198. package/src/models/operations/updateannotationqueue.ts +1 -1
  199. package/src/models/operations/updatedatapoint.ts +5 -5
  200. package/src/models/operations/updatedataset.ts +1 -1
  201. package/src/models/operations/updatetool.ts +4 -4
  202. package/packages/orq-rc/src/models/components/evaluatorresponsefunction.ts +0 -922
  203. package/packages/orq-rc/src/models/components/evaluatorresponsehttp.ts +0 -77
  204. package/packages/orq-rc/src/models/components/evaluatorresponsejsonschema.ts +0 -60
  205. package/packages/orq-rc/src/models/components/evaluatorresponsellm.ts +0 -310
  206. package/packages/orq-rc/src/models/components/evaluatorresponsepython.ts +0 -60
  207. package/packages/orq-rc/src/models/components/evaluatorresponseragas.ts +0 -84
  208. package/packages/orq-rc/src/models/components/evaluatorresponsetypescript.ts +0 -60
  209. package/packages/orq-rc/src/models/components/publicspan.ts +0 -135
  210. package/packages/orq-rc/src/models/errors/createeval.ts +0 -51
  211. package/packages/orq-rc/src/models/errors/deleteeval.ts +0 -96
  212. package/packages/orq-rc/src/models/errors/geteval.ts +0 -51
  213. package/packages/orq-rc/src/models/errors/getevals.ts +0 -51
  214. package/packages/orq-rc/src/models/errors/getv2evaluatorsidversions.ts +0 -51
  215. package/packages/orq-rc/src/models/errors/updateeval.ts +0 -51
  216. package/packages/orq-rc/src/models/operations/createannotationqueue.ts +0 -176
  217. package/packages/orq-rc/src/models/operations/getv2evaluatorsidversions.ts +0 -162
@@ -0,0 +1,122 @@
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 { Value, Value$inboundSchema } from "./value.js";
11
+
12
+ /**
13
+ * Additional event metadata. The exact shape depends on entity_type and action.
14
+ */
15
+ export type AuditLogMetadata = {};
16
+
17
+ /**
18
+ * An audit log entry for an entity event in the authenticated workspace.
19
+ */
20
+ export type AuditLog = {
21
+ /**
22
+ * Unique identifier for the audit log entry.
23
+ */
24
+ auditLogId: string;
25
+ /**
26
+ * Project associated with the event, when the audited entity belongs to a project.
27
+ */
28
+ projectId?: string | undefined;
29
+ /**
30
+ * Identifier of the entity that changed.
31
+ */
32
+ entityId: string;
33
+ entityType: Value;
34
+ action: Value;
35
+ /**
36
+ * User or system actor that caused the event, when available.
37
+ */
38
+ actorId?: string | undefined;
39
+ /**
40
+ * IP address observed for the actor, when available.
41
+ */
42
+ actorIp?: string | undefined;
43
+ actorType?: Value | undefined;
44
+ /**
45
+ * Human readable actor name captured when the action happened.
46
+ */
47
+ actorDisplay?: string | undefined;
48
+ origin?: Value | undefined;
49
+ /**
50
+ * Correlates the entry with the originating request.
51
+ */
52
+ requestId?: string | undefined;
53
+ /**
54
+ * Time when the audit log entry was created.
55
+ */
56
+ createdAt: Date;
57
+ /**
58
+ * Additional event metadata. The exact shape depends on entity_type and action.
59
+ */
60
+ metadata?: AuditLogMetadata | undefined;
61
+ };
62
+
63
+ /** @internal */
64
+ export const AuditLogMetadata$inboundSchema: z.ZodType<
65
+ AuditLogMetadata,
66
+ z.ZodTypeDef,
67
+ unknown
68
+ > = z.object({});
69
+
70
+ export function auditLogMetadataFromJSON(
71
+ jsonString: string,
72
+ ): SafeParseResult<AuditLogMetadata, SDKValidationError> {
73
+ return safeParse(
74
+ jsonString,
75
+ (x) => AuditLogMetadata$inboundSchema.parse(JSON.parse(x)),
76
+ `Failed to parse 'AuditLogMetadata' from JSON`,
77
+ );
78
+ }
79
+
80
+ /** @internal */
81
+ export const AuditLog$inboundSchema: z.ZodType<
82
+ AuditLog,
83
+ z.ZodTypeDef,
84
+ unknown
85
+ > = z.object({
86
+ audit_log_id: z.string(),
87
+ project_id: z.string().optional(),
88
+ entity_id: z.string(),
89
+ entity_type: Value$inboundSchema,
90
+ action: Value$inboundSchema,
91
+ actor_id: z.string().optional(),
92
+ actor_ip: z.string().optional(),
93
+ actor_type: Value$inboundSchema.optional(),
94
+ actor_display: z.string().optional(),
95
+ origin: Value$inboundSchema.optional(),
96
+ request_id: z.string().optional(),
97
+ created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
98
+ metadata: z.lazy(() => AuditLogMetadata$inboundSchema).optional(),
99
+ }).transform((v) => {
100
+ return remap$(v, {
101
+ "audit_log_id": "auditLogId",
102
+ "project_id": "projectId",
103
+ "entity_id": "entityId",
104
+ "entity_type": "entityType",
105
+ "actor_id": "actorId",
106
+ "actor_ip": "actorIp",
107
+ "actor_type": "actorType",
108
+ "actor_display": "actorDisplay",
109
+ "request_id": "requestId",
110
+ "created_at": "createdAt",
111
+ });
112
+ });
113
+
114
+ export function auditLogFromJSON(
115
+ jsonString: string,
116
+ ): SafeParseResult<AuditLog, SDKValidationError> {
117
+ return safeParse(
118
+ jsonString,
119
+ (x) => AuditLog$inboundSchema.parse(JSON.parse(x)),
120
+ `Failed to parse 'AuditLog' from JSON`,
121
+ );
122
+ }
@@ -0,0 +1,51 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+
7
+ /**
8
+ * A single advanced filter applied to audit logs.
9
+ */
10
+ export type AuditLogFilter = {
11
+ /**
12
+ * Filter value type, such as string, date, number, boolean, or array.
13
+ */
14
+ type: string;
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.
17
+ */
18
+ path: string;
19
+ /**
20
+ * Filter operator supported by the selected field type.
21
+ */
22
+ operator: string;
23
+ /**
24
+ * Represents a dynamically typed value which can be either null, a number, a string, a boolean, a recursive struct value, or a list of values.
25
+ */
26
+ value?: any | undefined;
27
+ };
28
+
29
+ /** @internal */
30
+ export type AuditLogFilter$Outbound = {
31
+ type: string;
32
+ path: string;
33
+ operator: string;
34
+ value?: any | undefined;
35
+ };
36
+
37
+ /** @internal */
38
+ export const AuditLogFilter$outboundSchema: z.ZodType<
39
+ AuditLogFilter$Outbound,
40
+ z.ZodTypeDef,
41
+ AuditLogFilter
42
+ > = z.object({
43
+ type: z.string(),
44
+ path: z.string(),
45
+ operator: z.string(),
46
+ value: z.any().optional(),
47
+ });
48
+
49
+ export function auditLogFilterToJSON(auditLogFilter: AuditLogFilter): string {
50
+ return JSON.stringify(AuditLogFilter$outboundSchema.parse(auditLogFilter));
51
+ }
@@ -0,0 +1,54 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import {
7
+ AuditLogFilter,
8
+ AuditLogFilter$Outbound,
9
+ AuditLogFilter$outboundSchema,
10
+ } from "./auditlogfilter.js";
11
+
12
+ /**
13
+ * Search and advanced filters for querying audit logs.
14
+ */
15
+ export type AuditLogFilterQuery = {
16
+ /**
17
+ * Optional text search applied to supported display fields.
18
+ */
19
+ search?: string | undefined;
20
+ /**
21
+ * Logical operator used to combine filters.
22
+ */
23
+ operator: string;
24
+ /**
25
+ * Advanced filters applied to the query.
26
+ */
27
+ filters: Array<AuditLogFilter>;
28
+ };
29
+
30
+ /** @internal */
31
+ export type AuditLogFilterQuery$Outbound = {
32
+ search?: string | undefined;
33
+ operator: string;
34
+ filters: Array<AuditLogFilter$Outbound>;
35
+ };
36
+
37
+ /** @internal */
38
+ export const AuditLogFilterQuery$outboundSchema: z.ZodType<
39
+ AuditLogFilterQuery$Outbound,
40
+ z.ZodTypeDef,
41
+ AuditLogFilterQuery
42
+ > = z.object({
43
+ search: z.string().optional(),
44
+ operator: z.string(),
45
+ filters: z.array(AuditLogFilter$outboundSchema),
46
+ });
47
+
48
+ export function auditLogFilterQueryToJSON(
49
+ auditLogFilterQuery: AuditLogFilterQuery,
50
+ ): string {
51
+ return JSON.stringify(
52
+ AuditLogFilterQuery$outboundSchema.parse(auditLogFilterQuery),
53
+ );
54
+ }
@@ -0,0 +1,55 @@
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
+
8
+ /**
9
+ * Cursor pagination settings for audit log queries.
10
+ */
11
+ export type AuditLogPagination = {
12
+ /**
13
+ * Maximum number of audit logs to return. Defaults to 50 when omitted.
14
+ */
15
+ limit?: number | undefined;
16
+ /**
17
+ * Cursor for the next page. Use the last audit_log_id from the previous page.
18
+ */
19
+ startingAfter?: string | undefined;
20
+ /**
21
+ * Cursor for the previous page. Use the first audit_log_id from the current page.
22
+ */
23
+ endingBefore?: string | undefined;
24
+ };
25
+
26
+ /** @internal */
27
+ export type AuditLogPagination$Outbound = {
28
+ limit?: number | undefined;
29
+ starting_after?: string | undefined;
30
+ ending_before?: string | undefined;
31
+ };
32
+
33
+ /** @internal */
34
+ export const AuditLogPagination$outboundSchema: z.ZodType<
35
+ AuditLogPagination$Outbound,
36
+ z.ZodTypeDef,
37
+ AuditLogPagination
38
+ > = z.object({
39
+ limit: z.number().int().optional(),
40
+ startingAfter: z.string().optional(),
41
+ endingBefore: z.string().optional(),
42
+ }).transform((v) => {
43
+ return remap$(v, {
44
+ startingAfter: "starting_after",
45
+ endingBefore: "ending_before",
46
+ });
47
+ });
48
+
49
+ export function auditLogPaginationToJSON(
50
+ auditLogPagination: AuditLogPagination,
51
+ ): string {
52
+ return JSON.stringify(
53
+ AuditLogPagination$outboundSchema.parse(auditLogPagination),
54
+ );
55
+ }
@@ -0,0 +1,39 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+
7
+ /**
8
+ * A sort expression for audit log queries.
9
+ */
10
+ export type AuditLogSort = {
11
+ /**
12
+ * Audit log field to sort by. Supported keys include _id, created_at, entity_type, entity_id, action, and actor_id.
13
+ */
14
+ key: string;
15
+ /**
16
+ * Sort direction. Defaults to desc when omitted or invalid.
17
+ */
18
+ direction?: string | undefined;
19
+ };
20
+
21
+ /** @internal */
22
+ export type AuditLogSort$Outbound = {
23
+ key: string;
24
+ direction?: string | undefined;
25
+ };
26
+
27
+ /** @internal */
28
+ export const AuditLogSort$outboundSchema: z.ZodType<
29
+ AuditLogSort$Outbound,
30
+ z.ZodTypeDef,
31
+ AuditLogSort
32
+ > = z.object({
33
+ key: z.string(),
34
+ direction: z.string().optional(),
35
+ });
36
+
37
+ export function auditLogSortToJSON(auditLogSort: AuditLogSort): string {
38
+ return JSON.stringify(AuditLogSort$outboundSchema.parse(auditLogSort));
39
+ }
@@ -8,13 +8,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
9
 
10
10
  /**
11
- * BudgetMatch carries the CEL expression that decides whether a budget
12
- *
13
- * @remarks
14
- * applies to a request. Available variables: `model`, `provider`,
15
- * `model_id`, `api_key`, `identity`, `project`, `metadata` (map),
16
- * `headers` (map, lowercase keys). An empty expression always matches.
17
- * Expressions are syntax-validated at write time.
11
+ * CEL expression that decides whether a budget applies to a request. Available variables: `model`, `provider`, `model_id`, `api_key`, `api_key_labels` (map), `identity`, `project`, `metadata` (map), `headers` (map, lowercase keys). An empty expression always matches. Expressions are syntax-validated at write time.
18
12
  */
19
13
  export type BudgetMatch = {
20
14
  cel?: string | undefined;
@@ -45,11 +45,7 @@ import {
45
45
  } from "./workspacebudgetscope.js";
46
46
 
47
47
  /**
48
- * BudgetScope is a closed oneof. Exactly one variant must be set. The
49
- *
50
- * @remarks
51
- * six variants are ordered by enforcement precedence (most specific to
52
- * most general) and mirror the BudgetScopeKind filter enum.
48
+ * Closed oneof of workspace, project, identity, api_key, provider, or model. Exactly one variant must be set. Variants are ordered by enforcement precedence (most specific to most general).
53
49
  */
54
50
  export type BudgetScope = {
55
51
  /**
@@ -32,11 +32,7 @@ import {
32
32
  } from "./workspacebudgetscope.js";
33
33
 
34
34
  /**
35
- * BudgetScope is a closed oneof. Exactly one variant must be set. The
36
- *
37
- * @remarks
38
- * six variants are ordered by enforcement precedence (most specific to
39
- * most general) and mirror the BudgetScopeKind filter enum.
35
+ * Closed oneof of workspace, project, identity, api_key, provider, or model. Exactly one variant must be set. Variants are ordered by enforcement precedence (most specific to most general).
40
36
  */
41
37
  export type BudgetScopeRestResponse = {
42
38
  /**
@@ -0,0 +1,27 @@
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
+
10
+ export type ClearAnnotationQueueResponse = {};
11
+
12
+ /** @internal */
13
+ export const ClearAnnotationQueueResponse$inboundSchema: z.ZodType<
14
+ ClearAnnotationQueueResponse,
15
+ z.ZodTypeDef,
16
+ unknown
17
+ > = z.object({});
18
+
19
+ export function clearAnnotationQueueResponseFromJSON(
20
+ jsonString: string,
21
+ ): SafeParseResult<ClearAnnotationQueueResponse, SDKValidationError> {
22
+ return safeParse(
23
+ jsonString,
24
+ (x) => ClearAnnotationQueueResponse$inboundSchema.parse(JSON.parse(x)),
25
+ `Failed to parse 'ClearAnnotationQueueResponse' from JSON`,
26
+ );
27
+ }
@@ -0,0 +1,54 @@
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
+
8
+ export type CreateAnnotationQueueRequest = {
9
+ /**
10
+ * Required. The display name of the annotation queue.
11
+ */
12
+ displayName: string;
13
+ /**
14
+ * Required. The description of the annotation queue.
15
+ */
16
+ description: string;
17
+ /**
18
+ * Required. The project to link this annotation queue to.
19
+ */
20
+ projectId: string;
21
+ };
22
+
23
+ /** @internal */
24
+ export type CreateAnnotationQueueRequest$Outbound = {
25
+ display_name: string;
26
+ description: string;
27
+ project_id: string;
28
+ };
29
+
30
+ /** @internal */
31
+ export const CreateAnnotationQueueRequest$outboundSchema: z.ZodType<
32
+ CreateAnnotationQueueRequest$Outbound,
33
+ z.ZodTypeDef,
34
+ CreateAnnotationQueueRequest
35
+ > = z.object({
36
+ displayName: z.string(),
37
+ description: z.string(),
38
+ projectId: z.string(),
39
+ }).transform((v) => {
40
+ return remap$(v, {
41
+ displayName: "display_name",
42
+ projectId: "project_id",
43
+ });
44
+ });
45
+
46
+ export function createAnnotationQueueRequestToJSON(
47
+ createAnnotationQueueRequest: CreateAnnotationQueueRequest,
48
+ ): string {
49
+ return JSON.stringify(
50
+ CreateAnnotationQueueRequest$outboundSchema.parse(
51
+ createAnnotationQueueRequest,
52
+ ),
53
+ );
54
+ }
@@ -63,6 +63,13 @@ export type CreateApiKeyRequest = {
63
63
  * restriction. See McpAccess for the deny_all / allow-list semantics.
64
64
  */
65
65
  mcpAccess?: McpAccess | undefined;
66
+ /**
67
+ * Optional attribution labels (at most 10; keys `^[a-z0-9_.-]{1,32}$`,
68
+ *
69
+ * @remarks
70
+ * values up to 64 characters). See ApiKey.labels.
71
+ */
72
+ labels?: { [k: string]: string } | undefined;
66
73
  };
67
74
 
68
75
  /** @internal */
@@ -74,6 +81,7 @@ export type CreateApiKeyRequest$Outbound = {
74
81
  access?: { [k: string]: string } | undefined;
75
82
  expires_at?: string | undefined;
76
83
  mcp_access?: McpAccess$Outbound | undefined;
84
+ labels?: { [k: string]: string } | undefined;
77
85
  };
78
86
 
79
87
  /** @internal */
@@ -89,6 +97,7 @@ export const CreateApiKeyRequest$outboundSchema: z.ZodType<
89
97
  access: z.record(AccessLevel$outboundSchema).optional(),
90
98
  expiresAt: z.date().transform(v => v.toISOString()).optional(),
91
99
  mcpAccess: McpAccess$outboundSchema.optional(),
100
+ labels: z.record(z.string()).optional(),
92
101
  }).transform((v) => {
93
102
  return remap$(v, {
94
103
  projectScope: "project_scope",
@@ -0,0 +1,27 @@
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
+
10
+ export type DeleteAnnotationQueueResponse = {};
11
+
12
+ /** @internal */
13
+ export const DeleteAnnotationQueueResponse$inboundSchema: z.ZodType<
14
+ DeleteAnnotationQueueResponse,
15
+ z.ZodTypeDef,
16
+ unknown
17
+ > = z.object({});
18
+
19
+ export function deleteAnnotationQueueResponseFromJSON(
20
+ jsonString: string,
21
+ ): SafeParseResult<DeleteAnnotationQueueResponse, SDKValidationError> {
22
+ return safeParse(
23
+ jsonString,
24
+ (x) => DeleteAnnotationQueueResponse$inboundSchema.parse(JSON.parse(x)),
25
+ `Failed to parse 'DeleteAnnotationQueueResponse' from JSON`,
26
+ );
27
+ }
@@ -0,0 +1,27 @@
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
+
10
+ export type DeleteEvaluatorResponse = {};
11
+
12
+ /** @internal */
13
+ export const DeleteEvaluatorResponse$inboundSchema: z.ZodType<
14
+ DeleteEvaluatorResponse,
15
+ z.ZodTypeDef,
16
+ unknown
17
+ > = z.object({});
18
+
19
+ export function deleteEvaluatorResponseFromJSON(
20
+ jsonString: string,
21
+ ): SafeParseResult<DeleteEvaluatorResponse, SDKValidationError> {
22
+ return safeParse(
23
+ jsonString,
24
+ (x) => DeleteEvaluatorResponse$inboundSchema.parse(JSON.parse(x)),
25
+ `Failed to parse 'DeleteEvaluatorResponse' from JSON`,
26
+ );
27
+ }
@@ -0,0 +1,50 @@
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
+
10
+ export type Document = {};
11
+
12
+ export type EvaluatorDocumentResponse = {
13
+ document?: Document | undefined;
14
+ };
15
+
16
+ /** @internal */
17
+ export const Document$inboundSchema: z.ZodType<
18
+ Document,
19
+ z.ZodTypeDef,
20
+ unknown
21
+ > = z.object({});
22
+
23
+ export function documentFromJSON(
24
+ jsonString: string,
25
+ ): SafeParseResult<Document, SDKValidationError> {
26
+ return safeParse(
27
+ jsonString,
28
+ (x) => Document$inboundSchema.parse(JSON.parse(x)),
29
+ `Failed to parse 'Document' from JSON`,
30
+ );
31
+ }
32
+
33
+ /** @internal */
34
+ export const EvaluatorDocumentResponse$inboundSchema: z.ZodType<
35
+ EvaluatorDocumentResponse,
36
+ z.ZodTypeDef,
37
+ unknown
38
+ > = z.object({
39
+ document: z.lazy(() => Document$inboundSchema).optional(),
40
+ });
41
+
42
+ export function evaluatorDocumentResponseFromJSON(
43
+ jsonString: string,
44
+ ): SafeParseResult<EvaluatorDocumentResponse, SDKValidationError> {
45
+ return safeParse(
46
+ jsonString,
47
+ (x) => EvaluatorDocumentResponse$inboundSchema.parse(JSON.parse(x)),
48
+ `Failed to parse 'EvaluatorDocumentResponse' from JSON`,
49
+ );
50
+ }
@@ -4,6 +4,34 @@
4
4
 
5
5
  import * as z from "zod/v3";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { ClosedEnum } from "../../types/enums.js";
8
+
9
+ /**
10
+ * Whether the agent may only read this file system, or also write to it.
11
+ */
12
+ export const AccessMode = {
13
+ ReadOnly: "read_only",
14
+ ReadWrite: "read_write",
15
+ } as const;
16
+ /**
17
+ * Whether the agent may only read this file system, or also write to it.
18
+ */
19
+ export type AccessMode = ClosedEnum<typeof AccessMode>;
20
+
21
+ export type Configuration = {
22
+ /**
23
+ * The id of the file system to attach.
24
+ */
25
+ fileSystemId?: string | undefined;
26
+ /**
27
+ * The key of the file system to attach.
28
+ */
29
+ fileSystemKey?: string | undefined;
30
+ /**
31
+ * Whether the agent may only read this file system, or also write to it.
32
+ */
33
+ accessMode?: AccessMode | undefined;
34
+ };
7
35
 
8
36
  /**
9
37
  * Attaches a persistent file system to the agent, named by file_system_id or file_system_key in the configuration. The agent may only read it unless the configured access_mode is read_write.
@@ -14,17 +42,46 @@ export type FileSystemToolInput = {
14
42
  * Whether this tool requires approval before execution
15
43
  */
16
44
  requiresApproval?: boolean | undefined;
17
- /**
18
- * Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
19
- */
20
- configuration?: { [k: string]: any } | undefined;
45
+ configuration: Configuration;
21
46
  };
22
47
 
48
+ /** @internal */
49
+ export const AccessMode$outboundSchema: z.ZodNativeEnum<typeof AccessMode> = z
50
+ .nativeEnum(AccessMode);
51
+
52
+ /** @internal */
53
+ export type Configuration$Outbound = {
54
+ file_system_id?: string | undefined;
55
+ file_system_key?: string | undefined;
56
+ access_mode: string;
57
+ };
58
+
59
+ /** @internal */
60
+ export const Configuration$outboundSchema: z.ZodType<
61
+ Configuration$Outbound,
62
+ z.ZodTypeDef,
63
+ Configuration
64
+ > = z.object({
65
+ fileSystemId: z.string().optional(),
66
+ fileSystemKey: z.string().optional(),
67
+ accessMode: AccessMode$outboundSchema.default("read_only"),
68
+ }).transform((v) => {
69
+ return remap$(v, {
70
+ fileSystemId: "file_system_id",
71
+ fileSystemKey: "file_system_key",
72
+ accessMode: "access_mode",
73
+ });
74
+ });
75
+
76
+ export function configurationToJSON(configuration: Configuration): string {
77
+ return JSON.stringify(Configuration$outboundSchema.parse(configuration));
78
+ }
79
+
23
80
  /** @internal */
24
81
  export type FileSystemToolInput$Outbound = {
25
82
  type: "file_system";
26
83
  requires_approval?: boolean | undefined;
27
- configuration?: { [k: string]: any } | undefined;
84
+ configuration: Configuration$Outbound;
28
85
  };
29
86
 
30
87
  /** @internal */
@@ -35,7 +92,7 @@ export const FileSystemToolInput$outboundSchema: z.ZodType<
35
92
  > = z.object({
36
93
  type: z.literal("file_system"),
37
94
  requiresApproval: z.boolean().optional(),
38
- configuration: z.record(z.any()).optional(),
95
+ configuration: z.lazy(() => Configuration$outboundSchema),
39
96
  }).transform((v) => {
40
97
  return remap$(v, {
41
98
  requiresApproval: "requires_approval",