@orq-ai/node 4.9.11 → 4.9.13

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 +8 -8
  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
@@ -0,0 +1,156 @@
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
+
11
+ /**
12
+ * Update user information payload
13
+ */
14
+ export type CreateContactRequestBody = {
15
+ /**
16
+ * 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.
17
+ */
18
+ externalId: string;
19
+ /**
20
+ * Display name or nickname of the contact user. This is typically shown in user interfaces.
21
+ */
22
+ displayName?: string | null | undefined;
23
+ /**
24
+ * Email address of the contact user
25
+ */
26
+ email?: string | null | undefined;
27
+ /**
28
+ * URL linking to the contact user's avatar image
29
+ */
30
+ avatarUrl?: string | null | undefined;
31
+ /**
32
+ * Array of tags associated with the contact. Useful for organizing and filtering contacts by categories, departments, or custom classifications.
33
+ */
34
+ tags?: Array<string> | undefined;
35
+ /**
36
+ * Additional custom metadata associated with the contact as key-value pairs. Use this to store any extra information specific to your application.
37
+ */
38
+ metadata?: { [k: string]: any } | undefined;
39
+ };
40
+
41
+ /**
42
+ * Successful operation
43
+ */
44
+ export type CreateContactResponseBody = {
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
+ };
82
+
83
+ /** @internal */
84
+ export type CreateContactRequestBody$Outbound = {
85
+ external_id: string;
86
+ display_name?: string | null | undefined;
87
+ email?: string | null | undefined;
88
+ avatar_url?: string | null | undefined;
89
+ tags?: Array<string> | undefined;
90
+ metadata?: { [k: string]: any } | undefined;
91
+ };
92
+
93
+ /** @internal */
94
+ export const CreateContactRequestBody$outboundSchema: z.ZodType<
95
+ CreateContactRequestBody$Outbound,
96
+ z.ZodTypeDef,
97
+ CreateContactRequestBody
98
+ > = z.object({
99
+ externalId: z.string(),
100
+ displayName: z.nullable(z.string()).optional(),
101
+ email: z.nullable(z.string()).optional(),
102
+ avatarUrl: z.nullable(z.string()).optional(),
103
+ tags: z.array(z.string()).optional(),
104
+ metadata: z.record(z.any()).optional(),
105
+ }).transform((v) => {
106
+ return remap$(v, {
107
+ externalId: "external_id",
108
+ displayName: "display_name",
109
+ avatarUrl: "avatar_url",
110
+ });
111
+ });
112
+
113
+ export function createContactRequestBodyToJSON(
114
+ createContactRequestBody: CreateContactRequestBody,
115
+ ): string {
116
+ return JSON.stringify(
117
+ CreateContactRequestBody$outboundSchema.parse(createContactRequestBody),
118
+ );
119
+ }
120
+
121
+ /** @internal */
122
+ export const CreateContactResponseBody$inboundSchema: z.ZodType<
123
+ CreateContactResponseBody,
124
+ z.ZodTypeDef,
125
+ unknown
126
+ > = z.object({
127
+ _id: z.string(),
128
+ external_id: z.string(),
129
+ display_name: z.nullable(z.string()).optional(),
130
+ email: z.nullable(z.string()).optional(),
131
+ avatar_url: z.nullable(z.string()).optional(),
132
+ tags: z.array(z.string()).optional(),
133
+ metadata: z.record(z.any()).optional(),
134
+ created: z.string().datetime({ offset: true }).transform(v => new Date(v))
135
+ .optional(),
136
+ updated: z.string().datetime({ offset: true }).default(
137
+ "2026-05-19T14:38:12.201Z",
138
+ ).transform(v => new Date(v)),
139
+ }).transform((v) => {
140
+ return remap$(v, {
141
+ "_id": "id",
142
+ "external_id": "externalId",
143
+ "display_name": "displayName",
144
+ "avatar_url": "avatarUrl",
145
+ });
146
+ });
147
+
148
+ export function createContactResponseBodyFromJSON(
149
+ jsonString: string,
150
+ ): SafeParseResult<CreateContactResponseBody, SDKValidationError> {
151
+ return safeParse(
152
+ jsonString,
153
+ (x) => CreateContactResponseBody$inboundSchema.parse(JSON.parse(x)),
154
+ `Failed to parse 'CreateContactResponseBody' from JSON`,
155
+ );
156
+ }
@@ -14,13 +14,13 @@ export type CreateDatasetRequestBody = {
14
14
  */
15
15
  displayName: string;
16
16
  /**
17
- * Entity storage path.
17
+ * Entity storage path in the format: `project/folder/subfolder/...`
18
18
  *
19
19
  * @remarks
20
20
  *
21
- * 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`.
21
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
22
22
  *
23
- * 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.
23
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
24
24
  */
25
25
  path: string;
26
26
  };
