@orq-ai/node 4.11.0-rc.4 → 4.11.0-rc.5

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 (160) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +2 -2
  3. package/lib/config.js +2 -2
  4. package/models/components/modelmetadata.d.ts +2 -0
  5. package/models/components/modelmetadata.d.ts.map +1 -1
  6. package/models/components/modelmetadata.js +4 -0
  7. package/models/components/modelmetadata.js.map +1 -1
  8. package/models/components/reasoning.d.ts +40 -2
  9. package/models/components/reasoning.d.ts.map +1 -1
  10. package/models/components/reasoning.js +26 -3
  11. package/models/components/reasoning.js.map +1 -1
  12. package/models/components/reasoningparam.d.ts +40 -2
  13. package/models/components/reasoningparam.d.ts.map +1 -1
  14. package/models/components/reasoningparam.js +28 -3
  15. package/models/components/reasoningparam.js.map +1 -1
  16. package/models/components/reasoningpart.js +1 -1
  17. package/models/operations/createagentrequest.d.ts +298 -4
  18. package/models/operations/createagentrequest.d.ts.map +1 -1
  19. package/models/operations/createagentrequest.js +163 -9
  20. package/models/operations/createagentrequest.js.map +1 -1
  21. package/models/operations/createchatcompletion.d.ts +81 -4
  22. package/models/operations/createchatcompletion.d.ts.map +1 -1
  23. package/models/operations/createchatcompletion.js +45 -7
  24. package/models/operations/createchatcompletion.js.map +1 -1
  25. package/models/operations/createdataset.js +1 -1
  26. package/models/operations/createdatasetitem.js +4 -4
  27. package/models/operations/createdatasource.js +1 -1
  28. package/models/operations/createeval.js +16 -16
  29. package/models/operations/createprompt.d.ts +225 -12
  30. package/models/operations/createprompt.d.ts.map +1 -1
  31. package/models/operations/createprompt.js +124 -13
  32. package/models/operations/createprompt.js.map +1 -1
  33. package/models/operations/createrouterresponse.d.ts +353 -8
  34. package/models/operations/createrouterresponse.d.ts.map +1 -1
  35. package/models/operations/createrouterresponse.js +198 -7
  36. package/models/operations/createrouterresponse.js.map +1 -1
  37. package/models/operations/createtool.js +6 -6
  38. package/models/operations/deploymentgetconfig.d.ts +70 -4
  39. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  40. package/models/operations/deploymentgetconfig.js +43 -8
  41. package/models/operations/deploymentgetconfig.js.map +1 -1
  42. package/models/operations/deployments.d.ts +74 -8
  43. package/models/operations/deployments.d.ts.map +1 -1
  44. package/models/operations/deployments.js +43 -8
  45. package/models/operations/deployments.js.map +1 -1
  46. package/models/operations/getallprompts.d.ts +140 -4
  47. package/models/operations/getallprompts.d.ts.map +1 -1
  48. package/models/operations/getallprompts.js +79 -6
  49. package/models/operations/getallprompts.js.map +1 -1
  50. package/models/operations/getalltools.js +6 -6
  51. package/models/operations/getevals.js +16 -16
  52. package/models/operations/getoneprompt.d.ts +140 -4
  53. package/models/operations/getoneprompt.d.ts.map +1 -1
  54. package/models/operations/getoneprompt.js +79 -6
  55. package/models/operations/getoneprompt.js.map +1 -1
  56. package/models/operations/getpromptversion.d.ts +140 -4
  57. package/models/operations/getpromptversion.d.ts.map +1 -1
  58. package/models/operations/getpromptversion.js +78 -6
  59. package/models/operations/getpromptversion.js.map +1 -1
  60. package/models/operations/getv2humanevalsets.js +2 -2
  61. package/models/operations/getv2humanevalsetsid.js +2 -2
  62. package/models/operations/listagents.d.ts +140 -0
  63. package/models/operations/listagents.d.ts.map +1 -1
  64. package/models/operations/listagents.js +79 -3
  65. package/models/operations/listagents.js.map +1 -1
  66. package/models/operations/listdatasetdatapoints.js +4 -4
  67. package/models/operations/listdatasets.js +1 -1
  68. package/models/operations/listdatasources.js +1 -1
  69. package/models/operations/listknowledgebases.d.ts +3 -0
  70. package/models/operations/listknowledgebases.d.ts.map +1 -1
  71. package/models/operations/listknowledgebases.js +1 -1
  72. package/models/operations/listknowledgebases.js.map +1 -1
  73. package/models/operations/listpromptversions.d.ts +140 -4
  74. package/models/operations/listpromptversions.d.ts.map +1 -1
  75. package/models/operations/listpromptversions.js +79 -6
  76. package/models/operations/listpromptversions.js.map +1 -1
  77. package/models/operations/patchv2humanevalsetsid.js +2 -2
  78. package/models/operations/postv2feedbackevaluation.js +3 -3
  79. package/models/operations/postv2humanevalsets.js +2 -2
  80. package/models/operations/retrieveagentrequest.d.ts +140 -0
  81. package/models/operations/retrieveagentrequest.d.ts.map +1 -1
  82. package/models/operations/retrieveagentrequest.js +81 -2
  83. package/models/operations/retrieveagentrequest.js.map +1 -1
  84. package/models/operations/retrievedatapoint.js +4 -4
  85. package/models/operations/retrievedataset.js +1 -1
  86. package/models/operations/retrievedatasource.js +1 -1
  87. package/models/operations/retrievetool.js +6 -6
  88. package/models/operations/runagent.d.ts +154 -0
  89. package/models/operations/runagent.d.ts.map +1 -1
  90. package/models/operations/runagent.js +80 -5
  91. package/models/operations/runagent.js.map +1 -1
  92. package/models/operations/streamrunagent.d.ts +154 -0
  93. package/models/operations/streamrunagent.d.ts.map +1 -1
  94. package/models/operations/streamrunagent.js +82 -4
  95. package/models/operations/streamrunagent.js.map +1 -1
  96. package/models/operations/updateagent.d.ts +298 -4
  97. package/models/operations/updateagent.d.ts.map +1 -1
  98. package/models/operations/updateagent.js +162 -9
  99. package/models/operations/updateagent.js.map +1 -1
  100. package/models/operations/updatedatapoint.js +4 -4
  101. package/models/operations/updatedataset.js +1 -1
  102. package/models/operations/updatedatasource.js +1 -1
  103. package/models/operations/updateeval.js +16 -16
  104. package/models/operations/updateprompt.d.ts +225 -12
  105. package/models/operations/updateprompt.d.ts.map +1 -1
  106. package/models/operations/updateprompt.js +125 -14
  107. package/models/operations/updateprompt.js.map +1 -1
  108. package/models/operations/updatetool.js +7 -7
  109. package/package.json +5 -5
  110. package/sdk/feedback.d.ts +1 -4
  111. package/sdk/feedback.d.ts.map +1 -1
  112. package/sdk/feedback.js +1 -4
  113. package/sdk/feedback.js.map +1 -1
  114. package/src/lib/config.ts +2 -2
  115. package/src/models/components/modelmetadata.ts +6 -0
  116. package/src/models/components/reasoning.ts +50 -4
  117. package/src/models/components/reasoningparam.ts +48 -4
  118. package/src/models/components/reasoningpart.ts +1 -1
  119. package/src/models/operations/createagentrequest.ts +460 -8
  120. package/src/models/operations/createchatcompletion.ts +129 -10
  121. package/src/models/operations/createdataset.ts +1 -1
  122. package/src/models/operations/createdatasetitem.ts +4 -4
  123. package/src/models/operations/createdatasource.ts +1 -1
  124. package/src/models/operations/createeval.ts +16 -16
  125. package/src/models/operations/createprompt.ts +356 -27
  126. package/src/models/operations/createrouterresponse.ts +540 -16
  127. package/src/models/operations/createtool.ts +6 -6
  128. package/src/models/operations/deploymentgetconfig.ts +105 -8
  129. package/src/models/operations/deployments.ts +113 -16
  130. package/src/models/operations/getallprompts.ts +210 -8
  131. package/src/models/operations/getalltools.ts +6 -6
  132. package/src/models/operations/getevals.ts +16 -16
  133. package/src/models/operations/getoneprompt.ts +208 -8
  134. package/src/models/operations/getpromptversion.ts +212 -8
  135. package/src/models/operations/getv2humanevalsets.ts +2 -2
  136. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  137. package/src/models/operations/listagents.ts +215 -0
  138. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  139. package/src/models/operations/listdatasets.ts +1 -1
  140. package/src/models/operations/listdatasources.ts +1 -1
  141. package/src/models/operations/listknowledgebases.ts +4 -1
  142. package/src/models/operations/listpromptversions.ts +212 -8
  143. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  144. package/src/models/operations/postv2feedbackevaluation.ts +3 -3
  145. package/src/models/operations/postv2humanevalsets.ts +2 -2
  146. package/src/models/operations/retrieveagentrequest.ts +222 -0
  147. package/src/models/operations/retrievedatapoint.ts +4 -4
  148. package/src/models/operations/retrievedataset.ts +1 -1
  149. package/src/models/operations/retrievedatasource.ts +1 -1
  150. package/src/models/operations/retrievetool.ts +6 -6
  151. package/src/models/operations/runagent.ts +236 -1
  152. package/src/models/operations/streamrunagent.ts +242 -1
  153. package/src/models/operations/updateagent.ts +464 -9
  154. package/src/models/operations/updatedatapoint.ts +4 -4
  155. package/src/models/operations/updatedataset.ts +1 -1
  156. package/src/models/operations/updatedatasource.ts +1 -1
  157. package/src/models/operations/updateeval.ts +16 -16
  158. package/src/models/operations/updateprompt.ts +356 -27
  159. package/src/models/operations/updatetool.ts +7 -7
  160. package/src/sdk/feedback.ts +1 -4
