@orq-ai/node 4.15.0-rc.2 → 4.15.0-rc.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 (170) hide show
  1. package/README.md +73 -74
  2. package/jsr.json +1 -1
  3. package/lib/config.d.ts +2 -2
  4. package/lib/config.js +2 -2
  5. package/models/components/agentresponserequest.d.ts +14 -14
  6. package/models/components/agentresponserequest.d.ts.map +1 -1
  7. package/models/components/agentresponserequest.js +14 -15
  8. package/models/components/agentresponserequest.js.map +1 -1
  9. package/models/components/agentthoughtstreamingevent.d.ts +12 -12
  10. package/models/components/agentthoughtstreamingevent.d.ts.map +1 -1
  11. package/models/components/agentthoughtstreamingevent.js +17 -17
  12. package/models/components/agentthoughtstreamingevent.js.map +1 -1
  13. package/models/components/evaluationcontext.d.ts +6 -6
  14. package/models/components/evaluationcontext.d.ts.map +1 -1
  15. package/models/components/evaluationcontext.js +6 -7
  16. package/models/components/evaluationcontext.js.map +1 -1
  17. package/models/components/evaluatorresponsefunction.js +2 -2
  18. package/models/components/evaluatorresponsehttp.js +2 -2
  19. package/models/components/evaluatorresponsejsonschema.js +2 -2
  20. package/models/components/evaluatorresponsellm.js +2 -2
  21. package/models/components/evaluatorresponsepython.js +2 -2
  22. package/models/components/evaluatorresponseragas.js +2 -2
  23. package/models/components/evaluatorresponsetypescript.js +2 -2
  24. package/models/components/index.d.ts +0 -1
  25. package/models/components/index.d.ts.map +1 -1
  26. package/models/components/index.js +0 -1
  27. package/models/components/index.js.map +1 -1
  28. package/models/components/reasoningpart.js +1 -1
  29. package/models/components/searchknowledgerequest.d.ts +174 -174
  30. package/models/components/searchknowledgerequest.d.ts.map +1 -1
  31. package/models/components/searchknowledgerequest.js +217 -207
  32. package/models/components/searchknowledgerequest.js.map +1 -1
  33. package/models/operations/createannotationqueue.js +1 -1
  34. package/models/operations/createchatcompletion.d.ts +58 -58
  35. package/models/operations/createchatcompletion.d.ts.map +1 -1
  36. package/models/operations/createchatcompletion.js +80 -81
  37. package/models/operations/createchatcompletion.js.map +1 -1
  38. package/models/operations/createdataset.js +1 -1
  39. package/models/operations/createdatasetitem.js +5 -5
  40. package/models/operations/createprompt.d.ts +5 -4
  41. package/models/operations/createprompt.d.ts.map +1 -1
  42. package/models/operations/createprompt.js +7 -5
  43. package/models/operations/createprompt.js.map +1 -1
  44. package/models/operations/createtool.js +4 -4
  45. package/models/operations/deployments.d.ts +1 -0
  46. package/models/operations/deployments.d.ts.map +1 -1
  47. package/models/operations/deployments.js +1 -0
  48. package/models/operations/deployments.js.map +1 -1
  49. package/models/operations/getallprompts.d.ts +1 -0
  50. package/models/operations/getallprompts.d.ts.map +1 -1
  51. package/models/operations/getallprompts.js +1 -0
  52. package/models/operations/getallprompts.js.map +1 -1
  53. package/models/operations/getalltools.js +4 -4
  54. package/models/operations/geteval.js +16 -16
  55. package/models/operations/getoneprompt.d.ts +1 -0
  56. package/models/operations/getoneprompt.d.ts.map +1 -1
  57. package/models/operations/getoneprompt.js +1 -0
  58. package/models/operations/getoneprompt.js.map +1 -1
  59. package/models/operations/getpromptversion.d.ts +1 -0
  60. package/models/operations/getpromptversion.d.ts.map +1 -1
  61. package/models/operations/getpromptversion.js +1 -0
  62. package/models/operations/getpromptversion.js.map +1 -1
  63. package/models/operations/getv2humanevalsets.js +2 -2
  64. package/models/operations/getv2humanevalsetsid.js +2 -2
  65. package/models/operations/index.d.ts +0 -2
  66. package/models/operations/index.d.ts.map +1 -1
  67. package/models/operations/index.js +0 -2
  68. package/models/operations/index.js.map +1 -1
  69. package/models/operations/listannotationqueues.js +1 -1
  70. package/models/operations/listdatasetdatapoints.js +5 -5
  71. package/models/operations/listdatasets.js +1 -1
  72. package/models/operations/listpromptversions.d.ts +1 -0
  73. package/models/operations/listpromptversions.d.ts.map +1 -1
  74. package/models/operations/listpromptversions.js +1 -0
  75. package/models/operations/listpromptversions.js.map +1 -1
  76. package/models/operations/patchv2humanevalsetsid.js +2 -2
  77. package/models/operations/postv2feedbackevaluation.js +4 -4
  78. package/models/operations/postv2humanevalsets.js +2 -2
  79. package/models/operations/retrieveannotationqueue.js +1 -1
  80. package/models/operations/retrievedatapoint.js +5 -5
  81. package/models/operations/retrievedataset.js +1 -1
  82. package/models/operations/retrievetool.js +4 -4
  83. package/models/operations/runagent.js +1 -1
  84. package/models/operations/streamrunagent.js +1 -1
  85. package/models/operations/updateannotationqueue.js +1 -1
  86. package/models/operations/updatedatapoint.js +5 -5
  87. package/models/operations/updatedataset.js +1 -1
  88. package/models/operations/updateprompt.d.ts +1 -0
  89. package/models/operations/updateprompt.d.ts.map +1 -1
  90. package/models/operations/updateprompt.js +1 -0
  91. package/models/operations/updateprompt.js.map +1 -1
  92. package/models/operations/updatetool.js +4 -4
  93. package/package.json +6 -6
  94. package/sdk/deployments.d.ts +0 -16
  95. package/sdk/deployments.d.ts.map +1 -1
  96. package/sdk/deployments.js +0 -20
  97. package/sdk/deployments.js.map +1 -1
  98. package/src/lib/config.ts +2 -2
  99. package/src/models/components/agentresponserequest.ts +22 -31
  100. package/src/models/components/agentthoughtstreamingevent.ts +43 -55
  101. package/src/models/components/evaluationcontext.ts +10 -15
  102. package/src/models/components/evaluatorresponsefunction.ts +2 -2
  103. package/src/models/components/evaluatorresponsehttp.ts +2 -2
  104. package/src/models/components/evaluatorresponsejsonschema.ts +2 -2
  105. package/src/models/components/evaluatorresponsellm.ts +2 -2
  106. package/src/models/components/evaluatorresponsepython.ts +2 -2
  107. package/src/models/components/evaluatorresponseragas.ts +2 -2
  108. package/src/models/components/evaluatorresponsetypescript.ts +2 -2
  109. package/src/models/components/index.ts +0 -1
  110. package/src/models/components/reasoningpart.ts +1 -1
  111. package/src/models/components/searchknowledgerequest.ts +469 -668
  112. package/src/models/operations/createannotationqueue.ts +1 -1
  113. package/src/models/operations/createchatcompletion.ts +248 -313
  114. package/src/models/operations/createdataset.ts +1 -1
  115. package/src/models/operations/createdatasetitem.ts +5 -5
  116. package/src/models/operations/createprompt.ts +7 -7
  117. package/src/models/operations/createtool.ts +4 -4
  118. package/src/models/operations/deployments.ts +1 -0
  119. package/src/models/operations/getallprompts.ts +1 -0
  120. package/src/models/operations/getalltools.ts +4 -4
  121. package/src/models/operations/geteval.ts +16 -16
  122. package/src/models/operations/getoneprompt.ts +1 -0
  123. package/src/models/operations/getpromptversion.ts +1 -0
  124. package/src/models/operations/getv2humanevalsets.ts +2 -2
  125. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  126. package/src/models/operations/index.ts +0 -2
  127. package/src/models/operations/listannotationqueues.ts +1 -1
  128. package/src/models/operations/listdatasetdatapoints.ts +5 -5
  129. package/src/models/operations/listdatasets.ts +1 -1
  130. package/src/models/operations/listpromptversions.ts +1 -0
  131. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  132. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  133. package/src/models/operations/postv2humanevalsets.ts +2 -2
  134. package/src/models/operations/retrieveannotationqueue.ts +1 -1
  135. package/src/models/operations/retrievedatapoint.ts +5 -5
  136. package/src/models/operations/retrievedataset.ts +1 -1
  137. package/src/models/operations/retrievetool.ts +4 -4
  138. package/src/models/operations/runagent.ts +1 -1
  139. package/src/models/operations/streamrunagent.ts +1 -1
  140. package/src/models/operations/updateannotationqueue.ts +1 -1
  141. package/src/models/operations/updatedatapoint.ts +5 -5
  142. package/src/models/operations/updatedataset.ts +1 -1
  143. package/src/models/operations/updateprompt.ts +1 -0
  144. package/src/models/operations/updatetool.ts +4 -4
  145. package/src/sdk/deployments.ts +0 -38
  146. package/funcs/deploymentsInvoke.d.ts +0 -18
  147. package/funcs/deploymentsInvoke.d.ts.map +0 -1
  148. package/funcs/deploymentsInvoke.js +0 -116
  149. package/funcs/deploymentsInvoke.js.map +0 -1
  150. package/funcs/deploymentsStream.d.ts +0 -18
  151. package/funcs/deploymentsStream.d.ts.map +0 -1
  152. package/funcs/deploymentsStream.js +0 -129
  153. package/funcs/deploymentsStream.js.map +0 -1
  154. package/models/components/invokedeploymentrequest.d.ts +0 -1544
  155. package/models/components/invokedeploymentrequest.d.ts.map +0 -1
  156. package/models/components/invokedeploymentrequest.js +0 -1108
  157. package/models/components/invokedeploymentrequest.js.map +0 -1
  158. package/models/operations/deploymentinvoke.d.ts +0 -365
  159. package/models/operations/deploymentinvoke.d.ts.map +0 -1
  160. package/models/operations/deploymentinvoke.js +0 -370
  161. package/models/operations/deploymentinvoke.js.map +0 -1
  162. package/models/operations/deploymentstream.d.ts +0 -1897
  163. package/models/operations/deploymentstream.d.ts.map +0 -1
  164. package/models/operations/deploymentstream.js +0 -1483
  165. package/models/operations/deploymentstream.js.map +0 -1
  166. package/src/funcs/deploymentsInvoke.ts +0 -170
  167. package/src/funcs/deploymentsStream.ts +0 -180
  168. package/src/models/components/invokedeploymentrequest.ts +0 -3446
  169. package/src/models/operations/deploymentinvoke.ts +0 -731
  170. package/src/models/operations/deploymentstream.ts +0 -4562
@@ -28,96 +28,96 @@ export type OrExists = {
28
28
  exists: boolean;
29
29
  };
30
30
 
31
- export type SearchKnowledgeRequestOrNin = string | number | boolean;
31
+ export type OrNin = string | number | boolean;
32
32
 
33
33
  /**
34
34
  * Not in
35
35
  */
