@orq-ai/node 4.9.4 → 4.9.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 (176) 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 +5 -5
  37. package/packages/orq-rc/src/funcs/identitiesCreate.ts +10 -15
  38. package/packages/orq-rc/src/funcs/identitiesDelete.ts +7 -16
  39. package/packages/orq-rc/src/funcs/identitiesList.ts +6 -5
  40. package/packages/orq-rc/src/funcs/identitiesRetrieve.ts +6 -18
  41. package/packages/orq-rc/src/funcs/identitiesUpdate.ts +9 -15
  42. package/packages/orq-rc/src/funcs/projectsCreate.ts +1 -1
  43. package/packages/orq-rc/src/funcs/projectsDelete.ts +3 -0
  44. package/packages/orq-rc/src/funcs/projectsList.ts +1 -1
  45. package/packages/orq-rc/src/funcs/{contactsCreate.ts → reportingQuery.ts} +13 -13
  46. package/packages/orq-rc/src/funcs/skillsCreate.ts +1 -1
  47. package/packages/orq-rc/src/funcs/skillsDelete.ts +3 -0
  48. package/packages/orq-rc/src/funcs/skillsGet.ts +1 -1
  49. package/packages/orq-rc/src/funcs/skillsList.ts +1 -1
  50. package/packages/orq-rc/src/funcs/skillsUpdate.ts +1 -1
  51. package/packages/orq-rc/src/lib/config.ts +2 -2
  52. package/packages/orq-rc/src/models/components/createidentityrequest.ts +76 -0
  53. package/packages/orq-rc/src/models/components/createidentityresponse.ts +32 -0
  54. package/packages/orq-rc/src/models/components/createprojectrequest.ts +6 -0
  55. package/packages/orq-rc/src/models/components/createprojectresponse.ts +3 -0
  56. package/packages/orq-rc/src/models/components/createskillrequest.ts +18 -0
  57. package/packages/orq-rc/src/models/components/createskillresponse.ts +3 -0
  58. package/packages/orq-rc/src/models/components/datapoint.ts +60 -0
  59. package/packages/orq-rc/src/models/components/deleteidentityresponse.ts +27 -0
  60. package/packages/orq-rc/src/models/components/file.ts +0 -3
  61. package/packages/orq-rc/src/models/components/filter.ts +137 -0
  62. package/packages/orq-rc/src/models/components/getprojectresponse.ts +3 -0
  63. package/packages/orq-rc/src/models/components/getskillresponse.ts +3 -0
  64. package/packages/orq-rc/src/models/components/identity.ts +83 -0
  65. package/packages/orq-rc/src/models/components/identitymetrics.ts +45 -0
  66. package/packages/orq-rc/src/models/components/index.ts +15 -0
  67. package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +17 -10
  68. package/packages/orq-rc/src/models/components/listidentitiesresponse.ts +41 -0
  69. package/packages/orq-rc/src/models/components/listprojectsresponse.ts +12 -0
  70. package/packages/orq-rc/src/models/components/listskillsresponse.ts +12 -0
  71. package/packages/orq-rc/src/models/components/project.ts +42 -3
  72. package/packages/orq-rc/src/models/components/queryreportrequest.ts +237 -0
  73. package/packages/orq-rc/src/models/components/queryreportresponse.ts +96 -0
  74. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  75. package/packages/orq-rc/src/models/components/responsemeta.ts +103 -0
  76. package/packages/orq-rc/src/models/components/retrieveidentityresponse.ts +32 -0
  77. package/packages/orq-rc/src/models/components/skill.ts +37 -3
  78. package/packages/orq-rc/src/models/components/totals.ts +34 -0
  79. package/packages/orq-rc/src/models/components/updateidentityrequest.ts +75 -0
  80. package/packages/orq-rc/src/models/components/updateidentityresponse.ts +32 -0
  81. package/packages/orq-rc/src/models/components/updateprojectrequest.ts +12 -0
  82. package/packages/orq-rc/src/models/components/updateprojectresponse.ts +3 -0
  83. package/packages/orq-rc/src/models/components/updateskillrequest.ts +21 -0
  84. package/packages/orq-rc/src/models/components/updateskillresponse.ts +3 -0
  85. package/packages/orq-rc/src/models/errors/index.ts +0 -3
  86. package/packages/orq-rc/src/models/operations/createannotation.ts +7 -11
  87. package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
  88. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
  89. package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
  90. package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
  91. package/packages/orq-rc/src/models/operations/createtool.ts +6 -6
  92. package/packages/orq-rc/src/models/operations/deleteidentity.ts +0 -3
  93. package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
  94. package/packages/orq-rc/src/models/operations/getevals.ts +16 -16
  95. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
  96. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  97. package/packages/orq-rc/src/models/operations/index.ts +0 -3
  98. package/packages/orq-rc/src/models/operations/invokeeval.ts +83 -80
  99. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
  100. package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
  101. package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
  102. package/packages/orq-rc/src/models/operations/listidentities.ts +9 -230
  103. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  104. package/packages/orq-rc/src/models/operations/postv2agentsa2a.ts +14 -17
  105. package/packages/orq-rc/src/models/operations/postv2feedback.ts +34 -27
  106. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +3 -3
  107. package/packages/orq-rc/src/models/operations/postv2feedbackremove.ts +14 -17
  108. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  109. package/packages/orq-rc/src/models/operations/projectdelete.ts +3 -0
  110. package/packages/orq-rc/src/models/operations/projectget.ts +3 -0
  111. package/packages/orq-rc/src/models/operations/projectlist.ts +15 -0
  112. package/packages/orq-rc/src/models/operations/projectupdate.ts +3 -0
  113. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
  114. package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
  115. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
  116. package/packages/orq-rc/src/models/operations/retrieveidentity.ts +3 -138
  117. package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
  118. package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
  119. package/packages/orq-rc/src/models/operations/skilldelete.ts +3 -0
  120. package/packages/orq-rc/src/models/operations/skilllist.ts +12 -0
  121. package/packages/orq-rc/src/models/operations/skillupdate.ts +3 -0
  122. package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
  123. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
  124. package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
  125. package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
  126. package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
  127. package/packages/orq-rc/src/models/operations/updateidentity.ts +5 -154
  128. package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
  129. package/packages/orq-rc/src/sdk/feedback.ts +8 -8
  130. package/packages/orq-rc/src/sdk/identities.ts +18 -17
  131. package/packages/orq-rc/src/sdk/projects.ts +5 -2
  132. package/packages/orq-rc/src/sdk/reporting.ts +27 -0
  133. package/packages/orq-rc/src/sdk/sdk.ts +16 -22
  134. package/packages/orq-rc/src/sdk/skills.ts +7 -4
  135. package/src/lib/config.ts +2 -2
  136. package/src/models/components/reasoningpart.ts +1 -1
  137. package/src/models/operations/createcontact.ts +1 -1
  138. package/src/models/operations/createdataset.ts +1 -1
  139. package/src/models/operations/createdatasetitem.ts +4 -4
  140. package/src/models/operations/createdatasource.ts +1 -1
  141. package/src/models/operations/createeval.ts +16 -16
  142. package/src/models/operations/createidentity.ts +1 -1
  143. package/src/models/operations/createtool.ts +6 -6
  144. package/src/models/operations/getalltools.ts +6 -6
  145. package/src/models/operations/getevals.ts +16 -16
  146. package/src/models/operations/getv2humanevalsets.ts +2 -2
  147. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  148. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  149. package/src/models/operations/listdatasets.ts +1 -1
  150. package/src/models/operations/listdatasources.ts +1 -1
  151. package/src/models/operations/listidentities.ts +1 -1
  152. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  153. package/src/models/operations/postv2feedbackevaluation.ts +3 -3
  154. package/src/models/operations/postv2humanevalsets.ts +2 -2
  155. package/src/models/operations/retrievedatapoint.ts +4 -4
  156. package/src/models/operations/retrievedataset.ts +1 -1
  157. package/src/models/operations/retrievedatasource.ts +1 -1
  158. package/src/models/operations/retrieveidentity.ts +1 -1
  159. package/src/models/operations/retrievetool.ts +6 -6
  160. package/src/models/operations/runagent.ts +1 -1
  161. package/src/models/operations/streamrunagent.ts +1 -1
  162. package/src/models/operations/updatedatapoint.ts +4 -4
  163. package/src/models/operations/updatedataset.ts +1 -1
  164. package/src/models/operations/updatedatasource.ts +1 -1
  165. package/src/models/operations/updateeval.ts +16 -16
  166. package/src/models/operations/updateidentity.ts +1 -1
  167. package/src/models/operations/updatetool.ts +7 -7
  168. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -163
  169. package/packages/orq-rc/src/models/errors/deleteidentity.ts +0 -62
  170. package/packages/orq-rc/src/models/errors/retrieveidentity.ts +0 -118
  171. package/packages/orq-rc/src/models/errors/updateidentity.ts +0 -54
  172. package/packages/orq-rc/src/models/operations/createcontact.ts +0 -156
  173. package/packages/orq-rc/src/models/operations/createidentity.ts +0 -162
  174. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -108
  175. package/packages/orq-rc/src/sdk/contacts.ts +0 -27
  176. package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
