@orq-ai/node 4.2.0-rc.29 → 4.2.0-rc.30

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 (233) hide show
  1. package/FUNCTIONS.md +7 -17
  2. package/README.md +82 -118
  3. package/bin/mcp-server.js +1687 -692
  4. package/bin/mcp-server.js.map +67 -49
  5. package/examples/feedbackCreate.example.ts +32 -0
  6. package/examples/package-lock.json +2 -2
  7. package/funcs/contactsCreate.d.ts +2 -0
  8. package/funcs/contactsCreate.d.ts.map +1 -1
  9. package/funcs/contactsCreate.js +2 -0
  10. package/funcs/contactsCreate.js.map +1 -1
  11. package/funcs/contactsDelete.d.ts +2 -0
  12. package/funcs/contactsDelete.d.ts.map +1 -1
  13. package/funcs/contactsDelete.js +2 -0
  14. package/funcs/contactsDelete.js.map +1 -1
  15. package/funcs/contactsList.d.ts +2 -0
  16. package/funcs/contactsList.d.ts.map +1 -1
  17. package/funcs/contactsList.js +2 -0
  18. package/funcs/contactsList.js.map +1 -1
  19. package/funcs/contactsRetrieve.d.ts +2 -0
  20. package/funcs/contactsRetrieve.d.ts.map +1 -1
  21. package/funcs/contactsRetrieve.js +2 -0
  22. package/funcs/contactsRetrieve.js.map +1 -1
  23. package/funcs/contactsUpdate.d.ts +2 -0
  24. package/funcs/contactsUpdate.d.ts.map +1 -1
  25. package/funcs/contactsUpdate.js +2 -0
  26. package/funcs/contactsUpdate.js.map +1 -1
  27. package/funcs/identitiesCreate.d.ts +17 -0
  28. package/funcs/identitiesCreate.d.ts.map +1 -0
  29. package/funcs/identitiesCreate.js +116 -0
  30. package/funcs/identitiesCreate.js.map +1 -0
  31. package/funcs/identitiesDelete.d.ts +18 -0
  32. package/funcs/identitiesDelete.d.ts.map +1 -0
  33. package/funcs/identitiesDelete.js +124 -0
  34. package/funcs/identitiesDelete.js.map +1 -0
  35. package/funcs/identitiesList.d.ts +17 -0
  36. package/funcs/identitiesList.d.ts.map +1 -0
  37. package/funcs/identitiesList.js +122 -0
  38. package/funcs/identitiesList.js.map +1 -0
  39. package/funcs/identitiesRetrieve.d.ts +18 -0
  40. package/funcs/identitiesRetrieve.d.ts.map +1 -0
  41. package/funcs/identitiesRetrieve.js +123 -0
  42. package/funcs/identitiesRetrieve.js.map +1 -0
  43. package/funcs/identitiesUpdate.d.ts +18 -0
  44. package/funcs/identitiesUpdate.d.ts.map +1 -0
  45. package/funcs/identitiesUpdate.js +124 -0
  46. package/funcs/identitiesUpdate.js.map +1 -0
  47. package/jsr.json +1 -1
  48. package/lib/config.d.ts +3 -3
  49. package/lib/config.js +3 -3
  50. package/mcp-server/mcp-server.js +1 -1
  51. package/mcp-server/server.d.ts.map +1 -1
  52. package/mcp-server/server.js +11 -1
  53. package/mcp-server/server.js.map +1 -1
  54. package/mcp-server/tools/identitiesCreate.d.ts +8 -0
  55. package/mcp-server/tools/identitiesCreate.d.ts.map +1 -0
  56. package/mcp-server/tools/identitiesCreate.js +64 -0
  57. package/mcp-server/tools/identitiesCreate.js.map +1 -0
  58. package/mcp-server/tools/identitiesDelete.d.ts +8 -0
  59. package/mcp-server/tools/identitiesDelete.d.ts.map +1 -0
  60. package/mcp-server/tools/identitiesDelete.js +63 -0
  61. package/mcp-server/tools/identitiesDelete.js.map +1 -0
  62. package/mcp-server/tools/identitiesList.d.ts +8 -0
  63. package/mcp-server/tools/identitiesList.d.ts.map +1 -0
  64. package/mcp-server/tools/identitiesList.js +64 -0
  65. package/mcp-server/tools/identitiesList.js.map +1 -0
  66. package/mcp-server/tools/identitiesRetrieve.d.ts +8 -0
  67. package/mcp-server/tools/identitiesRetrieve.d.ts.map +1 -0
  68. package/mcp-server/tools/identitiesRetrieve.js +64 -0
  69. package/mcp-server/tools/identitiesRetrieve.js.map +1 -0
  70. package/mcp-server/tools/identitiesUpdate.d.ts +8 -0
  71. package/mcp-server/tools/identitiesUpdate.d.ts.map +1 -0
  72. package/mcp-server/tools/identitiesUpdate.js +64 -0
  73. package/mcp-server/tools/identitiesUpdate.js.map +1 -0
  74. package/models/components/conversationresponse.js +2 -2
  75. package/models/components/conversationwithmessagesresponse.js +2 -2
  76. package/models/components/partdoneevent.js +2 -2
  77. package/models/components/reasoningpart.js +2 -2
  78. package/models/errors/deleteidentity.d.ts +36 -0
  79. package/models/errors/deleteidentity.d.ts.map +1 -0
  80. package/models/errors/deleteidentity.js +77 -0
  81. package/models/errors/deleteidentity.js.map +1 -0
  82. package/models/errors/index.d.ts +3 -0
  83. package/models/errors/index.d.ts.map +1 -1
  84. package/models/errors/index.js +3 -0
  85. package/models/errors/index.js.map +1 -1
  86. package/models/errors/retrieveidentity.d.ts +36 -0
  87. package/models/errors/retrieveidentity.d.ts.map +1 -0
  88. package/models/errors/retrieveidentity.js +77 -0
  89. package/models/errors/retrieveidentity.js.map +1 -0
  90. package/models/errors/updateidentity.d.ts +32 -0
  91. package/models/errors/updateidentity.d.ts.map +1 -0
  92. package/models/errors/updateidentity.js +74 -0
  93. package/models/errors/updateidentity.js.map +1 -0
  94. package/models/operations/createcontact.js +2 -2
  95. package/models/operations/createconversation.js +2 -2
  96. package/models/operations/createconversationresponse.js +4 -4
  97. package/models/operations/createdataset.js +2 -2
  98. package/models/operations/createdatasetitem.js +8 -8
  99. package/models/operations/createdatasource.js +2 -2
  100. package/models/operations/createeval.js +28 -28
  101. package/models/operations/createidentity.d.ts +120 -0
  102. package/models/operations/createidentity.d.ts.map +1 -0
  103. package/models/operations/createidentity.js +133 -0
  104. package/models/operations/createidentity.js.map +1 -0
  105. package/models/operations/createtool.js +12 -12
  106. package/models/operations/deleteidentity.d.ts +20 -0
  107. package/models/operations/deleteidentity.d.ts.map +1 -0
  108. package/models/operations/deleteidentity.js +58 -0
  109. package/models/operations/deleteidentity.js.map +1 -0
  110. package/models/operations/fileget.js +2 -2
  111. package/models/operations/filelist.js +2 -2
  112. package/models/operations/fileupload.js +2 -2
  113. package/models/operations/generateconversationname.js +2 -2
  114. package/models/operations/getalltools.js +12 -12
  115. package/models/operations/getevals.js +28 -28
  116. package/models/operations/index.d.ts +5 -0
  117. package/models/operations/index.d.ts.map +1 -1
  118. package/models/operations/index.js +5 -0
  119. package/models/operations/index.js.map +1 -1
  120. package/models/operations/listcontacts.d.ts +8 -8
  121. package/models/operations/listcontacts.d.ts.map +1 -1
  122. package/models/operations/listcontacts.js +15 -13
  123. package/models/operations/listcontacts.js.map +1 -1
  124. package/models/operations/listdatasetdatapoints.js +8 -8
  125. package/models/operations/listdatasets.js +2 -2
  126. package/models/operations/listdatasources.js +2 -2
  127. package/models/operations/listidentities.d.ts +183 -0
  128. package/models/operations/listidentities.d.ts.map +1 -0
  129. package/models/operations/listidentities.js +220 -0
  130. package/models/operations/listidentities.js.map +1 -0
  131. package/models/operations/retrievecontact.js +2 -2
  132. package/models/operations/retrievedatapoint.js +8 -8
  133. package/models/operations/retrievedataset.js +2 -2
  134. package/models/operations/retrievedatasource.js +2 -2
  135. package/models/operations/retrieveidentity.d.ts +83 -0
  136. package/models/operations/retrieveidentity.d.ts.map +1 -0
  137. package/models/operations/retrieveidentity.js +107 -0
  138. package/models/operations/retrieveidentity.js.map +1 -0
  139. package/models/operations/retrievetool.js +12 -12
  140. package/models/operations/runagent.js +2 -2
  141. package/models/operations/streamrunagent.js +2 -2
  142. package/models/operations/updatecontact.js +2 -2
  143. package/models/operations/updateconversation.js +2 -2
  144. package/models/operations/updatedatapoint.js +8 -8
  145. package/models/operations/updatedataset.js +2 -2
  146. package/models/operations/updatedatasource.js +2 -2
  147. package/models/operations/updateeval.js +28 -28
  148. package/models/operations/updateidentity.d.ts +131 -0
  149. package/models/operations/updateidentity.d.ts.map +1 -0
  150. package/models/operations/updateidentity.js +152 -0
  151. package/models/operations/updateidentity.js.map +1 -0
  152. package/models/operations/updatetool.js +14 -14
  153. package/package.json +2 -2
  154. package/sdk/contacts.d.ts +10 -0
  155. package/sdk/contacts.d.ts.map +1 -1
  156. package/sdk/contacts.js +10 -0
  157. package/sdk/contacts.js.map +1 -1
  158. package/sdk/identities.d.ts +40 -0
  159. package/sdk/identities.d.ts.map +1 -0
  160. package/sdk/identities.js +62 -0
  161. package/sdk/identities.js.map +1 -0
  162. package/sdk/sdk.d.ts +3 -0
  163. package/sdk/sdk.d.ts.map +1 -1
  164. package/sdk/sdk.js +4 -0
  165. package/sdk/sdk.js.map +1 -1
  166. package/src/funcs/contactsCreate.ts +2 -0
  167. package/src/funcs/contactsDelete.ts +2 -0
  168. package/src/funcs/contactsList.ts +2 -0
  169. package/src/funcs/contactsRetrieve.ts +2 -0
  170. package/src/funcs/contactsUpdate.ts +2 -0
  171. package/src/funcs/identitiesCreate.ts +165 -0
  172. package/src/funcs/identitiesDelete.ts +176 -0
  173. package/src/funcs/identitiesList.ts +170 -0
  174. package/src/funcs/identitiesRetrieve.ts +175 -0
  175. package/src/funcs/identitiesUpdate.ts +176 -0
  176. package/src/lib/config.ts +3 -3
  177. package/src/mcp-server/mcp-server.ts +1 -1
  178. package/src/mcp-server/server.ts +11 -1
  179. package/src/mcp-server/tools/identitiesCreate.ts +37 -0
  180. package/src/mcp-server/tools/identitiesDelete.ts +35 -0
  181. package/src/mcp-server/tools/identitiesList.ts +37 -0
  182. package/src/mcp-server/tools/identitiesRetrieve.ts +37 -0
  183. package/src/mcp-server/tools/identitiesUpdate.ts +37 -0
  184. package/src/models/components/conversationresponse.ts +2 -2
  185. package/src/models/components/conversationwithmessagesresponse.ts +2 -2
  186. package/src/models/components/partdoneevent.ts +2 -2
  187. package/src/models/components/reasoningpart.ts +2 -2
  188. package/src/models/errors/deleteidentity.ts +78 -0
  189. package/src/models/errors/index.ts +3 -0
  190. package/src/models/errors/retrieveidentity.ts +78 -0
  191. package/src/models/errors/updateidentity.ts +70 -0
  192. package/src/models/operations/createcontact.ts +2 -2
  193. package/src/models/operations/createconversation.ts +2 -2
  194. package/src/models/operations/createconversationresponse.ts +4 -4
  195. package/src/models/operations/createdataset.ts +2 -2
  196. package/src/models/operations/createdatasetitem.ts +8 -8
  197. package/src/models/operations/createdatasource.ts +2 -2
  198. package/src/models/operations/createeval.ts +28 -28
  199. package/src/models/operations/createidentity.ts +237 -0
  200. package/src/models/operations/createtool.ts +12 -12
  201. package/src/models/operations/deleteidentity.ts +54 -0
  202. package/src/models/operations/fileget.ts +2 -2
  203. package/src/models/operations/filelist.ts +2 -2
  204. package/src/models/operations/fileupload.ts +2 -2
  205. package/src/models/operations/generateconversationname.ts +2 -2
  206. package/src/models/operations/getalltools.ts +12 -12
  207. package/src/models/operations/getevals.ts +28 -28
  208. package/src/models/operations/index.ts +5 -0
  209. package/src/models/operations/listcontacts.ts +24 -20
  210. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  211. package/src/models/operations/listdatasets.ts +2 -2
  212. package/src/models/operations/listdatasources.ts +2 -2
  213. package/src/models/operations/listidentities.ts +432 -0
  214. package/src/models/operations/retrievecontact.ts +2 -2
  215. package/src/models/operations/retrievedatapoint.ts +8 -8
  216. package/src/models/operations/retrievedataset.ts +2 -2
  217. package/src/models/operations/retrievedatasource.ts +2 -2
  218. package/src/models/operations/retrieveidentity.ts +180 -0
  219. package/src/models/operations/retrievetool.ts +12 -12
  220. package/src/models/operations/runagent.ts +2 -2
  221. package/src/models/operations/streamrunagent.ts +2 -2
  222. package/src/models/operations/updatecontact.ts +2 -2
  223. package/src/models/operations/updateconversation.ts +2 -2
  224. package/src/models/operations/updatedatapoint.ts +8 -8
  225. package/src/models/operations/updatedataset.ts +2 -2
  226. package/src/models/operations/updatedatasource.ts +2 -2
  227. package/src/models/operations/updateeval.ts +28 -28
  228. package/src/models/operations/updateidentity.ts +281 -0
  229. package/src/models/operations/updatetool.ts +14 -14
  230. package/src/sdk/contacts.ts +10 -0
  231. package/src/sdk/identities.ts +99 -0
  232. package/src/sdk/sdk.ts +6 -0
  233. package/examples/contactsCreate.example.ts +0 -42
