@orq-ai/node 4.9.0-rc.22 → 4.9.0-rc.24

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 (175) hide show
  1. package/README.md +55 -42
  2. package/funcs/projectsCreate.d.ts +17 -0
  3. package/funcs/projectsCreate.d.ts.map +1 -0
  4. package/funcs/projectsCreate.js +115 -0
  5. package/funcs/projectsCreate.js.map +1 -0
  6. package/funcs/projectsDelete.d.ts +15 -0
  7. package/funcs/projectsDelete.d.ts.map +1 -0
  8. package/funcs/projectsDelete.js +118 -0
  9. package/funcs/projectsDelete.js.map +1 -0
  10. package/funcs/projectsGet.d.ts +18 -0
  11. package/funcs/projectsGet.d.ts.map +1 -0
  12. package/funcs/projectsGet.js +121 -0
  13. package/funcs/projectsGet.js.map +1 -0
  14. package/funcs/projectsList.d.ts +18 -0
  15. package/funcs/projectsList.d.ts.map +1 -0
  16. package/funcs/projectsList.js +121 -0
  17. package/funcs/projectsList.js.map +1 -0
  18. package/funcs/projectsUpdate.d.ts +18 -0
  19. package/funcs/projectsUpdate.d.ts.map +1 -0
  20. package/funcs/projectsUpdate.js +124 -0
  21. package/funcs/projectsUpdate.js.map +1 -0
  22. package/jsr.json +1 -1
  23. package/lib/config.d.ts +2 -2
  24. package/lib/config.js +2 -2
  25. package/models/components/createprojectrequest.d.ts +14 -0
  26. package/models/components/createprojectrequest.d.ts.map +1 -0
  27. package/models/components/createprojectrequest.js +50 -0
  28. package/models/components/createprojectrequest.js.map +1 -0
  29. package/models/components/createprojectresponse.d.ts +11 -0
  30. package/models/components/createprojectresponse.d.ts.map +1 -0
  31. package/models/components/createprojectresponse.js +51 -0
  32. package/models/components/createprojectresponse.js.map +1 -0
  33. package/models/components/deleteprojectresponse.d.ts +8 -0
  34. package/models/components/deleteprojectresponse.d.ts.map +1 -0
  35. package/models/components/deleteprojectresponse.js +48 -0
  36. package/models/components/deleteprojectresponse.js.map +1 -0
  37. package/models/components/getprojectresponse.d.ts +11 -0
  38. package/models/components/getprojectresponse.d.ts.map +1 -0
  39. package/models/components/getprojectresponse.js +51 -0
  40. package/models/components/getprojectresponse.js.map +1 -0
  41. package/models/components/index.d.ts +8 -0
  42. package/models/components/index.d.ts.map +1 -1
  43. package/models/components/index.js +8 -0
  44. package/models/components/index.js.map +1 -1
  45. package/models/components/listprojectsresponse.d.ts +13 -0
  46. package/models/components/listprojectsresponse.d.ts.map +1 -0
  47. package/models/components/listprojectsresponse.js +58 -0
  48. package/models/components/listprojectsresponse.js.map +1 -0
  49. package/models/components/project.d.ts +20 -0
  50. package/models/components/project.d.ts.map +1 -0
  51. package/models/components/project.js +72 -0
  52. package/models/components/project.js.map +1 -0
  53. package/models/components/reasoningpart.js +1 -1
  54. package/models/components/updateprojectrequest.d.ts +16 -0
  55. package/models/components/updateprojectrequest.d.ts.map +1 -0
  56. package/models/components/updateprojectrequest.js +56 -0
  57. package/models/components/updateprojectrequest.js.map +1 -0
  58. package/models/components/updateprojectresponse.d.ts +11 -0
  59. package/models/components/updateprojectresponse.d.ts.map +1 -0
  60. package/models/components/updateprojectresponse.js +51 -0
  61. package/models/components/updateprojectresponse.js.map +1 -0
  62. package/models/operations/createcontact.js +1 -1
  63. package/models/operations/createdataset.js +1 -1
  64. package/models/operations/createdatasetitem.js +4 -4
  65. package/models/operations/createdatasource.js +1 -1
  66. package/models/operations/createeval.js +16 -16
  67. package/models/operations/createidentity.js +1 -1
  68. package/models/operations/createtool.js +6 -6
  69. package/models/operations/getalltools.js +6 -6
  70. package/models/operations/getevals.js +16 -16
  71. package/models/operations/getv2humanevalsets.js +2 -2
  72. package/models/operations/getv2humanevalsetsid.js +2 -2
  73. package/models/operations/index.d.ts +4 -0
  74. package/models/operations/index.d.ts.map +1 -1
  75. package/models/operations/index.js +4 -0
  76. package/models/operations/index.js.map +1 -1
  77. package/models/operations/listdatasetdatapoints.js +4 -4
  78. package/models/operations/listdatasets.js +1 -1
  79. package/models/operations/listdatasources.js +1 -1
  80. package/models/operations/listidentities.js +1 -1
  81. package/models/operations/patchv2humanevalsetsid.js +2 -2
  82. package/models/operations/postv2feedbackevaluation.js +3 -3
  83. package/models/operations/postv2humanevalsets.js +2 -2
  84. package/models/operations/projectdelete.d.ts +12 -0
  85. package/models/operations/projectdelete.d.ts.map +1 -0
  86. package/models/operations/projectdelete.js +54 -0
  87. package/models/operations/projectdelete.js.map +1 -0
  88. package/models/operations/projectget.d.ts +12 -0
  89. package/models/operations/projectget.d.ts.map +1 -0
  90. package/models/operations/projectget.js +54 -0
  91. package/models/operations/projectget.js.map +1 -0
  92. package/models/operations/projectlist.d.ts +16 -0
  93. package/models/operations/projectlist.d.ts.map +1 -0
  94. package/models/operations/projectlist.js +57 -0
  95. package/models/operations/projectlist.js.map +1 -0
  96. package/models/operations/projectupdate.d.ts +15 -0
  97. package/models/operations/projectupdate.d.ts.map +1 -0
  98. package/models/operations/projectupdate.js +57 -0
  99. package/models/operations/projectupdate.js.map +1 -0
  100. package/models/operations/retrievedatapoint.js +4 -4
  101. package/models/operations/retrievedataset.js +1 -1
  102. package/models/operations/retrievedatasource.js +1 -1
  103. package/models/operations/retrieveidentity.js +1 -1
  104. package/models/operations/retrievetool.js +6 -6
  105. package/models/operations/runagent.js +1 -1
  106. package/models/operations/streamrunagent.js +1 -1
  107. package/models/operations/updatedatapoint.js +4 -4
  108. package/models/operations/updatedataset.js +1 -1
  109. package/models/operations/updatedatasource.js +1 -1
  110. package/models/operations/updateeval.js +16 -16
  111. package/models/operations/updateidentity.js +1 -1
  112. package/models/operations/updatetool.js +7 -7
  113. package/package.json +1 -1
  114. package/sdk/projects.d.ts +38 -0
  115. package/sdk/projects.d.ts.map +1 -0
  116. package/sdk/projects.js +59 -0
  117. package/sdk/projects.js.map +1 -0
  118. package/sdk/sdk.d.ts +3 -0
  119. package/sdk/sdk.d.ts.map +1 -1
  120. package/sdk/sdk.js +4 -0
  121. package/sdk/sdk.js.map +1 -1
  122. package/src/funcs/projectsCreate.ts +162 -0
  123. package/src/funcs/projectsDelete.ts +165 -0
  124. package/src/funcs/projectsGet.ts +168 -0
  125. package/src/funcs/projectsList.ts +170 -0
  126. package/src/funcs/projectsUpdate.ts +171 -0
  127. package/src/lib/config.ts +2 -2
  128. package/src/models/components/createprojectrequest.ts +34 -0
  129. package/src/models/components/createprojectresponse.ts +32 -0
  130. package/src/models/components/deleteprojectresponse.ts +27 -0
  131. package/src/models/components/getprojectresponse.ts +32 -0
  132. package/src/models/components/index.ts +8 -0
  133. package/src/models/components/listprojectsresponse.ts +41 -0
  134. package/src/models/components/project.ts +64 -0
  135. package/src/models/components/reasoningpart.ts +1 -1
  136. package/src/models/components/updateprojectrequest.ts +42 -0
  137. package/src/models/components/updateprojectresponse.ts +32 -0
  138. package/src/models/operations/createcontact.ts +1 -1
  139. package/src/models/operations/createdataset.ts +1 -1
  140. package/src/models/operations/createdatasetitem.ts +4 -4
  141. package/src/models/operations/createdatasource.ts +1 -1
  142. package/src/models/operations/createeval.ts +16 -16
  143. package/src/models/operations/createidentity.ts +1 -1
  144. package/src/models/operations/createtool.ts +6 -6
  145. package/src/models/operations/getalltools.ts +6 -6
  146. package/src/models/operations/getevals.ts +16 -16
  147. package/src/models/operations/getv2humanevalsets.ts +2 -2
  148. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  149. package/src/models/operations/index.ts +4 -0
  150. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  151. package/src/models/operations/listdatasets.ts +1 -1
  152. package/src/models/operations/listdatasources.ts +1 -1
  153. package/src/models/operations/listidentities.ts +1 -1
  154. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  155. package/src/models/operations/postv2feedbackevaluation.ts +3 -3
  156. package/src/models/operations/postv2humanevalsets.ts +2 -2
  157. package/src/models/operations/projectdelete.ts +36 -0
  158. package/src/models/operations/projectget.ts +36 -0
  159. package/src/models/operations/projectlist.ts +43 -0
  160. package/src/models/operations/projectupdate.ts +41 -0
  161. package/src/models/operations/retrievedatapoint.ts +4 -4
  162. package/src/models/operations/retrievedataset.ts +1 -1
  163. package/src/models/operations/retrievedatasource.ts +1 -1
  164. package/src/models/operations/retrieveidentity.ts +1 -1
  165. package/src/models/operations/retrievetool.ts +6 -6
  166. package/src/models/operations/runagent.ts +1 -1
  167. package/src/models/operations/streamrunagent.ts +1 -1
  168. package/src/models/operations/updatedatapoint.ts +4 -4
  169. package/src/models/operations/updatedataset.ts +1 -1
  170. package/src/models/operations/updatedatasource.ts +1 -1
  171. package/src/models/operations/updateeval.ts +16 -16
  172. package/src/models/operations/updateidentity.ts +1 -1
  173. package/src/models/operations/updatetool.ts +7 -7
  174. package/src/sdk/projects.ts +97 -0
  175. package/src/sdk/sdk.ts +6 -0