@@ -7,6 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import * as components from "../components/index.js";
8
8
 
9
9
  export type ProjectUpdateRequest = {
10
+ /**
11
+ * Project ID to update.
12
+ */
10
13
  projectId: string;
11
14
  updateProjectRequest: components.UpdateProjectRequest;
12
15
  };
@@ -1207,7 +1207,7 @@ export const RetrieveDatapointEvaluations3$inboundSchema: z.ZodType<
1207
1207
  .default("orq"),
1208
1208
  reviewed_by_id: z.string(),
1209
1209
  reviewed_at: z.string().datetime({ offset: true }).default(
1210
- "2026-05-15T03:37:40.043Z",
1210
+ "2026-05-18T05:04:37.318Z",
1211
1211
  ).transform(v => new Date(v)),
1212
1212
  type: z.literal("string_array"),
1213
1213
  values: z.array(z.string()),
@@ -1255,7 +1255,7 @@ export const RetrieveDatapointEvaluations2$inboundSchema: z.ZodType<
1255
1255
  ),
1256
1256
  reviewed_by_id: z.string(),
1257
1257
  reviewed_at: z.string().datetime({ offset: true }).default(
1258
- "2026-05-15T03:37:40.043Z",
1258
+ "2026-05-18T05:04:37.318Z",
1259
1259
  ).transform(v => new Date(v)),