@@ -535,6 +535,61 @@ export type UpdatePromptTimeout = {
535
535
  */
536
536
  callTimeout: number;
537
537
  };
538
+ /**
539
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
540
+ */
541
+ export declare const UpdatePromptPromptsType: {
542
+ readonly Ephemeral: "ephemeral";
543
+ };
544
+ /**
545
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
546
+ */
547
+ export type UpdatePromptPromptsType = ClosedEnum<typeof UpdatePromptPromptsType>;
548
+ /**
549
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
550
+ *
551
+ * @remarks
552
+ *
553
+ * - `5m`: 5 minutes
554
+ * - `1h`: 1 hour
555
+ *
556
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
557
+ */
558
+ export declare const UpdatePromptTtl: {
559
+ readonly Fivem: "5m";
560
+ readonly Oneh: "1h";
561
+ };
562
+ /**
563
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
564
+ *
565
+ * @remarks
566
+ *
567
+ * - `5m`: 5 minutes
568
+ * - `1h`: 1 hour
569
+ *
570
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
571
+ */
572
+ export type UpdatePromptTtl = ClosedEnum<typeof UpdatePromptTtl>;
573
+ /**
574
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
575
+ */
576
+ export type UpdatePromptCacheControl = {
577
+ /**
578
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
579
+ */
580
+ type: UpdatePromptPromptsType;
581
+ /**
582
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
583
+ *
584
+ * @remarks
585
+ *
586
+ * - `5m`: 5 minutes
587
+ * - `1h`: 1 hour
588
+ *
589
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
590
+ */
591
+ ttl?: UpdatePromptTtl | undefined;
592
+ };
538
593
  /**
539
594
  * Prompt configuration with model and messages. Use this to update the prompt.
540
595
  */
