@orq-ai/node 3.1.6 → 3.2.0-rc.3

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 (165) hide show
  1. package/README.md +0 -38
  2. package/docs/sdks/deployments/README.md +0 -81
  3. package/jsr.json +1 -2
  4. package/lib/config.d.ts +2 -2
  5. package/lib/config.js +2 -2
  6. package/lib/config.js.map +1 -1
  7. package/lib/matchers.d.ts.map +1 -1
  8. package/lib/matchers.js +1 -4
  9. package/lib/matchers.js.map +1 -1
  10. package/models/operations/createcontact.js +2 -2
  11. package/models/operations/fileget.js +2 -2
  12. package/models/operations/filelist.js +2 -2
  13. package/models/operations/fileupload.js +2 -2
  14. package/models/operations/index.d.ts +0 -1
  15. package/models/operations/index.d.ts.map +1 -1
  16. package/models/operations/index.js +0 -1
  17. package/models/operations/index.js.map +1 -1
  18. package/package.json +3 -2
  19. package/sdk/deployments.d.ts +0 -8
  20. package/sdk/deployments.d.ts.map +1 -1
  21. package/sdk/deployments.js +0 -10
  22. package/sdk/deployments.js.map +1 -1
  23. package/src/lib/config.ts +2 -2
  24. package/src/lib/matchers.ts +1 -4
  25. package/src/models/operations/createcontact.ts +2 -2
  26. package/src/models/operations/fileget.ts +2 -2
  27. package/src/models/operations/filelist.ts +2 -2
  28. package/src/models/operations/fileupload.ts +2 -2
  29. package/src/models/operations/index.ts +0 -1
  30. package/src/sdk/deployments.ts +0 -19
  31. package/funcs/deploymentsStream.d.ts +0 -16
  32. package/funcs/deploymentsStream.d.ts.map +0 -1
  33. package/funcs/deploymentsStream.js +0 -126
  34. package/funcs/deploymentsStream.js.map +0 -1
  35. package/lib/event-streams.d.ts +0 -17
  36. package/lib/event-streams.d.ts.map +0 -1
  37. package/lib/event-streams.js +0 -220
  38. package/lib/event-streams.js.map +0 -1
  39. package/models/operations/deploymentstream.d.ts +0 -1622
  40. package/models/operations/deploymentstream.d.ts.map +0 -1
  41. package/models/operations/deploymentstream.js +0 -1571
  42. package/models/operations/deploymentstream.js.map +0 -1
  43. package/packages/orq-rc/FUNCTIONS.md +0 -106
  44. package/packages/orq-rc/README.md +0 -559
  45. package/packages/orq-rc/RUNTIMES.md +0 -48
  46. package/packages/orq-rc/docs/sdks/contacts/README.md +0 -84
  47. package/packages/orq-rc/docs/sdks/deployments/README.md +0 -316
  48. package/packages/orq-rc/docs/sdks/feedback/README.md +0 -92
  49. package/packages/orq-rc/docs/sdks/files/README.md +0 -305
  50. package/packages/orq-rc/docs/sdks/metrics/README.md +0 -86
  51. package/packages/orq-rc/docs/sdks/orq/README.md +0 -10
  52. package/packages/orq-rc/docs/sdks/prompts/README.md +0 -608
  53. package/packages/orq-rc/docs/sdks/promptsnippets/README.md +0 -534
  54. package/packages/orq-rc/docs/sdks/remoteconfig/README.md +0 -80
  55. package/packages/orq-rc/jsr.json +0 -28
  56. package/packages/orq-rc/package-lock.json +0 -1861
  57. package/packages/orq-rc/package.json +0 -31
  58. package/packages/orq-rc/src/core.ts +0 -13
  59. package/packages/orq-rc/src/funcs/contactsCreate.ts +0 -126
  60. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -134
  61. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -142
  62. package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -141
  63. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +0 -134
  64. package/packages/orq-rc/src/funcs/deploymentsStream.ts +0 -150
  65. package/packages/orq-rc/src/funcs/feedbackCreate.ts +0 -126
  66. package/packages/orq-rc/src/funcs/filesDelete.ts +0 -130
  67. package/packages/orq-rc/src/funcs/filesGet.ts +0 -129
  68. package/packages/orq-rc/src/funcs/filesList.ts +0 -131
  69. package/packages/orq-rc/src/funcs/filesUpload.ts +0 -149
  70. package/packages/orq-rc/src/funcs/promptSnippetsCreate.ts +0 -128
  71. package/packages/orq-rc/src/funcs/promptSnippetsDelete.ts +0 -131
  72. package/packages/orq-rc/src/funcs/promptSnippetsGet.ts +0 -130
  73. package/packages/orq-rc/src/funcs/promptSnippetsGetByKey.ts +0 -132
  74. package/packages/orq-rc/src/funcs/promptSnippetsList.ts +0 -132
  75. package/packages/orq-rc/src/funcs/promptSnippetsUpdate.ts +0 -139
  76. package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -126
  77. package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -130
  78. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -146
  79. package/packages/orq-rc/src/funcs/promptsList.ts +0 -133
  80. package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -139
  81. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -132
  82. package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -138
  83. package/packages/orq-rc/src/funcs/remoteconfigGetConfig.ts +0 -127
  84. package/packages/orq-rc/src/hooks/global.ts +0 -44
  85. package/packages/orq-rc/src/hooks/hooks.ts +0 -132
  86. package/packages/orq-rc/src/hooks/index.ts +0 -6
  87. package/packages/orq-rc/src/hooks/registration.ts +0 -15
  88. package/packages/orq-rc/src/hooks/types.ts +0 -109
  89. package/packages/orq-rc/src/index.ts +0 -7
  90. package/packages/orq-rc/src/lib/base64.ts +0 -37
  91. package/packages/orq-rc/src/lib/config.ts +0 -70
  92. package/packages/orq-rc/src/lib/dlv.ts +0 -53
  93. package/packages/orq-rc/src/lib/encodings.ts +0 -483
  94. package/packages/orq-rc/src/lib/env.ts +0 -73
  95. package/packages/orq-rc/src/lib/event-streams.ts +0 -264
  96. package/packages/orq-rc/src/lib/files.ts +0 -40
  97. package/packages/orq-rc/src/lib/http.ts +0 -323
  98. package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
  99. package/packages/orq-rc/src/lib/logger.ts +0 -9
  100. package/packages/orq-rc/src/lib/matchers.ts +0 -325
  101. package/packages/orq-rc/src/lib/primitives.ts +0 -136
  102. package/packages/orq-rc/src/lib/retries.ts +0 -218
  103. package/packages/orq-rc/src/lib/schemas.ts +0 -91
  104. package/packages/orq-rc/src/lib/sdks.ts +0 -400
  105. package/packages/orq-rc/src/lib/security.ts +0 -254
  106. package/packages/orq-rc/src/lib/url.ts +0 -33
  107. package/packages/orq-rc/src/models/components/deployments.ts +0 -1666
  108. package/packages/orq-rc/src/models/components/index.ts +0 -6
  109. package/packages/orq-rc/src/models/components/security.ts +0 -71
  110. package/packages/orq-rc/src/models/errors/apierror.ts +0 -27
  111. package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -71
  112. package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -82
  113. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
  114. package/packages/orq-rc/src/models/errors/index.ts +0 -11
  115. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -97
  116. package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -71
  117. package/packages/orq-rc/src/models/errors/updatepromptsnippet.ts +0 -71
  118. package/packages/orq-rc/src/models/operations/createcontact.ts +0 -256
  119. package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -286
  120. package/packages/orq-rc/src/models/operations/createprompt.ts +0 -3819
  121. package/packages/orq-rc/src/models/operations/createpromptsnippet.ts +0 -6239
  122. package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -69
  123. package/packages/orq-rc/src/models/operations/deletepromptsnippet.ts +0 -69
  124. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -1790
  125. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -3527
  126. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -1144
  127. package/packages/orq-rc/src/models/operations/deployments.ts +0 -2148
  128. package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -3062
  129. package/packages/orq-rc/src/models/operations/filedelete.ts +0 -78
  130. package/packages/orq-rc/src/models/operations/fileget.ts +0 -222
  131. package/packages/orq-rc/src/models/operations/filelist.ts +0 -321
  132. package/packages/orq-rc/src/models/operations/fileupload.ts +0 -322
  133. package/packages/orq-rc/src/models/operations/findonebykeypromptsnippet.ts +0 -4483
  134. package/packages/orq-rc/src/models/operations/findonepromptsnippet.ts +0 -4343
  135. package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -2116
  136. package/packages/orq-rc/src/models/operations/getallpromptsnippets.ts +0 -4472
  137. package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -1982
  138. package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -2012
  139. package/packages/orq-rc/src/models/operations/index.ts +0 -29
  140. package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -2146
  141. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -190
  142. package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -3917
  143. package/packages/orq-rc/src/models/operations/updatepromptsnippet.ts +0 -6544
  144. package/packages/orq-rc/src/sdk/contacts.ts +0 -27
  145. package/packages/orq-rc/src/sdk/deployments.ts +0 -89
  146. package/packages/orq-rc/src/sdk/feedback.ts +0 -27
  147. package/packages/orq-rc/src/sdk/files.ts +0 -72
  148. package/packages/orq-rc/src/sdk/index.ts +0 -5
  149. package/packages/orq-rc/src/sdk/metrics.ts +0 -27
  150. package/packages/orq-rc/src/sdk/prompts.ts +0 -126
  151. package/packages/orq-rc/src/sdk/promptsnippets.ts +0 -99
  152. package/packages/orq-rc/src/sdk/remoteconfig.ts +0 -24
  153. package/packages/orq-rc/src/sdk/sdk.ts +0 -49
  154. package/packages/orq-rc/src/types/blobs.ts +0 -31
  155. package/packages/orq-rc/src/types/constdatetime.ts +0 -15
  156. package/packages/orq-rc/src/types/enums.ts +0 -16
  157. package/packages/orq-rc/src/types/fp.ts +0 -50
  158. package/packages/orq-rc/src/types/index.ts +0 -11
  159. package/packages/orq-rc/src/types/operations.ts +0 -105
  160. package/packages/orq-rc/src/types/rfcdate.ts +0 -54
  161. package/packages/orq-rc/src/types/streams.ts +0 -21
  162. package/packages/orq-rc/tsconfig.json +0 -41
  163. package/src/funcs/deploymentsStream.ts +0 -151
  164. package/src/lib/event-streams.ts +0 -264
  165. package/src/models/operations/deploymentstream.ts +0 -3062
