@orq-ai/node 4.2.0 → 4.2.4

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 (318) hide show
  1. package/FUNCTIONS.md +17 -7
  2. package/README.md +125 -70
  3. package/examples/contactsCreate.example.ts +42 -0
  4. package/examples/package-lock.json +1 -1
  5. package/funcs/contactsCreate.d.ts +3 -5
  6. package/funcs/contactsCreate.d.ts.map +1 -1
  7. package/funcs/contactsCreate.js +5 -9
  8. package/funcs/contactsCreate.js.map +1 -1
  9. package/jsr.json +1 -1
  10. package/lib/config.d.ts +2 -2
  11. package/lib/config.js +2 -2
  12. package/models/components/conversationresponse.js +1 -1
  13. package/models/components/conversationwithmessagesresponse.js +1 -1
  14. package/models/components/index.d.ts +1 -0
  15. package/models/components/index.d.ts.map +1 -1
  16. package/models/components/index.js +1 -0
  17. package/models/components/index.js.map +1 -1
  18. package/models/components/invokedeploymentrequest.d.ts +6 -0
  19. package/models/components/invokedeploymentrequest.d.ts.map +1 -1
  20. package/models/components/invokedeploymentrequest.js +2 -0
  21. package/models/components/invokedeploymentrequest.js.map +1 -1
  22. package/models/components/partdoneevent.js +1 -1
  23. package/models/components/publiccontact.d.ts +3 -1
  24. package/models/components/publiccontact.d.ts.map +1 -1
  25. package/models/components/publiccontact.js.map +1 -1
  26. package/models/components/publicidentity.d.ts +47 -0
  27. package/models/components/publicidentity.d.ts.map +1 -0
  28. package/models/{operations/deletecontact.js → components/publicidentity.js} +17 -6
  29. package/models/components/publicidentity.js.map +1 -0
  30. package/models/components/reasoningpart.js +1 -1
  31. package/models/errors/index.d.ts +0 -3
  32. package/models/errors/index.d.ts.map +1 -1
  33. package/models/errors/index.js +0 -3
  34. package/models/errors/index.js.map +1 -1
  35. package/models/operations/createchatcompletion.d.ts +9 -51
  36. package/models/operations/createchatcompletion.d.ts.map +1 -1
  37. package/models/operations/createchatcompletion.js +5 -24
  38. package/models/operations/createchatcompletion.js.map +1 -1
  39. package/models/operations/createcompletion.d.ts +9 -51
  40. package/models/operations/createcompletion.d.ts.map +1 -1
  41. package/models/operations/createcompletion.js +4 -22
  42. package/models/operations/createcompletion.js.map +1 -1
  43. package/models/operations/createcontact.d.ts +2 -6
  44. package/models/operations/createcontact.d.ts.map +1 -1
  45. package/models/operations/createcontact.js +1 -3
  46. package/models/operations/createcontact.js.map +1 -1
  47. package/models/operations/createconversation.js +1 -1
  48. package/models/operations/createconversationresponse.js +2 -2
  49. package/models/operations/createdataset.js +1 -1
  50. package/models/operations/createdatasetitem.js +4 -4
  51. package/models/operations/createdatasource.js +1 -1
  52. package/models/operations/createembedding.d.ts +9 -51
  53. package/models/operations/createembedding.d.ts.map +1 -1
  54. package/models/operations/createembedding.js +3 -21
  55. package/models/operations/createembedding.js.map +1 -1
  56. package/models/operations/createeval.js +14 -14
  57. package/models/operations/createidentity.js +1 -1
  58. package/models/operations/createimage.d.ts +9 -51
  59. package/models/operations/createimage.d.ts.map +1 -1
  60. package/models/operations/createimage.js +3 -21
  61. package/models/operations/createimage.js.map +1 -1
  62. package/models/operations/createimageedit.d.ts +9 -51
  63. package/models/operations/createimageedit.d.ts.map +1 -1
  64. package/models/operations/createimageedit.js +3 -21
  65. package/models/operations/createimageedit.js.map +1 -1
  66. package/models/operations/createimagevariation.d.ts +9 -51
  67. package/models/operations/createimagevariation.d.ts.map +1 -1
  68. package/models/operations/createimagevariation.js +3 -21
  69. package/models/operations/createimagevariation.js.map +1 -1
  70. package/models/operations/creatererank.d.ts +9 -51
  71. package/models/operations/creatererank.d.ts.map +1 -1
  72. package/models/operations/creatererank.js +3 -21
  73. package/models/operations/creatererank.js.map +1 -1
  74. package/models/operations/createspeech.d.ts +9 -51
  75. package/models/operations/createspeech.d.ts.map +1 -1
  76. package/models/operations/createspeech.js +3 -21
  77. package/models/operations/createspeech.js.map +1 -1
  78. package/models/operations/createtool.js +6 -6
  79. package/models/operations/createtranscription.d.ts +9 -51
  80. package/models/operations/createtranscription.d.ts.map +1 -1
  81. package/models/operations/createtranscription.js +3 -21
  82. package/models/operations/createtranscription.js.map +1 -1
  83. package/models/operations/createtranslation.d.ts +9 -51
  84. package/models/operations/createtranslation.d.ts.map +1 -1
  85. package/models/operations/createtranslation.js +3 -21
  86. package/models/operations/createtranslation.js.map +1 -1
  87. package/models/operations/deploymentgetconfig.d.ts +5 -0
  88. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  89. package/models/operations/deploymentgetconfig.js +1 -0
  90. package/models/operations/deploymentgetconfig.js.map +1 -1
  91. package/models/operations/deploymentstream.d.ts +5 -0
  92. package/models/operations/deploymentstream.d.ts.map +1 -1
  93. package/models/operations/deploymentstream.js +1 -0
  94. package/models/operations/deploymentstream.js.map +1 -1
  95. package/models/operations/fileget.js +1 -1
  96. package/models/operations/filelist.js +1 -1
  97. package/models/operations/fileupload.js +1 -1
  98. package/models/operations/generateconversationname.js +1 -1
  99. package/models/operations/getalltools.js +6 -6
  100. package/models/operations/getevals.d.ts +7 -7
  101. package/models/operations/getevals.d.ts.map +1 -1
  102. package/models/operations/getevals.js +25 -23
  103. package/models/operations/getevals.js.map +1 -1
  104. package/models/operations/index.d.ts +0 -4
  105. package/models/operations/index.d.ts.map +1 -1
  106. package/models/operations/index.js +0 -4
  107. package/models/operations/index.js.map +1 -1
  108. package/models/operations/listdatasetdatapoints.js +4 -4
  109. package/models/operations/listdatasets.js +1 -1
  110. package/models/operations/listdatasources.js +1 -1
  111. package/models/operations/listidentities.js +1 -1
  112. package/models/operations/retrievedatapoint.js +4 -4
  113. package/models/operations/retrievedataset.js +1 -1
  114. package/models/operations/retrievedatasource.js +1 -1
  115. package/models/operations/retrieveidentity.js +1 -1
  116. package/models/operations/retrievetool.js +6 -6
  117. package/models/operations/runagent.js +1 -1
  118. package/models/operations/streamrunagent.js +1 -1
  119. package/models/operations/updateconversation.js +1 -1
  120. package/models/operations/updatedatapoint.js +4 -4
  121. package/models/operations/updatedataset.js +1 -1
  122. package/models/operations/updatedatasource.js +1 -1
  123. package/models/operations/updateeval.js +14 -14
  124. package/models/operations/updateidentity.js +1 -1
  125. package/models/operations/updatetool.js +7 -7
  126. package/package.json +1 -1
  127. package/packages/orq-rc/examples/contactsCreate.example.ts +42 -0
  128. package/packages/orq-rc/examples/package-lock.json +1 -1
  129. package/packages/orq-rc/jsr.json +1 -1
  130. package/packages/orq-rc/package-lock.json +2 -2
  131. package/packages/orq-rc/package.json +1 -1
  132. package/packages/orq-rc/src/funcs/contactsCreate.ts +7 -14
  133. package/packages/orq-rc/src/lib/config.ts +2 -2
  134. package/packages/orq-rc/src/models/components/conversationresponse.ts +1 -1
  135. package/packages/orq-rc/src/models/components/conversationwithmessagesresponse.ts +1 -1
  136. package/packages/orq-rc/src/models/components/index.ts +1 -0
  137. package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +11 -0
  138. package/packages/orq-rc/src/models/components/partdoneevent.ts +1 -1
  139. package/packages/orq-rc/src/models/components/publiccontact.ts +3 -1
  140. package/packages/orq-rc/src/models/components/publicidentity.ts +69 -0
  141. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  142. package/packages/orq-rc/src/models/errors/index.ts +0 -3
  143. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +11 -78
  144. package/packages/orq-rc/src/models/operations/createcompletion.ts +11 -75
  145. package/packages/orq-rc/src/models/operations/createcontact.ts +3 -9
  146. package/packages/orq-rc/src/models/operations/createconversation.ts +1 -1
  147. package/packages/orq-rc/src/models/operations/createconversationresponse.ts +2 -2
  148. package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
  149. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
  150. package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
  151. package/packages/orq-rc/src/models/operations/createembedding.ts +11 -75
  152. package/packages/orq-rc/src/models/operations/createeval.ts +14 -14
  153. package/packages/orq-rc/src/models/operations/createidentity.ts +1 -1
  154. package/packages/orq-rc/src/models/operations/createimage.ts +11 -75
  155. package/packages/orq-rc/src/models/operations/createimageedit.ts +11 -75
  156. package/packages/orq-rc/src/models/operations/createimagevariation.ts +11 -77
  157. package/packages/orq-rc/src/models/operations/creatererank.ts +11 -75
  158. package/packages/orq-rc/src/models/operations/createspeech.ts +11 -75
  159. package/packages/orq-rc/src/models/operations/createtool.ts +6 -6
  160. package/packages/orq-rc/src/models/operations/createtranscription.ts +11 -75
  161. package/packages/orq-rc/src/models/operations/createtranslation.ts +11 -75
  162. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +6 -0
  163. package/packages/orq-rc/src/models/operations/deploymentstream.ts +6 -0
  164. package/packages/orq-rc/src/models/operations/fileget.ts +1 -1
  165. package/packages/orq-rc/src/models/operations/filelist.ts +1 -1
  166. package/packages/orq-rc/src/models/operations/fileupload.ts +1 -1
  167. package/packages/orq-rc/src/models/operations/generateconversationname.ts +1 -1
  168. package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
  169. package/packages/orq-rc/src/models/operations/getevals.ts +35 -39
  170. package/packages/orq-rc/src/models/operations/index.ts +0 -4
  171. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
  172. package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
  173. package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
  174. package/packages/orq-rc/src/models/operations/listidentities.ts +1 -1
  175. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
  176. package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
  177. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
  178. package/packages/orq-rc/src/models/operations/retrieveidentity.ts +1 -1
  179. package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
  180. package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
  181. package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
  182. package/packages/orq-rc/src/models/operations/updateconversation.ts +1 -1
  183. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
  184. package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
  185. package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
  186. package/packages/orq-rc/src/models/operations/updateeval.ts +14 -14
  187. package/packages/orq-rc/src/models/operations/updateidentity.ts +1 -1
  188. package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
  189. package/packages/orq-rc/src/sdk/contacts.ts +3 -85
  190. package/sdk/contacts.d.ts +3 -41
  191. package/sdk/contacts.d.ts.map +1 -1
  192. package/sdk/contacts.js +2 -52
  193. package/sdk/contacts.js.map +1 -1
  194. package/src/funcs/contactsCreate.ts +7 -14
  195. package/src/lib/config.ts +2 -2
  196. package/src/models/components/conversationresponse.ts +1 -1
  197. package/src/models/components/conversationwithmessagesresponse.ts +1 -1
  198. package/src/models/components/index.ts +1 -0
  199. package/src/models/components/invokedeploymentrequest.ts +11 -0
  200. package/src/models/components/partdoneevent.ts +1 -1
  201. package/src/models/components/publiccontact.ts +3 -1
  202. package/src/models/components/publicidentity.ts +69 -0
  203. package/src/models/components/reasoningpart.ts +1 -1
  204. package/src/models/errors/index.ts +0 -3
  205. package/src/models/operations/createchatcompletion.ts +11 -78
  206. package/src/models/operations/createcompletion.ts +11 -75
  207. package/src/models/operations/createcontact.ts +3 -9
  208. package/src/models/operations/createconversation.ts +1 -1
  209. package/src/models/operations/createconversationresponse.ts +2 -2
  210. package/src/models/operations/createdataset.ts +1 -1
  211. package/src/models/operations/createdatasetitem.ts +4 -4
  212. package/src/models/operations/createdatasource.ts +1 -1
  213. package/src/models/operations/createembedding.ts +11 -75
  214. package/src/models/operations/createeval.ts +14 -14
  215. package/src/models/operations/createidentity.ts +1 -1
  216. package/src/models/operations/createimage.ts +11 -75
  217. package/src/models/operations/createimageedit.ts +11 -75
  218. package/src/models/operations/createimagevariation.ts +11 -77
  219. package/src/models/operations/creatererank.ts +11 -75
  220. package/src/models/operations/createspeech.ts +11 -75
  221. package/src/models/operations/createtool.ts +6 -6
  222. package/src/models/operations/createtranscription.ts +11 -75
  223. package/src/models/operations/createtranslation.ts +11 -75
  224. package/src/models/operations/deploymentgetconfig.ts +6 -0
  225. package/src/models/operations/deploymentstream.ts +6 -0
  226. package/src/models/operations/fileget.ts +1 -1
  227. package/src/models/operations/filelist.ts +1 -1
  228. package/src/models/operations/fileupload.ts +1 -1
  229. package/src/models/operations/generateconversationname.ts +1 -1
  230. package/src/models/operations/getalltools.ts +6 -6
  231. package/src/models/operations/getevals.ts +35 -39
  232. package/src/models/operations/index.ts +0 -4
  233. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  234. package/src/models/operations/listdatasets.ts +1 -1
  235. package/src/models/operations/listdatasources.ts +1 -1
  236. package/src/models/operations/listidentities.ts +1 -1
  237. package/src/models/operations/retrievedatapoint.ts +4 -4
  238. package/src/models/operations/retrievedataset.ts +1 -1
  239. package/src/models/operations/retrievedatasource.ts +1 -1
  240. package/src/models/operations/retrieveidentity.ts +1 -1
  241. package/src/models/operations/retrievetool.ts +6 -6
  242. package/src/models/operations/runagent.ts +1 -1
  243. package/src/models/operations/streamrunagent.ts +1 -1
  244. package/src/models/operations/updateconversation.ts +1 -1
  245. package/src/models/operations/updatedatapoint.ts +4 -4
  246. package/src/models/operations/updatedataset.ts +1 -1
  247. package/src/models/operations/updatedatasource.ts +1 -1
  248. package/src/models/operations/updateeval.ts +14 -14
  249. package/src/models/operations/updateidentity.ts +1 -1
  250. package/src/models/operations/updatetool.ts +7 -7
  251. package/src/sdk/contacts.ts +3 -85
  252. package/examples/feedbackCreate.example.ts +0 -32
  253. package/funcs/contactsDelete.d.ts +0 -20
  254. package/funcs/contactsDelete.d.ts.map +0 -1
  255. package/funcs/contactsDelete.js +0 -126
  256. package/funcs/contactsDelete.js.map +0 -1
  257. package/funcs/contactsList.d.ts +0 -19
  258. package/funcs/contactsList.d.ts.map +0 -1
  259. package/funcs/contactsList.js +0 -124
  260. package/funcs/contactsList.js.map +0 -1
  261. package/funcs/contactsRetrieve.d.ts +0 -20
  262. package/funcs/contactsRetrieve.d.ts.map +0 -1
  263. package/funcs/contactsRetrieve.js +0 -125
  264. package/funcs/contactsRetrieve.js.map +0 -1
  265. package/funcs/contactsUpdate.d.ts +0 -20
  266. package/funcs/contactsUpdate.d.ts.map +0 -1
  267. package/funcs/contactsUpdate.js +0 -126
  268. package/funcs/contactsUpdate.js.map +0 -1
  269. package/models/errors/deletecontact.d.ts +0 -30
  270. package/models/errors/deletecontact.d.ts.map +0 -1
  271. package/models/errors/deletecontact.js +0 -71
  272. package/models/errors/deletecontact.js.map +0 -1
  273. package/models/errors/retrievecontact.d.ts +0 -30
  274. package/models/errors/retrievecontact.d.ts.map +0 -1
  275. package/models/errors/retrievecontact.js +0 -71
  276. package/models/errors/retrievecontact.js.map +0 -1
  277. package/models/errors/updatecontact.d.ts +0 -26
  278. package/models/errors/updatecontact.d.ts.map +0 -1
  279. package/models/errors/updatecontact.js +0 -68
  280. package/models/errors/updatecontact.js.map +0 -1
  281. package/models/operations/deletecontact.d.ts +0 -15
  282. package/models/operations/deletecontact.d.ts.map +0 -1
  283. package/models/operations/deletecontact.js.map +0 -1
  284. package/models/operations/listcontacts.d.ts +0 -138
  285. package/models/operations/listcontacts.d.ts.map +0 -1
  286. package/models/operations/listcontacts.js +0 -136
  287. package/models/operations/listcontacts.js.map +0 -1
  288. package/models/operations/retrievecontact.d.ts +0 -63
  289. package/models/operations/retrievecontact.d.ts.map +0 -1
  290. package/models/operations/retrievecontact.js +0 -75
  291. package/models/operations/retrievecontact.js.map +0 -1
  292. package/models/operations/updatecontact.d.ts +0 -108
  293. package/models/operations/updatecontact.d.ts.map +0 -1
  294. package/models/operations/updatecontact.js +0 -97
  295. package/models/operations/updatecontact.js.map +0 -1
  296. package/packages/orq-rc/examples/feedbackCreate.example.ts +0 -32
  297. package/packages/orq-rc/src/funcs/contactsDelete.ts +0 -178
  298. package/packages/orq-rc/src/funcs/contactsList.ts +0 -172
  299. package/packages/orq-rc/src/funcs/contactsRetrieve.ts +0 -177
  300. package/packages/orq-rc/src/funcs/contactsUpdate.ts +0 -178
  301. package/packages/orq-rc/src/models/errors/deletecontact.ts +0 -62
  302. package/packages/orq-rc/src/models/errors/retrievecontact.ts +0 -62
  303. package/packages/orq-rc/src/models/errors/updatecontact.ts +0 -54
  304. package/packages/orq-rc/src/models/operations/deletecontact.ts +0 -34
  305. package/packages/orq-rc/src/models/operations/listcontacts.ts +0 -274
  306. package/packages/orq-rc/src/models/operations/retrievecontact.ts +0 -117
  307. package/packages/orq-rc/src/models/operations/updatecontact.ts +0 -188
  308. package/src/funcs/contactsDelete.ts +0 -178
  309. package/src/funcs/contactsList.ts +0 -172
  310. package/src/funcs/contactsRetrieve.ts +0 -177
  311. package/src/funcs/contactsUpdate.ts +0 -178
  312. package/src/models/errors/deletecontact.ts +0 -62
  313. package/src/models/errors/retrievecontact.ts +0 -62
  314. package/src/models/errors/updatecontact.ts +0 -54
  315. package/src/models/operations/deletecontact.ts +0 -34
  316. package/src/models/operations/listcontacts.ts +0 -274
  317. package/src/models/operations/retrievecontact.ts +0 -117
  318. package/src/models/operations/updatecontact.ts +0 -188
