@orq-ai/node 4.9.10 → 4.9.12

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 (188) 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/reasoningpart.js +1 -1
  5. package/models/operations/createcontact.js +1 -1
  6. package/models/operations/createdataset.js +1 -1
  7. package/models/operations/createdatasetitem.js +4 -4
  8. package/models/operations/createdatasource.js +1 -1
  9. package/models/operations/createeval.js +16 -16
  10. package/models/operations/createidentity.js +1 -1
  11. package/models/operations/createtool.js +6 -6
  12. package/models/operations/getalltools.js +6 -6
  13. package/models/operations/getevals.js +16 -16
  14. package/models/operations/getv2humanevalsets.js +2 -2
  15. package/models/operations/getv2humanevalsetsid.js +2 -2
  16. package/models/operations/listdatasetdatapoints.js +4 -4
  17. package/models/operations/listdatasets.js +1 -1
  18. package/models/operations/listdatasources.js +1 -1
  19. package/models/operations/listidentities.js +1 -1
  20. package/models/operations/patchv2humanevalsetsid.js +2 -2
  21. package/models/operations/postv2feedbackevaluation.js +3 -3
  22. package/models/operations/postv2humanevalsets.js +2 -2
  23. package/models/operations/retrievedatapoint.js +4 -4
  24. package/models/operations/retrievedataset.js +1 -1
  25. package/models/operations/retrievedatasource.js +1 -1
  26. package/models/operations/retrieveidentity.js +1 -1
  27. package/models/operations/retrievetool.js +6 -6
  28. package/models/operations/runagent.js +1 -1
  29. package/models/operations/streamrunagent.js +1 -1
  30. package/models/operations/updatedatapoint.js +4 -4
  31. package/models/operations/updatedataset.js +1 -1
  32. package/models/operations/updatedatasource.js +1 -1
  33. package/models/operations/updateeval.js +16 -16
  34. package/models/operations/updateidentity.js +1 -1
  35. package/models/operations/updatetool.js +7 -7
  36. package/package.json +7 -7
  37. package/packages/orq-rc/src/funcs/{reportingQuery.ts → contactsCreate.ts} +13 -13
  38. package/packages/orq-rc/src/funcs/identitiesCreate.ts +15 -10
  39. package/packages/orq-rc/src/funcs/identitiesDelete.ts +16 -7
  40. package/packages/orq-rc/src/funcs/identitiesList.ts +5 -6
  41. package/packages/orq-rc/src/funcs/identitiesRetrieve.ts +18 -6
  42. package/packages/orq-rc/src/funcs/identitiesUpdate.ts +15 -9
  43. package/packages/orq-rc/src/funcs/projectsCreate.ts +1 -1
  44. package/packages/orq-rc/src/funcs/projectsDelete.ts +0 -3
  45. package/packages/orq-rc/src/funcs/projectsList.ts +1 -1
  46. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +163 -0
  47. package/packages/orq-rc/src/funcs/skillsCreate.ts +1 -1
  48. package/packages/orq-rc/src/funcs/skillsDelete.ts +0 -3
  49. package/packages/orq-rc/src/funcs/skillsGet.ts +1 -1
  50. package/packages/orq-rc/src/funcs/skillsList.ts +1 -1
  51. package/packages/orq-rc/src/funcs/skillsUpdate.ts +1 -1
  52. package/packages/orq-rc/src/lib/config.ts +2 -2
  53. package/packages/orq-rc/src/models/components/createprojectrequest.ts +0 -6
  54. package/packages/orq-rc/src/models/components/createprojectresponse.ts +0 -3
  55. package/packages/orq-rc/src/models/components/createskillrequest.ts +0 -18
  56. package/packages/orq-rc/src/models/components/createskillresponse.ts +0 -3
  57. package/packages/orq-rc/src/models/components/file.ts +3 -0
  58. package/packages/orq-rc/src/models/components/getprojectresponse.ts +0 -3
  59. package/packages/orq-rc/src/models/components/getskillresponse.ts +0 -3
  60. package/packages/orq-rc/src/models/components/index.ts +0 -15
  61. package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +10 -17
  62. package/packages/orq-rc/src/models/components/listprojectsresponse.ts +0 -12
  63. package/packages/orq-rc/src/models/components/listskillsresponse.ts +0 -12
  64. package/packages/orq-rc/src/models/components/modelref.ts +0 -6
  65. package/packages/orq-rc/src/models/components/project.ts +3 -42
  66. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  67. package/packages/orq-rc/src/models/components/skill.ts +3 -37
  68. package/packages/orq-rc/src/models/components/updateprojectrequest.ts +0 -12
  69. package/packages/orq-rc/src/models/components/updateprojectresponse.ts +0 -3
  70. package/packages/orq-rc/src/models/components/updateskillrequest.ts +0 -21
  71. package/packages/orq-rc/src/models/components/updateskillresponse.ts +0 -3
  72. package/packages/orq-rc/src/models/errors/deleteidentity.ts +62 -0
  73. package/packages/orq-rc/src/models/errors/index.ts +3 -0
  74. package/packages/orq-rc/src/models/errors/retrieveidentity.ts +118 -0
  75. package/packages/orq-rc/src/models/errors/updateidentity.ts +54 -0
  76. package/packages/orq-rc/src/models/operations/createagentrequest.ts +3 -3
  77. package/packages/orq-rc/src/models/operations/createannotation.ts +11 -7
  78. package/packages/orq-rc/src/models/operations/createcontact.ts +156 -0
  79. package/packages/orq-rc/src/models/operations/createdataset.ts +4 -4
  80. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
  81. package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
  82. package/packages/orq-rc/src/models/operations/createeval.ts +31 -45
  83. package/packages/orq-rc/src/models/operations/createidentity.ts +162 -0
  84. package/packages/orq-rc/src/models/operations/createknowledge.ts +9 -9
  85. package/packages/orq-rc/src/models/operations/creatememorystore.ts +3 -3
  86. package/packages/orq-rc/src/models/operations/createprompt.ts +3 -3
  87. package/packages/orq-rc/src/models/operations/createtool.ts +36 -36
  88. package/packages/orq-rc/src/models/operations/deleteidentity.ts +3 -0
  89. package/packages/orq-rc/src/models/operations/getalltools.ts +21 -21
  90. package/packages/orq-rc/src/models/operations/getevals.ts +16 -22
  91. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +6 -6
  92. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
  93. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  94. package/packages/orq-rc/src/models/operations/index.ts +3 -0
  95. package/packages/orq-rc/src/models/operations/invokeeval.ts +80 -83
  96. package/packages/orq-rc/src/models/operations/listagents.ts +3 -3
  97. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
  98. package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
  99. package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
  100. package/packages/orq-rc/src/models/operations/listidentities.ts +230 -9
  101. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +6 -6
  102. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  103. package/packages/orq-rc/src/models/operations/postv2agentsa2a.ts +17 -14
  104. package/packages/orq-rc/src/models/operations/postv2feedback.ts +27 -34
  105. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +3 -3
  106. package/packages/orq-rc/src/models/operations/postv2feedbackremove.ts +17 -14
  107. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  108. package/packages/orq-rc/src/models/operations/projectdelete.ts +0 -3
  109. package/packages/orq-rc/src/models/operations/projectget.ts +0 -3
  110. package/packages/orq-rc/src/models/operations/projectlist.ts +0 -15
  111. package/packages/orq-rc/src/models/operations/projectupdate.ts +0 -3
  112. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +108 -0
  113. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +3 -3
  114. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
  115. package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
  116. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
  117. package/packages/orq-rc/src/models/operations/retrieveidentity.ts +138 -3
  118. package/packages/orq-rc/src/models/operations/retrievetool.ts +21 -21
  119. package/packages/orq-rc/src/models/operations/runagent.ts +4 -4
  120. package/packages/orq-rc/src/models/operations/skilldelete.ts +0 -3
  121. package/packages/orq-rc/src/models/operations/skilllist.ts +0 -12
  122. package/packages/orq-rc/src/models/operations/skillupdate.ts +0 -3
  123. package/packages/orq-rc/src/models/operations/streamrunagent.ts +4 -4
  124. package/packages/orq-rc/src/models/operations/updateagent.ts +6 -6
  125. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
  126. package/packages/orq-rc/src/models/operations/updatedataset.ts +4 -4
  127. package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
  128. package/packages/orq-rc/src/models/operations/updateeval.ts +23 -30
  129. package/packages/orq-rc/src/models/operations/updateidentity.ts +154 -5
  130. package/packages/orq-rc/src/models/operations/updateknowledge.ts +12 -12
  131. package/packages/orq-rc/src/models/operations/updateprompt.ts +3 -3
  132. package/packages/orq-rc/src/models/operations/updatetool.ts +37 -37
  133. package/packages/orq-rc/src/sdk/contacts.ts +27 -0
  134. package/packages/orq-rc/src/sdk/feedback.ts +8 -8
  135. package/packages/orq-rc/src/sdk/identities.ts +17 -18
  136. package/packages/orq-rc/src/sdk/projects.ts +2 -5
  137. package/packages/orq-rc/src/sdk/remoteconfigs.ts +24 -0
  138. package/packages/orq-rc/src/sdk/sdk.ts +22 -16
  139. package/packages/orq-rc/src/sdk/skills.ts +4 -7
  140. package/src/lib/config.ts +2 -2
  141. package/src/models/components/reasoningpart.ts +1 -1
  142. package/src/models/operations/createcontact.ts +1 -1
  143. package/src/models/operations/createdataset.ts +1 -1
  144. package/src/models/operations/createdatasetitem.ts +4 -4
  145. package/src/models/operations/createdatasource.ts +1 -1
  146. package/src/models/operations/createeval.ts +16 -16
  147. package/src/models/operations/createidentity.ts +1 -1
  148. package/src/models/operations/createtool.ts +6 -6
  149. package/src/models/operations/getalltools.ts +6 -6
  150. package/src/models/operations/getevals.ts +16 -16
  151. package/src/models/operations/getv2humanevalsets.ts +2 -2
  152. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  153. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  154. package/src/models/operations/listdatasets.ts +1 -1
  155. package/src/models/operations/listdatasources.ts +1 -1
  156. package/src/models/operations/listidentities.ts +1 -1
  157. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  158. package/src/models/operations/postv2feedbackevaluation.ts +3 -3
  159. package/src/models/operations/postv2humanevalsets.ts +2 -2
  160. package/src/models/operations/retrievedatapoint.ts +4 -4
  161. package/src/models/operations/retrievedataset.ts +1 -1
  162. package/src/models/operations/retrievedatasource.ts +1 -1
  163. package/src/models/operations/retrieveidentity.ts +1 -1
  164. package/src/models/operations/retrievetool.ts +6 -6
  165. package/src/models/operations/runagent.ts +1 -1
  166. package/src/models/operations/streamrunagent.ts +1 -1
  167. package/src/models/operations/updatedatapoint.ts +4 -4
  168. package/src/models/operations/updatedataset.ts +1 -1
  169. package/src/models/operations/updatedatasource.ts +1 -1
  170. package/src/models/operations/updateeval.ts +16 -16
  171. package/src/models/operations/updateidentity.ts +1 -1
  172. package/src/models/operations/updatetool.ts +7 -7
  173. package/packages/orq-rc/src/models/components/createidentityrequest.ts +0 -76
  174. package/packages/orq-rc/src/models/components/createidentityresponse.ts +0 -32
  175. package/packages/orq-rc/src/models/components/datapoint.ts +0 -60
  176. package/packages/orq-rc/src/models/components/deleteidentityresponse.ts +0 -27
  177. package/packages/orq-rc/src/models/components/filter.ts +0 -137
  178. package/packages/orq-rc/src/models/components/identity.ts +0 -83
  179. package/packages/orq-rc/src/models/components/identitymetrics.ts +0 -45
  180. package/packages/orq-rc/src/models/components/listidentitiesresponse.ts +0 -41
  181. package/packages/orq-rc/src/models/components/queryreportrequest.ts +0 -237
  182. package/packages/orq-rc/src/models/components/queryreportresponse.ts +0 -96
  183. package/packages/orq-rc/src/models/components/responsemeta.ts +0 -103
  184. package/packages/orq-rc/src/models/components/retrieveidentityresponse.ts +0 -32
  185. package/packages/orq-rc/src/models/components/totals.ts +0 -34
  186. package/packages/orq-rc/src/models/components/updateidentityrequest.ts +0 -75
  187. package/packages/orq-rc/src/models/components/updateidentityresponse.ts +0 -32
  188. package/packages/orq-rc/src/sdk/reporting.ts +0 -27
