@orq-ai/node 4.10.16 → 4.10.17

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 (214) hide show
  1. package/funcs/datasetsList.js +2 -0
  2. package/funcs/datasetsList.js.map +1 -1
  3. package/jsr.json +1 -1
  4. package/lib/config.d.ts +2 -2
  5. package/lib/config.js +2 -2
  6. package/models/components/modelmetadata.d.ts +2 -0
  7. package/models/components/modelmetadata.d.ts.map +1 -1
  8. package/models/components/modelmetadata.js +4 -0
  9. package/models/components/modelmetadata.js.map +1 -1
  10. package/models/components/reasoning.d.ts +40 -2
  11. package/models/components/reasoning.d.ts.map +1 -1
  12. package/models/components/reasoning.js +26 -3
  13. package/models/components/reasoning.js.map +1 -1
  14. package/models/components/reasoningparam.d.ts +40 -2
  15. package/models/components/reasoningparam.d.ts.map +1 -1
  16. package/models/components/reasoningparam.js +28 -3
  17. package/models/components/reasoningparam.js.map +1 -1
  18. package/models/components/reasoningpart.js +1 -1
  19. package/models/operations/createagentrequest.d.ts +298 -4
  20. package/models/operations/createagentrequest.d.ts.map +1 -1
  21. package/models/operations/createagentrequest.js +163 -9
  22. package/models/operations/createagentrequest.js.map +1 -1
  23. package/models/operations/createchatcompletion.d.ts +81 -4
  24. package/models/operations/createchatcompletion.d.ts.map +1 -1
  25. package/models/operations/createchatcompletion.js +45 -7
  26. package/models/operations/createchatcompletion.js.map +1 -1
  27. package/models/operations/createdataset.js +1 -1
  28. package/models/operations/createdatasetitem.js +4 -4
  29. package/models/operations/createdatasource.js +1 -1
  30. package/models/operations/createeval.js +16 -16
  31. package/models/operations/creatememorystore.d.ts +3 -3
  32. package/models/operations/creatememorystore.d.ts.map +1 -1
  33. package/models/operations/creatememorystore.js +2 -2
  34. package/models/operations/creatememorystore.js.map +1 -1
  35. package/models/operations/createprompt.d.ts +225 -12
  36. package/models/operations/createprompt.d.ts.map +1 -1
  37. package/models/operations/createprompt.js +124 -13
  38. package/models/operations/createprompt.js.map +1 -1
  39. package/models/operations/createrouterresponse.d.ts +349 -4
  40. package/models/operations/createrouterresponse.d.ts.map +1 -1
  41. package/models/operations/createrouterresponse.js +195 -4
  42. package/models/operations/createrouterresponse.js.map +1 -1
  43. package/models/operations/createtool.js +6 -6
  44. package/models/operations/deploymentgetconfig.d.ts +70 -4
  45. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  46. package/models/operations/deploymentgetconfig.js +43 -8
  47. package/models/operations/deploymentgetconfig.js.map +1 -1
  48. package/models/operations/deployments.d.ts +74 -8
  49. package/models/operations/deployments.d.ts.map +1 -1
  50. package/models/operations/deployments.js +43 -8
  51. package/models/operations/deployments.js.map +1 -1
  52. package/models/operations/getallmemorystores.d.ts +1 -1
  53. package/models/operations/getallmemorystores.d.ts.map +1 -1
  54. package/models/operations/getallmemorystores.js +1 -1
  55. package/models/operations/getallmemorystores.js.map +1 -1
  56. package/models/operations/getallprompts.d.ts +140 -4
  57. package/models/operations/getallprompts.d.ts.map +1 -1
  58. package/models/operations/getallprompts.js +79 -6
  59. package/models/operations/getallprompts.js.map +1 -1
  60. package/models/operations/getalltools.js +6 -6
  61. package/models/operations/getevals.js +16 -16
  62. package/models/operations/getoneprompt.d.ts +140 -4
  63. package/models/operations/getoneprompt.d.ts.map +1 -1
  64. package/models/operations/getoneprompt.js +79 -6
  65. package/models/operations/getoneprompt.js.map +1 -1
  66. package/models/operations/getpromptversion.d.ts +140 -4
  67. package/models/operations/getpromptversion.d.ts.map +1 -1
  68. package/models/operations/getpromptversion.js +78 -6
  69. package/models/operations/getpromptversion.js.map +1 -1
  70. package/models/operations/getv2humanevalsets.js +2 -2
  71. package/models/operations/getv2humanevalsetsid.js +2 -2
  72. package/models/operations/listagents.d.ts +140 -0
  73. package/models/operations/listagents.d.ts.map +1 -1
  74. package/models/operations/listagents.js +79 -3
  75. package/models/operations/listagents.js.map +1 -1
  76. package/models/operations/listdatasetdatapoints.js +4 -4
  77. package/models/operations/listdatasets.d.ts +10 -0
  78. package/models/operations/listdatasets.d.ts.map +1 -1
  79. package/models/operations/listdatasets.js +4 -1
  80. package/models/operations/listdatasets.js.map +1 -1
  81. package/models/operations/listdatasources.js +1 -1
  82. package/models/operations/listknowledgebases.d.ts +1 -1
  83. package/models/operations/listpromptversions.d.ts +140 -4
  84. package/models/operations/listpromptversions.d.ts.map +1 -1
  85. package/models/operations/listpromptversions.js +79 -6
  86. package/models/operations/listpromptversions.js.map +1 -1
  87. package/models/operations/patchv2humanevalsetsid.js +2 -2
  88. package/models/operations/postv2feedbackevaluation.js +3 -3
  89. package/models/operations/postv2humanevalsets.js +2 -2
  90. package/models/operations/retrieveagentrequest.d.ts +140 -0
  91. package/models/operations/retrieveagentrequest.d.ts.map +1 -1
  92. package/models/operations/retrieveagentrequest.js +81 -2
  93. package/models/operations/retrieveagentrequest.js.map +1 -1
  94. package/models/operations/retrievedatapoint.js +4 -4
  95. package/models/operations/retrievedataset.js +1 -1
  96. package/models/operations/retrievedatasource.js +1 -1
  97. package/models/operations/retrievememorystore.d.ts +1 -1
  98. package/models/operations/retrievememorystore.d.ts.map +1 -1
  99. package/models/operations/retrievememorystore.js +1 -1
  100. package/models/operations/retrievememorystore.js.map +1 -1
  101. package/models/operations/retrievetool.js +6 -6
  102. package/models/operations/runagent.d.ts +154 -0
  103. package/models/operations/runagent.d.ts.map +1 -1
  104. package/models/operations/runagent.js +80 -5
  105. package/models/operations/runagent.js.map +1 -1
  106. package/models/operations/streamrunagent.d.ts +154 -0
  107. package/models/operations/streamrunagent.d.ts.map +1 -1
  108. package/models/operations/streamrunagent.js +82 -4
  109. package/models/operations/streamrunagent.js.map +1 -1
  110. package/models/operations/updateagent.d.ts +298 -4
  111. package/models/operations/updateagent.d.ts.map +1 -1
  112. package/models/operations/updateagent.js +162 -9
  113. package/models/operations/updateagent.js.map +1 -1
  114. package/models/operations/updatedatapoint.js +4 -4
  115. package/models/operations/updatedataset.js +1 -1
  116. package/models/operations/updatedatasource.js +1 -1
  117. package/models/operations/updateeval.js +16 -16
  118. package/models/operations/updatememorystore.d.ts +3 -3
  119. package/models/operations/updatememorystore.d.ts.map +1 -1
  120. package/models/operations/updatememorystore.js +2 -2
  121. package/models/operations/updatememorystore.js.map +1 -1
  122. package/models/operations/updateprompt.d.ts +225 -12
  123. package/models/operations/updateprompt.d.ts.map +1 -1
  124. package/models/operations/updateprompt.js +125 -14
  125. package/models/operations/updateprompt.js.map +1 -1
  126. package/models/operations/updatetool.js +7 -7
  127. package/package.json +7 -7
  128. package/packages/orq-rc/src/lib/config.ts +2 -2
  129. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  130. package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
  131. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
  132. package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
  133. package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
  134. package/packages/orq-rc/src/models/operations/creatememorystore.ts +5 -5
  135. package/packages/orq-rc/src/models/operations/createtool.ts +6 -6
  136. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +2 -2
  137. package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
  138. package/packages/orq-rc/src/models/operations/getevals.ts +16 -16
  139. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
  140. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  141. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
  142. package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
  143. package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
  144. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  145. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +3 -3
  146. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  147. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
  148. package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
  149. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
  150. package/packages/orq-rc/src/models/operations/retrievememorystore.ts +2 -2
  151. package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
  152. package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
  153. package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
  154. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
  155. package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
  156. package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
  157. package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
  158. package/packages/orq-rc/src/models/operations/updatememorystore.ts +5 -5
  159. package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
  160. package/packages/orq-rc/src/sdk/feedback.ts +2 -2
  161. package/sdk/feedback.d.ts +2 -2
  162. package/sdk/feedback.js +2 -2
  163. package/src/funcs/datasetsList.ts +2 -0
  164. package/src/lib/config.ts +2 -2
  165. package/src/models/components/modelmetadata.ts +6 -0
  166. package/src/models/components/reasoning.ts +50 -4
  167. package/src/models/components/reasoningparam.ts +48 -4
  168. package/src/models/components/reasoningpart.ts +1 -1
  169. package/src/models/operations/createagentrequest.ts +460 -8
  170. package/src/models/operations/createchatcompletion.ts +129 -10
  171. package/src/models/operations/createdataset.ts +1 -1
  172. package/src/models/operations/createdatasetitem.ts +4 -4
  173. package/src/models/operations/createdatasource.ts +1 -1
  174. package/src/models/operations/createeval.ts +16 -16
  175. package/src/models/operations/creatememorystore.ts +5 -5
  176. package/src/models/operations/createprompt.ts +356 -27
  177. package/src/models/operations/createrouterresponse.ts +532 -8
  178. package/src/models/operations/createtool.ts +6 -6
  179. package/src/models/operations/deploymentgetconfig.ts +105 -8
  180. package/src/models/operations/deployments.ts +113 -16
  181. package/src/models/operations/getallmemorystores.ts +2 -2
  182. package/src/models/operations/getallprompts.ts +210 -8
  183. package/src/models/operations/getalltools.ts +6 -6
  184. package/src/models/operations/getevals.ts +16 -16
  185. package/src/models/operations/getoneprompt.ts +208 -8
  186. package/src/models/operations/getpromptversion.ts +212 -8
  187. package/src/models/operations/getv2humanevalsets.ts +2 -2
  188. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  189. package/src/models/operations/listagents.ts +215 -0
  190. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  191. package/src/models/operations/listdatasets.ts +14 -1
  192. package/src/models/operations/listdatasources.ts +1 -1
  193. package/src/models/operations/listknowledgebases.ts +1 -1
  194. package/src/models/operations/listpromptversions.ts +212 -8
  195. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  196. package/src/models/operations/postv2feedbackevaluation.ts +3 -3
  197. package/src/models/operations/postv2humanevalsets.ts +2 -2
  198. package/src/models/operations/retrieveagentrequest.ts +222 -0
  199. package/src/models/operations/retrievedatapoint.ts +4 -4
  200. package/src/models/operations/retrievedataset.ts +1 -1
  201. package/src/models/operations/retrievedatasource.ts +1 -1
  202. package/src/models/operations/retrievememorystore.ts +2 -2
  203. package/src/models/operations/retrievetool.ts +6 -6
  204. package/src/models/operations/runagent.ts +236 -1
  205. package/src/models/operations/streamrunagent.ts +242 -1
  206. package/src/models/operations/updateagent.ts +464 -9
  207. package/src/models/operations/updatedatapoint.ts +4 -4
  208. package/src/models/operations/updatedataset.ts +1 -1
  209. package/src/models/operations/updatedatasource.ts +1 -1
  210. package/src/models/operations/updateeval.ts +16 -16
  211. package/src/models/operations/updatememorystore.ts +5 -5
  212. package/src/models/operations/updateprompt.ts +356 -27
  213. package/src/models/operations/updatetool.ts +7 -7
  214. package/src/sdk/feedback.ts +2 -2