package/sdk/contacts.js CHANGED
@@ -5,68 +5,18 @@
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.Contacts = void 0;
7
7
  const contactsCreate_js_1 = require("../funcs/contactsCreate.js");
8
- const contactsDelete_js_1 = require("../funcs/contactsDelete.js");
9
- const contactsList_js_1 = require("../funcs/contactsList.js");
10
- const contactsRetrieve_js_1 = require("../funcs/contactsRetrieve.js");
11
- const contactsUpdate_js_1 = require("../funcs/contactsUpdate.js");
12
8
  const sdks_js_1 = require("../lib/sdks.js");
13
9
  const fp_js_1 = require("../types/fp.js");
14
10
  class Contacts extends sdks_js_1.ClientSDK {
15
11
  /**
16
- * Create a contact
12
+ * Update user information
17
13
  *
18
14
  * @remarks
19
- * Creates a new contact with a unique external_id. If a contact with the same external_id already exists, the operation will fail. Use this endpoint to add users from your system to orq.ai for tracking their usage and engagement.
20
- *
21
- * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
15
+ * Update or add user information to workspace
22
16
  */
23
17
  async create(request, options) {
24
18
  return (0, fp_js_1.unwrapAsync)((0, contactsCreate_js_1.contactsCreate)(this, request, options));
25
19
  }
26
- /**
27
- * List contacts
28
- *
29
- * @remarks
30
- * Retrieves a paginated list of contacts in your workspace. Use pagination parameters to navigate through large contact lists efficiently.
31
- *
32
- * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
33
- */
34
- async list(request, options) {
35
- return (0, fp_js_1.unwrapAsync)((0, contactsList_js_1.contactsList)(this, request, options));
36
- }
37
- /**
38
- * Retrieve a contact
39
- *
40
- * @remarks
41
- * Retrieves detailed information about a specific contact using their contact ID or external ID from your system.
42
- *
43
- * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
44
- */
45
- async retrieve(request, options) {
46
- return (0, fp_js_1.unwrapAsync)((0, contactsRetrieve_js_1.contactsRetrieve)(this, request, options));
47
- }
48
- /**
49
- * Update a contact
50
- *
51
- * @remarks
52
- * Updates specific fields of an existing contact. Only the fields provided in the request body will be updated.
53
- *
54
- * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
55
- */
56
- async update(request, options) {
57
- return (0, fp_js_1.unwrapAsync)((0, contactsUpdate_js_1.contactsUpdate)(this, request, options));
58
- }
59
- /**
60
- * Delete a contact
61
- *
62
- * @remarks
63
- * Permanently deletes a contact from your workspace and cleans up associated budget configurations. This action cannot be undone.
64
- *
65
- * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
66
- */
67
- async delete(request, options) {
68
- return (0, fp_js_1.unwrapAsync)((0, contactsDelete_js_1.contactsDelete)(this, request, options));
69
- }
70
20
  }