@@ -4,24 +4,148 @@
4
4
 
5
5
  import * as z from "zod/v3";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ /**
13
+ * Filter identities by tags. Can be provided as JSON object {"tags": ["premium", "beta-user"]} or as query format "tags=premium,beta-user"
14
+ */
15
+ export type QueryParamFilterBy = {
16
+ tags?: Array<string> | undefined;
17
+ };
7
18
 
8
19
  export type ListIdentitiesRequest = {
20
+ /**
21
+ * A limit on the number of objects to be returned. Limit can range between 1 and 50, and the default is 10
22
+ */
9
23
  limit?: number | undefined;
24
+ /**
25
+ * A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, ending with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `after=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the next page of the list.
26
+ */
10
27
  startingAfter?: string | undefined;
28
+ /**
29
+ * A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, starting with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `before=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the previous page of the list.
30
+ */
11
31
  endingBefore?: string | undefined;
32
+ /**
33
+ * Search identities by display name or email address. Minimum 2 characters required.
34
+ */
12
35
  search?: string | undefined;
13
- filterByTags?: Array<string> | undefined;
14
- includeMetrics?: boolean | undefined;
36
+ /**
37
+ * Filter identities by tags. Can be provided as JSON object {"tags": ["premium", "beta-user"]} or as query format "tags=premium,beta-user"
38
+ */
39
+ filterBy?: QueryParamFilterBy | undefined;
40
+ /**
41
+ * Include usage metrics of the last 30 days for each identity.
42
+ */
43
+ includeMetrics?: boolean | null | undefined;
44
+ };
45
+
46
+ export const ListIdentitiesObject = {
47
+ List: "list",
48
+ } as const;
49
+ export type ListIdentitiesObject = ClosedEnum<typeof ListIdentitiesObject>;
50
+
51
+ export type ListIdentitiesMetrics = {
52
+ /**
53
+ * Total cost in dollars of the last 30 days
54
+ */
55
+ totalCost: number;
56
+ /**
57
+ * Total tokens of the last 30 days
58
+ */
59
+ totalTokens: number;
60
+ /**
61
+ * Total requests of the last 30 days
62
+ */
63
+ totalRequests: number;
64
+ /**
65
+ * P50 error rate of the last 30 days
66
+ */
67
+ errorRate: number;
68
+ };
69
+
70
+ export type ListIdentitiesData = {
71
+ /**
72
+ * Unique ULID (Universally Unique Lexicographically Sortable Identifier) for the contact
73
+ */
74
+ id: string;
75
+ /**
76
+ * Unique string value to identify the contact user in the customer's system. This should be the same ID you use in your system to reference this user.
77
+ */
78
+ externalId: string;
79
+ /**
80
+ * Display name or nickname of the contact user. This is typically shown in user interfaces.
81
+ */
82
+ displayName?: string | null | undefined;
83
+ /**
84
+ * Email address of the contact user
85
+ */
86
+ email?: string | null | undefined;
87
+ /**
88
+ * URL linking to the contact user's avatar image
89
+ */
90
+ avatarUrl?: string | null | undefined;
91
+ /**
92
+ * Array of tags associated with the contact. Useful for organizing and filtering contacts by categories, departments, or custom classifications.
93
+ */
94
+ tags?: Array<string> | undefined;
95
+ /**
96
+ * Additional custom metadata associated with the contact as key-value pairs. Use this to store any extra information specific to your application.
97
+ */
98
+ metadata?: { [k: string]: any } | undefined;
99
+ /**
100
+ * The date and time the resource was created
101
+ */
102
+ created?: Date | undefined;
103
+ /**
104
+ * The date and time the resource was last updated
105
+ */
106
+ updated: Date;
107
+ metrics: ListIdentitiesMetrics;
15
108
  };