36
- export type SearchKnowledgeRequestOrFilterByNin = {
36
+ export type SearchKnowledgeRequestOrNin = {
37
37
  nin: Array<string | number | boolean>;
38
38
  };
39
39
 
40
- export type SearchKnowledgeRequestOrIn = string | number | boolean;
40
+ export type OrIn = string | number | boolean;
41
41
 
42
42
  /**
43
43
  * In
44
44
  */
45
- export type SearchKnowledgeRequestOrFilterByIn = {
45
+ export type SearchKnowledgeRequestOrIn = {
46
46
  in: Array<string | number | boolean>;
47
47
  };
48
48
 
49
49
  /**
50
50
  * Less than or equal to
51
51
  */
52
- export type SearchKnowledgeRequestOrLte = {
52
+ export type OrLte = {
53
53
  lte: number;
54
54
  };
55
55
 
56
56
  /**
57
57
  * Less than
58
58
  */
59
- export type SearchKnowledgeRequestOrLt = {
59
+ export type OrLt = {
60
60
  lt: number;
61
61
  };
62
62
 
63
63
  /**
64
64
  * Greater than or equal to
65
65
  */
66
- export type SearchKnowledgeRequestOrGte = {
66
+ export type OrGte = {
67
67
  gte: number;
68
68
  };
69
69
 
70
70
  /**
71
71
  * Greater than
72
72
  */
73
- export type SearchKnowledgeRequestOrGt = {
73
+ export type OrGt = {
74
74
  gt: number;
75
75
  };
76
76
 
77
- export type SearchKnowledgeRequestOrNe = string | number | boolean;
77
+ export type OrNe = string | number | boolean;
78
78
 
79
79
  /**
80
80
  * Not equal to
81
81
  */
82
- export type SearchKnowledgeRequestOrFilterByNe = {
82
+ export type SearchKnowledgeRequestOrNe = {
83
83
  ne: string | number | boolean;
84
84
  };
85
85
 
86
- export type SearchKnowledgeRequestOrEq = string | number | boolean;
86
+ export type OrEq = string | number | boolean;
87
87
 
88
88
  /**
89
89
  * Equal to
90
90
  */
91
- export type SearchKnowledgeRequestOrFilterByEq = {
91
+ export type SearchKnowledgeRequestOrEq = {
92
92
  eq: string | number | boolean;
93
93
  };
94
94
 
95
- export type FilterByOr =
96
- | SearchKnowledgeRequestOrFilterByEq
97
- | SearchKnowledgeRequestOrFilterByNe
98
- | SearchKnowledgeRequestOrGt
99
- | SearchKnowledgeRequestOrGte
100
- | SearchKnowledgeRequestOrLt
101
- | SearchKnowledgeRequestOrLte
102
- | SearchKnowledgeRequestOrFilterByIn
103
- | SearchKnowledgeRequestOrFilterByNin
95
+ export type Or =
96
+ | SearchKnowledgeRequestOrEq
97
+ | SearchKnowledgeRequestOrNe
98
+ | OrGt
99
+ | OrGte
100
+ | OrLt
101
+ | OrLte
102
+ | SearchKnowledgeRequestOrIn
103
+ | SearchKnowledgeRequestOrNin
104
104
  | OrExists;
105
105
 
106
106
  /**
107
107
  * Or
108
108
  */
109
- export type SearchKnowledgeRequestFilterByOr = {
109
+ export type FilterByOr = {
110
110
  or: Array<
111
111
  {
112
112
  [k: string]:
113
- | SearchKnowledgeRequestOrFilterByEq
114
- | SearchKnowledgeRequestOrFilterByNe
115
- | SearchKnowledgeRequestOrGt
116
- | SearchKnowledgeRequestOrGte
117
- | SearchKnowledgeRequestOrLt
118
- | SearchKnowledgeRequestOrLte
119
- | SearchKnowledgeRequestOrFilterByIn
120
- | SearchKnowledgeRequestOrFilterByNin
113
+ | SearchKnowledgeRequestOrEq
114
+ | SearchKnowledgeRequestOrNe
115
+ | OrGt
116
+ | OrGte
117
+ | OrLt
118
+ | OrLte
119
+ | SearchKnowledgeRequestOrIn
120
+ | SearchKnowledgeRequestOrNin
121
121
  | OrExists;
122
122
  }
123
123
  >;
@@ -130,96 +130,96 @@ export type AndExists = {
130
130
  exists: boolean;
131
131
  };
132
132
 
133
- export type SearchKnowledgeRequestAndNin = string | number | boolean;
133
+ export type AndNin = string | number | boolean;
134
134
 
135
135
  /**
136
136
  * Not in
137
137
  */
138
- export type SearchKnowledgeRequestAndFilterByNin = {
138
+ export type SearchKnowledgeRequestAndNin = {
139
139
  nin: Array<string | number | boolean>;
140
140
  };
141
141
 
142
- export type SearchKnowledgeRequestAndIn = string | number | boolean;
142
+ export type AndIn = string | number | boolean;
143
143
 
144
144
  /**
145
145
  * In
146
146
  */
147
- export type SearchKnowledgeRequestAndFilterByIn = {
147
+ export type SearchKnowledgeRequestAndIn = {
148
148
  in: Array<string | number | boolean>;
149
149
  };
150
150
 
151
151
  /**
152
152
  * Less than or equal to
153
153
  */
154
- export type SearchKnowledgeRequestAndLte = {
154
+ export type AndLte = {
155
155
  lte: number;
156
156
  };
157
157
 
158
158
  /**
159
159
  * Less than
160
160
  */
161
- export type SearchKnowledgeRequestAndLt = {
161
+ export type AndLt = {
162
162
  lt: number;
163
163
  };
164
164
 
165
165
  /**
166
166
  * Greater than or equal to
167
167
  */
168
- export type SearchKnowledgeRequestAndGte = {
168
+ export type AndGte = {
169
169
  gte: number;
170
170
  };
171
171
 
172
172
  /**
173
173
  * Greater than
174
174
  */
175
- export type SearchKnowledgeRequestAndGt = {
175
+ export type AndGt = {
176
176
  gt: number;
177
177
  };
178
178
 
179
- export type SearchKnowledgeRequestAndNe = string | number | boolean;
179
+ export type AndNe = string | number | boolean;
180
180
 
181
181
  /**
182
182
  * Not equal to
183
183
  */
184
- export type SearchKnowledgeRequestAndFilterByNe = {
184
+ export type SearchKnowledgeRequestAndNe = {
185
185
  ne: string | number | boolean;
186
186
  };
187
187
 
188
- export type SearchKnowledgeRequestAndEq = string | number | boolean;
188
+ export type AndEq = string | number | boolean;
189
189
 
190
190
  /**
191
191
  * Equal to
192
192
  */
193
- export type SearchKnowledgeRequestAndFilterByEq = {
193
+ export type SearchKnowledgeRequestAndEq = {
194
194
  eq: string | number | boolean;
195
195
  };
196
196
 
197
- export type FilterByAnd =
198
- | SearchKnowledgeRequestAndFilterByEq
199
- | SearchKnowledgeRequestAndFilterByNe
200
- | SearchKnowledgeRequestAndGt
201
- | SearchKnowledgeRequestAndGte
202
- | SearchKnowledgeRequestAndLt
203
- | SearchKnowledgeRequestAndLte
204
- | SearchKnowledgeRequestAndFilterByIn
205
- | SearchKnowledgeRequestAndFilterByNin
197
+ export type And =
198
+ | SearchKnowledgeRequestAndEq
199
+ | SearchKnowledgeRequestAndNe
200
+ | AndGt
201
+ | AndGte
202
+ | AndLt
203
+ | AndLte
204
+ | SearchKnowledgeRequestAndIn
205
+ | SearchKnowledgeRequestAndNin
206
206
  | AndExists;
207
207
 
208
208
  /**
209
209
  * And
210
210
  */
211
- export type SearchKnowledgeRequestFilterByAnd = {
211
+ export type FilterByAnd = {
212
212
  and: Array<
213
213
  {
214
214
  [k: string]:
215
- | SearchKnowledgeRequestAndFilterByEq
216
- | SearchKnowledgeRequestAndFilterByNe
217
- | SearchKnowledgeRequestAndGt
218
- | SearchKnowledgeRequestAndGte
219
- | SearchKnowledgeRequestAndLt
220
- | SearchKnowledgeRequestAndLte
221
- | SearchKnowledgeRequestAndFilterByIn
222
- | SearchKnowledgeRequestAndFilterByNin
215
+ | SearchKnowledgeRequestAndEq
216
+ | SearchKnowledgeRequestAndNe
217
+ | AndGt
218
+ | AndGte
219
+ | AndLt
220
+ | AndLte
221
+ | SearchKnowledgeRequestAndIn
222
+ | SearchKnowledgeRequestAndNin
223
223
  | AndExists;
224
224
  }
225
225
  >;
@@ -232,99 +232,87 @@ export type Exists = {
232
232
  exists: boolean;
233
233
  };
234
234
 
235
- export type OneNin = string | number | boolean;
235
+ export type Nin = string | number | boolean;
236
236
 
237
237
  /**
238
238
  * Not in
239
239
  */
240
- export type SearchKnowledgeRequest1Nin = {
240
+ export type OneNin = {
241
241
  nin: Array<string | number | boolean>;
242
242
  };
243
243
 
244
- export type OneIn = string | number | boolean;
244
+ export type In = string | number | boolean;
245
245
 
246
246
  /**
247
247
  * In
248
248
  */
249
- export type SearchKnowledgeRequest1In = {
249
+ export type OneIn = {
250
250
  in: Array<string | number | boolean>;
251
251
  };
252
252
 
253
253
  /**
254
254
  * Less than or equal to
255
255
  */
256
- export type OneLte = {
256
+ export type Lte = {
257
257
  lte: number;
258
258
  };
259
259
 
260
260
  /**
261
261
  * Less than
262
262
  */
263
- export type OneLt = {
263
+ export type Lt = {
264
264
  lt: number;
265
265
  };
266
266
 
267
267
  /**
268
268
  * Greater than or equal to
269
269
  */
270
- export type OneGte = {
270
+ export type Gte = {
271
271
  gte: number;
272
272
  };
273
273
 
274
274
  /**
275
275
  * Greater than
276
276
  */
277
- export type OneGt = {
277
+ export type Gt = {
278
278
  gt: number;
279
279
  };
280
280
 
281
- export type OneNe = string | number | boolean;
281
+ export type Ne = string | number | boolean;
282
282
 
283
283
  /**
284
284
  * Not equal to
285
285
  */
286
- export type SearchKnowledgeRequest1Ne = {
286
+ export type OneNe = {
287
287
  ne: string | number | boolean;
288
288
  };
289
289
 
290
- export type OneEq = string | number | boolean;
290
+ export type Eq = string | number | boolean;
291
291
 
292
292
  /**
293
293
  * Equal to
294
294
  */
295
- export type SearchKnowledgeRequest1Eq = {
295
+ export type OneEq = {
296
296
  eq: string | number | boolean;
297
297
  };
298
298
 
299
299
  export type FilterBy1 =
300
- | SearchKnowledgeRequest1Eq
301
- | SearchKnowledgeRequest1Ne
302
- | OneGt
303
- | OneGte
304
- | OneLt
305
- | OneLte
306
- | SearchKnowledgeRequest1In
307
- | SearchKnowledgeRequest1Nin
300
+ | OneEq
301
+ | OneNe
302
+ | Gt
303
+ | Gte
304
+ | Lt
305
+ | Lte
306
+ | OneIn
307
+ | OneNin
308
308
  | Exists;
309
309
 
310
310
  /**
311
311
  * The metadata filter to apply to the search. Check the [Searching a Knowledge Base](https://docs.orq.ai/docs/knowledge/api#knowledge-base-search) for more information.
312
312
  */
313
- export type FilterBy =
314
- | SearchKnowledgeRequestFilterByAnd
315
- | SearchKnowledgeRequestFilterByOr
316
- | {
317
- [k: string]:
318
- | SearchKnowledgeRequest1Eq
319
- | SearchKnowledgeRequest1Ne
320
- | OneGt
321
- | OneGte
322
- | OneLt
323
- | OneLte
324
- | SearchKnowledgeRequest1In
325
- | SearchKnowledgeRequest1Nin
326
- | Exists;
327
- };
313
+ export type FilterBy = FilterByAnd | FilterByOr | {
314
+ [k: string]: OneEq | OneNe | Gt | Gte | Lt | Lte | OneIn | OneNin | Exists;
315
+ };
328
316
 
329
317
  export type AgenticRagConfig2 = {
330
318
  /**
@@ -394,22 +382,9 @@ export type SearchKnowledgeRequest = {
394
382
  /**
395
383
  * The metadata filter to apply to the search. Check the [Searching a Knowledge Base](https://docs.orq.ai/docs/knowledge/api#knowledge-base-search) for more information.
396
384
  */
397
- filterBy?:
398
- | SearchKnowledgeRequestFilterByAnd
399
- | SearchKnowledgeRequestFilterByOr
400
- | {
401
- [k: string]:
402
- | SearchKnowledgeRequest1Eq
403
- | SearchKnowledgeRequest1Ne
404
- | OneGt
405
- | OneGte
406
- | OneLt
407
- | OneLte
408
- | SearchKnowledgeRequest1In
409
- | SearchKnowledgeRequest1Nin
410
- | Exists;
411
- }
412
- | undefined;
385
+ filterBy?: FilterByAnd | FilterByOr | {
386
+ [k: string]: OneEq | OneNe | Gt | Gte | Lt | Lte | OneIn | OneNin | Exists;
387
+ } | undefined;
413
388
  /**
414
389
  * Additional search options
415
390
  */
@@ -447,349 +422,281 @@ export function orExistsToJSON(orExists: OrExists): string {
447
422
  }
448
423
 
449
424
  /** @internal */
450
- export type SearchKnowledgeRequestOrNin$Outbound = string | number | boolean;
425
+ export type OrNin$Outbound = string | number | boolean;
451
426
 
452
427
  /** @internal */
453
- export const SearchKnowledgeRequestOrNin$outboundSchema: z.ZodType<
454
- SearchKnowledgeRequestOrNin$Outbound,
428
+ export const OrNin$outboundSchema: z.ZodType<
429
+ OrNin$Outbound,
455
430
  z.ZodTypeDef,
456
- SearchKnowledgeRequestOrNin
431
+ OrNin
457
432
  > = z.union([z.string(), z.number(), z.boolean()]);
458
433
 
459
- export function searchKnowledgeRequestOrNinToJSON(
460
- searchKnowledgeRequestOrNin: SearchKnowledgeRequestOrNin,
461
- ): string {
462
- return JSON.stringify(
463
- SearchKnowledgeRequestOrNin$outboundSchema.parse(
464
- searchKnowledgeRequestOrNin,
465
- ),
466
- );
434
+ export function orNinToJSON(orNin: OrNin): string {
435
+ return JSON.stringify(OrNin$outboundSchema.parse(orNin));
467
436
  }
468
437
 
469
438
  /** @internal */
470
- export type SearchKnowledgeRequestOrFilterByNin$Outbound = {
439
+ export type SearchKnowledgeRequestOrNin$Outbound = {
471
440
  nin: Array<string | number | boolean>;
472
441
  };
473
442
 
474
443
  /** @internal */
475
- export const SearchKnowledgeRequestOrFilterByNin$outboundSchema: z.ZodType<
476
- SearchKnowledgeRequestOrFilterByNin$Outbound,
444
+ export const SearchKnowledgeRequestOrNin$outboundSchema: z.ZodType<
445
+ SearchKnowledgeRequestOrNin$Outbound,
477
446
  z.ZodTypeDef,
478
- SearchKnowledgeRequestOrFilterByNin
447
+ SearchKnowledgeRequestOrNin
479
448
  > = z.object({
480
449
  nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
481
450
  });
482
451
 
483
- export function searchKnowledgeRequestOrFilterByNinToJSON(
484
- searchKnowledgeRequestOrFilterByNin: SearchKnowledgeRequestOrFilterByNin,
452
+ export function searchKnowledgeRequestOrNinToJSON(
453
+ searchKnowledgeRequestOrNin: SearchKnowledgeRequestOrNin,
485
454
  ): string {
486
455
  return JSON.stringify(
487
- SearchKnowledgeRequestOrFilterByNin$outboundSchema.parse(
488
- searchKnowledgeRequestOrFilterByNin,
456
+ SearchKnowledgeRequestOrNin$outboundSchema.parse(
457
+ searchKnowledgeRequestOrNin,
489
458
  ),
490
459
  );
491
460
  }
492
461
 
493
462
  /** @internal */
494
- export type SearchKnowledgeRequestOrIn$Outbound = string | number | boolean;
463
+ export type OrIn$Outbound = string | number | boolean;
495
464
 
496
465
  /** @internal */
497
- export const SearchKnowledgeRequestOrIn$outboundSchema: z.ZodType<
498
- SearchKnowledgeRequestOrIn$Outbound,
499
- z.ZodTypeDef,
500
- SearchKnowledgeRequestOrIn
501
- > = z.union([z.string(), z.number(), z.boolean()]);
466
+ export const OrIn$outboundSchema: z.ZodType<OrIn$Outbound, z.ZodTypeDef, OrIn> =
467
+ z.union([z.string(), z.number(), z.boolean()]);
502
468
 
503
- export function searchKnowledgeRequestOrInToJSON(
504
- searchKnowledgeRequestOrIn: SearchKnowledgeRequestOrIn,
505
- ): string {
506
- return JSON.stringify(
507
- SearchKnowledgeRequestOrIn$outboundSchema.parse(searchKnowledgeRequestOrIn),
508
- );
469
+ export function orInToJSON(orIn: OrIn): string {
470
+ return JSON.stringify(OrIn$outboundSchema.parse(orIn));
509
471
  }
510
472
 
511
473
  /** @internal */
512
- export type SearchKnowledgeRequestOrFilterByIn$Outbound = {
474
+ export type SearchKnowledgeRequestOrIn$Outbound = {
513
475
  in: Array<string | number | boolean>;
514
476
  };
515
477
 
516
478
  /** @internal */
517
- export const SearchKnowledgeRequestOrFilterByIn$outboundSchema: z.ZodType<
518
- SearchKnowledgeRequestOrFilterByIn$Outbound,
479
+ export const SearchKnowledgeRequestOrIn$outboundSchema: z.ZodType<
480
+ SearchKnowledgeRequestOrIn$Outbound,
519
481
  z.ZodTypeDef,
520
- SearchKnowledgeRequestOrFilterByIn
482
+ SearchKnowledgeRequestOrIn
521
483
  > = z.object({
522
484
  in: z.array(z.union([z.string(), z.number(), z.boolean()])),
523
485
  });
524
486
 
525
- export function searchKnowledgeRequestOrFilterByInToJSON(
526
- searchKnowledgeRequestOrFilterByIn: SearchKnowledgeRequestOrFilterByIn,
487
+ export function searchKnowledgeRequestOrInToJSON(
488
+ searchKnowledgeRequestOrIn: SearchKnowledgeRequestOrIn,
527
489
  ): string {
528
490
  return JSON.stringify(
529
- SearchKnowledgeRequestOrFilterByIn$outboundSchema.parse(
530
- searchKnowledgeRequestOrFilterByIn,
531
- ),
491
+ SearchKnowledgeRequestOrIn$outboundSchema.parse(searchKnowledgeRequestOrIn),
532
492
  );
533
493
  }
534
494
 
535
495
  /** @internal */
536
- export type SearchKnowledgeRequestOrLte$Outbound = {
496
+ export type OrLte$Outbound = {
537
497
  lte: number;
538
498
  };
539
499
 
540
500
  /** @internal */
541
- export const SearchKnowledgeRequestOrLte$outboundSchema: z.ZodType<
542
- SearchKnowledgeRequestOrLte$Outbound,
501
+ export const OrLte$outboundSchema: z.ZodType<
502
+ OrLte$Outbound,
543
503
  z.ZodTypeDef,
544
- SearchKnowledgeRequestOrLte
504
+ OrLte
545
505
  > = z.object({
546
506
  lte: z.number(),
547
507
  });
548
508
 
549
- export function searchKnowledgeRequestOrLteToJSON(
550
- searchKnowledgeRequestOrLte: SearchKnowledgeRequestOrLte,
551
- ): string {
552
- return JSON.stringify(
553
- SearchKnowledgeRequestOrLte$outboundSchema.parse(
554
- searchKnowledgeRequestOrLte,
555
- ),
556
- );
509
+ export function orLteToJSON(orLte: OrLte): string {
510
+ return JSON.stringify(OrLte$outboundSchema.parse(orLte));
557
511
  }
558
512
 
559
513
  /** @internal */
560
- export type SearchKnowledgeRequestOrLt$Outbound = {
514
+ export type OrLt$Outbound = {
561
515
  lt: number;
562
516
  };
563
517
 
564
518
  /** @internal */
565
- export const SearchKnowledgeRequestOrLt$outboundSchema: z.ZodType<
566
- SearchKnowledgeRequestOrLt$Outbound,
567
- z.ZodTypeDef,
568
- SearchKnowledgeRequestOrLt
569
- > = z.object({
570
- lt: z.number(),
571
- });
519
+ export const OrLt$outboundSchema: z.ZodType<OrLt$Outbound, z.ZodTypeDef, OrLt> =
520
+ z.object({
521
+ lt: z.number(),
522
+ });
572
523
 
573
- export function searchKnowledgeRequestOrLtToJSON(
574
- searchKnowledgeRequestOrLt: SearchKnowledgeRequestOrLt,
575
- ): string {
576
- return JSON.stringify(
577
- SearchKnowledgeRequestOrLt$outboundSchema.parse(searchKnowledgeRequestOrLt),
578
- );
524
+ export function orLtToJSON(orLt: OrLt): string {
525
+ return JSON.stringify(OrLt$outboundSchema.parse(orLt));
579
526
  }
580
527
 
581
528
  /** @internal */
582
- export type SearchKnowledgeRequestOrGte$Outbound = {
529
+ export type OrGte$Outbound = {
583
530
  gte: number;
584
531
  };
585
532
 
586
533
  /** @internal */
587
- export const SearchKnowledgeRequestOrGte$outboundSchema: z.ZodType<
588
- SearchKnowledgeRequestOrGte$Outbound,
534
+ export const OrGte$outboundSchema: z.ZodType<
535
+ OrGte$Outbound,
589
536
  z.ZodTypeDef,
590
- SearchKnowledgeRequestOrGte
537
+ OrGte
591
538
  > = z.object({
592
539
  gte: z.number(),
593
540
  });
594
541
 
595
- export function searchKnowledgeRequestOrGteToJSON(
596
- searchKnowledgeRequestOrGte: SearchKnowledgeRequestOrGte,
597
- ): string {
598
- return JSON.stringify(
599
- SearchKnowledgeRequestOrGte$outboundSchema.parse(
600
- searchKnowledgeRequestOrGte,
601
- ),
602
- );
542
+ export function orGteToJSON(orGte: OrGte): string {
543
+ return JSON.stringify(OrGte$outboundSchema.parse(orGte));
603
544
  }
604
545
 
605
546
  /** @internal */
606
- export type SearchKnowledgeRequestOrGt$Outbound = {
547
+ export type OrGt$Outbound = {
607
548
  gt: number;
608
549
  };
609
550
 
610
551
  /** @internal */
611
- export const SearchKnowledgeRequestOrGt$outboundSchema: z.ZodType<
612
- SearchKnowledgeRequestOrGt$Outbound,
613
- z.ZodTypeDef,
614
- SearchKnowledgeRequestOrGt
615
- > = z.object({
616
- gt: z.number(),
617
- });
552
+ export const OrGt$outboundSchema: z.ZodType<OrGt$Outbound, z.ZodTypeDef, OrGt> =
553
+ z.object({
554
+ gt: z.number(),
555
+ });
618
556
 
619
- export function searchKnowledgeRequestOrGtToJSON(
620
- searchKnowledgeRequestOrGt: SearchKnowledgeRequestOrGt,
621
- ): string {
622
- return JSON.stringify(
623
- SearchKnowledgeRequestOrGt$outboundSchema.parse(searchKnowledgeRequestOrGt),
624
- );
557
+ export function orGtToJSON(orGt: OrGt): string {
558
+ return JSON.stringify(OrGt$outboundSchema.parse(orGt));
625
559
  }
626
560
 
627
561
  /** @internal */
628
- export type SearchKnowledgeRequestOrNe$Outbound = string | number | boolean;
562
+ export type OrNe$Outbound = string | number | boolean;
629
563
 
630
564
  /** @internal */
631
- export const SearchKnowledgeRequestOrNe$outboundSchema: z.ZodType<
632
- SearchKnowledgeRequestOrNe$Outbound,
633
- z.ZodTypeDef,
634
- SearchKnowledgeRequestOrNe
635
- > = z.union([z.string(), z.number(), z.boolean()]);
565
+ export const OrNe$outboundSchema: z.ZodType<OrNe$Outbound, z.ZodTypeDef, OrNe> =
566
+ z.union([z.string(), z.number(), z.boolean()]);
636
567
 
637
- export function searchKnowledgeRequestOrNeToJSON(
638
- searchKnowledgeRequestOrNe: SearchKnowledgeRequestOrNe,
639
- ): string {
640
- return JSON.stringify(
641
- SearchKnowledgeRequestOrNe$outboundSchema.parse(searchKnowledgeRequestOrNe),
642
- );
568
+ export function orNeToJSON(orNe: OrNe): string {
569
+ return JSON.stringify(OrNe$outboundSchema.parse(orNe));
643
570
  }
644
571
 
645
572
  /** @internal */
646
- export type SearchKnowledgeRequestOrFilterByNe$Outbound = {
573
+ export type SearchKnowledgeRequestOrNe$Outbound = {
647
574
  ne: string | number | boolean;
648
575
  };
649
576
 
650
577
  /** @internal */
651
- export const SearchKnowledgeRequestOrFilterByNe$outboundSchema: z.ZodType<
652
- SearchKnowledgeRequestOrFilterByNe$Outbound,
578
+ export const SearchKnowledgeRequestOrNe$outboundSchema: z.ZodType<
579
+ SearchKnowledgeRequestOrNe$Outbound,
653
580
  z.ZodTypeDef,
654
- SearchKnowledgeRequestOrFilterByNe
581
+ SearchKnowledgeRequestOrNe
655
582
  > = z.object({
656
583
  ne: z.union([z.string(), z.number(), z.boolean()]),
657
584
  });
658
585
 
659
- export function searchKnowledgeRequestOrFilterByNeToJSON(
660
- searchKnowledgeRequestOrFilterByNe: SearchKnowledgeRequestOrFilterByNe,
586
+ export function searchKnowledgeRequestOrNeToJSON(
587
+ searchKnowledgeRequestOrNe: SearchKnowledgeRequestOrNe,
661
588
  ): string {
662
589
  return JSON.stringify(
663
- SearchKnowledgeRequestOrFilterByNe$outboundSchema.parse(
664
- searchKnowledgeRequestOrFilterByNe,
665
- ),
590
+ SearchKnowledgeRequestOrNe$outboundSchema.parse(searchKnowledgeRequestOrNe),
666
591
  );
667
592
  }
668
593
 
669
594
  /** @internal */
670
- export type SearchKnowledgeRequestOrEq$Outbound = string | number | boolean;
595
+ export type OrEq$Outbound = string | number | boolean;
671
596
 
672
597
  /** @internal */
673
- export const SearchKnowledgeRequestOrEq$outboundSchema: z.ZodType<
674
- SearchKnowledgeRequestOrEq$Outbound,
675
- z.ZodTypeDef,
676
- SearchKnowledgeRequestOrEq
677
- > = z.union([z.string(), z.number(), z.boolean()]);
598
+ export const OrEq$outboundSchema: z.ZodType<OrEq$Outbound, z.ZodTypeDef, OrEq> =
599
+ z.union([z.string(), z.number(), z.boolean()]);
678
600
 
679
- export function searchKnowledgeRequestOrEqToJSON(
680
- searchKnowledgeRequestOrEq: SearchKnowledgeRequestOrEq,
681
- ): string {
682
- return JSON.stringify(
683
- SearchKnowledgeRequestOrEq$outboundSchema.parse(searchKnowledgeRequestOrEq),
684
- );
601
+ export function orEqToJSON(orEq: OrEq): string {
602
+ return JSON.stringify(OrEq$outboundSchema.parse(orEq));
685
603
  }
686
604
 
687
605
  /** @internal */
688
- export type SearchKnowledgeRequestOrFilterByEq$Outbound = {
606
+ export type SearchKnowledgeRequestOrEq$Outbound = {
689
607
  eq: string | number | boolean;
690
608
  };
691
609
 
692
610
  /** @internal */
693
- export const SearchKnowledgeRequestOrFilterByEq$outboundSchema: z.ZodType<
694
- SearchKnowledgeRequestOrFilterByEq$Outbound,
611
+ export const SearchKnowledgeRequestOrEq$outboundSchema: z.ZodType<
612
+ SearchKnowledgeRequestOrEq$Outbound,
695
613
  z.ZodTypeDef,
696
- SearchKnowledgeRequestOrFilterByEq
614
+ SearchKnowledgeRequestOrEq
697
615
  > = z.object({
698
616
  eq: z.union([z.string(), z.number(), z.boolean()]),
699
617
  });
700
618
 
701
- export function searchKnowledgeRequestOrFilterByEqToJSON(
702
- searchKnowledgeRequestOrFilterByEq: SearchKnowledgeRequestOrFilterByEq,
619
+ export function searchKnowledgeRequestOrEqToJSON(
620
+ searchKnowledgeRequestOrEq: SearchKnowledgeRequestOrEq,
703
621
  ): string {
704
622
  return JSON.stringify(
705
- SearchKnowledgeRequestOrFilterByEq$outboundSchema.parse(
706
- searchKnowledgeRequestOrFilterByEq,
707
- ),
623
+ SearchKnowledgeRequestOrEq$outboundSchema.parse(searchKnowledgeRequestOrEq),
708
624
  );
709
625
  }
710
626
 
711
627
  /** @internal */
712
- export type FilterByOr$Outbound =
713
- | SearchKnowledgeRequestOrFilterByEq$Outbound
714
- | SearchKnowledgeRequestOrFilterByNe$Outbound
715
- | SearchKnowledgeRequestOrGt$Outbound
716
- | SearchKnowledgeRequestOrGte$Outbound
717
- | SearchKnowledgeRequestOrLt$Outbound
718
- | SearchKnowledgeRequestOrLte$Outbound
719
- | SearchKnowledgeRequestOrFilterByIn$Outbound
720
- | SearchKnowledgeRequestOrFilterByNin$Outbound
628
+ export type Or$Outbound =
629
+ | SearchKnowledgeRequestOrEq$Outbound
630
+ | SearchKnowledgeRequestOrNe$Outbound
631
+ | OrGt$Outbound
632
+ | OrGte$Outbound
633
+ | OrLt$Outbound
634
+ | OrLte$Outbound
635
+ | SearchKnowledgeRequestOrIn$Outbound
636
+ | SearchKnowledgeRequestOrNin$Outbound
721
637
  | OrExists$Outbound;
722
638
 
723
639
  /** @internal */
724
- export const FilterByOr$outboundSchema: z.ZodType<
725
- FilterByOr$Outbound,
726
- z.ZodTypeDef,
727
- FilterByOr
728
- > = z.union([
729
- z.lazy(() => SearchKnowledgeRequestOrFilterByEq$outboundSchema),
730
- z.lazy(() => SearchKnowledgeRequestOrFilterByNe$outboundSchema),
731
- z.lazy(() => SearchKnowledgeRequestOrGt$outboundSchema),
732
- z.lazy(() => SearchKnowledgeRequestOrGte$outboundSchema),
733
- z.lazy(() => SearchKnowledgeRequestOrLt$outboundSchema),
734
- z.lazy(() => SearchKnowledgeRequestOrLte$outboundSchema),
735
- z.lazy(() => SearchKnowledgeRequestOrFilterByIn$outboundSchema),
736
- z.lazy(() => SearchKnowledgeRequestOrFilterByNin$outboundSchema),
737
- z.lazy(() => OrExists$outboundSchema),
738
- ]);
739
-
740
- export function filterByOrToJSON(filterByOr: FilterByOr): string {
741
- return JSON.stringify(FilterByOr$outboundSchema.parse(filterByOr));
640
+ export const Or$outboundSchema: z.ZodType<Or$Outbound, z.ZodTypeDef, Or> = z
641
+ .union([
642
+ z.lazy(() => SearchKnowledgeRequestOrEq$outboundSchema),
643
+ z.lazy(() => SearchKnowledgeRequestOrNe$outboundSchema),
644
+ z.lazy(() => OrGt$outboundSchema),
645
+ z.lazy(() => OrGte$outboundSchema),
646
+ z.lazy(() => OrLt$outboundSchema),
647
+ z.lazy(() => OrLte$outboundSchema),
648
+ z.lazy(() => SearchKnowledgeRequestOrIn$outboundSchema),
649
+ z.lazy(() => SearchKnowledgeRequestOrNin$outboundSchema),
650
+ z.lazy(() => OrExists$outboundSchema),
651
+ ]);
652
+
653
+ export function orToJSON(or: Or): string {
654
+ return JSON.stringify(Or$outboundSchema.parse(or));
742
655
  }
743
656
 
744
657
  /** @internal */
745
- export type SearchKnowledgeRequestFilterByOr$Outbound = {
658
+ export type FilterByOr$Outbound = {
746
659
  or: Array<
747
660
  {
748
661
  [k: string]:
749
- | SearchKnowledgeRequestOrFilterByEq$Outbound
750
- | SearchKnowledgeRequestOrFilterByNe$Outbound
751
- | SearchKnowledgeRequestOrGt$Outbound
752
- | SearchKnowledgeRequestOrGte$Outbound
753
- | SearchKnowledgeRequestOrLt$Outbound
754
- | SearchKnowledgeRequestOrLte$Outbound
755
- | SearchKnowledgeRequestOrFilterByIn$Outbound
756
- | SearchKnowledgeRequestOrFilterByNin$Outbound
662
+ | SearchKnowledgeRequestOrEq$Outbound
663
+ | SearchKnowledgeRequestOrNe$Outbound
664
+ | OrGt$Outbound
665
+ | OrGte$Outbound
666
+ | OrLt$Outbound
667
+ | OrLte$Outbound
668
+ | SearchKnowledgeRequestOrIn$Outbound
669
+ | SearchKnowledgeRequestOrNin$Outbound
757
670
  | OrExists$Outbound;
758
671
  }
759
672
  >;
760
673
  };
761
674
 
762
675
  /** @internal */
763
- export const SearchKnowledgeRequestFilterByOr$outboundSchema: z.ZodType<
764
- SearchKnowledgeRequestFilterByOr$Outbound,
676
+ export const FilterByOr$outboundSchema: z.ZodType<
677
+ FilterByOr$Outbound,
765
678
  z.ZodTypeDef,
766
- SearchKnowledgeRequestFilterByOr
679
+ FilterByOr
767
680
  > = z.object({
768
681
  or: z.array(
769
682
  z.record(z.union([
770
- z.lazy(() => SearchKnowledgeRequestOrFilterByEq$outboundSchema),
683
+ z.lazy(() => SearchKnowledgeRequestOrEq$outboundSchema),
771
684
  z.lazy(() =>
772
- SearchKnowledgeRequestOrFilterByNe$outboundSchema
685
+ SearchKnowledgeRequestOrNe$outboundSchema
773
686
  ),
774
- z.lazy(() => SearchKnowledgeRequestOrGt$outboundSchema),
775
- z.lazy(() => SearchKnowledgeRequestOrGte$outboundSchema),
776
- z.lazy(() => SearchKnowledgeRequestOrLt$outboundSchema),
777
- z.lazy(() => SearchKnowledgeRequestOrLte$outboundSchema),
778
- z.lazy(() => SearchKnowledgeRequestOrFilterByIn$outboundSchema),
779
- z.lazy(() => SearchKnowledgeRequestOrFilterByNin$outboundSchema),
687
+ z.lazy(() => OrGt$outboundSchema),
688
+ z.lazy(() => OrGte$outboundSchema),
689
+ z.lazy(() => OrLt$outboundSchema),
690
+ z.lazy(() => OrLte$outboundSchema),
691
+ z.lazy(() => SearchKnowledgeRequestOrIn$outboundSchema),
692
+ z.lazy(() => SearchKnowledgeRequestOrNin$outboundSchema),
780
693
  z.lazy(() => OrExists$outboundSchema),
781
694
  ])),
782
695
  ),
783
696
  });
784
697
 
785
- export function searchKnowledgeRequestFilterByOrToJSON(
786
- searchKnowledgeRequestFilterByOr: SearchKnowledgeRequestFilterByOr,
787
- ): string {
788
- return JSON.stringify(
789
- SearchKnowledgeRequestFilterByOr$outboundSchema.parse(
790
- searchKnowledgeRequestFilterByOr,
791
- ),
792
- );
698
+ export function filterByOrToJSON(filterByOr: FilterByOr): string {
699
+ return JSON.stringify(FilterByOr$outboundSchema.parse(filterByOr));
793
700
  }
794
701
 
795
702
  /** @internal */
@@ -811,359 +718,302 @@ export function andExistsToJSON(andExists: AndExists): string {
811
718
  }
812
719
 
813
720
  /** @internal */
814
- export type SearchKnowledgeRequestAndNin$Outbound = string | number | boolean;
721
+ export type AndNin$Outbound = string | number | boolean;
815
722
 
816
723
  /** @internal */
817
- export const SearchKnowledgeRequestAndNin$outboundSchema: z.ZodType<
818
- SearchKnowledgeRequestAndNin$Outbound,
724
+ export const AndNin$outboundSchema: z.ZodType<
725
+ AndNin$Outbound,
819
726
  z.ZodTypeDef,
820
- SearchKnowledgeRequestAndNin
727
+ AndNin
821
728
  > = z.union([z.string(), z.number(), z.boolean()]);
822
729
 
823
- export function searchKnowledgeRequestAndNinToJSON(
824
- searchKnowledgeRequestAndNin: SearchKnowledgeRequestAndNin,
825
- ): string {
826
- return JSON.stringify(
827
- SearchKnowledgeRequestAndNin$outboundSchema.parse(
828
- searchKnowledgeRequestAndNin,
829
- ),
830
- );
730
+ export function andNinToJSON(andNin: AndNin): string {
731
+ return JSON.stringify(AndNin$outboundSchema.parse(andNin));
831
732
  }
832
733
 
833
734
  /** @internal */
834
- export type SearchKnowledgeRequestAndFilterByNin$Outbound = {
735
+ export type SearchKnowledgeRequestAndNin$Outbound = {
835
736
  nin: Array<string | number | boolean>;
836
737
  };
837
738
 
838
739
  /** @internal */
839
- export const SearchKnowledgeRequestAndFilterByNin$outboundSchema: z.ZodType<
840
- SearchKnowledgeRequestAndFilterByNin$Outbound,
740
+ export const SearchKnowledgeRequestAndNin$outboundSchema: z.ZodType<
741
+ SearchKnowledgeRequestAndNin$Outbound,
841
742
  z.ZodTypeDef,
842
- SearchKnowledgeRequestAndFilterByNin
743
+ SearchKnowledgeRequestAndNin
843
744
  > = z.object({
844
745
  nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
845
746
  });
846
747
 
847
- export function searchKnowledgeRequestAndFilterByNinToJSON(
848
- searchKnowledgeRequestAndFilterByNin: SearchKnowledgeRequestAndFilterByNin,
748
+ export function searchKnowledgeRequestAndNinToJSON(
749
+ searchKnowledgeRequestAndNin: SearchKnowledgeRequestAndNin,
849
750
  ): string {
850
751
  return JSON.stringify(
851
- SearchKnowledgeRequestAndFilterByNin$outboundSchema.parse(
852
- searchKnowledgeRequestAndFilterByNin,
752
+ SearchKnowledgeRequestAndNin$outboundSchema.parse(
753
+ searchKnowledgeRequestAndNin,
853
754
  ),
854
755
  );
855
756
  }
856
757
 
857
758
  /** @internal */
858
- export type SearchKnowledgeRequestAndIn$Outbound = string | number | boolean;
759
+ export type AndIn$Outbound = string | number | boolean;
859
760
 
860
761
  /** @internal */
861
- export const SearchKnowledgeRequestAndIn$outboundSchema: z.ZodType<
862
- SearchKnowledgeRequestAndIn$Outbound,
762
+ export const AndIn$outboundSchema: z.ZodType<
763
+ AndIn$Outbound,
863
764
  z.ZodTypeDef,
864
- SearchKnowledgeRequestAndIn
765
+ AndIn
865
766
  > = z.union([z.string(), z.number(), z.boolean()]);
866
767
 
867
- export function searchKnowledgeRequestAndInToJSON(
868
- searchKnowledgeRequestAndIn: SearchKnowledgeRequestAndIn,
869
- ): string {
870
- return JSON.stringify(
871
- SearchKnowledgeRequestAndIn$outboundSchema.parse(
872
- searchKnowledgeRequestAndIn,
873
- ),
874
- );
768
+ export function andInToJSON(andIn: AndIn): string {
769
+ return JSON.stringify(AndIn$outboundSchema.parse(andIn));
875
770
  }
876
771
 
877
772
  /** @internal */
878
- export type SearchKnowledgeRequestAndFilterByIn$Outbound = {
773
+ export type SearchKnowledgeRequestAndIn$Outbound = {
879
774
  in: Array<string | number | boolean>;
880
775
  };
881
776
 
882
777
  /** @internal */
883
- export const SearchKnowledgeRequestAndFilterByIn$outboundSchema: z.ZodType<
884
- SearchKnowledgeRequestAndFilterByIn$Outbound,
778
+ export const SearchKnowledgeRequestAndIn$outboundSchema: z.ZodType<
779
+ SearchKnowledgeRequestAndIn$Outbound,
885
780
  z.ZodTypeDef,
886
- SearchKnowledgeRequestAndFilterByIn
781
+ SearchKnowledgeRequestAndIn
887
782
  > = z.object({
888
783
  in: z.array(z.union([z.string(), z.number(), z.boolean()])),
889
784
  });
890
785
 
891
- export function searchKnowledgeRequestAndFilterByInToJSON(
892
- searchKnowledgeRequestAndFilterByIn: SearchKnowledgeRequestAndFilterByIn,
786
+ export function searchKnowledgeRequestAndInToJSON(
787
+ searchKnowledgeRequestAndIn: SearchKnowledgeRequestAndIn,
893
788
  ): string {
894
789
  return JSON.stringify(
895
- SearchKnowledgeRequestAndFilterByIn$outboundSchema.parse(
896
- searchKnowledgeRequestAndFilterByIn,
790
+ SearchKnowledgeRequestAndIn$outboundSchema.parse(
791
+ searchKnowledgeRequestAndIn,
897
792
  ),
898
793
  );
899
794
  }
900
795
 
901
796
  /** @internal */
902
- export type SearchKnowledgeRequestAndLte$Outbound = {
797
+ export type AndLte$Outbound = {
903
798
  lte: number;
904
799
  };
905
800
 
906
801
  /** @internal */
907
- export const SearchKnowledgeRequestAndLte$outboundSchema: z.ZodType<
908
- SearchKnowledgeRequestAndLte$Outbound,
802
+ export const AndLte$outboundSchema: z.ZodType<
803
+ AndLte$Outbound,
909
804
  z.ZodTypeDef,
910
- SearchKnowledgeRequestAndLte
805
+ AndLte
911
806
  > = z.object({
912
807
  lte: z.number(),
913
808
  });
914
809
 
915
- export function searchKnowledgeRequestAndLteToJSON(
916
- searchKnowledgeRequestAndLte: SearchKnowledgeRequestAndLte,
917
- ): string {
918
- return JSON.stringify(
919
- SearchKnowledgeRequestAndLte$outboundSchema.parse(
920
- searchKnowledgeRequestAndLte,
921
- ),
922
- );
810
+ export function andLteToJSON(andLte: AndLte): string {
811
+ return JSON.stringify(AndLte$outboundSchema.parse(andLte));
923
812
  }
924
813
 
925
814
  /** @internal */
926
- export type SearchKnowledgeRequestAndLt$Outbound = {
815
+ export type AndLt$Outbound = {
927
816
  lt: number;
928
817
  };
929
818
 
930
819
  /** @internal */
931
- export const SearchKnowledgeRequestAndLt$outboundSchema: z.ZodType<
932
- SearchKnowledgeRequestAndLt$Outbound,
820
+ export const AndLt$outboundSchema: z.ZodType<
821
+ AndLt$Outbound,
933
822
  z.ZodTypeDef,
934
- SearchKnowledgeRequestAndLt
823
+ AndLt
935
824
  > = z.object({
936
825
  lt: z.number(),
937
826
  });
938
827
 
939
- export function searchKnowledgeRequestAndLtToJSON(
940
- searchKnowledgeRequestAndLt: SearchKnowledgeRequestAndLt,
941
- ): string {
942
- return JSON.stringify(
943
- SearchKnowledgeRequestAndLt$outboundSchema.parse(
944
- searchKnowledgeRequestAndLt,
945
- ),
946
- );
828
+ export function andLtToJSON(andLt: AndLt): string {
829
+ return JSON.stringify(AndLt$outboundSchema.parse(andLt));
947
830
  }
948
831
 
949
832
  /** @internal */
950
- export type SearchKnowledgeRequestAndGte$Outbound = {
833
+ export type AndGte$Outbound = {
951
834
  gte: number;
952
835
  };
953
836
 
954
837
  /** @internal */
955
- export const SearchKnowledgeRequestAndGte$outboundSchema: z.ZodType<
956
- SearchKnowledgeRequestAndGte$Outbound,
838
+ export const AndGte$outboundSchema: z.ZodType<
839
+ AndGte$Outbound,
957
840
  z.ZodTypeDef,
958
- SearchKnowledgeRequestAndGte
841
+ AndGte
959
842
  > = z.object({
960
843
  gte: z.number(),
961
844
  });
962
845
 
963
- export function searchKnowledgeRequestAndGteToJSON(
964
- searchKnowledgeRequestAndGte: SearchKnowledgeRequestAndGte,
965
- ): string {
966
- return JSON.stringify(
967
- SearchKnowledgeRequestAndGte$outboundSchema.parse(
968
- searchKnowledgeRequestAndGte,
969
- ),
970
- );
846
+ export function andGteToJSON(andGte: AndGte): string {
847
+ return JSON.stringify(AndGte$outboundSchema.parse(andGte));
971
848
  }
972
849
 
973
850
  /** @internal */
974
- export type SearchKnowledgeRequestAndGt$Outbound = {
851
+ export type AndGt$Outbound = {
975
852
  gt: number;
976
853
  };
977
854
 
978
855
  /** @internal */
979
- export const SearchKnowledgeRequestAndGt$outboundSchema: z.ZodType<
980
- SearchKnowledgeRequestAndGt$Outbound,
856
+ export const AndGt$outboundSchema: z.ZodType<
857
+ AndGt$Outbound,
981
858
  z.ZodTypeDef,
982
- SearchKnowledgeRequestAndGt
859
+ AndGt
983
860
  > = z.object({
984
861
  gt: z.number(),
985
862
  });
986
863
 
987
- export function searchKnowledgeRequestAndGtToJSON(
988
- searchKnowledgeRequestAndGt: SearchKnowledgeRequestAndGt,
989
- ): string {
990
- return JSON.stringify(
991
- SearchKnowledgeRequestAndGt$outboundSchema.parse(
992
- searchKnowledgeRequestAndGt,
993
- ),
994
- );
864
+ export function andGtToJSON(andGt: AndGt): string {
865
+ return JSON.stringify(AndGt$outboundSchema.parse(andGt));
995
866
  }
996
867
 
997
868
  /** @internal */
998
- export type SearchKnowledgeRequestAndNe$Outbound = string | number | boolean;
869
+ export type AndNe$Outbound = string | number | boolean;
999
870
 
1000
871
  /** @internal */
1001
- export const SearchKnowledgeRequestAndNe$outboundSchema: z.ZodType<
1002
- SearchKnowledgeRequestAndNe$Outbound,
872
+ export const AndNe$outboundSchema: z.ZodType<
873
+ AndNe$Outbound,
1003
874
  z.ZodTypeDef,
1004
- SearchKnowledgeRequestAndNe
875
+ AndNe
1005
876
  > = z.union([z.string(), z.number(), z.boolean()]);
1006
877
 
1007
- export function searchKnowledgeRequestAndNeToJSON(
1008
- searchKnowledgeRequestAndNe: SearchKnowledgeRequestAndNe,
1009
- ): string {
1010
- return JSON.stringify(
1011
- SearchKnowledgeRequestAndNe$outboundSchema.parse(
1012
- searchKnowledgeRequestAndNe,
1013
- ),
1014
- );
878
+ export function andNeToJSON(andNe: AndNe): string {
879
+ return JSON.stringify(AndNe$outboundSchema.parse(andNe));
1015
880
  }
1016
881
 
1017
882
  /** @internal */
1018
- export type SearchKnowledgeRequestAndFilterByNe$Outbound = {
883
+ export type SearchKnowledgeRequestAndNe$Outbound = {
1019
884
  ne: string | number | boolean;
1020
885
  };
1021
886
 
1022
887
  /** @internal */
1023
- export const SearchKnowledgeRequestAndFilterByNe$outboundSchema: z.ZodType<
1024
- SearchKnowledgeRequestAndFilterByNe$Outbound,
888
+ export const SearchKnowledgeRequestAndNe$outboundSchema: z.ZodType<
889
+ SearchKnowledgeRequestAndNe$Outbound,
1025
890
  z.ZodTypeDef,
1026
- SearchKnowledgeRequestAndFilterByNe
891
+ SearchKnowledgeRequestAndNe
1027
892
  > = z.object({
1028
893
  ne: z.union([z.string(), z.number(), z.boolean()]),
1029
894
  });
1030
895
 
1031
- export function searchKnowledgeRequestAndFilterByNeToJSON(
1032
- searchKnowledgeRequestAndFilterByNe: SearchKnowledgeRequestAndFilterByNe,
896
+ export function searchKnowledgeRequestAndNeToJSON(
897
+ searchKnowledgeRequestAndNe: SearchKnowledgeRequestAndNe,
1033
898
  ): string {
1034
899
  return JSON.stringify(
1035
- SearchKnowledgeRequestAndFilterByNe$outboundSchema.parse(
1036
- searchKnowledgeRequestAndFilterByNe,
900
+ SearchKnowledgeRequestAndNe$outboundSchema.parse(
901
+ searchKnowledgeRequestAndNe,
1037
902
  ),
1038
903
  );
1039
904
  }
1040
905
 
1041
906
  /** @internal */
1042
- export type SearchKnowledgeRequestAndEq$Outbound = string | number | boolean;
907
+ export type AndEq$Outbound = string | number | boolean;
1043
908
 
1044
909
  /** @internal */
1045
- export const SearchKnowledgeRequestAndEq$outboundSchema: z.ZodType<
1046
- SearchKnowledgeRequestAndEq$Outbound,
910
+ export const AndEq$outboundSchema: z.ZodType<
911
+ AndEq$Outbound,
1047
912
  z.ZodTypeDef,
1048
- SearchKnowledgeRequestAndEq
913
+ AndEq
1049
914
  > = z.union([z.string(), z.number(), z.boolean()]);
1050
915
 
1051
- export function searchKnowledgeRequestAndEqToJSON(
1052
- searchKnowledgeRequestAndEq: SearchKnowledgeRequestAndEq,
1053
- ): string {
1054
- return JSON.stringify(
1055
- SearchKnowledgeRequestAndEq$outboundSchema.parse(
1056
- searchKnowledgeRequestAndEq,
1057
- ),
1058
- );
916
+ export function andEqToJSON(andEq: AndEq): string {
917
+ return JSON.stringify(AndEq$outboundSchema.parse(andEq));
1059
918
  }
1060
919
 
1061
920
  /** @internal */
1062
- export type SearchKnowledgeRequestAndFilterByEq$Outbound = {
921
+ export type SearchKnowledgeRequestAndEq$Outbound = {
1063
922
  eq: string | number | boolean;
1064
923
  };
1065
924
 
1066
925
  /** @internal */
1067
- export const SearchKnowledgeRequestAndFilterByEq$outboundSchema: z.ZodType<
1068
- SearchKnowledgeRequestAndFilterByEq$Outbound,
926
+ export const SearchKnowledgeRequestAndEq$outboundSchema: z.ZodType<
927
+ SearchKnowledgeRequestAndEq$Outbound,
1069
928
  z.ZodTypeDef,
1070
- SearchKnowledgeRequestAndFilterByEq
929
+ SearchKnowledgeRequestAndEq
1071
930
  > = z.object({
1072
931
  eq: z.union([z.string(), z.number(), z.boolean()]),
1073
932
  });
1074
933
 
1075
- export function searchKnowledgeRequestAndFilterByEqToJSON(
1076
- searchKnowledgeRequestAndFilterByEq: SearchKnowledgeRequestAndFilterByEq,
934
+ export function searchKnowledgeRequestAndEqToJSON(
935
+ searchKnowledgeRequestAndEq: SearchKnowledgeRequestAndEq,
1077
936
  ): string {
1078
937
  return JSON.stringify(
1079
- SearchKnowledgeRequestAndFilterByEq$outboundSchema.parse(
1080
- searchKnowledgeRequestAndFilterByEq,
938
+ SearchKnowledgeRequestAndEq$outboundSchema.parse(
939
+ searchKnowledgeRequestAndEq,
1081
940
  ),
1082
941
  );
1083
942
  }
1084
943
 
1085
944
  /** @internal */
1086
- export type FilterByAnd$Outbound =
1087
- | SearchKnowledgeRequestAndFilterByEq$Outbound
1088
- | SearchKnowledgeRequestAndFilterByNe$Outbound
1089
- | SearchKnowledgeRequestAndGt$Outbound
1090
- | SearchKnowledgeRequestAndGte$Outbound
1091
- | SearchKnowledgeRequestAndLt$Outbound
1092
- | SearchKnowledgeRequestAndLte$Outbound
1093
- | SearchKnowledgeRequestAndFilterByIn$Outbound
1094
- | SearchKnowledgeRequestAndFilterByNin$Outbound
945
+ export type And$Outbound =
946
+ | SearchKnowledgeRequestAndEq$Outbound
947
+ | SearchKnowledgeRequestAndNe$Outbound
948
+ | AndGt$Outbound
949
+ | AndGte$Outbound
950
+ | AndLt$Outbound
951
+ | AndLte$Outbound
952
+ | SearchKnowledgeRequestAndIn$Outbound
953
+ | SearchKnowledgeRequestAndNin$Outbound
1095
954
  | AndExists$Outbound;
1096
955
 
1097
956
  /** @internal */
1098
- export const FilterByAnd$outboundSchema: z.ZodType<
1099
- FilterByAnd$Outbound,
1100
- z.ZodTypeDef,
1101
- FilterByAnd
1102
- > = z.union([
1103
- z.lazy(() => SearchKnowledgeRequestAndFilterByEq$outboundSchema),
1104
- z.lazy(() => SearchKnowledgeRequestAndFilterByNe$outboundSchema),
1105
- z.lazy(() => SearchKnowledgeRequestAndGt$outboundSchema),
1106
- z.lazy(() => SearchKnowledgeRequestAndGte$outboundSchema),
1107
- z.lazy(() => SearchKnowledgeRequestAndLt$outboundSchema),
1108
- z.lazy(() => SearchKnowledgeRequestAndLte$outboundSchema),
1109
- z.lazy(() => SearchKnowledgeRequestAndFilterByIn$outboundSchema),
1110
- z.lazy(() => SearchKnowledgeRequestAndFilterByNin$outboundSchema),
1111
- z.lazy(() => AndExists$outboundSchema),
1112
- ]);
1113
-
1114
- export function filterByAndToJSON(filterByAnd: FilterByAnd): string {
1115
- return JSON.stringify(FilterByAnd$outboundSchema.parse(filterByAnd));
957
+ export const And$outboundSchema: z.ZodType<And$Outbound, z.ZodTypeDef, And> = z
958
+ .union([
959
+ z.lazy(() => SearchKnowledgeRequestAndEq$outboundSchema),
960
+ z.lazy(() => SearchKnowledgeRequestAndNe$outboundSchema),
961
+ z.lazy(() => AndGt$outboundSchema),
962
+ z.lazy(() => AndGte$outboundSchema),
963
+ z.lazy(() => AndLt$outboundSchema),
964
+ z.lazy(() => AndLte$outboundSchema),
965
+ z.lazy(() => SearchKnowledgeRequestAndIn$outboundSchema),
966
+ z.lazy(() => SearchKnowledgeRequestAndNin$outboundSchema),
967
+ z.lazy(() => AndExists$outboundSchema),
968
+ ]);
969
+
970
+ export function andToJSON(and: And): string {
971
+ return JSON.stringify(And$outboundSchema.parse(and));
1116
972
  }
1117
973
 
1118
974
  /** @internal */
1119
- export type SearchKnowledgeRequestFilterByAnd$Outbound = {
975
+ export type FilterByAnd$Outbound = {
1120
976
  and: Array<
1121
977
  {
1122
978
  [k: string]:
1123
- | SearchKnowledgeRequestAndFilterByEq$Outbound
1124
- | SearchKnowledgeRequestAndFilterByNe$Outbound
1125
- | SearchKnowledgeRequestAndGt$Outbound
1126
- | SearchKnowledgeRequestAndGte$Outbound
1127
- | SearchKnowledgeRequestAndLt$Outbound
1128
- | SearchKnowledgeRequestAndLte$Outbound
1129
- | SearchKnowledgeRequestAndFilterByIn$Outbound
1130
- | SearchKnowledgeRequestAndFilterByNin$Outbound
979
+ | SearchKnowledgeRequestAndEq$Outbound
980
+ | SearchKnowledgeRequestAndNe$Outbound
981
+ | AndGt$Outbound
982
+ | AndGte$Outbound
983
+ | AndLt$Outbound
984
+ | AndLte$Outbound
985
+ | SearchKnowledgeRequestAndIn$Outbound
986
+ | SearchKnowledgeRequestAndNin$Outbound
1131
987
  | AndExists$Outbound;
1132
988
  }
1133
989
  >;
1134
990
  };
1135
991
 
1136
992
  /** @internal */
1137
- export const SearchKnowledgeRequestFilterByAnd$outboundSchema: z.ZodType<
1138
- SearchKnowledgeRequestFilterByAnd$Outbound,
993
+ export const FilterByAnd$outboundSchema: z.ZodType<
994
+ FilterByAnd$Outbound,
1139
995
  z.ZodTypeDef,
1140
- SearchKnowledgeRequestFilterByAnd
996
+ FilterByAnd
1141
997
  > = z.object({
1142
998
  and: z.array(
1143
999
  z.record(z.union([
1144
- z.lazy(() => SearchKnowledgeRequestAndFilterByEq$outboundSchema),
1000
+ z.lazy(() => SearchKnowledgeRequestAndEq$outboundSchema),
1145
1001
  z.lazy(() =>
1146
- SearchKnowledgeRequestAndFilterByNe$outboundSchema
1002
+ SearchKnowledgeRequestAndNe$outboundSchema
1147
1003
  ),
1148
- z.lazy(() => SearchKnowledgeRequestAndGt$outboundSchema),
1149
- z.lazy(() => SearchKnowledgeRequestAndGte$outboundSchema),
1150
- z.lazy(() => SearchKnowledgeRequestAndLt$outboundSchema),
1151
- z.lazy(() => SearchKnowledgeRequestAndLte$outboundSchema),
1152
- z.lazy(() => SearchKnowledgeRequestAndFilterByIn$outboundSchema),
1153
- z.lazy(() => SearchKnowledgeRequestAndFilterByNin$outboundSchema),
1004
+ z.lazy(() => AndGt$outboundSchema),
1005
+ z.lazy(() => AndGte$outboundSchema),
1006
+ z.lazy(() => AndLt$outboundSchema),
1007
+ z.lazy(() => AndLte$outboundSchema),
1008
+ z.lazy(() => SearchKnowledgeRequestAndIn$outboundSchema),
1009
+ z.lazy(() => SearchKnowledgeRequestAndNin$outboundSchema),
1154
1010
  z.lazy(() => AndExists$outboundSchema),
1155
1011
  ])),
1156
1012
  ),
1157
1013
  });
1158
1014
 
1159
- export function searchKnowledgeRequestFilterByAndToJSON(
1160
- searchKnowledgeRequestFilterByAnd: SearchKnowledgeRequestFilterByAnd,
1161
- ): string {
1162
- return JSON.stringify(
1163
- SearchKnowledgeRequestFilterByAnd$outboundSchema.parse(
1164
- searchKnowledgeRequestFilterByAnd,
1165
- ),
1166
- );
1015
+ export function filterByAndToJSON(filterByAnd: FilterByAnd): string {
1016
+ return JSON.stringify(FilterByAnd$outboundSchema.parse(filterByAnd));
1167
1017
  }
1168
1018
 
1169
1019
  /** @internal */
@@ -1185,231 +1035,191 @@ export function existsToJSON(exists: Exists): string {
1185
1035
  }
1186
1036
 
1187
1037
  /** @internal */
1188
- export type OneNin$Outbound = string | number | boolean;
1038
+ export type Nin$Outbound = string | number | boolean;
1189
1039
 
1190
1040
  /** @internal */
1191
- export const OneNin$outboundSchema: z.ZodType<
1192
- OneNin$Outbound,
1193
- z.ZodTypeDef,
1194
- OneNin
1195
- > = z.union([z.string(), z.number(), z.boolean()]);
1041
+ export const Nin$outboundSchema: z.ZodType<Nin$Outbound, z.ZodTypeDef, Nin> = z
1042
+ .union([z.string(), z.number(), z.boolean()]);
1196
1043
 
1197
- export function oneNinToJSON(oneNin: OneNin): string {
1198
- return JSON.stringify(OneNin$outboundSchema.parse(oneNin));
1044
+ export function ninToJSON(nin: Nin): string {
1045
+ return JSON.stringify(Nin$outboundSchema.parse(nin));
1199
1046
  }
1200
1047
 
1201
1048
  /** @internal */
1202
- export type SearchKnowledgeRequest1Nin$Outbound = {
1049
+ export type OneNin$Outbound = {
1203
1050
  nin: Array<string | number | boolean>;
1204
1051
  };
1205
1052
 
1206
1053
  /** @internal */
1207
- export const SearchKnowledgeRequest1Nin$outboundSchema: z.ZodType<
1208
- SearchKnowledgeRequest1Nin$Outbound,
1054
+ export const OneNin$outboundSchema: z.ZodType<
1055
+ OneNin$Outbound,
1209
1056
  z.ZodTypeDef,
1210
- SearchKnowledgeRequest1Nin
1057
+ OneNin
1211
1058
  > = z.object({
1212
1059
  nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
1213
1060
  });
1214
1061
 
1215
- export function searchKnowledgeRequest1NinToJSON(
1216
- searchKnowledgeRequest1Nin: SearchKnowledgeRequest1Nin,
1217
- ): string {
1218
- return JSON.stringify(
1219
- SearchKnowledgeRequest1Nin$outboundSchema.parse(searchKnowledgeRequest1Nin),
1220
- );
1062
+ export function oneNinToJSON(oneNin: OneNin): string {
1063
+ return JSON.stringify(OneNin$outboundSchema.parse(oneNin));
1221
1064
  }
1222
1065
 
1223
1066
  /** @internal */
1224
- export type OneIn$Outbound = string | number | boolean;
1067
+ export type In$Outbound = string | number | boolean;
1225
1068
 
1226
1069
  /** @internal */
1227
- export const OneIn$outboundSchema: z.ZodType<
1228
- OneIn$Outbound,
1229
- z.ZodTypeDef,
1230
- OneIn
1231
- > = z.union([z.string(), z.number(), z.boolean()]);
1070
+ export const In$outboundSchema: z.ZodType<In$Outbound, z.ZodTypeDef, In> = z
1071
+ .union([z.string(), z.number(), z.boolean()]);
1232
1072
 
1233
- export function oneInToJSON(oneIn: OneIn): string {
1234
- return JSON.stringify(OneIn$outboundSchema.parse(oneIn));
1073
+ export function inToJSON(value: In): string {
1074
+ return JSON.stringify(In$outboundSchema.parse(value));
1235
1075
  }
1236
1076
 
1237
1077
  /** @internal */
1238
- export type SearchKnowledgeRequest1In$Outbound = {
1078
+ export type OneIn$Outbound = {
1239
1079
  in: Array<string | number | boolean>;
1240
1080
  };
1241
1081
 
1242
1082
  /** @internal */
1243
- export const SearchKnowledgeRequest1In$outboundSchema: z.ZodType<
1244
- SearchKnowledgeRequest1In$Outbound,
1083
+ export const OneIn$outboundSchema: z.ZodType<
1084
+ OneIn$Outbound,
1245
1085
  z.ZodTypeDef,
1246
- SearchKnowledgeRequest1In
1086
+ OneIn
1247
1087
  > = z.object({
1248
1088
  in: z.array(z.union([z.string(), z.number(), z.boolean()])),
1249
1089
  });
1250
1090
 
1251
- export function searchKnowledgeRequest1InToJSON(
1252
- searchKnowledgeRequest1In: SearchKnowledgeRequest1In,
1253
- ): string {
1254
- return JSON.stringify(
1255
- SearchKnowledgeRequest1In$outboundSchema.parse(searchKnowledgeRequest1In),
1256
- );
1091
+ export function oneInToJSON(oneIn: OneIn): string {
1092
+ return JSON.stringify(OneIn$outboundSchema.parse(oneIn));
1257
1093
  }
1258
1094
 
1259
1095
  /** @internal */
1260
- export type OneLte$Outbound = {
1096
+ export type Lte$Outbound = {
1261
1097
  lte: number;
1262
1098
  };
1263
1099
 
1264
1100
  /** @internal */
1265
- export const OneLte$outboundSchema: z.ZodType<
1266
- OneLte$Outbound,
1267
- z.ZodTypeDef,
1268
- OneLte
1269
- > = z.object({
1270
- lte: z.number(),
1271
- });
1101
+ export const Lte$outboundSchema: z.ZodType<Lte$Outbound, z.ZodTypeDef, Lte> = z
1102
+ .object({
1103
+ lte: z.number(),
1104
+ });
1272
1105
 
1273
- export function oneLteToJSON(oneLte: OneLte): string {
1274
- return JSON.stringify(OneLte$outboundSchema.parse(oneLte));
1106
+ export function lteToJSON(lte: Lte): string {
1107
+ return JSON.stringify(Lte$outboundSchema.parse(lte));
1275
1108
  }
1276
1109
 
1277
1110
  /** @internal */
1278
- export type OneLt$Outbound = {
1111
+ export type Lt$Outbound = {
1279
1112
  lt: number;
1280
1113
  };
1281
1114
 
1282
1115
  /** @internal */
1283
- export const OneLt$outboundSchema: z.ZodType<
1284
- OneLt$Outbound,
1285
- z.ZodTypeDef,
1286
- OneLt
1287
- > = z.object({
1288
- lt: z.number(),
1289
- });
1116
+ export const Lt$outboundSchema: z.ZodType<Lt$Outbound, z.ZodTypeDef, Lt> = z
1117
+ .object({
1118
+ lt: z.number(),
1119
+ });
1290
1120
 
1291
- export function oneLtToJSON(oneLt: OneLt): string {
1292
- return JSON.stringify(OneLt$outboundSchema.parse(oneLt));
1121
+ export function ltToJSON(lt: Lt): string {
1122
+ return JSON.stringify(Lt$outboundSchema.parse(lt));
1293
1123
  }
1294
1124
 
1295
1125
  /** @internal */
1296
- export type OneGte$Outbound = {
1126
+ export type Gte$Outbound = {
1297
1127
  gte: number;
1298
1128
  };
1299
1129
 
1300
1130
  /** @internal */
1301
- export const OneGte$outboundSchema: z.ZodType<
1302
- OneGte$Outbound,
1303
- z.ZodTypeDef,
1304
- OneGte
1305
- > = z.object({
1306
- gte: z.number(),
1307
- });
1131
+ export const Gte$outboundSchema: z.ZodType<Gte$Outbound, z.ZodTypeDef, Gte> = z
1132
+ .object({
1133
+ gte: z.number(),
1134
+ });
1308
1135
 
1309
- export function oneGteToJSON(oneGte: OneGte): string {
1310
- return JSON.stringify(OneGte$outboundSchema.parse(oneGte));
1136
+ export function gteToJSON(gte: Gte): string {
1137
+ return JSON.stringify(Gte$outboundSchema.parse(gte));
1311
1138
  }
1312
1139
 
1313
1140
  /** @internal */
1314
- export type OneGt$Outbound = {
1141
+ export type Gt$Outbound = {
1315
1142
  gt: number;
1316
1143
  };
1317
1144
 
1318
1145
  /** @internal */
1319
- export const OneGt$outboundSchema: z.ZodType<
1320
- OneGt$Outbound,
1321
- z.ZodTypeDef,
1322
- OneGt
1323
- > = z.object({
1324
- gt: z.number(),
1325
- });
1146
+ export const Gt$outboundSchema: z.ZodType<Gt$Outbound, z.ZodTypeDef, Gt> = z
1147
+ .object({
1148
+ gt: z.number(),
1149
+ });
1326
1150
 
1327
- export function oneGtToJSON(oneGt: OneGt): string {
1328
- return JSON.stringify(OneGt$outboundSchema.parse(oneGt));
1151
+ export function gtToJSON(gt: Gt): string {
1152
+ return JSON.stringify(Gt$outboundSchema.parse(gt));
1329
1153
  }
1330
1154
 
1331
1155
  /** @internal */
1332
- export type OneNe$Outbound = string | number | boolean;
1156
+ export type Ne$Outbound = string | number | boolean;
1333
1157
 
1334
1158
  /** @internal */
1335
- export const OneNe$outboundSchema: z.ZodType<
1336
- OneNe$Outbound,
1337
- z.ZodTypeDef,
1338
- OneNe
1339
- > = z.union([z.string(), z.number(), z.boolean()]);
1159
+ export const Ne$outboundSchema: z.ZodType<Ne$Outbound, z.ZodTypeDef, Ne> = z
1160
+ .union([z.string(), z.number(), z.boolean()]);
1340
1161
 
1341
- export function oneNeToJSON(oneNe: OneNe): string {
1342
- return JSON.stringify(OneNe$outboundSchema.parse(oneNe));
1162
+ export function neToJSON(ne: Ne): string {
1163
+ return JSON.stringify(Ne$outboundSchema.parse(ne));
1343
1164
  }
1344
1165
 
1345
1166
  /** @internal */
1346
- export type SearchKnowledgeRequest1Ne$Outbound = {
1167
+ export type OneNe$Outbound = {
1347
1168
  ne: string | number | boolean;
1348
1169
  };
1349
1170
 
1350
1171
  /** @internal */
1351
- export const SearchKnowledgeRequest1Ne$outboundSchema: z.ZodType<
1352
- SearchKnowledgeRequest1Ne$Outbound,
1172
+ export const OneNe$outboundSchema: z.ZodType<
1173
+ OneNe$Outbound,
1353
1174
  z.ZodTypeDef,
1354
- SearchKnowledgeRequest1Ne
1175
+ OneNe
1355
1176
  > = z.object({
1356
1177
  ne: z.union([z.string(), z.number(), z.boolean()]),
1357
1178
  });
1358
1179
 
1359
- export function searchKnowledgeRequest1NeToJSON(
1360
- searchKnowledgeRequest1Ne: SearchKnowledgeRequest1Ne,
1361
- ): string {
1362
- return JSON.stringify(
1363
- SearchKnowledgeRequest1Ne$outboundSchema.parse(searchKnowledgeRequest1Ne),
1364
- );
1180
+ export function oneNeToJSON(oneNe: OneNe): string {
1181
+ return JSON.stringify(OneNe$outboundSchema.parse(oneNe));
1365
1182
  }
1366
1183
 
1367
1184
  /** @internal */
1368
- export type OneEq$Outbound = string | number | boolean;
1185
+ export type Eq$Outbound = string | number | boolean;
1369
1186
 
1370
1187
  /** @internal */
1371
- export const OneEq$outboundSchema: z.ZodType<
1372
- OneEq$Outbound,
1373
- z.ZodTypeDef,
1374
- OneEq
1375
- > = z.union([z.string(), z.number(), z.boolean()]);
1188
+ export const Eq$outboundSchema: z.ZodType<Eq$Outbound, z.ZodTypeDef, Eq> = z
1189
+ .union([z.string(), z.number(), z.boolean()]);
1376
1190
 
1377
- export function oneEqToJSON(oneEq: OneEq): string {
1378
- return JSON.stringify(OneEq$outboundSchema.parse(oneEq));
1191
+ export function eqToJSON(eq: Eq): string {
1192
+ return JSON.stringify(Eq$outboundSchema.parse(eq));
1379
1193
  }
1380
1194
 
1381
1195
  /** @internal */
1382
- export type SearchKnowledgeRequest1Eq$Outbound = {
1196
+ export type OneEq$Outbound = {
1383
1197
  eq: string | number | boolean;
1384
1198
  };
1385
1199
 
1386
1200
  /** @internal */
1387
- export const SearchKnowledgeRequest1Eq$outboundSchema: z.ZodType<
1388
- SearchKnowledgeRequest1Eq$Outbound,
1201
+ export const OneEq$outboundSchema: z.ZodType<
1202
+ OneEq$Outbound,
1389
1203
  z.ZodTypeDef,
1390
- SearchKnowledgeRequest1Eq
1204
+ OneEq
1391
1205
  > = z.object({
1392
1206
  eq: z.union([z.string(), z.number(), z.boolean()]),
1393
1207
  });
1394
1208
 
1395
- export function searchKnowledgeRequest1EqToJSON(
1396
- searchKnowledgeRequest1Eq: SearchKnowledgeRequest1Eq,
1397
- ): string {
1398
- return JSON.stringify(
1399
- SearchKnowledgeRequest1Eq$outboundSchema.parse(searchKnowledgeRequest1Eq),
1400
- );
1209
+ export function oneEqToJSON(oneEq: OneEq): string {
1210
+ return JSON.stringify(OneEq$outboundSchema.parse(oneEq));
1401
1211
  }
1402
1212
 
1403
1213
  /** @internal */
1404
1214
  export type FilterBy1$Outbound =
1405
- | SearchKnowledgeRequest1Eq$Outbound
1406
- | SearchKnowledgeRequest1Ne$Outbound
1407
- | OneGt$Outbound
1408
- | OneGte$Outbound
1409
- | OneLt$Outbound
1410
- | OneLte$Outbound
1411
- | SearchKnowledgeRequest1In$Outbound
1412
- | SearchKnowledgeRequest1Nin$Outbound
1215
+ | OneEq$Outbound
1216
+ | OneNe$Outbound
1217
+ | Gt$Outbound
1218
+ | Gte$Outbound
1219
+ | Lt$Outbound
1220
+ | Lte$Outbound
1221
+ | OneIn$Outbound
1222
+ | OneNin$Outbound
1413
1223
  | Exists$Outbound;
1414
1224
 
1415
1225
  /** @internal */
@@ -1418,14 +1228,14 @@ export const FilterBy1$outboundSchema: z.ZodType<
1418
1228
  z.ZodTypeDef,
1419
1229
  FilterBy1
1420
1230
  > = z.union([
1421
- z.lazy(() => SearchKnowledgeRequest1Eq$outboundSchema),
1422
- z.lazy(() => SearchKnowledgeRequest1Ne$outboundSchema),
1423
- z.lazy(() => OneGt$outboundSchema),
1424
- z.lazy(() => OneGte$outboundSchema),
1425
- z.lazy(() => OneLt$outboundSchema),
1426
- z.lazy(() => OneLte$outboundSchema),
1427
- z.lazy(() => SearchKnowledgeRequest1In$outboundSchema),
1428
- z.lazy(() => SearchKnowledgeRequest1Nin$outboundSchema),
1231
+ z.lazy(() => OneEq$outboundSchema),
1232
+ z.lazy(() => OneNe$outboundSchema),
1233
+ z.lazy(() => Gt$outboundSchema),
1234
+ z.lazy(() => Gte$outboundSchema),
1235
+ z.lazy(() => Lt$outboundSchema),
1236
+ z.lazy(() => Lte$outboundSchema),
1237
+ z.lazy(() => OneIn$outboundSchema),
1238
+ z.lazy(() => OneNin$outboundSchema),
1429
1239
  z.lazy(() => Exists$outboundSchema),
1430
1240
  ]);
1431
1241
 
@@ -1434,21 +1244,18 @@ export function filterBy1ToJSON(filterBy1: FilterBy1): string {
1434
1244
  }
1435
1245
 
1436
1246
  /** @internal */
1437
- export type FilterBy$Outbound =
1438
- | SearchKnowledgeRequestFilterByAnd$Outbound
1439
- | SearchKnowledgeRequestFilterByOr$Outbound
1440
- | {
1441
- [k: string]:
1442
- | SearchKnowledgeRequest1Eq$Outbound
1443
- | SearchKnowledgeRequest1Ne$Outbound
1444
- | OneGt$Outbound
1445
- | OneGte$Outbound
1446
- | OneLt$Outbound
1447
- | OneLte$Outbound
1448
- | SearchKnowledgeRequest1In$Outbound
1449
- | SearchKnowledgeRequest1Nin$Outbound
1450
- | Exists$Outbound;
1451
- };
1247
+ export type FilterBy$Outbound = FilterByAnd$Outbound | FilterByOr$Outbound | {
1248
+ [k: string]:
1249
+ | OneEq$Outbound
1250
+ | OneNe$Outbound
1251
+ | Gt$Outbound
1252
+ | Gte$Outbound
1253
+ | Lt$Outbound
1254
+ | Lte$Outbound
1255
+ | OneIn$Outbound
1256
+ | OneNin$Outbound
1257
+ | Exists$Outbound;
1258
+ };
1452
1259
 
1453
1260
  /** @internal */
1454
1261
  export const FilterBy$outboundSchema: z.ZodType<
@@ -1456,17 +1263,17 @@ export const FilterBy$outboundSchema: z.ZodType<
1456
1263
  z.ZodTypeDef,
1457
1264
  FilterBy
1458
1265
  > = z.union([
1459
- z.lazy(() => SearchKnowledgeRequestFilterByAnd$outboundSchema),
1460
- z.lazy(() => SearchKnowledgeRequestFilterByOr$outboundSchema),
1266
+ z.lazy(() => FilterByAnd$outboundSchema),
1267
+ z.lazy(() => FilterByOr$outboundSchema),
1461
1268
  z.record(z.union([
1462
- z.lazy(() => SearchKnowledgeRequest1Eq$outboundSchema),
1463
- z.lazy(() => SearchKnowledgeRequest1Ne$outboundSchema),
1464
- z.lazy(() => OneGt$outboundSchema),
1465
- z.lazy(() => OneGte$outboundSchema),
1466
- z.lazy(() => OneLt$outboundSchema),
1467
- z.lazy(() => OneLte$outboundSchema),
1468
- z.lazy(() => SearchKnowledgeRequest1In$outboundSchema),
1469
- z.lazy(() => SearchKnowledgeRequest1Nin$outboundSchema),
1269
+ z.lazy(() => OneEq$outboundSchema),
1270
+ z.lazy(() => OneNe$outboundSchema),
1271
+ z.lazy(() => Gt$outboundSchema),
1272
+ z.lazy(() => Gte$outboundSchema),
1273
+ z.lazy(() => Lt$outboundSchema),
1274
+ z.lazy(() => Lte$outboundSchema),
1275
+ z.lazy(() => OneIn$outboundSchema),
1276
+ z.lazy(() => OneNin$outboundSchema),
1470
1277
  z.lazy(() => Exists$outboundSchema),
1471
1278
  ])),
1472
1279
  ]);
@@ -1573,22 +1380,18 @@ export type SearchKnowledgeRequest$Outbound = {
1573
1380
  top_k?: number | undefined;
1574
1381
  threshold?: number | undefined;
1575
1382
  search_type?: string | undefined;
1576
- filter_by?:
1577
- | SearchKnowledgeRequestFilterByAnd$Outbound
1578
- | SearchKnowledgeRequestFilterByOr$Outbound
1579
- | {
1580
- [k: string]:
1581
- | SearchKnowledgeRequest1Eq$Outbound
1582
- | SearchKnowledgeRequest1Ne$Outbound
1583
- | OneGt$Outbound
1584
- | OneGte$Outbound
1585
- | OneLt$Outbound
1586
- | OneLte$Outbound
1587
- | SearchKnowledgeRequest1In$Outbound
1588
- | SearchKnowledgeRequest1Nin$Outbound
1589
- | Exists$Outbound;
1590
- }
1591
- | undefined;
1383
+ filter_by?: FilterByAnd$Outbound | FilterByOr$Outbound | {
1384
+ [k: string]:
1385
+ | OneEq$Outbound
1386
+ | OneNe$Outbound
1387
+ | Gt$Outbound
1388
+ | Gte$Outbound
1389
+ | Lt$Outbound
1390
+ | Lte$Outbound
1391
+ | OneIn$Outbound
1392
+ | OneNin$Outbound
1393
+ | Exists$Outbound;
1394
+ } | undefined;
1592
1395
  search_options?: SearchOptions$Outbound | undefined;
1593
1396
  rerank_config?: SearchRerankConfig$Outbound | undefined;
1594
1397
  agentic_rag_config?:
@@ -1610,21 +1413,19 @@ export const SearchKnowledgeRequest$outboundSchema: z.ZodType<
1610
1413
  threshold: z.number().optional(),
1611
1414
  searchType: SearchType$outboundSchema.optional(),
1612
1415
  filterBy: z.union([
1613
- z.lazy(() => SearchKnowledgeRequestFilterByAnd$outboundSchema),
1614
- z.lazy(() => SearchKnowledgeRequestFilterByOr$outboundSchema),
1615
- z.record(
1616
- z.union([
1617
- z.lazy(() => SearchKnowledgeRequest1Eq$outboundSchema),
1618
- z.lazy(() => SearchKnowledgeRequest1Ne$outboundSchema),
1619
- z.lazy(() => OneGt$outboundSchema),
1620
- z.lazy(() => OneGte$outboundSchema),
1621
- z.lazy(() => OneLt$outboundSchema),
1622
- z.lazy(() => OneLte$outboundSchema),
1623
- z.lazy(() => SearchKnowledgeRequest1In$outboundSchema),
1624
- z.lazy(() => SearchKnowledgeRequest1Nin$outboundSchema),
1625
- z.lazy(() => Exists$outboundSchema),
1626
- ]),
1627
- ),
1416
+ z.lazy(() => FilterByAnd$outboundSchema),
1417
+ z.lazy(() => FilterByOr$outboundSchema),
1418
+ z.record(z.union([
1419
+ z.lazy(() => OneEq$outboundSchema),
1420
+ z.lazy(() => OneNe$outboundSchema),
1421
+ z.lazy(() => Gt$outboundSchema),
1422
+ z.lazy(() => Gte$outboundSchema),
1423
+ z.lazy(() => Lt$outboundSchema),
1424
+ z.lazy(() => Lte$outboundSchema),
1425
+ z.lazy(() => OneIn$outboundSchema),
1426
+ z.lazy(() => OneNin$outboundSchema),
1427
+ z.lazy(() => Exists$outboundSchema),
1428
+ ])),
1628
1429
  ]).optional(),
1629
1430
  searchOptions: SearchOptions$outboundSchema.optional(),
1630
1431
  rerankConfig: SearchRerankConfig$outboundSchema.optional(),