@@ -0,0 +1,237 @@
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 | undefined;
85
+ };
86
+
87
+ /** @internal */
88
+ export const CreateIdentityRequestBody$inboundSchema: z.ZodType<
89
+ CreateIdentityRequestBody,
90
+ z.ZodTypeDef,
91
+ unknown
92
+ > = z.object({
93
+ external_id: z.string(),
94
+ display_name: z.nullable(z.string()).optional(),
95
+ email: z.nullable(z.string()).optional(),
96
+ avatar_url: z.nullable(z.string()).optional(),
97
+ tags: z.array(z.string()).optional(),
98
+ metadata: z.record(z.any()).optional(),
99
+ }).transform((v) => {
100
+ return remap$(v, {
101
+ "external_id": "externalId",
102
+ "display_name": "displayName",
103
+ "avatar_url": "avatarUrl",
104
+ });
105
+ });
106
+ /** @internal */
107
+ export type CreateIdentityRequestBody$Outbound = {
108
+ external_id: string;
109
+ display_name?: string | null | undefined;
110
+ email?: string | null | undefined;
111
+ avatar_url?: string | null | undefined;
112
+ tags?: Array<string> | undefined;
113
+ metadata?: { [k: string]: any } | undefined;
114
+ };
115
+
116
+ /** @internal */
117
+ export const CreateIdentityRequestBody$outboundSchema: z.ZodType<
118
+ CreateIdentityRequestBody$Outbound,
119
+ z.ZodTypeDef,
120
+ CreateIdentityRequestBody
121
+ > = z.object({
122
+ externalId: z.string(),
123
+ displayName: z.nullable(z.string()).optional(),
124
+ email: z.nullable(z.string()).optional(),
125
+ avatarUrl: z.nullable(z.string()).optional(),
126
+ tags: z.array(z.string()).optional(),
127
+ metadata: z.record(z.any()).optional(),
128
+ }).transform((v) => {
129
+ return remap$(v, {
130
+ externalId: "external_id",
131
+ displayName: "display_name",
132
+ avatarUrl: "avatar_url",
133
+ });
134
+ });
135
+
136
+ export function createIdentityRequestBodyToJSON(
137
+ createIdentityRequestBody: CreateIdentityRequestBody,
138
+ ): string {
139
+ return JSON.stringify(
140
+ CreateIdentityRequestBody$outboundSchema.parse(createIdentityRequestBody),
141
+ );
142
+ }
143
+ export function createIdentityRequestBodyFromJSON(
144
+ jsonString: string,
145
+ ): SafeParseResult<CreateIdentityRequestBody, SDKValidationError> {
146
+ return safeParse(
147
+ jsonString,
148
+ (x) => CreateIdentityRequestBody$inboundSchema.parse(JSON.parse(x)),
149
+ `Failed to parse 'CreateIdentityRequestBody' from JSON`,
150
+ );
151
+ }
152
+
153
+ /** @internal */
154
+ export const CreateIdentityResponseBody$inboundSchema: z.ZodType<
155
+ CreateIdentityResponseBody,
156
+ z.ZodTypeDef,
157
+ unknown
158
+ > = z.object({
159
+ _id: z.string(),
160
+ external_id: z.string(),
161
+ workspace_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-01-15T04:13:15.987Z",
171
+ ).transform(v => new Date(v)),
172
+ }).transform((v) => {
173
+ return remap$(v, {
174
+ "_id": "id",
175
+ "external_id": "externalId",
176
+ "workspace_id": "workspaceId",
177
+ "display_name": "displayName",
178
+ "avatar_url": "avatarUrl",
179
+ });
180
+ });
181
+ /** @internal */
182
+ export type CreateIdentityResponseBody$Outbound = {
183
+ _id: string;
184
+ external_id: string;
185
+ workspace_id: string;
186
+ display_name?: string | null | undefined;
187
+ email?: string | null | undefined;
188
+ avatar_url?: string | null | undefined;
189
+ tags?: Array<string> | undefined;
190
+ metadata?: { [k: string]: any } | undefined;
191
+ created?: string | undefined;
192
+ updated: string;
193
+ };
194
+
195
+ /** @internal */
196
+ export const CreateIdentityResponseBody$outboundSchema: z.ZodType<
197
+ CreateIdentityResponseBody$Outbound,
198
+ z.ZodTypeDef,
199
+ CreateIdentityResponseBody
200
+ > = z.object({
201
+ id: z.string(),
202
+ externalId: z.string(),
203
+ workspaceId: z.string(),
204
+ displayName: z.nullable(z.string()).optional(),
205
+ email: z.nullable(z.string()).optional(),
206
+ avatarUrl: z.nullable(z.string()).optional(),
207
+ tags: z.array(z.string()).optional(),
208
+ metadata: z.record(z.any()).optional(),
209
+ created: z.date().transform(v => v.toISOString()).optional(),
210
+ updated: z.date().default(() => new Date("2026-01-15T04:13:15.987Z"))
211
+ .transform(v => v.toISOString()),
212
+ }).transform((v) => {
213
+ return remap$(v, {
214
+ id: "_id",
215
+ externalId: "external_id",
216
+ workspaceId: "workspace_id",
217
+ displayName: "display_name",
218
+ avatarUrl: "avatar_url",
219
+ });
220
+ });
221
+
222
+ export function createIdentityResponseBodyToJSON(
223
+ createIdentityResponseBody: CreateIdentityResponseBody,
224
+ ): string {
225
+ return JSON.stringify(
226
+ CreateIdentityResponseBody$outboundSchema.parse(createIdentityResponseBody),
227
+ );
228
+ }
229
+ export function createIdentityResponseBodyFromJSON(
230
+ jsonString: string,
231
+ ): SafeParseResult<CreateIdentityResponseBody, SDKValidationError> {
232
+ return safeParse(
233
+ jsonString,
234
+ (x) => CreateIdentityResponseBody$inboundSchema.parse(JSON.parse(x)),
235
+ `Failed to parse 'CreateIdentityResponseBody' from JSON`,
236
+ );
237
+ }
@@ -2462,7 +2462,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
2462
2462
  z.ZodTypeDef,
