@orq-ai/node 3.11.7 → 3.11.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. package/bin/mcp-server.js +104 -104
  2. package/bin/mcp-server.js.map +26 -26
  3. package/examples/package-lock.json +1 -1
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +3 -3
  6. package/lib/config.js +3 -3
  7. package/lib/config.js.map +1 -1
  8. package/mcp-server/mcp-server.js +1 -1
  9. package/mcp-server/server.js +1 -1
  10. package/models/operations/createcontact.js +2 -2
  11. package/models/operations/createdataset.js +2 -2
  12. package/models/operations/createdatasetitem.js +2 -2
  13. package/models/operations/createdatasource.js +2 -2
  14. package/models/operations/createeval.js +16 -16
  15. package/models/operations/fileget.js +2 -2
  16. package/models/operations/filelist.js +2 -2
  17. package/models/operations/fileupload.js +2 -2
  18. package/models/operations/getevals.js +28 -28
  19. package/models/operations/listcontacts.js +2 -2
  20. package/models/operations/listdatasetdatapoints.js +2 -2
  21. package/models/operations/listdatasets.js +2 -2
  22. package/models/operations/listdatasources.js +2 -2
  23. package/models/operations/retrievecontact.js +2 -2
  24. package/models/operations/retrievedatapoint.js +2 -2
  25. package/models/operations/retrievedataset.js +2 -2
  26. package/models/operations/retrievedatasource.js +2 -2
  27. package/models/operations/updatecontact.js +2 -2
  28. package/models/operations/updatedatapoint.js +2 -2
  29. package/models/operations/updatedataset.js +2 -2
  30. package/models/operations/updatedatasource.js +2 -2
  31. package/models/operations/updateeval.js +16 -16
  32. package/package.json +1 -1
  33. package/packages/orq-rc/README.md +128 -87
  34. package/packages/orq-rc/docs/sdks/batches/README.md +307 -0
  35. package/packages/orq-rc/docs/sdks/knowledge/README.md +1 -1
  36. package/packages/orq-rc/docs/sdks/proxy/README.md +1284 -0
  37. package/packages/orq-rc/examples/package-lock.json +1 -1
  38. package/packages/orq-rc/jsr.json +1 -1
  39. package/packages/orq-rc/package-lock.json +2 -2
  40. package/packages/orq-rc/package.json +1 -1
  41. package/packages/orq-rc/src/funcs/batchesCancel.ts +166 -0
  42. package/packages/orq-rc/src/funcs/batchesCreate.ts +160 -0
  43. package/packages/orq-rc/src/funcs/batchesList.ts +165 -0
  44. package/packages/orq-rc/src/funcs/batchesRetrieve.ts +166 -0
  45. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +1 -1
  46. package/packages/orq-rc/src/funcs/proxyAudioSpeech.ts +159 -0
  47. package/packages/orq-rc/src/funcs/proxyAudioTranscriptions.ts +233 -0
  48. package/packages/orq-rc/src/funcs/proxyAudioTranslations.ts +223 -0
  49. package/packages/orq-rc/src/funcs/proxyChatCompletions.ts +172 -0
  50. package/packages/orq-rc/src/funcs/proxyCompletions.ts +168 -0
  51. package/packages/orq-rc/src/funcs/proxyEmbeddings.ts +161 -0
  52. package/packages/orq-rc/src/funcs/proxyImagesEdit.ts +173 -0
  53. package/packages/orq-rc/src/funcs/proxyImagesGenerate.ts +163 -0
  54. package/packages/orq-rc/src/funcs/proxyImagesVariation.ts +179 -0
  55. package/packages/orq-rc/src/funcs/proxyModerations.ts +164 -0
  56. package/packages/orq-rc/src/funcs/proxyRerank.ts +158 -0
  57. package/packages/orq-rc/src/funcs/proxyResponsesCreate.ts +171 -0
  58. package/packages/orq-rc/src/lib/config.ts +3 -3
  59. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  60. package/packages/orq-rc/src/mcp-server/server.ts +33 -1
  61. package/packages/orq-rc/src/mcp-server/tools/batchesCancel.ts +37 -0
  62. package/packages/orq-rc/src/mcp-server/tools/batchesCreate.ts +37 -0
  63. package/packages/orq-rc/src/mcp-server/tools/batchesList.ts +37 -0
  64. package/packages/orq-rc/src/mcp-server/tools/batchesRetrieve.ts +37 -0
  65. package/packages/orq-rc/src/mcp-server/tools/knowledgeSearch.ts +1 -1
  66. package/packages/orq-rc/src/mcp-server/tools/proxyAudioSpeech.ts +33 -0
  67. package/packages/orq-rc/src/mcp-server/tools/proxyAudioTranscriptions.ts +35 -0
  68. package/packages/orq-rc/src/mcp-server/tools/proxyAudioTranslations.ts +35 -0
  69. package/packages/orq-rc/src/mcp-server/tools/proxyChatCompletions.ts +37 -0
  70. package/packages/orq-rc/src/mcp-server/tools/proxyCompletions.ts +37 -0
  71. package/packages/orq-rc/src/mcp-server/tools/proxyEmbeddings.ts +37 -0
  72. package/packages/orq-rc/src/mcp-server/tools/proxyImagesEdit.ts +35 -0
  73. package/packages/orq-rc/src/mcp-server/tools/proxyImagesGenerate.ts +35 -0
  74. package/packages/orq-rc/src/mcp-server/tools/proxyImagesVariation.ts +35 -0
  75. package/packages/orq-rc/src/mcp-server/tools/proxyModerations.ts +35 -0
  76. package/packages/orq-rc/src/mcp-server/tools/proxyRerank.ts +36 -0
  77. package/packages/orq-rc/src/mcp-server/tools/proxyResponsesCreate.ts +37 -0
  78. package/packages/orq-rc/src/models/components/deployments.ts +861 -0
  79. package/packages/orq-rc/src/models/components/index.ts +1 -0
  80. package/packages/orq-rc/src/models/components/publiccontact.ts +114 -0
  81. package/packages/orq-rc/src/models/errors/index.ts +3 -0
  82. package/packages/orq-rc/src/models/errors/postv2proxyaudiotranscriptions.ts +163 -0
  83. package/packages/orq-rc/src/models/errors/postv2proxyaudiotranslations.ts +162 -0
  84. package/packages/orq-rc/src/models/errors/postv2proxymoderations.ts +151 -0
  85. package/packages/orq-rc/src/models/operations/cancelbatch.ts +474 -0
  86. package/packages/orq-rc/src/models/operations/createbatch.ts +531 -0
  87. package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
  88. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +11697 -0
  89. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  90. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  91. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2205 -1224
  92. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  93. package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
  94. package/packages/orq-rc/src/models/operations/createresponse.ts +6908 -0
  95. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +2282 -1214
  96. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +938 -51
  97. package/packages/orq-rc/src/models/operations/deploymentstream.ts +1471 -305
  98. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  99. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  100. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  101. package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
  102. package/packages/orq-rc/src/models/operations/getevals.ts +107 -92
  103. package/packages/orq-rc/src/models/operations/index.ts +16 -0
  104. package/packages/orq-rc/src/models/operations/listbatches.ts +570 -0
  105. package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
  106. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  107. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +498 -2
  108. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  109. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  110. package/packages/orq-rc/src/models/operations/postv2proxyaudiospeech.ts +393 -0
  111. package/packages/orq-rc/src/models/operations/postv2proxyaudiotranscriptions.ts +731 -0
  112. package/packages/orq-rc/src/models/operations/postv2proxyaudiotranslations.ts +741 -0
  113. package/packages/orq-rc/src/models/operations/postv2proxycompletions.ts +5831 -0
  114. package/packages/orq-rc/src/models/operations/postv2proxyembeddings.ts +878 -0
  115. package/packages/orq-rc/src/models/operations/postv2proxyimagesedits.ts +596 -0
  116. package/packages/orq-rc/src/models/operations/postv2proxyimagesgenerations.ts +1107 -0
  117. package/packages/orq-rc/src/models/operations/postv2proxyimagesvariations.ts +592 -0
  118. package/packages/orq-rc/src/models/operations/postv2proxymoderations.ts +802 -0
  119. package/packages/orq-rc/src/models/operations/postv2proxyrerank.ts +526 -0
  120. package/packages/orq-rc/src/models/operations/retrievebatch.ts +474 -0
  121. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  122. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +478 -2
  123. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  124. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  125. package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
  126. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  127. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +974 -2
  128. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  129. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  130. package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
  131. package/packages/orq-rc/src/sdk/batches.ts +81 -0
  132. package/packages/orq-rc/src/sdk/knowledge.ts +1 -1
  133. package/packages/orq-rc/src/sdk/proxy.ts +211 -0
  134. package/packages/orq-rc/src/sdk/sdk.ts +12 -0
  135. package/packages/orq-rc/temp/example.ts +5 -0
  136. package/src/lib/config.ts +3 -3
  137. package/src/mcp-server/mcp-server.ts +1 -1
  138. package/src/mcp-server/server.ts +1 -1
  139. package/src/models/operations/createcontact.ts +2 -2
  140. package/src/models/operations/createdataset.ts +2 -2
  141. package/src/models/operations/createdatasetitem.ts +2 -2
  142. package/src/models/operations/createdatasource.ts +2 -2
  143. package/src/models/operations/createeval.ts +16 -16
  144. package/src/models/operations/fileget.ts +2 -2
  145. package/src/models/operations/filelist.ts +2 -2
  146. package/src/models/operations/fileupload.ts +2 -2
  147. package/src/models/operations/getevals.ts +28 -28
  148. package/src/models/operations/listcontacts.ts +2 -2
  149. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  150. package/src/models/operations/listdatasets.ts +2 -2
  151. package/src/models/operations/listdatasources.ts +2 -2
  152. package/src/models/operations/retrievecontact.ts +2 -2
  153. package/src/models/operations/retrievedatapoint.ts +2 -2
  154. package/src/models/operations/retrievedataset.ts +2 -2
  155. package/src/models/operations/retrievedatasource.ts +2 -2
  156. package/src/models/operations/updatecontact.ts +2 -2
  157. package/src/models/operations/updatedatapoint.ts +2 -2
  158. package/src/models/operations/updatedataset.ts +2 -2
  159. package/src/models/operations/updatedatasource.ts +2 -2
  160. package/src/models/operations/updateeval.ts +16 -16