16
109
 
110
+ /**
111
+ * List of identities
112
+ */
113
+ export type ListIdentitiesResponseBody = {
114
+ object: ListIdentitiesObject;
115
+ data: Array<ListIdentitiesData>;
116
+ hasMore: boolean;
117
+ };
118
+
119
+ /** @internal */
120
+ export type QueryParamFilterBy$Outbound = {
121
+ tags?: Array<string> | undefined;
122
+ };
123
+
124
+ /** @internal */
125
+ export const QueryParamFilterBy$outboundSchema: z.ZodType<
126
+ QueryParamFilterBy$Outbound,
127
+ z.ZodTypeDef,
128
+ QueryParamFilterBy
129
+ > = z.object({
130
+ tags: z.array(z.string()).optional(),
131
+ });
132
+
133
+ export function queryParamFilterByToJSON(
134
+ queryParamFilterBy: QueryParamFilterBy,
135
+ ): string {
136
+ return JSON.stringify(
137
+ QueryParamFilterBy$outboundSchema.parse(queryParamFilterBy),
138
+ );
139
+ }
140
+
17
141
  /** @internal */
18
142
  export type ListIdentitiesRequest$Outbound = {
19
- limit?: number | undefined;
143
+ limit: number;
20
144
  starting_after?: string | undefined;
21
145
  ending_before?: string | undefined;
22
146
  search?: string | undefined;
23
- "filter_by.tags"?: Array<string> | undefined;
24
- include_metrics?: boolean | undefined;
147
+ filter_by?: QueryParamFilterBy$Outbound | undefined;
148
+ include_metrics: boolean | null;
25
149
  };
