@orq-ai/node 0.0.1

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 (468) hide show
  1. package/README.md +556 -0
  2. package/core.d.ts +10 -0
  3. package/core.d.ts.map +1 -0
  4. package/core.js +17 -0
  5. package/core.js.map +1 -0
  6. package/docs/sdks/contacts/README.md +84 -0
  7. package/docs/sdks/deployments/README.md +314 -0
  8. package/docs/sdks/feedback/README.md +92 -0
  9. package/docs/sdks/files/README.md +171 -0
  10. package/docs/sdks/metrics/README.md +86 -0
  11. package/docs/sdks/orq/README.md +10 -0
  12. package/docs/sdks/prompt/README.md +6 -0
  13. package/docs/sdks/prompts/README.md +533 -0
  14. package/docs/sdks/remoteconfig/README.md +80 -0
  15. package/docs/sdks/snippets/README.md +84 -0
  16. package/docs/sdks/templates/README.md +80 -0
  17. package/funcs/contactsCreate.d.ts +15 -0
  18. package/funcs/contactsCreate.d.ts.map +1 -0
  19. package/funcs/contactsCreate.js +105 -0
  20. package/funcs/contactsCreate.js.map +1 -0
  21. package/funcs/deploymentsAll.d.ts +16 -0
  22. package/funcs/deploymentsAll.d.ts.map +1 -0
  23. package/funcs/deploymentsAll.js +113 -0
  24. package/funcs/deploymentsAll.js.map +1 -0
  25. package/funcs/deploymentsGetConfig.d.ts +15 -0
  26. package/funcs/deploymentsGetConfig.d.ts.map +1 -0
  27. package/funcs/deploymentsGetConfig.js +105 -0
  28. package/funcs/deploymentsGetConfig.js.map +1 -0
  29. package/funcs/deploymentsInvalidate.d.ts +15 -0
  30. package/funcs/deploymentsInvalidate.d.ts.map +1 -0
  31. package/funcs/deploymentsInvalidate.js +111 -0
  32. package/funcs/deploymentsInvalidate.js.map +1 -0
  33. package/funcs/deploymentsInvoke.d.ts +22 -0
  34. package/funcs/deploymentsInvoke.d.ts.map +1 -0
  35. package/funcs/deploymentsInvoke.js +115 -0
  36. package/funcs/deploymentsInvoke.js.map +1 -0
  37. package/funcs/deploymentsMetricsCreate.d.ts +15 -0
  38. package/funcs/deploymentsMetricsCreate.d.ts.map +1 -0
  39. package/funcs/deploymentsMetricsCreate.js +111 -0
  40. package/funcs/deploymentsMetricsCreate.js.map +1 -0
  41. package/funcs/feedbackCreate.d.ts +15 -0
  42. package/funcs/feedbackCreate.d.ts.map +1 -0
  43. package/funcs/feedbackCreate.js +105 -0
  44. package/funcs/feedbackCreate.js.map +1 -0
  45. package/funcs/filesBulkUpload.d.ts +15 -0
  46. package/funcs/filesBulkUpload.d.ts.map +1 -0
  47. package/funcs/filesBulkUpload.js +106 -0
  48. package/funcs/filesBulkUpload.js.map +1 -0
  49. package/funcs/filesUpload.d.ts +15 -0
  50. package/funcs/filesUpload.d.ts.map +1 -0
  51. package/funcs/filesUpload.js +122 -0
  52. package/funcs/filesUpload.js.map +1 -0
  53. package/funcs/promptSnippetsFindOne.d.ts +12 -0
  54. package/funcs/promptSnippetsFindOne.d.ts.map +1 -0
  55. package/funcs/promptSnippetsFindOne.js +107 -0
  56. package/funcs/promptSnippetsFindOne.js.map +1 -0
  57. package/funcs/promptTemplatesGetAll.d.ts +12 -0
  58. package/funcs/promptTemplatesGetAll.d.ts.map +1 -0
  59. package/funcs/promptTemplatesGetAll.js +107 -0
  60. package/funcs/promptTemplatesGetAll.js.map +1 -0
  61. package/funcs/promptsCreate.d.ts +12 -0
  62. package/funcs/promptsCreate.d.ts.map +1 -0
  63. package/funcs/promptsCreate.js +104 -0
  64. package/funcs/promptsCreate.js.map +1 -0
  65. package/funcs/promptsCreateVersion.d.ts +12 -0
  66. package/funcs/promptsCreateVersion.d.ts.map +1 -0
  67. package/funcs/promptsCreateVersion.js +108 -0
  68. package/funcs/promptsCreateVersion.js.map +1 -0
  69. package/funcs/promptsDelete.d.ts +12 -0
  70. package/funcs/promptsDelete.d.ts.map +1 -0
  71. package/funcs/promptsDelete.js +108 -0
  72. package/funcs/promptsDelete.js.map +1 -0
  73. package/funcs/promptsDuplicate.d.ts +12 -0
  74. package/funcs/promptsDuplicate.d.ts.map +1 -0
  75. package/funcs/promptsDuplicate.js +108 -0
  76. package/funcs/promptsDuplicate.js.map +1 -0
  77. package/funcs/promptsGetAll.d.ts +12 -0
  78. package/funcs/promptsGetAll.d.ts.map +1 -0
  79. package/funcs/promptsGetAll.js +107 -0
  80. package/funcs/promptsGetAll.js.map +1 -0
  81. package/funcs/promptsGetOne.d.ts +12 -0
  82. package/funcs/promptsGetOne.d.ts.map +1 -0
  83. package/funcs/promptsGetOne.js +108 -0
  84. package/funcs/promptsGetOne.js.map +1 -0
  85. package/funcs/promptsUpdate.d.ts +13 -0
  86. package/funcs/promptsUpdate.d.ts.map +1 -0
  87. package/funcs/promptsUpdate.js +112 -0
  88. package/funcs/promptsUpdate.js.map +1 -0
  89. package/funcs/remoteconfigGetConfig.d.ts +12 -0
  90. package/funcs/remoteconfigGetConfig.d.ts.map +1 -0
  91. package/funcs/remoteconfigGetConfig.js +105 -0
  92. package/funcs/remoteconfigGetConfig.js.map +1 -0
  93. package/hooks/hooks.d.ts +24 -0
  94. package/hooks/hooks.d.ts.map +1 -0
  95. package/hooks/hooks.js +68 -0
  96. package/hooks/hooks.js.map +1 -0
  97. package/hooks/index.d.ts +3 -0
  98. package/hooks/index.d.ts.map +1 -0
  99. package/hooks/index.js +22 -0
  100. package/hooks/index.js.map +1 -0
  101. package/hooks/registration.d.ts +3 -0
  102. package/hooks/registration.d.ts.map +1 -0
  103. package/hooks/registration.js +15 -0
  104. package/hooks/registration.js.map +1 -0
  105. package/hooks/types.d.ts +76 -0
  106. package/hooks/types.d.ts.map +1 -0
  107. package/hooks/types.js +6 -0
  108. package/hooks/types.js.map +1 -0
  109. package/index.d.ts +4 -0
  110. package/index.d.ts.map +1 -0
  111. package/index.js +46 -0
  112. package/index.js.map +1 -0
  113. package/lib/base64.d.ts +10 -0
  114. package/lib/base64.d.ts.map +1 -0
  115. package/lib/base64.js +71 -0
  116. package/lib/base64.js.map +1 -0
  117. package/lib/config.d.ts +34 -0
  118. package/lib/config.d.ts.map +1 -0
  119. package/lib/config.js +36 -0
  120. package/lib/config.js.map +1 -0
  121. package/lib/dlv.d.ts +14 -0
  122. package/lib/dlv.d.ts.map +1 -0
  123. package/lib/dlv.js +49 -0
  124. package/lib/dlv.js.map +1 -0
  125. package/lib/encodings.d.ts +51 -0
  126. package/lib/encodings.d.ts.map +1 -0
  127. package/lib/encodings.js +343 -0
  128. package/lib/encodings.js.map +1 -0
  129. package/lib/env.d.ts +15 -0
  130. package/lib/env.d.ts.map +1 -0
  131. package/lib/env.js +66 -0
  132. package/lib/env.js.map +1 -0
  133. package/lib/event-streams.d.ts +17 -0
  134. package/lib/event-streams.d.ts.map +1 -0
  135. package/lib/event-streams.js +221 -0
  136. package/lib/event-streams.js.map +1 -0
  137. package/lib/files.d.ts +8 -0
  138. package/lib/files.d.ts.map +1 -0
  139. package/lib/files.js +36 -0
  140. package/lib/files.js.map +1 -0
  141. package/lib/http.d.ts +67 -0
  142. package/lib/http.d.ts.map +1 -0
  143. package/lib/http.js +218 -0
  144. package/lib/http.js.map +1 -0
  145. package/lib/is-plain-object.d.ts +2 -0
  146. package/lib/is-plain-object.d.ts.map +1 -0
  147. package/lib/is-plain-object.js +41 -0
  148. package/lib/is-plain-object.js.map +1 -0
  149. package/lib/logger.d.ts +6 -0
  150. package/lib/logger.d.ts.map +1 -0
  151. package/lib/logger.js +6 -0
  152. package/lib/logger.js.map +1 -0
  153. package/lib/matchers.d.ts +64 -0
  154. package/lib/matchers.d.ts.map +1 -0
  155. package/lib/matchers.js +208 -0
  156. package/lib/matchers.js.map +1 -0
  157. package/lib/primitives.d.ts +22 -0
  158. package/lib/primitives.d.ts.map +1 -0
  159. package/lib/primitives.js +94 -0
  160. package/lib/primitives.js.map +1 -0
  161. package/lib/retries.d.ts +38 -0
  162. package/lib/retries.d.ts.map +1 -0
  163. package/lib/retries.js +155 -0
  164. package/lib/retries.js.map +1 -0
  165. package/lib/schemas.d.ts +19 -0
  166. package/lib/schemas.d.ts.map +1 -0
  167. package/lib/schemas.js +59 -0
  168. package/lib/schemas.js.map +1 -0
  169. package/lib/sdks.d.ts +56 -0
  170. package/lib/sdks.d.ts.map +1 -0
  171. package/lib/sdks.js +277 -0
  172. package/lib/sdks.js.map +1 -0
  173. package/lib/security.d.ts +82 -0
  174. package/lib/security.d.ts.map +1 -0
  175. package/lib/security.js +140 -0
  176. package/lib/security.js.map +1 -0
  177. package/lib/url.d.ts +5 -0
  178. package/lib/url.d.ts.map +1 -0
  179. package/lib/url.js +25 -0
  180. package/lib/url.js.map +1 -0
  181. package/models/components/deployments.d.ts +890 -0
  182. package/models/components/deployments.d.ts.map +1 -0
  183. package/models/components/deployments.js +918 -0
  184. package/models/components/deployments.js.map +1 -0
  185. package/models/components/index.d.ts +3 -0
  186. package/models/components/index.d.ts.map +1 -0
  187. package/models/components/index.js +22 -0
  188. package/models/components/index.js.map +1 -0
  189. package/models/components/security.d.ts +29 -0
  190. package/models/components/security.d.ts.map +1 -0
  191. package/models/components/security.js +78 -0
  192. package/models/components/security.js.map +1 -0
  193. package/models/errors/apierror.d.ts +8 -0
  194. package/models/errors/apierror.d.ts.map +1 -0
  195. package/models/errors/apierror.js +21 -0
  196. package/models/errors/apierror.js.map +1 -0
  197. package/models/errors/honoapierror.d.ts +42 -0
  198. package/models/errors/honoapierror.d.ts.map +1 -0
  199. package/models/errors/honoapierror.js +80 -0
  200. package/models/errors/honoapierror.js.map +1 -0
  201. package/models/errors/httpclienterrors.d.ts +44 -0
  202. package/models/errors/httpclienterrors.d.ts.map +1 -0
  203. package/models/errors/httpclienterrors.js +78 -0
  204. package/models/errors/httpclienterrors.js.map +1 -0
  205. package/models/errors/index.d.ts +6 -0
  206. package/models/errors/index.d.ts.map +1 -0
  207. package/models/errors/index.js +25 -0
  208. package/models/errors/index.js.map +1 -0
  209. package/models/errors/sdkvalidationerror.d.ts +20 -0
  210. package/models/errors/sdkvalidationerror.d.ts.map +1 -0
  211. package/models/errors/sdkvalidationerror.js +115 -0
  212. package/models/errors/sdkvalidationerror.js.map +1 -0
  213. package/models/errors/updateprompt.d.ts +36 -0
  214. package/models/errors/updateprompt.d.ts.map +1 -0
  215. package/models/errors/updateprompt.js +79 -0
  216. package/models/errors/updateprompt.js.map +1 -0
  217. package/models/operations/bulkfileupload.d.ts +162 -0
  218. package/models/operations/bulkfileupload.d.ts.map +1 -0
  219. package/models/operations/bulkfileupload.js +204 -0
  220. package/models/operations/bulkfileupload.js.map +1 -0
  221. package/models/operations/createcontact.d.ts +139 -0
  222. package/models/operations/createcontact.d.ts.map +1 -0
  223. package/models/operations/createcontact.js +149 -0
  224. package/models/operations/createcontact.js.map +1 -0
  225. package/models/operations/createfeedback.d.ts +136 -0
  226. package/models/operations/createfeedback.d.ts.map +1 -0
  227. package/models/operations/createfeedback.js +172 -0
  228. package/models/operations/createfeedback.js.map +1 -0
  229. package/models/operations/createprompt.d.ts +2023 -0
  230. package/models/operations/createprompt.d.ts.map +1 -0
  231. package/models/operations/createprompt.js +1849 -0
  232. package/models/operations/createprompt.js.map +1 -0
  233. package/models/operations/createpromptversion.d.ts +1989 -0
  234. package/models/operations/createpromptversion.d.ts.map +1 -0
  235. package/models/operations/createpromptversion.js +1844 -0
  236. package/models/operations/createpromptversion.js.map +1 -0
  237. package/models/operations/deleteprompt.d.ts +32 -0
  238. package/models/operations/deleteprompt.d.ts.map +1 -0
  239. package/models/operations/deleteprompt.js +69 -0
  240. package/models/operations/deleteprompt.js.map +1 -0
  241. package/models/operations/deploymentcreatemetric.d.ts +957 -0
  242. package/models/operations/deploymentcreatemetric.d.ts.map +1 -0
  243. package/models/operations/deploymentcreatemetric.js +954 -0
  244. package/models/operations/deploymentcreatemetric.js.map +1 -0
  245. package/models/operations/deploymentgetconfig.d.ts +1852 -0
  246. package/models/operations/deploymentgetconfig.d.ts.map +1 -0
  247. package/models/operations/deploymentgetconfig.js +1751 -0
  248. package/models/operations/deploymentgetconfig.js.map +1 -0
  249. package/models/operations/deploymentinvoke.d.ts +1344 -0
  250. package/models/operations/deploymentinvoke.d.ts.map +1 -0
  251. package/models/operations/deploymentinvoke.js +1208 -0
  252. package/models/operations/deploymentinvoke.js.map +1 -0
  253. package/models/operations/deployments.d.ts +1223 -0
  254. package/models/operations/deployments.d.ts.map +1 -0
  255. package/models/operations/deployments.js +1101 -0
  256. package/models/operations/deployments.js.map +1 -0
  257. package/models/operations/duplicateprompt.d.ts +32 -0
  258. package/models/operations/duplicateprompt.d.ts.map +1 -0
  259. package/models/operations/duplicateprompt.js +69 -0
  260. package/models/operations/duplicateprompt.js.map +1 -0
  261. package/models/operations/fileupload.d.ts +168 -0
  262. package/models/operations/fileupload.d.ts.map +1 -0
  263. package/models/operations/fileupload.js +206 -0
  264. package/models/operations/fileupload.js.map +1 -0
  265. package/models/operations/findonepromptsnippet.d.ts +6242 -0
  266. package/models/operations/findonepromptsnippet.d.ts.map +1 -0
  267. package/models/operations/findonepromptsnippet.js +5879 -0
  268. package/models/operations/findonepromptsnippet.js.map +1 -0
  269. package/models/operations/getallprompts.d.ts +6577 -0
  270. package/models/operations/getallprompts.d.ts.map +1 -0
  271. package/models/operations/getallprompts.js +6149 -0
  272. package/models/operations/getallprompts.js.map +1 -0
  273. package/models/operations/getallprompttemplates.d.ts +6571 -0
  274. package/models/operations/getallprompttemplates.d.ts.map +1 -0
  275. package/models/operations/getallprompttemplates.js +6213 -0
  276. package/models/operations/getallprompttemplates.js.map +1 -0
  277. package/models/operations/getoneprompt.d.ts +32 -0
  278. package/models/operations/getoneprompt.d.ts.map +1 -0
  279. package/models/operations/getoneprompt.js +69 -0
  280. package/models/operations/getoneprompt.js.map +1 -0
  281. package/models/operations/index.d.ts +20 -0
  282. package/models/operations/index.d.ts.map +1 -0
  283. package/models/operations/index.js +39 -0
  284. package/models/operations/index.js.map +1 -0
  285. package/models/operations/invaliddeployment.d.ts +29 -0
  286. package/models/operations/invaliddeployment.d.ts.map +1 -0
  287. package/models/operations/invaliddeployment.js +78 -0
  288. package/models/operations/invaliddeployment.js.map +1 -0
  289. package/models/operations/remoteconfigsgetconfig.d.ts +121 -0
  290. package/models/operations/remoteconfigsgetconfig.d.ts.map +1 -0
  291. package/models/operations/remoteconfigsgetconfig.js +126 -0
  292. package/models/operations/remoteconfigsgetconfig.js.map +1 -0
  293. package/models/operations/updateprompt.d.ts +7209 -0
  294. package/models/operations/updateprompt.d.ts.map +1 -0
  295. package/models/operations/updateprompt.js +6664 -0
  296. package/models/operations/updateprompt.js.map +1 -0
  297. package/package.json +33 -0
  298. package/sdk/contacts.d.ts +12 -0
  299. package/sdk/contacts.d.ts.map +1 -0
  300. package/sdk/contacts.js +22 -0
  301. package/sdk/contacts.js.map +1 -0
  302. package/sdk/deployments.d.ts +41 -0
  303. package/sdk/deployments.d.ts.map +1 -0
  304. package/sdk/deployments.js +59 -0
  305. package/sdk/deployments.js.map +1 -0
  306. package/sdk/feedback.d.ts +12 -0
  307. package/sdk/feedback.d.ts.map +1 -0
  308. package/sdk/feedback.js +22 -0
  309. package/sdk/feedback.js.map +1 -0
  310. package/sdk/files.d.ts +19 -0
  311. package/sdk/files.d.ts.map +1 -0
  312. package/sdk/files.js +32 -0
  313. package/sdk/files.js.map +1 -0
  314. package/sdk/index.d.ts +2 -0
  315. package/sdk/index.d.ts.map +1 -0
  316. package/sdk/index.js +21 -0
  317. package/sdk/index.js.map +1 -0
  318. package/sdk/metrics.d.ts +12 -0
  319. package/sdk/metrics.d.ts.map +1 -0
  320. package/sdk/metrics.js +22 -0
  321. package/sdk/metrics.js.map +1 -0
  322. package/sdk/prompt.d.ts +10 -0
  323. package/sdk/prompt.d.ts.map +1 -0
  324. package/sdk/prompt.js +21 -0
  325. package/sdk/prompt.js.map +1 -0
  326. package/sdk/prompts.d.ts +33 -0
  327. package/sdk/prompts.d.ts.map +1 -0
  328. package/sdk/prompts.js +61 -0
  329. package/sdk/prompts.js.map +1 -0
  330. package/sdk/remoteconfig.d.ts +9 -0
  331. package/sdk/remoteconfig.d.ts.map +1 -0
  332. package/sdk/remoteconfig.js +19 -0
  333. package/sdk/remoteconfig.js.map +1 -0
  334. package/sdk/sdk.d.ts +25 -0
  335. package/sdk/sdk.d.ts.map +1 -0
  336. package/sdk/sdk.js +46 -0
  337. package/sdk/sdk.js.map +1 -0
  338. package/sdk/snippets.d.ts +9 -0
  339. package/sdk/snippets.d.ts.map +1 -0
  340. package/sdk/snippets.js +19 -0
  341. package/sdk/snippets.js.map +1 -0
  342. package/sdk/templates.d.ts +9 -0
  343. package/sdk/templates.d.ts.map +1 -0
  344. package/sdk/templates.js +19 -0
  345. package/sdk/templates.js.map +1 -0
  346. package/src/core.ts +13 -0
  347. package/src/funcs/contactsCreate.ts +123 -0
  348. package/src/funcs/deploymentsAll.ts +137 -0
  349. package/src/funcs/deploymentsGetConfig.ts +131 -0
  350. package/src/funcs/deploymentsInvalidate.ts +132 -0
  351. package/src/funcs/deploymentsInvoke.ts +134 -0
  352. package/src/funcs/deploymentsMetricsCreate.ts +131 -0
  353. package/src/funcs/feedbackCreate.ts +123 -0
  354. package/src/funcs/filesBulkUpload.ts +125 -0
  355. package/src/funcs/filesUpload.ts +144 -0
  356. package/src/funcs/promptSnippetsFindOne.ts +127 -0
  357. package/src/funcs/promptTemplatesGetAll.ts +129 -0
  358. package/src/funcs/promptsCreate.ts +123 -0
  359. package/src/funcs/promptsCreateVersion.ts +128 -0
  360. package/src/funcs/promptsDelete.ts +127 -0
  361. package/src/funcs/promptsDuplicate.ts +127 -0
  362. package/src/funcs/promptsGetAll.ts +127 -0
  363. package/src/funcs/promptsGetOne.ts +127 -0
  364. package/src/funcs/promptsUpdate.ts +135 -0
  365. package/src/funcs/remoteconfigGetConfig.ts +124 -0
  366. package/src/hooks/hooks.ts +112 -0
  367. package/src/hooks/index.ts +6 -0
  368. package/src/hooks/registration.ts +14 -0
  369. package/src/hooks/types.ts +102 -0
  370. package/src/index.ts +7 -0
  371. package/src/lib/base64.ts +37 -0
  372. package/src/lib/config.ts +60 -0
  373. package/src/lib/dlv.ts +53 -0
  374. package/src/lib/encodings.ts +449 -0
  375. package/src/lib/env.ts +41 -0
  376. package/src/lib/event-streams.ts +264 -0
  377. package/src/lib/files.ts +40 -0
  378. package/src/lib/http.ts +323 -0
  379. package/src/lib/is-plain-object.ts +43 -0
  380. package/src/lib/logger.ts +9 -0
  381. package/src/lib/matchers.ts +325 -0
  382. package/src/lib/primitives.ts +122 -0
  383. package/src/lib/retries.ts +219 -0
  384. package/src/lib/schemas.ts +86 -0
  385. package/src/lib/sdks.ts +392 -0
  386. package/src/lib/security.ts +254 -0
  387. package/src/lib/url.ts +33 -0
  388. package/src/models/components/deployments.ts +1607 -0
  389. package/src/models/components/index.ts +6 -0
  390. package/src/models/components/security.ts +71 -0
  391. package/src/models/errors/apierror.ts +27 -0
  392. package/src/models/errors/honoapierror.ts +82 -0
  393. package/src/models/errors/httpclienterrors.ts +62 -0
  394. package/src/models/errors/index.ts +9 -0
  395. package/src/models/errors/sdkvalidationerror.ts +97 -0
  396. package/src/models/errors/updateprompt.ts +71 -0
  397. package/src/models/operations/bulkfileupload.ts +304 -0
  398. package/src/models/operations/createcontact.ts +256 -0
  399. package/src/models/operations/createfeedback.ts +286 -0
  400. package/src/models/operations/createprompt.ts +3451 -0
  401. package/src/models/operations/createpromptversion.ts +3693 -0
  402. package/src/models/operations/deleteprompt.ts +69 -0
  403. package/src/models/operations/deploymentcreatemetric.ts +1790 -0
  404. package/src/models/operations/deploymentgetconfig.ts +3416 -0
  405. package/src/models/operations/deploymentinvoke.ts +2383 -0
  406. package/src/models/operations/deployments.ts +2084 -0
  407. package/src/models/operations/duplicateprompt.ts +69 -0
  408. package/src/models/operations/fileupload.ts +311 -0
  409. package/src/models/operations/findonepromptsnippet.ts +13617 -0
  410. package/src/models/operations/getallprompts.ts +13378 -0
  411. package/src/models/operations/getallprompttemplates.ts +13678 -0
  412. package/src/models/operations/getoneprompt.ts +69 -0
  413. package/src/models/operations/index.ts +23 -0
  414. package/src/models/operations/invaliddeployment.ts +75 -0
  415. package/src/models/operations/remoteconfigsgetconfig.ts +190 -0
  416. package/src/models/operations/updateprompt.ts +14393 -0
  417. package/src/sdk/contacts.ts +27 -0
  418. package/src/sdk/deployments.ts +93 -0
  419. package/src/sdk/feedback.ts +27 -0
  420. package/src/sdk/files.ts +45 -0
  421. package/src/sdk/index.ts +5 -0
  422. package/src/sdk/metrics.ts +27 -0
  423. package/src/sdk/prompt.ts +19 -0
  424. package/src/sdk/prompts.ts +114 -0
  425. package/src/sdk/remoteconfig.ts +24 -0
  426. package/src/sdk/sdk.ts +49 -0
  427. package/src/sdk/snippets.ts +24 -0
  428. package/src/sdk/templates.ts +24 -0
  429. package/src/types/blobs.ts +31 -0
  430. package/src/types/constdatetime.ts +15 -0
  431. package/src/types/enums.ts +16 -0
  432. package/src/types/fp.ts +50 -0
  433. package/src/types/index.ts +11 -0
  434. package/src/types/operations.ts +105 -0
  435. package/src/types/rfcdate.ts +54 -0
  436. package/src/types/streams.ts +21 -0
  437. package/types/blobs.d.ts +4 -0
  438. package/types/blobs.d.ts.map +1 -0
  439. package/types/blobs.js +62 -0
  440. package/types/blobs.js.map +1 -0
  441. package/types/constdatetime.d.ts +3 -0
  442. package/types/constdatetime.d.ts.map +1 -0
  443. package/types/constdatetime.js +46 -0
  444. package/types/constdatetime.js.map +1 -0
  445. package/types/enums.d.ts +12 -0
  446. package/types/enums.d.ts.map +1 -0
  447. package/types/enums.js +10 -0
  448. package/types/enums.js.map +1 -0
  449. package/types/fp.d.ts +31 -0
  450. package/types/fp.d.ts.map +1 -0
  451. package/types/fp.js +37 -0
  452. package/types/fp.js.map +1 -0
  453. package/types/index.d.ts +8 -0
  454. package/types/index.d.ts.map +1 -0
  455. package/types/index.js +16 -0
  456. package/types/index.js.map +1 -0
  457. package/types/operations.d.ts +27 -0
  458. package/types/operations.d.ts.map +1 -0
  459. package/types/operations.js +83 -0
  460. package/types/operations.js.map +1 -0
  461. package/types/rfcdate.d.ts +21 -0
  462. package/types/rfcdate.d.ts.map +1 -0
  463. package/types/rfcdate.js +46 -0
  464. package/types/rfcdate.js.map +1 -0
  465. package/types/streams.d.ts +2 -0
  466. package/types/streams.d.ts.map +1 -0
  467. package/types/streams.js +18 -0
  468. package/types/streams.js.map +1 -0