@@ -78,6 +78,45 @@ export type DeploymentGetConfig2DeploymentsRequestType = ClosedEnum<
78
78
  typeof DeploymentGetConfig2DeploymentsRequestType
79
79
  >;
80
80
 
81
+ export const DeploymentGetConfigAnnotationsType = {
82
+ FilePath: "file_path",
83
+ } as const;
84
+ export type DeploymentGetConfigAnnotationsType = ClosedEnum<
85
+ typeof DeploymentGetConfigAnnotationsType
86
+ >;
87
+
88
+ export type FilePath = {
89
+ fileId: string;
90
+ };
91
+
92
+ export type Annotations2 = {
93
+ type: DeploymentGetConfigAnnotationsType;
94
+ text: string;
95
+ filePath: FilePath;
96
+ startIndex: number;
97
+ endIndex: number;
98
+ };
99
+
100
+ export const AnnotationsType = {
101
+ FileCitation: "file_citation",
102
+ } as const;
103
+ export type AnnotationsType = ClosedEnum<typeof AnnotationsType>;
104
+
105
+ export type FileCitation = {
106
+ fileId: string;
107
+ quote?: string | undefined;
108
+ };
109
+
110
+ export type Annotations1 = {
111
+ type: AnnotationsType;
112
+ text: string;
113
+ fileCitation: FileCitation;
114
+ startIndex: number;
115
+ endIndex: number;
116
+ };
117
+
118
+ export type Annotations = Annotations1 | Annotations2;
119
+
81
120
  export type TextContentPart = {
82
121
  /**
83
122
  * The type of the content part.
@@ -87,6 +126,10 @@ export type TextContentPart = {
87
126
  * The text content.
88
127
  */
89
128
  text: string;
129
+ /**
130
+ * Annotations for the text content.
131
+ */
132
+ annotations?: Array<Annotations1 | Annotations2> | undefined;
90
133
  };
91
134
 
92
135
  export type Content2 = TextContentPart | RefusalContentPart;
@@ -479,6 +522,49 @@ export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4Type =
479
522
  typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4Type
480
523
  >;
481
524
 
525
+ export const DeploymentGetConfigAnnotationsDeploymentsRequestType = {
526
+ FilePath: "file_path",
527
+ } as const;
528
+ export type DeploymentGetConfigAnnotationsDeploymentsRequestType = ClosedEnum<
529
+ typeof DeploymentGetConfigAnnotationsDeploymentsRequestType
530
+ >;
531
+
532
+ export type AnnotationsFilePath = {
533
+ fileId: string;
534
+ };
535
+
536
+ export type DeploymentGetConfigAnnotations2 = {
537
+ type: DeploymentGetConfigAnnotationsDeploymentsRequestType;
538
+ text: string;
539
+ filePath: AnnotationsFilePath;
540
+ startIndex: number;
541
+ endIndex: number;
542
+ };
543
+
544
+ export const DeploymentGetConfigAnnotationsDeploymentsType = {
545
+ FileCitation: "file_citation",
546
+ } as const;
547
+ export type DeploymentGetConfigAnnotationsDeploymentsType = ClosedEnum<
548
+ typeof DeploymentGetConfigAnnotationsDeploymentsType
549
+ >;
550
+
551
+ export type AnnotationsFileCitation = {
552
+ fileId: string;
553
+ quote?: string | undefined;
554
+ };
555
+
556
+ export type DeploymentGetConfigAnnotations1 = {
557
+ type: DeploymentGetConfigAnnotationsDeploymentsType;
558
+ text: string;
559
+ fileCitation: AnnotationsFileCitation;
560
+ startIndex: number;
561
+ endIndex: number;
562
+ };
563
+
564
+ export type TwoAnnotations =
565
+ | DeploymentGetConfigAnnotations1
566
+ | DeploymentGetConfigAnnotations2;
567
+
482
568
  export type TwoTextContentPart = {
483
569
  /**
484
570
  * The type of the content part.
@@ -488,6 +574,12 @@ export type TwoTextContentPart = {
488
574
  * The text content.
489
575
  */
490
576
  text: string;
577
+ /**
578
+ * Annotations for the text content.
579
+ */
580
+ annotations?:
581
+ | Array<DeploymentGetConfigAnnotations1 | DeploymentGetConfigAnnotations2>
582
+ | undefined;
491
583
  };
492
584
 
493
585
  export type DeploymentGetConfigContentDeployments2 =
@@ -1531,7 +1623,7 @@ export type DeploymentGetConfigVerbosity = ClosedEnum<
1531
1623
  /**
1532
1624
  * Model Parameters: Not all parameters apply to every model
1533
1625
  */