@@ -1,1622 +0,0 @@
1
- import * as z from "zod";
2
- import { ClosedEnum } from "../../types/enums.js";
3
- import { Result as SafeParseResult } from "../../types/fp.js";
4
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
- export type DeploymentStreamGlobals = {
6
- environment?: string | undefined;
7
- contactId?: string | undefined;
8
- };
9
- export type DeploymentStreamInputs = string | number | boolean;
10
- /**
11
- * The role of the prompt message
12
- */
13
- export declare const DeploymentStreamRole: {
14
- readonly System: "system";
15
- readonly Assistant: "assistant";
16
- readonly User: "user";
17
- readonly Exception: "exception";
18
- readonly Tool: "tool";
19
- readonly Prompt: "prompt";
20
- readonly Correction: "correction";
21
- readonly ExpectedOutput: "expected_output";
22
- };
23
- /**
24
- * The role of the prompt message
25
- */
26
- export type DeploymentStreamRole = ClosedEnum<typeof DeploymentStreamRole>;
27
- export declare const DeploymentStream2DeploymentsType: {
28
- readonly ImageUrl: "image_url";
29
- };
30
- export type DeploymentStream2DeploymentsType = ClosedEnum<typeof DeploymentStream2DeploymentsType>;
31
- export type DeploymentStream2ImageUrl = {
32
- /**
33
- * Either a URL of the image or the base64 encoded data URI.
34
- */
35
- url: string;
36
- /**
37
- * Specifies the detail level of the image. Currently only supported with OpenAI models
38
- */
39
- detail?: string | undefined;
40
- };
41
- /**
42
- * The image part of the prompt message. Only supported with vision models.
43
- */
44
- export type DeploymentStream22 = {
45
- type: DeploymentStream2DeploymentsType;
46
- imageUrl: DeploymentStream2ImageUrl;
47
- };
48
- export declare const DeploymentStream2Type: {
49
- readonly Text: "text";
50
- };
51
- export type DeploymentStream2Type = ClosedEnum<typeof DeploymentStream2Type>;
52
- /**
53
- * Text content part of a prompt message
54
- */
55
- export type DeploymentStream21 = {
56
- type: DeploymentStream2Type;
57
- text: string;
58
- };
59
- export type DeploymentStreamContent2 = DeploymentStream21 | DeploymentStream22;
60
- /**
61
- * 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.
62
- */
63
- export type DeploymentStreamContent = string | Array<DeploymentStream21 | DeploymentStream22>;
64
- export declare const DeploymentStreamType: {
65
- readonly Function: "function";
66
- };
67
- export type DeploymentStreamType = ClosedEnum<typeof DeploymentStreamType>;
68
- export type DeploymentStreamFunction = {
69
- name: string;
70
- /**
71
- * JSON string arguments for the functions
72
- */
73
- arguments: string;
74
- };
75
- export type DeploymentStreamToolCalls = {
76
- id?: string | undefined;
77
- index?: number | undefined;
78
- type: DeploymentStreamType;
79
- function: DeploymentStreamFunction;
80
- };
81
- export type DeploymentStreamPrefixMessages = {
82
- /**
83
- * The role of the prompt message
84
- */
85
- role: DeploymentStreamRole;
86
- /**
87
- * 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.
88
- */
89
- content: string | Array<DeploymentStream21 | DeploymentStream22>;
90
- toolCalls?: Array<DeploymentStreamToolCalls> | undefined;
91
- };
92
- /**
93
- * The role of the prompt message
94
- */
95
- export declare const DeploymentStreamDeploymentsRole: {
96
- readonly System: "system";
97
- readonly Assistant: "assistant";
98
- readonly User: "user";
99
- readonly Exception: "exception";
100
- readonly Tool: "tool";
101
- readonly Prompt: "prompt";
102
- readonly Correction: "correction";
103
- readonly ExpectedOutput: "expected_output";
104
- };
105
- /**
106
- * The role of the prompt message
107
- */
108
- export type DeploymentStreamDeploymentsRole = ClosedEnum<typeof DeploymentStreamDeploymentsRole>;
109
- export declare const DeploymentStream2DeploymentsRequestRequestBodyType: {
110
- readonly ImageUrl: "image_url";
111
- };
112
- export type DeploymentStream2DeploymentsRequestRequestBodyType = ClosedEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyType>;
113
- export type DeploymentStream2ImageUrlInput = {
114
- /**
115
- * Either a URL of the image or the base64 encoded data URI.
116
- */
117
- url: string;
118
- /**
119
- * Specifies the detail level of the image. Currently only supported with OpenAI models
120
- */
121
- detail?: string | undefined;
122
- };
123
- /**
124
- * The image part of the prompt message. Only supported with vision models.
125
- */
126
- export type DeploymentStream22Input = {
127
- type: DeploymentStream2DeploymentsRequestRequestBodyType;
128
- imageUrl: DeploymentStream2ImageUrlInput;
129
- };
130
- export declare const DeploymentStream2DeploymentsRequestType: {
131
- readonly Text: "text";
132
- };
133
- export type DeploymentStream2DeploymentsRequestType = ClosedEnum<typeof DeploymentStream2DeploymentsRequestType>;
134
- /**
135
- * Text content part of a prompt message
136
- */
137
- export type DeploymentStream2Deployments1 = {
138
- type: DeploymentStream2DeploymentsRequestType;
139
- text: string;
140
- };
141
- export type DeploymentStreamContent2Input = DeploymentStream2Deployments1 | DeploymentStream22Input;
142
- /**
143
- * 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.
144
- */
145
- export type DeploymentStreamContentInput = string | Array<DeploymentStream2Deployments1 | DeploymentStream22Input>;
146
- export declare const DeploymentStreamDeploymentsType: {
147
- readonly Function: "function";
148
- };
149
- export type DeploymentStreamDeploymentsType = ClosedEnum<typeof DeploymentStreamDeploymentsType>;
150
- export type DeploymentStreamDeploymentsFunction = {
151
- name: string;
152
- /**
153
- * JSON string arguments for the functions
154
- */
155
- arguments: string;
156
- };
157
- export type DeploymentStreamDeploymentsToolCalls = {
158
- id?: string | undefined;
159
- index?: number | undefined;
160
- type: DeploymentStreamDeploymentsType;
161
- function: DeploymentStreamDeploymentsFunction;
162
- };
163
- export type DeploymentStreamMessages = {
164
- /**
165
- * The role of the prompt message
166
- */
167
- role: DeploymentStreamDeploymentsRole;
168
- /**
169
- * 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.
170
- */
171
- content: string | Array<DeploymentStream2Deployments1 | DeploymentStream22Input>;
172
- toolCalls?: Array<DeploymentStreamDeploymentsToolCalls> | undefined;
173
- };
174
- /**
175
- * Metadata about the document
176
- */
177
- export type DeploymentStreamMetadata = {
178
- /**
179
- * Name of the file the text is from.
180
- */
181
- fileName?: string | undefined;
182
- /**
183
- * Content type of the file the text is from.
184
- */
185
- fileType?: string | undefined;
186
- /**
187
- * The page number the text is from.
188
- */
189
- pageNumber?: number | undefined;
190
- };
191
- export type DeploymentStreamDocuments = {
192
- /**
193
- * The text content of the document
194
- */
195
- text: string;
196
- /**
197
- * Metadata about the document
198
- */
199
- metadata?: DeploymentStreamMetadata | undefined;
200
- };
201
- export type DeploymentStreamInvokeOptions = {
202
- /**
203
- * Whether to include the retrieved knowledge chunks in the response.
204
- */
205
- includeRetrievals?: boolean | undefined;
206
- };
207
- export type DeploymentStreamRequestBody = {
208
- /**
209
- * The deployment key to invoke
210
- */
211
- key: string;
212
- /**
213
- * Key-value pairs variables to replace in your prompts. If a variable is not provided that is defined in the prompt, the default variables are used.
214
- */
215
- inputs?: {
216
- [k: string]: string | number | boolean;
217
- } | undefined;
218
- /**
219
- * Key-value pairs that match your data model and fields declared in your configuration matrix. If you send multiple prompt keys, the context will be applied to the evaluation of each key.
220
- */
221
- context?: {
222
- [k: string]: any;
223
- } | undefined;
224
- /**
225
- * A list of messages to include after the `System` message, but before the `User` and `Assistant` pairs configured in your deployment.
226
- */
227
- prefixMessages?: Array<DeploymentStreamPrefixMessages> | undefined;
228
- /**
229
- * A list of messages to send to the deployment.
230
- */
231
- messages?: Array<DeploymentStreamMessages> | undefined;
232
- /**
233
- * A list of file IDs that are associated with the deployment request.
234
- */
235
- fileIds?: Array<string> | undefined;
236
- /**
237
- * Key-value pairs that you want to attach to the log generated by this request.
238
- */
239
- metadata?: {
240
- [k: string]: any;
241
- } | undefined;
242
- /**
243
- * Utilized for passing additional parameters to the model provider. Exercise caution when using this feature, as the included parameters will overwrite any parameters specified in the deployment prompt configuration.
244
- */
245
- extraParams?: {
246
- [k: string]: any;
247
- } | undefined;
248
- /**
249
- * A list of relevant documents that evaluators and guardrails can cite to evaluate the user input or the model response based on your deployment settings.
250
- */
251
- documents?: Array<DeploymentStreamDocuments> | undefined;
252
- invokeOptions?: DeploymentStreamInvokeOptions | undefined;
253
- };
254
- /**
255
- * Indicates the type of model used to generate the response
256
- */
257
- export declare const DeploymentStreamObject: {
258
- readonly Chat: "chat";
259
- readonly Completion: "completion";
260
- readonly Image: "image";
261
- readonly Vision: "vision";
262
- };
263
- /**
264
- * Indicates the type of model used to generate the response
265
- */
266
- export type DeploymentStreamObject = ClosedEnum<typeof DeploymentStreamObject>;
267
- /**
268
- * The provider used to generate the response
269
- */
270
- export declare const DeploymentStreamProvider: {
271
- readonly Cohere: "cohere";
272
- readonly Openai: "openai";
273
- readonly Anthropic: "anthropic";
274
- readonly Huggingface: "huggingface";
275
- readonly Replicate: "replicate";
276
- readonly Google: "google";
277
- readonly GoogleAi: "google-ai";
278
- readonly Azure: "azure";
279
- readonly Aws: "aws";
280
- readonly Anyscale: "anyscale";
281
- readonly Perplexity: "perplexity";
282
- readonly Groq: "groq";
283
- readonly Fal: "fal";
284
- readonly Leonardoai: "leonardoai";
285
- readonly Nvidia: "nvidia";
286
- readonly Jina: "jina";
287
- readonly Togetherai: "togetherai";
288
- readonly Elevenlabs: "elevenlabs";
289
- };
290
- /**
291
- * The provider used to generate the response
292
- */
293
- export type DeploymentStreamProvider = ClosedEnum<typeof DeploymentStreamProvider>;
294
- /**
295
- * The role of the prompt message
296
- */
297
- export declare const DeploymentStreamMessageDeploymentsResponseRole: {
298
- readonly System: "system";
299
- readonly Assistant: "assistant";
300
- readonly User: "user";
301
- readonly Exception: "exception";
302
- readonly Tool: "tool";
303
- readonly Prompt: "prompt";
304
- readonly Correction: "correction";
305
- readonly ExpectedOutput: "expected_output";
306
- };
307
- /**
308
- * The role of the prompt message
309
- */
310
- export type DeploymentStreamMessageDeploymentsResponseRole = ClosedEnum<typeof DeploymentStreamMessageDeploymentsResponseRole>;
311
- export type DeploymentStreamMessage3 = {
312
- /**
313
- * The role of the prompt message
314
- */
315
- role: DeploymentStreamMessageDeploymentsResponseRole;
316
- url: string;
317
- };
318
- /**
319
- * The role of the prompt message
320
- */
321
- export declare const DeploymentStreamMessageDeploymentsRole: {
322
- readonly System: "system";
323
- readonly Assistant: "assistant";
324
- readonly User: "user";
325
- readonly Exception: "exception";
326
- readonly Tool: "tool";
327
- readonly Prompt: "prompt";
328
- readonly Correction: "correction";
329
- readonly ExpectedOutput: "expected_output";
330
- };
331
- /**
332
- * The role of the prompt message
333
- */
334
- export type DeploymentStreamMessageDeploymentsRole = ClosedEnum<typeof DeploymentStreamMessageDeploymentsRole>;
335
- export type DeploymentStreamMessage2 = {
336
- /**
337
- * The role of the prompt message
338
- */
339
- role: DeploymentStreamMessageDeploymentsRole;
340
- content: string | null;
341
- };
342
- /**
343
- * The role of the prompt message
344
- */
345
- export declare const DeploymentStreamMessageRole: {
346
- readonly System: "system";
347
- readonly Assistant: "assistant";
348
- readonly User: "user";
349
- readonly Exception: "exception";
350
- readonly Tool: "tool";
351
- readonly Prompt: "prompt";
352
- readonly Correction: "correction";
353
- readonly ExpectedOutput: "expected_output";
354
- };
355
- /**
356
- * The role of the prompt message
357
- */
358
- export type DeploymentStreamMessageRole = ClosedEnum<typeof DeploymentStreamMessageRole>;
359
- export declare const DeploymentStreamMessageType: {
360
- readonly Function: "function";
361
- };
362
- export type DeploymentStreamMessageType = ClosedEnum<typeof DeploymentStreamMessageType>;
363
- export type DeploymentStreamMessageFunction = {
364
- name: string;
365
- /**
366
- * JSON string arguments for the functions
367
- */
368
- arguments: string;
369
- };
370
- export type DeploymentStreamMessageToolCalls = {
371
- id?: string | undefined;
372
- index?: number | undefined;
373
- type: DeploymentStreamMessageType;
374
- function: DeploymentStreamMessageFunction;
375
- };
376
- export type DeploymentStreamMessage1 = {
377
- /**
378
- * The role of the prompt message
379
- */
380
- role: DeploymentStreamMessageRole;
381
- content?: string | null | undefined;
382
- toolCalls: Array<DeploymentStreamMessageToolCalls>;
383
- };
384
- export type DeploymentStreamMessage = DeploymentStreamMessage2 | DeploymentStreamMessage3 | DeploymentStreamMessage1;
385
- export type DeploymentStreamChoices = {
386
- index: number;
387
- message?: DeploymentStreamMessage2 | DeploymentStreamMessage3 | DeploymentStreamMessage1 | undefined;
388
- finishReason?: string | null | undefined;
389
- };
390
- /**
391
- * Metadata of the retrieved chunk from the knowledge base
392
- */
393
- export type DeploymentStreamDeploymentsMetadata = {
394
- /**
395
- * Name of the file
396
- */
397
- fileName: string;
398
- /**
399
- * Page number of the chunk
400
- */
401
- pageNumber: number | null;
402
- /**
403
- * Type of the file
404
- */
405
- fileType: string;
406
- /**
407
- * Rerank scores are normalized to be in the range [0, 1]. Scores close to 1 indicate a high relevance to the query, and scores closer to 0 indicate low relevance. It is not accurate to assume a score of 0.9 means the document is 2x more relevant than a document with a score of 0.45
408
- */
409
- rerankScore?: number | undefined;
410
- /**
411
- * Search scores are normalized to be in the range [0, 1]. Search score is calculated based on `[Cosine Similarity](https://en.wikipedia.org/wiki/Cosine_similarity)` algorithm. Scores close to 1 indicate the document is closer to the query, and scores closer to 0 indicate the document is farther from the query.
412
- */
413
- searchScore: number;
414
- };
415
- export type DeploymentStreamRetrievals = {
416
- /**
417
- * Content of the retrieved chunk from the knowledge base
418
- */
419
- document: string;
420
- /**
421
- * Metadata of the retrieved chunk from the knowledge base
422
- */
423
- metadata: DeploymentStreamDeploymentsMetadata;
424
- };
425
- export type DeploymentStreamData = {
426
- /**
427
- * A unique identifier for the response. Can be used to add metrics to the transaction.
428
- */
429
- id?: string | undefined;
430
- /**
431
- * A timestamp indicating when the object was created. Usually in a standardized format like ISO 8601
432
- */
433
- created?: Date | undefined;
434
- /**
435
- * Indicates the type of model used to generate the response
436
- */
437
- object?: DeploymentStreamObject | undefined;
438
- /**
439
- * The model used to generate the response
440
- */
441
- model?: string | undefined;
442
- /**
443
- * The provider used to generate the response
444
- */
445
- provider?: DeploymentStreamProvider | undefined;
446
- /**
447
- * Indicates if the response is the final response
448
- */
449
- isFinal?: boolean | undefined;
450
- /**
451
- * Indicates integration id used to generate the response
452
- */
453
- integrationId?: string | undefined;
454
- /**
455
- * A timestamp indicating when the object was finalized. Usually in a standardized format like ISO 8601
456
- */
457
- finalized?: Date | undefined;
458
- /**
459
- * Provider backed system fingerprint.
460
- */
461
- systemFingerprint?: string | null | undefined;
462
- /**
463
- * A list of choices generated by the model
464
- */
465
- choices?: Array<DeploymentStreamChoices> | undefined;
466
- /**
467
- * List of documents retrieved from the knowledge base. This property is only available when the `include_retrievals` flag is set to `true` in the invoke settings. When stream is set to true, the `retrievals` property will be returned in the last streamed chunk where the property `is_final` is set to `true`.
468
- */
469
- retrievals?: Array<DeploymentStreamRetrievals> | undefined;
470
- /**
471
- * Response returned by the model provider. This functionality is only supported when streaming is not used. If streaming is used, the `provider_response` property will be set to `null`.
472
- */
473
- providerResponse?: any | undefined;
474
- };
475
- /**
476
- * Response from the gateway
477
- */
478
- export type DeploymentStreamResponseBody = {
479
- data?: DeploymentStreamData | undefined;
480
- };
481
- /** @internal */
482
- export declare const DeploymentStreamGlobals$inboundSchema: z.ZodType<DeploymentStreamGlobals, z.ZodTypeDef, unknown>;
483
- /** @internal */
484
- export type DeploymentStreamGlobals$Outbound = {
485
- environment?: string | undefined;
486
- contactId?: string | undefined;
487
- };
488
- /** @internal */
489
- export declare const DeploymentStreamGlobals$outboundSchema: z.ZodType<DeploymentStreamGlobals$Outbound, z.ZodTypeDef, DeploymentStreamGlobals>;
490
- /**
491
- * @internal
492
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
493
- */
494
- export declare namespace DeploymentStreamGlobals$ {
495
- /** @deprecated use `DeploymentStreamGlobals$inboundSchema` instead. */
496
- const inboundSchema: z.ZodType<DeploymentStreamGlobals, z.ZodTypeDef, unknown>;
497
- /** @deprecated use `DeploymentStreamGlobals$outboundSchema` instead. */
498
- const outboundSchema: z.ZodType<DeploymentStreamGlobals$Outbound, z.ZodTypeDef, DeploymentStreamGlobals>;
499
- /** @deprecated use `DeploymentStreamGlobals$Outbound` instead. */
500
- type Outbound = DeploymentStreamGlobals$Outbound;
501
- }
502
- export declare function deploymentStreamGlobalsToJSON(deploymentStreamGlobals: DeploymentStreamGlobals): string;
503
- export declare function deploymentStreamGlobalsFromJSON(jsonString: string): SafeParseResult<DeploymentStreamGlobals, SDKValidationError>;
504
- /** @internal */
505
- export declare const DeploymentStreamInputs$inboundSchema: z.ZodType<DeploymentStreamInputs, z.ZodTypeDef, unknown>;
506
- /** @internal */
507
- export type DeploymentStreamInputs$Outbound = string | number | boolean;
508
- /** @internal */
509
- export declare const DeploymentStreamInputs$outboundSchema: z.ZodType<DeploymentStreamInputs$Outbound, z.ZodTypeDef, DeploymentStreamInputs>;
510
- /**
511
- * @internal
512
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
513
- */
514
- export declare namespace DeploymentStreamInputs$ {
515
- /** @deprecated use `DeploymentStreamInputs$inboundSchema` instead. */
516
- const inboundSchema: z.ZodType<DeploymentStreamInputs, z.ZodTypeDef, unknown>;
517
- /** @deprecated use `DeploymentStreamInputs$outboundSchema` instead. */
518
- const outboundSchema: z.ZodType<DeploymentStreamInputs$Outbound, z.ZodTypeDef, DeploymentStreamInputs>;
519
- /** @deprecated use `DeploymentStreamInputs$Outbound` instead. */
520
- type Outbound = DeploymentStreamInputs$Outbound;
521
- }
522
- export declare function deploymentStreamInputsToJSON(deploymentStreamInputs: DeploymentStreamInputs): string;
523
- export declare function deploymentStreamInputsFromJSON(jsonString: string): SafeParseResult<DeploymentStreamInputs, SDKValidationError>;
524
- /** @internal */
525
- export declare const DeploymentStreamRole$inboundSchema: z.ZodNativeEnum<typeof DeploymentStreamRole>;
526
- /** @internal */
527
- export declare const DeploymentStreamRole$outboundSchema: z.ZodNativeEnum<typeof DeploymentStreamRole>;
528
- /**
529
- * @internal
530
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
531
- */
532
- export declare namespace DeploymentStreamRole$ {
533
- /** @deprecated use `DeploymentStreamRole$inboundSchema` instead. */
534
- const inboundSchema: z.ZodNativeEnum<{
535
- readonly System: "system";
536
- readonly Assistant: "assistant";
537
- readonly User: "user";
538
- readonly Exception: "exception";
539
- readonly Tool: "tool";
540
- readonly Prompt: "prompt";
541
- readonly Correction: "correction";
542
- readonly ExpectedOutput: "expected_output";
543
- }>;
544
- /** @deprecated use `DeploymentStreamRole$outboundSchema` instead. */
545
- const outboundSchema: z.ZodNativeEnum<{
546
- readonly System: "system";
547
- readonly Assistant: "assistant";
548
- readonly User: "user";
549
- readonly Exception: "exception";
550
- readonly Tool: "tool";
551
- readonly Prompt: "prompt";
552
- readonly Correction: "correction";
553
- readonly ExpectedOutput: "expected_output";
554
- }>;
555
- }
556
- /** @internal */
557
- export declare const DeploymentStream2DeploymentsType$inboundSchema: z.ZodNativeEnum<typeof DeploymentStream2DeploymentsType>;
558
- /** @internal */
559
- export declare const DeploymentStream2DeploymentsType$outboundSchema: z.ZodNativeEnum<typeof DeploymentStream2DeploymentsType>;
560
- /**
561
- * @internal
562
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
563
- */
564
- export declare namespace DeploymentStream2DeploymentsType$ {
565
- /** @deprecated use `DeploymentStream2DeploymentsType$inboundSchema` instead. */
566
- const inboundSchema: z.ZodNativeEnum<{
567
- readonly ImageUrl: "image_url";
568
- }>;
569
- /** @deprecated use `DeploymentStream2DeploymentsType$outboundSchema` instead. */
570
- const outboundSchema: z.ZodNativeEnum<{
571
- readonly ImageUrl: "image_url";
572
- }>;
573
- }
574
- /** @internal */
575
- export declare const DeploymentStream2ImageUrl$inboundSchema: z.ZodType<DeploymentStream2ImageUrl, z.ZodTypeDef, unknown>;
576
- /** @internal */
577
- export type DeploymentStream2ImageUrl$Outbound = {
578
- url: string;
579
- detail?: string | undefined;
580
- };
581
- /** @internal */
582
- export declare const DeploymentStream2ImageUrl$outboundSchema: z.ZodType<DeploymentStream2ImageUrl$Outbound, z.ZodTypeDef, DeploymentStream2ImageUrl>;
583
- /**
584
- * @internal
585
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
586
- */
587
- export declare namespace DeploymentStream2ImageUrl$ {
588
- /** @deprecated use `DeploymentStream2ImageUrl$inboundSchema` instead. */
589
- const inboundSchema: z.ZodType<DeploymentStream2ImageUrl, z.ZodTypeDef, unknown>;
590
- /** @deprecated use `DeploymentStream2ImageUrl$outboundSchema` instead. */
591
- const outboundSchema: z.ZodType<DeploymentStream2ImageUrl$Outbound, z.ZodTypeDef, DeploymentStream2ImageUrl>;
592
- /** @deprecated use `DeploymentStream2ImageUrl$Outbound` instead. */
593
- type Outbound = DeploymentStream2ImageUrl$Outbound;
594
- }
595
- export declare function deploymentStream2ImageUrlToJSON(deploymentStream2ImageUrl: DeploymentStream2ImageUrl): string;
596
- export declare function deploymentStream2ImageUrlFromJSON(jsonString: string): SafeParseResult<DeploymentStream2ImageUrl, SDKValidationError>;
597
- /** @internal */
598
- export declare const DeploymentStream22$inboundSchema: z.ZodType<DeploymentStream22, z.ZodTypeDef, unknown>;
599
- /** @internal */
600
- export type DeploymentStream22$Outbound = {
601
- type: string;
602
- image_url: DeploymentStream2ImageUrl$Outbound;
603
- };
604
- /** @internal */
605
- export declare const DeploymentStream22$outboundSchema: z.ZodType<DeploymentStream22$Outbound, z.ZodTypeDef, DeploymentStream22>;
606
- /**
607
- * @internal
608
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
609
- */
610
- export declare namespace DeploymentStream22$ {
611
- /** @deprecated use `DeploymentStream22$inboundSchema` instead. */
612
- const inboundSchema: z.ZodType<DeploymentStream22, z.ZodTypeDef, unknown>;
613
- /** @deprecated use `DeploymentStream22$outboundSchema` instead. */
614
- const outboundSchema: z.ZodType<DeploymentStream22$Outbound, z.ZodTypeDef, DeploymentStream22>;
615
- /** @deprecated use `DeploymentStream22$Outbound` instead. */
616
- type Outbound = DeploymentStream22$Outbound;
617
- }
618
- export declare function deploymentStream22ToJSON(deploymentStream22: DeploymentStream22): string;
619
- export declare function deploymentStream22FromJSON(jsonString: string): SafeParseResult<DeploymentStream22, SDKValidationError>;
620
- /** @internal */
621
- export declare const DeploymentStream2Type$inboundSchema: z.ZodNativeEnum<typeof DeploymentStream2Type>;
622
- /** @internal */
623
- export declare const DeploymentStream2Type$outboundSchema: z.ZodNativeEnum<typeof DeploymentStream2Type>;
624
- /**
625
- * @internal
626
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
627
- */
628
- export declare namespace DeploymentStream2Type$ {
629
- /** @deprecated use `DeploymentStream2Type$inboundSchema` instead. */
630
- const inboundSchema: z.ZodNativeEnum<{
631
- readonly Text: "text";
632
- }>;
633
- /** @deprecated use `DeploymentStream2Type$outboundSchema` instead. */
634
- const outboundSchema: z.ZodNativeEnum<{
635
- readonly Text: "text";
636
- }>;
637
- }
638
- /** @internal */
639
- export declare const DeploymentStream21$inboundSchema: z.ZodType<DeploymentStream21, z.ZodTypeDef, unknown>;
640
- /** @internal */
641
- export type DeploymentStream21$Outbound = {
642
- type: string;
643
- text: string;
644
- };
645
- /** @internal */
646
- export declare const DeploymentStream21$outboundSchema: z.ZodType<DeploymentStream21$Outbound, z.ZodTypeDef, DeploymentStream21>;
647
- /**
648
- * @internal
649
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
650
- */
651
- export declare namespace DeploymentStream21$ {
652
- /** @deprecated use `DeploymentStream21$inboundSchema` instead. */
653
- const inboundSchema: z.ZodType<DeploymentStream21, z.ZodTypeDef, unknown>;
654
- /** @deprecated use `DeploymentStream21$outboundSchema` instead. */
655
- const outboundSchema: z.ZodType<DeploymentStream21$Outbound, z.ZodTypeDef, DeploymentStream21>;
656
- /** @deprecated use `DeploymentStream21$Outbound` instead. */
657
- type Outbound = DeploymentStream21$Outbound;
658
- }
659
- export declare function deploymentStream21ToJSON(deploymentStream21: DeploymentStream21): string;
660
- export declare function deploymentStream21FromJSON(jsonString: string): SafeParseResult<DeploymentStream21, SDKValidationError>;
661
- /** @internal */
662
- export declare const DeploymentStreamContent2$inboundSchema: z.ZodType<DeploymentStreamContent2, z.ZodTypeDef, unknown>;
663
- /** @internal */
664
- export type DeploymentStreamContent2$Outbound = DeploymentStream21$Outbound | DeploymentStream22$Outbound;
665
- /** @internal */
666
- export declare const DeploymentStreamContent2$outboundSchema: z.ZodType<DeploymentStreamContent2$Outbound, z.ZodTypeDef, DeploymentStreamContent2>;
667
- /**
668
- * @internal
669
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
670
- */
671
- export declare namespace DeploymentStreamContent2$ {
672
- /** @deprecated use `DeploymentStreamContent2$inboundSchema` instead. */
673
- const inboundSchema: z.ZodType<DeploymentStreamContent2, z.ZodTypeDef, unknown>;
674
- /** @deprecated use `DeploymentStreamContent2$outboundSchema` instead. */
675
- const outboundSchema: z.ZodType<DeploymentStreamContent2$Outbound, z.ZodTypeDef, DeploymentStreamContent2>;
676
- /** @deprecated use `DeploymentStreamContent2$Outbound` instead. */
677
- type Outbound = DeploymentStreamContent2$Outbound;
678
- }
679
- export declare function deploymentStreamContent2ToJSON(deploymentStreamContent2: DeploymentStreamContent2): string;
680
- export declare function deploymentStreamContent2FromJSON(jsonString: string): SafeParseResult<DeploymentStreamContent2, SDKValidationError>;
681
- /** @internal */
682
- export declare const DeploymentStreamContent$inboundSchema: z.ZodType<DeploymentStreamContent, z.ZodTypeDef, unknown>;
683
- /** @internal */
684
- export type DeploymentStreamContent$Outbound = string | Array<DeploymentStream21$Outbound | DeploymentStream22$Outbound>;
685
- /** @internal */
686
- export declare const DeploymentStreamContent$outboundSchema: z.ZodType<DeploymentStreamContent$Outbound, z.ZodTypeDef, DeploymentStreamContent>;
687
- /**
688
- * @internal
689
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
690
- */
691
- export declare namespace DeploymentStreamContent$ {
692
- /** @deprecated use `DeploymentStreamContent$inboundSchema` instead. */
693
- const inboundSchema: z.ZodType<DeploymentStreamContent, z.ZodTypeDef, unknown>;
694
- /** @deprecated use `DeploymentStreamContent$outboundSchema` instead. */
695
- const outboundSchema: z.ZodType<DeploymentStreamContent$Outbound, z.ZodTypeDef, DeploymentStreamContent>;
696
- /** @deprecated use `DeploymentStreamContent$Outbound` instead. */
697
- type Outbound = DeploymentStreamContent$Outbound;
698
- }
699
- export declare function deploymentStreamContentToJSON(deploymentStreamContent: DeploymentStreamContent): string;
700
- export declare function deploymentStreamContentFromJSON(jsonString: string): SafeParseResult<DeploymentStreamContent, SDKValidationError>;
701
- /** @internal */
702
- export declare const DeploymentStreamType$inboundSchema: z.ZodNativeEnum<typeof DeploymentStreamType>;
703
- /** @internal */
704
- export declare const DeploymentStreamType$outboundSchema: z.ZodNativeEnum<typeof DeploymentStreamType>;
705
- /**
706
- * @internal
707
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
708
- */
709
- export declare namespace DeploymentStreamType$ {
710
- /** @deprecated use `DeploymentStreamType$inboundSchema` instead. */
711
- const inboundSchema: z.ZodNativeEnum<{
712
- readonly Function: "function";
713
- }>;
714
- /** @deprecated use `DeploymentStreamType$outboundSchema` instead. */
715
- const outboundSchema: z.ZodNativeEnum<{
716
- readonly Function: "function";
717
- }>;
718
- }
719
- /** @internal */
720
- export declare const DeploymentStreamFunction$inboundSchema: z.ZodType<DeploymentStreamFunction, z.ZodTypeDef, unknown>;
721
- /** @internal */
722
- export type DeploymentStreamFunction$Outbound = {
723
- name: string;
724
- arguments: string;
725
- };
726
- /** @internal */
727
- export declare const DeploymentStreamFunction$outboundSchema: z.ZodType<DeploymentStreamFunction$Outbound, z.ZodTypeDef, DeploymentStreamFunction>;
728
- /**
729
- * @internal
730
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
731
- */
732
- export declare namespace DeploymentStreamFunction$ {
733
- /** @deprecated use `DeploymentStreamFunction$inboundSchema` instead. */
734
- const inboundSchema: z.ZodType<DeploymentStreamFunction, z.ZodTypeDef, unknown>;
735
- /** @deprecated use `DeploymentStreamFunction$outboundSchema` instead. */
736
- const outboundSchema: z.ZodType<DeploymentStreamFunction$Outbound, z.ZodTypeDef, DeploymentStreamFunction>;
737
- /** @deprecated use `DeploymentStreamFunction$Outbound` instead. */
738
- type Outbound = DeploymentStreamFunction$Outbound;
739
- }
740
- export declare function deploymentStreamFunctionToJSON(deploymentStreamFunction: DeploymentStreamFunction): string;
741
- export declare function deploymentStreamFunctionFromJSON(jsonString: string): SafeParseResult<DeploymentStreamFunction, SDKValidationError>;
742
- /** @internal */
743
- export declare const DeploymentStreamToolCalls$inboundSchema: z.ZodType<DeploymentStreamToolCalls, z.ZodTypeDef, unknown>;
744
- /** @internal */
745
- export type DeploymentStreamToolCalls$Outbound = {
746
- id?: string | undefined;
747
- index?: number | undefined;
748
- type: string;
749
- function: DeploymentStreamFunction$Outbound;
750
- };
751
- /** @internal */
752
- export declare const DeploymentStreamToolCalls$outboundSchema: z.ZodType<DeploymentStreamToolCalls$Outbound, z.ZodTypeDef, DeploymentStreamToolCalls>;
753
- /**
754
- * @internal
755
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
756
- */
757
- export declare namespace DeploymentStreamToolCalls$ {
758
- /** @deprecated use `DeploymentStreamToolCalls$inboundSchema` instead. */
759
- const inboundSchema: z.ZodType<DeploymentStreamToolCalls, z.ZodTypeDef, unknown>;
760
- /** @deprecated use `DeploymentStreamToolCalls$outboundSchema` instead. */
761
- const outboundSchema: z.ZodType<DeploymentStreamToolCalls$Outbound, z.ZodTypeDef, DeploymentStreamToolCalls>;
762
- /** @deprecated use `DeploymentStreamToolCalls$Outbound` instead. */
763
- type Outbound = DeploymentStreamToolCalls$Outbound;
764
- }
765
- export declare function deploymentStreamToolCallsToJSON(deploymentStreamToolCalls: DeploymentStreamToolCalls): string;
766
- export declare function deploymentStreamToolCallsFromJSON(jsonString: string): SafeParseResult<DeploymentStreamToolCalls, SDKValidationError>;
767
- /** @internal */
768
- export declare const DeploymentStreamPrefixMessages$inboundSchema: z.ZodType<DeploymentStreamPrefixMessages, z.ZodTypeDef, unknown>;
769
- /** @internal */
770
- export type DeploymentStreamPrefixMessages$Outbound = {
771
- role: string;
772
- content: string | Array<DeploymentStream21$Outbound | DeploymentStream22$Outbound>;
773
- tool_calls?: Array<DeploymentStreamToolCalls$Outbound> | undefined;
774
- };
775
- /** @internal */
776
- export declare const DeploymentStreamPrefixMessages$outboundSchema: z.ZodType<DeploymentStreamPrefixMessages$Outbound, z.ZodTypeDef, DeploymentStreamPrefixMessages>;
777
- /**
778
- * @internal
779
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
780
- */
781
- export declare namespace DeploymentStreamPrefixMessages$ {
782
- /** @deprecated use `DeploymentStreamPrefixMessages$inboundSchema` instead. */
783
- const inboundSchema: z.ZodType<DeploymentStreamPrefixMessages, z.ZodTypeDef, unknown>;
784
- /** @deprecated use `DeploymentStreamPrefixMessages$outboundSchema` instead. */
785
- const outboundSchema: z.ZodType<DeploymentStreamPrefixMessages$Outbound, z.ZodTypeDef, DeploymentStreamPrefixMessages>;
786
- /** @deprecated use `DeploymentStreamPrefixMessages$Outbound` instead. */
787
- type Outbound = DeploymentStreamPrefixMessages$Outbound;
788
- }
789
- export declare function deploymentStreamPrefixMessagesToJSON(deploymentStreamPrefixMessages: DeploymentStreamPrefixMessages): string;
790
- export declare function deploymentStreamPrefixMessagesFromJSON(jsonString: string): SafeParseResult<DeploymentStreamPrefixMessages, SDKValidationError>;
791
- /** @internal */
792
- export declare const DeploymentStreamDeploymentsRole$inboundSchema: z.ZodNativeEnum<typeof DeploymentStreamDeploymentsRole>;
793
- /** @internal */
794
- export declare const DeploymentStreamDeploymentsRole$outboundSchema: z.ZodNativeEnum<typeof DeploymentStreamDeploymentsRole>;
795
- /**
796
- * @internal
797
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
798
- */
799
- export declare namespace DeploymentStreamDeploymentsRole$ {
800
- /** @deprecated use `DeploymentStreamDeploymentsRole$inboundSchema` instead. */
801
- const inboundSchema: z.ZodNativeEnum<{
802
- readonly System: "system";
803
- readonly Assistant: "assistant";
804
- readonly User: "user";
805
- readonly Exception: "exception";
806
- readonly Tool: "tool";
807
- readonly Prompt: "prompt";
808
- readonly Correction: "correction";
809
- readonly ExpectedOutput: "expected_output";
810
- }>;
811
- /** @deprecated use `DeploymentStreamDeploymentsRole$outboundSchema` instead. */
812
- const outboundSchema: z.ZodNativeEnum<{
813
- readonly System: "system";
814
- readonly Assistant: "assistant";
815
- readonly User: "user";
816
- readonly Exception: "exception";
817
- readonly Tool: "tool";
818
- readonly Prompt: "prompt";
819
- readonly Correction: "correction";
820
- readonly ExpectedOutput: "expected_output";
821
- }>;
822
- }
823
- /** @internal */
824
- export declare const DeploymentStream2DeploymentsRequestRequestBodyType$inboundSchema: z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyType>;
825
- /** @internal */
826
- export declare const DeploymentStream2DeploymentsRequestRequestBodyType$outboundSchema: z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyType>;
827
- /**
828
- * @internal
829
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
830
- */
831
- export declare namespace DeploymentStream2DeploymentsRequestRequestBodyType$ {
832
- /** @deprecated use `DeploymentStream2DeploymentsRequestRequestBodyType$inboundSchema` instead. */
833
- const inboundSchema: z.ZodNativeEnum<{
834
- readonly ImageUrl: "image_url";
835
- }>;
836
- /** @deprecated use `DeploymentStream2DeploymentsRequestRequestBodyType$outboundSchema` instead. */
837
- const outboundSchema: z.ZodNativeEnum<{
838
- readonly ImageUrl: "image_url";
839
- }>;
840
- }
841
- /** @internal */
842
- export declare const DeploymentStream2ImageUrlInput$inboundSchema: z.ZodType<DeploymentStream2ImageUrlInput, z.ZodTypeDef, unknown>;
843
- /** @internal */
844
- export type DeploymentStream2ImageUrlInput$Outbound = {
845
- url: string;
846
- detail?: string | undefined;
847
- };
848
- /** @internal */
849
- export declare const DeploymentStream2ImageUrlInput$outboundSchema: z.ZodType<DeploymentStream2ImageUrlInput$Outbound, z.ZodTypeDef, DeploymentStream2ImageUrlInput>;
850
- /**
851
- * @internal
852
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
853
- */
854
- export declare namespace DeploymentStream2ImageUrlInput$ {
855
- /** @deprecated use `DeploymentStream2ImageUrlInput$inboundSchema` instead. */
856
- const inboundSchema: z.ZodType<DeploymentStream2ImageUrlInput, z.ZodTypeDef, unknown>;
857
- /** @deprecated use `DeploymentStream2ImageUrlInput$outboundSchema` instead. */
858
- const outboundSchema: z.ZodType<DeploymentStream2ImageUrlInput$Outbound, z.ZodTypeDef, DeploymentStream2ImageUrlInput>;
859
- /** @deprecated use `DeploymentStream2ImageUrlInput$Outbound` instead. */
860
- type Outbound = DeploymentStream2ImageUrlInput$Outbound;
861
- }
862
- export declare function deploymentStream2ImageUrlInputToJSON(deploymentStream2ImageUrlInput: DeploymentStream2ImageUrlInput): string;
863
- export declare function deploymentStream2ImageUrlInputFromJSON(jsonString: string): SafeParseResult<DeploymentStream2ImageUrlInput, SDKValidationError>;
864
- /** @internal */
865
- export declare const DeploymentStream22Input$inboundSchema: z.ZodType<DeploymentStream22Input, z.ZodTypeDef, unknown>;
866
- /** @internal */
867
- export type DeploymentStream22Input$Outbound = {
868
- type: string;
869
- image_url: DeploymentStream2ImageUrlInput$Outbound;
870
- };
871
- /** @internal */
872
- export declare const DeploymentStream22Input$outboundSchema: z.ZodType<DeploymentStream22Input$Outbound, z.ZodTypeDef, DeploymentStream22Input>;
873
- /**
874
- * @internal
875
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
876
- */
877
- export declare namespace DeploymentStream22Input$ {
878
- /** @deprecated use `DeploymentStream22Input$inboundSchema` instead. */
879
- const inboundSchema: z.ZodType<DeploymentStream22Input, z.ZodTypeDef, unknown>;
880
- /** @deprecated use `DeploymentStream22Input$outboundSchema` instead. */
881
- const outboundSchema: z.ZodType<DeploymentStream22Input$Outbound, z.ZodTypeDef, DeploymentStream22Input>;
882
- /** @deprecated use `DeploymentStream22Input$Outbound` instead. */
883
- type Outbound = DeploymentStream22Input$Outbound;
884
- }
885
- export declare function deploymentStream22InputToJSON(deploymentStream22Input: DeploymentStream22Input): string;
886
- export declare function deploymentStream22InputFromJSON(jsonString: string): SafeParseResult<DeploymentStream22Input, SDKValidationError>;
887
- /** @internal */
888
- export declare const DeploymentStream2DeploymentsRequestType$inboundSchema: z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestType>;
889
- /** @internal */
890
- export declare const DeploymentStream2DeploymentsRequestType$outboundSchema: z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestType>;
891
- /**
892
- * @internal
893
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
894
- */
895
- export declare namespace DeploymentStream2DeploymentsRequestType$ {
896
- /** @deprecated use `DeploymentStream2DeploymentsRequestType$inboundSchema` instead. */
897
- const inboundSchema: z.ZodNativeEnum<{
898
- readonly Text: "text";
899
- }>;
900
- /** @deprecated use `DeploymentStream2DeploymentsRequestType$outboundSchema` instead. */
901
- const outboundSchema: z.ZodNativeEnum<{
902
- readonly Text: "text";
903
- }>;
904
- }
905
- /** @internal */
906
- export declare const DeploymentStream2Deployments1$inboundSchema: z.ZodType<DeploymentStream2Deployments1, z.ZodTypeDef, unknown>;
907
- /** @internal */
908
- export type DeploymentStream2Deployments1$Outbound = {
909
- type: string;
910
- text: string;
911
- };
912
- /** @internal */
913
- export declare const DeploymentStream2Deployments1$outboundSchema: z.ZodType<DeploymentStream2Deployments1$Outbound, z.ZodTypeDef, DeploymentStream2Deployments1>;
914
- /**
915
- * @internal
916
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
917
- */
918
- export declare namespace DeploymentStream2Deployments1$ {
919
- /** @deprecated use `DeploymentStream2Deployments1$inboundSchema` instead. */
920
- const inboundSchema: z.ZodType<DeploymentStream2Deployments1, z.ZodTypeDef, unknown>;
921
- /** @deprecated use `DeploymentStream2Deployments1$outboundSchema` instead. */
922
- const outboundSchema: z.ZodType<DeploymentStream2Deployments1$Outbound, z.ZodTypeDef, DeploymentStream2Deployments1>;
923
- /** @deprecated use `DeploymentStream2Deployments1$Outbound` instead. */
924
- type Outbound = DeploymentStream2Deployments1$Outbound;
925
- }
926
- export declare function deploymentStream2Deployments1ToJSON(deploymentStream2Deployments1: DeploymentStream2Deployments1): string;
927
- export declare function deploymentStream2Deployments1FromJSON(jsonString: string): SafeParseResult<DeploymentStream2Deployments1, SDKValidationError>;
928
- /** @internal */
929
- export declare const DeploymentStreamContent2Input$inboundSchema: z.ZodType<DeploymentStreamContent2Input, z.ZodTypeDef, unknown>;
930
- /** @internal */
931
- export type DeploymentStreamContent2Input$Outbound = DeploymentStream2Deployments1$Outbound | DeploymentStream22Input$Outbound;
932
- /** @internal */
933
- export declare const DeploymentStreamContent2Input$outboundSchema: z.ZodType<DeploymentStreamContent2Input$Outbound, z.ZodTypeDef, DeploymentStreamContent2Input>;
934
- /**
935
- * @internal
936
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
937
- */
938
- export declare namespace DeploymentStreamContent2Input$ {
939
- /** @deprecated use `DeploymentStreamContent2Input$inboundSchema` instead. */
940
- const inboundSchema: z.ZodType<DeploymentStreamContent2Input, z.ZodTypeDef, unknown>;
941
- /** @deprecated use `DeploymentStreamContent2Input$outboundSchema` instead. */
942
- const outboundSchema: z.ZodType<DeploymentStreamContent2Input$Outbound, z.ZodTypeDef, DeploymentStreamContent2Input>;
943
- /** @deprecated use `DeploymentStreamContent2Input$Outbound` instead. */
944
- type Outbound = DeploymentStreamContent2Input$Outbound;
945
- }
946
- export declare function deploymentStreamContent2InputToJSON(deploymentStreamContent2Input: DeploymentStreamContent2Input): string;
947
- export declare function deploymentStreamContent2InputFromJSON(jsonString: string): SafeParseResult<DeploymentStreamContent2Input, SDKValidationError>;
948
- /** @internal */
949
- export declare const DeploymentStreamContentInput$inboundSchema: z.ZodType<DeploymentStreamContentInput, z.ZodTypeDef, unknown>;
950
- /** @internal */
951
- export type DeploymentStreamContentInput$Outbound = string | Array<DeploymentStream2Deployments1$Outbound | DeploymentStream22Input$Outbound>;
952
- /** @internal */
953
- export declare const DeploymentStreamContentInput$outboundSchema: z.ZodType<DeploymentStreamContentInput$Outbound, z.ZodTypeDef, DeploymentStreamContentInput>;
954
- /**
955
- * @internal
956
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
957
- */
958
- export declare namespace DeploymentStreamContentInput$ {
959
- /** @deprecated use `DeploymentStreamContentInput$inboundSchema` instead. */
960
- const inboundSchema: z.ZodType<DeploymentStreamContentInput, z.ZodTypeDef, unknown>;
961
- /** @deprecated use `DeploymentStreamContentInput$outboundSchema` instead. */
962
- const outboundSchema: z.ZodType<DeploymentStreamContentInput$Outbound, z.ZodTypeDef, DeploymentStreamContentInput>;
963
- /** @deprecated use `DeploymentStreamContentInput$Outbound` instead. */
964
- type Outbound = DeploymentStreamContentInput$Outbound;
965
- }
966
- export declare function deploymentStreamContentInputToJSON(deploymentStreamContentInput: DeploymentStreamContentInput): string;
967
- export declare function deploymentStreamContentInputFromJSON(jsonString: string): SafeParseResult<DeploymentStreamContentInput, SDKValidationError>;
968
- /** @internal */
969
- export declare const DeploymentStreamDeploymentsType$inboundSchema: z.ZodNativeEnum<typeof DeploymentStreamDeploymentsType>;
970
- /** @internal */
971
- export declare const DeploymentStreamDeploymentsType$outboundSchema: z.ZodNativeEnum<typeof DeploymentStreamDeploymentsType>;
972
- /**
973
- * @internal
974
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
975
- */
976
- export declare namespace DeploymentStreamDeploymentsType$ {
977
- /** @deprecated use `DeploymentStreamDeploymentsType$inboundSchema` instead. */
978
- const inboundSchema: z.ZodNativeEnum<{
979
- readonly Function: "function";
980
- }>;
981
- /** @deprecated use `DeploymentStreamDeploymentsType$outboundSchema` instead. */
982
- const outboundSchema: z.ZodNativeEnum<{
983
- readonly Function: "function";
984
- }>;
985
- }
986
- /** @internal */
987
- export declare const DeploymentStreamDeploymentsFunction$inboundSchema: z.ZodType<DeploymentStreamDeploymentsFunction, z.ZodTypeDef, unknown>;
988
- /** @internal */
989
- export type DeploymentStreamDeploymentsFunction$Outbound = {
990
- name: string;
991
- arguments: string;
992
- };
993
- /** @internal */
994
- export declare const DeploymentStreamDeploymentsFunction$outboundSchema: z.ZodType<DeploymentStreamDeploymentsFunction$Outbound, z.ZodTypeDef, DeploymentStreamDeploymentsFunction>;
995
- /**
996
- * @internal
997
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
998
- */
999
- export declare namespace DeploymentStreamDeploymentsFunction$ {
1000
- /** @deprecated use `DeploymentStreamDeploymentsFunction$inboundSchema` instead. */
1001
- const inboundSchema: z.ZodType<DeploymentStreamDeploymentsFunction, z.ZodTypeDef, unknown>;
1002
- /** @deprecated use `DeploymentStreamDeploymentsFunction$outboundSchema` instead. */
1003
- const outboundSchema: z.ZodType<DeploymentStreamDeploymentsFunction$Outbound, z.ZodTypeDef, DeploymentStreamDeploymentsFunction>;
1004
- /** @deprecated use `DeploymentStreamDeploymentsFunction$Outbound` instead. */
1005
- type Outbound = DeploymentStreamDeploymentsFunction$Outbound;
1006
- }
1007
- export declare function deploymentStreamDeploymentsFunctionToJSON(deploymentStreamDeploymentsFunction: DeploymentStreamDeploymentsFunction): string;
1008
- export declare function deploymentStreamDeploymentsFunctionFromJSON(jsonString: string): SafeParseResult<DeploymentStreamDeploymentsFunction, SDKValidationError>;
1009
- /** @internal */
1010
- export declare const DeploymentStreamDeploymentsToolCalls$inboundSchema: z.ZodType<DeploymentStreamDeploymentsToolCalls, z.ZodTypeDef, unknown>;
1011
- /** @internal */
1012
- export type DeploymentStreamDeploymentsToolCalls$Outbound = {
1013
- id?: string | undefined;
1014
- index?: number | undefined;
1015
- type: string;
1016
- function: DeploymentStreamDeploymentsFunction$Outbound;
1017
- };
1018
- /** @internal */
1019
- export declare const DeploymentStreamDeploymentsToolCalls$outboundSchema: z.ZodType<DeploymentStreamDeploymentsToolCalls$Outbound, z.ZodTypeDef, DeploymentStreamDeploymentsToolCalls>;
1020
- /**
1021
- * @internal
1022
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1023
- */
1024
- export declare namespace DeploymentStreamDeploymentsToolCalls$ {
1025
- /** @deprecated use `DeploymentStreamDeploymentsToolCalls$inboundSchema` instead. */
1026
- const inboundSchema: z.ZodType<DeploymentStreamDeploymentsToolCalls, z.ZodTypeDef, unknown>;
1027
- /** @deprecated use `DeploymentStreamDeploymentsToolCalls$outboundSchema` instead. */
1028
- const outboundSchema: z.ZodType<DeploymentStreamDeploymentsToolCalls$Outbound, z.ZodTypeDef, DeploymentStreamDeploymentsToolCalls>;
1029
- /** @deprecated use `DeploymentStreamDeploymentsToolCalls$Outbound` instead. */
1030
- type Outbound = DeploymentStreamDeploymentsToolCalls$Outbound;
1031
- }
1032
- export declare function deploymentStreamDeploymentsToolCallsToJSON(deploymentStreamDeploymentsToolCalls: DeploymentStreamDeploymentsToolCalls): string;
1033
- export declare function deploymentStreamDeploymentsToolCallsFromJSON(jsonString: string): SafeParseResult<DeploymentStreamDeploymentsToolCalls, SDKValidationError>;
1034
- /** @internal */
1035
- export declare const DeploymentStreamMessages$inboundSchema: z.ZodType<DeploymentStreamMessages, z.ZodTypeDef, unknown>;
1036
- /** @internal */
1037
- export type DeploymentStreamMessages$Outbound = {
1038
- role: string;
1039
- content: string | Array<DeploymentStream2Deployments1$Outbound | DeploymentStream22Input$Outbound>;
1040
- tool_calls?: Array<DeploymentStreamDeploymentsToolCalls$Outbound> | undefined;
1041
- };
1042
- /** @internal */
1043
- export declare const DeploymentStreamMessages$outboundSchema: z.ZodType<DeploymentStreamMessages$Outbound, z.ZodTypeDef, DeploymentStreamMessages>;
1044
- /**
1045
- * @internal
1046
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1047
- */
1048
- export declare namespace DeploymentStreamMessages$ {
1049
- /** @deprecated use `DeploymentStreamMessages$inboundSchema` instead. */
1050
- const inboundSchema: z.ZodType<DeploymentStreamMessages, z.ZodTypeDef, unknown>;
1051
- /** @deprecated use `DeploymentStreamMessages$outboundSchema` instead. */
1052
- const outboundSchema: z.ZodType<DeploymentStreamMessages$Outbound, z.ZodTypeDef, DeploymentStreamMessages>;
1053
- /** @deprecated use `DeploymentStreamMessages$Outbound` instead. */
1054
- type Outbound = DeploymentStreamMessages$Outbound;
1055
- }
1056
- export declare function deploymentStreamMessagesToJSON(deploymentStreamMessages: DeploymentStreamMessages): string;
1057
- export declare function deploymentStreamMessagesFromJSON(jsonString: string): SafeParseResult<DeploymentStreamMessages, SDKValidationError>;
1058
- /** @internal */
1059
- export declare const DeploymentStreamMetadata$inboundSchema: z.ZodType<DeploymentStreamMetadata, z.ZodTypeDef, unknown>;
1060
- /** @internal */
1061
- export type DeploymentStreamMetadata$Outbound = {
1062
- file_name?: string | undefined;
1063
- file_type?: string | undefined;
1064
- page_number?: number | undefined;
1065
- };
1066
- /** @internal */
1067
- export declare const DeploymentStreamMetadata$outboundSchema: z.ZodType<DeploymentStreamMetadata$Outbound, z.ZodTypeDef, DeploymentStreamMetadata>;
1068
- /**
1069
- * @internal
1070
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1071
- */
1072
- export declare namespace DeploymentStreamMetadata$ {
1073
- /** @deprecated use `DeploymentStreamMetadata$inboundSchema` instead. */
1074
- const inboundSchema: z.ZodType<DeploymentStreamMetadata, z.ZodTypeDef, unknown>;
1075
- /** @deprecated use `DeploymentStreamMetadata$outboundSchema` instead. */
1076
- const outboundSchema: z.ZodType<DeploymentStreamMetadata$Outbound, z.ZodTypeDef, DeploymentStreamMetadata>;
1077
- /** @deprecated use `DeploymentStreamMetadata$Outbound` instead. */
1078
- type Outbound = DeploymentStreamMetadata$Outbound;
1079
- }
1080
- export declare function deploymentStreamMetadataToJSON(deploymentStreamMetadata: DeploymentStreamMetadata): string;
1081
- export declare function deploymentStreamMetadataFromJSON(jsonString: string): SafeParseResult<DeploymentStreamMetadata, SDKValidationError>;
1082
- /** @internal */
1083
- export declare const DeploymentStreamDocuments$inboundSchema: z.ZodType<DeploymentStreamDocuments, z.ZodTypeDef, unknown>;
1084
- /** @internal */
1085
- export type DeploymentStreamDocuments$Outbound = {
1086
- text: string;
1087
- metadata?: DeploymentStreamMetadata$Outbound | undefined;
1088
- };
1089
- /** @internal */
1090
- export declare const DeploymentStreamDocuments$outboundSchema: z.ZodType<DeploymentStreamDocuments$Outbound, z.ZodTypeDef, DeploymentStreamDocuments>;
1091
- /**
1092
- * @internal
1093
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1094
- */
1095
- export declare namespace DeploymentStreamDocuments$ {
1096
- /** @deprecated use `DeploymentStreamDocuments$inboundSchema` instead. */
1097
- const inboundSchema: z.ZodType<DeploymentStreamDocuments, z.ZodTypeDef, unknown>;
1098
- /** @deprecated use `DeploymentStreamDocuments$outboundSchema` instead. */
1099
- const outboundSchema: z.ZodType<DeploymentStreamDocuments$Outbound, z.ZodTypeDef, DeploymentStreamDocuments>;
1100
- /** @deprecated use `DeploymentStreamDocuments$Outbound` instead. */
1101
- type Outbound = DeploymentStreamDocuments$Outbound;
1102
- }
1103
- export declare function deploymentStreamDocumentsToJSON(deploymentStreamDocuments: DeploymentStreamDocuments): string;
1104
- export declare function deploymentStreamDocumentsFromJSON(jsonString: string): SafeParseResult<DeploymentStreamDocuments, SDKValidationError>;
1105
- /** @internal */
1106
- export declare const DeploymentStreamInvokeOptions$inboundSchema: z.ZodType<DeploymentStreamInvokeOptions, z.ZodTypeDef, unknown>;
1107
- /** @internal */
1108
- export type DeploymentStreamInvokeOptions$Outbound = {
1109
- include_retrievals: boolean;
1110
- };
1111
- /** @internal */
1112
- export declare const DeploymentStreamInvokeOptions$outboundSchema: z.ZodType<DeploymentStreamInvokeOptions$Outbound, z.ZodTypeDef, DeploymentStreamInvokeOptions>;
1113
- /**
1114
- * @internal
1115
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1116
- */
1117
- export declare namespace DeploymentStreamInvokeOptions$ {
1118
- /** @deprecated use `DeploymentStreamInvokeOptions$inboundSchema` instead. */
1119
- const inboundSchema: z.ZodType<DeploymentStreamInvokeOptions, z.ZodTypeDef, unknown>;
1120
- /** @deprecated use `DeploymentStreamInvokeOptions$outboundSchema` instead. */
1121
- const outboundSchema: z.ZodType<DeploymentStreamInvokeOptions$Outbound, z.ZodTypeDef, DeploymentStreamInvokeOptions>;
1122
- /** @deprecated use `DeploymentStreamInvokeOptions$Outbound` instead. */
1123
- type Outbound = DeploymentStreamInvokeOptions$Outbound;
1124
- }
1125
- export declare function deploymentStreamInvokeOptionsToJSON(deploymentStreamInvokeOptions: DeploymentStreamInvokeOptions): string;
1126
- export declare function deploymentStreamInvokeOptionsFromJSON(jsonString: string): SafeParseResult<DeploymentStreamInvokeOptions, SDKValidationError>;
1127
- /** @internal */
1128
- export declare const DeploymentStreamRequestBody$inboundSchema: z.ZodType<DeploymentStreamRequestBody, z.ZodTypeDef, unknown>;
1129
- /** @internal */
1130
- export type DeploymentStreamRequestBody$Outbound = {
1131
- key: string;
1132
- inputs?: {
1133
- [k: string]: string | number | boolean;
1134
- } | undefined;
1135
- context?: {
1136
- [k: string]: any;
1137
- } | undefined;
1138
- prefix_messages?: Array<DeploymentStreamPrefixMessages$Outbound> | undefined;
1139
- messages?: Array<DeploymentStreamMessages$Outbound> | undefined;
1140
- file_ids?: Array<string> | undefined;
1141
- metadata?: {
1142
- [k: string]: any;
1143
- } | undefined;
1144
- extra_params?: {
1145
- [k: string]: any;
1146
- } | undefined;
1147
- documents?: Array<DeploymentStreamDocuments$Outbound> | undefined;
1148
- invoke_options?: DeploymentStreamInvokeOptions$Outbound | undefined;
1149
- };
1150
- /** @internal */
1151
- export declare const DeploymentStreamRequestBody$outboundSchema: z.ZodType<DeploymentStreamRequestBody$Outbound, z.ZodTypeDef, DeploymentStreamRequestBody>;
1152
- /**
1153
- * @internal
1154
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1155
- */
1156
- export declare namespace DeploymentStreamRequestBody$ {
1157
- /** @deprecated use `DeploymentStreamRequestBody$inboundSchema` instead. */
1158
- const inboundSchema: z.ZodType<DeploymentStreamRequestBody, z.ZodTypeDef, unknown>;
1159
- /** @deprecated use `DeploymentStreamRequestBody$outboundSchema` instead. */
1160
- const outboundSchema: z.ZodType<DeploymentStreamRequestBody$Outbound, z.ZodTypeDef, DeploymentStreamRequestBody>;
1161
- /** @deprecated use `DeploymentStreamRequestBody$Outbound` instead. */
1162
- type Outbound = DeploymentStreamRequestBody$Outbound;
1163
- }
1164
- export declare function deploymentStreamRequestBodyToJSON(deploymentStreamRequestBody: DeploymentStreamRequestBody): string;
1165
- export declare function deploymentStreamRequestBodyFromJSON(jsonString: string): SafeParseResult<DeploymentStreamRequestBody, SDKValidationError>;
1166
- /** @internal */
1167
- export declare const DeploymentStreamObject$inboundSchema: z.ZodNativeEnum<typeof DeploymentStreamObject>;
1168
- /** @internal */
1169
- export declare const DeploymentStreamObject$outboundSchema: z.ZodNativeEnum<typeof DeploymentStreamObject>;
1170
- /**
1171
- * @internal
1172
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1173
- */
1174
- export declare namespace DeploymentStreamObject$ {
1175
- /** @deprecated use `DeploymentStreamObject$inboundSchema` instead. */
1176
- const inboundSchema: z.ZodNativeEnum<{
1177
- readonly Chat: "chat";
1178
- readonly Completion: "completion";
1179
- readonly Image: "image";
1180
- readonly Vision: "vision";
1181
- }>;
1182
- /** @deprecated use `DeploymentStreamObject$outboundSchema` instead. */
1183
- const outboundSchema: z.ZodNativeEnum<{
1184
- readonly Chat: "chat";
1185
- readonly Completion: "completion";
1186
- readonly Image: "image";
1187
- readonly Vision: "vision";
1188
- }>;
1189
- }
1190
- /** @internal */
1191
- export declare const DeploymentStreamProvider$inboundSchema: z.ZodNativeEnum<typeof DeploymentStreamProvider>;
1192
- /** @internal */
1193
- export declare const DeploymentStreamProvider$outboundSchema: z.ZodNativeEnum<typeof DeploymentStreamProvider>;
1194
- /**
1195
- * @internal
1196
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1197
- */
1198
- export declare namespace DeploymentStreamProvider$ {
1199
- /** @deprecated use `DeploymentStreamProvider$inboundSchema` instead. */
1200
- const inboundSchema: z.ZodNativeEnum<{
1201
- readonly Cohere: "cohere";
1202
- readonly Openai: "openai";
1203
- readonly Anthropic: "anthropic";
1204
- readonly Huggingface: "huggingface";
1205
- readonly Replicate: "replicate";
1206
- readonly Google: "google";
1207
- readonly GoogleAi: "google-ai";
1208
- readonly Azure: "azure";
1209
- readonly Aws: "aws";
1210
- readonly Anyscale: "anyscale";
1211
- readonly Perplexity: "perplexity";
1212
- readonly Groq: "groq";
1213
- readonly Fal: "fal";
1214
- readonly Leonardoai: "leonardoai";
1215
- readonly Nvidia: "nvidia";
1216
- readonly Jina: "jina";
1217
- readonly Togetherai: "togetherai";
1218
- readonly Elevenlabs: "elevenlabs";
1219
- }>;
1220
- /** @deprecated use `DeploymentStreamProvider$outboundSchema` instead. */
1221
- const outboundSchema: z.ZodNativeEnum<{
1222
- readonly Cohere: "cohere";
1223
- readonly Openai: "openai";
1224
- readonly Anthropic: "anthropic";
1225
- readonly Huggingface: "huggingface";
1226
- readonly Replicate: "replicate";
1227
- readonly Google: "google";
1228
- readonly GoogleAi: "google-ai";
1229
- readonly Azure: "azure";
1230
- readonly Aws: "aws";
1231
- readonly Anyscale: "anyscale";
1232
- readonly Perplexity: "perplexity";
1233
- readonly Groq: "groq";
1234
- readonly Fal: "fal";
1235
- readonly Leonardoai: "leonardoai";
1236
- readonly Nvidia: "nvidia";
1237
- readonly Jina: "jina";
1238
- readonly Togetherai: "togetherai";
1239
- readonly Elevenlabs: "elevenlabs";
1240
- }>;
1241
- }
1242
- /** @internal */
1243
- export declare const DeploymentStreamMessageDeploymentsResponseRole$inboundSchema: z.ZodNativeEnum<typeof DeploymentStreamMessageDeploymentsResponseRole>;
1244
- /** @internal */
1245
- export declare const DeploymentStreamMessageDeploymentsResponseRole$outboundSchema: z.ZodNativeEnum<typeof DeploymentStreamMessageDeploymentsResponseRole>;
1246
- /**
1247
- * @internal
1248
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1249
- */
1250
- export declare namespace DeploymentStreamMessageDeploymentsResponseRole$ {
1251
- /** @deprecated use `DeploymentStreamMessageDeploymentsResponseRole$inboundSchema` instead. */
1252
- const inboundSchema: z.ZodNativeEnum<{
1253
- readonly System: "system";
1254
- readonly Assistant: "assistant";
1255
- readonly User: "user";
1256
- readonly Exception: "exception";
1257
- readonly Tool: "tool";
1258
- readonly Prompt: "prompt";
1259
- readonly Correction: "correction";
1260
- readonly ExpectedOutput: "expected_output";
1261
- }>;
1262
- /** @deprecated use `DeploymentStreamMessageDeploymentsResponseRole$outboundSchema` instead. */
1263
- const outboundSchema: z.ZodNativeEnum<{
1264
- readonly System: "system";
1265
- readonly Assistant: "assistant";
1266
- readonly User: "user";
1267
- readonly Exception: "exception";
1268
- readonly Tool: "tool";
1269
- readonly Prompt: "prompt";
1270
- readonly Correction: "correction";
1271
- readonly ExpectedOutput: "expected_output";
1272
- }>;
1273
- }
1274
- /** @internal */
1275
- export declare const DeploymentStreamMessage3$inboundSchema: z.ZodType<DeploymentStreamMessage3, z.ZodTypeDef, unknown>;
1276
- /** @internal */
1277
- export type DeploymentStreamMessage3$Outbound = {
1278
- role: string;
1279
- url: string;
1280
- };
1281
- /** @internal */
1282
- export declare const DeploymentStreamMessage3$outboundSchema: z.ZodType<DeploymentStreamMessage3$Outbound, z.ZodTypeDef, DeploymentStreamMessage3>;
1283
- /**
1284
- * @internal
1285
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1286
- */
1287
- export declare namespace DeploymentStreamMessage3$ {
1288
- /** @deprecated use `DeploymentStreamMessage3$inboundSchema` instead. */
1289
- const inboundSchema: z.ZodType<DeploymentStreamMessage3, z.ZodTypeDef, unknown>;
1290
- /** @deprecated use `DeploymentStreamMessage3$outboundSchema` instead. */
1291
- const outboundSchema: z.ZodType<DeploymentStreamMessage3$Outbound, z.ZodTypeDef, DeploymentStreamMessage3>;
1292
- /** @deprecated use `DeploymentStreamMessage3$Outbound` instead. */
1293
- type Outbound = DeploymentStreamMessage3$Outbound;
1294
- }
1295
- export declare function deploymentStreamMessage3ToJSON(deploymentStreamMessage3: DeploymentStreamMessage3): string;
1296
- export declare function deploymentStreamMessage3FromJSON(jsonString: string): SafeParseResult<DeploymentStreamMessage3, SDKValidationError>;
1297
- /** @internal */
1298
- export declare const DeploymentStreamMessageDeploymentsRole$inboundSchema: z.ZodNativeEnum<typeof DeploymentStreamMessageDeploymentsRole>;
1299
- /** @internal */
1300
- export declare const DeploymentStreamMessageDeploymentsRole$outboundSchema: z.ZodNativeEnum<typeof DeploymentStreamMessageDeploymentsRole>;
1301
- /**
1302
- * @internal
1303
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1304
- */
1305
- export declare namespace DeploymentStreamMessageDeploymentsRole$ {
1306
- /** @deprecated use `DeploymentStreamMessageDeploymentsRole$inboundSchema` instead. */
1307
- const inboundSchema: z.ZodNativeEnum<{
1308
- readonly System: "system";
1309
- readonly Assistant: "assistant";
1310
- readonly User: "user";
1311
- readonly Exception: "exception";
1312
- readonly Tool: "tool";
1313
- readonly Prompt: "prompt";
1314
- readonly Correction: "correction";
1315
- readonly ExpectedOutput: "expected_output";
1316
- }>;
1317
- /** @deprecated use `DeploymentStreamMessageDeploymentsRole$outboundSchema` instead. */
1318
- const outboundSchema: z.ZodNativeEnum<{
1319
- readonly System: "system";
1320
- readonly Assistant: "assistant";
1321
- readonly User: "user";
1322
- readonly Exception: "exception";
1323
- readonly Tool: "tool";
1324
- readonly Prompt: "prompt";
1325
- readonly Correction: "correction";
1326
- readonly ExpectedOutput: "expected_output";
1327
- }>;
1328
- }
1329
- /** @internal */
1330
- export declare const DeploymentStreamMessage2$inboundSchema: z.ZodType<DeploymentStreamMessage2, z.ZodTypeDef, unknown>;
1331
- /** @internal */
1332
- export type DeploymentStreamMessage2$Outbound = {
1333
- role: string;
1334
- content: string | null;
1335
- };
1336
- /** @internal */
1337
- export declare const DeploymentStreamMessage2$outboundSchema: z.ZodType<DeploymentStreamMessage2$Outbound, z.ZodTypeDef, DeploymentStreamMessage2>;
1338
- /**
1339
- * @internal
1340
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1341
- */
1342
- export declare namespace DeploymentStreamMessage2$ {
1343
- /** @deprecated use `DeploymentStreamMessage2$inboundSchema` instead. */
1344
- const inboundSchema: z.ZodType<DeploymentStreamMessage2, z.ZodTypeDef, unknown>;
1345
- /** @deprecated use `DeploymentStreamMessage2$outboundSchema` instead. */
1346
- const outboundSchema: z.ZodType<DeploymentStreamMessage2$Outbound, z.ZodTypeDef, DeploymentStreamMessage2>;
1347
- /** @deprecated use `DeploymentStreamMessage2$Outbound` instead. */
1348
- type Outbound = DeploymentStreamMessage2$Outbound;
1349
- }
1350
- export declare function deploymentStreamMessage2ToJSON(deploymentStreamMessage2: DeploymentStreamMessage2): string;
1351
- export declare function deploymentStreamMessage2FromJSON(jsonString: string): SafeParseResult<DeploymentStreamMessage2, SDKValidationError>;
1352
- /** @internal */
1353
- export declare const DeploymentStreamMessageRole$inboundSchema: z.ZodNativeEnum<typeof DeploymentStreamMessageRole>;
1354
- /** @internal */
1355
- export declare const DeploymentStreamMessageRole$outboundSchema: z.ZodNativeEnum<typeof DeploymentStreamMessageRole>;
1356
- /**
1357
- * @internal
1358
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1359
- */
1360
- export declare namespace DeploymentStreamMessageRole$ {
1361
- /** @deprecated use `DeploymentStreamMessageRole$inboundSchema` instead. */
1362
- const inboundSchema: z.ZodNativeEnum<{
1363
- readonly System: "system";
1364
- readonly Assistant: "assistant";
1365
- readonly User: "user";
1366
- readonly Exception: "exception";
1367
- readonly Tool: "tool";
1368
- readonly Prompt: "prompt";
1369
- readonly Correction: "correction";
1370
- readonly ExpectedOutput: "expected_output";
1371
- }>;
1372
- /** @deprecated use `DeploymentStreamMessageRole$outboundSchema` instead. */
1373
- const outboundSchema: z.ZodNativeEnum<{
1374
- readonly System: "system";
1375
- readonly Assistant: "assistant";
1376
- readonly User: "user";
1377
- readonly Exception: "exception";
1378
- readonly Tool: "tool";
1379
- readonly Prompt: "prompt";
1380
- readonly Correction: "correction";
1381
- readonly ExpectedOutput: "expected_output";
1382
- }>;
1383
- }
1384
- /** @internal */
1385
- export declare const DeploymentStreamMessageType$inboundSchema: z.ZodNativeEnum<typeof DeploymentStreamMessageType>;
1386
- /** @internal */
1387
- export declare const DeploymentStreamMessageType$outboundSchema: z.ZodNativeEnum<typeof DeploymentStreamMessageType>;
1388
- /**
1389
- * @internal
1390
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1391
- */
1392
- export declare namespace DeploymentStreamMessageType$ {
1393
- /** @deprecated use `DeploymentStreamMessageType$inboundSchema` instead. */
1394
- const inboundSchema: z.ZodNativeEnum<{
1395
- readonly Function: "function";
1396
- }>;
1397
- /** @deprecated use `DeploymentStreamMessageType$outboundSchema` instead. */
1398
- const outboundSchema: z.ZodNativeEnum<{
1399
- readonly Function: "function";
1400
- }>;
1401
- }
1402
- /** @internal */
1403
- export declare const DeploymentStreamMessageFunction$inboundSchema: z.ZodType<DeploymentStreamMessageFunction, z.ZodTypeDef, unknown>;
1404
- /** @internal */
1405
- export type DeploymentStreamMessageFunction$Outbound = {
1406
- name: string;
1407
- arguments: string;
1408
- };
1409
- /** @internal */
1410
- export declare const DeploymentStreamMessageFunction$outboundSchema: z.ZodType<DeploymentStreamMessageFunction$Outbound, z.ZodTypeDef, DeploymentStreamMessageFunction>;
1411
- /**
1412
- * @internal
1413
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1414
- */
1415
- export declare namespace DeploymentStreamMessageFunction$ {
1416
- /** @deprecated use `DeploymentStreamMessageFunction$inboundSchema` instead. */
1417
- const inboundSchema: z.ZodType<DeploymentStreamMessageFunction, z.ZodTypeDef, unknown>;
1418
- /** @deprecated use `DeploymentStreamMessageFunction$outboundSchema` instead. */
1419
- const outboundSchema: z.ZodType<DeploymentStreamMessageFunction$Outbound, z.ZodTypeDef, DeploymentStreamMessageFunction>;
1420
- /** @deprecated use `DeploymentStreamMessageFunction$Outbound` instead. */
1421
- type Outbound = DeploymentStreamMessageFunction$Outbound;
1422
- }
1423
- export declare function deploymentStreamMessageFunctionToJSON(deploymentStreamMessageFunction: DeploymentStreamMessageFunction): string;
1424
- export declare function deploymentStreamMessageFunctionFromJSON(jsonString: string): SafeParseResult<DeploymentStreamMessageFunction, SDKValidationError>;
1425
- /** @internal */
1426
- export declare const DeploymentStreamMessageToolCalls$inboundSchema: z.ZodType<DeploymentStreamMessageToolCalls, z.ZodTypeDef, unknown>;
1427
- /** @internal */
1428
- export type DeploymentStreamMessageToolCalls$Outbound = {
1429
- id?: string | undefined;
1430
- index?: number | undefined;
1431
- type: string;
1432
- function: DeploymentStreamMessageFunction$Outbound;
1433
- };
1434
- /** @internal */
1435
- export declare const DeploymentStreamMessageToolCalls$outboundSchema: z.ZodType<DeploymentStreamMessageToolCalls$Outbound, z.ZodTypeDef, DeploymentStreamMessageToolCalls>;
1436
- /**
1437
- * @internal
1438
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1439
- */
1440
- export declare namespace DeploymentStreamMessageToolCalls$ {
1441
- /** @deprecated use `DeploymentStreamMessageToolCalls$inboundSchema` instead. */
1442
- const inboundSchema: z.ZodType<DeploymentStreamMessageToolCalls, z.ZodTypeDef, unknown>;
1443
- /** @deprecated use `DeploymentStreamMessageToolCalls$outboundSchema` instead. */
1444
- const outboundSchema: z.ZodType<DeploymentStreamMessageToolCalls$Outbound, z.ZodTypeDef, DeploymentStreamMessageToolCalls>;
1445
- /** @deprecated use `DeploymentStreamMessageToolCalls$Outbound` instead. */
1446
- type Outbound = DeploymentStreamMessageToolCalls$Outbound;
1447
- }
1448
- export declare function deploymentStreamMessageToolCallsToJSON(deploymentStreamMessageToolCalls: DeploymentStreamMessageToolCalls): string;
1449
- export declare function deploymentStreamMessageToolCallsFromJSON(jsonString: string): SafeParseResult<DeploymentStreamMessageToolCalls, SDKValidationError>;
1450
- /** @internal */
1451
- export declare const DeploymentStreamMessage1$inboundSchema: z.ZodType<DeploymentStreamMessage1, z.ZodTypeDef, unknown>;
1452
- /** @internal */
1453
- export type DeploymentStreamMessage1$Outbound = {
1454
- role: string;
1455
- content?: string | null | undefined;
1456
- tool_calls: Array<DeploymentStreamMessageToolCalls$Outbound>;
1457
- };
1458
- /** @internal */
1459
- export declare const DeploymentStreamMessage1$outboundSchema: z.ZodType<DeploymentStreamMessage1$Outbound, z.ZodTypeDef, DeploymentStreamMessage1>;
1460
- /**
1461
- * @internal
1462
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1463
- */
1464
- export declare namespace DeploymentStreamMessage1$ {
1465
- /** @deprecated use `DeploymentStreamMessage1$inboundSchema` instead. */
1466
- const inboundSchema: z.ZodType<DeploymentStreamMessage1, z.ZodTypeDef, unknown>;
1467
- /** @deprecated use `DeploymentStreamMessage1$outboundSchema` instead. */
1468
- const outboundSchema: z.ZodType<DeploymentStreamMessage1$Outbound, z.ZodTypeDef, DeploymentStreamMessage1>;
1469
- /** @deprecated use `DeploymentStreamMessage1$Outbound` instead. */
1470
- type Outbound = DeploymentStreamMessage1$Outbound;
1471
- }
1472
- export declare function deploymentStreamMessage1ToJSON(deploymentStreamMessage1: DeploymentStreamMessage1): string;
1473
- export declare function deploymentStreamMessage1FromJSON(jsonString: string): SafeParseResult<DeploymentStreamMessage1, SDKValidationError>;
1474
- /** @internal */
1475
- export declare const DeploymentStreamMessage$inboundSchema: z.ZodType<DeploymentStreamMessage, z.ZodTypeDef, unknown>;
1476
- /** @internal */
1477
- export type DeploymentStreamMessage$Outbound = DeploymentStreamMessage2$Outbound | DeploymentStreamMessage3$Outbound | DeploymentStreamMessage1$Outbound;
1478
- /** @internal */
1479
- export declare const DeploymentStreamMessage$outboundSchema: z.ZodType<DeploymentStreamMessage$Outbound, z.ZodTypeDef, DeploymentStreamMessage>;
1480
- /**
1481
- * @internal
1482
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1483
- */
1484
- export declare namespace DeploymentStreamMessage$ {
1485
- /** @deprecated use `DeploymentStreamMessage$inboundSchema` instead. */
1486
- const inboundSchema: z.ZodType<DeploymentStreamMessage, z.ZodTypeDef, unknown>;
1487
- /** @deprecated use `DeploymentStreamMessage$outboundSchema` instead. */
1488
- const outboundSchema: z.ZodType<DeploymentStreamMessage$Outbound, z.ZodTypeDef, DeploymentStreamMessage>;
1489
- /** @deprecated use `DeploymentStreamMessage$Outbound` instead. */
1490
- type Outbound = DeploymentStreamMessage$Outbound;
1491
- }
1492
- export declare function deploymentStreamMessageToJSON(deploymentStreamMessage: DeploymentStreamMessage): string;
1493
- export declare function deploymentStreamMessageFromJSON(jsonString: string): SafeParseResult<DeploymentStreamMessage, SDKValidationError>;
1494
- /** @internal */
1495
- export declare const DeploymentStreamChoices$inboundSchema: z.ZodType<DeploymentStreamChoices, z.ZodTypeDef, unknown>;
1496
- /** @internal */
1497
- export type DeploymentStreamChoices$Outbound = {
1498
- index: number;
1499
- message?: DeploymentStreamMessage2$Outbound | DeploymentStreamMessage3$Outbound | DeploymentStreamMessage1$Outbound | undefined;
1500
- finish_reason?: string | null | undefined;
1501
- };
1502
- /** @internal */
1503
- export declare const DeploymentStreamChoices$outboundSchema: z.ZodType<DeploymentStreamChoices$Outbound, z.ZodTypeDef, DeploymentStreamChoices>;
1504
- /**
1505
- * @internal
1506
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1507
- */
1508
- export declare namespace DeploymentStreamChoices$ {
1509
- /** @deprecated use `DeploymentStreamChoices$inboundSchema` instead. */
1510
- const inboundSchema: z.ZodType<DeploymentStreamChoices, z.ZodTypeDef, unknown>;
1511
- /** @deprecated use `DeploymentStreamChoices$outboundSchema` instead. */
1512
- const outboundSchema: z.ZodType<DeploymentStreamChoices$Outbound, z.ZodTypeDef, DeploymentStreamChoices>;
1513
- /** @deprecated use `DeploymentStreamChoices$Outbound` instead. */
1514
- type Outbound = DeploymentStreamChoices$Outbound;
1515
- }
1516
- export declare function deploymentStreamChoicesToJSON(deploymentStreamChoices: DeploymentStreamChoices): string;
1517
- export declare function deploymentStreamChoicesFromJSON(jsonString: string): SafeParseResult<DeploymentStreamChoices, SDKValidationError>;
1518
- /** @internal */
1519
- export declare const DeploymentStreamDeploymentsMetadata$inboundSchema: z.ZodType<DeploymentStreamDeploymentsMetadata, z.ZodTypeDef, unknown>;
1520
- /** @internal */
1521
- export type DeploymentStreamDeploymentsMetadata$Outbound = {
1522
- file_name: string;
1523
- page_number: number | null;
1524
- file_type: string;
1525
- rerank_score?: number | undefined;
1526
- search_score: number;
1527
- };
1528
- /** @internal */
1529
- export declare const DeploymentStreamDeploymentsMetadata$outboundSchema: z.ZodType<DeploymentStreamDeploymentsMetadata$Outbound, z.ZodTypeDef, DeploymentStreamDeploymentsMetadata>;
1530
- /**
1531
- * @internal
1532
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1533
- */
1534
- export declare namespace DeploymentStreamDeploymentsMetadata$ {
1535
- /** @deprecated use `DeploymentStreamDeploymentsMetadata$inboundSchema` instead. */
1536
- const inboundSchema: z.ZodType<DeploymentStreamDeploymentsMetadata, z.ZodTypeDef, unknown>;
1537
- /** @deprecated use `DeploymentStreamDeploymentsMetadata$outboundSchema` instead. */
1538
- const outboundSchema: z.ZodType<DeploymentStreamDeploymentsMetadata$Outbound, z.ZodTypeDef, DeploymentStreamDeploymentsMetadata>;
1539
- /** @deprecated use `DeploymentStreamDeploymentsMetadata$Outbound` instead. */
1540
- type Outbound = DeploymentStreamDeploymentsMetadata$Outbound;
1541
- }
1542
- export declare function deploymentStreamDeploymentsMetadataToJSON(deploymentStreamDeploymentsMetadata: DeploymentStreamDeploymentsMetadata): string;
1543
- export declare function deploymentStreamDeploymentsMetadataFromJSON(jsonString: string): SafeParseResult<DeploymentStreamDeploymentsMetadata, SDKValidationError>;
1544
- /** @internal */
1545
- export declare const DeploymentStreamRetrievals$inboundSchema: z.ZodType<DeploymentStreamRetrievals, z.ZodTypeDef, unknown>;
1546
- /** @internal */
1547
- export type DeploymentStreamRetrievals$Outbound = {
1548
- document: string;
1549
- metadata: DeploymentStreamDeploymentsMetadata$Outbound;
1550
- };
1551
- /** @internal */
1552
- export declare const DeploymentStreamRetrievals$outboundSchema: z.ZodType<DeploymentStreamRetrievals$Outbound, z.ZodTypeDef, DeploymentStreamRetrievals>;
1553
- /**
1554
- * @internal
1555
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1556
- */
1557
- export declare namespace DeploymentStreamRetrievals$ {
1558
- /** @deprecated use `DeploymentStreamRetrievals$inboundSchema` instead. */
1559
- const inboundSchema: z.ZodType<DeploymentStreamRetrievals, z.ZodTypeDef, unknown>;
1560
- /** @deprecated use `DeploymentStreamRetrievals$outboundSchema` instead. */
1561
- const outboundSchema: z.ZodType<DeploymentStreamRetrievals$Outbound, z.ZodTypeDef, DeploymentStreamRetrievals>;
1562
- /** @deprecated use `DeploymentStreamRetrievals$Outbound` instead. */
1563
- type Outbound = DeploymentStreamRetrievals$Outbound;
1564
- }
1565
- export declare function deploymentStreamRetrievalsToJSON(deploymentStreamRetrievals: DeploymentStreamRetrievals): string;
1566
- export declare function deploymentStreamRetrievalsFromJSON(jsonString: string): SafeParseResult<DeploymentStreamRetrievals, SDKValidationError>;
1567
- /** @internal */
1568
- export declare const DeploymentStreamData$inboundSchema: z.ZodType<DeploymentStreamData, z.ZodTypeDef, unknown>;
1569
- /** @internal */
1570
- export type DeploymentStreamData$Outbound = {
1571
- id?: string | undefined;
1572
- created?: string | undefined;
1573
- object?: string | undefined;
1574
- model?: string | undefined;
1575
- provider?: string | undefined;
1576
- is_final?: boolean | undefined;
1577
- integration_id?: string | undefined;
1578
- finalized?: string | undefined;
1579
- system_fingerprint?: string | null | undefined;
1580
- choices?: Array<DeploymentStreamChoices$Outbound> | undefined;
1581
- retrievals?: Array<DeploymentStreamRetrievals$Outbound> | undefined;
1582
- provider_response?: any | undefined;
1583
- };
1584
- /** @internal */
1585
- export declare const DeploymentStreamData$outboundSchema: z.ZodType<DeploymentStreamData$Outbound, z.ZodTypeDef, DeploymentStreamData>;
1586
- /**
1587
- * @internal
1588
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1589
- */
1590
- export declare namespace DeploymentStreamData$ {
1591
- /** @deprecated use `DeploymentStreamData$inboundSchema` instead. */
1592
- const inboundSchema: z.ZodType<DeploymentStreamData, z.ZodTypeDef, unknown>;
1593
- /** @deprecated use `DeploymentStreamData$outboundSchema` instead. */
1594
- const outboundSchema: z.ZodType<DeploymentStreamData$Outbound, z.ZodTypeDef, DeploymentStreamData>;
1595
- /** @deprecated use `DeploymentStreamData$Outbound` instead. */
1596
- type Outbound = DeploymentStreamData$Outbound;
1597
- }
1598
- export declare function deploymentStreamDataToJSON(deploymentStreamData: DeploymentStreamData): string;
1599
- export declare function deploymentStreamDataFromJSON(jsonString: string): SafeParseResult<DeploymentStreamData, SDKValidationError>;
1600
- /** @internal */
1601
- export declare const DeploymentStreamResponseBody$inboundSchema: z.ZodType<DeploymentStreamResponseBody, z.ZodTypeDef, unknown>;
1602
- /** @internal */
1603
- export type DeploymentStreamResponseBody$Outbound = {
1604
- data?: DeploymentStreamData$Outbound | undefined;
1605
- };
1606
- /** @internal */
1607
- export declare const DeploymentStreamResponseBody$outboundSchema: z.ZodType<DeploymentStreamResponseBody$Outbound, z.ZodTypeDef, DeploymentStreamResponseBody>;
1608
- /**
1609
- * @internal
1610
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1611
- */
1612
- export declare namespace DeploymentStreamResponseBody$ {
1613
- /** @deprecated use `DeploymentStreamResponseBody$inboundSchema` instead. */
1614
- const inboundSchema: z.ZodType<DeploymentStreamResponseBody, z.ZodTypeDef, unknown>;
1615
- /** @deprecated use `DeploymentStreamResponseBody$outboundSchema` instead. */
1616
- const outboundSchema: z.ZodType<DeploymentStreamResponseBody$Outbound, z.ZodTypeDef, DeploymentStreamResponseBody>;
1617
- /** @deprecated use `DeploymentStreamResponseBody$Outbound` instead. */
1618
- type Outbound = DeploymentStreamResponseBody$Outbound;
1619
- }
1620
- export declare function deploymentStreamResponseBodyToJSON(deploymentStreamResponseBody: DeploymentStreamResponseBody): string;
1621
- export declare function deploymentStreamResponseBodyFromJSON(jsonString: string): SafeParseResult<DeploymentStreamResponseBody, SDKValidationError>;
1622
- //# sourceMappingURL=deploymentstream.d.ts.map