71
21
  exports.Contacts = Contacts;
72
22
  //# sourceMappingURL=contacts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"contacts.js","sourceRoot":"","sources":["../src/sdk/contacts.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,kEAA4D;AAC5D,kEAA4D;AAC5D,8DAAwD;AACxD,sEAAgE;AAChE,kEAA4D;AAC5D,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,QAAS,SAAQ,mBAAS;IACrC;;;;;;;OAOG;IACH,KAAK,CAAC,MAAM,CACV,OAAyD,EACzD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kCAAc,EAC/B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,IAAI,CACR,OAAoD,EACpD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8BAAY,EAC7B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,QAAQ,CACZ,OAA0C,EAC1C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sCAAgB,EACjC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,MAAM,CACV,OAAwC,EACxC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kCAAc,EAC/B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,MAAM,CACV,OAAwC,EACxC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kCAAc,EAC/B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AA/FD,4BA+FC"}
1
+ {"version":3,"file":"contacts.js","sourceRoot":"","sources":["../src/sdk/contacts.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,kEAA4D;AAC5D,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,QAAS,SAAQ,mBAAS;IACrC;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAA4C,EAC5C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kCAAc,EAC/B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAjBD,4BAiBC"}
@@ -25,16 +25,14 @@ import { APICall, APIPromise } from "../types/async.js";
25
25
  import { Result } from "../types/fp.js";
26
26
 
27
27
  /**
28
- * Create a contact
28
+ * Update user information
29
29
  *
30
30
  * @remarks
31
- * Creates a new contact with a unique external_id. If a contact with the same external_id already exists, the operation will fail. Use this endpoint to add users from your system to orq.ai for tracking their usage and engagement.
32
- *
33
- * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
31
+ * Update or add user information to workspace
34
32
  */
35
33
  export function contactsCreate(
36
34
  client: OrqCore,
37
- request?: operations.CreateContactRequestBody | undefined,
35
+ request: operations.CreateContactRequestBody,
38
36
  options?: RequestOptions,
39
37
  ): APIPromise<
40
38
  Result<
@@ -58,7 +56,7 @@ export function contactsCreate(
58
56
 
59
57
  async function $do(
60
58
  client: OrqCore,
61
- request?: operations.CreateContactRequestBody | undefined,
59
+ request: operations.CreateContactRequestBody,
62
60
  options?: RequestOptions,
63
61
  ): Promise<
64
62
  [
@@ -78,19 +76,14 @@ async function $do(
78
76
  > {
79
77
  const parsed = safeParse(
80
78
  request,
81
- (value) =>
82
- operations.CreateContactRequestBody$outboundSchema.optional().parse(
83
- value,
84
- ),
79
+ (value) => operations.CreateContactRequestBody$outboundSchema.parse(value),
85
80
  "Input validation failed",
86
81
  );
87
82
  if (!parsed.ok) {
88
83
  return [parsed, { status: "invalid" }];
89
84
  }
90
85
  const payload = parsed.value;
91
- const body = payload === undefined
92
- ? null
93
- : encodeJSON("body", payload, { explode: true });
86
+ const body = encodeJSON("body", payload, { explode: true });
94
87
 
95
88
  const path = pathToFunc("/v2/contacts")();
96
89
 
@@ -155,7 +148,7 @@ async function $do(
155
148
  | UnexpectedClientError
156
149
  | SDKValidationError
157
150
  >(
158
- M.json(201, operations.CreateContactResponseBody$inboundSchema),
151
+ M.json(200, operations.CreateContactResponseBody$inboundSchema),
159
152
  M.fail("4XX"),
160
153
  M.fail("5XX"),
161
154
  )(response, req);
package/src/lib/config.ts CHANGED
@@ -68,7 +68,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
68
68
  export const SDK_METADATA = {
69
69
  language: "typescript",
70
70
  openapiDocVersion: "2.0",
71
- sdkVersion: "4.2.0",
71
+ sdkVersion: "4.2.4",
72
72
  genVersion: "2.799.0",
73
- userAgent: "speakeasy-sdk/typescript 4.2.0 2.799.0 2.0 @orq-ai/node",
73
+ userAgent: "speakeasy-sdk/typescript 4.2.4 2.799.0 2.0 @orq-ai/node",
74
74
  } as const;
@@ -107,7 +107,7 @@ export const ConversationResponse$inboundSchema: z.ZodType<
107
107
  z.ZodTypeDef,
108
108
  unknown
109
109
  > = z.object({
110
- _id: z.string().default("conv_01kfn8zq0cfnhxkfrtajssk7se"),
110
+ _id: z.string().default("conv_01kftgwxmbd2jr9m1cq1d04k8h"),
111
111
  kind: ConversationResponseKind$inboundSchema,
112
112
  displayName: z.string(),
113
113
  createdAt: z.number(),
@@ -122,7 +122,7 @@ export const ConversationWithMessagesResponse$inboundSchema: z.ZodType<
122
122
  z.ZodTypeDef,
123
123
  unknown
124
124
  > = z.object({
125
- _id: z.string().default("conv_01kfn8zq0gvn3ysye9q8v6n097"),
125
+ _id: z.string().default("conv_01kftgwxmgay06et6tcc0wzqk2"),
126
126
  kind: ConversationWithMessagesResponseKind$inboundSchema,
127
127
  displayName: z.string(),
128
128
  createdAt: z.number(),
@@ -31,6 +31,7 @@ export * from "./partdelta.js";
31
31
  export * from "./partdeltaevent.js";
32
32
  export * from "./partdoneevent.js";
33
33
  export * from "./publiccontact.js";
34
+ export * from "./publicidentity.js";
34
35
  export * from "./reasoningpart.js";
35
36
  export * from "./reasoningpartschema.js";
36
37
  export * from "./redactedreasoningpartschema.js";
@@ -20,6 +20,11 @@ import {
20
20
  ImageContentPartSchema$Outbound,
21
21
  ImageContentPartSchema$outboundSchema,
22
22
  } from "./imagecontentpartschema.js";
23
+ import {
24
+ PublicIdentity,
25
+ PublicIdentity$Outbound,
26
+ PublicIdentity$outboundSchema,
27
+ } from "./publicidentity.js";
23
28
  import {
24
29
  ReasoningPartSchema,
25
30
  ReasoningPartSchema$Outbound,
@@ -1114,6 +1119,10 @@ export type InvokeDeploymentRequest = {
1114
1119
  | MessagesToolMessage
1115
1120
  >
1116
1121
  | undefined;
1122
+ /**
1123
+ * Information about the identity making the request. If the identity does not exist, it will be created automatically.
1124
+ */
1125
+ identity?: PublicIdentity | undefined;
1117
1126
  /**
1118
1127
  * A list of file IDs that are associated with the deployment request.
1119
1128
  */
@@ -3354,6 +3363,7 @@ export type InvokeDeploymentRequest$Outbound = {
3354
3363
  | MessagesToolMessage$Outbound
3355
3364
  >
3356
3365
  | undefined;
3366
+ identity?: PublicIdentity$Outbound | undefined;
3357
3367
  file_ids?: Array<string> | undefined;
3358
3368
  metadata?: { [k: string]: any } | undefined;
3359
3369
  extra_params?: { [k: string]: any } | undefined;
@@ -3406,6 +3416,7 @@ export const InvokeDeploymentRequest$outboundSchema: z.ZodType<
3406
3416
  z.lazy(() => MessagesToolMessage$outboundSchema),
3407
3417
  ]),
3408
3418
  ).optional(),
3419
+ identity: PublicIdentity$outboundSchema.optional(),
3409
3420
  fileIds: z.array(z.string()).optional(),
3410
3421
  metadata: z.record(z.any()).optional(),
3411
3422
  extraParams: z.record(z.any()).optional(),
@@ -76,7 +76,7 @@ export const PartReasoningPart$inboundSchema: z.ZodType<
76
76
  z.ZodTypeDef,
77
77
  unknown
78
78
  > = z.object({
79
- _id: z.string().default("reasoning_01kfn8zp8qv532bm9a9ajt3fy8"),
79
+ _id: z.string().default("reasoning_01kftgwx987jhjj63vkbw5h7h3"),
80
80
  metadata: z.record(z.any()).optional(),
81
81
  kind: PartKind$inboundSchema,
82
82
  reasoning: z.string(),
@@ -6,7 +6,9 @@ import * as z from "zod/v3";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
 
8
8
  /**
9
- * Information about the identity making the request. If the identity does not exist, it will be created automatically.
9
+ * @deprecated Use identity instead. Information about the contact making the request.
10
+ *
11
+ * @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
10
12
  */
11
13
  export type PublicContact = {
12
14
  /**
@@ -0,0 +1,69 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+
8
+ /**
9
+ * Information about the identity making the request. If the identity does not exist, it will be created automatically.
10
+ */
11
+ export type PublicIdentity = {
12
+ /**
13
+ * Unique identifier for the contact
14
+ */
15
+ id: string;
16
+ /**
17
+ * Display name of the contact
18
+ */
19
+ displayName?: string | undefined;
20
+ /**
21
+ * Email address of the contact
22
+ */
23
+ email?: string | undefined;
24
+ /**
25
+ * A hash of key/value pairs containing any other data about the contact
26
+ */
27
+ metadata?: Array<{ [k: string]: any }> | undefined;
28
+ /**
29
+ * URL to the contact's avatar or logo
30
+ */
31
+ logoUrl?: string | undefined;
32
+ /**
33
+ * A list of tags associated with the contact
34
+ */
35
+ tags?: Array<string> | undefined;
36
+ };
37
+
38
+ /** @internal */
39
+ export type PublicIdentity$Outbound = {
40
+ id: string;
41
+ display_name?: string | undefined;
42
+ email?: string | undefined;
43
+ metadata?: Array<{ [k: string]: any }> | undefined;
44
+ logo_url?: string | undefined;
45
+ tags?: Array<string> | undefined;
46
+ };
47
+
48
+ /** @internal */
49
+ export const PublicIdentity$outboundSchema: z.ZodType<
50
+ PublicIdentity$Outbound,
51
+ z.ZodTypeDef,
52
+ PublicIdentity
53
+ > = z.object({
54
+ id: z.string(),
55
+ displayName: z.string().optional(),
56
+ email: z.string().optional(),
57
+ metadata: z.array(z.record(z.any())).optional(),
58
+ logoUrl: z.string().optional(),
59
+ tags: z.array(z.string()).optional(),
60
+ }).transform((v) => {
61
+ return remap$(v, {
62
+ displayName: "display_name",
63
+ logoUrl: "logo_url",
64
+ });
65
+ });
66
+
67
+ export function publicIdentityToJSON(publicIdentity: PublicIdentity): string {
68
+ return JSON.stringify(PublicIdentity$outboundSchema.parse(publicIdentity));
69
+ }
@@ -40,7 +40,7 @@ export const ReasoningPart$inboundSchema: z.ZodType<
40
40
  z.ZodTypeDef,
41
41
  unknown
42
42
  > = z.object({
43
- _id: z.string().default("reasoning_01kfn8zp8hfbwvyjs8722yhqk4"),
43
+ _id: z.string().default("reasoning_01kftgwx9294cx8xrrzerenqft"),
44
44
  metadata: z.record(z.any()).optional(),
45
45
  kind: z.literal("reasoning"),
46
46
  reasoning: z.string(),
@@ -8,7 +8,6 @@ export * from "./createmoderation.js";
8
8
  export * from "./createtranscription.js";
9
9
  export * from "./createtranslation.js";
10
10
  export * from "./deleteagent.js";
11
- export * from "./deletecontact.js";
12
11
  export * from "./deleteconversation.js";
13
12
  export * from "./deleteeval.js";
14
13
  export * from "./deleteidentity.js";
@@ -25,14 +24,12 @@ export * from "./invokeeval.js";
25
24
  export * from "./orqerror.js";
26
25
  export * from "./responsevalidationerror.js";
27
26
  export * from "./retrieveagentrequest.js";
28
- export * from "./retrievecontact.js";
29
27
  export * from "./retrieveconversation.js";
30
28
  export * from "./retrieveidentity.js";
31
29
  export * from "./sdkvalidationerror.js";
32
30
  export * from "./streamagent.js";
33
31
  export * from "./streamrunagent.js";
34
32
  export * from "./updateagent.js";
35
- export * from "./updatecontact.js";
36
33
  export * from "./updateconversation.js";
37
34
  export * from "./updateeval.js";
38
35
  export * from "./updateidentity.js";
@@ -797,38 +797,6 @@ export type Prompt = {
797
797
  version: Version;
798
798
  };
799
799
 
800
- /**
801
- * @deprecated Use identity instead. Information about the contact making the request.
802
- *
803
- * @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
804
- */
805
- export type CreateChatCompletionContact = {
806
- /**
807
- * Unique identifier for the contact
808
- */
809
- id: string;
810
- /**
811
- * Display name of the contact
812
- */
813
- displayName?: string | undefined;
814
- /**
815
- * Email address of the contact
816
- */
817
- email?: string | undefined;
818
- /**
819
- * A hash of key/value pairs containing any other data about the contact
820
- */
821
- metadata?: Array<{ [k: string]: any }> | undefined;
822
- /**
823
- * URL to the contact's avatar or logo
824
- */
825
- logoUrl?: string | undefined;
826
- /**
827
- * A list of tags associated with the contact
828
- */
829
- tags?: Array<string> | undefined;
830
- };
831
-
832
800
  /**
833
801
  * Thread information to group related requests
834
802
  */
@@ -1394,8 +1362,13 @@ export type Orq = {
1394
1362
  /**
1395
1363
  * Information about the identity making the request. If the identity does not exist, it will be created automatically.
1396
1364
  */
1397
- identity?: components.PublicContact | undefined;
1398
- contact?: CreateChatCompletionContact | undefined;
1365
+ identity?: components.PublicIdentity | undefined;
1366
+ /**
1367
+ * @deprecated Use identity instead. Information about the contact making the request.
1368
+ *
1369
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
1370
+ */
1371
+ contact?: components.PublicContact | undefined;
1399
1372
  /**
1400
1373
  * Thread information to group related requests
1401
1374
  */
@@ -3634,45 +3607,6 @@ export function promptToJSON(prompt: Prompt): string {
3634
3607
  return JSON.stringify(Prompt$outboundSchema.parse(prompt));
3635
3608
  }
3636
3609
 
3637
- /** @internal */
3638
- export type CreateChatCompletionContact$Outbound = {
3639
- id: string;
3640
- display_name?: string | undefined;
3641
- email?: string | undefined;
3642
- metadata?: Array<{ [k: string]: any }> | undefined;
3643
- logo_url?: string | undefined;
3644
- tags?: Array<string> | undefined;
3645
- };
3646
-
3647
- /** @internal */
3648
- export const CreateChatCompletionContact$outboundSchema: z.ZodType<
3649
- CreateChatCompletionContact$Outbound,
3650
- z.ZodTypeDef,
3651
- CreateChatCompletionContact
3652
- > = z.object({
3653
- id: z.string(),
3654
- displayName: z.string().optional(),
3655
- email: z.string().optional(),
3656
- metadata: z.array(z.record(z.any())).optional(),
3657
- logoUrl: z.string().optional(),
3658
- tags: z.array(z.string()).optional(),
3659
- }).transform((v) => {
3660
- return remap$(v, {
3661
- displayName: "display_name",
3662
- logoUrl: "logo_url",
3663
- });
3664
- });
3665
-
3666
- export function createChatCompletionContactToJSON(
3667
- createChatCompletionContact: CreateChatCompletionContact,
3668
- ): string {
3669
- return JSON.stringify(
3670
- CreateChatCompletionContact$outboundSchema.parse(
3671
- createChatCompletionContact,
3672
- ),
3673
- );
3674
- }
3675
-
3676
3610
  /** @internal */
3677
3611
  export type CreateChatCompletionThread$Outbound = {
3678
3612
  id: string;
@@ -5261,8 +5195,8 @@ export type Orq$Outbound = {
5261
5195
  | Array<CreateChatCompletionRouterChatCompletionsFallbacks$Outbound>
5262
5196
  | undefined;
5263
5197
  prompt?: Prompt$Outbound | undefined;
5264
- identity?: components.PublicContact$Outbound | undefined;
5265
- contact?: CreateChatCompletionContact$Outbound | undefined;
5198
+ identity?: components.PublicIdentity$Outbound | undefined;
5199
+ contact?: components.PublicContact$Outbound | undefined;
5266
5200
  thread?: CreateChatCompletionThread$Outbound | undefined;
5267
5201
  inputs?: { [k: string]: any } | Array<Inputs2$Outbound> | undefined;
5268
5202
  cache?: CreateChatCompletionRouterChatCompletionsCache$Outbound | undefined;
@@ -5290,9 +5224,8 @@ export const Orq$outboundSchema: z.ZodType<Orq$Outbound, z.ZodTypeDef, Orq> = z
5290
5224
  ),
5291
5225
  ).optional(),
5292
5226
  prompt: z.lazy(() => Prompt$outboundSchema).optional(),
5293
- identity: components.PublicContact$outboundSchema.optional(),
5294
- contact: z.lazy(() => CreateChatCompletionContact$outboundSchema)
5295
- .optional(),
5227
+ identity: components.PublicIdentity$outboundSchema.optional(),
5228
+ contact: components.PublicContact$outboundSchema.optional(),
5296
5229
  thread: z.lazy(() => CreateChatCompletionThread$outboundSchema).optional(),
5297
5230
  inputs: z.union([
5298
5231
  z.record(z.any()),
@@ -64,38 +64,6 @@ export type CreateCompletionPrompt = {
64
64
  version: CreateCompletionVersion;
65
65
  };
66
66
 
67
- /**
68
- * @deprecated Use identity instead. Information about the contact making the request.
69
- *
70
- * @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
71
- */
72
- export type CreateCompletionContact = {
73
- /**
74
- * Unique identifier for the contact
75
- */
76
- id: string;
77
- /**
78
- * Display name of the contact
79
- */
80
- displayName?: string | undefined;
81
- /**
82
- * Email address of the contact
83
- */
84
- email?: string | undefined;
85
- /**
86
- * A hash of key/value pairs containing any other data about the contact
87
- */
88
- metadata?: Array<{ [k: string]: any }> | undefined;
89
- /**
90
- * URL to the contact's avatar or logo
91
- */
92
- logoUrl?: string | undefined;
93
- /**
94
- * A list of tags associated with the contact
95
- */
96
- tags?: Array<string> | undefined;
97
- };
98
-
99
67
  /**
100
68
  * Thread information to group related requests
101
69
  */
@@ -618,8 +586,13 @@ export type CreateCompletionOrq = {
618
586
  /**
619
587
  * Information about the identity making the request. If the identity does not exist, it will be created automatically.
620
588
  */
621
- identity?: components.PublicContact | undefined;
622
- contact?: CreateCompletionContact | undefined;
589
+ identity?: components.PublicIdentity | undefined;
590
+ /**
591
+ * @deprecated Use identity instead. Information about the contact making the request.
592
+ *
593
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
594
+ */
595
+ contact?: components.PublicContact | undefined;
623
596
  /**
624
597
  * Thread information to group related requests
625
598
  */
@@ -1027,43 +1000,6 @@ export function createCompletionPromptToJSON(
1027
1000
  );
1028
1001
  }
1029
1002
 
1030
- /** @internal */
1031
- export type CreateCompletionContact$Outbound = {
1032
- id: string;
1033
- display_name?: string | undefined;
1034
- email?: string | undefined;
1035
- metadata?: Array<{ [k: string]: any }> | undefined;
1036
- logo_url?: string | undefined;
1037
- tags?: Array<string> | undefined;
1038
- };
1039
-
1040
- /** @internal */
1041
- export const CreateCompletionContact$outboundSchema: z.ZodType<
1042
- CreateCompletionContact$Outbound,
1043
- z.ZodTypeDef,
1044
- CreateCompletionContact
1045
- > = z.object({
1046
- id: z.string(),
1047
- displayName: z.string().optional(),
1048
- email: z.string().optional(),
1049
- metadata: z.array(z.record(z.any())).optional(),
1050
- logoUrl: z.string().optional(),
1051
- tags: z.array(z.string()).optional(),
1052
- }).transform((v) => {
1053
- return remap$(v, {
1054
- displayName: "display_name",
1055
- logoUrl: "logo_url",
1056
- });
1057
- });
1058
-
1059
- export function createCompletionContactToJSON(
1060
- createCompletionContact: CreateCompletionContact,
1061
- ): string {
1062
- return JSON.stringify(
1063
- CreateCompletionContact$outboundSchema.parse(createCompletionContact),
1064
- );
1065
- }
1066
-
1067
1003
  /** @internal */
1068
1004
  export type CreateCompletionThread$Outbound = {
1069
1005
  id: string;
@@ -2602,8 +2538,8 @@ export type CreateCompletionOrq$Outbound = {
2602
2538
  retry?: CreateCompletionRetry$Outbound | undefined;
2603
2539
  fallbacks?: Array<CreateCompletionFallbacks$Outbound> | undefined;
2604
2540
  prompt?: CreateCompletionPrompt$Outbound | undefined;
2605
- identity?: components.PublicContact$Outbound | undefined;
2606
- contact?: CreateCompletionContact$Outbound | undefined;
2541
+ identity?: components.PublicIdentity$Outbound | undefined;
2542
+ contact?: components.PublicContact$Outbound | undefined;
2607
2543
  thread?: CreateCompletionThread$Outbound | undefined;
2608
2544
  inputs?:
2609
2545
  | { [k: string]: any }
@@ -2626,8 +2562,8 @@ export const CreateCompletionOrq$outboundSchema: z.ZodType<
2626
2562
  fallbacks: z.array(z.lazy(() => CreateCompletionFallbacks$outboundSchema))
2627
2563
  .optional(),
2628
2564
  prompt: z.lazy(() => CreateCompletionPrompt$outboundSchema).optional(),
2629
- identity: components.PublicContact$outboundSchema.optional(),
2630
- contact: z.lazy(() => CreateCompletionContact$outboundSchema).optional(),
2565
+ identity: components.PublicIdentity$outboundSchema.optional(),
2566
+ contact: components.PublicContact$outboundSchema.optional(),
2631
2567
  thread: z.lazy(() => CreateCompletionThread$outboundSchema).optional(),
2632
2568
  inputs: z.union([
2633
2569
  z.record(z.any()),
@@ -9,7 +9,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
11
  /**
12
- * Contact profile information
12
+ * Update user information payload
13
13
  */
14
14
  export type CreateContactRequestBody = {
15
15
  /**
@@ -39,7 +39,7 @@ export type CreateContactRequestBody = {
39
39
  };
40
40
 
41
41
  /**
42
- * Created Contact
42
+ * Successful operation
43
43
  */
44
44
  export type CreateContactResponseBody = {
45
45
  /**
@@ -50,10 +50,6 @@ export type CreateContactResponseBody = {
50
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
51
  */
52
52
  externalId: string;
53
- /**
54
- * Unique identifier for the workspace to which the contact belongs
55
- */
56
- workspaceId: string;
57
53
  /**
58
54
  * Display name or nickname of the contact user. This is typically shown in user interfaces.
59
55
  */
@@ -130,7 +126,6 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
130
126
  > = z.object({
131
127
  _id: z.string(),
132
128
  external_id: z.string(),
133
- workspace_id: z.string(),
134
129
  display_name: z.nullable(z.string()).optional(),
135
130
  email: z.nullable(z.string()).optional(),
136
131
  avatar_url: z.nullable(z.string()).optional(),
@@ -139,13 +134,12 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
139
134
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
140
135
  .optional(),
141
136
  updated: z.string().datetime({ offset: true }).default(
142
- "2026-01-23T11:14:01.166Z",
137
+ "2026-01-25T12:08:31.744Z",
143
138
  ).transform(v => new Date(v)),
144
139
  }).transform((v) => {
145
140
  return remap$(v, {
146
141
  "_id": "id",
147
142
  "external_id": "externalId",
148
- "workspace_id": "workspaceId",
149
143
  "display_name": "displayName",
150
144
  "avatar_url": "avatarUrl",
151
145
  });
@@ -201,7 +201,7 @@ export const CreateConversationResponseBody$inboundSchema: z.ZodType<
201
201
  z.ZodTypeDef,
202
202
  unknown
203
203
  > = z.object({
204
- _id: z.string().default("conv_01kfn8zq0egw0emczzc3yz40rg"),
204
+ _id: z.string().default("conv_01kftgwxmc6v6k2xjzdfqjfx80"),
205
205
  kind: CreateConversationKind$inboundSchema,
206
206
  displayName: z.string(),
207
207
  createdAt: z.number(),
@@ -280,7 +280,7 @@ export const PartReasoningPart$inboundSchema: z.ZodType<
280
280
  z.ZodTypeDef,
281
281
  unknown
282
282
  > = z.object({
283
- _id: z.string().default("reasoning_01kfn8zq1hnezrh59navpjtvrt"),
283
+ _id: z.string().default("reasoning_01kftgwxnd6qpxhvnrrznzq15n"),
284
284
  metadata: z.record(z.any()).optional(),
285
285
  kind: PartKind$inboundSchema,
286
286
  reasoning: z.string(),
@@ -366,7 +366,7 @@ export const ReasoningPart$inboundSchema: z.ZodType<
366
366
  z.ZodTypeDef,
367
367
  unknown
368
368
  > = z.object({
369
- _id: z.string().default("reasoning_01kfn8zq154200mkcsx42fdh6m"),
369
+ _id: z.string().default("reasoning_01kftgwxn142mngq66t986x49w"),
370
370
  metadata: z.record(z.any()).optional(),
371
371
  kind: DeltaKind$inboundSchema,
372
372
  reasoning: z.string(),
@@ -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-01-23T11:14:01.166Z",
141
+ "2026-01-25T12:08:31.744Z",
142
142
  ).transform(v => new Date(v)),
143
143
  }).transform((v) => {
144
144
  return remap$(v, {