26
150
 
27
151
  /** @internal */
@@ -30,17 +154,17 @@ export const ListIdentitiesRequest$outboundSchema: z.ZodType<
30
154
  z.ZodTypeDef,
31
155
  ListIdentitiesRequest
32
156
  > = z.object({
33
- limit: z.number().int().optional(),
157
+ limit: z.number().int().default(10),
34
158
  startingAfter: z.string().optional(),
35
159
  endingBefore: z.string().optional(),
36
160
  search: z.string().optional(),
37
- filterByTags: z.array(z.string()).optional(),
38
- includeMetrics: z.boolean().optional(),
161
+ filterBy: z.lazy(() => QueryParamFilterBy$outboundSchema).optional(),
162
+ includeMetrics: z.nullable(z.boolean().default(false)),
39
163
  }).transform((v) => {
40
164
  return remap$(v, {
41
165
  startingAfter: "starting_after",
42
166
  endingBefore: "ending_before",
43
- filterByTags: "filter_by.tags",
167
+ filterBy: "filter_by",
44
168
  includeMetrics: "include_metrics",
45
169
  });
46
170
  });
@@ -52,3 +176,100 @@ export function listIdentitiesRequestToJSON(
52
176
  ListIdentitiesRequest$outboundSchema.parse(listIdentitiesRequest),
53
177
  );
54
178
  }
