@orq-ai/node 4.15.0-rc.5 → 4.15.0-rc.7

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 (228) hide show
  1. package/README.md +42 -28
  2. package/funcs/auditLogsQuery.d.ts +17 -0
  3. package/funcs/auditLogsQuery.d.ts.map +1 -0
  4. package/funcs/auditLogsQuery.js +115 -0
  5. package/funcs/auditLogsQuery.js.map +1 -0
  6. package/funcs/workspacesGet.d.ts +18 -0
  7. package/funcs/workspacesGet.d.ts.map +1 -0
  8. package/funcs/workspacesGet.js +121 -0
  9. package/funcs/workspacesGet.js.map +1 -0
  10. package/funcs/workspacesList.d.ts +18 -0
  11. package/funcs/workspacesList.d.ts.map +1 -0
  12. package/funcs/workspacesList.js +121 -0
  13. package/funcs/workspacesList.js.map +1 -0
  14. package/funcs/workspacesUpdate.d.ts +18 -0
  15. package/funcs/workspacesUpdate.d.ts.map +1 -0
  16. package/funcs/workspacesUpdate.js +124 -0
  17. package/funcs/workspacesUpdate.js.map +1 -0
  18. package/jsr.json +1 -1
  19. package/lib/config.d.ts +3 -3
  20. package/lib/config.js +3 -3
  21. package/lib/config.js.map +1 -1
  22. package/models/components/auditlog.d.ts +60 -0
  23. package/models/components/auditlog.d.ts.map +1 -0
  24. package/models/components/auditlog.js +83 -0
  25. package/models/components/auditlog.js.map +1 -0
  26. package/models/components/auditlogfilter.d.ts +33 -0
  27. package/models/components/auditlogfilter.d.ts.map +1 -0
  28. package/models/components/auditlogfilter.js +52 -0
  29. package/models/components/auditlogfilter.js.map +1 -0
  30. package/models/components/auditlogfilterquery.d.ts +29 -0
  31. package/models/components/auditlogfilterquery.d.ts.map +1 -0
  32. package/models/components/auditlogfilterquery.js +52 -0
  33. package/models/components/auditlogfilterquery.js.map +1 -0
  34. package/models/components/auditlogpagination.d.ts +28 -0
  35. package/models/components/auditlogpagination.d.ts.map +1 -0
  36. package/models/components/auditlogpagination.js +57 -0
  37. package/models/components/auditlogpagination.js.map +1 -0
  38. package/models/components/auditlogsort.d.ts +23 -0
  39. package/models/components/auditlogsort.d.ts.map +1 -0
  40. package/models/components/{policyprofileidlist.js → auditlogsort.js} +8 -7
  41. package/models/components/auditlogsort.js.map +1 -0
  42. package/models/components/budgetmatch.d.ts +1 -7
  43. package/models/components/budgetmatch.d.ts.map +1 -1
  44. package/models/components/budgetmatch.js.map +1 -1
  45. package/models/components/budgetscope.d.ts +1 -14
  46. package/models/components/budgetscope.d.ts.map +1 -1
  47. package/models/components/budgetscope.js +0 -3
  48. package/models/components/budgetscope.js.map +1 -1
  49. package/models/components/budgetscopekind.d.ts +0 -1
  50. package/models/components/budgetscopekind.d.ts.map +1 -1
  51. package/models/components/budgetscopekind.js +0 -1
  52. package/models/components/budgetscopekind.js.map +1 -1
  53. package/models/components/budgetscoperestresponse.d.ts +1 -13
  54. package/models/components/budgetscoperestresponse.d.ts.map +1 -1
  55. package/models/components/budgetscoperestresponse.js +0 -2
  56. package/models/components/budgetscoperestresponse.js.map +1 -1
  57. package/models/components/getworkspaceresponse.d.ts +11 -0
  58. package/models/components/getworkspaceresponse.d.ts.map +1 -0
  59. package/models/components/{factorybudgetscoperestresponse.js → getworkspaceresponse.js} +8 -7
  60. package/models/components/getworkspaceresponse.js.map +1 -0
  61. package/models/components/index.d.ts +16 -3
  62. package/models/components/index.d.ts.map +1 -1
  63. package/models/components/index.js +16 -3
  64. package/models/components/index.js.map +1 -1
  65. package/models/components/listworkspacesresponse.d.ts +13 -0
  66. package/models/components/listworkspacesresponse.d.ts.map +1 -0
  67. package/models/components/{factorybudgetscope.js → listworkspacesresponse.js} +11 -20
  68. package/models/components/listworkspacesresponse.js.map +1 -0
  69. package/models/components/queryauditlogsrequest.d.ts +31 -0
  70. package/models/components/queryauditlogsrequest.d.ts.map +1 -0
  71. package/models/components/queryauditlogsrequest.js +54 -0
  72. package/models/components/queryauditlogsrequest.js.map +1 -0
  73. package/models/components/queryauditlogsresponse.d.ts +25 -0
  74. package/models/components/queryauditlogsresponse.d.ts.map +1 -0
  75. package/models/components/queryauditlogsresponse.js +60 -0
  76. package/models/components/queryauditlogsresponse.js.map +1 -0
  77. package/models/components/reasoningpart.js +1 -1
  78. package/models/components/updateworkspacerequest.d.ts +29 -0
  79. package/models/components/updateworkspacerequest.d.ts.map +1 -0
  80. package/models/components/updateworkspacerequest.js +69 -0
  81. package/models/components/updateworkspacerequest.js.map +1 -0
  82. package/models/components/updateworkspaceresponse.d.ts +11 -0
  83. package/models/components/updateworkspaceresponse.d.ts.map +1 -0
  84. package/models/components/updateworkspaceresponse.js +51 -0
  85. package/models/components/updateworkspaceresponse.js.map +1 -0
  86. package/models/components/updateworkspacesettingsrequest.d.ts +0 -3
  87. package/models/components/updateworkspacesettingsrequest.d.ts.map +1 -1
  88. package/models/components/updateworkspacesettingsrequest.js +0 -3
  89. package/models/components/updateworkspacesettingsrequest.js.map +1 -1
  90. package/models/components/value.d.ts +13 -0
  91. package/models/components/value.d.ts.map +1 -0
  92. package/models/components/value.js +50 -0
  93. package/models/components/value.js.map +1 -0
  94. package/models/components/workspace.d.ts +33 -0
  95. package/models/components/workspace.d.ts.map +1 -0
  96. package/models/components/workspace.js +88 -0
  97. package/models/components/workspace.js.map +1 -0
  98. package/models/components/workspacecapabilities.d.ts +11 -0
  99. package/models/components/workspacecapabilities.d.ts.map +1 -0
  100. package/models/components/workspacecapabilities.js +51 -0
  101. package/models/components/workspacecapabilities.js.map +1 -0
  102. package/models/components/workspaceorganization.d.ts +11 -0
  103. package/models/components/workspaceorganization.d.ts.map +1 -0
  104. package/models/components/workspaceorganization.js +51 -0
  105. package/models/components/workspaceorganization.js.map +1 -0
  106. package/models/components/workspacesettings.d.ts +0 -1
  107. package/models/components/workspacesettings.d.ts.map +1 -1
  108. package/models/components/workspacesettings.js +0 -2
  109. package/models/components/workspacesettings.js.map +1 -1
  110. package/models/components/workspacesettingsfields.d.ts +39 -0
  111. package/models/components/workspacesettingsfields.d.ts.map +1 -0
  112. package/models/components/workspacesettingsfields.js +99 -0
  113. package/models/components/workspacesettingsfields.js.map +1 -0
  114. package/models/operations/createdataset.js +1 -1
  115. package/models/operations/createdatasetitem.js +5 -5
  116. package/models/operations/createtool.js +4 -4
  117. package/models/operations/getalltools.js +4 -4
  118. package/models/operations/getv2humanevalsets.js +2 -2
  119. package/models/operations/getv2humanevalsetsid.js +2 -2
  120. package/models/operations/index.d.ts +3 -0
  121. package/models/operations/index.d.ts.map +1 -1
  122. package/models/operations/index.js +3 -0
  123. package/models/operations/index.js.map +1 -1
  124. package/models/operations/listdatasetdatapoints.js +5 -5
  125. package/models/operations/listdatasets.js +1 -1
  126. package/models/operations/patchv2humanevalsetsid.js +2 -2
  127. package/models/operations/postv2feedbackevaluation.js +4 -4
  128. package/models/operations/postv2humanevalsets.js +2 -2
  129. package/models/operations/retrievedatapoint.js +5 -5
  130. package/models/operations/retrievedataset.js +1 -1
  131. package/models/operations/retrievetool.js +4 -4
  132. package/models/operations/runagent.js +1 -1
  133. package/models/operations/streamrunagent.js +1 -1
  134. package/models/operations/updatedatapoint.js +5 -5
  135. package/models/operations/updatedataset.js +1 -1
  136. package/models/operations/updatetool.js +4 -4
  137. package/models/operations/workspaceget.d.ts +12 -0
  138. package/models/operations/workspaceget.d.ts.map +1 -0
  139. package/models/operations/workspaceget.js +49 -0
  140. package/models/operations/workspaceget.js.map +1 -0
  141. package/models/operations/workspacelist.d.ts +16 -0
  142. package/models/operations/workspacelist.d.ts.map +1 -0
  143. package/models/operations/workspacelist.js +57 -0
  144. package/models/operations/workspacelist.js.map +1 -0
  145. package/models/operations/workspaceupdate.d.ts +15 -0
  146. package/models/operations/workspaceupdate.d.ts.map +1 -0
  147. package/models/operations/workspaceupdate.js +56 -0
  148. package/models/operations/workspaceupdate.js.map +1 -0
  149. package/package.json +8 -8
  150. package/sdk/auditlogs.d.ts +12 -0
  151. package/sdk/auditlogs.d.ts.map +1 -0
  152. package/sdk/auditlogs.js +22 -0
  153. package/sdk/auditlogs.js.map +1 -0
  154. package/sdk/sdk.d.ts +6 -0
  155. package/sdk/sdk.d.ts.map +1 -1
  156. package/sdk/sdk.js +8 -0
  157. package/sdk/sdk.js.map +1 -1
  158. package/sdk/workspaces.d.ts +27 -0
  159. package/sdk/workspaces.d.ts.map +1 -0
  160. package/sdk/workspaces.js +42 -0
  161. package/sdk/workspaces.js.map +1 -0
  162. package/src/funcs/auditLogsQuery.ts +162 -0
  163. package/src/funcs/workspacesGet.ts +168 -0
  164. package/src/funcs/workspacesList.ts +170 -0
  165. package/src/funcs/workspacesUpdate.ts +171 -0
  166. package/src/lib/config.ts +3 -3
  167. package/src/models/components/auditlog.ts +122 -0
  168. package/src/models/components/auditlogfilter.ts +51 -0
  169. package/src/models/components/auditlogfilterquery.ts +54 -0
  170. package/src/models/components/auditlogpagination.ts +55 -0
  171. package/src/models/components/auditlogsort.ts +39 -0
  172. package/src/models/components/budgetmatch.ts +1 -7
  173. package/src/models/components/budgetscope.ts +1 -21
  174. package/src/models/components/budgetscopekind.ts +0 -1
  175. package/src/models/components/budgetscoperestresponse.ts +1 -17
  176. package/src/models/components/getworkspaceresponse.ts +32 -0
  177. package/src/models/components/index.ts +16 -3
  178. package/src/models/components/listworkspacesresponse.ts +41 -0
  179. package/src/models/components/queryauditlogsrequest.ts +64 -0
  180. package/src/models/components/queryauditlogsresponse.ts +55 -0
  181. package/src/models/components/reasoningpart.ts +1 -1
  182. package/src/models/components/updateworkspacerequest.ts +81 -0
  183. package/src/models/components/updateworkspaceresponse.ts +32 -0
  184. package/src/models/components/updateworkspacesettingsrequest.ts +0 -9
  185. package/src/models/components/value.ts +20 -0
  186. package/src/models/components/workspace.ts +116 -0
  187. package/src/models/components/workspacecapabilities.ts +33 -0
  188. package/src/models/components/workspaceorganization.ts +33 -0
  189. package/src/models/components/workspacesettings.ts +0 -3
  190. package/src/models/components/workspacesettingsfields.ts +135 -0
  191. package/src/models/operations/createdataset.ts +1 -1
  192. package/src/models/operations/createdatasetitem.ts +5 -5
  193. package/src/models/operations/createtool.ts +4 -4
  194. package/src/models/operations/getalltools.ts +4 -4
  195. package/src/models/operations/getv2humanevalsets.ts +2 -2
  196. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  197. package/src/models/operations/index.ts +3 -0
  198. package/src/models/operations/listdatasetdatapoints.ts +5 -5
  199. package/src/models/operations/listdatasets.ts +1 -1
  200. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  201. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  202. package/src/models/operations/postv2humanevalsets.ts +2 -2
  203. package/src/models/operations/retrievedatapoint.ts +5 -5
  204. package/src/models/operations/retrievedataset.ts +1 -1
  205. package/src/models/operations/retrievetool.ts +4 -4
  206. package/src/models/operations/runagent.ts +1 -1
  207. package/src/models/operations/streamrunagent.ts +1 -1
  208. package/src/models/operations/updatedatapoint.ts +5 -5
  209. package/src/models/operations/updatedataset.ts +1 -1
  210. package/src/models/operations/updatetool.ts +4 -4
  211. package/src/models/operations/workspaceget.ts +31 -0
  212. package/src/models/operations/workspacelist.ts +43 -0
  213. package/src/models/operations/workspaceupdate.ts +40 -0
  214. package/src/sdk/auditlogs.ts +27 -0
  215. package/src/sdk/sdk.ts +12 -0
  216. package/src/sdk/workspaces.ts +64 -0
  217. package/models/components/factorybudgetscope.d.ts +0 -23
  218. package/models/components/factorybudgetscope.d.ts.map +0 -1
  219. package/models/components/factorybudgetscope.js.map +0 -1
  220. package/models/components/factorybudgetscoperestresponse.d.ts +0 -16
  221. package/models/components/factorybudgetscoperestresponse.d.ts.map +0 -1
  222. package/models/components/factorybudgetscoperestresponse.js.map +0 -1
  223. package/models/components/policyprofileidlist.d.ts +0 -12
  224. package/models/components/policyprofileidlist.d.ts.map +0 -1
  225. package/models/components/policyprofileidlist.js.map +0 -1
  226. package/src/models/components/factorybudgetscope.ts +0 -66
  227. package/src/models/components/factorybudgetscoperestresponse.ts +0 -37
  228. package/src/models/components/policyprofileidlist.ts +0 -31