@@ -669,6 +724,14 @@ export type UpdatePromptPromptInput = {
669
724
  * 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.
670
725
  */
671
726
  timeout?: UpdatePromptTimeout | undefined;
727
+ /**
728
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
729
+ */
730
+ cacheControl?: UpdatePromptCacheControl | undefined;
731
+ /**
732
+ * Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the legacy `user` field for prompt caching.
733
+ */
734
+ promptCacheKey?: string | undefined;
672
735
  };
673
736
  export declare const UpdatePromptUseCases: {
674
737
  readonly AgentsSimulations: "Agents simulations";
@@ -757,10 +820,10 @@ export type UpdatePromptRequest = {
757
820
  id: string;
758
821
  requestBody?: UpdatePromptRequestBody | undefined;
759
822
  };
760
- export declare const UpdatePromptPromptsType: {
823
+ export declare const UpdatePromptPromptsResponseType: {
761
824
  readonly Prompt: "prompt";
762
825
  };
763
- export type UpdatePromptPromptsType = ClosedEnum<typeof UpdatePromptPromptsType>;
826
+ export type UpdatePromptPromptsResponseType = ClosedEnum<typeof UpdatePromptPromptsResponseType>;
764
827
  /**
765
828
  * The modality of the model
766
829
  */
@@ -858,6 +921,61 @@ export type UpdatePromptResponseFormat1 = {
858
921
  * Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
859
922
  */
860
923
  export type UpdatePromptPromptsResponseResponseFormat = UpdatePromptResponseFormat1 | UpdatePromptResponseFormat2 | UpdatePromptResponseFormat3 | UpdatePromptResponseFormat4 | UpdatePromptResponseFormat5 | UpdatePromptResponseFormat6;
924
+ /**
925
+ * Create a cache control breakpoint. Accepts only the value "ephemeral".
926
+ */
927
+ export declare const UpdatePromptPromptsResponse200ApplicationJSONResponseBodyType: {
928
+ readonly Ephemeral: "ephemeral";
929
+ };
930
+ /**
931
+ * Create a cache control breakpoint. Accepts only the value "ephemeral".
932
+ */
933
+ export type UpdatePromptPromptsResponse200ApplicationJSONResponseBodyType = ClosedEnum<typeof UpdatePromptPromptsResponse200ApplicationJSONResponseBodyType>;
934
+ /**
935
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
936
+ *
937
+ * @remarks
938
+ *
939
+ * - `5m`: 5 minutes
940
+ * - `1h`: 1 hour
941
+ *
942
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
943
+ */
944
+ export declare const UpdatePromptPromptsResponseTtl: {
945
+ readonly Fivem: "5m";
946
+ readonly Oneh: "1h";
947
+ };
948
+ /**
949
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
950
+ *
951
+ * @remarks
952
+ *
953
+ * - `5m`: 5 minutes
954
+ * - `1h`: 1 hour
955
+ *
956
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
957
+ */
958
+ export type UpdatePromptPromptsResponseTtl = ClosedEnum<typeof UpdatePromptPromptsResponseTtl>;
959
+ /**
960
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
961
+ */
962
+ export type UpdatePromptPromptsResponseCacheControl = {
963
+ /**
964
+ * Create a cache control breakpoint. Accepts only the value "ephemeral".
965
+ */
966
+ type: UpdatePromptPromptsResponse200ApplicationJSONResponseBodyType;
967
+ /**
968
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
969
+ *
970
+ * @remarks
971
+ *
972
+ * - `5m`: 5 minutes
973
+ * - `1h`: 1 hour
974
+ *
975
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
976
+ */
977
+ ttl: UpdatePromptPromptsResponseTtl;
978
+ };
861
979
  /**
862
980
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
863
981
  */
@@ -983,6 +1101,10 @@ export type UpdatePromptModelParameters = {
983
1101
  * Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
984
1102
  */
985
1103
  responseFormat?: UpdatePromptResponseFormat1 | UpdatePromptResponseFormat2 | UpdatePromptResponseFormat3 | UpdatePromptResponseFormat4 | UpdatePromptResponseFormat5 | UpdatePromptResponseFormat6 | null | undefined;
1104
+ /**
1105
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
1106
+ */
1107
+ cacheControl?: UpdatePromptPromptsResponseCacheControl | null | undefined;
986
1108
  /**
987
1109
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
988
1110
  */
@@ -1122,10 +1244,10 @@ export type UpdatePromptContentPromptsResponse2 = UpdatePrompt21 | UpdatePrompt2
1122
1244
  * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts. Can be null for tool messages in certain scenarios.
1123
1245
  */
1124
1246
  export type UpdatePromptContent = string | Array<UpdatePrompt21 | UpdatePrompt22 | UpdatePrompt23>;
1125
- export declare const UpdatePromptPromptsResponse200Type: {
1247
+ export declare const UpdatePromptPromptsResponse200ApplicationJSONResponseBodyPromptConfigType: {
1126
1248
  readonly Function: "function";
1127
1249
  };
1128
- export type UpdatePromptPromptsResponse200Type = ClosedEnum<typeof UpdatePromptPromptsResponse200Type>;
1250
+ export type UpdatePromptPromptsResponse200ApplicationJSONResponseBodyPromptConfigType = ClosedEnum<typeof UpdatePromptPromptsResponse200ApplicationJSONResponseBodyPromptConfigType>;
1129
1251
  export type UpdatePromptFunction = {
1130
1252
  name: string;
1131
1253
  /**
@@ -1136,7 +1258,7 @@ export type UpdatePromptFunction = {
1136
1258
  export type UpdatePromptToolCalls = {
1137
1259
  id?: string | undefined;
1138
1260
  index?: number | undefined;
1139
- type: UpdatePromptPromptsResponse200Type;
1261
+ type: UpdatePromptPromptsResponse200ApplicationJSONResponseBodyPromptConfigType;
1140
1262
  function: UpdatePromptFunction;
1141
1263
  };
1142
1264
  export type UpdatePromptPromptsMessages = {
@@ -1403,10 +1525,10 @@ export type UpdatePromptPromptsRetry = {
1403
1525
  */
1404
1526
  onCodes?: Array<number> | undefined;
1405
1527
  };
1406
- export declare const UpdatePromptPromptsResponseType: {
1528
+ export declare const UpdatePromptPromptsResponse200Type: {
1407
1529
  readonly ExactMatch: "exact_match";
1408
1530
  };
1409
- export type UpdatePromptPromptsResponseType = ClosedEnum<typeof UpdatePromptPromptsResponseType>;
1531
+ export type UpdatePromptPromptsResponse200Type = ClosedEnum<typeof UpdatePromptPromptsResponse200Type>;
1410
1532
  /**
1411
1533
  * Cache configuration for the request.
1412
1534
  */
@@ -1415,7 +1537,7 @@ export type UpdatePromptPromptsCache = {
1415
1537
  * Time to live for cached responses in seconds. Maximum 259200 seconds (3 days).
1416
1538
  */
1417
1539
  ttl: number;
1418
- type: UpdatePromptPromptsResponseType;
1540
+ type: UpdatePromptPromptsResponse200Type;
1419
1541
  };
1420
1542
  export declare const UpdatePromptLoadBalancerPromptsType: {
1421
1543
  readonly WeightBased: "weight_based";
@@ -1448,6 +1570,61 @@ export type UpdatePromptPromptsTimeout = {
1448
1570
  */
1449
1571
  callTimeout: number;
1450
1572
  };
1573
+ /**
1574
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1575
+ */
1576
+ export declare const UpdatePromptPromptsResponse200ApplicationJSONType: {
1577
+ readonly Ephemeral: "ephemeral";
1578
+ };
1579
+ /**
1580
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1581
+ */
1582
+ export type UpdatePromptPromptsResponse200ApplicationJSONType = ClosedEnum<typeof UpdatePromptPromptsResponse200ApplicationJSONType>;
1583
+ /**
1584
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
1585
+ *
1586
+ * @remarks
1587
+ *
1588
+ * - `5m`: 5 minutes
1589
+ * - `1h`: 1 hour
1590
+ *
1591
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1592
+ */
1593
+ export declare const UpdatePromptPromptsTtl: {
1594
+ readonly Fivem: "5m";
1595
+ readonly Oneh: "1h";
1596
+ };
1597
+ /**
1598
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
1599
+ *
1600
+ * @remarks
1601
+ *
1602
+ * - `5m`: 5 minutes
1603
+ * - `1h`: 1 hour
1604
+ *
1605
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1606
+ */
1607
+ export type UpdatePromptPromptsTtl = ClosedEnum<typeof UpdatePromptPromptsTtl>;
1608
+ /**
1609
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
1610
+ */
1611
+ export type UpdatePromptPromptsCacheControl = {
1612
+ /**
1613
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
1614
+ */
1615
+ type: UpdatePromptPromptsResponse200ApplicationJSONType;
1616
+ /**
1617
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
1618
+ *
1619
+ * @remarks
1620
+ *
1621
+ * - `5m`: 5 minutes
1622
+ * - `1h`: 1 hour
1623
+ *
1624
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
1625
+ */
1626
+ ttl: UpdatePromptPromptsTtl;
1627
+ };
1451
1628
  export type UpdatePromptContentPromptsResponse200ApplicationJSONResponseBody2 = components.TextContentPartSchema;
1452
1629
  /**
1453
1630
  * The contents of the tool message.
@@ -1837,6 +2014,14 @@ export type UpdatePromptPromptField = {
1837
2014
  * 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.
1838
2015
  */
1839
2016
  timeout?: UpdatePromptPromptsTimeout | undefined;
2017
+ /**
2018
+ * Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
2019
+ */
2020
+ cacheControl?: UpdatePromptPromptsCacheControl | undefined;
2021
+ /**
2022
+ * Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the legacy `user` field for prompt caching.
2023
+ */
2024
+ promptCacheKey?: string | undefined;
1840
2025
  /**
1841
2026
  * Array of messages that make up the conversation. Each message has a role (system, user, assistant, or tool) and content.
1842
2027
  */
@@ -1901,7 +2086,7 @@ export type UpdatePromptPromptsMetadata = {
1901
2086
  */
1902
2087
  export type UpdatePromptPrompt = {
1903
2088
  id: string;
1904
- type: UpdatePromptPromptsType;
2089
+ type: UpdatePromptPromptsResponseType;
1905
2090
  owner: string;
1906
2091
  domainId: string;
1907
2092
  created: string;
@@ -2247,6 +2432,18 @@ export type UpdatePromptTimeout$Outbound = {
2247
2432
  export declare const UpdatePromptTimeout$outboundSchema: z.ZodType<UpdatePromptTimeout$Outbound, z.ZodTypeDef, UpdatePromptTimeout>;
2248
2433
  export declare function updatePromptTimeoutToJSON(updatePromptTimeout: UpdatePromptTimeout): string;
2249
2434
  /** @internal */
2435
+ export declare const UpdatePromptPromptsType$outboundSchema: z.ZodNativeEnum<typeof UpdatePromptPromptsType>;
2436
+ /** @internal */
2437
+ export declare const UpdatePromptTtl$outboundSchema: z.ZodNativeEnum<typeof UpdatePromptTtl>;
2438
+ /** @internal */
2439
+ export type UpdatePromptCacheControl$Outbound = {
2440
+ type: string;
2441
+ ttl: string;
2442
+ };
2443
+ /** @internal */
2444
+ export declare const UpdatePromptCacheControl$outboundSchema: z.ZodType<UpdatePromptCacheControl$Outbound, z.ZodTypeDef, UpdatePromptCacheControl>;
2445
+ export declare function updatePromptCacheControlToJSON(updatePromptCacheControl: UpdatePromptCacheControl): string;
2446
+ /** @internal */
2250
2447
  export type UpdatePromptPromptInput$Outbound = {
2251
2448
  messages?: Array<UpdatePromptMessagesSystemMessage$Outbound | UpdatePromptMessagesUserMessage$Outbound | UpdatePromptMessagesAssistantMessage$Outbound | UpdatePromptMessagesToolMessage$Outbound> | undefined;
2252
2449
  model?: string | null | undefined;
@@ -2278,6 +2475,8 @@ export type UpdatePromptPromptInput$Outbound = {
2278
2475
  cache?: UpdatePromptCache$Outbound | undefined;
2279
2476
  load_balancer?: UpdatePromptLoadBalancer1$Outbound | undefined;
2280
2477
  timeout?: UpdatePromptTimeout$Outbound | undefined;
2478
+ cache_control?: UpdatePromptCacheControl$Outbound | undefined;
2479
+ prompt_cache_key?: string | undefined;
2281
2480
  };
2282
2481
  /** @internal */
2283
2482
  export declare const UpdatePromptPromptInput$outboundSchema: z.ZodType<UpdatePromptPromptInput$Outbound, z.ZodTypeDef, UpdatePromptPromptInput>;
@@ -2320,7 +2519,7 @@ export type UpdatePromptRequest$Outbound = {
2320
2519
  export declare const UpdatePromptRequest$outboundSchema: z.ZodType<UpdatePromptRequest$Outbound, z.ZodTypeDef, UpdatePromptRequest>;
2321
2520
  export declare function updatePromptRequestToJSON(updatePromptRequest: UpdatePromptRequest): string;
2322
2521
  /** @internal */
2323
- export declare const UpdatePromptPromptsType$inboundSchema: z.ZodNativeEnum<typeof UpdatePromptPromptsType>;
2522
+ export declare const UpdatePromptPromptsResponseType$inboundSchema: z.ZodNativeEnum<typeof UpdatePromptPromptsResponseType>;
2324
2523
  /** @internal */
2325
2524
  export declare const UpdatePromptModelType$inboundSchema: z.ZodNativeEnum<typeof UpdatePromptModelType>;
2326
2525
  /** @internal */
@@ -2353,6 +2552,13 @@ export declare function updatePromptResponseFormat1FromJSON(jsonString: string):
2353
2552
  export declare const UpdatePromptPromptsResponseResponseFormat$inboundSchema: z.ZodType<UpdatePromptPromptsResponseResponseFormat, z.ZodTypeDef, unknown>;
2354
2553
  export declare function updatePromptPromptsResponseResponseFormatFromJSON(jsonString: string): SafeParseResult<UpdatePromptPromptsResponseResponseFormat, SDKValidationError>;
2355
2554
  /** @internal */
2555
+ export declare const UpdatePromptPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema: z.ZodNativeEnum<typeof UpdatePromptPromptsResponse200ApplicationJSONResponseBodyType>;
2556
+ /** @internal */
2557
+ export declare const UpdatePromptPromptsResponseTtl$inboundSchema: z.ZodNativeEnum<typeof UpdatePromptPromptsResponseTtl>;
2558
+ /** @internal */
2559
+ export declare const UpdatePromptPromptsResponseCacheControl$inboundSchema: z.ZodType<UpdatePromptPromptsResponseCacheControl, z.ZodTypeDef, unknown>;
2560
+ export declare function updatePromptPromptsResponseCacheControlFromJSON(jsonString: string): SafeParseResult<UpdatePromptPromptsResponseCacheControl, SDKValidationError>;
2561
+ /** @internal */
2356
2562
  export declare const UpdatePromptPhotoRealVersion$inboundSchema: z.ZodNativeEnum<typeof UpdatePromptPhotoRealVersion>;
2357
2563
  /** @internal */
2358
2564
  export declare const UpdatePromptEncodingFormat$inboundSchema: z.ZodNativeEnum<typeof UpdatePromptEncodingFormat>;
@@ -2391,7 +2597,7 @@ export declare function updatePromptContentPromptsResponse2FromJSON(jsonString:
2391
2597
  export declare const UpdatePromptContent$inboundSchema: z.ZodType<UpdatePromptContent, z.ZodTypeDef, unknown>;
2392
2598
  export declare function updatePromptContentFromJSON(jsonString: string): SafeParseResult<UpdatePromptContent, SDKValidationError>;
2393
2599
  /** @internal */
2394
- export declare const UpdatePromptPromptsResponse200Type$inboundSchema: z.ZodNativeEnum<typeof UpdatePromptPromptsResponse200Type>;
2600
+ export declare const UpdatePromptPromptsResponse200ApplicationJSONResponseBodyPromptConfigType$inboundSchema: z.ZodNativeEnum<typeof UpdatePromptPromptsResponse200ApplicationJSONResponseBodyPromptConfigType>;
2395
2601
  /** @internal */
2396
2602
  export declare const UpdatePromptFunction$inboundSchema: z.ZodType<UpdatePromptFunction, z.ZodTypeDef, unknown>;
2397
2603
  export declare function updatePromptFunctionFromJSON(jsonString: string): SafeParseResult<UpdatePromptFunction, SDKValidationError>;
@@ -2469,7 +2675,7 @@ export declare function updatePromptPromptsFallbacksFromJSON(jsonString: string)
2469
2675
  export declare const UpdatePromptPromptsRetry$inboundSchema: z.ZodType<UpdatePromptPromptsRetry, z.ZodTypeDef, unknown>;
2470
2676
  export declare function updatePromptPromptsRetryFromJSON(jsonString: string): SafeParseResult<UpdatePromptPromptsRetry, SDKValidationError>;
2471
2677
  /** @internal */
2472
- export declare const UpdatePromptPromptsResponseType$inboundSchema: z.ZodNativeEnum<typeof UpdatePromptPromptsResponseType>;
2678
+ export declare const UpdatePromptPromptsResponse200Type$inboundSchema: z.ZodNativeEnum<typeof UpdatePromptPromptsResponse200Type>;
2473
2679
  /** @internal */
2474
2680
  export declare const UpdatePromptPromptsCache$inboundSchema: z.ZodType<UpdatePromptPromptsCache, z.ZodTypeDef, unknown>;
2475
2681
  export declare function updatePromptPromptsCacheFromJSON(jsonString: string): SafeParseResult<UpdatePromptPromptsCache, SDKValidationError>;
@@ -2488,6 +2694,13 @@ export declare function updatePromptPromptsLoadBalancerFromJSON(jsonString: stri
2488
2694
  export declare const UpdatePromptPromptsTimeout$inboundSchema: z.ZodType<UpdatePromptPromptsTimeout, z.ZodTypeDef, unknown>;
2489
2695
  export declare function updatePromptPromptsTimeoutFromJSON(jsonString: string): SafeParseResult<UpdatePromptPromptsTimeout, SDKValidationError>;
2490
2696
  /** @internal */
2697
+ export declare const UpdatePromptPromptsResponse200ApplicationJSONType$inboundSchema: z.ZodNativeEnum<typeof UpdatePromptPromptsResponse200ApplicationJSONType>;
2698
+ /** @internal */
2699
+ export declare const UpdatePromptPromptsTtl$inboundSchema: z.ZodNativeEnum<typeof UpdatePromptPromptsTtl>;
2700
+ /** @internal */
2701
+ export declare const UpdatePromptPromptsCacheControl$inboundSchema: z.ZodType<UpdatePromptPromptsCacheControl, z.ZodTypeDef, unknown>;
2702
+ export declare function updatePromptPromptsCacheControlFromJSON(jsonString: string): SafeParseResult<UpdatePromptPromptsCacheControl, SDKValidationError>;
2703
+ /** @internal */
2491
2704
  export declare const UpdatePromptContentPromptsResponse200ApplicationJSONResponseBody2$inboundSchema: z.ZodType<UpdatePromptContentPromptsResponse200ApplicationJSONResponseBody2, z.ZodTypeDef, unknown>;
2492
2705
  export declare function updatePromptContentPromptsResponse200ApplicationJSONResponseBody2FromJSON(jsonString: string): SafeParseResult<UpdatePromptContentPromptsResponse200ApplicationJSONResponseBody2, SDKValidationError>;
2493
2706
  /** @internal */