179
+
180
+ /** @internal */
181
+ export const ListIdentitiesObject$inboundSchema: z.ZodNativeEnum<
182
+ typeof ListIdentitiesObject
183
+ > = z.nativeEnum(ListIdentitiesObject);
184
+
185
+ /** @internal */
186
+ export const ListIdentitiesMetrics$inboundSchema: z.ZodType<
187
+ ListIdentitiesMetrics,
188
+ z.ZodTypeDef,
189
+ unknown
190
+ > = z.object({
191
+ total_cost: z.number(),
192
+ total_tokens: z.number(),
193
+ total_requests: z.number(),
194
+ error_rate: z.number(),
195
+ }).transform((v) => {
196
+ return remap$(v, {
197
+ "total_cost": "totalCost",
198
+ "total_tokens": "totalTokens",
199
+ "total_requests": "totalRequests",
200
+ "error_rate": "errorRate",
201
+ });
202
+ });
203
+
204
+ export function listIdentitiesMetricsFromJSON(
205
+ jsonString: string,
206
+ ): SafeParseResult<ListIdentitiesMetrics, SDKValidationError> {
207
+ return safeParse(
208
+ jsonString,
209
+ (x) => ListIdentitiesMetrics$inboundSchema.parse(JSON.parse(x)),
210
+ `Failed to parse 'ListIdentitiesMetrics' from JSON`,
211
+ );
212
+ }
213
+
214
+ /** @internal */
215
+ export const ListIdentitiesData$inboundSchema: z.ZodType<
216
+ ListIdentitiesData,
217
+ z.ZodTypeDef,
218
+ unknown
219
+ > = z.object({
220
+ _id: z.string(),
221
+ external_id: z.string(),
222
+ display_name: z.nullable(z.string()).optional(),
223
+ email: z.nullable(z.string()).optional(),
224
+ avatar_url: z.nullable(z.string()).optional(),
225
+ tags: z.array(z.string()).optional(),
226
+ metadata: z.record(z.any()).optional(),
227
+ created: z.string().datetime({ offset: true }).transform(v => new Date(v))
228
+ .optional(),
229
+ updated: z.string().datetime({ offset: true }).default(
230
+ "2026-05-19T14:38:12.201Z",
231
+ ).transform(v => new Date(v)),
232
+ metrics: z.lazy(() => ListIdentitiesMetrics$inboundSchema),
233
+ }).transform((v) => {
234
+ return remap$(v, {
235
+ "_id": "id",
236
+ "external_id": "externalId",
237
+ "display_name": "displayName",
238
+ "avatar_url": "avatarUrl",
239
+ });
240
+ });
241
+
242
+ export function listIdentitiesDataFromJSON(
243
+ jsonString: string,
244
+ ): SafeParseResult<ListIdentitiesData, SDKValidationError> {
245
+ return safeParse(
246
+ jsonString,
247
+ (x) => ListIdentitiesData$inboundSchema.parse(JSON.parse(x)),
248
+ `Failed to parse 'ListIdentitiesData' from JSON`,
249
+ );
250
+ }
251
+
252
+ /** @internal */
253
+ export const ListIdentitiesResponseBody$inboundSchema: z.ZodType<
254
+ ListIdentitiesResponseBody,
255
+ z.ZodTypeDef,
256
+ unknown
257
+ > = z.object({
258
+ object: ListIdentitiesObject$inboundSchema,
259
+ data: z.array(z.lazy(() => ListIdentitiesData$inboundSchema)),
260
+ has_more: z.boolean(),
261
+ }).transform((v) => {
262
+ return remap$(v, {
263
+ "has_more": "hasMore",
264
+ });
265
+ });
266
+
267
+ export function listIdentitiesResponseBodyFromJSON(
268
+ jsonString: string,
269
+ ): SafeParseResult<ListIdentitiesResponseBody, SDKValidationError> {
270
+ return safeParse(
271
+ jsonString,
272
+ (x) => ListIdentitiesResponseBody$inboundSchema.parse(JSON.parse(x)),
273
+ `Failed to parse 'ListIdentitiesResponseBody' from JSON`,
274
+ );
275
+ }
@@ -121,13 +121,13 @@ export type Data2 = {
121
121
  */
122
122
  domainId: string;
123
123
  /**
124
- * Entity storage path.
124
+ * Entity storage path in the format: `project/folder/subfolder/...`
125
125
  *
126
126
  * @remarks
127
127
  *
128
- * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
128
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
129
129
  *
130
- * With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
130
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
131
131
  */
132
132
  path?: string | undefined;
133
133
  createdById?: string | null | undefined;
@@ -240,13 +240,13 @@ export type Data1 = {
240
240
  */
241
241
  domainId: string;
242
242
  /**
243
- * Entity storage path.
243
+ * Entity storage path in the format: `project/folder/subfolder/...`
244
244
  *
245
245
  * @remarks
246
246
  *
247
- * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
247
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
248
248
  *
249
- * With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
249
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
250
250
  */
251
251
  path?: string | undefined;
252
252
  createdById?: string | null | undefined;
@@ -318,7 +318,7 @@ export const PatchV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
318
318
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
319
319
  .optional(),
320
320
  updated: z.string().datetime({ offset: true }).default(
321
- "2026-05-19T07:57:33.807Z",
321
+ "2026-05-19T14:38:12.201Z",
322
322
  ).transform(v => new Date(v)),
323
323
  filter_type: z.literal("name"),
324
324
  filter_value: z.string(),
@@ -364,7 +364,7 @@ export const PatchV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
364
364
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
365
365
  .optional(),
366
366
  updated: z.string().datetime({ offset: true }).default(
367
- "2026-05-19T07:57:33.807Z",
367
+ "2026-05-19T14:38:12.201Z",
368
368
  ).transform(v => new Date(v)),
369
369
  filter_type: z.literal("span_type"),
370
370
  filter_values: z.array(z.string()),
@@ -54,7 +54,7 @@ export const PostV2AgentsA2aType = {
54
54
  } as const;
55
55
  export type PostV2AgentsA2aType = ClosedEnum<typeof PostV2AgentsA2aType>;
56
56
 
57
- export type Metrics = {
57
+ export type PostV2AgentsA2aMetrics = {
58
58
  totalCost: number;
59
59
  };
60
60
 
@@ -82,7 +82,7 @@ export type PostV2AgentsA2aResponseBody = {
82
82
  instructions?: string | undefined;
83
83
  status: string;
84
84
  path: string;
85
- metrics: Metrics;
85
+ metrics: PostV2AgentsA2aMetrics;
86
86
  memoryStores: Array<string>;
87
87
  teamOfAgents: Array<any>;
88
88
  created?: string | undefined;
@@ -156,22 +156,25 @@ export const PostV2AgentsA2aType$inboundSchema: z.ZodNativeEnum<
156
156
  > = z.nativeEnum(PostV2AgentsA2aType);
157
157
 
158
158
  /** @internal */
159
- export const Metrics$inboundSchema: z.ZodType<Metrics, z.ZodTypeDef, unknown> =
160
- z.object({
161
- total_cost: z.number(),
162
- }).transform((v) => {
163
- return remap$(v, {
164
- "total_cost": "totalCost",
165
- });
159
+ export const PostV2AgentsA2aMetrics$inboundSchema: z.ZodType<
160
+ PostV2AgentsA2aMetrics,
161
+ z.ZodTypeDef,
162
+ unknown
163
+ > = z.object({
164
+ total_cost: z.number(),
165
+ }).transform((v) => {
166
+ return remap$(v, {
167
+ "total_cost": "totalCost",
166
168
  });
169
+ });
167
170
 
168
- export function metricsFromJSON(
171
+ export function postV2AgentsA2aMetricsFromJSON(
169
172
  jsonString: string,
170
- ): SafeParseResult<Metrics, SDKValidationError> {
173
+ ): SafeParseResult<PostV2AgentsA2aMetrics, SDKValidationError> {
171
174
  return safeParse(
172
175
  jsonString,
173
- (x) => Metrics$inboundSchema.parse(JSON.parse(x)),
174
- `Failed to parse 'Metrics' from JSON`,
176
+ (x) => PostV2AgentsA2aMetrics$inboundSchema.parse(JSON.parse(x)),
177
+ `Failed to parse 'PostV2AgentsA2aMetrics' from JSON`,
175
178
  );
176
179
  }
177
180
 
@@ -219,7 +222,7 @@ export const PostV2AgentsA2aResponseBody$inboundSchema: z.ZodType<
219
222
  instructions: z.string().optional(),
220
223
  status: z.string(),
221
224
  path: z.string(),
222
- metrics: z.lazy(() => Metrics$inboundSchema),
225
+ metrics: z.lazy(() => PostV2AgentsA2aMetrics$inboundSchema),
223
226
  memory_stores: z.array(z.string()),
224
227
  team_of_agents: z.array(z.any()),
225
228
  created: z.string().optional(),
@@ -12,9 +12,9 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
12
  /**
13
13
  * The feedback value. For single selection of multiple choice, the value should be an array of strings. For `correction`, the value should be a string.
14
14
  */
15
- export type PostV2FeedbackValue = string | number | Array<string>;
15
+ export type Value = string | number | Array<string>;
16
16
 
17
- export const PostV2FeedbackProduct = {
17
+ export const Product = {
18
18
  Remoteconfigs: "remoteconfigs",
19
19
  Deployments: "deployments",
20
20
  Experiments: "experiments",
@@ -33,7 +33,7 @@ export const PostV2FeedbackProduct = {
33
33
  Otel: "otel",
34
34
  AiChat: "ai-chat",
35
35
  } as const;
36
- export type PostV2FeedbackProduct = ClosedEnum<typeof PostV2FeedbackProduct>;
36
+ export type Product = ClosedEnum<typeof Product>;
37
37
 
38
38
  export type PostV2FeedbackRequestBody = {
39
39
  /**
@@ -52,15 +52,15 @@ export type PostV2FeedbackRequestBody = {
52
52
  * The id returned by the [`get_config`](https://docs.orq.ai/reference/deployments/get-config) or [`invoke`](https://docs.orq.ai/reference/deployments/invoke) endpoints
53
53
  */
54
54
  traceId: string;
55
- product?: PostV2FeedbackProduct | undefined;
55
+ product?: Product | undefined;
56
56
  };
57
57
 
58
58
  /**
59
59
  * The feedback value. For single selection of multiple choice, the value should be an array of strings. For `correction`, the value should be a string.
60
60
  */
61
- export type PostV2FeedbackFeedbackValue = string | number | Array<string>;
61
+ export type PostV2FeedbackValue = string | number | Array<string>;
62
62
 
63
- export const PostV2FeedbackFeedbackProduct = {
63
+ export const PostV2FeedbackProduct = {
64
64
  Remoteconfigs: "remoteconfigs",
65
65
  Deployments: "deployments",
66
66
  Experiments: "experiments",
@@ -79,9 +79,7 @@ export const PostV2FeedbackFeedbackProduct = {
79
79
  Otel: "otel",
80
80
  AiChat: "ai-chat",
81
81
  } as const;
82
- export type PostV2FeedbackFeedbackProduct = ClosedEnum<
83
- typeof PostV2FeedbackFeedbackProduct
84
- >;
82
+ export type PostV2FeedbackProduct = ClosedEnum<typeof PostV2FeedbackProduct>;
85
83
 
86
84
  /**
87
85
  * Event has been dispatched to delete the feedback
@@ -103,31 +101,26 @@ export type PostV2FeedbackResponseBody = {
103
101
  * The id returned by the [`get_config`](https://docs.orq.ai/reference/deployments/get-config) or [`invoke`](https://docs.orq.ai/reference/deployments/invoke) endpoints
104
102
  */
105
103
  traceId: string;
106
- product: PostV2FeedbackFeedbackProduct;
104
+ product: PostV2FeedbackProduct;
107
105
  };
108
106
 
109
107
  /** @internal */
110
- export type PostV2FeedbackValue$Outbound = string | number | Array<string>;
108
+ export type Value$Outbound = string | number | Array<string>;
111
109
 
112
110
  /** @internal */
113
- export const PostV2FeedbackValue$outboundSchema: z.ZodType<
114
- PostV2FeedbackValue$Outbound,
111
+ export const Value$outboundSchema: z.ZodType<
112
+ Value$Outbound,
115
113
  z.ZodTypeDef,
116
- PostV2FeedbackValue
114
+ Value
117
115
  > = z.union([z.string(), z.number(), z.array(z.string())]);
118
116
 
119
- export function postV2FeedbackValueToJSON(
120
- postV2FeedbackValue: PostV2FeedbackValue,
121
- ): string {
122
- return JSON.stringify(
123
- PostV2FeedbackValue$outboundSchema.parse(postV2FeedbackValue),
124
- );
117
+ export function valueToJSON(value: Value): string {
118
+ return JSON.stringify(Value$outboundSchema.parse(value));
125
119
  }
126
120
 
127
121
  /** @internal */
128
- export const PostV2FeedbackProduct$outboundSchema: z.ZodNativeEnum<
129
- typeof PostV2FeedbackProduct
130
- > = z.nativeEnum(PostV2FeedbackProduct);
122
+ export const Product$outboundSchema: z.ZodNativeEnum<typeof Product> = z
123
+ .nativeEnum(Product);
131
124
 
132
125
  /** @internal */
133
126
  export type PostV2FeedbackRequestBody$Outbound = {
@@ -148,7 +141,7 @@ export const PostV2FeedbackRequestBody$outboundSchema: z.ZodType<
148
141
  field: z.string(),
149
142
  value: z.union([z.string(), z.number(), z.array(z.string())]),
150
143
  traceId: z.string(),
151
- product: PostV2FeedbackProduct$outboundSchema.default("deployments"),
144
+ product: Product$outboundSchema.default("deployments"),
152
145
  }).transform((v) => {
153
146
  return remap$(v, {
154
147
  field: "property",
@@ -165,26 +158,26 @@ export function postV2FeedbackRequestBodyToJSON(
165
158
  }
166
159
 
167
160
  /** @internal */
168
- export const PostV2FeedbackFeedbackValue$inboundSchema: z.ZodType<
169
- PostV2FeedbackFeedbackValue,
161
+ export const PostV2FeedbackValue$inboundSchema: z.ZodType<
162
+ PostV2FeedbackValue,
170
163
  z.ZodTypeDef,
171
164
  unknown
172
165
  > = z.union([z.string(), z.number(), z.array(z.string())]);
173
166
 
174
- export function postV2FeedbackFeedbackValueFromJSON(
167
+ export function postV2FeedbackValueFromJSON(
175
168
  jsonString: string,
176
- ): SafeParseResult<PostV2FeedbackFeedbackValue, SDKValidationError> {
169
+ ): SafeParseResult<PostV2FeedbackValue, SDKValidationError> {
177
170
  return safeParse(
178
171
  jsonString,
179
- (x) => PostV2FeedbackFeedbackValue$inboundSchema.parse(JSON.parse(x)),
180
- `Failed to parse 'PostV2FeedbackFeedbackValue' from JSON`,
172
+ (x) => PostV2FeedbackValue$inboundSchema.parse(JSON.parse(x)),
173
+ `Failed to parse 'PostV2FeedbackValue' from JSON`,
181
174
  );
182
175
  }
183
176
 
184
177
  /** @internal */
185
- export const PostV2FeedbackFeedbackProduct$inboundSchema: z.ZodNativeEnum<
186
- typeof PostV2FeedbackFeedbackProduct
187
- > = z.nativeEnum(PostV2FeedbackFeedbackProduct);
178
+ export const PostV2FeedbackProduct$inboundSchema: z.ZodNativeEnum<
179
+ typeof PostV2FeedbackProduct
180
+ > = z.nativeEnum(PostV2FeedbackProduct);
188
181
 
189
182
  /** @internal */
190
183
  export const PostV2FeedbackResponseBody$inboundSchema: z.ZodType<
@@ -196,7 +189,7 @@ export const PostV2FeedbackResponseBody$inboundSchema: z.ZodType<
196
189
  property: z.string(),
197
190
  value: z.union([z.string(), z.number(), z.array(z.string())]),
198
191
  trace_id: z.string(),
199
- product: PostV2FeedbackFeedbackProduct$inboundSchema.default("deployments"),
192
+ product: PostV2FeedbackProduct$inboundSchema.default("deployments"),
200
193
  }).transform((v) => {
201
194
  return remap$(v, {
202
195
  "trace_id": "traceId",
@@ -173,7 +173,7 @@ export const RequestBody3$outboundSchema: z.ZodType<
173
173
  humanReviewId: z.string(),
174
174
  source: PostV2FeedbackEvaluationRequestBodyRequestSource$outboundSchema
175
175
  .default("orq"),
176
- reviewedAt: z.date().default(() => new Date("2026-05-19T07:57:49.271Z"))
176
+ reviewedAt: z.date().default(() => new Date("2026-05-19T14:38:26.650Z"))
177
177
  .transform(v => v.toISOString()),
178
178
  type: z.literal("string_array"),
179
179
  values: z.array(z.string()),
@@ -225,7 +225,7 @@ export const RequestBody2$outboundSchema: z.ZodType<
225
225
  source: PostV2FeedbackEvaluationRequestBodySource$outboundSchema.default(
226
226
  "orq",
227
227
  ),
228
- reviewedAt: z.date().default(() => new Date("2026-05-19T07:57:49.270Z"))
228
+ reviewedAt: z.date().default(() => new Date("2026-05-19T14:38:26.650Z"))
229
229
  .transform(v => v.toISOString()),
230
230
  type: z.literal("number"),
231
231
  value: z.number(),
@@ -275,7 +275,7 @@ export const RequestBody1$outboundSchema: z.ZodType<
275
275
  evaluationType: EvaluationType$outboundSchema,
276
276
  humanReviewId: z.string(),
277
277
  source: RequestBodySource$outboundSchema.default("orq"),
278
- reviewedAt: z.date().default(() => new Date("2026-05-19T07:57:49.270Z"))
278
+ reviewedAt: z.date().default(() => new Date("2026-05-19T14:38:26.649Z"))
279
279
  .transform(v => v.toISOString()),
280
280
  type: z.literal("string"),
281
281
  value: z.string(),
@@ -9,7 +9,7 @@ import { ClosedEnum } from "../../types/enums.js";
9
9
  import { Result as SafeParseResult } from "../../types/fp.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
- export const Product = {
12
+ export const PostV2FeedbackRemoveProduct = {
13
13
  Remoteconfigs: "remoteconfigs",
14
14
  Deployments: "deployments",
15
15
  Experiments: "experiments",
@@ -28,15 +28,17 @@ export const Product = {
28
28
  Otel: "otel",
29
29
  AiChat: "ai-chat",
30
30
  } as const;
31
- export type Product = ClosedEnum<typeof Product>;
31
+ export type PostV2FeedbackRemoveProduct = ClosedEnum<
32
+ typeof PostV2FeedbackRemoveProduct
33
+ >;
32
34
 
33
35
  export type PostV2FeedbackRemoveRequestBody = {
34
36
  id: string;
35
37
  traceId: string;
36
- product: Product;
38
+ product: PostV2FeedbackRemoveProduct;
37
39
  };
38
40
 
39
- export const PostV2FeedbackRemoveProduct = {
41
+ export const PostV2FeedbackRemoveFeedbackProduct = {
40
42
  Remoteconfigs: "remoteconfigs",
41
43
  Deployments: "deployments",
42
44
  Experiments: "experiments",
@@ -55,8 +57,8 @@ export const PostV2FeedbackRemoveProduct = {
55
57
  Otel: "otel",
56
58
  AiChat: "ai-chat",
57
59
  } as const;
58
- export type PostV2FeedbackRemoveProduct = ClosedEnum<
59
- typeof PostV2FeedbackRemoveProduct
60
+ export type PostV2FeedbackRemoveFeedbackProduct = ClosedEnum<
61
+ typeof PostV2FeedbackRemoveFeedbackProduct
60
62
  >;
61
63
 
62
64
  /**
@@ -65,12 +67,13 @@ export type PostV2FeedbackRemoveProduct = ClosedEnum<
65
67
  export type PostV2FeedbackRemoveResponseBody = {
66
68
  id: string;
67
69
  traceId: string;
68
- product: PostV2FeedbackRemoveProduct;
70
+ product: PostV2FeedbackRemoveFeedbackProduct;
69
71
  };
70
72
 
71
73
  /** @internal */
72
- export const Product$outboundSchema: z.ZodNativeEnum<typeof Product> = z
73
- .nativeEnum(Product);
74
+ export const PostV2FeedbackRemoveProduct$outboundSchema: z.ZodNativeEnum<
75
+ typeof PostV2FeedbackRemoveProduct
76
+ > = z.nativeEnum(PostV2FeedbackRemoveProduct);
74
77
 
75
78
  /** @internal */
76
79
  export type PostV2FeedbackRemoveRequestBody$Outbound = {
@@ -87,7 +90,7 @@ export const PostV2FeedbackRemoveRequestBody$outboundSchema: z.ZodType<
87
90
  > = z.object({
88
91
  id: z.string(),
89
92
  traceId: z.string(),
90
- product: Product$outboundSchema,
93
+ product: PostV2FeedbackRemoveProduct$outboundSchema,
91
94
  }).transform((v) => {
92
95
  return remap$(v, {
93
96
  traceId: "trace_id",
@@ -105,9 +108,9 @@ export function postV2FeedbackRemoveRequestBodyToJSON(
105
108
  }
106
109
 
107
110
  /** @internal */
108
- export const PostV2FeedbackRemoveProduct$inboundSchema: z.ZodNativeEnum<
109
- typeof PostV2FeedbackRemoveProduct
110
- > = z.nativeEnum(PostV2FeedbackRemoveProduct);
111
+ export const PostV2FeedbackRemoveFeedbackProduct$inboundSchema: z.ZodNativeEnum<
112
+ typeof PostV2FeedbackRemoveFeedbackProduct
113
+ > = z.nativeEnum(PostV2FeedbackRemoveFeedbackProduct);
111
114
 
112
115
  /** @internal */
113
116
  export const PostV2FeedbackRemoveResponseBody$inboundSchema: z.ZodType<
@@ -117,7 +120,7 @@ export const PostV2FeedbackRemoveResponseBody$inboundSchema: z.ZodType<
117
120
  > = z.object({
118
121
  id: z.string(),
119
122
  trace_id: z.string(),
120
- product: PostV2FeedbackRemoveProduct$inboundSchema,
123
+ product: PostV2FeedbackRemoveFeedbackProduct$inboundSchema,
121
124
  }).transform((v) => {
122
125
  return remap$(v, {
123
126
  "trace_id": "traceId",
@@ -271,7 +271,7 @@ export const PostV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
271
271
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
272
272
  .optional(),
273
273
  updated: z.string().datetime({ offset: true }).default(
274
- "2026-05-19T07:57:33.807Z",
274
+ "2026-05-19T14:38:12.201Z",
275
275
  ).transform(v => new Date(v)),
276
276
  filter_type: z.literal("name"),
277
277
  filter_value: z.string(),
@@ -316,7 +316,7 @@ export const PostV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
316
316
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
317
317
  .optional(),
318
318
  updated: z.string().datetime({ offset: true }).default(
319
- "2026-05-19T07:57:33.807Z",
319
+ "2026-05-19T14:38:12.201Z",
320
320
  ).transform(v => new Date(v)),
321
321
  filter_type: z.literal("span_type"),
322
322
  filter_values: z.array(z.string()),