@orq-ai/node 4.10.0-rc.45 → 4.10.0-rc.47

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 (149) hide show
  1. package/README.md +36 -41
  2. package/funcs/annotationsCreate.d.ts +3 -0
  3. package/funcs/annotationsCreate.d.ts.map +1 -1
  4. package/funcs/annotationsCreate.js +3 -0
  5. package/funcs/annotationsCreate.js.map +1 -1
  6. package/funcs/annotationsDelete.d.ts +3 -0
  7. package/funcs/annotationsDelete.d.ts.map +1 -1
  8. package/funcs/annotationsDelete.js +3 -0
  9. package/funcs/annotationsDelete.js.map +1 -1
  10. package/funcs/deploymentsInvoke.d.ts +1 -2
  11. package/funcs/deploymentsInvoke.d.ts.map +1 -1
  12. package/funcs/deploymentsInvoke.js +1 -2
  13. package/funcs/deploymentsInvoke.js.map +1 -1
  14. package/jsr.json +1 -1
  15. package/lib/config.d.ts +3 -3
  16. package/lib/config.js +3 -3
  17. package/models/components/agentthoughtstreamingevent.d.ts +12 -12
  18. package/models/components/agentthoughtstreamingevent.d.ts.map +1 -1
  19. package/models/components/agentthoughtstreamingevent.js +17 -17
  20. package/models/components/agentthoughtstreamingevent.js.map +1 -1
  21. package/models/components/index.d.ts +0 -1
  22. package/models/components/index.d.ts.map +1 -1
  23. package/models/components/index.js +0 -1
  24. package/models/components/index.js.map +1 -1
  25. package/models/components/modelmetadata.d.ts +38 -0
  26. package/models/components/modelmetadata.d.ts.map +1 -1
  27. package/models/components/modelmetadata.js +72 -0
  28. package/models/components/modelmetadata.js.map +1 -1
  29. package/models/components/reasoningpart.js +1 -1
  30. package/models/operations/createdataset.js +1 -1
  31. package/models/operations/createdatasetitem.js +4 -4
  32. package/models/operations/createdatasource.js +1 -1
  33. package/models/operations/createeval.d.ts +67 -210
  34. package/models/operations/createeval.d.ts.map +1 -1
  35. package/models/operations/createeval.js +84 -201
  36. package/models/operations/createeval.js.map +1 -1
  37. package/models/operations/createtool.d.ts +10 -10
  38. package/models/operations/createtool.d.ts.map +1 -1
  39. package/models/operations/createtool.js +15 -15
  40. package/models/operations/createtool.js.map +1 -1
  41. package/models/operations/deploymentgetconfig.d.ts +440 -440
  42. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  43. package/models/operations/deploymentgetconfig.js +479 -484
  44. package/models/operations/deploymentgetconfig.js.map +1 -1
  45. package/models/operations/deploymentinvoke.d.ts +1568 -8
  46. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  47. package/models/operations/deploymentinvoke.js +1137 -12
  48. package/models/operations/deploymentinvoke.js.map +1 -1
  49. package/models/operations/deploymentstream.d.ts +56 -56
  50. package/models/operations/deploymentstream.d.ts.map +1 -1
  51. package/models/operations/deploymentstream.js +72 -73
  52. package/models/operations/deploymentstream.js.map +1 -1
  53. package/models/operations/getalltools.js +6 -6
  54. package/models/operations/getevals.js +16 -16
  55. package/models/operations/getv2humanevalsets.js +2 -2
  56. package/models/operations/getv2humanevalsetsid.js +2 -2
  57. package/models/operations/index.d.ts +0 -1
  58. package/models/operations/index.d.ts.map +1 -1
  59. package/models/operations/index.js +0 -1
  60. package/models/operations/index.js.map +1 -1
  61. package/models/operations/listdatasetdatapoints.js +4 -4
  62. package/models/operations/listdatasets.js +1 -1
  63. package/models/operations/listdatasources.js +1 -1
  64. package/models/operations/patchv2humanevalsetsid.js +2 -2
  65. package/models/operations/postv2feedbackevaluation.js +3 -3
  66. package/models/operations/postv2humanevalsets.js +2 -2
  67. package/models/operations/retrievedatapoint.js +4 -4
  68. package/models/operations/retrievedataset.js +1 -1
  69. package/models/operations/retrievedatasource.js +1 -1
  70. package/models/operations/retrievetool.js +6 -6
  71. package/models/operations/runagent.js +1 -1
  72. package/models/operations/streamrunagent.js +1 -1
  73. package/models/operations/updatedatapoint.js +4 -4
  74. package/models/operations/updatedataset.js +1 -1
  75. package/models/operations/updatedatasource.js +1 -1
  76. package/models/operations/updateeval.d.ts +8 -8
  77. package/models/operations/updateeval.d.ts.map +1 -1
  78. package/models/operations/updateeval.js +26 -26
  79. package/models/operations/updateeval.js.map +1 -1
  80. package/models/operations/updatetool.js +7 -7
  81. package/package.json +5 -5
  82. package/sdk/annotations.d.ts +6 -0
  83. package/sdk/annotations.d.ts.map +1 -1
  84. package/sdk/annotations.js +6 -0
  85. package/sdk/annotations.js.map +1 -1
  86. package/sdk/deployments.d.ts +1 -5
  87. package/sdk/deployments.d.ts.map +1 -1
  88. package/sdk/deployments.js +0 -4
  89. package/sdk/deployments.js.map +1 -1
  90. package/src/funcs/annotationsCreate.ts +3 -0
  91. package/src/funcs/annotationsDelete.ts +3 -0
  92. package/src/funcs/deploymentsInvoke.ts +4 -4
  93. package/src/lib/config.ts +3 -3
  94. package/src/models/components/agentthoughtstreamingevent.ts +43 -55
  95. package/src/models/components/index.ts +0 -1
  96. package/src/models/components/modelmetadata.ts +110 -0
  97. package/src/models/components/reasoningpart.ts +1 -1
  98. package/src/models/operations/createdataset.ts +1 -1
  99. package/src/models/operations/createdatasetitem.ts +4 -4
  100. package/src/models/operations/createdatasource.ts +1 -1
  101. package/src/models/operations/createeval.ts +214 -543
  102. package/src/models/operations/createtool.ts +24 -28
  103. package/src/models/operations/deploymentgetconfig.ts +1606 -1156
  104. package/src/models/operations/deploymentinvoke.ts +3763 -317
  105. package/src/models/operations/deploymentstream.ts +285 -244
  106. package/src/models/operations/getalltools.ts +6 -6
  107. package/src/models/operations/getevals.ts +16 -16
  108. package/src/models/operations/getv2humanevalsets.ts +2 -2
  109. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  110. package/src/models/operations/index.ts +0 -1
  111. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  112. package/src/models/operations/listdatasets.ts +1 -1
  113. package/src/models/operations/listdatasources.ts +1 -1
  114. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  115. package/src/models/operations/postv2feedbackevaluation.ts +3 -3
  116. package/src/models/operations/postv2humanevalsets.ts +2 -2
  117. package/src/models/operations/retrievedatapoint.ts +4 -4
  118. package/src/models/operations/retrievedataset.ts +1 -1
  119. package/src/models/operations/retrievedatasource.ts +1 -1
  120. package/src/models/operations/retrievetool.ts +6 -6
  121. package/src/models/operations/runagent.ts +1 -1
  122. package/src/models/operations/streamrunagent.ts +1 -1
  123. package/src/models/operations/updatedatapoint.ts +4 -4
  124. package/src/models/operations/updatedataset.ts +1 -1
  125. package/src/models/operations/updatedatasource.ts +1 -1
  126. package/src/models/operations/updateeval.ts +32 -34
  127. package/src/models/operations/updatetool.ts +7 -7
  128. package/src/sdk/annotations.ts +6 -0
  129. package/src/sdk/deployments.ts +1 -8
  130. package/funcs/deploymentsMetricsCreate.d.ts +0 -19
  131. package/funcs/deploymentsMetricsCreate.d.ts.map +0 -1
  132. package/funcs/deploymentsMetricsCreate.js +0 -123
  133. package/funcs/deploymentsMetricsCreate.js.map +0 -1
  134. package/models/components/invokedeploymentrequest.d.ts +0 -1573
  135. package/models/components/invokedeploymentrequest.d.ts.map +0 -1
  136. package/models/components/invokedeploymentrequest.js +0 -1137
  137. package/models/components/invokedeploymentrequest.js.map +0 -1
  138. package/models/operations/deploymentcreatemetric.d.ts +0 -1032
  139. package/models/operations/deploymentcreatemetric.d.ts.map +0 -1
  140. package/models/operations/deploymentcreatemetric.js +0 -749
  141. package/models/operations/deploymentcreatemetric.js.map +0 -1
  142. package/sdk/metrics.d.ts +0 -14
  143. package/sdk/metrics.d.ts.map +0 -1
  144. package/sdk/metrics.js +0 -24
  145. package/sdk/metrics.js.map +0 -1
  146. package/src/funcs/deploymentsMetricsCreate.ts +0 -171
  147. package/src/models/components/invokedeploymentrequest.ts +0 -3457
  148. package/src/models/operations/deploymentcreatemetric.ts +0 -2370
  149. package/src/sdk/metrics.ts +0 -29
