@orq-ai/node 3.6.3 → 3.6.4

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 (226) hide show
  1. package/bin/mcp-server.js +40 -40
  2. package/bin/mcp-server.js.map +21 -21
  3. package/index.d.ts +2 -0
  4. package/index.d.ts.map +1 -1
  5. package/index.js +3 -1
  6. package/index.js.map +1 -1
  7. package/jsr.json +1 -1
  8. package/lib/config.d.ts +3 -3
  9. package/lib/config.js +3 -3
  10. package/mcp-server/mcp-server.js +1 -1
  11. package/mcp-server/server.js +1 -1
  12. package/models/operations/bulkcreatedatapoints.js +2 -2
  13. package/models/operations/createcontact.js +2 -2
  14. package/models/operations/createdataset.js +2 -2
  15. package/models/operations/createdatasetitem.js +2 -2
  16. package/models/operations/createdatasource.js +2 -2
  17. package/models/operations/fileget.js +2 -2
  18. package/models/operations/filelist.js +2 -2
  19. package/models/operations/fileupload.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/retrievedatapoint.js +2 -2
  24. package/models/operations/retrievedataset.js +2 -2
  25. package/models/operations/retrievedatasource.js +2 -2
  26. package/models/operations/updatedatapoint.js +2 -2
  27. package/models/operations/updatedataset.js +2 -2
  28. package/models/operations/updatedatasource.js +2 -2
  29. package/package.json +1 -1
  30. package/packages/orq-rc/README.md +73 -2
  31. package/packages/orq-rc/docs/sdks/datasets/README.md +0 -77
  32. package/packages/orq-rc/docs/sdks/evals/README.md +2661 -0
  33. package/packages/orq-rc/docs/sdks/knowledge/README.md +1 -1
  34. package/packages/orq-rc/jsr.json +1 -1
  35. package/packages/orq-rc/package-lock.json +2 -2
  36. package/packages/orq-rc/package.json +1 -1
  37. package/packages/orq-rc/src/funcs/evalsAgeAppropriate.ts +171 -0
  38. package/packages/orq-rc/src/funcs/evalsBleuScore.ts +171 -0
  39. package/packages/orq-rc/src/funcs/evalsBotDetection.ts +171 -0
  40. package/packages/orq-rc/src/funcs/evalsContains.ts +171 -0
  41. package/packages/orq-rc/src/funcs/evalsContainsAll.ts +171 -0
  42. package/packages/orq-rc/src/funcs/evalsContainsAny.ts +171 -0
  43. package/packages/orq-rc/src/funcs/evalsContainsEmail.ts +171 -0
  44. package/packages/orq-rc/src/funcs/evalsContainsNone.ts +171 -0
  45. package/packages/orq-rc/src/funcs/evalsContainsUrl.ts +171 -0
  46. package/packages/orq-rc/src/funcs/evalsContainsValidLink.ts +173 -0
  47. package/packages/orq-rc/src/funcs/{datasetsCreateDatapoints.ts → evalsCreate.ts} +27 -29
  48. package/packages/orq-rc/src/funcs/evalsEndsWith.ts +171 -0
  49. package/packages/orq-rc/src/funcs/evalsExactMatch.ts +171 -0
  50. package/packages/orq-rc/src/funcs/evalsFactCheckingKnowledgeBase.ts +179 -0
  51. package/packages/orq-rc/src/funcs/evalsGrammar.ts +169 -0
  52. package/packages/orq-rc/src/funcs/evalsLengthBetween.ts +171 -0
  53. package/packages/orq-rc/src/funcs/evalsLengthGreaterThan.ts +173 -0
  54. package/packages/orq-rc/src/funcs/evalsLengthLessThan.ts +171 -0
  55. package/packages/orq-rc/src/funcs/evalsLocalization.ts +171 -0
  56. package/packages/orq-rc/src/funcs/evalsPii.ts +169 -0
  57. package/packages/orq-rc/src/funcs/evalsRagasCoherence.ts +171 -0
  58. package/packages/orq-rc/src/funcs/evalsRagasConciseness.ts +170 -0
  59. package/packages/orq-rc/src/funcs/evalsRagasContextPrecision.ts +176 -0
  60. package/packages/orq-rc/src/funcs/evalsRagasCorrectness.ts +170 -0
  61. package/packages/orq-rc/src/funcs/evalsRagasFaithfulness.ts +173 -0
  62. package/packages/orq-rc/src/funcs/evalsRagasHarmfulness.ts +170 -0
  63. package/packages/orq-rc/src/funcs/evalsRagasMaliciousness.ts +173 -0
  64. package/packages/orq-rc/src/funcs/evalsRagasResponseRelevancy.ts +179 -0
  65. package/packages/orq-rc/src/funcs/evalsRagasSummarization.ts +173 -0
  66. package/packages/orq-rc/src/funcs/evalsRunBertScore.ts +169 -0
  67. package/packages/orq-rc/src/funcs/evalsSentimentClassification.ts +179 -0
  68. package/packages/orq-rc/src/funcs/evalsSummarization.ts +171 -0
  69. package/packages/orq-rc/src/funcs/evalsToneOfVoice.ts +171 -0
  70. package/packages/orq-rc/src/funcs/evalsTranslation.ts +171 -0
  71. package/packages/orq-rc/src/funcs/evalsValidJson.ts +171 -0
  72. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +4 -4
  73. package/packages/orq-rc/src/index.ts +2 -0
  74. package/packages/orq-rc/src/lib/config.ts +3 -3
  75. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  76. package/packages/orq-rc/src/mcp-server/server.ts +71 -3
  77. package/packages/orq-rc/src/mcp-server/tools/evalsAgeAppropriate.ts +35 -0
  78. package/packages/orq-rc/src/mcp-server/tools/evalsBleuScore.ts +35 -0
  79. package/packages/orq-rc/src/mcp-server/tools/evalsBotDetection.ts +35 -0
  80. package/packages/orq-rc/src/mcp-server/tools/{datasetsCreateDatapoints.ts → evalsContains.ts} +6 -8
  81. package/packages/orq-rc/src/mcp-server/tools/evalsContainsAll.ts +35 -0
  82. package/packages/orq-rc/src/mcp-server/tools/evalsContainsAny.ts +35 -0
  83. package/packages/orq-rc/src/mcp-server/tools/evalsContainsEmail.ts +35 -0
  84. package/packages/orq-rc/src/mcp-server/tools/evalsContainsNone.ts +35 -0
  85. package/packages/orq-rc/src/mcp-server/tools/evalsContainsUrl.ts +35 -0
  86. package/packages/orq-rc/src/mcp-server/tools/evalsContainsValidLink.ts +36 -0
  87. package/packages/orq-rc/src/mcp-server/tools/evalsCreate.ts +35 -0
  88. package/packages/orq-rc/src/mcp-server/tools/evalsEndsWith.ts +35 -0
  89. package/packages/orq-rc/src/mcp-server/tools/evalsExactMatch.ts +35 -0
  90. package/packages/orq-rc/src/mcp-server/tools/evalsFactCheckingKnowledgeBase.ts +37 -0
  91. package/packages/orq-rc/src/mcp-server/tools/evalsGrammar.ts +35 -0
  92. package/packages/orq-rc/src/mcp-server/tools/evalsLengthBetween.ts +35 -0
  93. package/packages/orq-rc/src/mcp-server/tools/evalsLengthGreaterThan.ts +36 -0
  94. package/packages/orq-rc/src/mcp-server/tools/evalsLengthLessThan.ts +35 -0
  95. package/packages/orq-rc/src/mcp-server/tools/evalsLocalization.ts +35 -0
  96. package/packages/orq-rc/src/mcp-server/tools/evalsPii.ts +35 -0
  97. package/packages/orq-rc/src/mcp-server/tools/evalsRagasCoherence.ts +35 -0
  98. package/packages/orq-rc/src/mcp-server/tools/evalsRagasConciseness.ts +35 -0
  99. package/packages/orq-rc/src/mcp-server/tools/evalsRagasContextPrecision.ts +36 -0
  100. package/packages/orq-rc/src/mcp-server/tools/evalsRagasCorrectness.ts +35 -0
  101. package/packages/orq-rc/src/mcp-server/tools/evalsRagasFaithfulness.ts +36 -0
  102. package/packages/orq-rc/src/mcp-server/tools/evalsRagasHarmfulness.ts +35 -0
  103. package/packages/orq-rc/src/mcp-server/tools/evalsRagasMaliciousness.ts +36 -0
  104. package/packages/orq-rc/src/mcp-server/tools/evalsRagasResponseRelevancy.ts +36 -0
  105. package/packages/orq-rc/src/mcp-server/tools/evalsRagasSummarization.ts +36 -0
  106. package/packages/orq-rc/src/mcp-server/tools/evalsRunBertScore.ts +35 -0
  107. package/packages/orq-rc/src/mcp-server/tools/evalsSentimentClassification.ts +36 -0
  108. package/packages/orq-rc/src/mcp-server/tools/evalsSummarization.ts +35 -0
  109. package/packages/orq-rc/src/mcp-server/tools/evalsToneOfVoice.ts +35 -0
  110. package/packages/orq-rc/src/mcp-server/tools/evalsTranslation.ts +35 -0
  111. package/packages/orq-rc/src/mcp-server/tools/evalsValidJson.ts +35 -0
  112. package/packages/orq-rc/src/models/errors/createeval.ts +71 -0
  113. package/packages/orq-rc/src/models/errors/evalsageappropriate.ts +139 -0
  114. package/packages/orq-rc/src/models/errors/evalsbleuscore.ts +137 -0
  115. package/packages/orq-rc/src/models/errors/evalsbotdetection.ts +138 -0
  116. package/packages/orq-rc/src/models/errors/evalscontains.ts +137 -0
  117. package/packages/orq-rc/src/models/errors/evalscontainsall.ts +138 -0
  118. package/packages/orq-rc/src/models/errors/evalscontainsany.ts +138 -0
  119. package/packages/orq-rc/src/models/errors/evalscontainsemail.ts +139 -0
  120. package/packages/orq-rc/src/models/errors/evalscontainsnone.ts +138 -0
  121. package/packages/orq-rc/src/models/errors/evalscontainsurl.ts +138 -0
  122. package/packages/orq-rc/src/models/errors/evalscontainsvalidlink.ts +140 -0
  123. package/packages/orq-rc/src/models/errors/evalsendswith.ts +137 -0
  124. package/packages/orq-rc/src/models/errors/evalsexactmatch.ts +137 -0
  125. package/packages/orq-rc/src/models/errors/evalsfactcheckingknowledgebase.ts +143 -0
  126. package/packages/orq-rc/src/models/errors/evalsgrammar.ts +137 -0
  127. package/packages/orq-rc/src/models/errors/evalslengthbetween.ts +139 -0
  128. package/packages/orq-rc/src/models/errors/evalslengthgreaterthan.ts +140 -0
  129. package/packages/orq-rc/src/models/errors/evalslengthlessthan.ts +139 -0
  130. package/packages/orq-rc/src/models/errors/evalslocalization.ts +138 -0
  131. package/packages/orq-rc/src/models/errors/evalspii.ts +137 -0
  132. package/packages/orq-rc/src/models/errors/evalsragascoherence.ts +139 -0
  133. package/packages/orq-rc/src/models/errors/evalsragasconciseness.ts +140 -0
  134. package/packages/orq-rc/src/models/errors/evalsragascontextprecision.ts +143 -0
  135. package/packages/orq-rc/src/models/errors/evalsragascorrectness.ts +140 -0
  136. package/packages/orq-rc/src/models/errors/evalsragasfaithfulness.ts +140 -0
  137. package/packages/orq-rc/src/models/errors/evalsragasharmfulness.ts +140 -0
  138. package/packages/orq-rc/src/models/errors/evalsragasmaliciousness.ts +141 -0
  139. package/packages/orq-rc/src/models/errors/evalsragasresponserelevancy.ts +143 -0
  140. package/packages/orq-rc/src/models/errors/evalsragassummarization.ts +141 -0
  141. package/packages/orq-rc/src/models/errors/evalssentimentclassification.ts +143 -0
  142. package/packages/orq-rc/src/models/errors/evalssummarization.ts +139 -0
  143. package/packages/orq-rc/src/models/errors/evalstoneofvoice.ts +138 -0
  144. package/packages/orq-rc/src/models/errors/evalstranslation.ts +138 -0
  145. package/packages/orq-rc/src/models/errors/evalsvalidjson.ts +137 -0
  146. package/packages/orq-rc/src/models/errors/index.ts +35 -0
  147. package/packages/orq-rc/src/models/errors/runbertscore.ts +137 -0
  148. package/packages/orq-rc/src/models/operations/createchunk.ts +20 -24
  149. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  150. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  151. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4045 -972
  152. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  153. package/packages/orq-rc/src/models/operations/createeval.ts +3830 -0
  154. package/packages/orq-rc/src/models/operations/evalsageappropriate.ts +253 -0
  155. package/packages/orq-rc/src/models/operations/evalsbleuscore.ts +131 -0
  156. package/packages/orq-rc/src/models/operations/evalsbotdetection.ts +249 -0
  157. package/packages/orq-rc/src/models/operations/evalscontains.ts +250 -0
  158. package/packages/orq-rc/src/models/operations/evalscontainsall.ts +248 -0
  159. package/packages/orq-rc/src/models/operations/evalscontainsany.ts +254 -0
  160. package/packages/orq-rc/src/models/operations/evalscontainsemail.ts +181 -0
  161. package/packages/orq-rc/src/models/operations/evalscontainsnone.ts +254 -0
  162. package/packages/orq-rc/src/models/operations/evalscontainsurl.ts +181 -0
  163. package/packages/orq-rc/src/models/operations/evalscontainsvalidlink.ts +186 -0
  164. package/packages/orq-rc/src/models/operations/evalsendswith.ts +250 -0
  165. package/packages/orq-rc/src/models/operations/evalsexactmatch.ts +183 -0
  166. package/packages/orq-rc/src/models/operations/evalsfactcheckingknowledgebase.ts +299 -0
  167. package/packages/orq-rc/src/models/operations/evalsgrammar.ts +243 -0
  168. package/packages/orq-rc/src/models/operations/evalslengthbetween.ts +268 -0
  169. package/packages/orq-rc/src/models/operations/evalslengthgreaterthan.ts +266 -0
  170. package/packages/orq-rc/src/models/operations/evalslengthlessthan.ts +259 -0
  171. package/packages/orq-rc/src/models/operations/evalslocalization.ts +253 -0
  172. package/packages/orq-rc/src/models/operations/evalspii.ts +243 -0
  173. package/packages/orq-rc/src/models/operations/evalsragascoherence.ts +152 -0
  174. package/packages/orq-rc/src/models/operations/evalsragasconciseness.ts +153 -0
  175. package/packages/orq-rc/src/models/operations/evalsragascontextprecision.ts +166 -0
  176. package/packages/orq-rc/src/models/operations/evalsragascorrectness.ts +153 -0
  177. package/packages/orq-rc/src/models/operations/evalsragasfaithfulness.ts +155 -0
  178. package/packages/orq-rc/src/models/operations/evalsragasharmfulness.ts +146 -0
  179. package/packages/orq-rc/src/models/operations/evalsragasmaliciousness.ts +157 -0
  180. package/packages/orq-rc/src/models/operations/evalsragasresponserelevancy.ts +165 -0
  181. package/packages/orq-rc/src/models/operations/evalsragassummarization.ts +150 -0
  182. package/packages/orq-rc/src/models/operations/evalssentimentclassification.ts +285 -0
  183. package/packages/orq-rc/src/models/operations/evalssummarization.ts +253 -0
  184. package/packages/orq-rc/src/models/operations/evalstoneofvoice.ts +251 -0
  185. package/packages/orq-rc/src/models/operations/evalstranslation.ts +251 -0
  186. package/packages/orq-rc/src/models/operations/evalsvalidjson.ts +177 -0
  187. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  188. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  189. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  190. package/packages/orq-rc/src/models/operations/index.ts +35 -1
  191. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +1805 -301
  192. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  193. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  194. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +1737 -277
  195. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  196. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  197. package/packages/orq-rc/src/models/operations/runbertscore.ts +197 -0
  198. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +3990 -976
  199. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  200. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  201. package/packages/orq-rc/src/sdk/datasets.ts +0 -18
  202. package/packages/orq-rc/src/sdk/evals.ts +534 -0
  203. package/packages/orq-rc/src/sdk/knowledge.ts +1 -1
  204. package/packages/orq-rc/src/sdk/sdk.ts +6 -0
  205. package/src/index.ts +2 -0
  206. package/src/lib/config.ts +3 -3
  207. package/src/mcp-server/mcp-server.ts +1 -1
  208. package/src/mcp-server/server.ts +1 -1
  209. package/src/models/operations/bulkcreatedatapoints.ts +2 -2
  210. package/src/models/operations/createcontact.ts +2 -2
  211. package/src/models/operations/createdataset.ts +2 -2
  212. package/src/models/operations/createdatasetitem.ts +2 -2
  213. package/src/models/operations/createdatasource.ts +2 -2
  214. package/src/models/operations/fileget.ts +2 -2
  215. package/src/models/operations/filelist.ts +2 -2
  216. package/src/models/operations/fileupload.ts +2 -2
  217. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  218. package/src/models/operations/listdatasets.ts +2 -2
  219. package/src/models/operations/listdatasources.ts +2 -2
  220. package/src/models/operations/retrievedatapoint.ts +2 -2
  221. package/src/models/operations/retrievedataset.ts +2 -2
  222. package/src/models/operations/retrievedatasource.ts +2 -2
  223. package/src/models/operations/updatedatapoint.ts +2 -2
  224. package/src/models/operations/updatedataset.ts +2 -2
  225. package/src/models/operations/updatedatasource.ts +2 -2
  226. package/packages/orq-rc/src/models/operations/bulkcreatedatapoints.ts +0 -2232