1260
1260
  type: z.literal("number"),
1261
1261
  value: z.number(),
@@ -1300,7 +1300,7 @@ export const RetrieveDatapointEvaluations1$inboundSchema: z.ZodType<
1300
1300
  source: RetrieveDatapointEvaluationsSource$inboundSchema.default("orq"),
1301
1301
  reviewed_by_id: z.string(),
1302
1302
  reviewed_at: z.string().datetime({ offset: true }).default(
1303
- "2026-05-15T03:37:40.042Z",
1303
+ "2026-05-18T05:04:37.318Z",
1304
1304
  ).transform(v => new Date(v)),
1305
1305
  type: z.literal("string"),
1306
1306
  value: z.string(),
@@ -1377,7 +1377,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
1377
1377
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
1378
1378
  .optional(),
1379
1379
  updated: z.string().datetime({ offset: true }).default(
1380
- "2026-05-15T03:37:24.790Z",
1380
+ "2026-05-18T05:04:23.600Z",
1381
1381
  ).transform(v => new Date(v)),
1382
1382
  }).transform((v) => {
1383
1383
  return remap$(v, {
@@ -126,7 +126,7 @@ export const RetrieveDatasetResponseBody$inboundSchema: z.ZodType<
126
126
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
127
127
  .optional(),
128
128
  updated: z.string().datetime({ offset: true }).default(
129
- "2026-05-15T03:37:24.790Z",
129
+ "2026-05-18T05:04:23.600Z",
130
130
  ).transform(v => new Date(v)),
131
131
  }).transform((v) => {
132
132
  return remap$(v, {
@@ -118,7 +118,7 @@ export const RetrieveDatasourceResponseBody$inboundSchema: z.ZodType<
118
118
  z.ZodTypeDef,
119
119
  unknown
120
120
  > = z.object({
121
- _id: z.string().default("01KRMVC5WKG3B2E4BFP0H2CPZK"),
121
+ _id: z.string().default("01KRWQHHWD7KYZW2W3Y8Q2G4C8"),
122
122
  display_name: z.string(),
123
123
  description: z.string().optional(),
124
124
  status: RetrieveDatasourceStatus$inboundSchema,
@@ -4,87 +4,16 @@
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 { Result as SafeParseResult } from "../../types/fp.js";
9
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
7
 
11
8
  export type RetrieveIdentityRequest = {
12
- /**
13
- * Unique identity id or external id
14
- */
15
9
  id: string;
16
- /**
17
- * Include usage metrics of the last 30 days for the identity.
18
- */
19
- includeMetrics?: boolean | null | undefined;
20
- };
21
-
22
- export type Metrics = {
23
- /**
24
- * Total cost in dollars of the last 30 days
25
- */
26
- totalCost: number;
27
- /**
28
- * Total tokens of the last 30 days
29
- */
30
- totalTokens: number;
31
- /**
32
- * Total requests of the last 30 days
33
- */
34
- totalRequests: number;
35
- /**
36
- * Error rate of the last 30 days as a ratio (0–1)
37
- */
38
- errorRate: number;
39
- };
40
-
41
- /**
42
- * Identity details
43
- */
44
- export type RetrieveIdentityResponseBody = {
45
- /**
46
- * Unique ULID (Universally Unique Lexicographically Sortable Identifier) for the contact
47
- */
48
- id: string;
49
- /**
50
- * 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.
51
- */
52
- externalId: string;
53
- /**
54
- * Display name or nickname of the contact user. This is typically shown in user interfaces.
55
- */
56
- displayName?: string | null | undefined;
57
- /**
58
- * Email address of the contact user
59
- */
60
- email?: string | null | undefined;
61
- /**
62
- * URL linking to the contact user's avatar image
63
- */
64
- avatarUrl?: string | null | undefined;
65
- /**
66
- * Array of tags associated with the contact. Useful for organizing and filtering contacts by categories, departments, or custom classifications.
67
- */
68
- tags?: Array<string> | undefined;
69
- /**
70
- * Additional custom metadata associated with the contact as key-value pairs. Use this to store any extra information specific to your application.
71
- */
72
- metadata?: { [k: string]: any } | undefined;
73
- /**
74
- * The date and time the resource was created
75
- */
76
- created?: Date | undefined;
77
- /**
78
- * The date and time the resource was last updated
79
- */
80
- updated: Date;
81
- metrics?: Metrics | null | undefined;
10
+ includeMetrics?: boolean | undefined;
82
11
  };
83
12
 
84
13
  /** @internal */
85
14
  export type RetrieveIdentityRequest$Outbound = {
86
15
  id: string;
87
- include_metrics: boolean | null;
16
+ include_metrics?: boolean | undefined;
88
17
  };
89
18
 
90
19
  /** @internal */
@@ -94,7 +23,7 @@ export const RetrieveIdentityRequest$outboundSchema: z.ZodType<
94
23
  RetrieveIdentityRequest
95
24
  > = z.object({
96
25
  id: z.string(),
97
- includeMetrics: z.nullable(z.boolean().default(false)),
26
+ includeMetrics: z.boolean().optional(),
98
27
  }).transform((v) => {
99
28
  return remap$(v, {
100
29
  includeMetrics: "include_metrics",
@@ -108,67 +37,3 @@ export function retrieveIdentityRequestToJSON(
108
37
  RetrieveIdentityRequest$outboundSchema.parse(retrieveIdentityRequest),
109
38
  );
110
39
  }
111
-
112
- /** @internal */
113
- export const Metrics$inboundSchema: z.ZodType<Metrics, z.ZodTypeDef, unknown> =
114
- z.object({
115
- total_cost: z.number(),
116
- total_tokens: z.number(),
117
- total_requests: z.number(),
118
- error_rate: z.number(),
119
- }).transform((v) => {
120
- return remap$(v, {
121
- "total_cost": "totalCost",
122
- "total_tokens": "totalTokens",
123
- "total_requests": "totalRequests",
124
- "error_rate": "errorRate",
125
- });
126
- });
127
-
128
- export function metricsFromJSON(
129
- jsonString: string,
130
- ): SafeParseResult<Metrics, SDKValidationError> {
131
- return safeParse(
132
- jsonString,
133
- (x) => Metrics$inboundSchema.parse(JSON.parse(x)),
134
- `Failed to parse 'Metrics' from JSON`,
135
- );
136
- }
137
-
138
- /** @internal */
139
- export const RetrieveIdentityResponseBody$inboundSchema: z.ZodType<
140
- RetrieveIdentityResponseBody,
141
- z.ZodTypeDef,
142
- unknown
143
- > = z.object({
144
- _id: z.string(),
145
- external_id: z.string(),
146
- display_name: z.nullable(z.string()).optional(),
147
- email: z.nullable(z.string()).optional(),
148
- avatar_url: z.nullable(z.string()).optional(),
149
- tags: z.array(z.string()).optional(),
150
- metadata: z.record(z.any()).optional(),
151
- created: z.string().datetime({ offset: true }).transform(v => new Date(v))
152
- .optional(),
153
- updated: z.string().datetime({ offset: true }).default(
154
- "2026-05-15T03:37:24.790Z",
155
- ).transform(v => new Date(v)),
156
- metrics: z.nullable(z.lazy(() => Metrics$inboundSchema)).optional(),
157
- }).transform((v) => {
158
- return remap$(v, {
159
- "_id": "id",
160
- "external_id": "externalId",
161
- "display_name": "displayName",
162
- "avatar_url": "avatarUrl",
163
- });
164
- });
165
-
166
- export function retrieveIdentityResponseBodyFromJSON(
167
- jsonString: string,
168
- ): SafeParseResult<RetrieveIdentityResponseBody, SDKValidationError> {
169
- return safeParse(
170
- jsonString,
171
- (x) => RetrieveIdentityResponseBody$inboundSchema.parse(JSON.parse(x)),
172
- `Failed to parse 'RetrieveIdentityResponseBody' from JSON`,
173
- );
174
- }
@@ -753,7 +753,7 @@ export const RetrieveToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
753
753
  z.ZodTypeDef,
754
754
  unknown
755
755
  > = z.object({
756
- _id: z.string().default("tool_01KRMVC5SW0YYXT344FNC6CFCZ"),
756
+ _id: z.string().default("tool_01KRWQHHSM3GBXTM65AH6WX7BD"),
757
757
  path: z.string(),
758
758
  key: z.string(),
759
759
  display_name: z.string().optional(),
@@ -859,7 +859,7 @@ export const RetrieveToolResponseBodyTools$inboundSchema: z.ZodType<
859
859
  z.ZodTypeDef,
860
860
  unknown
861
861
  > = z.object({
862
- id: z.string().default("01KRMVC5SMBCP4SW22BZTX2J9C"),
862
+ id: z.string().default("01KRWQHHSKB4NEQDYN5NXDC0AH"),
863
863
  name: z.string(),
864
864
  description: z.string().optional(),
865
865
  schema: z.lazy(() => RetrieveToolResponseBodyToolsSchema$inboundSchema),
@@ -917,7 +917,7 @@ export const RetrieveToolResponseBodyMCPTool$inboundSchema: z.ZodType<
917
917
  z.ZodTypeDef,
918
918
  unknown
919
919
  > = z.object({
920
- _id: z.string().default("tool_01KRMVC5SJZKV5ZTY4Z05KDFFK"),
920
+ _id: z.string().default("tool_01KRWQHHSAXD0Q7DYB6H2RWS1C"),
921
921
  path: z.string(),
922
922
  key: z.string(),
923
923
  display_name: z.string().optional(),
@@ -1108,7 +1108,7 @@ export const RetrieveToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
1108
1108
  z.ZodTypeDef,
1109
1109
  unknown
1110
1110
  > = z.object({
1111
- _id: z.string().default("tool_01KRMVC5SAC7DBGPPFMYR2N912"),
1111
+ _id: z.string().default("tool_01KRWQHHS88Z3K6ZBM57P0VXFC"),
1112
1112
  path: z.string(),
1113
1113
  key: z.string(),
1114
1114
  display_name: z.string().optional(),
@@ -1204,7 +1204,7 @@ export const RetrieveToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
1204
1204
  z.ZodTypeDef,
1205
1205
  unknown
1206
1206
  > = z.object({
1207
- _id: z.string().default("tool_01KRMVC5RYNHRR46GCHQNQCY5S"),
1207
+ _id: z.string().default("tool_01KRWQHHS719X3MG2W75XW4ZAC"),
1208
1208
  path: z.string(),
1209
1209
  key: z.string(),
1210
1210
  display_name: z.string().optional(),
@@ -1310,7 +1310,7 @@ export const RetrieveToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
1310
1310
  z.ZodTypeDef,
1311
1311
  unknown
1312
1312
  > = z.object({
1313
- _id: z.string().default("tool_01KRMVC5RT4MPXA34CD1ZYW1SX"),
1313
+ _id: z.string().default("tool_01KRWQHHS67Z29BTA5K9BP9ANZ"),
1314
1314
  path: z.string(),
1315
1315
  key: z.string(),
1316
1316
  display_name: z.string().optional(),
@@ -3628,7 +3628,7 @@ export const Tools$outboundSchema: z.ZodType<
3628
3628
  z.ZodTypeDef,
3629
3629
  Tools
3630
3630
  > = z.object({
3631
- id: z.string().default("01KRMVC4YPQTGCXRJHFBHNW5MR"),
3631
+ id: z.string().default("01KRWQHHDMWMF6KWG030M9JN95"),
3632
3632
  name: z.string(),
3633
3633
  description: z.string().optional(),
3634
3634
  schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
@@ -6,6 +6,9 @@ import * as z from "zod/v3";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
 
8
8
  export type SkillDeleteRequest = {
9
+ /**
10
+ * Skill ID to delete.
11
+ */
9
12
  skillId: string;
10
13
  };
11
14
 
@@ -13,7 +13,19 @@ export type SkillListRequest = {
13
13
  * (or anything outside the range) is rejected by buf.validate.
14
14
  */
15
15
  limit?: number | undefined;
16
+ /**
17
+ * Cursor for forward pagination. Set to the `skill_id` of the last
18
+ *
19
+ * @remarks
20
+ * item from the previous page.
21
+ */
16
22
  startingAfter?: string | undefined;
23
+ /**
24
+ * Cursor for backward pagination. Set to the `skill_id` of the first
25
+ *
26
+ * @remarks
27
+ * item from the previous page.
28
+ */
17
29
  endingBefore?: string | undefined;
18
30
  };
19
31
 
@@ -7,6 +7,9 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import * as components from "../components/index.js";
8
8
 
9
9
  export type SkillUpdateRequest = {
10
+ /**
11
+ * Skill ID to update.
12
+ */
10
13
  skillId: string;
11
14
  updateSkillRequest: components.UpdateSkillRequest;
12
15
  };
@@ -3675,7 +3675,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
3675
3675
  z.ZodTypeDef,
3676
3676
  AgentToolInputRunTools
3677
3677
  > = z.object({
3678
- id: z.string().default("01KRMVC50A3YBANCGXYS7XJDFG"),
3678
+ id: z.string().default("01KRWQHHF7N9350TBR404VN4R3"),
3679
3679
  name: z.string(),
3680
3680
  description: z.string().optional(),
3681
3681
  schema: z.lazy(() =>
@@ -2358,7 +2358,7 @@ export const UpdateDatapointEvaluations3$inboundSchema: z.ZodType<
2358
2358
  .default("orq"),
2359
2359
  reviewed_by_id: z.string(),
2360
2360
  reviewed_at: z.string().datetime({ offset: true }).default(
2361
- "2026-05-15T03:37:40.073Z",
2361
+ "2026-05-18T05:04:37.348Z",
2362
2362
  ).transform(v => new Date(v)),
2363
2363
  type: z.literal("string_array"),
2364
2364
  values: z.array(z.string()),
@@ -2404,7 +2404,7 @@ export const UpdateDatapointEvaluations2$inboundSchema: z.ZodType<
2404
2404
  source: UpdateDatapointEvaluationsDatasetsSource$inboundSchema.default("orq"),
2405
2405
  reviewed_by_id: z.string(),
2406
2406
  reviewed_at: z.string().datetime({ offset: true }).default(
2407
- "2026-05-15T03:37:40.073Z",
2407
+ "2026-05-18T05:04:37.347Z",
2408
2408
  ).transform(v => new Date(v)),
2409
2409
  type: z.literal("number"),
2410
2410
  value: z.number(),
@@ -2449,7 +2449,7 @@ export const UpdateDatapointEvaluations1$inboundSchema: z.ZodType<
2449
2449
  source: UpdateDatapointEvaluationsSource$inboundSchema.default("orq"),
2450
2450
  reviewed_by_id: z.string(),
2451
2451
  reviewed_at: z.string().datetime({ offset: true }).default(
2452
- "2026-05-15T03:37:40.073Z",
2452
+ "2026-05-18T05:04:37.347Z",
2453
2453
  ).transform(v => new Date(v)),
2454
2454
  type: z.literal("string"),
2455
2455
  value: z.string(),
@@ -2530,7 +2530,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
2530
2530
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
2531
2531
  .optional(),
2532
2532
  updated: z.string().datetime({ offset: true }).default(
2533
- "2026-05-15T03:37:24.790Z",
2533
+ "2026-05-18T05:04:23.600Z",
2534
2534
  ).transform(v => new Date(v)),
2535
2535
  }).transform((v) => {
2536
2536
  return remap$(v, {
@@ -182,7 +182,7 @@ export const UpdateDatasetResponseBody$inboundSchema: z.ZodType<
182
182
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
183
183
  .optional(),
184
184
  updated: z.string().datetime({ offset: true }).default(
185
- "2026-05-15T03:37:24.790Z",
185
+ "2026-05-18T05:04:23.600Z",
186
186
  ).transform(v => new Date(v)),
187
187
  }).transform((v) => {
188
188
  return remap$(v, {
@@ -152,7 +152,7 @@ export const UpdateDatasourceResponseBody$inboundSchema: z.ZodType<
152
152
  z.ZodTypeDef,
153
153
  unknown
154
154
  > = z.object({
155
- _id: z.string().default("01KRMVC5WPZR25A5MJQFYZ8H71"),
155
+ _id: z.string().default("01KRWQHHWFH3QAMWPY9P0ZWZM7"),
156
156
  display_name: z.string(),
157
157
  description: z.string().optional(),
158
158
  status: UpdateDatasourceStatus$inboundSchema,
@@ -1541,8 +1541,8 @@ export const ResponseBodyTypescript$inboundSchema: z.ZodType<
1541
1541
  > = z.object({
1542
1542
  _id: z.string(),
1543
1543
  description: z.string(),
1544
- created: z.string().default("2026-05-15T03:37:26.966Z"),
1545
- updated: z.string().default("2026-05-15T03:37:26.966Z"),
1544
+ created: z.string().default("2026-05-18T05:04:24.675Z"),
1545
+ updated: z.string().default("2026-05-18T05:04:24.675Z"),
1546
1546
  guardrail_config: z.nullable(
1547
1547
  z.union([
1548
1548
  z.lazy(() =>
@@ -1735,8 +1735,8 @@ export const ResponseBodyRagas$inboundSchema: z.ZodType<
1735
1735
  > = z.object({
1736
1736
  _id: z.string(),
1737
1737
  description: z.string(),
1738
- created: z.string().default("2026-05-15T03:37:26.966Z"),
1739
- updated: z.string().default("2026-05-15T03:37:26.966Z"),
1738
+ created: z.string().default("2026-05-18T05:04:24.675Z"),
1739
+ updated: z.string().default("2026-05-18T05:04:24.675Z"),
1740
1740
  guardrail_config: z.nullable(
1741
1741
  z.union([
1742
1742
  z.lazy(() =>
@@ -2592,8 +2592,8 @@ export const ResponseBodyFunction$inboundSchema: z.ZodType<
2592
2592
  > = z.object({
2593
2593
  _id: z.string(),
2594
2594
  description: z.string(),
2595
- created: z.string().default("2026-05-15T03:37:26.966Z"),
2596
- updated: z.string().default("2026-05-15T03:37:26.966Z"),
2595
+ created: z.string().default("2026-05-18T05:04:24.675Z"),
2596
+ updated: z.string().default("2026-05-18T05:04:24.675Z"),
2597
2597
  guardrail_config: z.nullable(
2598
2598
  z.union([
2599
2599
  z.lazy(() =>
@@ -2809,8 +2809,8 @@ export const UpdateEvalResponseBodyPython$inboundSchema: z.ZodType<
2809
2809
  > = z.object({
2810
2810
  _id: z.string(),
2811
2811
  description: z.string(),
2812
- created: z.string().default("2026-05-15T03:37:26.966Z"),
2813
- updated: z.string().default("2026-05-15T03:37:26.966Z"),
2812
+ created: z.string().default("2026-05-18T05:04:24.675Z"),
2813
+ updated: z.string().default("2026-05-18T05:04:24.675Z"),
2814
2814
  guardrail_config: z.nullable(
2815
2815
  z.union([
2816
2816
  z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
@@ -2976,8 +2976,8 @@ export const UpdateEvalResponseBodyHTTP$inboundSchema: z.ZodType<
2976
2976
  > = z.object({
2977
2977
  _id: z.string(),
2978
2978
  description: z.string(),
2979
- created: z.string().default("2026-05-15T03:37:26.966Z"),
2980
- updated: z.string().default("2026-05-15T03:37:26.966Z"),
2979
+ created: z.string().default("2026-05-18T05:04:24.675Z"),
2980
+ updated: z.string().default("2026-05-18T05:04:24.675Z"),
2981
2981
  guardrail_config: z.nullable(
2982
2982
  z.union([
2983
2983
  z.lazy(() => UpdateEvalGuardrailConfigEvalsBoolean$inboundSchema),
@@ -3128,8 +3128,8 @@ export const UpdateEvalResponseBodyJSON$inboundSchema: z.ZodType<
3128
3128
  > = z.object({
3129
3129
  _id: z.string(),
3130
3130
  description: z.string(),
3131
- created: z.string().default("2026-05-15T03:37:26.966Z"),
3132
- updated: z.string().default("2026-05-15T03:37:26.966Z"),
3131
+ created: z.string().default("2026-05-18T05:04:24.675Z"),
3132
+ updated: z.string().default("2026-05-18T05:04:24.675Z"),
3133
3133
  guardrail_config: z.nullable(
3134
3134
  z.union([
3135
3135
  z.lazy(() => UpdateEvalGuardrailConfigBoolean$inboundSchema),
@@ -3489,8 +3489,8 @@ export const UpdateEvalLlm2$inboundSchema: z.ZodType<
3489
3489
  > = z.object({
3490
3490
  _id: z.string(),
3491
3491
  description: z.string(),
3492
- created: z.string().default("2026-05-15T03:37:26.966Z"),
3493
- updated: z.string().default("2026-05-15T03:37:26.966Z"),
3492
+ created: z.string().default("2026-05-18T05:04:24.675Z"),
3493
+ updated: z.string().default("2026-05-18T05:04:24.675Z"),
3494
3494
  guardrail_config: z.nullable(
3495
3495
  z.union([
3496
3496
  z.lazy(() =>
@@ -3698,8 +3698,8 @@ export const UpdateEvalLlm1$inboundSchema: z.ZodType<
3698
3698
  > = z.object({
3699
3699
  _id: z.string(),
3700
3700
  description: z.string(),
3701
- created: z.string().default("2026-05-15T03:37:26.966Z"),
3702
- updated: z.string().default("2026-05-15T03:37:26.966Z"),
3701
+ created: z.string().default("2026-05-18T05:04:24.675Z"),
3702
+ updated: z.string().default("2026-05-18T05:04:24.675Z"),
3703
3703
  guardrail_config: z.nullable(
3704
3704
  z.union([
3705
3705
  z.lazy(() =>
@@ -4,128 +4,17 @@
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 { Result as SafeParseResult } from "../../types/fp.js";
9
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
-
11
- /**
12
- * Identity fields to update
13
- */
14
- export type UpdateIdentityRequestBody = {
15
- /**
16
- * Display name or nickname of the contact user. This is typically shown in user interfaces.
17
- */
18
- displayName?: string | null | undefined;
19
- /**
20
- * Email address of the contact user
21
- */
22
- email?: string | null | undefined;
23
- /**
24
- * URL linking to the contact user's avatar image
25
- */
26
- avatarUrl?: string | null | undefined;
27
- /**
28
- * Array of tags associated with the contact. Useful for organizing and filtering contacts by categories, departments, or custom classifications.
29
- */
30
- tags?: Array<string> | undefined;
31
- /**
32
- * Additional custom metadata associated with the contact as key-value pairs. Use this to store any extra information specific to your application.
33
- */
34
- metadata?: { [k: string]: any } | undefined;
35
- };
7
+ import * as components from "../components/index.js";
36
8
 
37
9
  export type UpdateIdentityRequest = {
38
- /**
39
- * Unique identity id or external id
40
- */
41
10
  id: string;
42
- /**
43
- * Identity fields to update
44
- */
45
- requestBody?: UpdateIdentityRequestBody | undefined;
11
+ updateIdentityRequest: components.UpdateIdentityRequest;
46
12
  };
47
13
 
48
- /**
49
- * Updated identity
50
- */
51
- export type UpdateIdentityResponseBody = {
52
- /**
53
- * Unique ULID (Universally Unique Lexicographically Sortable Identifier) for the contact
54
- */
55
- id: string;
56
- /**
57
- * 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.
58
- */
59
- externalId: string;
60
- /**
61
- * Display name or nickname of the contact user. This is typically shown in user interfaces.
62
- */
63
- displayName?: string | null | undefined;
64
- /**
65
- * Email address of the contact user
66
- */
67
- email?: string | null | undefined;
68
- /**
69
- * URL linking to the contact user's avatar image
70
- */
71
- avatarUrl?: string | null | undefined;
72
- /**
73
- * Array of tags associated with the contact. Useful for organizing and filtering contacts by categories, departments, or custom classifications.
74
- */
75
- tags?: Array<string> | undefined;
76
- /**
77
- * Additional custom metadata associated with the contact as key-value pairs. Use this to store any extra information specific to your application.
78
- */
79
- metadata?: { [k: string]: any } | undefined;
80
- /**
81
- * The date and time the resource was created
82
- */
83
- created?: Date | undefined;
84
- /**
85
- * The date and time the resource was last updated
86
- */
87
- updated: Date;
88
- };
89
-
90
- /** @internal */
91
- export type UpdateIdentityRequestBody$Outbound = {
92
- display_name?: string | null | undefined;
93
- email?: string | null | undefined;
94
- avatar_url?: string | null | undefined;
95
- tags?: Array<string> | undefined;
96
- metadata?: { [k: string]: any } | undefined;
97
- };
98
-
99
- /** @internal */
100
- export const UpdateIdentityRequestBody$outboundSchema: z.ZodType<
101
- UpdateIdentityRequestBody$Outbound,
102
- z.ZodTypeDef,
103
- UpdateIdentityRequestBody
104
- > = z.object({
105
- displayName: z.nullable(z.string()).optional(),
106
- email: z.nullable(z.string()).optional(),
107
- avatarUrl: z.nullable(z.string()).optional(),
108
- tags: z.array(z.string()).optional(),
109
- metadata: z.record(z.any()).optional(),
110
- }).transform((v) => {
111
- return remap$(v, {
112
- displayName: "display_name",
113
- avatarUrl: "avatar_url",
114
- });
115
- });
116
-
117
- export function updateIdentityRequestBodyToJSON(
118
- updateIdentityRequestBody: UpdateIdentityRequestBody,
119
- ): string {
120
- return JSON.stringify(
121
- UpdateIdentityRequestBody$outboundSchema.parse(updateIdentityRequestBody),
122
- );
123
- }
124
-
125
14
  /** @internal */
126
15
  export type UpdateIdentityRequest$Outbound = {
127
16
  id: string;
128
- RequestBody?: UpdateIdentityRequestBody$Outbound | undefined;
17
+ UpdateIdentityRequest: components.UpdateIdentityRequest$Outbound;
129
18
  };
130
19
 
131
20
  /** @internal */
@@ -135,11 +24,10 @@ export const UpdateIdentityRequest$outboundSchema: z.ZodType<
135
24
  UpdateIdentityRequest
136
25
  > = z.object({
137
26
  id: z.string(),
138
- requestBody: z.lazy(() => UpdateIdentityRequestBody$outboundSchema)
139
- .optional(),
27
+ updateIdentityRequest: components.UpdateIdentityRequest$outboundSchema,
140
28
  }).transform((v) => {
141
29
  return remap$(v, {
142
- requestBody: "RequestBody",
30
+ updateIdentityRequest: "UpdateIdentityRequest",
143
31
  });
144
32
  });
145
33
 
@@ -150,40 +38,3 @@ export function updateIdentityRequestToJSON(
150
38
  UpdateIdentityRequest$outboundSchema.parse(updateIdentityRequest),
151
39
  );
152
40
  }
153
-
154
- /** @internal */
155
- export const UpdateIdentityResponseBody$inboundSchema: z.ZodType<
156
- UpdateIdentityResponseBody,
157
- z.ZodTypeDef,
158
- unknown
159
- > = z.object({
160
- _id: z.string(),
161
- external_id: z.string(),
162
- display_name: z.nullable(z.string()).optional(),
163
- email: z.nullable(z.string()).optional(),
164
- avatar_url: z.nullable(z.string()).optional(),
165
- tags: z.array(z.string()).optional(),
166
- metadata: z.record(z.any()).optional(),
167
- created: z.string().datetime({ offset: true }).transform(v => new Date(v))
168
- .optional(),
169
- updated: z.string().datetime({ offset: true }).default(
170
- "2026-05-15T03:37:24.790Z",
171
- ).transform(v => new Date(v)),
172
- }).transform((v) => {
173
- return remap$(v, {
174
- "_id": "id",
175
- "external_id": "externalId",
176
- "display_name": "displayName",
177
- "avatar_url": "avatarUrl",
178
- });
179
- });
180
-
181
- export function updateIdentityResponseBodyFromJSON(
182
- jsonString: string,
183
- ): SafeParseResult<UpdateIdentityResponseBody, SDKValidationError> {
184
- return safeParse(
185
- jsonString,
186
- (x) => UpdateIdentityResponseBody$inboundSchema.parse(JSON.parse(x)),
187
- `Failed to parse 'UpdateIdentityResponseBody' from JSON`,
188
- );
189
- }