@@ -655,6 +655,66 @@ export type UpdatePromptTimeout = {
655
655
  callTimeout: number;
656
656
  };
657
657
 
658
+ /**
659
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
660
+ */
661
+ export const UpdatePromptPromptsType = {
662
+ Ephemeral: "ephemeral",
663
+ } as const;
664
+ /**
665
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
666
+ */
667
+ export type UpdatePromptPromptsType = ClosedEnum<
668
+ typeof UpdatePromptPromptsType
669
+ >;
670
+
671
+ /**
672
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
673
+ *
674
+ * @remarks
675
+ *
676
+ * - `5m`: 5 minutes
677
+ * - `1h`: 1 hour
678
+ *
679
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
680
+ */
681
+ export const UpdatePromptTtl = {
682
+ Fivem: "5m",
683
+ Oneh: "1h",
684
+ } as const;
685
+ /**
686
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
687
+ *
688
+ * @remarks
689
+ *
690
+ * - `5m`: 5 minutes
691
+ * - `1h`: 1 hour
692
+ *
693
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
694
+ */
695
+ export type UpdatePromptTtl = ClosedEnum<typeof UpdatePromptTtl>;
696
+
697
+ /**
698
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
699
+ */
700
+ export type UpdatePromptCacheControl = {
701
+ /**
702
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
703
+ */
704
+ type: UpdatePromptPromptsType;
705
+ /**
706
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
707
+ *
708
+ * @remarks
709
+ *
710
+ * - `5m`: 5 minutes
711
+ * - `1h`: 1 hour
712
+ *
713
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
714
+ */
715
+ ttl?: UpdatePromptTtl | undefined;
716
+ };
717
+
658
718
  /**
659
719
  * Prompt configuration with model and messages. Use this to update the prompt.
660
720
  */