@@ -1,1137 +0,0 @@
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.InvokeDeploymentRequest2Ttl$outboundSchema = exports.InvokeDeploymentRequest2MessagesType$outboundSchema = exports.MessagesAssistantMessage$outboundSchema = exports.MessagesToolCalls$outboundSchema = exports.MessagesFunction$outboundSchema = exports.MessagesType$outboundSchema = exports.MessagesAudio$outboundSchema = exports.InvokeDeploymentRequestMessages4Content$outboundSchema = exports.InvokeDeploymentRequestContentMessages42$outboundSchema = exports.MessagesToolMessage$outboundSchema = exports.MessagesCacheControl$outboundSchema = exports.MessagesTtl$outboundSchema = exports.InvokeDeploymentRequestMessagesType$outboundSchema = exports.InvokeDeploymentRequestMessages5Content$outboundSchema = exports.InvokeDeploymentRequestContentMessages52$outboundSchema = exports.PrefixMessages$outboundSchema = exports.SystemMessage$outboundSchema = exports.Content$outboundSchema = exports.DeveloperMessage$outboundSchema = exports.PrefixMessagesContent$outboundSchema = exports.UserMessage$outboundSchema = exports.InvokeDeploymentRequestPrefixMessagesContent$outboundSchema = exports.Two$outboundSchema = exports.Four$outboundSchema = exports.TwoCacheControl$outboundSchema = exports.TwoTtl$outboundSchema = exports.InvokeDeploymentRequest2PrefixMessagesType$outboundSchema = exports.AssistantMessage$outboundSchema = exports.ToolCalls$outboundSchema = exports.PrefixMessagesFunction$outboundSchema = exports.PrefixMessagesType$outboundSchema = exports.Audio$outboundSchema = exports.InvokeDeploymentRequestPrefixMessages4Content$outboundSchema = exports.Content2$outboundSchema = exports.ToolMessage$outboundSchema = exports.PrefixMessagesCacheControl$outboundSchema = exports.PrefixMessagesTtl$outboundSchema = exports.InvokeDeploymentRequestPrefixMessagesType$outboundSchema = exports.InvokeDeploymentRequestPrefixMessages5Content$outboundSchema = exports.InvokeDeploymentRequestContent2$outboundSchema = exports.InvokeDeploymentRequest2Ttl = exports.InvokeDeploymentRequest2MessagesType = exports.MessagesType = exports.MessagesTtl = exports.InvokeDeploymentRequestMessagesType = exports.TwoTtl = exports.InvokeDeploymentRequest2PrefixMessagesType = exports.PrefixMessagesType = exports.PrefixMessagesTtl = exports.InvokeDeploymentRequestPrefixMessagesType = void 0;
40
- exports.Lte$outboundSchema = exports.OneIn$outboundSchema = exports.In$outboundSchema = exports.OneNin$outboundSchema = exports.Nin$outboundSchema = exports.Exists$outboundSchema = exports.KnowledgeFilterAnd$outboundSchema = exports.And$outboundSchema = exports.InvokeDeploymentRequestAndEq$outboundSchema = exports.AndEq$outboundSchema = exports.InvokeDeploymentRequestAndNe$outboundSchema = exports.AndNe$outboundSchema = exports.AndGt$outboundSchema = exports.AndGte$outboundSchema = exports.AndLt$outboundSchema = exports.AndLte$outboundSchema = exports.InvokeDeploymentRequestAndIn$outboundSchema = exports.AndIn$outboundSchema = exports.InvokeDeploymentRequestAndNin$outboundSchema = exports.AndNin$outboundSchema = exports.AndExists$outboundSchema = exports.KnowledgeFilterOr$outboundSchema = exports.Or$outboundSchema = exports.InvokeDeploymentRequestOrEq$outboundSchema = exports.OrEq$outboundSchema = exports.InvokeDeploymentRequestOrNe$outboundSchema = exports.OrNe$outboundSchema = exports.OrGt$outboundSchema = exports.OrGte$outboundSchema = exports.OrLt$outboundSchema = exports.OrLte$outboundSchema = exports.InvokeDeploymentRequestOrIn$outboundSchema = exports.OrIn$outboundSchema = exports.InvokeDeploymentRequestOrNin$outboundSchema = exports.OrNin$outboundSchema = exports.OrExists$outboundSchema = exports.Thread$outboundSchema = exports.InvokeOptions$outboundSchema = exports.Documents$outboundSchema = exports.InvokeDeploymentRequestMetadata$outboundSchema = exports.Messages$outboundSchema = exports.MessagesSystemMessage$outboundSchema = exports.MessagesContent$outboundSchema = exports.MessagesDeveloperMessage$outboundSchema = exports.InvokeDeploymentRequestMessagesContent$outboundSchema = exports.MessagesUserMessage$outboundSchema = exports.InvokeDeploymentRequestMessages3Content$outboundSchema = exports.InvokeDeploymentRequestContentMessages2$outboundSchema = exports.Two4$outboundSchema = exports.InvokeDeploymentRequest2CacheControl$outboundSchema = void 0;
41
- exports.InvokeDeploymentRequest$outboundSchema = exports.KnowledgeFilter$outboundSchema = exports.One$outboundSchema = exports.OneEq$outboundSchema = exports.Eq$outboundSchema = exports.OneNe$outboundSchema = exports.Ne$outboundSchema = exports.Gt$outboundSchema = exports.Gte$outboundSchema = exports.Lt$outboundSchema = void 0;
42
- exports.invokeDeploymentRequestContent2ToJSON = invokeDeploymentRequestContent2ToJSON;
43
- exports.invokeDeploymentRequestPrefixMessages5ContentToJSON = invokeDeploymentRequestPrefixMessages5ContentToJSON;
44
- exports.prefixMessagesCacheControlToJSON = prefixMessagesCacheControlToJSON;
45
- exports.toolMessageToJSON = toolMessageToJSON;
46
- exports.content2ToJSON = content2ToJSON;
47
- exports.invokeDeploymentRequestPrefixMessages4ContentToJSON = invokeDeploymentRequestPrefixMessages4ContentToJSON;
48
- exports.audioToJSON = audioToJSON;
49
- exports.prefixMessagesFunctionToJSON = prefixMessagesFunctionToJSON;
50
- exports.toolCallsToJSON = toolCallsToJSON;
51
- exports.assistantMessageToJSON = assistantMessageToJSON;
52
- exports.twoCacheControlToJSON = twoCacheControlToJSON;
53
- exports.fourToJSON = fourToJSON;
54
- exports.twoToJSON = twoToJSON;
55
- exports.invokeDeploymentRequestPrefixMessagesContentToJSON = invokeDeploymentRequestPrefixMessagesContentToJSON;
56
- exports.userMessageToJSON = userMessageToJSON;
57
- exports.prefixMessagesContentToJSON = prefixMessagesContentToJSON;
58
- exports.developerMessageToJSON = developerMessageToJSON;
59
- exports.contentToJSON = contentToJSON;
60
- exports.systemMessageToJSON = systemMessageToJSON;
61
- exports.prefixMessagesToJSON = prefixMessagesToJSON;
62
- exports.invokeDeploymentRequestContentMessages52ToJSON = invokeDeploymentRequestContentMessages52ToJSON;
63
- exports.invokeDeploymentRequestMessages5ContentToJSON = invokeDeploymentRequestMessages5ContentToJSON;
64
- exports.messagesCacheControlToJSON = messagesCacheControlToJSON;
65
- exports.messagesToolMessageToJSON = messagesToolMessageToJSON;
66
- exports.invokeDeploymentRequestContentMessages42ToJSON = invokeDeploymentRequestContentMessages42ToJSON;
67
- exports.invokeDeploymentRequestMessages4ContentToJSON = invokeDeploymentRequestMessages4ContentToJSON;
68
- exports.messagesAudioToJSON = messagesAudioToJSON;
69
- exports.messagesFunctionToJSON = messagesFunctionToJSON;
70
- exports.messagesToolCallsToJSON = messagesToolCallsToJSON;
71
- exports.messagesAssistantMessageToJSON = messagesAssistantMessageToJSON;
72
- exports.invokeDeploymentRequest2CacheControlToJSON = invokeDeploymentRequest2CacheControlToJSON;
73
- exports.two4ToJSON = two4ToJSON;
74
- exports.invokeDeploymentRequestContentMessages2ToJSON = invokeDeploymentRequestContentMessages2ToJSON;
75
- exports.invokeDeploymentRequestMessages3ContentToJSON = invokeDeploymentRequestMessages3ContentToJSON;
76
- exports.messagesUserMessageToJSON = messagesUserMessageToJSON;
77
- exports.invokeDeploymentRequestMessagesContentToJSON = invokeDeploymentRequestMessagesContentToJSON;
78
- exports.messagesDeveloperMessageToJSON = messagesDeveloperMessageToJSON;
79
- exports.messagesContentToJSON = messagesContentToJSON;
80
- exports.messagesSystemMessageToJSON = messagesSystemMessageToJSON;
81
- exports.messagesToJSON = messagesToJSON;
82
- exports.invokeDeploymentRequestMetadataToJSON = invokeDeploymentRequestMetadataToJSON;
83
- exports.documentsToJSON = documentsToJSON;
84
- exports.invokeOptionsToJSON = invokeOptionsToJSON;
85
- exports.threadToJSON = threadToJSON;
86
- exports.orExistsToJSON = orExistsToJSON;
87
- exports.orNinToJSON = orNinToJSON;
88
- exports.invokeDeploymentRequestOrNinToJSON = invokeDeploymentRequestOrNinToJSON;
89
- exports.orInToJSON = orInToJSON;
90
- exports.invokeDeploymentRequestOrInToJSON = invokeDeploymentRequestOrInToJSON;
91
- exports.orLteToJSON = orLteToJSON;
92
- exports.orLtToJSON = orLtToJSON;
93
- exports.orGteToJSON = orGteToJSON;
94
- exports.orGtToJSON = orGtToJSON;
95
- exports.orNeToJSON = orNeToJSON;
96
- exports.invokeDeploymentRequestOrNeToJSON = invokeDeploymentRequestOrNeToJSON;
97
- exports.orEqToJSON = orEqToJSON;
98
- exports.invokeDeploymentRequestOrEqToJSON = invokeDeploymentRequestOrEqToJSON;
99
- exports.orToJSON = orToJSON;
100
- exports.knowledgeFilterOrToJSON = knowledgeFilterOrToJSON;
101
- exports.andExistsToJSON = andExistsToJSON;
102
- exports.andNinToJSON = andNinToJSON;
103
- exports.invokeDeploymentRequestAndNinToJSON = invokeDeploymentRequestAndNinToJSON;
104
- exports.andInToJSON = andInToJSON;
105
- exports.invokeDeploymentRequestAndInToJSON = invokeDeploymentRequestAndInToJSON;
106
- exports.andLteToJSON = andLteToJSON;
107
- exports.andLtToJSON = andLtToJSON;
108
- exports.andGteToJSON = andGteToJSON;
109
- exports.andGtToJSON = andGtToJSON;
110
- exports.andNeToJSON = andNeToJSON;
111
- exports.invokeDeploymentRequestAndNeToJSON = invokeDeploymentRequestAndNeToJSON;
112
- exports.andEqToJSON = andEqToJSON;
113
- exports.invokeDeploymentRequestAndEqToJSON = invokeDeploymentRequestAndEqToJSON;
114
- exports.andToJSON = andToJSON;
115
- exports.knowledgeFilterAndToJSON = knowledgeFilterAndToJSON;
116
- exports.existsToJSON = existsToJSON;
117
- exports.ninToJSON = ninToJSON;
118
- exports.oneNinToJSON = oneNinToJSON;
119
- exports.inToJSON = inToJSON;
120
- exports.oneInToJSON = oneInToJSON;
121
- exports.lteToJSON = lteToJSON;
122
- exports.ltToJSON = ltToJSON;
123
- exports.gteToJSON = gteToJSON;
124
- exports.gtToJSON = gtToJSON;
125
- exports.neToJSON = neToJSON;
126
- exports.oneNeToJSON = oneNeToJSON;
127
- exports.eqToJSON = eqToJSON;
128
- exports.oneEqToJSON = oneEqToJSON;
129
- exports.oneToJSON = oneToJSON;
130
- exports.knowledgeFilterToJSON = knowledgeFilterToJSON;
131
- exports.invokeDeploymentRequestToJSON = invokeDeploymentRequestToJSON;
132
- const z = __importStar(require("zod/v3"));
133
- const primitives_js_1 = require("../../lib/primitives.js");
134
- const audiocontentpartschema_js_1 = require("./audiocontentpartschema.js");
135
- const filecontentpartschema_js_1 = require("./filecontentpartschema.js");
136
- const imagecontentpartschema_js_1 = require("./imagecontentpartschema.js");
137
- const publicidentity_js_1 = require("./publicidentity.js");
138
- const reasoningpartschema_js_1 = require("./reasoningpartschema.js");
139
- const redactedreasoningpartschema_js_1 = require("./redactedreasoningpartschema.js");
140
- const refusalpartschema_js_1 = require("./refusalpartschema.js");
141
- const textcontentpartschema_js_1 = require("./textcontentpartschema.js");
142
- /**
143
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
144
- */
145
- exports.InvokeDeploymentRequestPrefixMessagesType = {
146
- Ephemeral: "ephemeral",
147
- };
148
- /**
149
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
150
- *
151
- * @remarks
152
- *
153
- * - `5m`: 5 minutes
154
- * - `1h`: 1 hour
155
- *
156
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
157
- */
158
- exports.PrefixMessagesTtl = {
159
- Fivem: "5m",
160
- Oneh: "1h",
161
- };
162
- /**
163
- * The type of the tool. Currently, only `function` is supported.
164
- */
165
- exports.PrefixMessagesType = {
166
- Function: "function",
167
- };
168
- /**
169
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
170
- */
171
- exports.InvokeDeploymentRequest2PrefixMessagesType = {
172
- Ephemeral: "ephemeral",
173
- };
174
- /**
175
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
176
- *
177
- * @remarks
178
- *
179
- * - `5m`: 5 minutes
180
- * - `1h`: 1 hour
181
- *
182
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
183
- */
184
- exports.TwoTtl = {
185
- Fivem: "5m",
186
- Oneh: "1h",
187
- };
188
- /**
189
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
190
- */
191
- exports.InvokeDeploymentRequestMessagesType = {
192
- Ephemeral: "ephemeral",
193
- };
194
- /**
195
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
196
- *
197
- * @remarks
198
- *
199
- * - `5m`: 5 minutes
200
- * - `1h`: 1 hour
201
- *
202
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
203
- */
204
- exports.MessagesTtl = {
205
- Fivem: "5m",
206
- Oneh: "1h",
207
- };
208
- /**
209
- * The type of the tool. Currently, only `function` is supported.
210
- */
211
- exports.MessagesType = {
212
- Function: "function",
213
- };
214
- /**
215
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
216
- */
217
- exports.InvokeDeploymentRequest2MessagesType = {
218
- Ephemeral: "ephemeral",
219
- };
220
- /**
221
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
222
- *
223
- * @remarks
224
- *
225
- * - `5m`: 5 minutes
226
- * - `1h`: 1 hour
227
- *
228
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
229
- */
230
- exports.InvokeDeploymentRequest2Ttl = {
231
- Fivem: "5m",
232
- Oneh: "1h",
233
- };
234
- /** @internal */
235
- exports.InvokeDeploymentRequestContent2$outboundSchema = textcontentpartschema_js_1.TextContentPartSchema$outboundSchema;
236
- function invokeDeploymentRequestContent2ToJSON(invokeDeploymentRequestContent2) {
237
- return JSON.stringify(exports.InvokeDeploymentRequestContent2$outboundSchema.parse(invokeDeploymentRequestContent2));
238
- }
239
- /** @internal */
240
- exports.InvokeDeploymentRequestPrefixMessages5Content$outboundSchema = z.union([z.string(), z.array(textcontentpartschema_js_1.TextContentPartSchema$outboundSchema)]);
241
- function invokeDeploymentRequestPrefixMessages5ContentToJSON(invokeDeploymentRequestPrefixMessages5Content) {
242
- return JSON.stringify(exports.InvokeDeploymentRequestPrefixMessages5Content$outboundSchema.parse(invokeDeploymentRequestPrefixMessages5Content));
243
- }
244
- /** @internal */
245
- exports.InvokeDeploymentRequestPrefixMessagesType$outboundSchema = z
246
- .nativeEnum(exports.InvokeDeploymentRequestPrefixMessagesType);
247
- /** @internal */
248
- exports.PrefixMessagesTtl$outboundSchema = z.nativeEnum(exports.PrefixMessagesTtl);
249
- /** @internal */
250
- exports.PrefixMessagesCacheControl$outboundSchema = z.object({
251
- type: exports.InvokeDeploymentRequestPrefixMessagesType$outboundSchema,
252
- ttl: exports.PrefixMessagesTtl$outboundSchema.default("5m"),
253
- });
254
- function prefixMessagesCacheControlToJSON(prefixMessagesCacheControl) {
255
- return JSON.stringify(exports.PrefixMessagesCacheControl$outboundSchema.parse(prefixMessagesCacheControl));
256
- }
257
- /** @internal */
258
- exports.ToolMessage$outboundSchema = z.object({
259
- role: z.literal("tool"),
260
- content: z.union([z.string(), z.array(textcontentpartschema_js_1.TextContentPartSchema$outboundSchema)]),
261
- toolCallId: z.nullable(z.string()),
262
- cacheControl: z.lazy(() => exports.PrefixMessagesCacheControl$outboundSchema)
263
- .optional(),
264
- }).transform((v) => {
265
- return (0, primitives_js_1.remap)(v, {
266
- toolCallId: "tool_call_id",
267
- cacheControl: "cache_control",
268
- });
269
- });
270
- function toolMessageToJSON(toolMessage) {
271
- return JSON.stringify(exports.ToolMessage$outboundSchema.parse(toolMessage));
272
- }
273
- /** @internal */
274
- exports.Content2$outboundSchema = z.union([
275
- textcontentpartschema_js_1.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
276
- refusalpartschema_js_1.RefusalPartSchema$outboundSchema,
277
- reasoningpartschema_js_1.ReasoningPartSchema$outboundSchema,
278
- redactedreasoningpartschema_js_1.RedactedReasoningPartSchema$outboundSchema,
279
- ]);
280
- function content2ToJSON(content2) {
281
- return JSON.stringify(exports.Content2$outboundSchema.parse(content2));
282
- }
283
- /** @internal */
284
- exports.InvokeDeploymentRequestPrefixMessages4Content$outboundSchema = z.union([
285
- z.string(),
286
- z.array(z.union([
287
- textcontentpartschema_js_1.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
288
- refusalpartschema_js_1.RefusalPartSchema$outboundSchema,
289
- reasoningpartschema_js_1.ReasoningPartSchema$outboundSchema,
290
- redactedreasoningpartschema_js_1.RedactedReasoningPartSchema$outboundSchema,
291
- ])),
292
- ]);
293
- function invokeDeploymentRequestPrefixMessages4ContentToJSON(invokeDeploymentRequestPrefixMessages4Content) {
294
- return JSON.stringify(exports.InvokeDeploymentRequestPrefixMessages4Content$outboundSchema.parse(invokeDeploymentRequestPrefixMessages4Content));
295
- }
296
- /** @internal */
297
- exports.Audio$outboundSchema = z.object({
298
- id: z.string(),
299
- });
300
- function audioToJSON(audio) {
301
- return JSON.stringify(exports.Audio$outboundSchema.parse(audio));
302
- }
303
- /** @internal */
304
- exports.PrefixMessagesType$outboundSchema = z.nativeEnum(exports.PrefixMessagesType);
305
- /** @internal */
306
- exports.PrefixMessagesFunction$outboundSchema = z.object({
307
- name: z.string().optional(),
308
- arguments: z.string().optional(),
309
- });
310
- function prefixMessagesFunctionToJSON(prefixMessagesFunction) {
311
- return JSON.stringify(exports.PrefixMessagesFunction$outboundSchema.parse(prefixMessagesFunction));
312
- }
313
- /** @internal */
314
- exports.ToolCalls$outboundSchema = z.object({
315
- id: z.string(),
316
- type: exports.PrefixMessagesType$outboundSchema,
317
- function: z.lazy(() => exports.PrefixMessagesFunction$outboundSchema),
318
- thoughtSignature: z.string().optional(),
319
- }).transform((v) => {
320
- return (0, primitives_js_1.remap)(v, {
321
- thoughtSignature: "thought_signature",
322
- });
323
- });
324
- function toolCallsToJSON(toolCalls) {
325
- return JSON.stringify(exports.ToolCalls$outboundSchema.parse(toolCalls));
326
- }
327
- /** @internal */
328
- exports.AssistantMessage$outboundSchema = z.object({
329
- content: z.nullable(z.union([
330
- z.string(),
331
- z.array(z.union([
332
- textcontentpartschema_js_1.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
333
- refusalpartschema_js_1.RefusalPartSchema$outboundSchema,
334
- reasoningpartschema_js_1.ReasoningPartSchema$outboundSchema,
335
- redactedreasoningpartschema_js_1.RedactedReasoningPartSchema$outboundSchema,
336
- ])),
337
- ])).optional(),
338
- refusal: z.nullable(z.string()).optional(),
339
- role: z.literal("assistant"),
340
- name: z.string().optional(),
341
- audio: z.nullable(z.lazy(() => exports.Audio$outboundSchema)).optional(),
342
- toolCalls: z.array(z.lazy(() => exports.ToolCalls$outboundSchema)).optional(),
343
- }).transform((v) => {
344
- return (0, primitives_js_1.remap)(v, {
345
- toolCalls: "tool_calls",
346
- });
347
- });
348
- function assistantMessageToJSON(assistantMessage) {
349
- return JSON.stringify(exports.AssistantMessage$outboundSchema.parse(assistantMessage));
350
- }
351
- /** @internal */
352
- exports.InvokeDeploymentRequest2PrefixMessagesType$outboundSchema = z
353
- .nativeEnum(exports.InvokeDeploymentRequest2PrefixMessagesType);
354
- /** @internal */
355
- exports.TwoTtl$outboundSchema = z
356
- .nativeEnum(exports.TwoTtl);
357
- /** @internal */
358
- exports.TwoCacheControl$outboundSchema = z.object({
359
- type: exports.InvokeDeploymentRequest2PrefixMessagesType$outboundSchema,
360
- ttl: exports.TwoTtl$outboundSchema.default("5m"),
361
- });
362
- function twoCacheControlToJSON(twoCacheControl) {
363
- return JSON.stringify(exports.TwoCacheControl$outboundSchema.parse(twoCacheControl));
364
- }
365
- /** @internal */
366
- exports.Four$outboundSchema = z.object({
367
- type: z.literal("file"),
368
- cacheControl: z.lazy(() => exports.TwoCacheControl$outboundSchema).optional(),
369
- file: filecontentpartschema_js_1.FileContentPartSchema$outboundSchema,
370
- }).transform((v) => {
371
- return (0, primitives_js_1.remap)(v, {
372
- cacheControl: "cache_control",
373
- });
374
- });
375
- function fourToJSON(four) {
376
- return JSON.stringify(exports.Four$outboundSchema.parse(four));
377
- }
378
- /** @internal */
379
- exports.Two$outboundSchema = z
380
- .union([
381
- textcontentpartschema_js_1.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
382
- imagecontentpartschema_js_1.ImageContentPartSchema$outboundSchema,
383
- audiocontentpartschema_js_1.AudioContentPartSchema$outboundSchema,
384
- z.lazy(() => exports.Four$outboundSchema),
385
- ]);
386
- function twoToJSON(two) {
387
- return JSON.stringify(exports.Two$outboundSchema.parse(two));
388
- }
389
- /** @internal */
390
- exports.InvokeDeploymentRequestPrefixMessagesContent$outboundSchema = z.union([
391
- z.string(),
392
- z.array(z.union([
393
- textcontentpartschema_js_1.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
394
- imagecontentpartschema_js_1.ImageContentPartSchema$outboundSchema,
395
- audiocontentpartschema_js_1.AudioContentPartSchema$outboundSchema,
396
- z.lazy(() => exports.Four$outboundSchema),
397
- ])),
398
- ]);
399
- function invokeDeploymentRequestPrefixMessagesContentToJSON(invokeDeploymentRequestPrefixMessagesContent) {
400
- return JSON.stringify(exports.InvokeDeploymentRequestPrefixMessagesContent$outboundSchema.parse(invokeDeploymentRequestPrefixMessagesContent));
401
- }
402
- /** @internal */
403
- exports.UserMessage$outboundSchema = z.object({
404
- role: z.literal("user"),
405
- name: z.string().optional(),
406
- content: z.union([
407
- z.string(),
408
- z.array(z.union([
409
- textcontentpartschema_js_1.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
410
- imagecontentpartschema_js_1.ImageContentPartSchema$outboundSchema,
411
- audiocontentpartschema_js_1.AudioContentPartSchema$outboundSchema,
412
- z.lazy(() => exports.Four$outboundSchema),
413
- ])),
414
- ]),
415
- });
416
- function userMessageToJSON(userMessage) {
417
- return JSON.stringify(exports.UserMessage$outboundSchema.parse(userMessage));
418
- }
419
- /** @internal */
420
- exports.PrefixMessagesContent$outboundSchema = z.union([z.string(), z.array(textcontentpartschema_js_1.TextContentPartSchema$outboundSchema)]);
421
- function prefixMessagesContentToJSON(prefixMessagesContent) {
422
- return JSON.stringify(exports.PrefixMessagesContent$outboundSchema.parse(prefixMessagesContent));
423
- }
424
- /** @internal */
425
- exports.DeveloperMessage$outboundSchema = z.object({
426
- role: z.literal("developer"),
427
- content: z.union([z.string(), z.array(textcontentpartschema_js_1.TextContentPartSchema$outboundSchema)]),
428
- name: z.string().optional(),
429
- });
430
- function developerMessageToJSON(developerMessage) {
431
- return JSON.stringify(exports.DeveloperMessage$outboundSchema.parse(developerMessage));
432
- }
433
- /** @internal */
434
- exports.Content$outboundSchema = z.union([z.string(), z.array(textcontentpartschema_js_1.TextContentPartSchema$outboundSchema)]);
435
- function contentToJSON(content) {
436
- return JSON.stringify(exports.Content$outboundSchema.parse(content));
437
- }
438
- /** @internal */
439
- exports.SystemMessage$outboundSchema = z.object({
440
- role: z.literal("system"),
441
- content: z.union([z.string(), z.array(textcontentpartschema_js_1.TextContentPartSchema$outboundSchema)]),
442
- name: z.string().optional(),
443
- });
444
- function systemMessageToJSON(systemMessage) {
445
- return JSON.stringify(exports.SystemMessage$outboundSchema.parse(systemMessage));
446
- }
447
- /** @internal */
448
- exports.PrefixMessages$outboundSchema = z.union([
449
- z.lazy(() => exports.SystemMessage$outboundSchema),
450
- z.lazy(() => exports.DeveloperMessage$outboundSchema),
451
- z.lazy(() => exports.UserMessage$outboundSchema),
452
- z.lazy(() => exports.AssistantMessage$outboundSchema),
453
- z.lazy(() => exports.ToolMessage$outboundSchema),
454
- ]);
455
- function prefixMessagesToJSON(prefixMessages) {
456
- return JSON.stringify(exports.PrefixMessages$outboundSchema.parse(prefixMessages));
457
- }
458
- /** @internal */
459
- exports.InvokeDeploymentRequestContentMessages52$outboundSchema = textcontentpartschema_js_1.TextContentPartSchema$outboundSchema;
460
- function invokeDeploymentRequestContentMessages52ToJSON(invokeDeploymentRequestContentMessages52) {
461
- return JSON.stringify(exports.InvokeDeploymentRequestContentMessages52$outboundSchema.parse(invokeDeploymentRequestContentMessages52));
462
- }
463
- /** @internal */
464
- exports.InvokeDeploymentRequestMessages5Content$outboundSchema = z.union([z.string(), z.array(textcontentpartschema_js_1.TextContentPartSchema$outboundSchema)]);
465
- function invokeDeploymentRequestMessages5ContentToJSON(invokeDeploymentRequestMessages5Content) {
466
- return JSON.stringify(exports.InvokeDeploymentRequestMessages5Content$outboundSchema.parse(invokeDeploymentRequestMessages5Content));
467
- }
468
- /** @internal */
469
- exports.InvokeDeploymentRequestMessagesType$outboundSchema = z.nativeEnum(exports.InvokeDeploymentRequestMessagesType);
470
- /** @internal */
471
- exports.MessagesTtl$outboundSchema = z
472
- .nativeEnum(exports.MessagesTtl);
473
- /** @internal */
474
- exports.MessagesCacheControl$outboundSchema = z.object({
475
- type: exports.InvokeDeploymentRequestMessagesType$outboundSchema,
476
- ttl: exports.MessagesTtl$outboundSchema.default("5m"),
477
- });
478
- function messagesCacheControlToJSON(messagesCacheControl) {
479
- return JSON.stringify(exports.MessagesCacheControl$outboundSchema.parse(messagesCacheControl));
480
- }
481
- /** @internal */
482
- exports.MessagesToolMessage$outboundSchema = z.object({
483
- role: z.literal("tool"),
484
- content: z.union([z.string(), z.array(textcontentpartschema_js_1.TextContentPartSchema$outboundSchema)]),
485
- toolCallId: z.nullable(z.string()),
486
- cacheControl: z.lazy(() => exports.MessagesCacheControl$outboundSchema).optional(),
487
- }).transform((v) => {
488
- return (0, primitives_js_1.remap)(v, {
489
- toolCallId: "tool_call_id",
490
- cacheControl: "cache_control",
491
- });
492
- });
493
- function messagesToolMessageToJSON(messagesToolMessage) {
494
- return JSON.stringify(exports.MessagesToolMessage$outboundSchema.parse(messagesToolMessage));
495
- }
496
- /** @internal */
497
- exports.InvokeDeploymentRequestContentMessages42$outboundSchema = z.union([
498
- textcontentpartschema_js_1.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
499
- refusalpartschema_js_1.RefusalPartSchema$outboundSchema,
500
- reasoningpartschema_js_1.ReasoningPartSchema$outboundSchema,
501
- redactedreasoningpartschema_js_1.RedactedReasoningPartSchema$outboundSchema,
502
- ]);
503
- function invokeDeploymentRequestContentMessages42ToJSON(invokeDeploymentRequestContentMessages42) {
504
- return JSON.stringify(exports.InvokeDeploymentRequestContentMessages42$outboundSchema.parse(invokeDeploymentRequestContentMessages42));
505
- }
506
- /** @internal */
507
- exports.InvokeDeploymentRequestMessages4Content$outboundSchema = z.union([
508
- z.string(),
509
- z.array(z.union([
510
- textcontentpartschema_js_1.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
511
- refusalpartschema_js_1.RefusalPartSchema$outboundSchema,
512
- reasoningpartschema_js_1.ReasoningPartSchema$outboundSchema,
513
- redactedreasoningpartschema_js_1.RedactedReasoningPartSchema$outboundSchema,
514
- ])),
515
- ]);
516
- function invokeDeploymentRequestMessages4ContentToJSON(invokeDeploymentRequestMessages4Content) {
517
- return JSON.stringify(exports.InvokeDeploymentRequestMessages4Content$outboundSchema.parse(invokeDeploymentRequestMessages4Content));
518
- }
519
- /** @internal */
520
- exports.MessagesAudio$outboundSchema = z.object({
521
- id: z.string(),
522
- });
523
- function messagesAudioToJSON(messagesAudio) {
524
- return JSON.stringify(exports.MessagesAudio$outboundSchema.parse(messagesAudio));
525
- }
526
- /** @internal */
527
- exports.MessagesType$outboundSchema = z.nativeEnum(exports.MessagesType);
528
- /** @internal */
529
- exports.MessagesFunction$outboundSchema = z.object({
530
- name: z.string().optional(),
531
- arguments: z.string().optional(),
532
- });
533
- function messagesFunctionToJSON(messagesFunction) {
534
- return JSON.stringify(exports.MessagesFunction$outboundSchema.parse(messagesFunction));
535
- }
536
- /** @internal */
537
- exports.MessagesToolCalls$outboundSchema = z.object({
538
- id: z.string(),
539
- type: exports.MessagesType$outboundSchema,
540
- function: z.lazy(() => exports.MessagesFunction$outboundSchema),
541
- thoughtSignature: z.string().optional(),
542
- }).transform((v) => {
543
- return (0, primitives_js_1.remap)(v, {
544
- thoughtSignature: "thought_signature",
545
- });
546
- });
547
- function messagesToolCallsToJSON(messagesToolCalls) {
548
- return JSON.stringify(exports.MessagesToolCalls$outboundSchema.parse(messagesToolCalls));
549
- }
550
- /** @internal */
551
- exports.MessagesAssistantMessage$outboundSchema = z.object({
552
- content: z.nullable(z.union([
553
- z.string(),
554
- z.array(z.union([
555
- textcontentpartschema_js_1.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
556
- refusalpartschema_js_1.RefusalPartSchema$outboundSchema,
557
- reasoningpartschema_js_1.ReasoningPartSchema$outboundSchema,
558
- redactedreasoningpartschema_js_1.RedactedReasoningPartSchema$outboundSchema,
559
- ])),
560
- ])).optional(),
561
- refusal: z.nullable(z.string()).optional(),
562
- role: z.literal("assistant"),
563
- name: z.string().optional(),
564
- audio: z.nullable(z.lazy(() => exports.MessagesAudio$outboundSchema)).optional(),
565
- toolCalls: z.array(z.lazy(() => exports.MessagesToolCalls$outboundSchema)).optional(),
566
- }).transform((v) => {
567
- return (0, primitives_js_1.remap)(v, {
568
- toolCalls: "tool_calls",
569
- });
570
- });
571
- function messagesAssistantMessageToJSON(messagesAssistantMessage) {
572
- return JSON.stringify(exports.MessagesAssistantMessage$outboundSchema.parse(messagesAssistantMessage));
573
- }
574
- /** @internal */
575
- exports.InvokeDeploymentRequest2MessagesType$outboundSchema = z.nativeEnum(exports.InvokeDeploymentRequest2MessagesType);
576
- /** @internal */
577
- exports.InvokeDeploymentRequest2Ttl$outboundSchema = z.nativeEnum(exports.InvokeDeploymentRequest2Ttl);
578
- /** @internal */
579
- exports.InvokeDeploymentRequest2CacheControl$outboundSchema = z.object({
580
- type: exports.InvokeDeploymentRequest2MessagesType$outboundSchema,
581
- ttl: exports.InvokeDeploymentRequest2Ttl$outboundSchema.default("5m"),
582
- });
583
- function invokeDeploymentRequest2CacheControlToJSON(invokeDeploymentRequest2CacheControl) {
584
- return JSON.stringify(exports.InvokeDeploymentRequest2CacheControl$outboundSchema.parse(invokeDeploymentRequest2CacheControl));
585
- }
586
- /** @internal */
587
- exports.Two4$outboundSchema = z.object({
588
- type: z.literal("file"),
589
- cacheControl: z.lazy(() => exports.InvokeDeploymentRequest2CacheControl$outboundSchema).optional(),
590
- file: filecontentpartschema_js_1.FileContentPartSchema$outboundSchema,
591
- }).transform((v) => {
592
- return (0, primitives_js_1.remap)(v, {
593
- cacheControl: "cache_control",
594
- });
595
- });
596
- function two4ToJSON(two4) {
597
- return JSON.stringify(exports.Two4$outboundSchema.parse(two4));
598
- }
599
- /** @internal */
600
- exports.InvokeDeploymentRequestContentMessages2$outboundSchema = z.union([
601
- textcontentpartschema_js_1.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
602
- imagecontentpartschema_js_1.ImageContentPartSchema$outboundSchema,
603
- audiocontentpartschema_js_1.AudioContentPartSchema$outboundSchema,
604
- z.lazy(() => exports.Two4$outboundSchema),
605
- ]);
606
- function invokeDeploymentRequestContentMessages2ToJSON(invokeDeploymentRequestContentMessages2) {
607
- return JSON.stringify(exports.InvokeDeploymentRequestContentMessages2$outboundSchema.parse(invokeDeploymentRequestContentMessages2));
608
- }
609
- /** @internal */
610
- exports.InvokeDeploymentRequestMessages3Content$outboundSchema = z.union([
611
- z.string(),
612
- z.array(z.union([
613
- textcontentpartschema_js_1.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
614
- imagecontentpartschema_js_1.ImageContentPartSchema$outboundSchema,
615
- audiocontentpartschema_js_1.AudioContentPartSchema$outboundSchema,
616
- z.lazy(() => exports.Two4$outboundSchema),
617
- ])),
618
- ]);
619
- function invokeDeploymentRequestMessages3ContentToJSON(invokeDeploymentRequestMessages3Content) {
620
- return JSON.stringify(exports.InvokeDeploymentRequestMessages3Content$outboundSchema.parse(invokeDeploymentRequestMessages3Content));
621
- }
622
- /** @internal */
623
- exports.MessagesUserMessage$outboundSchema = z.object({
624
- role: z.literal("user"),
625
- name: z.string().optional(),
626
- content: z.union([
627
- z.string(),
628
- z.array(z.union([
629
- textcontentpartschema_js_1.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
630
- imagecontentpartschema_js_1.ImageContentPartSchema$outboundSchema,
631
- audiocontentpartschema_js_1.AudioContentPartSchema$outboundSchema,
632
- z.lazy(() => exports.Two4$outboundSchema),
633
- ])),
634
- ]),
635
- });
636
- function messagesUserMessageToJSON(messagesUserMessage) {
637
- return JSON.stringify(exports.MessagesUserMessage$outboundSchema.parse(messagesUserMessage));
638
- }
639
- /** @internal */
640
- exports.InvokeDeploymentRequestMessagesContent$outboundSchema = z.union([z.string(), z.array(textcontentpartschema_js_1.TextContentPartSchema$outboundSchema)]);
641
- function invokeDeploymentRequestMessagesContentToJSON(invokeDeploymentRequestMessagesContent) {
642
- return JSON.stringify(exports.InvokeDeploymentRequestMessagesContent$outboundSchema.parse(invokeDeploymentRequestMessagesContent));
643
- }
644
- /** @internal */
645
- exports.MessagesDeveloperMessage$outboundSchema = z.object({
646
- role: z.literal("developer"),
647
- content: z.union([z.string(), z.array(textcontentpartschema_js_1.TextContentPartSchema$outboundSchema)]),
648
- name: z.string().optional(),
649
- });
650
- function messagesDeveloperMessageToJSON(messagesDeveloperMessage) {
651
- return JSON.stringify(exports.MessagesDeveloperMessage$outboundSchema.parse(messagesDeveloperMessage));
652
- }
653
- /** @internal */
654
- exports.MessagesContent$outboundSchema = z.union([z.string(), z.array(textcontentpartschema_js_1.TextContentPartSchema$outboundSchema)]);
655
- function messagesContentToJSON(messagesContent) {
656
- return JSON.stringify(exports.MessagesContent$outboundSchema.parse(messagesContent));
657
- }
658
- /** @internal */
659
- exports.MessagesSystemMessage$outboundSchema = z.object({
660
- role: z.literal("system"),
661
- content: z.union([z.string(), z.array(textcontentpartschema_js_1.TextContentPartSchema$outboundSchema)]),
662
- name: z.string().optional(),
663
- });
664
- function messagesSystemMessageToJSON(messagesSystemMessage) {
665
- return JSON.stringify(exports.MessagesSystemMessage$outboundSchema.parse(messagesSystemMessage));
666
- }
667
- /** @internal */
668
- exports.Messages$outboundSchema = z.union([
669
- z.lazy(() => exports.MessagesSystemMessage$outboundSchema),
670
- z.lazy(() => exports.MessagesDeveloperMessage$outboundSchema),
671
- z.lazy(() => exports.MessagesUserMessage$outboundSchema),
672
- z.lazy(() => exports.MessagesAssistantMessage$outboundSchema),
673
- z.lazy(() => exports.MessagesToolMessage$outboundSchema),
674
- ]);
675
- function messagesToJSON(messages) {
676
- return JSON.stringify(exports.Messages$outboundSchema.parse(messages));
677
- }
678
- /** @internal */
679
- exports.InvokeDeploymentRequestMetadata$outboundSchema = z.object({
680
- fileName: z.string().optional(),
681
- fileType: z.string().optional(),
682
- pageNumber: z.number().optional(),
683
- }).transform((v) => {
684
- return (0, primitives_js_1.remap)(v, {
685
- fileName: "file_name",
686
- fileType: "file_type",
687
- pageNumber: "page_number",
688
- });
689
- });
690
- function invokeDeploymentRequestMetadataToJSON(invokeDeploymentRequestMetadata) {
691
- return JSON.stringify(exports.InvokeDeploymentRequestMetadata$outboundSchema.parse(invokeDeploymentRequestMetadata));
692
- }
693
- /** @internal */
694
- exports.Documents$outboundSchema = z.object({
695
- text: z.string(),
696
- metadata: z.lazy(() => exports.InvokeDeploymentRequestMetadata$outboundSchema)
697
- .optional(),
698
- });
699
- function documentsToJSON(documents) {
700
- return JSON.stringify(exports.Documents$outboundSchema.parse(documents));
701
- }
702
- /** @internal */
703
- exports.InvokeOptions$outboundSchema = z.object({
704
- includeRetrievals: z.boolean().default(false),
705
- includeUsage: z.boolean().default(false),
706
- mockResponse: z.string().optional(),
707
- }).transform((v) => {
708
- return (0, primitives_js_1.remap)(v, {
709
- includeRetrievals: "include_retrievals",
710
- includeUsage: "include_usage",
711
- mockResponse: "mock_response",
712
- });
713
- });
714
- function invokeOptionsToJSON(invokeOptions) {
715
- return JSON.stringify(exports.InvokeOptions$outboundSchema.parse(invokeOptions));
716
- }
717
- /** @internal */
718
- exports.Thread$outboundSchema = z.object({
719
- id: z.string(),
720
- tags: z.array(z.string()).optional(),
721
- });
722
- function threadToJSON(thread) {
723
- return JSON.stringify(exports.Thread$outboundSchema.parse(thread));
724
- }
725
- /** @internal */
726
- exports.OrExists$outboundSchema = z.object({
727
- exists: z.boolean(),
728
- });
729
- function orExistsToJSON(orExists) {
730
- return JSON.stringify(exports.OrExists$outboundSchema.parse(orExists));
731
- }
732
- /** @internal */
733
- exports.OrNin$outboundSchema = z.union([z.string(), z.number(), z.boolean()]);
734
- function orNinToJSON(orNin) {
735
- return JSON.stringify(exports.OrNin$outboundSchema.parse(orNin));
736
- }
737
- /** @internal */
738
- exports.InvokeDeploymentRequestOrNin$outboundSchema = z.object({
739
- nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
740
- });
741
- function invokeDeploymentRequestOrNinToJSON(invokeDeploymentRequestOrNin) {
742
- return JSON.stringify(exports.InvokeDeploymentRequestOrNin$outboundSchema.parse(invokeDeploymentRequestOrNin));
743
- }
744
- /** @internal */
745
- exports.OrIn$outboundSchema = z.union([z.string(), z.number(), z.boolean()]);
746
- function orInToJSON(orIn) {
747
- return JSON.stringify(exports.OrIn$outboundSchema.parse(orIn));
748
- }
749
- /** @internal */
750
- exports.InvokeDeploymentRequestOrIn$outboundSchema = z.object({
751
- in: z.array(z.union([z.string(), z.number(), z.boolean()])),
752
- });
753
- function invokeDeploymentRequestOrInToJSON(invokeDeploymentRequestOrIn) {
754
- return JSON.stringify(exports.InvokeDeploymentRequestOrIn$outboundSchema.parse(invokeDeploymentRequestOrIn));
755
- }
756
- /** @internal */
757
- exports.OrLte$outboundSchema = z.object({
758
- lte: z.number(),
759
- });
760
- function orLteToJSON(orLte) {
761
- return JSON.stringify(exports.OrLte$outboundSchema.parse(orLte));
762
- }
763
- /** @internal */
764
- exports.OrLt$outboundSchema = z.object({
765
- lt: z.number(),
766
- });
767
- function orLtToJSON(orLt) {
768
- return JSON.stringify(exports.OrLt$outboundSchema.parse(orLt));
769
- }
770
- /** @internal */
771
- exports.OrGte$outboundSchema = z.object({
772
- gte: z.number(),
773
- });
774
- function orGteToJSON(orGte) {
775
- return JSON.stringify(exports.OrGte$outboundSchema.parse(orGte));
776
- }
777
- /** @internal */
778
- exports.OrGt$outboundSchema = z.object({
779
- gt: z.number(),
780
- });
781
- function orGtToJSON(orGt) {
782
- return JSON.stringify(exports.OrGt$outboundSchema.parse(orGt));
783
- }
784
- /** @internal */
785
- exports.OrNe$outboundSchema = z.union([z.string(), z.number(), z.boolean()]);
786
- function orNeToJSON(orNe) {
787
- return JSON.stringify(exports.OrNe$outboundSchema.parse(orNe));
788
- }
789
- /** @internal */
790
- exports.InvokeDeploymentRequestOrNe$outboundSchema = z.object({
791
- ne: z.union([z.string(), z.number(), z.boolean()]),
792
- });
793
- function invokeDeploymentRequestOrNeToJSON(invokeDeploymentRequestOrNe) {
794
- return JSON.stringify(exports.InvokeDeploymentRequestOrNe$outboundSchema.parse(invokeDeploymentRequestOrNe));
795
- }
796
- /** @internal */
797
- exports.OrEq$outboundSchema = z.union([z.string(), z.number(), z.boolean()]);
798
- function orEqToJSON(orEq) {
799
- return JSON.stringify(exports.OrEq$outboundSchema.parse(orEq));
800
- }
801
- /** @internal */
802
- exports.InvokeDeploymentRequestOrEq$outboundSchema = z.object({
803
- eq: z.union([z.string(), z.number(), z.boolean()]),
804
- });
805
- function invokeDeploymentRequestOrEqToJSON(invokeDeploymentRequestOrEq) {
806
- return JSON.stringify(exports.InvokeDeploymentRequestOrEq$outboundSchema.parse(invokeDeploymentRequestOrEq));
807
- }
808
- /** @internal */
809
- exports.Or$outboundSchema = z
810
- .union([
811
- z.lazy(() => exports.InvokeDeploymentRequestOrEq$outboundSchema),
812
- z.lazy(() => exports.InvokeDeploymentRequestOrNe$outboundSchema),
813
- z.lazy(() => exports.OrGt$outboundSchema),
814
- z.lazy(() => exports.OrGte$outboundSchema),
815
- z.lazy(() => exports.OrLt$outboundSchema),
816
- z.lazy(() => exports.OrLte$outboundSchema),
817
- z.lazy(() => exports.InvokeDeploymentRequestOrIn$outboundSchema),
818
- z.lazy(() => exports.InvokeDeploymentRequestOrNin$outboundSchema),
819
- z.lazy(() => exports.OrExists$outboundSchema),
820
- ]);
821
- function orToJSON(or) {
822
- return JSON.stringify(exports.Or$outboundSchema.parse(or));
823
- }
824
- /** @internal */
825
- exports.KnowledgeFilterOr$outboundSchema = z.object({
826
- or: z.array(z.record(z.union([
827
- z.lazy(() => exports.InvokeDeploymentRequestOrEq$outboundSchema),
828
- z.lazy(() => exports.InvokeDeploymentRequestOrNe$outboundSchema),
829
- z.lazy(() => exports.OrGt$outboundSchema),
830
- z.lazy(() => exports.OrGte$outboundSchema),
831
- z.lazy(() => exports.OrLt$outboundSchema),
832
- z.lazy(() => exports.OrLte$outboundSchema),
833
- z.lazy(() => exports.InvokeDeploymentRequestOrIn$outboundSchema),
834
- z.lazy(() => exports.InvokeDeploymentRequestOrNin$outboundSchema),
835
- z.lazy(() => exports.OrExists$outboundSchema),
836
- ]))),
837
- });
838
- function knowledgeFilterOrToJSON(knowledgeFilterOr) {
839
- return JSON.stringify(exports.KnowledgeFilterOr$outboundSchema.parse(knowledgeFilterOr));
840
- }
841
- /** @internal */
842
- exports.AndExists$outboundSchema = z.object({
843
- exists: z.boolean(),
844
- });
845
- function andExistsToJSON(andExists) {
846
- return JSON.stringify(exports.AndExists$outboundSchema.parse(andExists));
847
- }
848
- /** @internal */
849
- exports.AndNin$outboundSchema = z.union([z.string(), z.number(), z.boolean()]);
850
- function andNinToJSON(andNin) {
851
- return JSON.stringify(exports.AndNin$outboundSchema.parse(andNin));
852
- }
853
- /** @internal */
854
- exports.InvokeDeploymentRequestAndNin$outboundSchema = z.object({
855
- nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
856
- });
857
- function invokeDeploymentRequestAndNinToJSON(invokeDeploymentRequestAndNin) {
858
- return JSON.stringify(exports.InvokeDeploymentRequestAndNin$outboundSchema.parse(invokeDeploymentRequestAndNin));
859
- }
860
- /** @internal */
861
- exports.AndIn$outboundSchema = z.union([z.string(), z.number(), z.boolean()]);
862
- function andInToJSON(andIn) {
863
- return JSON.stringify(exports.AndIn$outboundSchema.parse(andIn));
864
- }
865
- /** @internal */
866
- exports.InvokeDeploymentRequestAndIn$outboundSchema = z.object({
867
- in: z.array(z.union([z.string(), z.number(), z.boolean()])),
868
- });
869
- function invokeDeploymentRequestAndInToJSON(invokeDeploymentRequestAndIn) {
870
- return JSON.stringify(exports.InvokeDeploymentRequestAndIn$outboundSchema.parse(invokeDeploymentRequestAndIn));
871
- }
872
- /** @internal */
873
- exports.AndLte$outboundSchema = z.object({
874
- lte: z.number(),
875
- });
876
- function andLteToJSON(andLte) {
877
- return JSON.stringify(exports.AndLte$outboundSchema.parse(andLte));
878
- }
879
- /** @internal */
880
- exports.AndLt$outboundSchema = z.object({
881
- lt: z.number(),
882
- });
883
- function andLtToJSON(andLt) {
884
- return JSON.stringify(exports.AndLt$outboundSchema.parse(andLt));
885
- }
886
- /** @internal */
887
- exports.AndGte$outboundSchema = z.object({
888
- gte: z.number(),
889
- });
890
- function andGteToJSON(andGte) {
891
- return JSON.stringify(exports.AndGte$outboundSchema.parse(andGte));
892
- }
893
- /** @internal */
894
- exports.AndGt$outboundSchema = z.object({
895
- gt: z.number(),
896
- });
897
- function andGtToJSON(andGt) {
898
- return JSON.stringify(exports.AndGt$outboundSchema.parse(andGt));
899
- }
900
- /** @internal */
901
- exports.AndNe$outboundSchema = z.union([z.string(), z.number(), z.boolean()]);
902
- function andNeToJSON(andNe) {
903
- return JSON.stringify(exports.AndNe$outboundSchema.parse(andNe));
904
- }
905
- /** @internal */
906
- exports.InvokeDeploymentRequestAndNe$outboundSchema = z.object({
907
- ne: z.union([z.string(), z.number(), z.boolean()]),
908
- });
909
- function invokeDeploymentRequestAndNeToJSON(invokeDeploymentRequestAndNe) {
910
- return JSON.stringify(exports.InvokeDeploymentRequestAndNe$outboundSchema.parse(invokeDeploymentRequestAndNe));
911
- }
912
- /** @internal */
913
- exports.AndEq$outboundSchema = z.union([z.string(), z.number(), z.boolean()]);
914
- function andEqToJSON(andEq) {
915
- return JSON.stringify(exports.AndEq$outboundSchema.parse(andEq));
916
- }
917
- /** @internal */
918
- exports.InvokeDeploymentRequestAndEq$outboundSchema = z.object({
919
- eq: z.union([z.string(), z.number(), z.boolean()]),
920
- });
921
- function invokeDeploymentRequestAndEqToJSON(invokeDeploymentRequestAndEq) {
922
- return JSON.stringify(exports.InvokeDeploymentRequestAndEq$outboundSchema.parse(invokeDeploymentRequestAndEq));
923
- }
924
- /** @internal */
925
- exports.And$outboundSchema = z
926
- .union([
927
- z.lazy(() => exports.InvokeDeploymentRequestAndEq$outboundSchema),
928
- z.lazy(() => exports.InvokeDeploymentRequestAndNe$outboundSchema),
929
- z.lazy(() => exports.AndGt$outboundSchema),
930
- z.lazy(() => exports.AndGte$outboundSchema),
931
- z.lazy(() => exports.AndLt$outboundSchema),
932
- z.lazy(() => exports.AndLte$outboundSchema),
933
- z.lazy(() => exports.InvokeDeploymentRequestAndIn$outboundSchema),
934
- z.lazy(() => exports.InvokeDeploymentRequestAndNin$outboundSchema),
935
- z.lazy(() => exports.AndExists$outboundSchema),
936
- ]);
937
- function andToJSON(and) {
938
- return JSON.stringify(exports.And$outboundSchema.parse(and));
939
- }
940
- /** @internal */
941
- exports.KnowledgeFilterAnd$outboundSchema = z.object({
942
- and: z.array(z.record(z.union([
943
- z.lazy(() => exports.InvokeDeploymentRequestAndEq$outboundSchema),
944
- z.lazy(() => exports.InvokeDeploymentRequestAndNe$outboundSchema),
945
- z.lazy(() => exports.AndGt$outboundSchema),
946
- z.lazy(() => exports.AndGte$outboundSchema),
947
- z.lazy(() => exports.AndLt$outboundSchema),
948
- z.lazy(() => exports.AndLte$outboundSchema),
949
- z.lazy(() => exports.InvokeDeploymentRequestAndIn$outboundSchema),
950
- z.lazy(() => exports.InvokeDeploymentRequestAndNin$outboundSchema),
951
- z.lazy(() => exports.AndExists$outboundSchema),
952
- ]))),
953
- });
954
- function knowledgeFilterAndToJSON(knowledgeFilterAnd) {
955
- return JSON.stringify(exports.KnowledgeFilterAnd$outboundSchema.parse(knowledgeFilterAnd));
956
- }
957
- /** @internal */
958
- exports.Exists$outboundSchema = z.object({
959
- exists: z.boolean(),
960
- });
961
- function existsToJSON(exists) {
962
- return JSON.stringify(exports.Exists$outboundSchema.parse(exists));
963
- }
964
- /** @internal */
965
- exports.Nin$outboundSchema = z
966
- .union([z.string(), z.number(), z.boolean()]);
967
- function ninToJSON(nin) {
968
- return JSON.stringify(exports.Nin$outboundSchema.parse(nin));
969
- }
970
- /** @internal */
971
- exports.OneNin$outboundSchema = z.object({
972
- nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
973
- });
974
- function oneNinToJSON(oneNin) {
975
- return JSON.stringify(exports.OneNin$outboundSchema.parse(oneNin));
976
- }
977
- /** @internal */
978
- exports.In$outboundSchema = z
979
- .union([z.string(), z.number(), z.boolean()]);
980
- function inToJSON(value) {
981
- return JSON.stringify(exports.In$outboundSchema.parse(value));
982
- }
983
- /** @internal */
984
- exports.OneIn$outboundSchema = z.object({
985
- in: z.array(z.union([z.string(), z.number(), z.boolean()])),
986
- });
987
- function oneInToJSON(oneIn) {
988
- return JSON.stringify(exports.OneIn$outboundSchema.parse(oneIn));
989
- }
990
- /** @internal */
991
- exports.Lte$outboundSchema = z
992
- .object({
993
- lte: z.number(),
994
- });
995
- function lteToJSON(lte) {
996
- return JSON.stringify(exports.Lte$outboundSchema.parse(lte));
997
- }
998
- /** @internal */
999
- exports.Lt$outboundSchema = z
1000
- .object({
1001
- lt: z.number(),
1002
- });
1003
- function ltToJSON(lt) {
1004
- return JSON.stringify(exports.Lt$outboundSchema.parse(lt));
1005
- }
1006
- /** @internal */
1007
- exports.Gte$outboundSchema = z
1008
- .object({
1009
- gte: z.number(),
1010
- });
1011
- function gteToJSON(gte) {
1012
- return JSON.stringify(exports.Gte$outboundSchema.parse(gte));
1013
- }
1014
- /** @internal */
1015
- exports.Gt$outboundSchema = z
1016
- .object({
1017
- gt: z.number(),
1018
- });
1019
- function gtToJSON(gt) {
1020
- return JSON.stringify(exports.Gt$outboundSchema.parse(gt));
1021
- }
1022
- /** @internal */
1023
- exports.Ne$outboundSchema = z
1024
- .union([z.string(), z.number(), z.boolean()]);
1025
- function neToJSON(ne) {
1026
- return JSON.stringify(exports.Ne$outboundSchema.parse(ne));
1027
- }
1028
- /** @internal */
1029
- exports.OneNe$outboundSchema = z.object({
1030
- ne: z.union([z.string(), z.number(), z.boolean()]),
1031
- });
1032
- function oneNeToJSON(oneNe) {
1033
- return JSON.stringify(exports.OneNe$outboundSchema.parse(oneNe));
1034
- }
1035
- /** @internal */
1036
- exports.Eq$outboundSchema = z
1037
- .union([z.string(), z.number(), z.boolean()]);
1038
- function eqToJSON(eq) {
1039
- return JSON.stringify(exports.Eq$outboundSchema.parse(eq));
1040
- }
1041
- /** @internal */
1042
- exports.OneEq$outboundSchema = z.object({
1043
- eq: z.union([z.string(), z.number(), z.boolean()]),
1044
- });
1045
- function oneEqToJSON(oneEq) {
1046
- return JSON.stringify(exports.OneEq$outboundSchema.parse(oneEq));
1047
- }
1048
- /** @internal */
1049
- exports.One$outboundSchema = z
1050
- .union([
1051
- z.lazy(() => exports.OneEq$outboundSchema),
1052
- z.lazy(() => exports.OneNe$outboundSchema),
1053
- z.lazy(() => exports.Gt$outboundSchema),
1054
- z.lazy(() => exports.Gte$outboundSchema),
1055
- z.lazy(() => exports.Lt$outboundSchema),
1056
- z.lazy(() => exports.Lte$outboundSchema),
1057
- z.lazy(() => exports.OneIn$outboundSchema),
1058
- z.lazy(() => exports.OneNin$outboundSchema),
1059
- z.lazy(() => exports.Exists$outboundSchema),
1060
- ]);
1061
- function oneToJSON(one) {
1062
- return JSON.stringify(exports.One$outboundSchema.parse(one));
1063
- }
1064
- /** @internal */
1065
- exports.KnowledgeFilter$outboundSchema = z.union([
1066
- z.lazy(() => exports.KnowledgeFilterAnd$outboundSchema),
1067
- z.lazy(() => exports.KnowledgeFilterOr$outboundSchema),
1068
- z.record(z.union([
1069
- z.lazy(() => exports.OneEq$outboundSchema),
1070
- z.lazy(() => exports.OneNe$outboundSchema),
1071
- z.lazy(() => exports.Gt$outboundSchema),
1072
- z.lazy(() => exports.Gte$outboundSchema),
1073
- z.lazy(() => exports.Lt$outboundSchema),
1074
- z.lazy(() => exports.Lte$outboundSchema),
1075
- z.lazy(() => exports.OneIn$outboundSchema),
1076
- z.lazy(() => exports.OneNin$outboundSchema),
1077
- z.lazy(() => exports.Exists$outboundSchema),
1078
- ])),
1079
- ]);
1080
- function knowledgeFilterToJSON(knowledgeFilter) {
1081
- return JSON.stringify(exports.KnowledgeFilter$outboundSchema.parse(knowledgeFilter));
1082
- }
1083
- /** @internal */
1084
- exports.InvokeDeploymentRequest$outboundSchema = z.object({
1085
- key: z.string(),
1086
- stream: z.boolean().default(false),
1087
- inputs: z.record(z.any()).optional(),
1088
- context: z.record(z.any()).optional(),
1089
- prefixMessages: z.array(z.union([
1090
- z.lazy(() => exports.SystemMessage$outboundSchema),
1091
- z.lazy(() => exports.DeveloperMessage$outboundSchema),
1092
- z.lazy(() => exports.UserMessage$outboundSchema),
1093
- z.lazy(() => exports.AssistantMessage$outboundSchema),
1094
- z.lazy(() => exports.ToolMessage$outboundSchema),
1095
- ])).optional(),
1096
- messages: z.array(z.union([
1097
- z.lazy(() => exports.MessagesSystemMessage$outboundSchema),
1098
- z.lazy(() => exports.MessagesDeveloperMessage$outboundSchema),
1099
- z.lazy(() => exports.MessagesUserMessage$outboundSchema),
1100
- z.lazy(() => exports.MessagesAssistantMessage$outboundSchema),
1101
- z.lazy(() => exports.MessagesToolMessage$outboundSchema),
1102
- ])).optional(),
1103
- identity: publicidentity_js_1.PublicIdentity$outboundSchema.optional(),
1104
- fileIds: z.array(z.string()).optional(),
1105
- metadata: z.record(z.any()).optional(),
1106
- extraParams: z.record(z.any()).optional(),
1107
- documents: z.array(z.lazy(() => exports.Documents$outboundSchema)).optional(),
1108
- invokeOptions: z.lazy(() => exports.InvokeOptions$outboundSchema).optional(),
1109
- thread: z.lazy(() => exports.Thread$outboundSchema).optional(),
1110
- knowledgeFilter: z.union([
1111
- z.lazy(() => exports.KnowledgeFilterAnd$outboundSchema),
1112
- z.lazy(() => exports.KnowledgeFilterOr$outboundSchema),
1113
- z.record(z.union([
1114
- z.lazy(() => exports.OneEq$outboundSchema),
1115
- z.lazy(() => exports.OneNe$outboundSchema),
1116
- z.lazy(() => exports.Gt$outboundSchema),
1117
- z.lazy(() => exports.Gte$outboundSchema),
1118
- z.lazy(() => exports.Lt$outboundSchema),
1119
- z.lazy(() => exports.Lte$outboundSchema),
1120
- z.lazy(() => exports.OneIn$outboundSchema),
1121
- z.lazy(() => exports.OneNin$outboundSchema),
1122
- z.lazy(() => exports.Exists$outboundSchema),
1123
- ])),
1124
- ]).optional(),
1125
- }).transform((v) => {
1126
- return (0, primitives_js_1.remap)(v, {
1127
- prefixMessages: "prefix_messages",
1128
- fileIds: "file_ids",
1129
- extraParams: "extra_params",
1130
- invokeOptions: "invoke_options",
1131
- knowledgeFilter: "knowledge_filter",
1132
- });
1133
- });
1134
- function invokeDeploymentRequestToJSON(invokeDeploymentRequest) {
1135
- return JSON.stringify(exports.InvokeDeploymentRequest$outboundSchema.parse(invokeDeploymentRequest));
1136
- }
1137
- //# sourceMappingURL=invokedeploymentrequest.js.map