2463
2463
  unknown
2464
2464
  > = z.object({
2465
- _id: z.string().default("tool_01KEYB6FGNRJR4TWEZE1R92H2A"),
2465
+ _id: z.string().default("tool_01KEZXQGKXPSFK8Y61KPJPQQW5"),
2466
2466
  path: z.string(),
2467
2467
  key: z.string(),
2468
2468
  display_name: z.string().optional(),
@@ -2516,7 +2516,7 @@ export const ResponseBodyCodeExecutionTool$outboundSchema: z.ZodType<
2516
2516
  z.ZodTypeDef,
2517
2517
  ResponseBodyCodeExecutionTool
2518
2518
  > = z.object({
2519
- id: z.string().default("tool_01KEYB6FGNRJR4TWEZE1R92H2A"),
2519
+ id: z.string().default("tool_01KEZXQGKXPSFK8Y61KPJPQQW5"),
2520
2520
  path: z.string(),
2521
2521
  key: z.string(),
2522
2522
  displayName: z.string().optional(),
@@ -2682,7 +2682,7 @@ export const ResponseBodyTools$inboundSchema: z.ZodType<
2682
2682
  z.ZodTypeDef,
2683
2683
  unknown
2684
2684
  > = z.object({
2685
- id: z.string().default("01KEYB6FGMQMM6H7MCX4T5HRDC"),
2685
+ id: z.string().default("01KEZXQGKWY1XF8TV6KA2P4W45"),
2686
2686
  name: z.string(),
2687
2687
  description: z.string().optional(),
2688
2688
  schema: z.lazy(() => CreateToolResponseBodySchema$inboundSchema),
@@ -2701,7 +2701,7 @@ export const ResponseBodyTools$outboundSchema: z.ZodType<
2701
2701
  z.ZodTypeDef,
2702
2702
  ResponseBodyTools
2703
2703
  > = z.object({
2704
- id: z.string().default("01KEYB6FGMQMM6H7MCX4T5HRDC"),
2704
+ id: z.string().default("01KEZXQGKWY1XF8TV6KA2P4W45"),
2705
2705
  name: z.string(),
2706
2706
  description: z.string().optional(),
2707
2707
  schema: z.lazy(() => CreateToolResponseBodySchema$outboundSchema),
@@ -2796,7 +2796,7 @@ export const ResponseBodyMCPTool$inboundSchema: z.ZodType<
2796
2796
  z.ZodTypeDef,
2797
2797
  unknown
2798
2798
  > = z.object({
2799
- _id: z.string().default("tool_01KEYB6FGA4RMX3SE4SZ3RH74X"),
2799
+ _id: z.string().default("tool_01KEZXQGKTZ90E1SH2XRM1Y5KS"),
2800
2800
  path: z.string(),
2801
2801
  key: z.string(),
2802
2802
  display_name: z.string().optional(),
@@ -2849,7 +2849,7 @@ export const ResponseBodyMCPTool$outboundSchema: z.ZodType<
2849
2849
  z.ZodTypeDef,
2850
2850
  ResponseBodyMCPTool
2851
2851
  > = z.object({
2852
- id: z.string().default("tool_01KEYB6FGA4RMX3SE4SZ3RH74X"),
2852
+ id: z.string().default("tool_01KEZXQGKTZ90E1SH2XRM1Y5KS"),
2853
2853
  path: z.string(),
2854
2854
  key: z.string(),
2855
2855
  displayName: z.string().optional(),
@@ -3200,7 +3200,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
3200
3200
  z.ZodTypeDef,
3201
3201
  unknown
3202
3202
  > = z.object({
3203
- _id: z.string().default("tool_01KEYB6FG81QQJ7R7EH3VVEB2B"),
3203
+ _id: z.string().default("tool_01KEZXQGKRJHMA2PP98Y2WA73B"),
3204
3204
  path: z.string(),
3205
3205
  key: z.string(),
3206
3206
  display_name: z.string().optional(),
@@ -3251,7 +3251,7 @@ export const ResponseBodyHTTPTool$outboundSchema: z.ZodType<
3251
3251
  z.ZodTypeDef,
3252
3252
  ResponseBodyHTTPTool
3253
3253
  > = z.object({
3254
- id: z.string().default("tool_01KEYB6FG81QQJ7R7EH3VVEB2B"),
3254
+ id: z.string().default("tool_01KEZXQGKRJHMA2PP98Y2WA73B"),
3255
3255
  path: z.string(),
3256
3256
  key: z.string(),
3257
3257
  displayName: z.string().optional(),
@@ -3416,7 +3416,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
3416
3416
  z.ZodTypeDef,
3417
3417
  unknown
3418
3418
  > = z.object({
3419
- _id: z.string().default("tool_01KEYB6FG7WN4F8YGYSFSRG4G8"),
3419
+ _id: z.string().default("tool_01KEZXQGKQKE64EBEH5FX3DJQB"),
3420
3420
  path: z.string(),
3421
3421
  key: z.string(),
3422
3422
  display_name: z.string().optional(),
@@ -3468,7 +3468,7 @@ export const ResponseBodyJSONSchemaTool$outboundSchema: z.ZodType<
3468
3468
  z.ZodTypeDef,
3469
3469
  ResponseBodyJSONSchemaTool
3470
3470
  > = z.object({
3471
- id: z.string().default("tool_01KEYB6FG7WN4F8YGYSFSRG4G8"),
3471
+ id: z.string().default("tool_01KEZXQGKQKE64EBEH5FX3DJQB"),
3472
3472
  path: z.string(),
3473
3473
  key: z.string(),
3474
3474
  displayName: z.string().optional(),
@@ -3649,7 +3649,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
3649
3649
  z.ZodTypeDef,
3650
3650
  unknown
3651
3651
  > = z.object({
3652
- _id: z.string().default("tool_01KEYB6FG6D0BW3PGZ7A5C63VV"),
3652
+ _id: z.string().default("tool_01KEZXQGKN07EG23BD4NZJHM3K"),
3653
3653
  path: z.string(),
3654
3654
  key: z.string(),
3655
3655
  display_name: z.string().optional(),
@@ -3700,7 +3700,7 @@ export const ResponseBodyFunctionTool$outboundSchema: z.ZodType<
3700
3700
  z.ZodTypeDef,
3701
3701
  ResponseBodyFunctionTool
3702
3702
  > = z.object({
3703
- id: z.string().default("tool_01KEYB6FG6D0BW3PGZ7A5C63VV"),
3703
+ id: z.string().default("tool_01KEZXQGKN07EG23BD4NZJHM3K"),
3704
3704
  path: z.string(),
3705
3705
  key: z.string(),
3706
3706
  displayName: z.string().optional(),
@@ -0,0 +1,54 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+
10
+ export type DeleteIdentityRequest = {
11
+ /**
12
+ * Identity ID or External ID
13
+ */
14
+ id: string;
15
+ };
16
+
17
+ /** @internal */
18
+ export const DeleteIdentityRequest$inboundSchema: z.ZodType<
19
+ DeleteIdentityRequest,
20
+ z.ZodTypeDef,
21
+ unknown
22
+ > = z.object({
23
+ id: z.string(),
24
+ });
25
+ /** @internal */
26
+ export type DeleteIdentityRequest$Outbound = {
27
+ id: string;
28
+ };
29
+
30
+ /** @internal */
31
+ export const DeleteIdentityRequest$outboundSchema: z.ZodType<
32
+ DeleteIdentityRequest$Outbound,
33
+ z.ZodTypeDef,
34
+ DeleteIdentityRequest
35
+ > = z.object({
36
+ id: z.string(),
37
+ });
38
+
39
+ export function deleteIdentityRequestToJSON(
40
+ deleteIdentityRequest: DeleteIdentityRequest,
41
+ ): string {
42
+ return JSON.stringify(
43
+ DeleteIdentityRequest$outboundSchema.parse(deleteIdentityRequest),
44
+ );
45
+ }
46
+ export function deleteIdentityRequestFromJSON(
47
+ jsonString: string,
48
+ ): SafeParseResult<DeleteIdentityRequest, SDKValidationError> {
49
+ return safeParse(
50
+ jsonString,
51
+ (x) => DeleteIdentityRequest$inboundSchema.parse(JSON.parse(x)),
52
+ `Failed to parse 'DeleteIdentityRequest' from JSON`,
53
+ );
54
+ }
@@ -119,7 +119,7 @@ export const FileGetResponseBody$inboundSchema: z.ZodType<
119
119
  file_name: z.string(),
120
120
  workspace_id: z.string(),
121
121
  created: z.string().datetime({ offset: true }).default(
122
- "2026-01-14T13:30:12.726Z",
122
+ "2026-01-15T04:13:19.498Z",
123
123
  ).transform(v => new Date(v)),
124
124
  }).transform((v) => {
125
125
  return remap$(v, {
@@ -152,7 +152,7 @@ export const FileGetResponseBody$outboundSchema: z.ZodType<
152
152
  bytes: z.number(),
153
153
  fileName: z.string(),
154
154
  workspaceId: z.string(),
155
- created: z.date().default(() => new Date("2026-01-14T13:30:12.726Z"))
155
+ created: z.date().default(() => new Date("2026-01-15T04:13:19.498Z"))
156
156
  .transform(v => v.toISOString()),
157
157
  }).transform((v) => {
158
158
  return remap$(v, {
@@ -157,7 +157,7 @@ export const FileListData$inboundSchema: z.ZodType<
157
157
  file_name: z.string(),
158
158
  workspace_id: z.string(),
159
159
  created: z.string().datetime({ offset: true }).default(
160
- "2026-01-14T13:30:12.726Z",
160
+ "2026-01-15T04:13:19.498Z",
161
161
  ).transform(v => new Date(v)),
162
162
  }).transform((v) => {
163
163
  return remap$(v, {
@@ -190,7 +190,7 @@ export const FileListData$outboundSchema: z.ZodType<
190
190
  bytes: z.number(),
191
191
  fileName: z.string(),
192
192
  workspaceId: z.string(),
193
- created: z.date().default(() => new Date("2026-01-14T13:30:12.726Z"))
193
+ created: z.date().default(() => new Date("2026-01-15T04:13:19.498Z"))
194
194
  .transform(v => v.toISOString()),
195
195
  }).transform((v) => {
196
196
  return remap$(v, {
@@ -196,7 +196,7 @@ export const FileUploadResponseBody$inboundSchema: z.ZodType<
196
196
  file_name: z.string(),
197
197
  workspace_id: z.string(),
198
198
  created: z.string().datetime({ offset: true }).default(
199
- "2026-01-14T13:30:12.726Z",
199
+ "2026-01-15T04:13:19.498Z",
200
200
  ).transform(v => new Date(v)),
201
201
  }).transform((v) => {
202
202
  return remap$(v, {
@@ -229,7 +229,7 @@ export const FileUploadResponseBody$outboundSchema: z.ZodType<
229
229
  bytes: z.number(),
230
230
  fileName: z.string(),
231
231
  workspaceId: z.string(),
232
- created: z.date().default(() => new Date("2026-01-14T13:30:12.726Z"))
232
+ created: z.date().default(() => new Date("2026-01-15T04:13:19.498Z"))
233
233
  .transform(v => v.toISOString()),
234
234
  }).transform((v) => {
235
235
  return remap$(v, {
@@ -251,7 +251,7 @@ export const GenerateConversationNameResponseBody$inboundSchema: z.ZodType<
251
251
  z.ZodTypeDef,
252
252
  unknown
253
253
  > = z.object({
254
- _id: z.string().default("conv_01keyb6f8d4t37mtjaqk8dqtdf"),
254
+ _id: z.string().default("conv_01kezxqgb4gdbsfngfh7dnhzfv"),
255
255
  kind: GenerateConversationNameKind$inboundSchema,
256
256
  displayName: z.string(),
257
257
  createdAt: z.number(),
@@ -283,7 +283,7 @@ export const GenerateConversationNameResponseBody$outboundSchema: z.ZodType<
283
283
  z.ZodTypeDef,
284
284
  GenerateConversationNameResponseBody
285
285
  > = z.object({
286
- id: z.string().default("conv_01keyb6f8d4t37mtjaqk8dqtdf"),
286
+ id: z.string().default("conv_01kezxqgb4gdbsfngfh7dnhzfv"),
287
287
  kind: GenerateConversationNameKind$outboundSchema,
288
288
  displayName: z.string(),
289
289
  createdAt: z.number(),
@@ -863,7 +863,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
863
863
  z.ZodTypeDef,
864
864
  unknown
865
865
  > = z.object({
866
- _id: z.string().default("tool_01KEYB6FFRZD0RKCPPBQM3QTJQ"),
866
+ _id: z.string().default("tool_01KEZXQGKB1TJVWRDJMCWX4QQF"),
867
867
  path: z.string(),
868
868
  key: z.string(),
869
869
  display_name: z.string().optional(),
@@ -915,7 +915,7 @@ export const DataCodeExecutionTool$outboundSchema: z.ZodType<
915
915
  z.ZodTypeDef,
916
916
  DataCodeExecutionTool
917
917
  > = z.object({
918
- id: z.string().default("tool_01KEYB6FFRZD0RKCPPBQM3QTJQ"),
918
+ id: z.string().default("tool_01KEZXQGKB1TJVWRDJMCWX4QQF"),
919
919
  path: z.string(),
920
920
  key: z.string(),
921
921
  displayName: z.string().optional(),
@@ -1074,7 +1074,7 @@ export const DataTools$inboundSchema: z.ZodType<
1074
1074
  z.ZodTypeDef,
1075
1075
  unknown
1076
1076
  > = z.object({
1077
- id: z.string().default("01KEYB6FFP67NV0N869449Z70V"),
1077
+ id: z.string().default("01KEZXQGKAAW9BWMG0NHHD417C"),
1078
1078
  name: z.string(),
1079
1079
  description: z.string().optional(),
1080
1080
  schema: z.lazy(() => GetAllToolsDataSchema$inboundSchema),
@@ -1093,7 +1093,7 @@ export const DataTools$outboundSchema: z.ZodType<
1093
1093
  z.ZodTypeDef,
1094
1094
  DataTools
1095
1095
  > = z.object({
1096
- id: z.string().default("01KEYB6FFP67NV0N869449Z70V"),
1096
+ id: z.string().default("01KEZXQGKAAW9BWMG0NHHD417C"),
1097
1097
  name: z.string(),
1098
1098
  description: z.string().optional(),
1099
1099
  schema: z.lazy(() => GetAllToolsDataSchema$outboundSchema),
@@ -1178,7 +1178,7 @@ export const DataMCPTool$inboundSchema: z.ZodType<
1178
1178
  z.ZodTypeDef,
1179
1179
  unknown
1180
1180
  > = z.object({
1181
- _id: z.string().default("tool_01KEYB6FFM7VXCHM74EGHV093D"),
1181
+ _id: z.string().default("tool_01KEZXQGK9201GJDCNW1EYH2VB"),
1182
1182
  path: z.string(),
1183
1183
  key: z.string(),
1184
1184
  display_name: z.string().optional(),
@@ -1229,7 +1229,7 @@ export const DataMCPTool$outboundSchema: z.ZodType<
1229
1229
  z.ZodTypeDef,
1230
1230
  DataMCPTool
1231
1231
  > = z.object({
1232
- id: z.string().default("tool_01KEYB6FFM7VXCHM74EGHV093D"),
1232
+ id: z.string().default("tool_01KEZXQGK9201GJDCNW1EYH2VB"),
1233
1233
  path: z.string(),
1234
1234
  key: z.string(),
1235
1235
  displayName: z.string().optional(),
@@ -1563,7 +1563,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
1563
1563
  z.ZodTypeDef,
1564
1564
  unknown
1565
1565
  > = z.object({
1566
- _id: z.string().default("tool_01KEYB6FFH79CJJ9A66VXTF91B"),
1566
+ _id: z.string().default("tool_01KEZXQGK7X085GCQ14DA76E86"),
1567
1567
  path: z.string(),
1568
1568
  key: z.string(),
1569
1569
  display_name: z.string().optional(),
@@ -1614,7 +1614,7 @@ export const DataHTTPTool$outboundSchema: z.ZodType<
1614
1614
  z.ZodTypeDef,
1615
1615
  DataHTTPTool
1616
1616
  > = z.object({
1617
- id: z.string().default("tool_01KEYB6FFH79CJJ9A66VXTF91B"),
1617
+ id: z.string().default("tool_01KEZXQGK7X085GCQ14DA76E86"),
1618
1618
  path: z.string(),
1619
1619
  key: z.string(),
1620
1620
  displayName: z.string().optional(),
@@ -1767,7 +1767,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
1767
1767
  z.ZodTypeDef,
1768
1768
  unknown
1769
1769
  > = z.object({
1770
- _id: z.string().default("tool_01KEYB6FFF6HK6XBY6QKJ74QF5"),
1770
+ _id: z.string().default("tool_01KEZXQGJYA8K1A8DR162AR6XS"),
1771
1771
  path: z.string(),
1772
1772
  key: z.string(),
1773
1773
  display_name: z.string().optional(),
@@ -1819,7 +1819,7 @@ export const DataJSONSchemaTool$outboundSchema: z.ZodType<
1819
1819
  z.ZodTypeDef,
1820
1820
  DataJSONSchemaTool
1821
1821
  > = z.object({
1822
- id: z.string().default("tool_01KEYB6FFF6HK6XBY6QKJ74QF5"),
1822
+ id: z.string().default("tool_01KEZXQGJYA8K1A8DR162AR6XS"),
1823
1823
  path: z.string(),
1824
1824
  key: z.string(),
1825
1825
  displayName: z.string().optional(),
@@ -1995,7 +1995,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
1995
1995
  z.ZodTypeDef,
1996
1996
  unknown
1997
1997
  > = z.object({
1998
- _id: z.string().default("tool_01KEYB6FFCKTM67GTGNTMZ70ZQ"),
1998
+ _id: z.string().default("tool_01KEZXQGJXZP473WMRV455A8AR"),
1999
1999
  path: z.string(),
2000
2000
  key: z.string(),
2001
2001
  display_name: z.string().optional(),
@@ -2046,7 +2046,7 @@ export const DataFunctionTool$outboundSchema: z.ZodType<
2046
2046
  z.ZodTypeDef,
2047
2047
  DataFunctionTool
2048
2048
  > = z.object({
2049
- id: z.string().default("tool_01KEYB6FFCKTM67GTGNTMZ70ZQ"),
2049
+ id: z.string().default("tool_01KEZXQGJXZP473WMRV455A8AR"),
2050
2050
  path: z.string(),
2051
2051
  key: z.string(),
2052
2052
  displayName: z.string().optional(),