@@ -804,6 +864,14 @@ export type UpdatePromptPromptInput = {
804
864
  * Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
805
865
  */
806
866
  timeout?: UpdatePromptTimeout | undefined;
867
+ /**
868
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
869
+ */
870
+ cacheControl?: UpdatePromptCacheControl | undefined;
871
+ /**
872
+ * Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the legacy `user` field for prompt caching.
873
+ */
874
+ promptCacheKey?: string | undefined;
807
875
  };
808
876
 
809
877
  export const UpdatePromptUseCases = {
@@ -898,11 +966,11 @@ export type UpdatePromptRequest = {
898
966
  requestBody?: UpdatePromptRequestBody | undefined;
899
967
  };
900
968
 
901
- export const UpdatePromptPromptsType = {
969
+ export const UpdatePromptPromptsResponseType = {
902
970
  Prompt: "prompt",
903
971
  } as const;
904
- export type UpdatePromptPromptsType = ClosedEnum<
905
- typeof UpdatePromptPromptsType
972
+ export type UpdatePromptPromptsResponseType = ClosedEnum<
973
+ typeof UpdatePromptPromptsResponseType
906
974
  >;
907
975
 
908
976
  /**
@@ -1044,6 +1112,69 @@ export type UpdatePromptPromptsResponseResponseFormat =
1044
1112
  | UpdatePromptResponseFormat5
1045
1113
  | UpdatePromptResponseFormat6;
1046
1114
 
1115
+ /**
1116
+ * Create a cache control breakpoint. Accepts only the value "ephemeral".
1117
+ */
1118
+ export const UpdatePromptPromptsResponse200ApplicationJSONResponseBodyType = {
1119
+ Ephemeral: "ephemeral",
1120
+ } as const;
1121
+ /**
1122
+ * Create a cache control breakpoint. Accepts only the value "ephemeral".
1123
+ */
1124
+ export type UpdatePromptPromptsResponse200ApplicationJSONResponseBodyType =
1125
+ ClosedEnum<
1126
+ typeof UpdatePromptPromptsResponse200ApplicationJSONResponseBodyType
1127
+ >;
1128
+
1129
+ /**
1130
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
1131
+ *
1132
+ * @remarks
1133
+ *
1134
+ * - `5m`: 5 minutes
1135
+ * - `1h`: 1 hour
1136
+ *
1137
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1138
+ */
1139
+ export const UpdatePromptPromptsResponseTtl = {
1140
+ Fivem: "5m",
1141
+ Oneh: "1h",
1142
+ } as const;
1143
+ /**
1144
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
1145
+ *
1146
+ * @remarks
1147
+ *
1148
+ * - `5m`: 5 minutes
1149
+ * - `1h`: 1 hour
1150
+ *
1151
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1152
+ */
1153
+ export type UpdatePromptPromptsResponseTtl = ClosedEnum<
1154
+ typeof UpdatePromptPromptsResponseTtl
1155
+ >;
1156
+
1157
+ /**
1158
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
1159
+ */
1160
+ export type UpdatePromptPromptsResponseCacheControl = {
1161
+ /**
1162
+ * Create a cache control breakpoint. Accepts only the value "ephemeral".
1163
+ */
1164
+ type: UpdatePromptPromptsResponse200ApplicationJSONResponseBodyType;
1165
+ /**
1166
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
1167
+ *
1168
+ * @remarks
1169
+ *
1170
+ * - `5m`: 5 minutes
1171
+ * - `1h`: 1 hour
1172
+ *
1173
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1174
+ */
1175
+ ttl: UpdatePromptPromptsResponseTtl;
1176
+ };
1177
+
1047
1178
  /**
1048
1179
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
1049
1180
  */
@@ -1190,6 +1321,10 @@ export type UpdatePromptModelParameters = {
1190
1321
  | UpdatePromptResponseFormat6
1191
1322
  | null
1192
1323
  | undefined;
1324
+ /**
1325
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
1326
+ */
1327
+ cacheControl?: UpdatePromptPromptsResponseCacheControl | null | undefined;
1193
1328
  /**
1194
1329
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
1195
1330
  */
@@ -1344,12 +1479,14 @@ export type UpdatePromptContent =
1344
1479
  | string
1345
1480
  | Array<UpdatePrompt21 | UpdatePrompt22 | UpdatePrompt23>;
1346
1481
 
1347
- export const UpdatePromptPromptsResponse200Type = {
1348
- Function: "function",
1349
- } as const;
1350
- export type UpdatePromptPromptsResponse200Type = ClosedEnum<
1351
- typeof UpdatePromptPromptsResponse200Type
1352
- >;
1482
+ export const UpdatePromptPromptsResponse200ApplicationJSONResponseBodyPromptConfigType =
1483
+ {
1484
+ Function: "function",
1485
+ } as const;
1486
+ export type UpdatePromptPromptsResponse200ApplicationJSONResponseBodyPromptConfigType =
1487
+ ClosedEnum<
1488
+ typeof UpdatePromptPromptsResponse200ApplicationJSONResponseBodyPromptConfigType
1489
+ >;
1353
1490
 
1354
1491
  export type UpdatePromptFunction = {
1355
1492
  name: string;
@@ -1362,7 +1499,8 @@ export type UpdatePromptFunction = {
1362
1499
  export type UpdatePromptToolCalls = {
1363
1500
  id?: string | undefined;
1364
1501
  index?: number | undefined;
1365
- type: UpdatePromptPromptsResponse200Type;
1502
+ type:
1503
+ UpdatePromptPromptsResponse200ApplicationJSONResponseBodyPromptConfigType;
1366
1504
  function: UpdatePromptFunction;
1367
1505
  };
1368
1506
 
@@ -1681,11 +1819,11 @@ export type UpdatePromptPromptsRetry = {
1681
1819
  onCodes?: Array<number> | undefined;
1682
1820
  };
1683
1821
 
1684
- export const UpdatePromptPromptsResponseType = {
1822
+ export const UpdatePromptPromptsResponse200Type = {
1685
1823
  ExactMatch: "exact_match",
1686
1824
  } as const;
1687
- export type UpdatePromptPromptsResponseType = ClosedEnum<
1688
- typeof UpdatePromptPromptsResponseType
1825
+ export type UpdatePromptPromptsResponse200Type = ClosedEnum<
1826
+ typeof UpdatePromptPromptsResponse200Type
1689
1827
  >;
1690
1828
 
1691
1829
  /**
@@ -1696,7 +1834,7 @@ export type UpdatePromptPromptsCache = {
1696
1834
  * Time to live for cached responses in seconds. Maximum 259200 seconds (3 days).
1697
1835
  */
1698
1836
  ttl: number;
1699
- type: UpdatePromptPromptsResponseType;
1837
+ type: UpdatePromptPromptsResponse200Type;
1700
1838
  };
1701
1839
 
1702
1840
  export const UpdatePromptLoadBalancerPromptsType = {
@@ -1737,6 +1875,66 @@ export type UpdatePromptPromptsTimeout = {
1737
1875
  callTimeout: number;
1738
1876
  };
1739
1877
 
1878
+ /**
1879
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1880
+ */
1881
+ export const UpdatePromptPromptsResponse200ApplicationJSONType = {
1882
+ Ephemeral: "ephemeral",
1883
+ } as const;
1884
+ /**
1885
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1886
+ */
1887
+ export type UpdatePromptPromptsResponse200ApplicationJSONType = ClosedEnum<
1888
+ typeof UpdatePromptPromptsResponse200ApplicationJSONType
1889
+ >;
1890
+
1891
+ /**
1892
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
1893
+ *
1894
+ * @remarks
1895
+ *
1896
+ * - `5m`: 5 minutes
1897
+ * - `1h`: 1 hour
1898
+ *
1899
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1900
+ */
1901
+ export const UpdatePromptPromptsTtl = {
1902
+ Fivem: "5m",
1903
+ Oneh: "1h",
1904
+ } as const;
1905
+ /**
1906
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
1907
+ *
1908
+ * @remarks
1909
+ *
1910
+ * - `5m`: 5 minutes
1911
+ * - `1h`: 1 hour
1912
+ *
1913
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1914
+ */
1915
+ export type UpdatePromptPromptsTtl = ClosedEnum<typeof UpdatePromptPromptsTtl>;
1916
+
1917
+ /**
1918
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
1919
+ */
1920
+ export type UpdatePromptPromptsCacheControl = {
1921
+ /**
1922
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1923
+ */
1924
+ type: UpdatePromptPromptsResponse200ApplicationJSONType;
1925
+ /**
1926
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
1927
+ *
1928
+ * @remarks
1929
+ *
1930
+ * - `5m`: 5 minutes
1931
+ * - `1h`: 1 hour
1932
+ *
1933
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1934
+ */
1935
+ ttl: UpdatePromptPromptsTtl;
1936
+ };
1937
+
1740
1938
  export type UpdatePromptContentPromptsResponse200ApplicationJSONResponseBody2 =
1741
1939
  components.TextContentPartSchema;
1742
1940
 
@@ -2207,6 +2405,14 @@ export type UpdatePromptPromptField = {
2207
2405
  * Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
2208
2406
  */
2209
2407
  timeout?: UpdatePromptPromptsTimeout | undefined;
2408
+ /**
2409
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
2410
+ */
2411
+ cacheControl?: UpdatePromptPromptsCacheControl | undefined;
2412
+ /**
2413
+ * Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the legacy `user` field for prompt caching.
2414
+ */
2415
+ promptCacheKey?: string | undefined;
2210
2416
  /**
2211
2417
  * Array of messages that make up the conversation. Each message has a role (system, user, assistant, or tool) and content.
2212
2418
  */
@@ -2286,7 +2492,7 @@ export type UpdatePromptPromptsMetadata = {
2286
2492
  */
2287
2493
  export type UpdatePromptPrompt = {
2288
2494
  id: string;
2289
- type: UpdatePromptPromptsType;
2495
+ type: UpdatePromptPromptsResponseType;
2290
2496
  owner: string;
2291
2497
  domainId: string;
2292
2498
  created: string;
@@ -3480,6 +3686,40 @@ export function updatePromptTimeoutToJSON(
3480
3686
  );
3481
3687
  }
3482
3688
 
3689
+ /** @internal */
3690
+ export const UpdatePromptPromptsType$outboundSchema: z.ZodNativeEnum<
3691
+ typeof UpdatePromptPromptsType
3692
+ > = z.nativeEnum(UpdatePromptPromptsType);
3693
+
3694
+ /** @internal */
3695
+ export const UpdatePromptTtl$outboundSchema: z.ZodNativeEnum<
3696
+ typeof UpdatePromptTtl
3697
+ > = z.nativeEnum(UpdatePromptTtl);
3698
+
3699
+ /** @internal */
3700
+ export type UpdatePromptCacheControl$Outbound = {
3701
+ type: string;
3702
+ ttl: string;
3703
+ };
3704
+
3705
+ /** @internal */
3706
+ export const UpdatePromptCacheControl$outboundSchema: z.ZodType<
3707
+ UpdatePromptCacheControl$Outbound,
3708
+ z.ZodTypeDef,
3709
+ UpdatePromptCacheControl
3710
+ > = z.object({
3711
+ type: UpdatePromptPromptsType$outboundSchema,
3712
+ ttl: UpdatePromptTtl$outboundSchema.default("5m"),
3713
+ });
3714
+
3715
+ export function updatePromptCacheControlToJSON(
3716
+ updatePromptCacheControl: UpdatePromptCacheControl,
3717
+ ): string {
3718
+ return JSON.stringify(
3719
+ UpdatePromptCacheControl$outboundSchema.parse(updatePromptCacheControl),
3720
+ );
3721
+ }
3722
+
3483
3723
  /** @internal */
3484
3724
  export type UpdatePromptPromptInput$Outbound = {
3485
3725
  messages?:
@@ -3527,6 +3767,8 @@ export type UpdatePromptPromptInput$Outbound = {
3527
3767
  cache?: UpdatePromptCache$Outbound | undefined;
3528
3768
  load_balancer?: UpdatePromptLoadBalancer1$Outbound | undefined;
3529
3769
  timeout?: UpdatePromptTimeout$Outbound | undefined;
3770
+ cache_control?: UpdatePromptCacheControl$Outbound | undefined;
3771
+ prompt_cache_key?: string | undefined;
3530
3772
  };
3531
3773
 
3532
3774
  /** @internal */
@@ -3589,6 +3831,9 @@ export const UpdatePromptPromptInput$outboundSchema: z.ZodType<
3589
3831
  loadBalancer: z.lazy(() => UpdatePromptLoadBalancer1$outboundSchema)
3590
3832
  .optional(),
3591
3833
  timeout: z.lazy(() => UpdatePromptTimeout$outboundSchema).optional(),
3834
+ cacheControl: z.lazy(() => UpdatePromptCacheControl$outboundSchema)
3835
+ .optional(),
3836
+ promptCacheKey: z.string().optional(),
3592
3837
  }).transform((v) => {
3593
3838
  return remap$(v, {
3594
3839
  frequencyPenalty: "frequency_penalty",
@@ -3604,6 +3849,8 @@ export const UpdatePromptPromptInput$outboundSchema: z.ZodType<
3604
3849
  toolChoice: "tool_choice",
3605
3850
  parallelToolCalls: "parallel_tool_calls",
3606
3851
  loadBalancer: "load_balancer",
3852
+ cacheControl: "cache_control",
3853
+ promptCacheKey: "prompt_cache_key",
3607
3854
  });
3608
3855
  });
3609
3856
 
@@ -3731,9 +3978,9 @@ export function updatePromptRequestToJSON(
3731
3978
  }
3732
3979
 
3733
3980
  /** @internal */
3734
- export const UpdatePromptPromptsType$inboundSchema: z.ZodNativeEnum<
3735
- typeof UpdatePromptPromptsType
3736
- > = z.nativeEnum(UpdatePromptPromptsType);
3981
+ export const UpdatePromptPromptsResponseType$inboundSchema: z.ZodNativeEnum<
3982
+ typeof UpdatePromptPromptsResponseType
3983
+ > = z.nativeEnum(UpdatePromptPromptsResponseType);
3737
3984
 
3738
3985
  /** @internal */
3739
3986
  export const UpdatePromptModelType$inboundSchema: z.ZodNativeEnum<
@@ -3911,6 +4158,46 @@ export function updatePromptPromptsResponseResponseFormatFromJSON(
3911
4158
  );
3912
4159
  }
3913
4160
 
4161
+ /** @internal */
4162
+ export const UpdatePromptPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema:
4163
+ z.ZodNativeEnum<
4164
+ typeof UpdatePromptPromptsResponse200ApplicationJSONResponseBodyType
4165
+ > = z.nativeEnum(
4166
+ UpdatePromptPromptsResponse200ApplicationJSONResponseBodyType,
4167
+ );
4168
+
4169
+ /** @internal */
4170
+ export const UpdatePromptPromptsResponseTtl$inboundSchema: z.ZodNativeEnum<
4171
+ typeof UpdatePromptPromptsResponseTtl
4172
+ > = z.nativeEnum(UpdatePromptPromptsResponseTtl);
4173
+
4174
+ /** @internal */
4175
+ export const UpdatePromptPromptsResponseCacheControl$inboundSchema: z.ZodType<
4176
+ UpdatePromptPromptsResponseCacheControl,
4177
+ z.ZodTypeDef,
4178
+ unknown
4179
+ > = z.object({
4180
+ type:
4181
+ UpdatePromptPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema,
4182
+ ttl: UpdatePromptPromptsResponseTtl$inboundSchema.default("5m"),
4183
+ });
4184
+
4185
+ export function updatePromptPromptsResponseCacheControlFromJSON(
4186
+ jsonString: string,
4187
+ ): SafeParseResult<
4188
+ UpdatePromptPromptsResponseCacheControl,
4189
+ SDKValidationError
4190
+ > {
4191
+ return safeParse(
4192
+ jsonString,
4193
+ (x) =>
4194
+ UpdatePromptPromptsResponseCacheControl$inboundSchema.parse(
4195
+ JSON.parse(x),
4196
+ ),
4197
+ `Failed to parse 'UpdatePromptPromptsResponseCacheControl' from JSON`,
4198
+ );
4199
+ }
4200
+
3914
4201
  /** @internal */
3915
4202
  export const UpdatePromptPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
3916
4203
  typeof UpdatePromptPhotoRealVersion
@@ -3964,6 +4251,9 @@ export const UpdatePromptModelParameters$inboundSchema: z.ZodType<
3964
4251
  UpdatePromptResponseFormat6$inboundSchema,
3965
4252
  ]),
3966
4253
  ).optional(),
4254
+ cacheControl: z.nullable(
4255
+ z.lazy(() => UpdatePromptPromptsResponseCacheControl$inboundSchema),
4256
+ ).optional(),
3967
4257
  photoRealVersion: UpdatePromptPhotoRealVersion$inboundSchema.optional(),
3968
4258
  encoding_format: UpdatePromptEncodingFormat$inboundSchema.optional(),
3969
4259
  reasoningEffort: UpdatePromptPromptsResponseReasoningEffort$inboundSchema
@@ -4155,9 +4445,12 @@ export function updatePromptContentFromJSON(
4155
4445
  }
4156
4446
 
4157
4447
  /** @internal */
4158
- export const UpdatePromptPromptsResponse200Type$inboundSchema: z.ZodNativeEnum<
4159
- typeof UpdatePromptPromptsResponse200Type
4160
- > = z.nativeEnum(UpdatePromptPromptsResponse200Type);
4448
+ export const UpdatePromptPromptsResponse200ApplicationJSONResponseBodyPromptConfigType$inboundSchema:
4449
+ z.ZodNativeEnum<
4450
+ typeof UpdatePromptPromptsResponse200ApplicationJSONResponseBodyPromptConfigType
4451
+ > = z.nativeEnum(
4452
+ UpdatePromptPromptsResponse200ApplicationJSONResponseBodyPromptConfigType,
4453
+ );
4161
4454
 
4162
4455
  /** @internal */
4163
4456
  export const UpdatePromptFunction$inboundSchema: z.ZodType<
@@ -4187,7 +4480,8 @@ export const UpdatePromptToolCalls$inboundSchema: z.ZodType<
4187
4480
  > = z.object({
4188
4481
  id: z.string().optional(),
4189
4482
  index: z.number().optional(),
4190
- type: UpdatePromptPromptsResponse200Type$inboundSchema,
4483
+ type:
4484
+ UpdatePromptPromptsResponse200ApplicationJSONResponseBodyPromptConfigType$inboundSchema,
4191
4485
  function: z.lazy(() => UpdatePromptFunction$inboundSchema),
4192
4486
  });
4193
4487
 
@@ -4670,9 +4964,9 @@ export function updatePromptPromptsRetryFromJSON(
4670
4964
  }
4671
4965
 
4672
4966
  /** @internal */
4673
- export const UpdatePromptPromptsResponseType$inboundSchema: z.ZodNativeEnum<
4674
- typeof UpdatePromptPromptsResponseType
4675
- > = z.nativeEnum(UpdatePromptPromptsResponseType);
4967
+ export const UpdatePromptPromptsResponse200Type$inboundSchema: z.ZodNativeEnum<
4968
+ typeof UpdatePromptPromptsResponse200Type
4969
+ > = z.nativeEnum(UpdatePromptPromptsResponse200Type);
4676
4970
 
4677
4971
  /** @internal */
4678
4972
  export const UpdatePromptPromptsCache$inboundSchema: z.ZodType<
@@ -4681,7 +4975,7 @@ export const UpdatePromptPromptsCache$inboundSchema: z.ZodType<
4681
4975
  unknown
4682
4976
  > = z.object({
4683
4977
  ttl: z.number().default(1800),
4684
- type: UpdatePromptPromptsResponseType$inboundSchema,
4978
+ type: UpdatePromptPromptsResponse200Type$inboundSchema,
4685
4979
  });
4686
4980
 
4687
4981
  export function updatePromptPromptsCacheFromJSON(
@@ -4782,6 +5076,36 @@ export function updatePromptPromptsTimeoutFromJSON(
4782
5076
  );
4783
5077
  }
4784
5078
 
5079
+ /** @internal */
5080
+ export const UpdatePromptPromptsResponse200ApplicationJSONType$inboundSchema:
5081
+ z.ZodNativeEnum<typeof UpdatePromptPromptsResponse200ApplicationJSONType> = z
5082
+ .nativeEnum(UpdatePromptPromptsResponse200ApplicationJSONType);
5083
+
5084
+ /** @internal */
5085
+ export const UpdatePromptPromptsTtl$inboundSchema: z.ZodNativeEnum<
5086
+ typeof UpdatePromptPromptsTtl
5087
+ > = z.nativeEnum(UpdatePromptPromptsTtl);
5088
+
5089
+ /** @internal */
5090
+ export const UpdatePromptPromptsCacheControl$inboundSchema: z.ZodType<
5091
+ UpdatePromptPromptsCacheControl,
5092
+ z.ZodTypeDef,
5093
+ unknown
5094
+ > = z.object({
5095
+ type: UpdatePromptPromptsResponse200ApplicationJSONType$inboundSchema,
5096
+ ttl: UpdatePromptPromptsTtl$inboundSchema.default("5m"),
5097
+ });
5098
+
5099
+ export function updatePromptPromptsCacheControlFromJSON(
5100
+ jsonString: string,
5101
+ ): SafeParseResult<UpdatePromptPromptsCacheControl, SDKValidationError> {
5102
+ return safeParse(
5103
+ jsonString,
5104
+ (x) => UpdatePromptPromptsCacheControl$inboundSchema.parse(JSON.parse(x)),
5105
+ `Failed to parse 'UpdatePromptPromptsCacheControl' from JSON`,
5106
+ );
5107
+ }
5108
+
4785
5109
  /** @internal */
4786
5110
  export const UpdatePromptContentPromptsResponse200ApplicationJSONResponseBody2$inboundSchema:
4787
5111
  z.ZodType<
@@ -5377,6 +5701,9 @@ export const UpdatePromptPromptField$inboundSchema: z.ZodType<
5377
5701
  load_balancer: z.lazy(() => UpdatePromptLoadBalancerPrompts1$inboundSchema)
5378
5702
  .optional(),
5379
5703
  timeout: z.lazy(() => UpdatePromptPromptsTimeout$inboundSchema).optional(),
5704
+ cache_control: z.lazy(() => UpdatePromptPromptsCacheControl$inboundSchema)
5705
+ .optional(),
5706
+ prompt_cache_key: z.string().optional(),
5380
5707
  messages: z.array(
5381
5708
  z.union([
5382
5709
  z.lazy(() => UpdatePromptMessagesPromptsSystemMessage$inboundSchema),
@@ -5402,6 +5729,8 @@ export const UpdatePromptPromptField$inboundSchema: z.ZodType<
5402
5729
  "tool_choice": "toolChoice",
5403
5730
  "parallel_tool_calls": "parallelToolCalls",
5404
5731
  "load_balancer": "loadBalancer",
5732
+ "cache_control": "cacheControl",
5733
+ "prompt_cache_key": "promptCacheKey",
5405
5734
  });
5406
5735
  });
5407
5736
 
@@ -5456,7 +5785,7 @@ export const UpdatePromptPrompt$inboundSchema: z.ZodType<
5456
5785
  unknown
5457
5786
  > = z.object({
5458
5787
  _id: z.string(),
5459
- type: UpdatePromptPromptsType$inboundSchema,
5788
+ type: UpdatePromptPromptsResponseType$inboundSchema,
5460
5789
  owner: z.string(),
5461
5790
  domain_id: z.string(),
5462
5791
  created: z.string(),
@@ -1472,7 +1472,7 @@ export const RequestBodyTools$outboundSchema: z.ZodType<
1472
1472
  z.ZodTypeDef,
1473
1473
  RequestBodyTools
1474
1474
  > = z.object({
1475
- id: z.string().default("01KTV2HXMFB3G4GQHEJKDDE9GG"),
1475
+ id: z.string().default("01KTVC27VE1J864K02S9VA0XPQ"),
1476
1476
  name: z.string(),
1477
1477
  description: z.string().optional(),
1478
1478
  schema: z.lazy(() => UpdateToolRequestBodyToolsSchema$outboundSchema),
@@ -2193,7 +2193,7 @@ export const UpdateToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
2193
2193
  z.ZodTypeDef,
2194
2194
  unknown
2195
2195
  > = z.object({
2196
- _id: z.string().default("tool_01KTV2HXM5AE54632FFB7ZK0FH"),
2196
+ _id: z.string().default("tool_01KTVC27V6406J5EGB7S9YQ0T2"),
2197
2197
  path: z.string(),
2198
2198
  key: z.string(),
2199
2199
  display_name: z.string().optional(),
@@ -2296,7 +2296,7 @@ export const UpdateToolResponseBodyTools$inboundSchema: z.ZodType<
2296
2296
  z.ZodTypeDef,
2297
2297
  unknown
2298
2298
  > = z.object({
2299
- id: z.string().default("01KTV2HXM43KMJAXPZ3DBM0RVF"),
2299
+ id: z.string().default("01KTVC27V5AN7WMT22ASFN3JM1"),
2300
2300
  name: z.string(),
2301
2301
  description: z.string().optional(),
2302
2302
  schema: z.lazy(() => UpdateToolResponseBodyToolsSchema$inboundSchema),
@@ -2354,7 +2354,7 @@ export const UpdateToolResponseBodyMCPTool$inboundSchema: z.ZodType<
2354
2354
  z.ZodTypeDef,
2355
2355
  unknown
2356
2356
  > = z.object({
2357
- _id: z.string().default("tool_01KTV2HXM2AVQAM8ZXPA6TF80E"),
2357
+ _id: z.string().default("tool_01KTVC27V4M3YFA6PX8NVA9P24"),
2358
2358
  path: z.string(),
2359
2359
  key: z.string(),
2360
2360
  display_name: z.string().optional(),
@@ -2543,7 +2543,7 @@ export const UpdateToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
2543
2543
  z.ZodTypeDef,
2544
2544
  unknown
2545
2545
  > = z.object({
2546
- _id: z.string().default("tool_01KTV2HXKZSW6GBF1YSWBK7NJ4"),
2546
+ _id: z.string().default("tool_01KTVC27V160W7ABHWFT68STGM"),
2547
2547
  path: z.string(),
2548
2548
  key: z.string(),
2549
2549
  display_name: z.string().optional(),
@@ -2638,7 +2638,7 @@ export const UpdateToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
2638
2638
  z.ZodTypeDef,
2639
2639
  unknown
2640
2640
  > = z.object({
2641
- _id: z.string().default("tool_01KTV2HXKXD691264A8ZAGTH3P"),
2641
+ _id: z.string().default("tool_01KTVC27TZHQDSPS2GB9K9NXMW"),
2642
2642
  path: z.string(),
2643
2643
  key: z.string(),
2644
2644
  display_name: z.string().optional(),
@@ -2741,7 +2741,7 @@ export const UpdateToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
2741
2741
  z.ZodTypeDef,
2742
2742
  unknown
2743
2743
  > = z.object({
2744
- _id: z.string().default("tool_01KTV2HXKVSZ8NDHP25G0N4SSV"),
2744
+ _id: z.string().default("tool_01KTVC27TXVYNWWMVAGD906WZ7"),
2745
2745
  path: z.string(),
2746
2746
  key: z.string(),
2747
2747
  display_name: z.string().optional(),
@@ -45,10 +45,10 @@ export class Feedback extends ClientSDK {
45
45
  }
46
46
 
47
47
  /**
48
- * Create a new project
48
+ * Create tool
49
49
  *
50
50
  * @remarks
51
- * Creates a project in the current workspace. Projects are workspace-level containers for resources such as skills, deployments, datasets, rules, and related team access.
51
+ * Creates a new tool in the workspace.
52
52
  */
53
53
  async create(
54
54
  request?: operations.PostV2FeedbackRequestBody | undefined,