@@ -138,7 +138,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
138
138
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
139
139
  .optional(),
140
140
  updated: z.string().datetime({ offset: true }).default(
141
- "2026-05-19T10:21:55.585Z",
141
+ "2026-05-19T14:38:12.201Z",
142
142
  ).transform(v => new Date(v)),
143
143
  }).transform((v) => {
144
144
  return remap$(v, {
@@ -2355,7 +2355,7 @@ export const Evaluations3$inboundSchema: z.ZodType<
2355
2355
  ),
2356
2356
  reviewed_by_id: z.string(),
2357
2357
  reviewed_at: z.string().datetime({ offset: true }).default(
2358
- "2026-05-19T10:22:10.536Z",
2358
+ "2026-05-19T14:38:26.551Z",
2359
2359
  ).transform(v => new Date(v)),
2360
2360
  type: z.literal("string_array"),
2361
2361
  values: z.array(z.string()),
@@ -2400,7 +2400,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
2400
2400
  source: CreateDatasetItemEvaluationsSource$inboundSchema.default("orq"),
2401
2401
  reviewed_by_id: z.string(),
2402
2402
  reviewed_at: z.string().datetime({ offset: true }).default(
2403
- "2026-05-19T10:22:10.536Z",
2403
+ "2026-05-19T14:38:26.550Z",
2404
2404
  ).transform(v => new Date(v)),
2405
2405
  type: z.literal("number"),
2406
2406
  value: z.number(),
@@ -2446,7 +2446,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
2446
2446
  source: EvaluationsSource$inboundSchema.default("orq"),
2447
2447
  reviewed_by_id: z.string(),
2448
2448
  reviewed_at: z.string().datetime({ offset: true }).default(
2449
- "2026-05-19T10:22:10.535Z",
2449
+ "2026-05-19T14:38:26.550Z",
2450
2450
  ).transform(v => new Date(v)),
2451
2451
  type: z.literal("string"),
2452
2452
  value: z.string(),
@@ -2529,7 +2529,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
2529
2529
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
2530
2530
  .optional(),
2531
2531
  updated: z.string().datetime({ offset: true }).default(
2532
- "2026-05-19T10:21:55.585Z",
2532
+ "2026-05-19T14:38:12.201Z",
2533
2533
  ).transform(v => new Date(v)),
2534
2534
  }).transform((v) => {
2535
2535
  return remap$(v, {
@@ -403,7 +403,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
403
403
  z.ZodTypeDef,
404
404
  unknown
405
405
  > = z.object({
406
- _id: z.string().default("01KRZW3QH69BDVTSJZV2PNZQE1"),
406
+ _id: z.string().default("01KS0ARZ5XB7XJZPAJZ3N78150"),
407
407
  display_name: z.string(),
408
408
  description: z.string().optional(),
409
409
  status: CreateDatasourceStatus$inboundSchema,
@@ -74,13 +74,13 @@ export type Python = {
74
74
  code: string;
75
75
  type: CreateEvalRequestBodyType;
76
76
  /**
77
- * Entity storage path.
77
+ * Entity storage path in the format: `project/folder/subfolder/...`
78
78
  *
79
79
  * @remarks
80
80
  *
81
- * 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`.
81
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
82
82
  *
83
- * 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.
83
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
84
84
  */
85
85
  path: string;
86
86
  description?: string | undefined;
@@ -170,13 +170,13 @@ export type RequestBodyHTTP = {
170
170
  headers: { [k: string]: string };
171
171
  payload: { [k: string]: any };
172
172
  /**
173
- * Entity storage path.
173
+ * Entity storage path in the format: `project/folder/subfolder/...`
174
174
  *
175
175
  * @remarks
176
176
  *
177
- * 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`.
177
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
178
178
  *
179
- * 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.
179
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
180
180
  */
181
181
  path: string;
182
182
  description?: string | undefined;
@@ -245,13 +245,13 @@ export type Json = {
245
245
  type: CreateEvalRequestBodyEvalsType;
246
246
  schema: string;
247
247
  /**
248
- * Entity storage path.
248
+ * Entity storage path in the format: `project/folder/subfolder/...`
249
249
  *
250
250
  * @remarks
251
251
  *
252
- * 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`.
252
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
253
253
  *
254
- * 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.
254
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
255
255
  */
256
256
  path: string;
257
257
  description?: string | undefined;
@@ -378,15 +378,14 @@ export type Llm2 = {
378
378
  prompt: string;
379
379
  categories?: Array<string> | undefined;
380
380
  categoricalLabels?: Array<LLMCategoricalLabels> | undefined;
381
- datasetId?: string | undefined;
382
381
  /**
383
- * Entity storage path.
382
+ * Entity storage path in the format: `project/folder/subfolder/...`
384
383
  *
385
384
  * @remarks
386
385
  *
387
- * 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`.
386
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
388
387
  *
389
- * 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.
388
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
390
389
  */
391
390
  path: string;
392
391
  description?: string | undefined;
@@ -476,15 +475,14 @@ export type Llm1 = {
476
475
  prompt: string;
477
476
  categories?: Array<string> | undefined;
478
477
  categoricalLabels?: Array<CreateEvalLLMCategoricalLabels> | undefined;
479
- datasetId?: string | undefined;
480
478
  /**
481
- * Entity storage path.
479
+ * Entity storage path in the format: `project/folder/subfolder/...`
482
480
  *
483
481
  * @remarks
484
482
  *
485
- * 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`.
483
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
486
484
  *
487
- * 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.
485
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
488
486
  */
489
487
  path: string;
490
488
  description?: string | undefined;
@@ -1239,7 +1237,6 @@ export type CreateEvalLlm2 = {
1239
1237
  prompt: string;
1240
1238
  categories?: Array<string> | undefined;
1241
1239
  categoricalLabels?: Array<CreateEvalLLMEvalsCategoricalLabels> | undefined;
1242
- datasetId?: string | undefined;
1243
1240
  key: string;
1244
1241
  mode: "jury";
1245
1242
  jury: CreateEvalLLMJury;
@@ -1318,7 +1315,6 @@ export type CreateEvalLlm1 = {
1318
1315
  categoricalLabels?:
1319
1316
  | Array<CreateEvalLLMEvalsResponseCategoricalLabels>
1320
1317
  | undefined;
1321
- datasetId?: string | undefined;
1322
1318
  key: string;
1323
1319
  mode: "single";
1324
1320
  model: string;
@@ -2292,7 +2288,6 @@ export type Llm2$Outbound = {
2292
2288
  prompt: string;
2293
2289
  categories?: Array<string> | undefined;
2294
2290
  categorical_labels?: Array<LLMCategoricalLabels$Outbound> | undefined;
2295
- dataset_id?: string | undefined;
2296
2291
  path: string;
2297
2292
  description: string;
2298
2293
  key: string;
@@ -2324,7 +2319,6 @@ export const Llm2$outboundSchema: z.ZodType<Llm2$Outbound, z.ZodTypeDef, Llm2> =
2324
2319
  categoricalLabels: z.array(
2325
2320
  z.lazy(() => LLMCategoricalLabels$outboundSchema),
2326
2321
  ).optional(),
2327
- datasetId: z.string().optional(),
2328
2322
  path: z.string(),
2329
2323
  description: z.string().default(""),
2330
2324
  key: z.string(),
@@ -2335,7 +2329,6 @@ export const Llm2$outboundSchema: z.ZodType<Llm2$Outbound, z.ZodTypeDef, Llm2> =
2335
2329
  guardrailConfig: "guardrail_config",
2336
2330
  outputType: "output_type",
2337
2331
  categoricalLabels: "categorical_labels",
2338
- datasetId: "dataset_id",
2339
2332
  });
2340
2333
  });
2341
2334
 
@@ -2537,7 +2530,6 @@ export type Llm1$Outbound = {
2537
2530
  categorical_labels?:
2538
2531
  | Array<CreateEvalLLMCategoricalLabels$Outbound>
2539
2532
  | undefined;
2540
- dataset_id?: string | undefined;
2541
2533
  path: string;
2542
2534
  description: string;
2543
2535
  key: string;
@@ -2569,7 +2561,6 @@ export const Llm1$outboundSchema: z.ZodType<Llm1$Outbound, z.ZodTypeDef, Llm1> =
2569
2561
  categoricalLabels: z.array(
2570
2562
  z.lazy(() => CreateEvalLLMCategoricalLabels$outboundSchema),
2571
2563
  ).optional(),
2572
- datasetId: z.string().optional(),
2573
2564
  path: z.string(),
2574
2565
  description: z.string().default(""),
2575
2566
  key: z.string(),
@@ -2580,7 +2571,6 @@ export const Llm1$outboundSchema: z.ZodType<Llm1$Outbound, z.ZodTypeDef, Llm1> =
2580
2571
  guardrailConfig: "guardrail_config",
2581
2572
  outputType: "output_type",
2582
2573
  categoricalLabels: "categorical_labels",
2583
- datasetId: "dataset_id",
2584
2574
  });
2585
2575
  });
2586
2576
 
@@ -2786,8 +2776,8 @@ export const Typescript$inboundSchema: z.ZodType<
2786
2776
  > = z.object({
2787
2777
  _id: z.string(),
2788
2778
  description: z.string(),
2789
- created: z.string().default("2026-05-19T10:21:56.736Z"),
2790
- updated: z.string().default("2026-05-19T10:21:56.736Z"),
2779
+ created: z.string().default("2026-05-19T14:38:14.326Z"),
2780
+ updated: z.string().default("2026-05-19T14:38:14.326Z"),
2791
2781
  guardrail_config: z.nullable(
2792
2782
  z.union([
2793
2783
  z.lazy(() =>
@@ -2975,8 +2965,8 @@ export const Ragas$inboundSchema: z.ZodType<Ragas, z.ZodTypeDef, unknown> = z
2975
2965
  .object({
2976
2966
  _id: z.string(),
2977
2967
  description: z.string(),
2978
- created: z.string().default("2026-05-19T10:21:56.736Z"),
2979
- updated: z.string().default("2026-05-19T10:21:56.736Z"),
2968
+ created: z.string().default("2026-05-19T14:38:14.326Z"),
2969
+ updated: z.string().default("2026-05-19T14:38:14.326Z"),
2980
2970
  guardrail_config: z.nullable(
2981
2971
  z.union([
2982
2972
  z.lazy(() =>
@@ -3799,8 +3789,8 @@ export const CreateEvalResponseBodyFunction$inboundSchema: z.ZodType<
3799
3789
  > = z.object({
3800
3790
  _id: z.string(),
3801
3791
  description: z.string(),
3802
- created: z.string().default("2026-05-19T10:21:56.736Z"),
3803
- updated: z.string().default("2026-05-19T10:21:56.736Z"),
3792
+ created: z.string().default("2026-05-19T14:38:14.326Z"),
3793
+ updated: z.string().default("2026-05-19T14:38:14.326Z"),
3804
3794
  guardrail_config: z.nullable(
3805
3795
  z.union([
3806
3796
  z.lazy(() =>
@@ -4018,8 +4008,8 @@ export const ResponseBodyPython$inboundSchema: z.ZodType<
4018
4008
  > = z.object({
4019
4009
  _id: z.string(),
4020
4010
  description: z.string(),
4021
- created: z.string().default("2026-05-19T10:21:56.736Z"),
4022
- updated: z.string().default("2026-05-19T10:21:56.736Z"),
4011
+ created: z.string().default("2026-05-19T14:38:14.326Z"),
4012
+ updated: z.string().default("2026-05-19T14:38:14.326Z"),
4023
4013
  guardrail_config: z.nullable(
4024
4014
  z.union([
4025
4015
  z.lazy(() =>
@@ -4200,8 +4190,8 @@ export const ResponseBodyHTTP$inboundSchema: z.ZodType<
4200
4190
  > = z.object({
4201
4191
  _id: z.string(),
4202
4192
  description: z.string(),
4203
- created: z.string().default("2026-05-19T10:21:56.736Z"),
4204
- updated: z.string().default("2026-05-19T10:21:56.736Z"),
4193
+ created: z.string().default("2026-05-19T14:38:14.326Z"),
4194
+ updated: z.string().default("2026-05-19T14:38:14.326Z"),
4205
4195
  guardrail_config: z.nullable(
4206
4196
  z.union([
4207
4197
  z.lazy(() =>
@@ -4377,8 +4367,8 @@ export const ResponseBodyJSON$inboundSchema: z.ZodType<
4377
4367
  > = z.object({
4378
4368
  _id: z.string(),
4379
4369
  description: z.string(),
4380
- created: z.string().default("2026-05-19T10:21:56.736Z"),
4381
- updated: z.string().default("2026-05-19T10:21:56.736Z"),
4370
+ created: z.string().default("2026-05-19T14:38:14.326Z"),
4371
+ updated: z.string().default("2026-05-19T14:38:14.326Z"),
4382
4372
  guardrail_config: z.nullable(
4383
4373
  z.union([
4384
4374
  z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
@@ -4748,8 +4738,8 @@ export const CreateEvalLlm2$inboundSchema: z.ZodType<
4748
4738
  > = z.object({
4749
4739
  _id: z.string(),
4750
4740
  description: z.string(),
4751
- created: z.string().default("2026-05-19T10:21:56.736Z"),
4752
- updated: z.string().default("2026-05-19T10:21:56.736Z"),
4741
+ created: z.string().default("2026-05-19T14:38:14.326Z"),
4742
+ updated: z.string().default("2026-05-19T14:38:14.326Z"),
4753
4743
  guardrail_config: z.nullable(
4754
4744
  z.union([
4755
4745
  z.lazy(() =>
@@ -4770,7 +4760,6 @@ export const CreateEvalLlm2$inboundSchema: z.ZodType<
4770
4760
  categorical_labels: z.array(
4771
4761
  z.lazy(() => CreateEvalLLMEvalsCategoricalLabels$inboundSchema),
4772
4762
  ).optional(),
4773
- dataset_id: z.string().optional(),
4774
4763
  key: z.string(),
4775
4764
  mode: z.literal("jury"),
4776
4765
  jury: z.lazy(() => CreateEvalLLMJury$inboundSchema),
@@ -4779,7 +4768,6 @@ export const CreateEvalLlm2$inboundSchema: z.ZodType<
4779
4768
  "_id": "id",
4780
4769
  "guardrail_config": "guardrailConfig",
4781
4770
  "categorical_labels": "categoricalLabels",
4782
- "dataset_id": "datasetId",
4783
4771
  });
4784
4772
  });
4785
4773
 
@@ -4966,8 +4954,8 @@ export const CreateEvalLlm1$inboundSchema: z.ZodType<
4966
4954
  > = z.object({
4967
4955
  _id: z.string(),
4968
4956
  description: z.string(),
4969
- created: z.string().default("2026-05-19T10:21:56.736Z"),
4970
- updated: z.string().default("2026-05-19T10:21:56.736Z"),
4957
+ created: z.string().default("2026-05-19T14:38:14.326Z"),
4958
+ updated: z.string().default("2026-05-19T14:38:14.326Z"),
4971
4959
  guardrail_config: z.nullable(
4972
4960
  z.union([
4973
4961
  z.lazy(() =>
@@ -4988,7 +4976,6 @@ export const CreateEvalLlm1$inboundSchema: z.ZodType<
4988
4976
  categorical_labels: z.array(
4989
4977
  z.lazy(() => CreateEvalLLMEvalsResponseCategoricalLabels$inboundSchema),
4990
4978
  ).optional(),
4991
- dataset_id: z.string().optional(),
4992
4979
  key: z.string(),
4993
4980
  mode: z.literal("single"),
4994
4981
  model: z.string(),
@@ -4997,7 +4984,6 @@ export const CreateEvalLlm1$inboundSchema: z.ZodType<
4997
4984
  "_id": "id",
4998
4985
  "guardrail_config": "guardrailConfig",
4999
4986
  "categorical_labels": "categoricalLabels",
5000
- "dataset_id": "datasetId",
5001
4987
  });
5002
4988
  });
5003
4989
 
@@ -0,0 +1,162 @@
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
+
11
+ /**
12
+ * Identity profile information
13
+ */
14
+ export type CreateIdentityRequestBody = {
15
+ /**
16
+ * 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.
17
+ */
18
+ externalId: string;
19
+ /**
20
+ * Display name or nickname of the contact user. This is typically shown in user interfaces.
21
+ */
22
+ displayName?: string | null | undefined;
23
+ /**
24
+ * Email address of the contact user
25
+ */
26
+ email?: string | null | undefined;
27
+ /**
28
+ * URL linking to the contact user's avatar image
29
+ */
30
+ avatarUrl?: string | null | undefined;
31
+ /**
32
+ * Array of tags associated with the contact. Useful for organizing and filtering contacts by categories, departments, or custom classifications.
33
+ */
34
+ tags?: Array<string> | undefined;
35
+ /**
36
+ * Additional custom metadata associated with the contact as key-value pairs. Use this to store any extra information specific to your application.
37
+ */
38
+ metadata?: { [k: string]: any } | undefined;
39
+ };
40
+
41
+ /**
42
+ * Created Identity
43
+ */
44
+ export type CreateIdentityResponseBody = {
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
+ * Unique identifier for the workspace to which the contact belongs
55
+ */
56
+ workspaceId: string;
57
+ /**
58
+ * Display name or nickname of the contact user. This is typically shown in user interfaces.
59
+ */
60
+ displayName?: string | null | undefined;
61
+ /**
62
+ * Email address of the contact user
63
+ */
64
+ email?: string | null | undefined;
65
+ /**
66
+ * URL linking to the contact user's avatar image
67
+ */
68
+ avatarUrl?: string | null | undefined;
69
+ /**
70
+ * Array of tags associated with the contact. Useful for organizing and filtering contacts by categories, departments, or custom classifications.
71
+ */
72
+ tags?: Array<string> | undefined;
73
+ /**
74
+ * Additional custom metadata associated with the contact as key-value pairs. Use this to store any extra information specific to your application.
75
+ */
76
+ metadata?: { [k: string]: any } | undefined;
77
+ /**
78
+ * The date and time the resource was created
79
+ */
80
+ created?: Date | undefined;
81
+ /**
82
+ * The date and time the resource was last updated
83
+ */
84
+ updated: Date;
85
+ };
86
+
87
+ /** @internal */
88
+ export type CreateIdentityRequestBody$Outbound = {
89
+ external_id: string;
90
+ display_name?: string | null | undefined;
91
+ email?: string | null | undefined;
92
+ avatar_url?: string | null | undefined;
93
+ tags?: Array<string> | undefined;
94
+ metadata?: { [k: string]: any } | undefined;
95
+ };
96
+
97
+ /** @internal */
98
+ export const CreateIdentityRequestBody$outboundSchema: z.ZodType<
99
+ CreateIdentityRequestBody$Outbound,
100
+ z.ZodTypeDef,
101
+ CreateIdentityRequestBody
102
+ > = z.object({
103
+ externalId: z.string(),
104
+ displayName: z.nullable(z.string()).optional(),
105
+ email: z.nullable(z.string()).optional(),
106
+ avatarUrl: z.nullable(z.string()).optional(),
107
+ tags: z.array(z.string()).optional(),
108
+ metadata: z.record(z.any()).optional(),
109
+ }).transform((v) => {
110
+ return remap$(v, {
111
+ externalId: "external_id",
112
+ displayName: "display_name",
113
+ avatarUrl: "avatar_url",
114
+ });
115
+ });
116
+
117
+ export function createIdentityRequestBodyToJSON(
118
+ createIdentityRequestBody: CreateIdentityRequestBody,
119
+ ): string {
120
+ return JSON.stringify(
121
+ CreateIdentityRequestBody$outboundSchema.parse(createIdentityRequestBody),
122
+ );
123
+ }
124
+
125
+ /** @internal */
126
+ export const CreateIdentityResponseBody$inboundSchema: z.ZodType<
127
+ CreateIdentityResponseBody,
128
+ z.ZodTypeDef,
129
+ unknown
130
+ > = z.object({
131
+ _id: z.string(),
132
+ external_id: z.string(),
133
+ workspace_id: z.string(),
134
+ display_name: z.nullable(z.string()).optional(),
135
+ email: z.nullable(z.string()).optional(),
136
+ avatar_url: z.nullable(z.string()).optional(),
137
+ tags: z.array(z.string()).optional(),
138
+ metadata: z.record(z.any()).optional(),
139
+ created: z.string().datetime({ offset: true }).transform(v => new Date(v))
140
+ .optional(),
141
+ updated: z.string().datetime({ offset: true }).default(
142
+ "2026-05-19T14:38:12.201Z",
143
+ ).transform(v => new Date(v)),
144
+ }).transform((v) => {
145
+ return remap$(v, {
146
+ "_id": "id",
147
+ "external_id": "externalId",
148
+ "workspace_id": "workspaceId",
149
+ "display_name": "displayName",
150
+ "avatar_url": "avatarUrl",
151
+ });
152
+ });
153
+
154
+ export function createIdentityResponseBodyFromJSON(
155
+ jsonString: string,
156
+ ): SafeParseResult<CreateIdentityResponseBody, SDKValidationError> {
157
+ return safeParse(
158
+ jsonString,
159
+ (x) => CreateIdentityResponseBody$inboundSchema.parse(JSON.parse(x)),
160
+ `Failed to parse 'CreateIdentityResponseBody' from JSON`,
161
+ );
162
+ }