package/README.md CHANGED
@@ -189,6 +189,10 @@ run();
189
189
  * [delete](docs/sdks/apikeys/README.md#delete) - Delete an API key
190
190
  * [update](docs/sdks/apikeys/README.md#update) - Update an API key
191
191
 
192
+ ### [AuditLogs](docs/sdks/auditlogs/README.md)
193
+
194
+ * [query](docs/sdks/auditlogs/README.md#query) - Query audit logs
195
+
192
196
  ### [Budgets](docs/sdks/budgets/README.md)
193
197
 
194
198
  * [list](docs/sdks/budgets/README.md#list) - List budgets
@@ -559,6 +563,12 @@ run();
559
563
  * [delete](docs/sdks/webhooks/README.md#delete) - Delete a webhook
560
564
  * [update](docs/sdks/webhooks/README.md#update) - Update a webhook
561
565
 
566
+ ### [Workspaces](docs/sdks/workspaces/README.md)
567
+
568
+ * [list](docs/sdks/workspaces/README.md#list) - List workspaces
569
+ * [get](docs/sdks/workspaces/README.md#get) - Retrieve a workspace
570
+ * [update](docs/sdks/workspaces/README.md#update) - Update a workspace
571
+
562
572
  ### [WorkspaceSecurity](docs/sdks/workspacesecurity/README.md)
563
573
 
564
574
  * [listDomains](docs/sdks/workspacesecurity/README.md#listdomains) - List verified domains
@@ -623,6 +633,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
623
633
  - [`apiKeysList`](docs/sdks/apikeys/README.md#list) - List API keys
624
634
  - [`apiKeysListCapabilities`](docs/sdks/apikeys/README.md#listcapabilities) - List capability catalog
625
635
  - [`apiKeysUpdate`](docs/sdks/apikeys/README.md#update) - Update an API key
636
+ - [`auditLogsQuery`](docs/sdks/auditlogs/README.md#query) - Query audit logs
626
637
  - [`budgetsCreate`](docs/sdks/budgets/README.md#create) - Create a new budget
627
638
  - [`budgetsDelete`](docs/sdks/budgets/README.md#delete) - Delete a budget
628
639
  - [`budgetsGet`](docs/sdks/budgets/README.md#get) - Retrieve a budget
@@ -867,6 +878,9 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
867
878
  - [`workspaceSecurityVerifyDomain`](docs/sdks/workspacesecurity/README.md#verifydomain) - Verify a domain
868
879
  - [`workspaceSettingsGet`](docs/sdks/workspacesettings/README.md#get) - Retrieve workspace settings
869
880
  - [`workspaceSettingsUpdate`](docs/sdks/workspacesettings/README.md#update) - Update workspace settings
881
+ - [`workspacesGet`](docs/sdks/workspaces/README.md#get) - Retrieve a workspace
882
+ - [`workspacesList`](docs/sdks/workspaces/README.md#list) - List workspaces
883
+ - [`workspacesUpdate`](docs/sdks/workspaces/README.md#update) - Update a workspace
870
884
  - ~~[`agentsInvoke`](docs/sdks/agents/README.md#invoke)~~ - Execute an agent task :warning: **Deprecated**
871
885
  - ~~[`agentsResponsesCreate`](docs/sdks/orqresponses/README.md#create)~~ - Create response :warning: **Deprecated**
872
886
  - ~~[`agentsResponsesGet`](docs/sdks/orqresponses/README.md#get)~~ - Get response :warning: **Deprecated**
@@ -1186,34 +1200,34 @@ run();
1186
1200
 
1187
1201
 
1188
1202
  **Inherit from [`OrqError`](./src/models/errors/orqerror.ts)**:
1189
- * [`HonoApiError`](./src/models/errors/honoapierror.ts): Applicable to 12 of 281 methods.*
1190
- * [`PostV2FeedbackResponseBody`](./src/models/errors/postv2feedbackresponsebody.ts): Bad Request. Status code `400`. Applicable to 1 of 281 methods.*
1191
- * [`CreateAgentScheduleResponseBody`](./src/models/errors/createagentscheduleresponsebody.ts): Invalid schedule type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of 281 methods.*
1192
- * [`UpdateAgentScheduleResponseBody`](./src/models/errors/updateagentscheduleresponsebody.ts): Invalid type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of 281 methods.*
1193
- * [`TriggerAgentScheduleResponseBody`](./src/models/errors/triggeragentscheduleresponsebody.ts): Schedule is inactive. Status code `400`. Applicable to 1 of 281 methods.*
1194
- * [`DeleteAgentResponseBody`](./src/models/errors/deleteagentresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or has already been deleted. Status code `404`. Applicable to 1 of 281 methods.*
1195
- * [`RetrieveAgentRequestResponseBody`](./src/models/errors/retrieveagentrequestresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or you do not have permission to access it. Status code `404`. Applicable to 1 of 281 methods.*
1196
- * [`UpdateAgentResponseBody`](./src/models/errors/updateagentresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or you do not have permission to modify it. Status code `404`. Applicable to 1 of 281 methods.*
1197
- * [`StreamRunAgentResponseBody`](./src/models/errors/streamrunagentresponsebody.ts): Model not found. Status code `404`. Applicable to 1 of 281 methods.*
1198
- * [`StreamAgentResponseBody`](./src/models/errors/streamagentresponsebody.ts): Agent not found. Status code `404`. Applicable to 1 of 281 methods.*
1199
- * [`UpdatePromptResponseBody`](./src/models/errors/updatepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of 281 methods.*
1200
- * [`DeletePromptResponseBody`](./src/models/errors/deletepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of 281 methods.*
1201
- * [`GetPromptVersionResponseBody`](./src/models/errors/getpromptversionresponsebody.ts): Not Found - The prompt or prompt version does not exist. Status code `404`. Applicable to 1 of 281 methods.*
1202
- * [`UpdateToolResponseBody`](./src/models/errors/updatetoolresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of 281 methods.*
1203
- * [`GetV2ToolsToolIdVersionsResponseBody`](./src/models/errors/getv2toolstoolidversionsresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of 281 methods.*
1204
- * [`GetV2ToolsToolIdVersionsVersionIdResponseBody`](./src/models/errors/getv2toolstoolidversionsversionidresponsebody.ts): Tool or version not found. Status code `404`. Applicable to 1 of 281 methods.*
1205
- * [`PostV2FeedbackRemoveResponseBody`](./src/models/errors/postv2feedbackremoveresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 281 methods.*
1206
- * [`PostV2FeedbackFeedbackResponseBody`](./src/models/errors/postv2feedbackfeedbackresponsebody.ts): Workspace, trace, or feedback property was not found. Status code `404`. Applicable to 1 of 281 methods.*
1207
- * [`CreateAgentScheduleSchedulesResponseBody`](./src/models/errors/createagentscheduleschedulesresponsebody.ts): Agent (or agent version, when agent_tag is set) not found. Status code `404`. Applicable to 1 of 281 methods.*
1208
- * [`DeleteAgentScheduleResponseBody`](./src/models/errors/deleteagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 281 methods.*
1209
- * [`RetrieveAgentScheduleResponseBody`](./src/models/errors/retrieveagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 281 methods.*
1210
- * [`UpdateAgentScheduleSchedulesResponseBody`](./src/models/errors/updateagentscheduleschedulesresponsebody.ts): Schedule or agent version not found. Status code `404`. Applicable to 1 of 281 methods.*
1211
- * [`TriggerAgentScheduleSchedulesResponseBody`](./src/models/errors/triggeragentscheduleschedulesresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 281 methods.*
1212
- * [`RetrieveResponseResponseBody`](./src/models/errors/retrieveresponseresponsebody.ts): Response not found. Status code `404`. Applicable to 1 of 281 methods.*
1213
- * [`CreateModerationResponseBody`](./src/models/errors/createmoderationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 281 methods.*
1214
- * [`CreateTranscriptionResponseBody`](./src/models/errors/createtranscriptionresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 281 methods.*
1215
- * [`CreateTranslationResponseBody`](./src/models/errors/createtranslationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 281 methods.*
1216
- * [`KnowledgeApiError`](./src/models/errors/knowledgeapierror.ts): An error has occured. Status code `500`. Applicable to 1 of 281 methods.*
1203
+ * [`HonoApiError`](./src/models/errors/honoapierror.ts): Applicable to 12 of 285 methods.*
1204
+ * [`PostV2FeedbackResponseBody`](./src/models/errors/postv2feedbackresponsebody.ts): Bad Request. Status code `400`. Applicable to 1 of 285 methods.*
1205
+ * [`CreateAgentScheduleResponseBody`](./src/models/errors/createagentscheduleresponsebody.ts): Invalid schedule type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of 285 methods.*
1206
+ * [`UpdateAgentScheduleResponseBody`](./src/models/errors/updateagentscheduleresponsebody.ts): Invalid type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of 285 methods.*
1207
+ * [`TriggerAgentScheduleResponseBody`](./src/models/errors/triggeragentscheduleresponsebody.ts): Schedule is inactive. Status code `400`. Applicable to 1 of 285 methods.*
1208
+ * [`DeleteAgentResponseBody`](./src/models/errors/deleteagentresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or has already been deleted. Status code `404`. Applicable to 1 of 285 methods.*
1209
+ * [`RetrieveAgentRequestResponseBody`](./src/models/errors/retrieveagentrequestresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or you do not have permission to access it. Status code `404`. Applicable to 1 of 285 methods.*
1210
+ * [`UpdateAgentResponseBody`](./src/models/errors/updateagentresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or you do not have permission to modify it. Status code `404`. Applicable to 1 of 285 methods.*
1211
+ * [`StreamRunAgentResponseBody`](./src/models/errors/streamrunagentresponsebody.ts): Model not found. Status code `404`. Applicable to 1 of 285 methods.*
1212
+ * [`StreamAgentResponseBody`](./src/models/errors/streamagentresponsebody.ts): Agent not found. Status code `404`. Applicable to 1 of 285 methods.*
1213
+ * [`UpdatePromptResponseBody`](./src/models/errors/updatepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of 285 methods.*
1214
+ * [`DeletePromptResponseBody`](./src/models/errors/deletepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of 285 methods.*
1215
+ * [`GetPromptVersionResponseBody`](./src/models/errors/getpromptversionresponsebody.ts): Not Found - The prompt or prompt version does not exist. Status code `404`. Applicable to 1 of 285 methods.*
1216
+ * [`UpdateToolResponseBody`](./src/models/errors/updatetoolresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of 285 methods.*
1217
+ * [`GetV2ToolsToolIdVersionsResponseBody`](./src/models/errors/getv2toolstoolidversionsresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of 285 methods.*
1218
+ * [`GetV2ToolsToolIdVersionsVersionIdResponseBody`](./src/models/errors/getv2toolstoolidversionsversionidresponsebody.ts): Tool or version not found. Status code `404`. Applicable to 1 of 285 methods.*
1219
+ * [`PostV2FeedbackRemoveResponseBody`](./src/models/errors/postv2feedbackremoveresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 285 methods.*
1220
+ * [`PostV2FeedbackFeedbackResponseBody`](./src/models/errors/postv2feedbackfeedbackresponsebody.ts): Workspace, trace, or feedback property was not found. Status code `404`. Applicable to 1 of 285 methods.*
1221
+ * [`CreateAgentScheduleSchedulesResponseBody`](./src/models/errors/createagentscheduleschedulesresponsebody.ts): Agent (or agent version, when agent_tag is set) not found. Status code `404`. Applicable to 1 of 285 methods.*
1222
+ * [`DeleteAgentScheduleResponseBody`](./src/models/errors/deleteagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 285 methods.*
1223
+ * [`RetrieveAgentScheduleResponseBody`](./src/models/errors/retrieveagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 285 methods.*
1224
+ * [`UpdateAgentScheduleSchedulesResponseBody`](./src/models/errors/updateagentscheduleschedulesresponsebody.ts): Schedule or agent version not found. Status code `404`. Applicable to 1 of 285 methods.*
1225
+ * [`TriggerAgentScheduleSchedulesResponseBody`](./src/models/errors/triggeragentscheduleschedulesresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 285 methods.*
1226
+ * [`RetrieveResponseResponseBody`](./src/models/errors/retrieveresponseresponsebody.ts): Response not found. Status code `404`. Applicable to 1 of 285 methods.*
1227
+ * [`CreateModerationResponseBody`](./src/models/errors/createmoderationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 285 methods.*
1228
+ * [`CreateTranscriptionResponseBody`](./src/models/errors/createtranscriptionresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 285 methods.*
1229
+ * [`CreateTranslationResponseBody`](./src/models/errors/createtranslationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 285 methods.*
1230
+ * [`KnowledgeApiError`](./src/models/errors/knowledgeapierror.ts): An error has occured. Status code `500`. Applicable to 1 of 285 methods.*
1217
1231
  * [`ResponseValidationError`](./src/models/errors/responsevalidationerror.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string.
1218
1232
 
1219
1233
  </details>
@@ -0,0 +1,17 @@
1
+ import { OrqCore } from "../core.js";
2
+ import { RequestOptions } from "../lib/sdks.js";
3
+ import * as components from "../models/components/index.js";
4
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
5
+ import { OrqError } from "../models/errors/orqerror.js";
6
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
7
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
8
+ import { APIPromise } from "../types/async.js";
9
+ import { Result } from "../types/fp.js";
10
+ /**
11
+ * Query audit logs
12
+ *
13
+ * @remarks
14
+ * Queries audit logs from your workspace with filters, sorting, and cursor pagination.
15
+ */
16
+ export declare function auditLogsQuery(client: OrqCore, request: components.QueryAuditLogsRequest, options?: RequestOptions): APIPromise<Result<components.QueryAuditLogsResponse, OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
17
+ //# sourceMappingURL=auditLogsQuery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auditLogsQuery.d.ts","sourceRoot":"","sources":["../src/funcs/auditLogsQuery.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAMrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,sBAAsB,EAC/B,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -0,0 +1,115 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.auditLogsQuery = auditLogsQuery;
40
+ const encodings_js_1 = require("../lib/encodings.js");
41
+ const http_js_1 = require("../lib/http.js");
42
+ const M = __importStar(require("../lib/matchers.js"));
43
+ const primitives_js_1 = require("../lib/primitives.js");
44
+ const schemas_js_1 = require("../lib/schemas.js");
45
+ const security_js_1 = require("../lib/security.js");
46
+ const url_js_1 = require("../lib/url.js");
47
+ const components = __importStar(require("../models/components/index.js"));
48
+ const async_js_1 = require("../types/async.js");
49
+ /**
50
+ * Query audit logs
51
+ *
52
+ * @remarks
53
+ * Queries audit logs from your workspace with filters, sorting, and cursor pagination.
54
+ */
55
+ function auditLogsQuery(client, request, options) {
56
+ return new async_js_1.APIPromise($do(client, request, options));
57
+ }
58
+ async function $do(client, request, options) {
59
+ const parsed = (0, schemas_js_1.safeParse)(request, (value) => components.QueryAuditLogsRequest$outboundSchema.parse(value), "Input validation failed");
60
+ if (!parsed.ok) {
61
+ return [parsed, { status: "invalid" }];
62
+ }
63
+ const payload = parsed.value;
64
+ const body = (0, encodings_js_1.encodeJSON)("body", payload, { explode: true });
65
+ const path = (0, url_js_1.pathToFunc)("/v2/audit-logs/query")();
66
+ const headers = new Headers((0, primitives_js_1.compactMap)({
67
+ "Content-Type": "application/json",
68
+ Accept: "application/json",
69
+ }));
70
+ const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
71
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
72
+ const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
73
+ const context = {
74
+ options: client._options,
75
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
76
+ operationID: "AuditLogQuery",
77
+ oAuth2Scopes: null,
78
+ resolvedSecurity: requestSecurity,
79
+ securitySource: client._options.apiKey,
80
+ retryConfig: options?.retries
81
+ || client._options.retryConfig
82
+ || { strategy: "none" },
83
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
84
+ };
85
+ const requestRes = client._createRequest(context, {
86
+ security: requestSecurity,
87
+ method: "POST",
88
+ baseURL: options?.serverURL,
89
+ path: path,
90
+ headers: headers,
91
+ body: body,
92
+ userAgent: client._options.userAgent,
93
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
94
+ }, options);
95
+ if (!requestRes.ok) {
96
+ return [requestRes, { status: "invalid" }];
97
+ }
98
+ const req = requestRes.value;
99
+ const doResult = await client._do(req, {
100
+ context,
101
+ isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
102
+ retryConfig: context.retryConfig,
103
+ retryCodes: context.retryCodes,
104
+ });
105
+ if (!doResult.ok) {
106
+ return [doResult, { status: "request-error", request: req }];
107
+ }
108
+ const response = doResult.value;
109
+ const [result] = await M.match(M.json(200, components.QueryAuditLogsResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req);
110
+ if (!result.ok) {
111
+ return [result, { status: "complete", request: req, response }];
112
+ }
113
+ return [result, { status: "complete", request: req, response }];
114
+ }
115
+ //# sourceMappingURL=auditLogsQuery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auditLogsQuery.js","sourceRoot":"","sources":["../src/funcs/auditLogsQuery.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BH,wCAs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AE,CAAC,UAAkB,EAAE,EAAE,CACxC,IAAA,yBAAe,EAAC,EAAE,MAAM,EAAE,UAAU,EAAc,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QACrE,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,UAAU,EAAE,OAAO,CAAC,UAAU;KAC/B,CAAC,CAAC;IACH,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QACjB,OAAO,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;IAC/D,CAAC;IACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAW5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,oCAAoC,CAAC,EAC5D,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACjB,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { OrqCore } from "../core.js";
2
+ import { RequestOptions } from "../lib/sdks.js";
3
+ import * as components from "../models/components/index.js";
4
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
5
+ import { OrqError } from "../models/errors/orqerror.js";
6
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
7
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
8
+ import * as operations from "../models/operations/index.js";
9
+ import { APIPromise } from "../types/async.js";
10
+ import { Result } from "../types/fp.js";
11
+ /**
12
+ * Retrieve a workspace
13
+ *
14
+ * @remarks
15
+ * Retrieves a workspace by its key. A user session must be a member and does not need a workspace-scoped token. A management key may only retrieve the workspace bound to the key.
16
+ */
17
+ export declare function workspacesGet(client: OrqCore, request: operations.WorkspaceGetRequest, options?: RequestOptions): APIPromise<Result<components.GetWorkspaceResponse, OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
18
+ //# sourceMappingURL=workspacesGet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspacesGet.d.ts","sourceRoot":"","sources":["../src/funcs/workspacesGet.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAMrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,oBAAoB,EAC7B,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -0,0 +1,121 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.workspacesGet = workspacesGet;
40
+ const encodings_js_1 = require("../lib/encodings.js");
41
+ const http_js_1 = require("../lib/http.js");
42
+ const M = __importStar(require("../lib/matchers.js"));
43
+ const primitives_js_1 = require("../lib/primitives.js");
44
+ const schemas_js_1 = require("../lib/schemas.js");
45
+ const security_js_1 = require("../lib/security.js");
46
+ const url_js_1 = require("../lib/url.js");
47
+ const components = __importStar(require("../models/components/index.js"));
48
+ const operations = __importStar(require("../models/operations/index.js"));
49
+ const async_js_1 = require("../types/async.js");
50
+ /**
51
+ * Retrieve a workspace
52
+ *
53
+ * @remarks
54
+ * Retrieves a workspace by its key. A user session must be a member and does not need a workspace-scoped token. A management key may only retrieve the workspace bound to the key.
55
+ */
56
+ function workspacesGet(client, request, options) {
57
+ return new async_js_1.APIPromise($do(client, request, options));
58
+ }
59
+ async function $do(client, request, options) {
60
+ const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.WorkspaceGetRequest$outboundSchema.parse(value), "Input validation failed");
61
+ if (!parsed.ok) {
62
+ return [parsed, { status: "invalid" }];
63
+ }
64
+ const payload = parsed.value;
65
+ const body = null;
66
+ const pathParams = {
67
+ key: (0, encodings_js_1.encodeSimple)("key", payload.key, {
68
+ explode: false,
69
+ charEncoding: "percent",
70
+ }),
71
+ };
72
+ const path = (0, url_js_1.pathToFunc)("/v2/workspaces/{key}")(pathParams);
73
+ const headers = new Headers((0, primitives_js_1.compactMap)({
74
+ Accept: "application/json",
75
+ }));
76
+ const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
77
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
78
+ const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
79
+ const context = {
80
+ options: client._options,
81
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
82
+ operationID: "WorkspaceGet",
83
+ oAuth2Scopes: null,
84
+ resolvedSecurity: requestSecurity,
85
+ securitySource: client._options.apiKey,
86
+ retryConfig: options?.retries
87
+ || client._options.retryConfig
88
+ || { strategy: "none" },
89
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
90
+ };
91
+ const requestRes = client._createRequest(context, {
92
+ security: requestSecurity,
93
+ method: "GET",
94
+ baseURL: options?.serverURL,
95
+ path: path,
96
+ headers: headers,
97
+ body: body,
98
+ userAgent: client._options.userAgent,
99
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
100
+ }, options);
101
+ if (!requestRes.ok) {
102
+ return [requestRes, { status: "invalid" }];
103
+ }
104
+ const req = requestRes.value;
105
+ const doResult = await client._do(req, {
106
+ context,
107
+ isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
108
+ retryConfig: context.retryConfig,
109
+ retryCodes: context.retryCodes,
110
+ });
111
+ if (!doResult.ok) {
112
+ return [doResult, { status: "request-error", request: req }];
113
+ }
114
+ const response = doResult.value;
115
+ const [result] = await M.match(M.json(200, components.GetWorkspaceResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req);
116
+ if (!result.ok) {
117
+ return [result, { status: "complete", request: req, response }];
118
+ }
119
+ return [result, { status: "complete", request: req, response }];
120
+ }
121
+ //# sourceMappingURL=workspacesGet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspacesGet.js","sourceRoot":"","sources":["../src/funcs/workspacesGet.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCH,sCAsBC;AAnDD,sDAAmD;AACnD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAW5D,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;GAKG;AACH,SAAgB,aAAa,CAC3B,MAAe,EACf,OAAuC,EACvC,OAAwB;IAcxB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAe,EACf,OAAuC,EACvC,OAAwB;IAiBxB,M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AM,EAAE,eAAe,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;IAC/D,CAAC;IACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAW5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,kCAAkC,CAAC,EAC1D,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACjB,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { OrqCore } from "../core.js";
2
+ import { RequestOptions } from "../lib/sdks.js";
3
+ import * as components from "../models/components/index.js";
4
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
5
+ import { OrqError } from "../models/errors/orqerror.js";
6
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
7
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
8
+ import * as operations from "../models/operations/index.js";
9
+ import { APIPromise } from "../types/async.js";
10
+ import { Result } from "../types/fp.js";
11
+ /**
12
+ * List workspaces
13
+ *
14
+ * @remarks
15
+ * Returns workspaces the caller can access. A user session lists every membership. A management key lists only the workspace bound to the key. Project keys are rejected.
16
+ */
17
+ export declare function workspacesList(client: OrqCore, request?: operations.WorkspaceListRequest | undefined, options?: RequestOptions): APIPromise<Result<components.ListWorkspacesResponse, OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
18
+ //# sourceMappingURL=workspacesList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspacesList.d.ts","sourceRoot":"","sources":["../src/funcs/workspacesList.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAMrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,OAAO,EACf,OAAO,CAAC,EAAE,UAAU,CAAC,oBAAoB,GAAG,SAAS,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,sBAAsB,EAC/B,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -0,0 +1,121 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.workspacesList = workspacesList;
40
+ const encodings_js_1 = require("../lib/encodings.js");
41
+ const http_js_1 = require("../lib/http.js");
42
+ const M = __importStar(require("../lib/matchers.js"));
43
+ const primitives_js_1 = require("../lib/primitives.js");
44
+ const schemas_js_1 = require("../lib/schemas.js");
45
+ const security_js_1 = require("../lib/security.js");
46
+ const url_js_1 = require("../lib/url.js");
47
+ const components = __importStar(require("../models/components/index.js"));
48
+ const operations = __importStar(require("../models/operations/index.js"));
49
+ const async_js_1 = require("../types/async.js");
50
+ /**
51
+ * List workspaces
52
+ *
53
+ * @remarks
54
+ * Returns workspaces the caller can access. A user session lists every membership. A management key lists only the workspace bound to the key. Project keys are rejected.
55
+ */
56
+ function workspacesList(client, request, options) {
57
+ return new async_js_1.APIPromise($do(client, request, options));
58
+ }
59
+ async function $do(client, request, options) {
60
+ const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.WorkspaceListRequest$outboundSchema.optional().parse(value), "Input validation failed");
61
+ if (!parsed.ok) {
62
+ return [parsed, { status: "invalid" }];
63
+ }
64
+ const payload = parsed.value;
65
+ const body = null;
66
+ const path = (0, url_js_1.pathToFunc)("/v2/workspaces")();
67
+ const query = (0, encodings_js_1.encodeFormQuery)({
68
+ "ending_before": payload?.ending_before,
69
+ "limit": payload?.limit,
70
+ "starting_after": payload?.starting_after,
71
+ });
72
+ const headers = new Headers((0, primitives_js_1.compactMap)({
73
+ Accept: "application/json",
74
+ }));
75
+ const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
76
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
77
+ const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
78
+ const context = {
79
+ options: client._options,
80
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
81
+ operationID: "WorkspaceList",
82
+ oAuth2Scopes: null,
83
+ resolvedSecurity: requestSecurity,
84
+ securitySource: client._options.apiKey,
85
+ retryConfig: options?.retries
86
+ || client._options.retryConfig
87
+ || { strategy: "none" },
88
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
89
+ };
90
+ const requestRes = client._createRequest(context, {
91
+ security: requestSecurity,
92
+ method: "GET",
93
+ baseURL: options?.serverURL,
94
+ path: path,
95
+ headers: headers,
96
+ query: query,
97
+ body: body,
98
+ userAgent: client._options.userAgent,
99
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
100
+ }, options);
101
+ if (!requestRes.ok) {
102
+ return [requestRes, { status: "invalid" }];
103
+ }
104
+ const req = requestRes.value;
105
+ const doResult = await client._do(req, {
106
+ context,
107
+ isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
108
+ retryConfig: context.retryConfig,
109
+ retryCodes: context.retryCodes,
110
+ });
111
+ if (!doResult.ok) {
112
+ return [doResult, { status: "request-error", request: req }];
113
+ }
114
+ const response = doResult.value;
115
+ const [result] = await M.match(M.json(200, components.ListWorkspacesResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req);
116
+ if (!result.ok) {
117
+ return [result, { status: "complete", request: req, response }];
118
+ }
119
+ return [result, { status: "complete", request: req, response }];
120
+ }
121
+ //# sourceMappingURL=workspacesList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspacesList.js","sourceRoot":"","sources":["../src/funcs/workspacesList.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCH,wCAsBC;AAnDD,sDAAsD;AACtD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAW5D,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;GAKG;AACH,SAAgB,cAAc,CAC5B,MAAe,EACf,OAAqD,EACrD,OAAwB;IAcxB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAe,EACf,OAAqD,EACrD,OAAwB;IAiBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CACR,UAAU,CAAC,mCAAmC,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,EACxE,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IACzC,CAAC;IACD,M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IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACjB,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { OrqCore } from "../core.js";
2
+ import { RequestOptions } from "../lib/sdks.js";
3
+ import * as components from "../models/components/index.js";
4
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
5
+ import { OrqError } from "../models/errors/orqerror.js";
6
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
7
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
8
+ import * as operations from "../models/operations/index.js";
9
+ import { APIPromise } from "../types/async.js";
10
+ import { Result } from "../types/fp.js";
11
+ /**
12
+ * Update a workspace
13
+ *
14
+ * @remarks
15
+ * Partially updates a workspace. Omit a field to leave it unchanged. Set `archived` to true to archive, false to restore. The workspace key cannot be changed.
16
+ */
17
+ export declare function workspacesUpdate(client: OrqCore, request: operations.WorkspaceUpdateRequest, options?: RequestOptions): APIPromise<Result<components.UpdateWorkspaceResponse, OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
18
+ //# sourceMappingURL=workspacesUpdate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspacesUpdate.d.ts","sourceRoot":"","sources":["../src/funcs/workspacesUpdate.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAMrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,sBAAsB,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,uBAAuB,EAChC,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}