package/README.md CHANGED
@@ -288,6 +288,14 @@ run();
288
288
  * [retrieve](docs/sdks/policies/README.md#retrieve) - Get policy
289
289
  * [update](docs/sdks/policies/README.md#update) - Update policy
290
290
 
291
+ ### [Projects](docs/sdks/projects/README.md)
292
+
293
+ * [list](docs/sdks/projects/README.md#list) - List all projects
294
+ * [create](docs/sdks/projects/README.md#create) - Create a new project
295
+ * [get](docs/sdks/projects/README.md#get) - Retrieve a project
296
+ * [delete](docs/sdks/projects/README.md#delete) - Delete a project
297
+ * [update](docs/sdks/projects/README.md#update) - Update a project
298
+
291
299
  ### [Prompts](docs/sdks/prompts/README.md)
292
300
 
293
301
  * [list](docs/sdks/prompts/README.md#list) - List all prompts
@@ -510,6 +518,11 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
510
518
  - [`policiesUpdate`](docs/sdks/policies/README.md#update) - Update policy
511
519
  - [`postV2FeedbackEvaluation`](docs/sdks/orq/README.md#postv2feedbackevaluation)
512
520
  - [`postV2FeedbackEvaluationRemove`](docs/sdks/orq/README.md#postv2feedbackevaluationremove)
521
+ - [`projectsCreate`](docs/sdks/projects/README.md#create) - Create a new project
522
+ - [`projectsDelete`](docs/sdks/projects/README.md#delete) - Delete a project
523
+ - [`projectsGet`](docs/sdks/projects/README.md#get) - Retrieve a project
524
+ - [`projectsList`](docs/sdks/projects/README.md#list) - List all projects
525
+ - [`projectsUpdate`](docs/sdks/projects/README.md#update) - Update a project
513
526
  - [`promptsCreate`](docs/sdks/prompts/README.md#create) - Create a prompt
514
527
  - [`promptsDelete`](docs/sdks/prompts/README.md#delete) - Delete a prompt
515
528
  - [`promptsGetVersion`](docs/sdks/prompts/README.md#getversion) - Retrieve a prompt version
@@ -867,48 +880,48 @@ run();
867
880
 
868
881
 
869
882
  **Inherit from [`OrqError`](./src/models/errors/orqerror.ts)**:
870
- * [`HonoApiError`](./src/models/errors/honoapierror.ts): Applicable to 10 of 149 methods.*
871
- * [`PostV2FeedbackResponseBody`](./src/models/errors/postv2feedbackresponsebody.ts): Bad Request. Status code `400`. Applicable to 1 of 149 methods.*
872
- * [`InvokeEvalResponseBody`](./src/models/errors/invokeevalresponsebody.ts): Bad request. Status code `400`. Applicable to 1 of 149 methods.*
873
- * [`PostV2AgentsA2aResponseBody`](./src/models/errors/postv2agentsa2aresponsebody.ts): Invalid request or agent card fetch failed. Status code `400`. Applicable to 1 of 149 methods.*
874
- * [`PostV2AgentsKeyCardRefreshResponseBody`](./src/models/errors/postv2agentskeycardrefreshresponsebody.ts): Invalid request - Agent is not an A2A agent or card fetch failed. Status code `400`. Applicable to 1 of 149 methods.*
875
- * [`CreateAgentScheduleResponseBody`](./src/models/errors/createagentscheduleresponsebody.ts): Invalid schedule type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of 149 methods.*
876
- * [`UpdateAgentScheduleResponseBody`](./src/models/errors/updateagentscheduleresponsebody.ts): Invalid type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of 149 methods.*
877
- * [`TriggerAgentScheduleResponseBody`](./src/models/errors/triggeragentscheduleresponsebody.ts): Schedule is inactive. Status code `400`. Applicable to 1 of 149 methods.*
878
- * [`PostV2FeedbackFeedbackResponseBody`](./src/models/errors/postv2feedbackfeedbackresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 149 methods.*
879
- * [`PostV2FeedbackRemoveResponseBody`](./src/models/errors/postv2feedbackremoveresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 149 methods.*
880
- * [`GetEvalsResponseBody`](./src/models/errors/getevalsresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 149 methods.*
881
- * [`CreateEvalResponseBody`](./src/models/errors/createevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 149 methods.*
882
- * [`UpdateEvalResponseBody`](./src/models/errors/updateevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 149 methods.*
883
- * [`DeleteEvalResponseBody`](./src/models/errors/deleteevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 149 methods.*
884
- * [`InvokeEvalEvalsResponseBody`](./src/models/errors/invokeevalevalsresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 149 methods.*
885
- * [`GetV2EvaluatorsIdVersionsResponseBody`](./src/models/errors/getv2evaluatorsidversionsresponsebody.ts): Evaluator not found. Status code `404`. Applicable to 1 of 149 methods.*
886
- * [`RetrieveIdentityResponseBody`](./src/models/errors/retrieveidentityresponsebody.ts): Identity not found. Status code `404`. Applicable to 1 of 149 methods.*
887
- * [`UpdateIdentityResponseBody`](./src/models/errors/updateidentityresponsebody.ts): Identity not found. Status code `404`. Applicable to 1 of 149 methods.*
888
- * [`DeleteIdentityResponseBody`](./src/models/errors/deleteidentityresponsebody.ts): Identity not found. Status code `404`. Applicable to 1 of 149 methods.*
889
- * [`PostV2AgentsKeyCardRefreshAgentsResponseBody`](./src/models/errors/postv2agentskeycardrefreshagentsresponsebody.ts): Agent not found. Status code `404`. Applicable to 1 of 149 methods.*
890
- * [`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 149 methods.*
891
- * [`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 149 methods.*
892
- * [`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 149 methods.*
893
- * [`StreamRunAgentResponseBody`](./src/models/errors/streamrunagentresponsebody.ts): Model not found. Status code `404`. Applicable to 1 of 149 methods.*
894
- * [`StreamAgentResponseBody`](./src/models/errors/streamagentresponsebody.ts): Agent not found. Status code `404`. Applicable to 1 of 149 methods.*
895
- * [`UpdatePromptResponseBody`](./src/models/errors/updatepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of 149 methods.*
896
- * [`DeletePromptResponseBody`](./src/models/errors/deletepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of 149 methods.*
897
- * [`GetPromptVersionResponseBody`](./src/models/errors/getpromptversionresponsebody.ts): Not Found - The prompt or prompt version does not exist. Status code `404`. Applicable to 1 of 149 methods.*
898
- * [`UpdateToolResponseBody`](./src/models/errors/updatetoolresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of 149 methods.*
899
- * [`GetV2ToolsToolIdVersionsResponseBody`](./src/models/errors/getv2toolstoolidversionsresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of 149 methods.*
900
- * [`GetV2ToolsToolIdVersionsVersionIdResponseBody`](./src/models/errors/getv2toolstoolidversionsversionidresponsebody.ts): Tool or version not found. Status code `404`. Applicable to 1 of 149 methods.*
901
- * [`CreateAgentScheduleSchedulesResponseBody`](./src/models/errors/createagentscheduleschedulesresponsebody.ts): Agent (or agent version, when agent_tag is set) not found. Status code `404`. Applicable to 1 of 149 methods.*
902
- * [`DeleteAgentScheduleResponseBody`](./src/models/errors/deleteagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 149 methods.*
903
- * [`RetrieveAgentScheduleResponseBody`](./src/models/errors/retrieveagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 149 methods.*
904
- * [`UpdateAgentScheduleSchedulesResponseBody`](./src/models/errors/updateagentscheduleschedulesresponsebody.ts): Schedule or agent version not found. Status code `404`. Applicable to 1 of 149 methods.*
905
- * [`TriggerAgentScheduleSchedulesResponseBody`](./src/models/errors/triggeragentscheduleschedulesresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 149 methods.*
906
- * [`PostV2AgentsA2aAgentsResponseBody`](./src/models/errors/postv2agentsa2aagentsresponsebody.ts): Agent with this key already exists. Status code `409`. Applicable to 1 of 149 methods.*
907
- * [`CreateModerationResponseBody`](./src/models/errors/createmoderationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 149 methods.*
908
- * [`CreateTranscriptionResponseBody`](./src/models/errors/createtranscriptionresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 149 methods.*
909
- * [`CreateTranslationResponseBody`](./src/models/errors/createtranslationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 149 methods.*
910
- * [`InvokeEvalEvalsResponseResponseBody`](./src/models/errors/invokeevalevalsresponseresponsebody.ts): Error running the evaluator. Status code `500`. Applicable to 1 of 149 methods.*
911
- * [`RetrieveIdentityIdentitiesResponseBody`](./src/models/errors/retrieveidentityidentitiesresponsebody.ts): Failed to fetch metrics. Status code `500`. Applicable to 1 of 149 methods.*
883
+ * [`HonoApiError`](./src/models/errors/honoapierror.ts): Applicable to 10 of 154 methods.*
884
+ * [`PostV2FeedbackResponseBody`](./src/models/errors/postv2feedbackresponsebody.ts): Bad Request. Status code `400`. Applicable to 1 of 154 methods.*
885
+ * [`InvokeEvalResponseBody`](./src/models/errors/invokeevalresponsebody.ts): Bad request. Status code `400`. Applicable to 1 of 154 methods.*
886
+ * [`PostV2AgentsA2aResponseBody`](./src/models/errors/postv2agentsa2aresponsebody.ts): Invalid request or agent card fetch failed. Status code `400`. Applicable to 1 of 154 methods.*
887
+ * [`PostV2AgentsKeyCardRefreshResponseBody`](./src/models/errors/postv2agentskeycardrefreshresponsebody.ts): Invalid request - Agent is not an A2A agent or card fetch failed. Status code `400`. Applicable to 1 of 154 methods.*
888
+ * [`CreateAgentScheduleResponseBody`](./src/models/errors/createagentscheduleresponsebody.ts): Invalid schedule type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of 154 methods.*
889
+ * [`UpdateAgentScheduleResponseBody`](./src/models/errors/updateagentscheduleresponsebody.ts): Invalid type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of 154 methods.*
890
+ * [`TriggerAgentScheduleResponseBody`](./src/models/errors/triggeragentscheduleresponsebody.ts): Schedule is inactive. Status code `400`. Applicable to 1 of 154 methods.*
891
+ * [`PostV2FeedbackFeedbackResponseBody`](./src/models/errors/postv2feedbackfeedbackresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 154 methods.*
892
+ * [`PostV2FeedbackRemoveResponseBody`](./src/models/errors/postv2feedbackremoveresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 154 methods.*
893
+ * [`GetEvalsResponseBody`](./src/models/errors/getevalsresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 154 methods.*
894
+ * [`CreateEvalResponseBody`](./src/models/errors/createevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 154 methods.*
895
+ * [`UpdateEvalResponseBody`](./src/models/errors/updateevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 154 methods.*
896
+ * [`DeleteEvalResponseBody`](./src/models/errors/deleteevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 154 methods.*
897
+ * [`InvokeEvalEvalsResponseBody`](./src/models/errors/invokeevalevalsresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 154 methods.*
898
+ * [`GetV2EvaluatorsIdVersionsResponseBody`](./src/models/errors/getv2evaluatorsidversionsresponsebody.ts): Evaluator not found. Status code `404`. Applicable to 1 of 154 methods.*
899
+ * [`RetrieveIdentityResponseBody`](./src/models/errors/retrieveidentityresponsebody.ts): Identity not found. Status code `404`. Applicable to 1 of 154 methods.*
900
+ * [`UpdateIdentityResponseBody`](./src/models/errors/updateidentityresponsebody.ts): Identity not found. Status code `404`. Applicable to 1 of 154 methods.*
901
+ * [`DeleteIdentityResponseBody`](./src/models/errors/deleteidentityresponsebody.ts): Identity not found. Status code `404`. Applicable to 1 of 154 methods.*
902
+ * [`PostV2AgentsKeyCardRefreshAgentsResponseBody`](./src/models/errors/postv2agentskeycardrefreshagentsresponsebody.ts): Agent not found. Status code `404`. Applicable to 1 of 154 methods.*
903
+ * [`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 154 methods.*
904
+ * [`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 154 methods.*
905
+ * [`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 154 methods.*
906
+ * [`StreamRunAgentResponseBody`](./src/models/errors/streamrunagentresponsebody.ts): Model not found. Status code `404`. Applicable to 1 of 154 methods.*
907
+ * [`StreamAgentResponseBody`](./src/models/errors/streamagentresponsebody.ts): Agent not found. Status code `404`. Applicable to 1 of 154 methods.*
908
+ * [`UpdatePromptResponseBody`](./src/models/errors/updatepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of 154 methods.*
909
+ * [`DeletePromptResponseBody`](./src/models/errors/deletepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of 154 methods.*
910
+ * [`GetPromptVersionResponseBody`](./src/models/errors/getpromptversionresponsebody.ts): Not Found - The prompt or prompt version does not exist. Status code `404`. Applicable to 1 of 154 methods.*
911
+ * [`UpdateToolResponseBody`](./src/models/errors/updatetoolresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of 154 methods.*
912
+ * [`GetV2ToolsToolIdVersionsResponseBody`](./src/models/errors/getv2toolstoolidversionsresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of 154 methods.*
913
+ * [`GetV2ToolsToolIdVersionsVersionIdResponseBody`](./src/models/errors/getv2toolstoolidversionsversionidresponsebody.ts): Tool or version not found. Status code `404`. Applicable to 1 of 154 methods.*
914
+ * [`CreateAgentScheduleSchedulesResponseBody`](./src/models/errors/createagentscheduleschedulesresponsebody.ts): Agent (or agent version, when agent_tag is set) not found. Status code `404`. Applicable to 1 of 154 methods.*
915
+ * [`DeleteAgentScheduleResponseBody`](./src/models/errors/deleteagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 154 methods.*
916
+ * [`RetrieveAgentScheduleResponseBody`](./src/models/errors/retrieveagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 154 methods.*
917
+ * [`UpdateAgentScheduleSchedulesResponseBody`](./src/models/errors/updateagentscheduleschedulesresponsebody.ts): Schedule or agent version not found. Status code `404`. Applicable to 1 of 154 methods.*
918
+ * [`TriggerAgentScheduleSchedulesResponseBody`](./src/models/errors/triggeragentscheduleschedulesresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 154 methods.*
919
+ * [`PostV2AgentsA2aAgentsResponseBody`](./src/models/errors/postv2agentsa2aagentsresponsebody.ts): Agent with this key already exists. Status code `409`. Applicable to 1 of 154 methods.*
920
+ * [`CreateModerationResponseBody`](./src/models/errors/createmoderationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 154 methods.*
921
+ * [`CreateTranscriptionResponseBody`](./src/models/errors/createtranscriptionresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 154 methods.*
922
+ * [`CreateTranslationResponseBody`](./src/models/errors/createtranslationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 154 methods.*
923
+ * [`InvokeEvalEvalsResponseResponseBody`](./src/models/errors/invokeevalevalsresponseresponsebody.ts): Error running the evaluator. Status code `500`. Applicable to 1 of 154 methods.*
924
+ * [`RetrieveIdentityIdentitiesResponseBody`](./src/models/errors/retrieveidentityidentitiesresponsebody.ts): Failed to fetch metrics. Status code `500`. Applicable to 1 of 154 methods.*
912
925
  * [`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.
913
926
 
914
927
  </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
+ * Create a new project
12
+ *
13
+ * @remarks
14
+ * Creates a new project within the workspace. Projects organize resources like skills, deployments, and datasets.
15
+ */
16
+ export declare function projectsCreate(client: OrqCore, request: components.CreateProjectRequest, options?: RequestOptions): APIPromise<Result<components.CreateProjectResponse, OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
17
+ //# sourceMappingURL=projectsCreate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectsCreate.d.ts","sourceRoot":"","sources":["../src/funcs/projectsCreate.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,oBAAoB,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,qBAAqB,EAC9B,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.projectsCreate = projectsCreate;
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
+ * Create a new project
51
+ *
52
+ * @remarks
53
+ * Creates a new project within the workspace. Projects organize resources like skills, deployments, and datasets.
54
+ */
55
+ function projectsCreate(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.CreateProjectRequest$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/projects")();
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: "ProjectCreate",
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.CreateProjectResponse$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=projectsCreate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectsCreate.js","sourceRoot":"","sources":["../src/funcs/project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MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE;QACrC,OAAO;QACP,iBAAiB,EAAE,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,mCAAmC,CAAC,EAC3D,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,15 @@
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
+ * Delete a project
13
+ */
14
+ export declare function projectsDelete(client: OrqCore, request: operations.ProjectDeleteRequest, options?: RequestOptions): APIPromise<Result<components.DeleteProjectResponse, OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
15
+ //# sourceMappingURL=projectsDelete.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectsDelete.d.ts","sourceRoot":"","sources":["../src/funcs/projectsDelete.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;;GAEG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,oBAAoB,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,qBAAqB,EAC9B,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -0,0 +1,118 @@
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.projectsDelete = projectsDelete;
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
+ * Delete a project
52
+ */
53
+ function projectsDelete(client, request, options) {
54
+ return new async_js_1.APIPromise($do(client, request, options));
55
+ }
56
+ async function $do(client, request, options) {
57
+ const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.ProjectDeleteRequest$outboundSchema.parse(value), "Input validation failed");
58
+ if (!parsed.ok) {
59
+ return [parsed, { status: "invalid" }];
60
+ }
61
+ const payload = parsed.value;
62
+ const body = null;
63
+ const pathParams = {
64
+ project_id: (0, encodings_js_1.encodeSimple)("project_id", payload.project_id, {
65
+ explode: false,
66
+ charEncoding: "percent",
67
+ }),
68
+ };
69
+ const path = (0, url_js_1.pathToFunc)("/v2/projects/{project_id}")(pathParams);
70
+ const headers = new Headers((0, primitives_js_1.compactMap)({
71
+ Accept: "application/json",
72
+ }));
73
+ const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
74
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
75
+ const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
76
+ const context = {
77
+ options: client._options,
78
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
79
+ operationID: "ProjectDelete",
80
+ oAuth2Scopes: null,
81
+ resolvedSecurity: requestSecurity,
82
+ securitySource: client._options.apiKey,
83
+ retryConfig: options?.retries
84
+ || client._options.retryConfig
85
+ || { strategy: "none" },
86
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
87
+ };
88
+ const requestRes = client._createRequest(context, {
89
+ security: requestSecurity,
90
+ method: "DELETE",
91
+ baseURL: options?.serverURL,
92
+ path: path,
93
+ headers: headers,
94
+ body: body,
95
+ userAgent: client._options.userAgent,
96
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
97
+ }, options);
98
+ if (!requestRes.ok) {
99
+ return [requestRes, { status: "invalid" }];
100
+ }
101
+ const req = requestRes.value;
102
+ const doResult = await client._do(req, {
103
+ context,
104
+ isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
105
+ retryConfig: context.retryConfig,
106
+ retryCodes: context.retryCodes,
107
+ });
108
+ if (!doResult.ok) {
109
+ return [doResult, { status: "request-error", request: req }];
110
+ }
111
+ const response = doResult.value;
112
+ const [result] = await M.match(M.json(200, components.DeleteProjectResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req);
113
+ if (!result.ok) {
114
+ return [result, { status: "complete", request: req, response }];
115
+ }
116
+ return [result, { status: "complete", request: req, response }];
117
+ }
118
+ //# sourceMappingURL=projectsDelete.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectsDelete.js","sourceRoot":"","sources":["../src/funcs/projectsDelete.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BH,wCAsBC;AAhDD,sDAAmD;AACnD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAW5D,0EAA4D;AAC5D,gDAAwD;AAGxD;;GAEG;AACH,SAAgB,cAAc,CAC5B,MAAe,EACf,OAAwC,EACxC,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,OAAwC,EACxC,OAAwB;IAiBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,mCAAmC,CAAC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,CAAC,KAAK,CAAC;IAEhC,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAW5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,mCAAmC,CAAC,EAC3D,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 project
13
+ *
14
+ * @remarks
15
+ * Retrieves the details of an existing project by its unique project ID.
16
+ */
17
+ export declare function projectsGet(client: OrqCore, request: operations.ProjectGetRequest, options?: RequestOptions): APIPromise<Result<components.GetProjectResponse, OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
18
+ //# sourceMappingURL=projectsGet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectsGet.d.ts","sourceRoot":"","sources":["../src/funcs/projectsGet.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,WAAW,CACzB,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,iBAAiB,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,kBAAkB,EAC3B,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.projectsGet = projectsGet;
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 project
52
+ *
53
+ * @remarks
54
+ * Retrieves the details of an existing project by its unique project ID.
55
+ */
56
+ function projectsGet(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.ProjectGetRequest$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
+ project_id: (0, encodings_js_1.encodeSimple)("project_id", payload.project_id, {
68
+ explode: false,
69
+ charEncoding: "percent",
70
+ }),
71
+ };
72
+ const path = (0, url_js_1.pathToFunc)("/v2/projects/{project_id}")(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: "ProjectGet",
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.GetProjectResponse$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=projectsGet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectsGet.js","sourceRoot":"","sources":["../src/funcs/projectsGet.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCH,kCAsBC;AAnDD,sDAAmD;AACnD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAW5D,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;GAKG;AACH,SAAgB,WAAW,CACzB,MAAe,EACf,OAAqC,EACrC,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,OAAqC,EACrC,OAAwB;IAiBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,gCAAgC,CAAC,KAAK,CAAC,KAAK,CAAC,EACnE,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,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;IAC7B,MAAM,IAAI,GAAG,IAAI,CAAC;IAElB,MAAM,UAAU,GAAG;QACjB,UAAU,EAAE,IAAA,2BAAY,EAAC,YAAY,EAAE,OAAO,CAAC,UAAU,EAAE;YACzD,OAAO,EAAE,KAAK;YACd,YAAY,EAAE,SAA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,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 all projects
13
+ *
14
+ * @remarks
15
+ * Returns a list of projects. Projects are sorted by creation date, with the most recently created projects appearing first.
16
+ */
17
+ export declare function projectsList(client: OrqCore, request?: operations.ProjectListRequest | undefined, options?: RequestOptions): APIPromise<Result<components.ListProjectsResponse, OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
18
+ //# sourceMappingURL=projectsList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectsList.d.ts","sourceRoot":"","sources":["../src/funcs/projectsList.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,YAAY,CAC1B,MAAM,EAAE,OAAO,EACf,OAAO,CAAC,EAAE,UAAU,CAAC,kBAAkB,GAAG,SAAS,EACnD,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"}