1534
- export type ParametersT = {
1626
+ export type DeploymentGetConfigParameters = {
1535
1627
  /**
1536
1628
  * Only supported on `chat` and `completion` models.
1537
1629
  */
@@ -1651,7 +1743,7 @@ export type DeploymentGetConfigFunction = {
1651
1743
  parameters?: { [k: string]: any } | undefined;
1652
1744
  };
1653
1745
 
1654
- export type Tools = {
1746
+ export type DeploymentGetConfigTools = {
1655
1747
  /**
1656
1748
  * The type of the tool. Currently, only `function` is supported.
1657
1749
  */
@@ -1687,11 +1779,11 @@ export type DeploymentGetConfigResponseBody = {
1687
1779
  /**
1688
1780
  * Model Parameters: Not all parameters apply to every model
1689
1781
  */
1690
- parameters: ParametersT;
1782
+ parameters: DeploymentGetConfigParameters;
1691
1783
  /**
1692
1784
  * A list of tools the model may call. Currently, only functions are supported as a tool. Use this to provide a list of functions the model may generate JSON inputs for.
1693
1785
  */
1694
- tools?: Array<Tools> | undefined;
1786
+ tools?: Array<DeploymentGetConfigTools> | undefined;
1695
1787
  };
1696
1788
 
1697
1789
  /** @internal */
@@ -1949,6 +2041,368 @@ export namespace DeploymentGetConfig2DeploymentsRequestType$ {
1949
2041
  DeploymentGetConfig2DeploymentsRequestType$outboundSchema;
1950
2042
  }
1951
2043
 
2044
+ /** @internal */
2045
+ export const DeploymentGetConfigAnnotationsType$inboundSchema: z.ZodNativeEnum<
2046
+ typeof DeploymentGetConfigAnnotationsType
2047
+ > = z.nativeEnum(DeploymentGetConfigAnnotationsType);
2048
+
2049
+ /** @internal */
2050
+ export const DeploymentGetConfigAnnotationsType$outboundSchema: z.ZodNativeEnum<
2051
+ typeof DeploymentGetConfigAnnotationsType
2052
+ > = DeploymentGetConfigAnnotationsType$inboundSchema;
2053
+
2054
+ /**
2055
+ * @internal
2056
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2057
+ */
2058
+ export namespace DeploymentGetConfigAnnotationsType$ {
2059
+ /** @deprecated use `DeploymentGetConfigAnnotationsType$inboundSchema` instead. */
2060
+ export const inboundSchema = DeploymentGetConfigAnnotationsType$inboundSchema;
2061
+ /** @deprecated use `DeploymentGetConfigAnnotationsType$outboundSchema` instead. */
2062
+ export const outboundSchema =
2063
+ DeploymentGetConfigAnnotationsType$outboundSchema;
2064
+ }
2065
+
2066
+ /** @internal */
2067
+ export const FilePath$inboundSchema: z.ZodType<
2068
+ FilePath,
2069
+ z.ZodTypeDef,
2070
+ unknown
2071
+ > = z.object({
2072
+ file_id: z.string(),
2073
+ }).transform((v) => {
2074
+ return remap$(v, {
2075
+ "file_id": "fileId",
2076
+ });
2077
+ });
2078
+
2079
+ /** @internal */
2080
+ export type FilePath$Outbound = {
2081
+ file_id: string;
2082
+ };
2083
+
2084
+ /** @internal */
2085
+ export const FilePath$outboundSchema: z.ZodType<
2086
+ FilePath$Outbound,
2087
+ z.ZodTypeDef,
2088
+ FilePath
2089
+ > = z.object({
2090
+ fileId: z.string(),
2091
+ }).transform((v) => {
2092
+ return remap$(v, {
2093
+ fileId: "file_id",
2094
+ });
2095
+ });
2096
+
2097
+ /**
2098
+ * @internal
2099
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2100
+ */
2101
+ export namespace FilePath$ {
2102
+ /** @deprecated use `FilePath$inboundSchema` instead. */
2103
+ export const inboundSchema = FilePath$inboundSchema;
2104
+ /** @deprecated use `FilePath$outboundSchema` instead. */
2105
+ export const outboundSchema = FilePath$outboundSchema;
2106
+ /** @deprecated use `FilePath$Outbound` instead. */
2107
+ export type Outbound = FilePath$Outbound;
2108
+ }
2109
+
2110
+ export function filePathToJSON(filePath: FilePath): string {
2111
+ return JSON.stringify(FilePath$outboundSchema.parse(filePath));
2112
+ }
2113
+
2114
+ export function filePathFromJSON(
2115
+ jsonString: string,
2116
+ ): SafeParseResult<FilePath, SDKValidationError> {
2117
+ return safeParse(
2118
+ jsonString,
2119
+ (x) => FilePath$inboundSchema.parse(JSON.parse(x)),
2120
+ `Failed to parse 'FilePath' from JSON`,
2121
+ );
2122
+ }
2123
+
2124
+ /** @internal */
2125
+ export const Annotations2$inboundSchema: z.ZodType<
2126
+ Annotations2,
2127
+ z.ZodTypeDef,
2128
+ unknown
2129
+ > = z.object({
2130
+ type: DeploymentGetConfigAnnotationsType$inboundSchema,
2131
+ text: z.string(),
2132
+ file_path: z.lazy(() => FilePath$inboundSchema),
2133
+ start_index: z.number().int(),
2134
+ end_index: z.number().int(),
2135
+ }).transform((v) => {
2136
+ return remap$(v, {
2137
+ "file_path": "filePath",
2138
+ "start_index": "startIndex",
2139
+ "end_index": "endIndex",
2140
+ });
2141
+ });
2142
+
2143
+ /** @internal */
2144
+ export type Annotations2$Outbound = {
2145
+ type: string;
2146
+ text: string;
2147
+ file_path: FilePath$Outbound;
2148
+ start_index: number;
2149
+ end_index: number;
2150
+ };
2151
+
2152
+ /** @internal */
2153
+ export const Annotations2$outboundSchema: z.ZodType<
2154
+ Annotations2$Outbound,
2155
+ z.ZodTypeDef,
2156
+ Annotations2
2157
+ > = z.object({
2158
+ type: DeploymentGetConfigAnnotationsType$outboundSchema,
2159
+ text: z.string(),
2160
+ filePath: z.lazy(() => FilePath$outboundSchema),
2161
+ startIndex: z.number().int(),
2162
+ endIndex: z.number().int(),
2163
+ }).transform((v) => {
2164
+ return remap$(v, {
2165
+ filePath: "file_path",
2166
+ startIndex: "start_index",
2167
+ endIndex: "end_index",
2168
+ });
2169
+ });
2170
+
2171
+ /**
2172
+ * @internal
2173
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2174
+ */
2175
+ export namespace Annotations2$ {
2176
+ /** @deprecated use `Annotations2$inboundSchema` instead. */
2177
+ export const inboundSchema = Annotations2$inboundSchema;
2178
+ /** @deprecated use `Annotations2$outboundSchema` instead. */
2179
+ export const outboundSchema = Annotations2$outboundSchema;
2180
+ /** @deprecated use `Annotations2$Outbound` instead. */
2181
+ export type Outbound = Annotations2$Outbound;
2182
+ }
2183
+
2184
+ export function annotations2ToJSON(annotations2: Annotations2): string {
2185
+ return JSON.stringify(Annotations2$outboundSchema.parse(annotations2));
2186
+ }
2187
+
2188
+ export function annotations2FromJSON(
2189
+ jsonString: string,
2190
+ ): SafeParseResult<Annotations2, SDKValidationError> {
2191
+ return safeParse(
2192
+ jsonString,
2193
+ (x) => Annotations2$inboundSchema.parse(JSON.parse(x)),
2194
+ `Failed to parse 'Annotations2' from JSON`,
2195
+ );
2196
+ }
2197
+
2198
+ /** @internal */
2199
+ export const AnnotationsType$inboundSchema: z.ZodNativeEnum<
2200
+ typeof AnnotationsType
2201
+ > = z.nativeEnum(AnnotationsType);
2202
+
2203
+ /** @internal */
2204
+ export const AnnotationsType$outboundSchema: z.ZodNativeEnum<
2205
+ typeof AnnotationsType
2206
+ > = AnnotationsType$inboundSchema;
2207
+
2208
+ /**
2209
+ * @internal
2210
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2211
+ */
2212
+ export namespace AnnotationsType$ {
2213
+ /** @deprecated use `AnnotationsType$inboundSchema` instead. */
2214
+ export const inboundSchema = AnnotationsType$inboundSchema;
2215
+ /** @deprecated use `AnnotationsType$outboundSchema` instead. */
2216
+ export const outboundSchema = AnnotationsType$outboundSchema;
2217
+ }
2218
+
2219
+ /** @internal */
2220
+ export const FileCitation$inboundSchema: z.ZodType<
2221
+ FileCitation,
2222
+ z.ZodTypeDef,
2223
+ unknown
2224
+ > = z.object({
2225
+ file_id: z.string(),
2226
+ quote: z.string().optional(),
2227
+ }).transform((v) => {
2228
+ return remap$(v, {
2229
+ "file_id": "fileId",
2230
+ });
2231
+ });
2232
+
2233
+ /** @internal */
2234
+ export type FileCitation$Outbound = {
2235
+ file_id: string;
2236
+ quote?: string | undefined;
2237
+ };
2238
+
2239
+ /** @internal */
2240
+ export const FileCitation$outboundSchema: z.ZodType<
2241
+ FileCitation$Outbound,
2242
+ z.ZodTypeDef,
2243
+ FileCitation
2244
+ > = z.object({
2245
+ fileId: z.string(),
2246
+ quote: z.string().optional(),
2247
+ }).transform((v) => {
2248
+ return remap$(v, {
2249
+ fileId: "file_id",
2250
+ });
2251
+ });
2252
+
2253
+ /**
2254
+ * @internal
2255
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2256
+ */
2257
+ export namespace FileCitation$ {
2258
+ /** @deprecated use `FileCitation$inboundSchema` instead. */
2259
+ export const inboundSchema = FileCitation$inboundSchema;
2260
+ /** @deprecated use `FileCitation$outboundSchema` instead. */
2261
+ export const outboundSchema = FileCitation$outboundSchema;
2262
+ /** @deprecated use `FileCitation$Outbound` instead. */
2263
+ export type Outbound = FileCitation$Outbound;
2264
+ }
2265
+
2266
+ export function fileCitationToJSON(fileCitation: FileCitation): string {
2267
+ return JSON.stringify(FileCitation$outboundSchema.parse(fileCitation));
2268
+ }
2269
+
2270
+ export function fileCitationFromJSON(
2271
+ jsonString: string,
2272
+ ): SafeParseResult<FileCitation, SDKValidationError> {
2273
+ return safeParse(
2274
+ jsonString,
2275
+ (x) => FileCitation$inboundSchema.parse(JSON.parse(x)),
2276
+ `Failed to parse 'FileCitation' from JSON`,
2277
+ );
2278
+ }
2279
+
2280
+ /** @internal */
2281
+ export const Annotations1$inboundSchema: z.ZodType<
2282
+ Annotations1,
2283
+ z.ZodTypeDef,
2284
+ unknown
2285
+ > = z.object({
2286
+ type: AnnotationsType$inboundSchema,
2287
+ text: z.string(),
2288
+ file_citation: z.lazy(() => FileCitation$inboundSchema),
2289
+ start_index: z.number().int(),
2290
+ end_index: z.number().int(),
2291
+ }).transform((v) => {
2292
+ return remap$(v, {
2293
+ "file_citation": "fileCitation",
2294
+ "start_index": "startIndex",
2295
+ "end_index": "endIndex",
2296
+ });
2297
+ });
2298
+
2299
+ /** @internal */
2300
+ export type Annotations1$Outbound = {
2301
+ type: string;
2302
+ text: string;
2303
+ file_citation: FileCitation$Outbound;
2304
+ start_index: number;
2305
+ end_index: number;
2306
+ };
2307
+
2308
+ /** @internal */
2309
+ export const Annotations1$outboundSchema: z.ZodType<
2310
+ Annotations1$Outbound,
2311
+ z.ZodTypeDef,
2312
+ Annotations1
2313
+ > = z.object({
2314
+ type: AnnotationsType$outboundSchema,
2315
+ text: z.string(),
2316
+ fileCitation: z.lazy(() => FileCitation$outboundSchema),
2317
+ startIndex: z.number().int(),
2318
+ endIndex: z.number().int(),
2319
+ }).transform((v) => {
2320
+ return remap$(v, {
2321
+ fileCitation: "file_citation",
2322
+ startIndex: "start_index",
2323
+ endIndex: "end_index",
2324
+ });
2325
+ });
2326
+
2327
+ /**
2328
+ * @internal
2329
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2330
+ */
2331
+ export namespace Annotations1$ {
2332
+ /** @deprecated use `Annotations1$inboundSchema` instead. */
2333
+ export const inboundSchema = Annotations1$inboundSchema;
2334
+ /** @deprecated use `Annotations1$outboundSchema` instead. */
2335
+ export const outboundSchema = Annotations1$outboundSchema;
2336
+ /** @deprecated use `Annotations1$Outbound` instead. */
2337
+ export type Outbound = Annotations1$Outbound;
2338
+ }
2339
+
2340
+ export function annotations1ToJSON(annotations1: Annotations1): string {
2341
+ return JSON.stringify(Annotations1$outboundSchema.parse(annotations1));
2342
+ }
2343
+
2344
+ export function annotations1FromJSON(
2345
+ jsonString: string,
2346
+ ): SafeParseResult<Annotations1, SDKValidationError> {
2347
+ return safeParse(
2348
+ jsonString,
2349
+ (x) => Annotations1$inboundSchema.parse(JSON.parse(x)),
2350
+ `Failed to parse 'Annotations1' from JSON`,
2351
+ );
2352
+ }
2353
+
2354
+ /** @internal */
2355
+ export const Annotations$inboundSchema: z.ZodType<
2356
+ Annotations,
2357
+ z.ZodTypeDef,
2358
+ unknown
2359
+ > = z.union([
2360
+ z.lazy(() => Annotations1$inboundSchema),
2361
+ z.lazy(() => Annotations2$inboundSchema),
2362
+ ]);
2363
+
2364
+ /** @internal */
2365
+ export type Annotations$Outbound =
2366
+ | Annotations1$Outbound
2367
+ | Annotations2$Outbound;
2368
+
2369
+ /** @internal */
2370
+ export const Annotations$outboundSchema: z.ZodType<
2371
+ Annotations$Outbound,
2372
+ z.ZodTypeDef,
2373
+ Annotations
2374
+ > = z.union([
2375
+ z.lazy(() => Annotations1$outboundSchema),
2376
+ z.lazy(() => Annotations2$outboundSchema),
2377
+ ]);
2378
+
2379
+ /**
2380
+ * @internal
2381
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2382
+ */
2383
+ export namespace Annotations$ {
2384
+ /** @deprecated use `Annotations$inboundSchema` instead. */
2385
+ export const inboundSchema = Annotations$inboundSchema;
2386
+ /** @deprecated use `Annotations$outboundSchema` instead. */
2387
+ export const outboundSchema = Annotations$outboundSchema;
2388
+ /** @deprecated use `Annotations$Outbound` instead. */
2389
+ export type Outbound = Annotations$Outbound;
2390
+ }
2391
+
2392
+ export function annotationsToJSON(annotations: Annotations): string {
2393
+ return JSON.stringify(Annotations$outboundSchema.parse(annotations));
2394
+ }
2395
+
2396
+ export function annotationsFromJSON(
2397
+ jsonString: string,
2398
+ ): SafeParseResult<Annotations, SDKValidationError> {
2399
+ return safeParse(
2400
+ jsonString,
2401
+ (x) => Annotations$inboundSchema.parse(JSON.parse(x)),
2402
+ `Failed to parse 'Annotations' from JSON`,
2403
+ );
2404
+ }
2405
+
1952
2406
  /** @internal */
1953
2407
  export const TextContentPart$inboundSchema: z.ZodType<
1954
2408
  TextContentPart,
@@ -1957,12 +2411,21 @@ export const TextContentPart$inboundSchema: z.ZodType<
1957
2411
  > = z.object({
1958
2412
  type: DeploymentGetConfig2DeploymentsRequestType$inboundSchema,
1959
2413
  text: z.string(),
2414
+ annotations: z.array(
2415
+ z.union([
2416
+ z.lazy(() => Annotations1$inboundSchema),
2417
+ z.lazy(() => Annotations2$inboundSchema),
2418
+ ]),
2419
+ ).optional(),
1960
2420
  });
1961
2421
 
1962
2422
  /** @internal */
1963
2423
  export type TextContentPart$Outbound = {
1964
2424
  type: string;
1965
2425
  text: string;
2426
+ annotations?:
2427
+ | Array<Annotations1$Outbound | Annotations2$Outbound>
2428
+ | undefined;
1966
2429
  };
1967
2430
 
1968
2431
  /** @internal */
@@ -1973,6 +2436,12 @@ export const TextContentPart$outboundSchema: z.ZodType<
1973
2436
  > = z.object({
1974
2437
  type: DeploymentGetConfig2DeploymentsRequestType$outboundSchema,
1975
2438
  text: z.string(),
2439
+ annotations: z.array(
2440
+ z.union([
2441
+ z.lazy(() => Annotations1$outboundSchema),
2442
+ z.lazy(() => Annotations2$outboundSchema),
2443
+ ]),
2444
+ ).optional(),
1976
2445
  });
1977
2446
 
1978
2447
  /**
@@ -3626,6 +4095,391 @@ export namespace DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4Type$
3626
4095
  DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4Type$outboundSchema;
3627
4096
  }
3628
4097
 
4098
+ /** @internal */
4099
+ export const DeploymentGetConfigAnnotationsDeploymentsRequestType$inboundSchema:
4100
+ z.ZodNativeEnum<typeof DeploymentGetConfigAnnotationsDeploymentsRequestType> =
4101
+ z.nativeEnum(DeploymentGetConfigAnnotationsDeploymentsRequestType);
4102
+
4103
+ /** @internal */
4104
+ export const DeploymentGetConfigAnnotationsDeploymentsRequestType$outboundSchema:
4105
+ z.ZodNativeEnum<typeof DeploymentGetConfigAnnotationsDeploymentsRequestType> =
4106
+ DeploymentGetConfigAnnotationsDeploymentsRequestType$inboundSchema;
4107
+
4108
+ /**
4109
+ * @internal
4110
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4111
+ */
4112
+ export namespace DeploymentGetConfigAnnotationsDeploymentsRequestType$ {
4113
+ /** @deprecated use `DeploymentGetConfigAnnotationsDeploymentsRequestType$inboundSchema` instead. */
4114
+ export const inboundSchema =
4115
+ DeploymentGetConfigAnnotationsDeploymentsRequestType$inboundSchema;
4116
+ /** @deprecated use `DeploymentGetConfigAnnotationsDeploymentsRequestType$outboundSchema` instead. */
4117
+ export const outboundSchema =
4118
+ DeploymentGetConfigAnnotationsDeploymentsRequestType$outboundSchema;
4119
+ }
4120
+
4121
+ /** @internal */
4122
+ export const AnnotationsFilePath$inboundSchema: z.ZodType<
4123
+ AnnotationsFilePath,
4124
+ z.ZodTypeDef,
4125
+ unknown
4126
+ > = z.object({
4127
+ file_id: z.string(),
4128
+ }).transform((v) => {
4129
+ return remap$(v, {
4130
+ "file_id": "fileId",
4131
+ });
4132
+ });
4133
+
4134
+ /** @internal */
4135
+ export type AnnotationsFilePath$Outbound = {
4136
+ file_id: string;
4137
+ };
4138
+
4139
+ /** @internal */
4140
+ export const AnnotationsFilePath$outboundSchema: z.ZodType<
4141
+ AnnotationsFilePath$Outbound,
4142
+ z.ZodTypeDef,
4143
+ AnnotationsFilePath
4144
+ > = z.object({
4145
+ fileId: z.string(),
4146
+ }).transform((v) => {
4147
+ return remap$(v, {
4148
+ fileId: "file_id",
4149
+ });
4150
+ });
4151
+
4152
+ /**
4153
+ * @internal
4154
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4155
+ */
4156
+ export namespace AnnotationsFilePath$ {
4157
+ /** @deprecated use `AnnotationsFilePath$inboundSchema` instead. */
4158
+ export const inboundSchema = AnnotationsFilePath$inboundSchema;
4159
+ /** @deprecated use `AnnotationsFilePath$outboundSchema` instead. */
4160
+ export const outboundSchema = AnnotationsFilePath$outboundSchema;
4161
+ /** @deprecated use `AnnotationsFilePath$Outbound` instead. */
4162
+ export type Outbound = AnnotationsFilePath$Outbound;
4163
+ }
4164
+
4165
+ export function annotationsFilePathToJSON(
4166
+ annotationsFilePath: AnnotationsFilePath,
4167
+ ): string {
4168
+ return JSON.stringify(
4169
+ AnnotationsFilePath$outboundSchema.parse(annotationsFilePath),
4170
+ );
4171
+ }
4172
+
4173
+ export function annotationsFilePathFromJSON(
4174
+ jsonString: string,
4175
+ ): SafeParseResult<AnnotationsFilePath, SDKValidationError> {
4176
+ return safeParse(
4177
+ jsonString,
4178
+ (x) => AnnotationsFilePath$inboundSchema.parse(JSON.parse(x)),
4179
+ `Failed to parse 'AnnotationsFilePath' from JSON`,
4180
+ );
4181
+ }
4182
+
4183
+ /** @internal */
4184
+ export const DeploymentGetConfigAnnotations2$inboundSchema: z.ZodType<
4185
+ DeploymentGetConfigAnnotations2,
4186
+ z.ZodTypeDef,
4187
+ unknown
4188
+ > = z.object({
4189
+ type: DeploymentGetConfigAnnotationsDeploymentsRequestType$inboundSchema,
4190
+ text: z.string(),
4191
+ file_path: z.lazy(() => AnnotationsFilePath$inboundSchema),
4192
+ start_index: z.number().int(),
4193
+ end_index: z.number().int(),
4194
+ }).transform((v) => {
4195
+ return remap$(v, {
4196
+ "file_path": "filePath",
4197
+ "start_index": "startIndex",
4198
+ "end_index": "endIndex",
4199
+ });
4200
+ });
4201
+
4202
+ /** @internal */
4203
+ export type DeploymentGetConfigAnnotations2$Outbound = {
4204
+ type: string;
4205
+ text: string;
4206
+ file_path: AnnotationsFilePath$Outbound;
4207
+ start_index: number;
4208
+ end_index: number;
4209
+ };
4210
+
4211
+ /** @internal */
4212
+ export const DeploymentGetConfigAnnotations2$outboundSchema: z.ZodType<
4213
+ DeploymentGetConfigAnnotations2$Outbound,
4214
+ z.ZodTypeDef,
4215
+ DeploymentGetConfigAnnotations2
4216
+ > = z.object({
4217
+ type: DeploymentGetConfigAnnotationsDeploymentsRequestType$outboundSchema,
4218
+ text: z.string(),
4219
+ filePath: z.lazy(() => AnnotationsFilePath$outboundSchema),
4220
+ startIndex: z.number().int(),
4221
+ endIndex: z.number().int(),
4222
+ }).transform((v) => {
4223
+ return remap$(v, {
4224
+ filePath: "file_path",
4225
+ startIndex: "start_index",
4226
+ endIndex: "end_index",
4227
+ });
4228
+ });
4229
+
4230
+ /**
4231
+ * @internal
4232
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4233
+ */
4234
+ export namespace DeploymentGetConfigAnnotations2$ {
4235
+ /** @deprecated use `DeploymentGetConfigAnnotations2$inboundSchema` instead. */
4236
+ export const inboundSchema = DeploymentGetConfigAnnotations2$inboundSchema;
4237
+ /** @deprecated use `DeploymentGetConfigAnnotations2$outboundSchema` instead. */
4238
+ export const outboundSchema = DeploymentGetConfigAnnotations2$outboundSchema;
4239
+ /** @deprecated use `DeploymentGetConfigAnnotations2$Outbound` instead. */
4240
+ export type Outbound = DeploymentGetConfigAnnotations2$Outbound;
4241
+ }
4242
+
4243
+ export function deploymentGetConfigAnnotations2ToJSON(
4244
+ deploymentGetConfigAnnotations2: DeploymentGetConfigAnnotations2,
4245
+ ): string {
4246
+ return JSON.stringify(
4247
+ DeploymentGetConfigAnnotations2$outboundSchema.parse(
4248
+ deploymentGetConfigAnnotations2,
4249
+ ),
4250
+ );
4251
+ }
4252
+
4253
+ export function deploymentGetConfigAnnotations2FromJSON(
4254
+ jsonString: string,
4255
+ ): SafeParseResult<DeploymentGetConfigAnnotations2, SDKValidationError> {
4256
+ return safeParse(
4257
+ jsonString,
4258
+ (x) => DeploymentGetConfigAnnotations2$inboundSchema.parse(JSON.parse(x)),
4259
+ `Failed to parse 'DeploymentGetConfigAnnotations2' from JSON`,
4260
+ );
4261
+ }
4262
+
4263
+ /** @internal */
4264
+ export const DeploymentGetConfigAnnotationsDeploymentsType$inboundSchema:
4265
+ z.ZodNativeEnum<typeof DeploymentGetConfigAnnotationsDeploymentsType> = z
4266
+ .nativeEnum(DeploymentGetConfigAnnotationsDeploymentsType);
4267
+
4268
+ /** @internal */
4269
+ export const DeploymentGetConfigAnnotationsDeploymentsType$outboundSchema:
4270
+ z.ZodNativeEnum<typeof DeploymentGetConfigAnnotationsDeploymentsType> =
4271
+ DeploymentGetConfigAnnotationsDeploymentsType$inboundSchema;
4272
+
4273
+ /**
4274
+ * @internal
4275
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4276
+ */
4277
+ export namespace DeploymentGetConfigAnnotationsDeploymentsType$ {
4278
+ /** @deprecated use `DeploymentGetConfigAnnotationsDeploymentsType$inboundSchema` instead. */
4279
+ export const inboundSchema =
4280
+ DeploymentGetConfigAnnotationsDeploymentsType$inboundSchema;
4281
+ /** @deprecated use `DeploymentGetConfigAnnotationsDeploymentsType$outboundSchema` instead. */
4282
+ export const outboundSchema =
4283
+ DeploymentGetConfigAnnotationsDeploymentsType$outboundSchema;
4284
+ }
4285
+
4286
+ /** @internal */
4287
+ export const AnnotationsFileCitation$inboundSchema: z.ZodType<
4288
+ AnnotationsFileCitation,
4289
+ z.ZodTypeDef,
4290
+ unknown
4291
+ > = z.object({
4292
+ file_id: z.string(),
4293
+ quote: z.string().optional(),
4294
+ }).transform((v) => {
4295
+ return remap$(v, {
4296
+ "file_id": "fileId",
4297
+ });
4298
+ });
4299
+
4300
+ /** @internal */
4301
+ export type AnnotationsFileCitation$Outbound = {
4302
+ file_id: string;
4303
+ quote?: string | undefined;
4304
+ };
4305
+
4306
+ /** @internal */
4307
+ export const AnnotationsFileCitation$outboundSchema: z.ZodType<
4308
+ AnnotationsFileCitation$Outbound,
4309
+ z.ZodTypeDef,
4310
+ AnnotationsFileCitation
4311
+ > = z.object({
4312
+ fileId: z.string(),
4313
+ quote: z.string().optional(),
4314
+ }).transform((v) => {
4315
+ return remap$(v, {
4316
+ fileId: "file_id",
4317
+ });
4318
+ });
4319
+
4320
+ /**
4321
+ * @internal
4322
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4323
+ */
4324
+ export namespace AnnotationsFileCitation$ {
4325
+ /** @deprecated use `AnnotationsFileCitation$inboundSchema` instead. */
4326
+ export const inboundSchema = AnnotationsFileCitation$inboundSchema;
4327
+ /** @deprecated use `AnnotationsFileCitation$outboundSchema` instead. */
4328
+ export const outboundSchema = AnnotationsFileCitation$outboundSchema;
4329
+ /** @deprecated use `AnnotationsFileCitation$Outbound` instead. */
4330
+ export type Outbound = AnnotationsFileCitation$Outbound;
4331
+ }
4332
+
4333
+ export function annotationsFileCitationToJSON(
4334
+ annotationsFileCitation: AnnotationsFileCitation,
4335
+ ): string {
4336
+ return JSON.stringify(
4337
+ AnnotationsFileCitation$outboundSchema.parse(annotationsFileCitation),
4338
+ );
4339
+ }
4340
+
4341
+ export function annotationsFileCitationFromJSON(
4342
+ jsonString: string,
4343
+ ): SafeParseResult<AnnotationsFileCitation, SDKValidationError> {
4344
+ return safeParse(
4345
+ jsonString,
4346
+ (x) => AnnotationsFileCitation$inboundSchema.parse(JSON.parse(x)),
4347
+ `Failed to parse 'AnnotationsFileCitation' from JSON`,
4348
+ );
4349
+ }
4350
+
4351
+ /** @internal */
4352
+ export const DeploymentGetConfigAnnotations1$inboundSchema: z.ZodType<
4353
+ DeploymentGetConfigAnnotations1,
4354
+ z.ZodTypeDef,
4355
+ unknown
4356
+ > = z.object({
4357
+ type: DeploymentGetConfigAnnotationsDeploymentsType$inboundSchema,
4358
+ text: z.string(),
4359
+ file_citation: z.lazy(() => AnnotationsFileCitation$inboundSchema),
4360
+ start_index: z.number().int(),
4361
+ end_index: z.number().int(),
4362
+ }).transform((v) => {
4363
+ return remap$(v, {
4364
+ "file_citation": "fileCitation",
4365
+ "start_index": "startIndex",
4366
+ "end_index": "endIndex",
4367
+ });
4368
+ });
4369
+
4370
+ /** @internal */
4371
+ export type DeploymentGetConfigAnnotations1$Outbound = {
4372
+ type: string;
4373
+ text: string;
4374
+ file_citation: AnnotationsFileCitation$Outbound;
4375
+ start_index: number;
4376
+ end_index: number;
4377
+ };
4378
+
4379
+ /** @internal */
4380
+ export const DeploymentGetConfigAnnotations1$outboundSchema: z.ZodType<
4381
+ DeploymentGetConfigAnnotations1$Outbound,
4382
+ z.ZodTypeDef,
4383
+ DeploymentGetConfigAnnotations1
4384
+ > = z.object({
4385
+ type: DeploymentGetConfigAnnotationsDeploymentsType$outboundSchema,
4386
+ text: z.string(),
4387
+ fileCitation: z.lazy(() => AnnotationsFileCitation$outboundSchema),
4388
+ startIndex: z.number().int(),
4389
+ endIndex: z.number().int(),
4390
+ }).transform((v) => {
4391
+ return remap$(v, {
4392
+ fileCitation: "file_citation",
4393
+ startIndex: "start_index",
4394
+ endIndex: "end_index",
4395
+ });
4396
+ });
4397
+
4398
+ /**
4399
+ * @internal
4400
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4401
+ */
4402
+ export namespace DeploymentGetConfigAnnotations1$ {
4403
+ /** @deprecated use `DeploymentGetConfigAnnotations1$inboundSchema` instead. */
4404
+ export const inboundSchema = DeploymentGetConfigAnnotations1$inboundSchema;
4405
+ /** @deprecated use `DeploymentGetConfigAnnotations1$outboundSchema` instead. */
4406
+ export const outboundSchema = DeploymentGetConfigAnnotations1$outboundSchema;
4407
+ /** @deprecated use `DeploymentGetConfigAnnotations1$Outbound` instead. */
4408
+ export type Outbound = DeploymentGetConfigAnnotations1$Outbound;
4409
+ }
4410
+
4411
+ export function deploymentGetConfigAnnotations1ToJSON(
4412
+ deploymentGetConfigAnnotations1: DeploymentGetConfigAnnotations1,
4413
+ ): string {
4414
+ return JSON.stringify(
4415
+ DeploymentGetConfigAnnotations1$outboundSchema.parse(
4416
+ deploymentGetConfigAnnotations1,
4417
+ ),
4418
+ );
4419
+ }
4420
+
4421
+ export function deploymentGetConfigAnnotations1FromJSON(
4422
+ jsonString: string,
4423
+ ): SafeParseResult<DeploymentGetConfigAnnotations1, SDKValidationError> {
4424
+ return safeParse(
4425
+ jsonString,
4426
+ (x) => DeploymentGetConfigAnnotations1$inboundSchema.parse(JSON.parse(x)),
4427
+ `Failed to parse 'DeploymentGetConfigAnnotations1' from JSON`,
4428
+ );
4429
+ }
4430
+
4431
+ /** @internal */
4432
+ export const TwoAnnotations$inboundSchema: z.ZodType<
4433
+ TwoAnnotations,
4434
+ z.ZodTypeDef,
4435
+ unknown
4436
+ > = z.union([
4437
+ z.lazy(() => DeploymentGetConfigAnnotations1$inboundSchema),
4438
+ z.lazy(() => DeploymentGetConfigAnnotations2$inboundSchema),
4439
+ ]);
4440
+
4441
+ /** @internal */
4442
+ export type TwoAnnotations$Outbound =
4443
+ | DeploymentGetConfigAnnotations1$Outbound
4444
+ | DeploymentGetConfigAnnotations2$Outbound;
4445
+
4446
+ /** @internal */
4447
+ export const TwoAnnotations$outboundSchema: z.ZodType<
4448
+ TwoAnnotations$Outbound,
4449
+ z.ZodTypeDef,
4450
+ TwoAnnotations
4451
+ > = z.union([
4452
+ z.lazy(() => DeploymentGetConfigAnnotations1$outboundSchema),
4453
+ z.lazy(() => DeploymentGetConfigAnnotations2$outboundSchema),
4454
+ ]);
4455
+
4456
+ /**
4457
+ * @internal
4458
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4459
+ */
4460
+ export namespace TwoAnnotations$ {
4461
+ /** @deprecated use `TwoAnnotations$inboundSchema` instead. */
4462
+ export const inboundSchema = TwoAnnotations$inboundSchema;
4463
+ /** @deprecated use `TwoAnnotations$outboundSchema` instead. */
4464
+ export const outboundSchema = TwoAnnotations$outboundSchema;
4465
+ /** @deprecated use `TwoAnnotations$Outbound` instead. */
4466
+ export type Outbound = TwoAnnotations$Outbound;
4467
+ }
4468
+
4469
+ export function twoAnnotationsToJSON(twoAnnotations: TwoAnnotations): string {
4470
+ return JSON.stringify(TwoAnnotations$outboundSchema.parse(twoAnnotations));
4471
+ }
4472
+
4473
+ export function twoAnnotationsFromJSON(
4474
+ jsonString: string,
4475
+ ): SafeParseResult<TwoAnnotations, SDKValidationError> {
4476
+ return safeParse(
4477
+ jsonString,
4478
+ (x) => TwoAnnotations$inboundSchema.parse(JSON.parse(x)),
4479
+ `Failed to parse 'TwoAnnotations' from JSON`,
4480
+ );
4481
+ }
4482
+
3629
4483
  /** @internal */
3630
4484
  export const TwoTextContentPart$inboundSchema: z.ZodType<
3631
4485
  TwoTextContentPart,
@@ -3635,12 +4489,24 @@ export const TwoTextContentPart$inboundSchema: z.ZodType<
3635
4489
  type:
3636
4490
  DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4Type$inboundSchema,
3637
4491
  text: z.string(),
4492
+ annotations: z.array(
4493
+ z.union([
4494
+ z.lazy(() => DeploymentGetConfigAnnotations1$inboundSchema),
4495
+ z.lazy(() => DeploymentGetConfigAnnotations2$inboundSchema),
4496
+ ]),
4497
+ ).optional(),
3638
4498
  });
3639
4499
 
3640
4500
  /** @internal */
3641
4501
  export type TwoTextContentPart$Outbound = {
3642
4502
  type: string;
3643
4503
  text: string;
4504
+ annotations?:
4505
+ | Array<
4506
+ | DeploymentGetConfigAnnotations1$Outbound
4507
+ | DeploymentGetConfigAnnotations2$Outbound
4508
+ >
4509
+ | undefined;
3644
4510
  };
3645
4511
 
3646
4512
  /** @internal */
@@ -3652,6 +4518,12 @@ export const TwoTextContentPart$outboundSchema: z.ZodType<
3652
4518
  type:
3653
4519
  DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4Type$outboundSchema,
3654
4520
  text: z.string(),
4521
+ annotations: z.array(
4522
+ z.union([
4523
+ z.lazy(() => DeploymentGetConfigAnnotations1$outboundSchema),
4524
+ z.lazy(() => DeploymentGetConfigAnnotations2$outboundSchema),
4525
+ ]),
4526
+ ).optional(),
3655
4527
  });