@@ -0,0 +1,138 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ /**
8
+ * Internal server error
9
+ */
10
+ export type EvalsContainsUrlEvalsResponseBodyData = {
11
+ message: string;
12
+ };
13
+
14
+ /**
15
+ * Internal server error
16
+ */
17
+ export class EvalsContainsUrlEvalsResponseBody extends Error {
18
+ /** The original data that was passed to this error instance. */
19
+ data$: EvalsContainsUrlEvalsResponseBodyData;
20
+
21
+ constructor(err: EvalsContainsUrlEvalsResponseBodyData) {
22
+ const message = "message" in err && typeof err.message === "string"
23
+ ? err.message
24
+ : `API error occurred: ${JSON.stringify(err)}`;
25
+ super(message);
26
+ this.data$ = err;
27
+
28
+ this.name = "EvalsContainsUrlEvalsResponseBody";
29
+ }
30
+ }
31
+
32
+ /**
33
+ * Evaluator not found
34
+ */
35
+ export type EvalsContainsUrlResponseBodyData = {
36
+ message: string;
37
+ };
38
+
39
+ /**
40
+ * Evaluator not found
41
+ */
42
+ export class EvalsContainsUrlResponseBody extends Error {
43
+ /** The original data that was passed to this error instance. */
44
+ data$: EvalsContainsUrlResponseBodyData;
45
+
46
+ constructor(err: EvalsContainsUrlResponseBodyData) {
47
+ const message = "message" in err && typeof err.message === "string"
48
+ ? err.message
49
+ : `API error occurred: ${JSON.stringify(err)}`;
50
+ super(message);
51
+ this.data$ = err;
52
+
53
+ this.name = "EvalsContainsUrlResponseBody";
54
+ }
55
+ }
56
+
57
+ /** @internal */
58
+ export const EvalsContainsUrlEvalsResponseBody$inboundSchema: z.ZodType<
59
+ EvalsContainsUrlEvalsResponseBody,
60
+ z.ZodTypeDef,
61
+ unknown
62
+ > = z.object({
63
+ message: z.string(),
64
+ })
65
+ .transform((v) => {
66
+ return new EvalsContainsUrlEvalsResponseBody(v);
67
+ });
68
+
69
+ /** @internal */
70
+ export type EvalsContainsUrlEvalsResponseBody$Outbound = {
71
+ message: string;
72
+ };
73
+
74
+ /** @internal */
75
+ export const EvalsContainsUrlEvalsResponseBody$outboundSchema: z.ZodType<
76
+ EvalsContainsUrlEvalsResponseBody$Outbound,
77
+ z.ZodTypeDef,
78
+ EvalsContainsUrlEvalsResponseBody
79
+ > = z.instanceof(EvalsContainsUrlEvalsResponseBody)
80
+ .transform(v => v.data$)
81
+ .pipe(z.object({
82
+ message: z.string(),
83
+ }));
84
+
85
+ /**
86
+ * @internal
87
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
88
+ */
89
+ export namespace EvalsContainsUrlEvalsResponseBody$ {
90
+ /** @deprecated use `EvalsContainsUrlEvalsResponseBody$inboundSchema` instead. */
91
+ export const inboundSchema = EvalsContainsUrlEvalsResponseBody$inboundSchema;
92
+ /** @deprecated use `EvalsContainsUrlEvalsResponseBody$outboundSchema` instead. */
93
+ export const outboundSchema =
94
+ EvalsContainsUrlEvalsResponseBody$outboundSchema;
95
+ /** @deprecated use `EvalsContainsUrlEvalsResponseBody$Outbound` instead. */
96
+ export type Outbound = EvalsContainsUrlEvalsResponseBody$Outbound;
97
+ }
98
+
99
+ /** @internal */
100
+ export const EvalsContainsUrlResponseBody$inboundSchema: z.ZodType<
101
+ EvalsContainsUrlResponseBody,
102
+ z.ZodTypeDef,
103
+ unknown
104
+ > = z.object({
105
+ message: z.string(),
106
+ })
107
+ .transform((v) => {
108
+ return new EvalsContainsUrlResponseBody(v);
109
+ });
110
+
111
+ /** @internal */
112
+ export type EvalsContainsUrlResponseBody$Outbound = {
113
+ message: string;
114
+ };
115
+
116
+ /** @internal */
117
+ export const EvalsContainsUrlResponseBody$outboundSchema: z.ZodType<
118
+ EvalsContainsUrlResponseBody$Outbound,
119
+ z.ZodTypeDef,
120
+ EvalsContainsUrlResponseBody
121
+ > = z.instanceof(EvalsContainsUrlResponseBody)
122
+ .transform(v => v.data$)
123
+ .pipe(z.object({
124
+ message: z.string(),
125
+ }));
126
+
127
+ /**
128
+ * @internal
129
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
130
+ */
131
+ export namespace EvalsContainsUrlResponseBody$ {
132
+ /** @deprecated use `EvalsContainsUrlResponseBody$inboundSchema` instead. */
133
+ export const inboundSchema = EvalsContainsUrlResponseBody$inboundSchema;
134
+ /** @deprecated use `EvalsContainsUrlResponseBody$outboundSchema` instead. */
135
+ export const outboundSchema = EvalsContainsUrlResponseBody$outboundSchema;
136
+ /** @deprecated use `EvalsContainsUrlResponseBody$Outbound` instead. */
137
+ export type Outbound = EvalsContainsUrlResponseBody$Outbound;
138
+ }
@@ -0,0 +1,140 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ /**
8
+ * Internal server error
9
+ */
10
+ export type EvalsContainsValidLinkEvalsResponseBodyData = {
11
+ message: string;
12
+ };
13
+
14
+ /**
15
+ * Internal server error
16
+ */
17
+ export class EvalsContainsValidLinkEvalsResponseBody extends Error {
18
+ /** The original data that was passed to this error instance. */
19
+ data$: EvalsContainsValidLinkEvalsResponseBodyData;
20
+
21
+ constructor(err: EvalsContainsValidLinkEvalsResponseBodyData) {
22
+ const message = "message" in err && typeof err.message === "string"
23
+ ? err.message
24
+ : `API error occurred: ${JSON.stringify(err)}`;
25
+ super(message);
26
+ this.data$ = err;
27
+
28
+ this.name = "EvalsContainsValidLinkEvalsResponseBody";
29
+ }
30
+ }
31
+
32
+ /**
33
+ * Evaluator not found
34
+ */
35
+ export type EvalsContainsValidLinkResponseBodyData = {
36
+ message: string;
37
+ };
38
+
39
+ /**
40
+ * Evaluator not found
41
+ */
42
+ export class EvalsContainsValidLinkResponseBody extends Error {
43
+ /** The original data that was passed to this error instance. */
44
+ data$: EvalsContainsValidLinkResponseBodyData;
45
+
46
+ constructor(err: EvalsContainsValidLinkResponseBodyData) {
47
+ const message = "message" in err && typeof err.message === "string"
48
+ ? err.message
49
+ : `API error occurred: ${JSON.stringify(err)}`;
50
+ super(message);
51
+ this.data$ = err;
52
+
53
+ this.name = "EvalsContainsValidLinkResponseBody";
54
+ }
55
+ }
56
+
57
+ /** @internal */
58
+ export const EvalsContainsValidLinkEvalsResponseBody$inboundSchema: z.ZodType<
59
+ EvalsContainsValidLinkEvalsResponseBody,
60
+ z.ZodTypeDef,
61
+ unknown
62
+ > = z.object({
63
+ message: z.string(),
64
+ })
65
+ .transform((v) => {
66
+ return new EvalsContainsValidLinkEvalsResponseBody(v);
67
+ });
68
+
69
+ /** @internal */
70
+ export type EvalsContainsValidLinkEvalsResponseBody$Outbound = {
71
+ message: string;
72
+ };
73
+
74
+ /** @internal */
75
+ export const EvalsContainsValidLinkEvalsResponseBody$outboundSchema: z.ZodType<
76
+ EvalsContainsValidLinkEvalsResponseBody$Outbound,
77
+ z.ZodTypeDef,
78
+ EvalsContainsValidLinkEvalsResponseBody
79
+ > = z.instanceof(EvalsContainsValidLinkEvalsResponseBody)
80
+ .transform(v => v.data$)
81
+ .pipe(z.object({
82
+ message: z.string(),
83
+ }));
84
+
85
+ /**
86
+ * @internal
87
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
88
+ */
89
+ export namespace EvalsContainsValidLinkEvalsResponseBody$ {
90
+ /** @deprecated use `EvalsContainsValidLinkEvalsResponseBody$inboundSchema` instead. */
91
+ export const inboundSchema =
92
+ EvalsContainsValidLinkEvalsResponseBody$inboundSchema;
93
+ /** @deprecated use `EvalsContainsValidLinkEvalsResponseBody$outboundSchema` instead. */
94
+ export const outboundSchema =
95
+ EvalsContainsValidLinkEvalsResponseBody$outboundSchema;
96
+ /** @deprecated use `EvalsContainsValidLinkEvalsResponseBody$Outbound` instead. */
97
+ export type Outbound = EvalsContainsValidLinkEvalsResponseBody$Outbound;
98
+ }
99
+
100
+ /** @internal */
101
+ export const EvalsContainsValidLinkResponseBody$inboundSchema: z.ZodType<
102
+ EvalsContainsValidLinkResponseBody,
103
+ z.ZodTypeDef,
104
+ unknown
105
+ > = z.object({
106
+ message: z.string(),
107
+ })
108
+ .transform((v) => {
109
+ return new EvalsContainsValidLinkResponseBody(v);
110
+ });
111
+
112
+ /** @internal */
113
+ export type EvalsContainsValidLinkResponseBody$Outbound = {
114
+ message: string;
115
+ };
116
+
117
+ /** @internal */
118
+ export const EvalsContainsValidLinkResponseBody$outboundSchema: z.ZodType<
119
+ EvalsContainsValidLinkResponseBody$Outbound,
120
+ z.ZodTypeDef,
121
+ EvalsContainsValidLinkResponseBody
122
+ > = z.instanceof(EvalsContainsValidLinkResponseBody)
123
+ .transform(v => v.data$)
124
+ .pipe(z.object({
125
+ message: z.string(),
126
+ }));
127
+
128
+ /**
129
+ * @internal
130
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
131
+ */
132
+ export namespace EvalsContainsValidLinkResponseBody$ {
133
+ /** @deprecated use `EvalsContainsValidLinkResponseBody$inboundSchema` instead. */
134
+ export const inboundSchema = EvalsContainsValidLinkResponseBody$inboundSchema;
135
+ /** @deprecated use `EvalsContainsValidLinkResponseBody$outboundSchema` instead. */
136
+ export const outboundSchema =
137
+ EvalsContainsValidLinkResponseBody$outboundSchema;
138
+ /** @deprecated use `EvalsContainsValidLinkResponseBody$Outbound` instead. */
139
+ export type Outbound = EvalsContainsValidLinkResponseBody$Outbound;
140
+ }
@@ -0,0 +1,137 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ /**
8
+ * Internal server error
9
+ */
10
+ export type EvalsEndsWithEvalsResponseBodyData = {
11
+ message: string;
12
+ };
13
+
14
+ /**
15
+ * Internal server error
16
+ */
17
+ export class EvalsEndsWithEvalsResponseBody extends Error {
18
+ /** The original data that was passed to this error instance. */
19
+ data$: EvalsEndsWithEvalsResponseBodyData;
20
+
21
+ constructor(err: EvalsEndsWithEvalsResponseBodyData) {
22
+ const message = "message" in err && typeof err.message === "string"
23
+ ? err.message
24
+ : `API error occurred: ${JSON.stringify(err)}`;
25
+ super(message);
26
+ this.data$ = err;
27
+
28
+ this.name = "EvalsEndsWithEvalsResponseBody";
29
+ }
30
+ }
31
+
32
+ /**
33
+ * Evaluator not found
34
+ */
35
+ export type EvalsEndsWithResponseBodyData = {
36
+ message: string;
37
+ };
38
+
39
+ /**
40
+ * Evaluator not found
41
+ */
42
+ export class EvalsEndsWithResponseBody extends Error {
43
+ /** The original data that was passed to this error instance. */
44
+ data$: EvalsEndsWithResponseBodyData;
45
+
46
+ constructor(err: EvalsEndsWithResponseBodyData) {
47
+ const message = "message" in err && typeof err.message === "string"
48
+ ? err.message
49
+ : `API error occurred: ${JSON.stringify(err)}`;
50
+ super(message);
51
+ this.data$ = err;
52
+
53
+ this.name = "EvalsEndsWithResponseBody";
54
+ }
55
+ }
56
+
57
+ /** @internal */
58
+ export const EvalsEndsWithEvalsResponseBody$inboundSchema: z.ZodType<
59
+ EvalsEndsWithEvalsResponseBody,
60
+ z.ZodTypeDef,
61
+ unknown
62
+ > = z.object({
63
+ message: z.string(),
64
+ })
65
+ .transform((v) => {
66
+ return new EvalsEndsWithEvalsResponseBody(v);
67
+ });
68
+
69
+ /** @internal */
70
+ export type EvalsEndsWithEvalsResponseBody$Outbound = {
71
+ message: string;
72
+ };
73
+
74
+ /** @internal */
75
+ export const EvalsEndsWithEvalsResponseBody$outboundSchema: z.ZodType<
76
+ EvalsEndsWithEvalsResponseBody$Outbound,
77
+ z.ZodTypeDef,
78
+ EvalsEndsWithEvalsResponseBody
79
+ > = z.instanceof(EvalsEndsWithEvalsResponseBody)
80
+ .transform(v => v.data$)
81
+ .pipe(z.object({
82
+ message: z.string(),
83
+ }));
84
+
85
+ /**
86
+ * @internal
87
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
88
+ */
89
+ export namespace EvalsEndsWithEvalsResponseBody$ {
90
+ /** @deprecated use `EvalsEndsWithEvalsResponseBody$inboundSchema` instead. */
91
+ export const inboundSchema = EvalsEndsWithEvalsResponseBody$inboundSchema;
92
+ /** @deprecated use `EvalsEndsWithEvalsResponseBody$outboundSchema` instead. */
93
+ export const outboundSchema = EvalsEndsWithEvalsResponseBody$outboundSchema;
94
+ /** @deprecated use `EvalsEndsWithEvalsResponseBody$Outbound` instead. */
95
+ export type Outbound = EvalsEndsWithEvalsResponseBody$Outbound;
96
+ }
97
+
98
+ /** @internal */
99
+ export const EvalsEndsWithResponseBody$inboundSchema: z.ZodType<
100
+ EvalsEndsWithResponseBody,
101
+ z.ZodTypeDef,
102
+ unknown
103
+ > = z.object({
104
+ message: z.string(),
105
+ })
106
+ .transform((v) => {
107
+ return new EvalsEndsWithResponseBody(v);
108
+ });
109
+
110
+ /** @internal */
111
+ export type EvalsEndsWithResponseBody$Outbound = {
112
+ message: string;
113
+ };
114
+
115
+ /** @internal */
116
+ export const EvalsEndsWithResponseBody$outboundSchema: z.ZodType<
117
+ EvalsEndsWithResponseBody$Outbound,
118
+ z.ZodTypeDef,
119
+ EvalsEndsWithResponseBody
120
+ > = z.instanceof(EvalsEndsWithResponseBody)
121
+ .transform(v => v.data$)
122
+ .pipe(z.object({
123
+ message: z.string(),
124
+ }));
125
+
126
+ /**
127
+ * @internal
128
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
129
+ */
130
+ export namespace EvalsEndsWithResponseBody$ {
131
+ /** @deprecated use `EvalsEndsWithResponseBody$inboundSchema` instead. */
132
+ export const inboundSchema = EvalsEndsWithResponseBody$inboundSchema;
133
+ /** @deprecated use `EvalsEndsWithResponseBody$outboundSchema` instead. */
134
+ export const outboundSchema = EvalsEndsWithResponseBody$outboundSchema;
135
+ /** @deprecated use `EvalsEndsWithResponseBody$Outbound` instead. */
136
+ export type Outbound = EvalsEndsWithResponseBody$Outbound;
137
+ }
@@ -0,0 +1,137 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ /**
8
+ * Internal server error
9
+ */
10
+ export type EvalsExactMatchEvalsResponseBodyData = {
11
+ message: string;
12
+ };
13
+
14
+ /**
15
+ * Internal server error
16
+ */
17
+ export class EvalsExactMatchEvalsResponseBody extends Error {
18
+ /** The original data that was passed to this error instance. */
19
+ data$: EvalsExactMatchEvalsResponseBodyData;
20
+
21
+ constructor(err: EvalsExactMatchEvalsResponseBodyData) {
22
+ const message = "message" in err && typeof err.message === "string"
23
+ ? err.message
24
+ : `API error occurred: ${JSON.stringify(err)}`;
25
+ super(message);
26
+ this.data$ = err;
27
+
28
+ this.name = "EvalsExactMatchEvalsResponseBody";
29
+ }
30
+ }
31
+
32
+ /**
33
+ * Evaluator not found
34
+ */
35
+ export type EvalsExactMatchResponseBodyData = {
36
+ message: string;
37
+ };
38
+
39
+ /**
40
+ * Evaluator not found
41
+ */
42
+ export class EvalsExactMatchResponseBody extends Error {
43
+ /** The original data that was passed to this error instance. */
44
+ data$: EvalsExactMatchResponseBodyData;
45
+
46
+ constructor(err: EvalsExactMatchResponseBodyData) {
47
+ const message = "message" in err && typeof err.message === "string"
48
+ ? err.message
49
+ : `API error occurred: ${JSON.stringify(err)}`;
50
+ super(message);
51
+ this.data$ = err;
52
+
53
+ this.name = "EvalsExactMatchResponseBody";
54
+ }
55
+ }
56
+
57
+ /** @internal */
58
+ export const EvalsExactMatchEvalsResponseBody$inboundSchema: z.ZodType<
59
+ EvalsExactMatchEvalsResponseBody,
60
+ z.ZodTypeDef,
61
+ unknown
62
+ > = z.object({
63
+ message: z.string(),
64
+ })
65
+ .transform((v) => {
66
+ return new EvalsExactMatchEvalsResponseBody(v);
67
+ });
68
+
69
+ /** @internal */
70
+ export type EvalsExactMatchEvalsResponseBody$Outbound = {
71
+ message: string;
72
+ };
73
+
74
+ /** @internal */
75
+ export const EvalsExactMatchEvalsResponseBody$outboundSchema: z.ZodType<
76
+ EvalsExactMatchEvalsResponseBody$Outbound,
77
+ z.ZodTypeDef,
78
+ EvalsExactMatchEvalsResponseBody
79
+ > = z.instanceof(EvalsExactMatchEvalsResponseBody)
80
+ .transform(v => v.data$)
81
+ .pipe(z.object({
82
+ message: z.string(),
83
+ }));
84
+
85
+ /**
86
+ * @internal
87
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
88
+ */
89
+ export namespace EvalsExactMatchEvalsResponseBody$ {
90
+ /** @deprecated use `EvalsExactMatchEvalsResponseBody$inboundSchema` instead. */
91
+ export const inboundSchema = EvalsExactMatchEvalsResponseBody$inboundSchema;
92
+ /** @deprecated use `EvalsExactMatchEvalsResponseBody$outboundSchema` instead. */
93
+ export const outboundSchema = EvalsExactMatchEvalsResponseBody$outboundSchema;
94
+ /** @deprecated use `EvalsExactMatchEvalsResponseBody$Outbound` instead. */
95
+ export type Outbound = EvalsExactMatchEvalsResponseBody$Outbound;
96
+ }
97
+
98
+ /** @internal */
99
+ export const EvalsExactMatchResponseBody$inboundSchema: z.ZodType<
100
+ EvalsExactMatchResponseBody,
101
+ z.ZodTypeDef,
102
+ unknown
103
+ > = z.object({
104
+ message: z.string(),
105
+ })
106
+ .transform((v) => {
107
+ return new EvalsExactMatchResponseBody(v);
108
+ });
109
+
110
+ /** @internal */
111
+ export type EvalsExactMatchResponseBody$Outbound = {
112
+ message: string;
113
+ };
114
+
115
+ /** @internal */
116
+ export const EvalsExactMatchResponseBody$outboundSchema: z.ZodType<
117
+ EvalsExactMatchResponseBody$Outbound,
118
+ z.ZodTypeDef,
119
+ EvalsExactMatchResponseBody
120
+ > = z.instanceof(EvalsExactMatchResponseBody)
121
+ .transform(v => v.data$)
122
+ .pipe(z.object({
123
+ message: z.string(),
124
+ }));
125
+
126
+ /**
127
+ * @internal
128
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
129
+ */
130
+ export namespace EvalsExactMatchResponseBody$ {
131
+ /** @deprecated use `EvalsExactMatchResponseBody$inboundSchema` instead. */
132
+ export const inboundSchema = EvalsExactMatchResponseBody$inboundSchema;
133
+ /** @deprecated use `EvalsExactMatchResponseBody$outboundSchema` instead. */
134
+ export const outboundSchema = EvalsExactMatchResponseBody$outboundSchema;
135
+ /** @deprecated use `EvalsExactMatchResponseBody$Outbound` instead. */
136
+ export type Outbound = EvalsExactMatchResponseBody$Outbound;
137
+ }
@@ -0,0 +1,143 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ /**
8
+ * Internal server error
9
+ */
10
+ export type EvalsFactCheckingKnowledgeBaseEvalsResponseBodyData = {
11
+ message: string;
12
+ };
13
+
14
+ /**
15
+ * Internal server error
16
+ */
17
+ export class EvalsFactCheckingKnowledgeBaseEvalsResponseBody extends Error {
18
+ /** The original data that was passed to this error instance. */
19
+ data$: EvalsFactCheckingKnowledgeBaseEvalsResponseBodyData;
20
+
21
+ constructor(err: EvalsFactCheckingKnowledgeBaseEvalsResponseBodyData) {
22
+ const message = "message" in err && typeof err.message === "string"
23
+ ? err.message
24
+ : `API error occurred: ${JSON.stringify(err)}`;
25
+ super(message);
26
+ this.data$ = err;
27
+
28
+ this.name = "EvalsFactCheckingKnowledgeBaseEvalsResponseBody";
29
+ }
30
+ }
31
+
32
+ /**
33
+ * Evaluator not found
34
+ */
35
+ export type EvalsFactCheckingKnowledgeBaseResponseBodyData = {
36
+ message: string;
37
+ };
38
+
39
+ /**
40
+ * Evaluator not found
41
+ */
42
+ export class EvalsFactCheckingKnowledgeBaseResponseBody extends Error {
43
+ /** The original data that was passed to this error instance. */
44
+ data$: EvalsFactCheckingKnowledgeBaseResponseBodyData;
45
+
46
+ constructor(err: EvalsFactCheckingKnowledgeBaseResponseBodyData) {
47
+ const message = "message" in err && typeof err.message === "string"
48
+ ? err.message
49
+ : `API error occurred: ${JSON.stringify(err)}`;
50
+ super(message);
51
+ this.data$ = err;
52
+
53
+ this.name = "EvalsFactCheckingKnowledgeBaseResponseBody";
54
+ }
55
+ }
56
+
57
+ /** @internal */
58
+ export const EvalsFactCheckingKnowledgeBaseEvalsResponseBody$inboundSchema:
59
+ z.ZodType<
60
+ EvalsFactCheckingKnowledgeBaseEvalsResponseBody,
61
+ z.ZodTypeDef,
62
+ unknown
63
+ > = z.object({
64
+ message: z.string(),
65
+ })
66
+ .transform((v) => {
67
+ return new EvalsFactCheckingKnowledgeBaseEvalsResponseBody(v);
68
+ });
69
+
70
+ /** @internal */
71
+ export type EvalsFactCheckingKnowledgeBaseEvalsResponseBody$Outbound = {
72
+ message: string;
73
+ };
74
+
75
+ /** @internal */
76
+ export const EvalsFactCheckingKnowledgeBaseEvalsResponseBody$outboundSchema:
77
+ z.ZodType<
78
+ EvalsFactCheckingKnowledgeBaseEvalsResponseBody$Outbound,
79
+ z.ZodTypeDef,
80
+ EvalsFactCheckingKnowledgeBaseEvalsResponseBody
81
+ > = z.instanceof(EvalsFactCheckingKnowledgeBaseEvalsResponseBody)
82
+ .transform(v => v.data$)
83
+ .pipe(z.object({
84
+ message: z.string(),
85
+ }));
86
+
87
+ /**
88
+ * @internal
89
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
90
+ */
91
+ export namespace EvalsFactCheckingKnowledgeBaseEvalsResponseBody$ {
92
+ /** @deprecated use `EvalsFactCheckingKnowledgeBaseEvalsResponseBody$inboundSchema` instead. */
93
+ export const inboundSchema =
94
+ EvalsFactCheckingKnowledgeBaseEvalsResponseBody$inboundSchema;
95
+ /** @deprecated use `EvalsFactCheckingKnowledgeBaseEvalsResponseBody$outboundSchema` instead. */
96
+ export const outboundSchema =
97
+ EvalsFactCheckingKnowledgeBaseEvalsResponseBody$outboundSchema;
98
+ /** @deprecated use `EvalsFactCheckingKnowledgeBaseEvalsResponseBody$Outbound` instead. */
99
+ export type Outbound =
100
+ EvalsFactCheckingKnowledgeBaseEvalsResponseBody$Outbound;
101
+ }
102
+
103
+ /** @internal */
104
+ export const EvalsFactCheckingKnowledgeBaseResponseBody$inboundSchema:
105
+ z.ZodType<EvalsFactCheckingKnowledgeBaseResponseBody, z.ZodTypeDef, unknown> =
106
+ z.object({
107
+ message: z.string(),
108
+ })
109
+ .transform((v) => {
110
+ return new EvalsFactCheckingKnowledgeBaseResponseBody(v);
111
+ });
112
+
113
+ /** @internal */
114
+ export type EvalsFactCheckingKnowledgeBaseResponseBody$Outbound = {
115
+ message: string;
116
+ };
117
+
118
+ /** @internal */
119
+ export const EvalsFactCheckingKnowledgeBaseResponseBody$outboundSchema:
120
+ z.ZodType<
121
+ EvalsFactCheckingKnowledgeBaseResponseBody$Outbound,
122
+ z.ZodTypeDef,
123
+ EvalsFactCheckingKnowledgeBaseResponseBody
124
+ > = z.instanceof(EvalsFactCheckingKnowledgeBaseResponseBody)
125
+ .transform(v => v.data$)
126
+ .pipe(z.object({
127
+ message: z.string(),
128
+ }));
129
+
130
+ /**
131
+ * @internal
132
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
133
+ */
134
+ export namespace EvalsFactCheckingKnowledgeBaseResponseBody$ {
135
+ /** @deprecated use `EvalsFactCheckingKnowledgeBaseResponseBody$inboundSchema` instead. */
136
+ export const inboundSchema =
137
+ EvalsFactCheckingKnowledgeBaseResponseBody$inboundSchema;
138
+ /** @deprecated use `EvalsFactCheckingKnowledgeBaseResponseBody$outboundSchema` instead. */
139
+ export const outboundSchema =
140
+ EvalsFactCheckingKnowledgeBaseResponseBody$outboundSchema;
141
+ /** @deprecated use `EvalsFactCheckingKnowledgeBaseResponseBody$Outbound` instead. */
142
+ export type Outbound = EvalsFactCheckingKnowledgeBaseResponseBody$Outbound;
143
+ }