@@ -0,0 +1,123 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { OrqCore } from "../core.js";
6
+ import { encodeJSON } from "../lib/encodings.js";
7
+ import * as M from "../lib/matchers.js";
8
+ import { safeParse } from "../lib/schemas.js";
9
+ import { RequestOptions } from "../lib/sdks.js";
10
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
+ import { pathToFunc } from "../lib/url.js";
12
+ import { APIError } from "../models/errors/apierror.js";
13
+ import {
14
+ ConnectionError,
15
+ InvalidRequestError,
16
+ RequestAbortedError,
17
+ RequestTimeoutError,
18
+ UnexpectedClientError,
19
+ } from "../models/errors/httpclienterrors.js";
20
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
21
+ import * as operations from "../models/operations/index.js";
22
+ import { Result } from "../types/fp.js";
23
+
24
+ /**
25
+ * Update user information
26
+ *
27
+ * @remarks
28
+ * Update or add user information to workspace
29
+ */
30
+ export async function contactsCreate(
31
+ client: OrqCore,
32
+ request: operations.CreateContactRequestBody,
33
+ options?: RequestOptions,
34
+ ): Promise<
35
+ Result<
36
+ operations.CreateContactResponseBody,
37
+ | APIError
38
+ | SDKValidationError
39
+ | UnexpectedClientError
40
+ | InvalidRequestError
41
+ | RequestAbortedError
42
+ | RequestTimeoutError
43
+ | ConnectionError
44
+ >
45
+ > {
46
+ const parsed = safeParse(
47
+ request,
48
+ (value) => operations.CreateContactRequestBody$outboundSchema.parse(value),
49
+ "Input validation failed",
50
+ );
51
+ if (!parsed.ok) {
52
+ return parsed;
53
+ }
54
+ const payload = parsed.value;
55
+ const body = encodeJSON("body", payload, { explode: true });
56
+
57
+ const path = pathToFunc("/v2/contacts")();
58
+
59
+ const headers = new Headers({
60
+ "Content-Type": "application/json",
61
+ Accept: "application/json",
62
+ });
63
+
64
+ const secConfig = await extractSecurity(client._options.apiKey);
65
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
66
+ const requestSecurity = resolveGlobalSecurity(securityInput);
67
+
68
+ const context = {
69
+ operationID: "CreateContact",
70
+ oAuth2Scopes: [],
71
+
72
+ resolvedSecurity: requestSecurity,
73
+
74
+ securitySource: client._options.apiKey,
75
+ retryConfig: options?.retries
76
+ || client._options.retryConfig
77
+ || { strategy: "none" },
78
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
79
+ };
80
+
81
+ const requestRes = client._createRequest(context, {
82
+ security: requestSecurity,
83
+ method: "POST",
84
+ path: path,
85
+ headers: headers,
86
+ body: body,
87
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
88
+ }, options);
89
+ if (!requestRes.ok) {
90
+ return requestRes;
91
+ }
92
+ const req = requestRes.value;
93
+
94
+ const doResult = await client._do(req, {
95
+ context,
96
+ errorCodes: ["4XX", "5XX"],
97
+ retryConfig: context.retryConfig,
98
+ retryCodes: context.retryCodes,
99
+ });
100
+ if (!doResult.ok) {
101
+ return doResult;
102
+ }
103
+ const response = doResult.value;
104
+
105
+ const [result] = await M.match<
106
+ operations.CreateContactResponseBody,
107
+ | APIError
108
+ | SDKValidationError
109
+ | UnexpectedClientError
110
+ | InvalidRequestError
111
+ | RequestAbortedError
112
+ | RequestTimeoutError
113
+ | ConnectionError
114
+ >(
115
+ M.json(200, operations.CreateContactResponseBody$inboundSchema),
116
+ M.fail(["4XX", "5XX"]),
117
+ )(response);
118
+ if (!result.ok) {
119
+ return result;
120
+ }
121
+
122
+ return result;
123
+ }
@@ -0,0 +1,137 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { OrqCore } from "../core.js";
6
+ import { encodeFormQuery } from "../lib/encodings.js";
7
+ import * as M from "../lib/matchers.js";
8
+ import { safeParse } from "../lib/schemas.js";
9
+ import { RequestOptions } from "../lib/sdks.js";
10
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
+ import { pathToFunc } from "../lib/url.js";
12
+ import { APIError } from "../models/errors/apierror.js";
13
+ import {
14
+ ConnectionError,
15
+ InvalidRequestError,
16
+ RequestAbortedError,
17
+ RequestTimeoutError,
18
+ UnexpectedClientError,
19
+ } from "../models/errors/httpclienterrors.js";
20
+ import * as errors from "../models/errors/index.js";
21
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
22
+ import * as operations from "../models/operations/index.js";
23
+ import { Result } from "../types/fp.js";
24
+
25
+ /**
26
+ * List all deployments
27
+ *
28
+ * @remarks
29
+ * Returns a list of your deployments. The deployments are returned sorted by creation date, with the most recent deployments appearing first.
30
+ */
31
+ export async function deploymentsAll(
32
+ client: OrqCore,
33
+ request?: operations.DeploymentsRequest | undefined,
34
+ options?: RequestOptions,
35
+ ): Promise<
36
+ Result<
37
+ operations.DeploymentsResponseBody,
38
+ | errors.HonoApiError
39
+ | APIError
40
+ | SDKValidationError
41
+ | UnexpectedClientError
42
+ | InvalidRequestError
43
+ | RequestAbortedError
44
+ | RequestTimeoutError
45
+ | ConnectionError
46
+ >
47
+ > {
48
+ const parsed = safeParse(
49
+ request,
50
+ (value) =>
51
+ operations.DeploymentsRequest$outboundSchema.optional().parse(value),
52
+ "Input validation failed",
53
+ );
54
+ if (!parsed.ok) {
55
+ return parsed;
56
+ }
57
+ const payload = parsed.value;
58
+ const body = null;
59
+
60
+ const path = pathToFunc("/v2/deployments")();
61
+
62
+ const query = encodeFormQuery({
63
+ "after": payload?.after,
64
+ "limit": payload?.limit,
65
+ });
66
+
67
+ const headers = new Headers({
68
+ Accept: "application/json",
69
+ });
70
+
71
+ const secConfig = await extractSecurity(client._options.apiKey);
72
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
73
+ const requestSecurity = resolveGlobalSecurity(securityInput);
74
+
75
+ const context = {
76
+ operationID: "Deployments",
77
+ oAuth2Scopes: [],
78
+
79
+ resolvedSecurity: requestSecurity,
80
+
81
+ securitySource: client._options.apiKey,
82
+ retryConfig: options?.retries
83
+ || client._options.retryConfig
84
+ || { strategy: "none" },
85
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
86
+ };
87
+
88
+ const requestRes = client._createRequest(context, {
89
+ security: requestSecurity,
90
+ method: "GET",
91
+ path: path,
92
+ headers: headers,
93
+ query: query,
94
+ body: body,
95
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
96
+ }, options);
97
+ if (!requestRes.ok) {
98
+ return requestRes;
99
+ }
100
+ const req = requestRes.value;
101
+
102
+ const doResult = await client._do(req, {
103
+ context,
104
+ errorCodes: ["4XX", "500", "5XX"],
105
+ retryConfig: context.retryConfig,
106
+ retryCodes: context.retryCodes,
107
+ });
108
+ if (!doResult.ok) {
109
+ return doResult;
110
+ }
111
+ const response = doResult.value;
112
+
113
+ const responseFields = {
114
+ HttpMeta: { Response: response, Request: req },
115
+ };
116
+
117
+ const [result] = await M.match<
118
+ operations.DeploymentsResponseBody,
119
+ | errors.HonoApiError
120
+ | APIError
121
+ | SDKValidationError
122
+ | UnexpectedClientError
123
+ | InvalidRequestError
124
+ | RequestAbortedError
125
+ | RequestTimeoutError
126
+ | ConnectionError
127
+ >(
128
+ M.json(200, operations.DeploymentsResponseBody$inboundSchema),
129
+ M.jsonErr(500, errors.HonoApiError$inboundSchema),
130
+ M.fail(["4XX", "5XX"]),
131
+ )(response, { extraFields: responseFields });
132
+ if (!result.ok) {
133
+ return result;
134
+ }
135
+
136
+ return result;
137
+ }
@@ -0,0 +1,131 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { OrqCore } from "../core.js";
6
+ import { encodeJSON } from "../lib/encodings.js";
7
+ import * as M from "../lib/matchers.js";
8
+ import { safeParse } from "../lib/schemas.js";
9
+ import { RequestOptions } from "../lib/sdks.js";
10
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
+ import { pathToFunc } from "../lib/url.js";
12
+ import { APIError } from "../models/errors/apierror.js";
13
+ import {
14
+ ConnectionError,
15
+ InvalidRequestError,
16
+ RequestAbortedError,
17
+ RequestTimeoutError,
18
+ UnexpectedClientError,
19
+ } from "../models/errors/httpclienterrors.js";
20
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
21
+ import * as operations from "../models/operations/index.js";
22
+ import { Result } from "../types/fp.js";
23
+
24
+ /**
25
+ * Get config
26
+ *
27
+ * @remarks
28
+ * Retrieve the deployment configuration
29
+ */
30
+ export async function deploymentsGetConfig(
31
+ client: OrqCore,
32
+ request: operations.DeploymentGetConfigRequestBody,
33
+ options?: RequestOptions,
34
+ ): Promise<
35
+ Result<
36
+ operations.DeploymentGetConfigResponseBody | undefined,
37
+ | APIError
38
+ | SDKValidationError
39
+ | UnexpectedClientError
40
+ | InvalidRequestError
41
+ | RequestAbortedError
42
+ | RequestTimeoutError
43
+ | ConnectionError
44
+ >
45
+ > {
46
+ const parsed = safeParse(
47
+ request,
48
+ (value) =>
49
+ operations.DeploymentGetConfigRequestBody$outboundSchema.parse(value),
50
+ "Input validation failed",
51
+ );
52
+ if (!parsed.ok) {
53
+ return parsed;
54
+ }
55
+ const payload = parsed.value;
56
+ const body = encodeJSON("body", payload, { explode: true });
57
+
58
+ const path = pathToFunc("/v2/deployments/get_config")();
59
+
60
+ const headers = new Headers({
61
+ "Content-Type": "application/json",
62
+ Accept: "application/json",
63
+ });
64
+
65
+ const secConfig = await extractSecurity(client._options.apiKey);
66
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
67
+ const requestSecurity = resolveGlobalSecurity(securityInput);
68
+
69
+ const context = {
70
+ operationID: "DeploymentGetConfig",
71
+ oAuth2Scopes: [],
72
+
73
+ resolvedSecurity: requestSecurity,
74
+
75
+ securitySource: client._options.apiKey,
76
+ retryConfig: options?.retries
77
+ || client._options.retryConfig
78
+ || { strategy: "none" },
79
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
80
+ };
81
+
82
+ const requestRes = client._createRequest(context, {
83
+ security: requestSecurity,
84
+ method: "POST",
85
+ path: path,
86
+ headers: headers,
87
+ body: body,
88
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
89
+ }, options);
90
+ if (!requestRes.ok) {
91
+ return requestRes;
92
+ }
93
+ const req = requestRes.value;
94
+
95
+ const doResult = await client._do(req, {
96
+ context,
97
+ errorCodes: ["401", "4XX", "5XX"],
98
+ retryConfig: context.retryConfig,
99
+ retryCodes: context.retryCodes,
100
+ });
101
+ if (!doResult.ok) {
102
+ return doResult;
103
+ }
104
+ const response = doResult.value;
105
+
106
+ const [result] = await M.match<
107
+ operations.DeploymentGetConfigResponseBody | undefined,
108
+ | APIError
109
+ | SDKValidationError
110
+ | UnexpectedClientError
111
+ | InvalidRequestError
112
+ | RequestAbortedError
113
+ | RequestTimeoutError
114
+ | ConnectionError
115
+ >(
116
+ M.json(
117
+ 200,
118
+ operations.DeploymentGetConfigResponseBody$inboundSchema.optional(),
119
+ ),
120
+ M.nil(
121
+ 204,
122
+ operations.DeploymentGetConfigResponseBody$inboundSchema.optional(),
123
+ ),
124
+ M.fail([401, "4XX", "5XX"]),
125
+ )(response);
126
+ if (!result.ok) {
127
+ return result;
128
+ }
129
+
130
+ return result;
131
+ }
@@ -0,0 +1,132 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { OrqCore } from "../core.js";
7
+ import { encodeSimple } from "../lib/encodings.js";
8
+ import * as M from "../lib/matchers.js";
9
+ import { safeParse } from "../lib/schemas.js";
10
+ import { RequestOptions } from "../lib/sdks.js";
11
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
12
+ import { pathToFunc } from "../lib/url.js";
13
+ import { APIError } from "../models/errors/apierror.js";
14
+ import {
15
+ ConnectionError,
16
+ InvalidRequestError,
17
+ RequestAbortedError,
18
+ RequestTimeoutError,
19
+ UnexpectedClientError,
20
+ } from "../models/errors/httpclienterrors.js";
21
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
22
+ import * as operations from "../models/operations/index.js";
23
+ import { Result } from "../types/fp.js";
24
+
25
+ /**
26
+ * Invalidates cache
27
+ *
28
+ * @remarks
29
+ * Explicitly invalidate a cache of a deployment
30
+ */
31
+ export async function deploymentsInvalidate(
32
+ client: OrqCore,
33
+ request: operations.InvalidDeploymentRequest,
34
+ options?: RequestOptions,
35
+ ): Promise<
36
+ Result<
37
+ void,
38
+ | APIError
39
+ | SDKValidationError
40
+ | UnexpectedClientError
41
+ | InvalidRequestError
42
+ | RequestAbortedError
43
+ | RequestTimeoutError
44
+ | ConnectionError
45
+ >
46
+ > {
47
+ const parsed = safeParse(
48
+ request,
49
+ (value) => operations.InvalidDeploymentRequest$outboundSchema.parse(value),
50
+ "Input validation failed",
51
+ );
52
+ if (!parsed.ok) {
53
+ return parsed;
54
+ }
55
+ const payload = parsed.value;
56
+ const body = null;
57
+
58
+ const pathParams = {
59
+ deployment_id: encodeSimple("deployment_id", payload.deployment_id, {
60
+ explode: false,
61
+ charEncoding: "percent",
62
+ }),
63
+ };
64
+
65
+ const path = pathToFunc("/v2/deployments/invalidate/{deployment_id}")(
66
+ pathParams,
67
+ );
68
+
69
+ const headers = new Headers({
70
+ Accept: "*/*",
71
+ });
72
+
73
+ const secConfig = await extractSecurity(client._options.apiKey);
74
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
75
+ const requestSecurity = resolveGlobalSecurity(securityInput);
76
+
77
+ const context = {
78
+ operationID: "InvalidDeployment",
79
+ oAuth2Scopes: [],
80
+
81
+ resolvedSecurity: requestSecurity,
82
+
83
+ securitySource: client._options.apiKey,
84
+ retryConfig: options?.retries
85
+ || client._options.retryConfig
86
+ || { strategy: "none" },
87
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
88
+ };
89
+
90
+ const requestRes = client._createRequest(context, {
91
+ security: requestSecurity,
92
+ method: "DELETE",
93
+ path: path,
94
+ headers: headers,
95
+ body: body,
96
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
97
+ }, options);
98
+ if (!requestRes.ok) {
99
+ return requestRes;
100
+ }
101
+ const req = requestRes.value;
102
+
103
+ const doResult = await client._do(req, {
104
+ context,
105
+ errorCodes: ["4XX", "5XX"],
106
+ retryConfig: context.retryConfig,
107
+ retryCodes: context.retryCodes,
108
+ });
109
+ if (!doResult.ok) {
110
+ return doResult;
111
+ }
112
+ const response = doResult.value;
113
+
114
+ const [result] = await M.match<
115
+ void,
116
+ | APIError
117
+ | SDKValidationError
118
+ | UnexpectedClientError
119
+ | InvalidRequestError
120
+ | RequestAbortedError
121
+ | RequestTimeoutError
122
+ | ConnectionError
123
+ >(
124
+ M.nil(204, z.void()),
125
+ M.fail(["4XX", "5XX"]),
126
+ )(response);
127
+ if (!result.ok) {
128
+ return result;
129
+ }
130
+
131
+ return result;
132
+ }
@@ -0,0 +1,134 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { OrqCore } from "../core.js";
6
+ import { encodeJSON } from "../lib/encodings.js";
7
+ import * as M from "../lib/matchers.js";
8
+ import { safeParse } from "../lib/schemas.js";
9
+ import { RequestOptions } from "../lib/sdks.js";
10
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
+ import { pathToFunc } from "../lib/url.js";
12
+ import * as components from "../models/components/index.js";
13
+ import { APIError } from "../models/errors/apierror.js";
14
+ import {
15
+ ConnectionError,
16
+ InvalidRequestError,
17
+ RequestAbortedError,
18
+ RequestTimeoutError,
19
+ UnexpectedClientError,
20
+ } from "../models/errors/httpclienterrors.js";
21
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
22
+ import * as operations from "../models/operations/index.js";
23
+ import { Result } from "../types/fp.js";
24
+
25
+ export enum InvokeAcceptEnum {
26
+ applicationJson = "application/json",
27
+ textEventStream = "text/event-stream",
28
+ }
29
+
30
+ /**
31
+ * Invoke
32
+ *
33
+ * @remarks
34
+ * Invoke a deployment with a given payload
35
+ */
36
+ export async function deploymentsInvoke(
37
+ client: OrqCore,
38
+ request: components.Deployments,
39
+ options?: RequestOptions & { acceptHeaderOverride?: InvokeAcceptEnum },
40
+ ): Promise<
41
+ Result<
42
+ operations.DeploymentInvokeResponse | undefined,
43
+ | APIError
44
+ | SDKValidationError
45
+ | UnexpectedClientError
46
+ | InvalidRequestError
47
+ | RequestAbortedError
48
+ | RequestTimeoutError
49
+ | ConnectionError
50
+ >
51
+ > {
52
+ const parsed = safeParse(
53
+ request,
54
+ (value) => components.Deployments$outboundSchema.parse(value),
55
+ "Input validation failed",
56
+ );
57
+ if (!parsed.ok) {
58
+ return parsed;
59
+ }
60
+ const payload = parsed.value;
61
+ const body = encodeJSON("body", payload, { explode: true });
62
+
63
+ const path = pathToFunc("/v2/deployments/invoke")();
64
+
65
+ const headers = new Headers({
66
+ "Content-Type": "application/json",
67
+ Accept: options?.acceptHeaderOverride
68
+ || "application/json;q=1, text/event-stream;q=0",
69
+ });
70
+
71
+ const secConfig = await extractSecurity(client._options.apiKey);
72
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
73
+ const requestSecurity = resolveGlobalSecurity(securityInput);
74
+
75
+ const context = {
76
+ operationID: "DeploymentInvoke",
77
+ oAuth2Scopes: [],
78
+
79
+ resolvedSecurity: requestSecurity,
80
+
81
+ securitySource: client._options.apiKey,
82
+ retryConfig: options?.retries
83
+ || client._options.retryConfig
84
+ || { strategy: "none" },
85
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
86
+ };
87
+
88
+ const requestRes = client._createRequest(context, {
89
+ security: requestSecurity,
90
+ method: "POST",
91
+ path: path,
92
+ headers: headers,
93
+ body: body,
94
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
95
+ }, options);
96
+ if (!requestRes.ok) {
97
+ return requestRes;
98
+ }
99
+ const req = requestRes.value;
100
+
101
+ const doResult = await client._do(req, {
102
+ context,
103
+ errorCodes: ["4XX", "5XX"],
104
+ retryConfig: context.retryConfig,
105
+ retryCodes: context.retryCodes,
106
+ });
107
+ if (!doResult.ok) {
108
+ return doResult;
109
+ }
110
+ const response = doResult.value;
111
+
112
+ const [result] = await M.match<
113
+ operations.DeploymentInvokeResponse | undefined,
114
+ | APIError
115
+ | SDKValidationError
116
+ | UnexpectedClientError
117
+ | InvalidRequestError
118
+ | RequestAbortedError
119
+ | RequestTimeoutError
120
+ | ConnectionError
121
+ >(
122
+ M.json(200, operations.DeploymentInvokeResponse$inboundSchema.optional()),
123
+ M.sse(200, operations.DeploymentInvokeResponse$inboundSchema.optional(), {
124
+ sseSentinel: "[DONE]",
125
+ }),
126
+ M.nil(204, operations.DeploymentInvokeResponse$inboundSchema.optional()),
127
+ M.fail(["4XX", "5XX"]),
128
+ )(response);
129
+ if (!result.ok) {
130
+ return result;
131
+ }
132
+
133
+ return result;
134
+ }