3656
4528
 
3657
4529
  /**
@@ -9141,8 +10013,8 @@ export namespace DeploymentGetConfigVerbosity$ {
9141
10013
  }
9142
10014
 
9143
10015
  /** @internal */
9144
- export const ParametersT$inboundSchema: z.ZodType<
9145
- ParametersT,
10016
+ export const DeploymentGetConfigParameters$inboundSchema: z.ZodType<
10017
+ DeploymentGetConfigParameters,
9146
10018
  z.ZodTypeDef,
9147
10019
  unknown
9148
10020
  > = z.object({
@@ -9178,7 +10050,7 @@ export const ParametersT$inboundSchema: z.ZodType<
9178
10050
  });
9179
10051
 
9180
10052
  /** @internal */
9181
- export type ParametersT$Outbound = {
10053
+ export type DeploymentGetConfigParameters$Outbound = {
9182
10054
  temperature?: number | undefined;
9183
10055
  maxTokens?: number | undefined;
9184
10056
  topK?: number | undefined;
@@ -9205,10 +10077,10 @@ export type ParametersT$Outbound = {
9205
10077
  };
9206
10078
 
9207
10079
  /** @internal */
9208
- export const ParametersT$outboundSchema: z.ZodType<
9209
- ParametersT$Outbound,
10080
+ export const DeploymentGetConfigParameters$outboundSchema: z.ZodType<
10081
+ DeploymentGetConfigParameters$Outbound,
9210
10082
  z.ZodTypeDef,
9211
- ParametersT
10083
+ DeploymentGetConfigParameters
9212
10084
  > = z.object({
9213
10085
  temperature: z.number().optional(),
9214
10086
  maxTokens: z.number().optional(),
@@ -9245,26 +10117,32 @@ export const ParametersT$outboundSchema: z.ZodType<
9245
10117
  * @internal
9246
10118
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
9247
10119
  */
9248
- export namespace ParametersT$ {
9249
- /** @deprecated use `ParametersT$inboundSchema` instead. */
9250
- export const inboundSchema = ParametersT$inboundSchema;
9251
- /** @deprecated use `ParametersT$outboundSchema` instead. */
9252
- export const outboundSchema = ParametersT$outboundSchema;
9253
- /** @deprecated use `ParametersT$Outbound` instead. */
9254
- export type Outbound = ParametersT$Outbound;
10120
+ export namespace DeploymentGetConfigParameters$ {
10121
+ /** @deprecated use `DeploymentGetConfigParameters$inboundSchema` instead. */
10122
+ export const inboundSchema = DeploymentGetConfigParameters$inboundSchema;
10123
+ /** @deprecated use `DeploymentGetConfigParameters$outboundSchema` instead. */
10124
+ export const outboundSchema = DeploymentGetConfigParameters$outboundSchema;
10125
+ /** @deprecated use `DeploymentGetConfigParameters$Outbound` instead. */
10126
+ export type Outbound = DeploymentGetConfigParameters$Outbound;
9255
10127
  }
9256
10128
 
9257
- export function parametersToJSON(parametersT: ParametersT): string {
9258
- return JSON.stringify(ParametersT$outboundSchema.parse(parametersT));
10129
+ export function deploymentGetConfigParametersToJSON(
10130
+ deploymentGetConfigParameters: DeploymentGetConfigParameters,
10131
+ ): string {
10132
+ return JSON.stringify(
10133
+ DeploymentGetConfigParameters$outboundSchema.parse(
10134
+ deploymentGetConfigParameters,
10135
+ ),
10136
+ );
9259
10137
  }
9260
10138
 
9261
- export function parametersFromJSON(
10139
+ export function deploymentGetConfigParametersFromJSON(
9262
10140
  jsonString: string,
9263
- ): SafeParseResult<ParametersT, SDKValidationError> {
10141
+ ): SafeParseResult<DeploymentGetConfigParameters, SDKValidationError> {
9264
10142
  return safeParse(
9265
10143
  jsonString,
9266
- (x) => ParametersT$inboundSchema.parse(JSON.parse(x)),
9267
- `Failed to parse 'ParametersT' from JSON`,
10144
+ (x) => DeploymentGetConfigParameters$inboundSchema.parse(JSON.parse(x)),
10145
+ `Failed to parse 'DeploymentGetConfigParameters' from JSON`,
9268
10146
  );
9269
10147
  }
9270
10148
 
@@ -9353,23 +10231,26 @@ export function deploymentGetConfigFunctionFromJSON(
9353
10231
  }
9354
10232
 
9355
10233
  /** @internal */
9356
- export const Tools$inboundSchema: z.ZodType<Tools, z.ZodTypeDef, unknown> = z
9357
- .object({
9358
- type: DeploymentGetConfigDeploymentsType$inboundSchema,
9359
- function: z.lazy(() => DeploymentGetConfigFunction$inboundSchema),
9360
- });
10234
+ export const DeploymentGetConfigTools$inboundSchema: z.ZodType<
10235
+ DeploymentGetConfigTools,
10236
+ z.ZodTypeDef,
10237
+ unknown
10238
+ > = z.object({
10239
+ type: DeploymentGetConfigDeploymentsType$inboundSchema,
10240
+ function: z.lazy(() => DeploymentGetConfigFunction$inboundSchema),
10241
+ });
9361
10242
 
9362
10243
  /** @internal */
9363
- export type Tools$Outbound = {
10244
+ export type DeploymentGetConfigTools$Outbound = {
9364
10245
  type: string;
9365
10246
  function: DeploymentGetConfigFunction$Outbound;
9366
10247
  };
9367
10248
 
9368
10249
  /** @internal */
9369
- export const Tools$outboundSchema: z.ZodType<
9370
- Tools$Outbound,
10250
+ export const DeploymentGetConfigTools$outboundSchema: z.ZodType<
10251
+ DeploymentGetConfigTools$Outbound,
9371
10252
  z.ZodTypeDef,
9372
- Tools
10253
+ DeploymentGetConfigTools
9373
10254
  > = z.object({
9374
10255
  type: DeploymentGetConfigDeploymentsType$outboundSchema,
9375
10256
  function: z.lazy(() => DeploymentGetConfigFunction$outboundSchema),
@@ -9379,26 +10260,30 @@ export const Tools$outboundSchema: z.ZodType<
9379
10260
  * @internal
9380
10261
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
9381
10262
  */
9382
- export namespace Tools$ {
9383
- /** @deprecated use `Tools$inboundSchema` instead. */
9384
- export const inboundSchema = Tools$inboundSchema;
9385
- /** @deprecated use `Tools$outboundSchema` instead. */
9386
- export const outboundSchema = Tools$outboundSchema;
9387
- /** @deprecated use `Tools$Outbound` instead. */
9388
- export type Outbound = Tools$Outbound;
10263
+ export namespace DeploymentGetConfigTools$ {
10264
+ /** @deprecated use `DeploymentGetConfigTools$inboundSchema` instead. */
10265
+ export const inboundSchema = DeploymentGetConfigTools$inboundSchema;
10266
+ /** @deprecated use `DeploymentGetConfigTools$outboundSchema` instead. */
10267
+ export const outboundSchema = DeploymentGetConfigTools$outboundSchema;
10268
+ /** @deprecated use `DeploymentGetConfigTools$Outbound` instead. */
10269
+ export type Outbound = DeploymentGetConfigTools$Outbound;
9389
10270
  }
9390
10271
 
9391
- export function toolsToJSON(tools: Tools): string {
9392
- return JSON.stringify(Tools$outboundSchema.parse(tools));
10272
+ export function deploymentGetConfigToolsToJSON(
10273
+ deploymentGetConfigTools: DeploymentGetConfigTools,
10274
+ ): string {
10275
+ return JSON.stringify(
10276
+ DeploymentGetConfigTools$outboundSchema.parse(deploymentGetConfigTools),
10277
+ );
9393
10278
  }
9394
10279
 
9395
- export function toolsFromJSON(
10280
+ export function deploymentGetConfigToolsFromJSON(
9396
10281
  jsonString: string,
9397
- ): SafeParseResult<Tools, SDKValidationError> {
10282
+ ): SafeParseResult<DeploymentGetConfigTools, SDKValidationError> {
9398
10283
  return safeParse(
9399
10284
  jsonString,
9400
- (x) => Tools$inboundSchema.parse(JSON.parse(x)),
9401
- `Failed to parse 'Tools' from JSON`,
10285
+ (x) => DeploymentGetConfigTools$inboundSchema.parse(JSON.parse(x)),
10286
+ `Failed to parse 'DeploymentGetConfigTools' from JSON`,
9402
10287
  );
9403
10288
  }
9404
10289
 
@@ -9414,8 +10299,9 @@ export const DeploymentGetConfigResponseBody$inboundSchema: z.ZodType<
9414
10299
  type: DeploymentGetConfigType$inboundSchema.optional(),
9415
10300
  version: z.string(),
9416
10301
  messages: z.array(z.lazy(() => DeploymentGetConfigMessages$inboundSchema)),
9417
- parameters: z.lazy(() => ParametersT$inboundSchema),
9418
- tools: z.array(z.lazy(() => Tools$inboundSchema)).optional(),
10302
+ parameters: z.lazy(() => DeploymentGetConfigParameters$inboundSchema),
10303
+ tools: z.array(z.lazy(() => DeploymentGetConfigTools$inboundSchema))
10304
+ .optional(),
9419
10305
  });
9420
10306
 
9421
10307
  /** @internal */
@@ -9426,8 +10312,8 @@ export type DeploymentGetConfigResponseBody$Outbound = {
9426
10312
  type?: string | undefined;
9427
10313
  version: string;
9428
10314
  messages: Array<DeploymentGetConfigMessages$Outbound>;
9429
- parameters: ParametersT$Outbound;
9430
- tools?: Array<Tools$Outbound> | undefined;
10315
+ parameters: DeploymentGetConfigParameters$Outbound;
10316
+ tools?: Array<DeploymentGetConfigTools$Outbound> | undefined;
9431
10317
  };
9432
10318
 
9433
10319
  /** @internal */
@@ -9442,8 +10328,9 @@ export const DeploymentGetConfigResponseBody$outboundSchema: z.ZodType<
9442
10328
  type: DeploymentGetConfigType$outboundSchema.optional(),
9443
10329
  version: z.string(),
9444
10330
  messages: z.array(z.lazy(() => DeploymentGetConfigMessages$outboundSchema)),
9445
- parameters: z.lazy(() => ParametersT$outboundSchema),
9446
- tools: z.array(z.lazy(() => Tools$outboundSchema)).optional(),
10331
+ parameters: z.lazy(() => DeploymentGetConfigParameters$outboundSchema),
10332
+ tools: z.array(z.lazy(() => DeploymentGetConfigTools$outboundSchema))
10333
+ .optional(),
9447
10334
  });
9448
10335
 
9449
10336
  /**